query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
3794d5f23b6c0812eef2e80aa34df7da
Tests 'featured_content' entity CRUD ops.
[ { "docid": "1bf3786f65fa66a5ef077956c5f8a89a", "score": "0.7724767", "text": "public function testFeaturedContentEntity() {\n $this->installEntitySchema('taxonomy_term');\n $this->installEntitySchema('node');\n $this->installEntitySchema('user');\n $this->installEntitySchema('featured_content');\n $this->installConfig('featured_content');\n $this->installConfig('featured_content_test');\n $this->installSchema('system', ['sequences']);\n\n NodeType::create(['type' => 'page'])->save();\n\n // Install test fields.\n FieldStorageConfig::create([\n 'entity_type' => 'node',\n 'field_name' => 'test_topic',\n 'type' => 'entity_reference',\n 'settings' => ['target_type' => 'taxonomy_term'],\n ])->setStatus(TRUE)->save();\n FieldConfig::create([\n 'entity_type' => 'node',\n 'bundle' => 'page',\n 'field_name' => 'test_topic',\n 'settings' => [\n 'handler' => 'default:taxonomy_term',\n 'handler_settings' => [\n 'target_bundles' => ['test_topics' => 'test_topics'],\n 'sort' => ['field' => '_none'],\n 'auto_create' => FALSE,\n ],\n ],\n ])->setStatus(TRUE)->save();\n\n FieldStorageConfig::load('featured_content.content')\n ->setSetting('target_type', 'node')\n ->save();\n\n Vocabulary::create(['vid' => 'topics'])->save();\n $term = Term::create(['name' => 'foo', 'vid' => 'topics']);\n $term->save();\n\n $user = User::create(['name' => 'jdoe', 'status' => TRUE]);\n $user->save();\n\n /* @var \\Drupal\\block\\BlockInterface $block */\n $block = Block::load('featured_content_block_test');\n\n $entities = [];\n for ($i = 0; $i < 2; $i++) {\n $entity = Node::create(['title' => \"Content $i\", 'type' => 'page']);\n $entity->save();\n $entities[$i] = $entity;\n }\n\n /* @var \\Drupal\\featured_content\\Entity\\FeaturedContent $relation */\n $relation = FeaturedContent::create();\n $relation->uid = $user;\n $relation->term = $term;\n $relation->block_plugin->value = $block->getPluginId();\n $relation->content = $entities;\n $relation->save();\n\n // Reload the entity.\n $relation = FeaturedContent::load($relation->id());\n\n // Check that the term has been set correctly.\n $this->assertSame('foo', $relation->term->entity->label());\n // Check that the user has been set correctly.\n $this->assertSame('jdoe', $relation->uid->entity->label());\n // Check that the block has been set correctly.\n $this->assertSame('views_block:featured_content_test-block_1', $relation->block_plugin->value);\n // Check that the featured content label is correct.\n $this->assertSame(\"Content featured content: topics 'foo', block: 'views_block:featured_content_test-block_1'\", (string) $relation->label());\n // Check that the content has been set correctly.\n foreach ($entities as $delta => $entity) {\n $this->assertSame($entity->label(), $relation->content[$delta]->entity->label());\n }\n\n // Test entity validation.\n // Duplicate relation.\n $relation_duplicate = clone $relation;\n // Prevent id collision.\n $relation_duplicate->set('id', $relation->id() + 1);\n\n // Checks that a duplicate relation is not validated.\n $violations = $relation_duplicate->validate();\n\n $this->assertSame(1, $violations->count());\n $this->assertSame(\"Relation term 'foo', block 'views_block:featured_content_test-block_1' already exists.\", (string) $violations->get(0)->getMessage());\n\n // Invalid block plugin.\n $block_broken = Block::create(['id' => 'invalid_block', 'plugin' => 'broken']);\n $block_broken->save();\n $relation->block_plugin->value = $block_broken->getPluginId();\n\n // Checks that an invalid block type cannot be involved in a relation.\n $violations = $relation->validate();\n $this->assertSame(\"The block 'broken' is not a Views block.\", (string) $violations->get(0)->getMessage());\n }", "title": "" } ]
[ { "docid": "56c3b1e330e695d05fafb1cf624bfb86", "score": "0.6091027", "text": "public function testContentEntityExample() {\n $web_user = $this->drupalCreateUser(array(\n 'add ext form entity',\n 'edit ext form entity',\n 'view ext form entity',\n 'delete ext form entity',\n 'administer ext form entity',\n 'administer om_ext_forms_ext_form display',\n 'administer om_ext_forms_ext_form fields',\n 'administer om_ext_forms_ext_form form display',\n ));\n\n // Anonymous User should not see the link to the listing.\n $this->assertNoText(t('Ext Forms Listing'));\n\n $this->drupalLogin($web_user);\n\n // Web_user user has the right to view listing.\n $this->assertLink(t('Ext Forms Listing'));\n\n $this->clickLink(t('Ext Forms Listing'));\n\n // WebUser can add entity content.\n $this->assertLink(t('Add Ext Form'));\n\n $this->clickLink(t('Add Ext Form'));\n\n $this->assertFieldByName('name[0][value]', '', 'Name Field, empty');\n $this->assertFieldByName('name[0][value]', '', 'First Name Field, empty');\n $this->assertFieldByName('name[0][value]', '', 'Gender Field, empty');\n\n $user_ref = $web_user->name->value . ' (' . $web_user->id() . ')';\n $this->assertFieldByName('user_id[0][target_id]', $user_ref, 'User ID reference field points to web_user');\n\n // Post content, save an instance. Go back to list after saving.\n $edit = array(\n 'form_link[0][value]' => 'http://www.testlink.com',\n );\n $this->drupalPostForm(NULL, $edit, t('Save'));\n\n // Entity listed.\n $this->assertLink(t('Edit'));\n $this->assertLink(t('Delete'));\n\n $this->clickLink('test name');\n\n // Entity shown.\n $this->assertText(t('test name'));\n $this->assertText(t('test first name'));\n $this->assertText(t('male'));\n $this->assertLink(t('Add Ext Form'));\n $this->assertLink(t('Edit'));\n $this->assertLink(t('Delete'));\n\n // Delete the entity.\n $this->clickLink('Delete');\n\n // Confirm deletion.\n $this->assertLink(t('Cancel'));\n $this->drupalPostForm(NULL, array(), 'Delete');\n\n // Back to list, must be empty.\n $this->assertNoText('test name');\n\n // Settings page.\n $this->drupalGet('admin/structure/om_ext_forms_ext_form_settings');\n $this->assertText(t('Ext Form Settings'));\n\n // Make sure the field manipulation links are available.\n $this->assertLink(t('Settings'));\n $this->assertLink(t('Manage fields'));\n $this->assertLink(t('Manage form display'));\n $this->assertLink(t('Manage display'));\n }", "title": "" }, { "docid": "41c4803be74d8de1a9d40d7cdc8f1cf1", "score": "0.59967554", "text": "public function testFeaturedStreamEntity()\n {\n $featured = FeaturedStream::create();\n\n $this->assertInstanceOf('Shoko\\TwitchApiBundle\\Model\\Entity\\FeaturedStream', $featured);\n\n $this->assertEquals(null, $featured->getImage());\n $this->assertEquals('some_image', $featured->setImage('some_image')->getImage());\n\n $this->assertEquals(null, $featured->getText());\n $this->assertEquals('some_text', $featured->setText('some_text')->getText());\n\n $this->assertEquals(null, $featured->getTitle());\n $this->assertEquals('some_titlee', $featured->setTitle('some_titlee')->getTitle());\n\n $this->assertEquals(false, $featured->isSponsored());\n $this->assertEquals(true, $featured->setSponsored(true)->isSponsored());\n\n $this->assertEquals(false, $featured->isScheduled());\n $this->assertEquals(true, $featured->setScheduled(true)->isScheduled());\n }", "title": "" }, { "docid": "5e0129a0231f7e439c3af865842e2b26", "score": "0.595256", "text": "public function featuredAction() {\n\n $product_id = $this->_getParam('product_id');\n if (!empty($product_id)) {\n $sitestoreproduct = Engine_Api::_()->getItem('sitestoreproduct_product', $product_id);\n $sitestoreproduct->featured = !$sitestoreproduct->featured;\n $sitestoreproduct->save();\n }\n $this->_redirect('admin/sitestoreproduct/manage');\n }", "title": "" }, { "docid": "2b2cc9667be3ef1e0abdd2dad11d38e0", "score": "0.59407485", "text": "public function testEntityEmbedCrud() {\n $this->assertTrue($this->controller instanceof ConfigEntityStorage, 'The embed_button storage is loaded.');\n\n // Run each test method in the same installation.\n $this->createTests();\n $this->loadTests();\n $this->deleteTests();\n }", "title": "" }, { "docid": "792f8593e9d592a27f9f5114b27dd3ac", "score": "0.57865685", "text": "public function testEditAction(): void\n {\n $dish = $this->createDish();\n $this->persistAndFlushAll([$dish]);\n\n $form['dish'] = [\n 'title_de' => 'dish-form-edited-title-de',\n 'title_en' => 'dish-form-edited-title-en',\n 'description_de' => 'dish-form-edited-desc-de',\n 'description_en' => 'dish-form-edited-desc-en',\n 'category' => '',\n '_token' => $this->getFormCSRFToken('/dish/form/' . $dish->getSlug(), 'form #dish__token'),\n ];\n\n $this->client->request('POST', '/dish/' . $dish->getSlug() . '/edit', $form);\n $dishRepository = $this->getDoctrine()->getRepository(Dish::class);\n unset($form['dish']['category'], $form['dish']['_token']);\n $editedDish = $dishRepository->findOneBy($form['dish']);\n\n $this->assertInstanceOf(Dish::class, $editedDish);\n $this->assertEquals($dish->getId(), $editedDish->getId());\n }", "title": "" }, { "docid": "3434b9f0e9f2f9d1beb6d73d724ebe79", "score": "0.57102126", "text": "public function testDeleteAction(): void\n {\n $dish = $this->createDish();\n $this->persistAndFlushAll([$dish]);\n\n $dishId = $dish->getId();\n $this->client->request('GET', '/dish/' . $dish->getSlug() . '/delete');\n $dishRepository = $this->getDoctrine()->getRepository(Dish::class);\n $queryResult = $dishRepository->find($dishId);\n\n $this->assertNull($queryResult);\n }", "title": "" }, { "docid": "41eaea0c0183f81e065477a72f47ce32", "score": "0.56392676", "text": "public function testFeaturedVideo()\n {\n $featuredVideo = $this->objFromFixture('PresentationVideo', 'FeaturedVideo');\n\n $response = $this->getURL('api/video/featured');\n $this->assertEquals(200, $response->getStatusCode());\n $this->assertNotEmpty($response->getBody());\n\n $data = Convert::json2array($response->getBody());\n\n $this->assertEquals($featuredVideo->ID, $data['id']);\n\n $featuredVideo->Processed = 0;\n $featuredVideo->DisplayOnSite = 1;\n $featuredVideo->write();\n\n $response = $this->getURL('api/video/featured');\n $this->assertEquals(200, $response->getStatusCode());\n $this->assertNotEmpty($response->getBody());\n\n $data = Convert::json2array($response->getBody());\n $this->assertEmpty($data);\n\n $featuredVideo->Processed = 1;\n $featuredVideo->DisplayOnSite = 0;\n $featuredVideo->write();\n\n $response = $this->getURL('api/video/featured');\n $this->assertEquals(200, $response->getStatusCode());\n $this->assertNotEmpty($response->getBody());\n\n $data = Convert::json2array($response->getBody());\n $this->assertEmpty($data);\n\n }", "title": "" }, { "docid": "0d338991bdd96d0416aa018b101ec4dc", "score": "0.5636137", "text": "private static function setFeatured($contentID, $value)\n\t{\n\t\t$dbo = JFactory::getDbo();\n\t\t$query = $dbo->getQuery(true);\n\n\t\t$contentExists = self::isAssociated($contentID);\n\n\t\tif ($contentExists)\n\t\t{\n\t\t\t$query->update('#__thm_groups_content')->set(\"featured = '$value'\")->where(\"id = '$contentID'\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$profileID = JFactory::getUser()->id;\n\t\t\t$query->insert('#__thm_groups_content')\n\t\t\t\t->columns(['profileID', 'contentID', 'featured'])\n\t\t\t\t->values(\"'$profileID','$contentID','$value'\");\n\t\t}\n\n\t\t$dbo->setQuery($query);\n\n\t\ttry\n\t\t{\n\t\t\t$success = $dbo->execute();\n\t\t}\n\t\tcatch (Exception $exc)\n\t\t{\n\t\t\tJFactory::getApplication()->enqueueMessage($exc->getMessage(), 'error');\n\n\t\t\treturn false;\n\t\t}\n\n\t\treturn empty($success) ? false : true;\n\t}", "title": "" }, { "docid": "89627177d09ac9b6497a4e2ee8cb1edf", "score": "0.56098264", "text": "public function edit(FeaturedProject $featuredProject)\n {\n //\n }", "title": "" }, { "docid": "89d483f8605950ca198c2ad75f90acd1", "score": "0.55446106", "text": "public function testEditAction(): void\n {\n $dish = $this->getDish(null, true);\n $dishVariation = $dish->getVariations()->get(0);\n $formURI = '/dish/variation/' . $dishVariation->getId() . '/edit';\n\n $form['dishvariation'] = [\n 'title_de' => 'edited-dishvariation-de-' . mt_rand(),\n 'title_en' => 'edited-dishvariation-en-' . mt_rand(),\n '_token' => $this->getFormCSRFToken($formURI, '#dishvariation__token'),\n ];\n\n $this->client->request('POST', $formURI, $form);\n $dishRepository = $this->getDoctrine()->getRepository(DishVariation::class);\n unset($form['dishvariation']['_token']);\n $editedDishVariation = $dishRepository->findOneBy($form['dishvariation']);\n\n $this->assertInstanceOf(DishVariation::class, $editedDishVariation);\n $this->assertEquals($dishVariation->getId(), $editedDishVariation->getId());\n }", "title": "" }, { "docid": "2e4570b864f7838ec82bf5c1991a072e", "score": "0.5526824", "text": "public function testDeleteEntity()\n {\n }", "title": "" }, { "docid": "25ca4b0c32f558e873f47286011e8b48", "score": "0.55058765", "text": "public function testViewsCacheAddRemoveContent() {\n $entity = $this->addTestEntity(6, [\n 'name' => 'Fresh node',\n 'body' => 'test foobar Case',\n 'type' => 'item',\n ]);\n // Prime page cache before indexing.\n $this->drupalGet('search-api-test-search-view-caching-tag');\n $this->assertSession()->pageTextContains('Displaying 5 search results');\n\n $this->indexItems($this->indexId);\n\n // Check that the newly indexed node is visible on the search index.\n $this->drupalGet('search-api-test-search-view-caching-tag');\n $this->assertSession()->pageTextContains('Displaying 6 search results');\n\n $entity->delete();\n\n // Check that the deleted entity is now no longer shown.\n $this->drupalGet('search-api-test-search-view-caching-tag');\n $this->assertSession()->pageTextContains('Displaying 5 search results');\n }", "title": "" }, { "docid": "8bae74e97755337a3ef69141cb6bc469", "score": "0.54921734", "text": "public function testGetEntity() {\n // The view is a view of comments, their nodes and their authors, so there\n // are three layers of entities.\n\n $account = User::create(['name' => $this->randomMachineName(), 'bundle' => 'user']);\n $account->save();\n\n $node = Node::create([\n 'uid' => $account->id(),\n 'type' => 'page',\n 'title' => $this->randomString(),\n ]);\n $node->save();\n $comment = Comment::create([\n 'uid' => $account->id(),\n 'entity_id' => $node->id(),\n 'entity_type' => 'node',\n 'field_name' => 'comment',\n ]);\n $comment->save();\n\n $user = $this->drupalCreateUser(['access comments']);\n $this->drupalLogin($user);\n\n $view = Views::getView('test_field_get_entity');\n $this->executeView($view);\n $row = $view->result[0];\n\n // Tests entities on the base level.\n $entity = $view->field['cid']->getEntity($row);\n $this->assertEquals($comment->id(), $entity->id(), 'Make sure the right comment entity got loaded.');\n // Tests entities as relationship on first level.\n $entity = $view->field['nid']->getEntity($row);\n $this->assertEquals($node->id(), $entity->id(), 'Make sure the right node entity got loaded.');\n // Tests entities as relationships on second level.\n $entity = $view->field['uid']->getEntity($row);\n $this->assertEquals($account->id(), $entity->id(), 'Make sure the right user entity got loaded.');\n }", "title": "" }, { "docid": "11ce560a52ce36fae90e2e642b5c2ce8", "score": "0.5480214", "text": "public function testEdit(): void\n {\n $client = static::createClient();\n\n $tests = $client->getContainer()->get('doctrine.orm.entity_manager')->getRepository(Test::class)->findAll();\n $id = end($tests)->getId();\n\n $client->request('GET', \"/admin/test/edit/$id\");\n\n $this->save('result.html', $client->getResponse()->getContent());\n\n $this->assertEquals(Response::HTTP_FOUND, $client->getResponse()->getStatusCode());\n }", "title": "" }, { "docid": "2ee878169587a0cb42610f348c68278d", "score": "0.5467882", "text": "public function edit(Content $content)\n {\n\n }", "title": "" }, { "docid": "d5c866e139aaddece03b91dba4061afc", "score": "0.54240066", "text": "public function testAddEntity()\n {\n }", "title": "" }, { "docid": "614885ab84bf804bde8667cd2b583007", "score": "0.5412887", "text": "public function testEdit05(): void\n {\n $client = static::createClient([], [\n 'PHP_AUTH_USER' => UserUsername::USER_USERNAME_DEFAULT_ADMIN,\n 'PHP_AUTH_PW' => UserPassword::USER_PASSWORD_DEFAULT_VALUE,\n ]);\n\n $tests = $client->getContainer()->get('doctrine.orm.entity_manager')->getRepository(Test::class)->findAll();\n $id = end($tests)->getId();\n\n $crawler = $client->request('GET', \"/admin/test/edit/$id\");\n\n $this->save('result.html', $client->getResponse()->getContent());\n\n $this->assertEquals(Response::HTTP_OK, $client->getResponse()->getStatusCode());\n\n $this->assertEquals(1, $crawler->filter('[name=\"edit_test[name]\"]')->count());\n\n $this->assertEquals(1, $crawler->filter('[name=\"edit_test[content]\"]')->count());\n\n $form = $crawler->filter('form[name=\"edit_test\"] [type=\"submit\"]')->form();\n $client->submit($form, [\n 'edit_test[name]' => $this->faker->name,\n 'edit_test[content]' => $this->faker->text,\n 'edit_test[test][checkbox]' => '1',\n 'edit_test[test][switch]' => '1',\n 'edit_test[test][boolean]' => $this->faker->numberBetween(0, 1),\n 'edit_test[test][boolean2]' => $this->faker->numberBetween(0, 1),\n 'edit_test[test][radio]' => $this->faker->numberBetween(0, 2),\n 'edit_test[test][radio2]' => $this->faker->numberBetween(0, 2),\n 'edit_test[test][gender]' => $this->faker->randomElement(['m', 'f']),\n 'edit_test[test][gender2]' => $this->faker->randomElement(['m', 'f']),\n 'edit_test[test][phone]' => '+32499999999',\n 'edit_test[test][mobile]' => '+32499999999',\n 'edit_test[test][range]' => '50.00',\n 'edit_test[test][range2]' => '50.00, 80.00',\n 'edit_test[test][range3]' => '50.00',\n 'edit_test[test][range4]' => '50.00, 80.00',\n 'edit_test[test][date]' => (new DateTime('2019-08-01'))->format('d-m-Y'),\n 'edit_test[test][time]' => $this->faker->dateTime()->format('H:i'),\n 'edit_test[test][datetime]' => (new DateTime('2019-08-01'))->format('d-m-Y H:i'),\n 'edit_test[test][wysiwyg]' => $this->faker->text,\n 'edit_test[test][wysiwyg2]' => $this->faker->text,\n ]);\n\n $crawler = $client->followRedirect();\n\n $this->save('result02.html', $client->getResponse()->getContent());\n\n $this->assertEquals(0, $crawler->filter('.has-error')->count());\n }", "title": "" }, { "docid": "e4e6ed9a28ff03f65c7ac93e55ca7aef", "score": "0.5392874", "text": "public function testEntityEntityCreation() {\n $type = $this->createEntityType();\n $bundle = $this->createEntityBundle($type['id']);\n\n // Test if a new entity can be created.\n $edit = ['title[0][value]' => $this->randomMachineName()];\n $route_args = [\n 'eck_entity_type' => $type['id'],\n 'eck_entity_bundle' => $bundle['type'],\n ];\n $this->drupalPostForm(Url::fromRoute('eck.entity.add', $route_args), $edit, $this->t('Save'));\n $this->assertSession()->responseContains($edit['title[0][value]']);\n }", "title": "" }, { "docid": "73e802c0b527b01fb530ca7cff8dd6ed", "score": "0.53662753", "text": "public function testDelete(): void\n {\n $client = static::createClient();\n\n $tests = $client->getContainer()->get('doctrine.orm.entity_manager')->getRepository(Test::class)->findAll();\n $id = end($tests)->getId();\n\n $client->request('GET', \"/admin/test/delete/$id\");\n\n $this->save('result.html', $client->getResponse()->getContent());\n\n $this->assertEquals(Response::HTTP_FOUND, $client->getResponse()->getStatusCode());\n }", "title": "" }, { "docid": "9a976f9f3f50fb47d6ca79cd01337472", "score": "0.5352439", "text": "public function testDeleteAction() {\n $entity = $this->storage->create([\n 'name' => 'Entity 1',\n 'type' => 'default',\n 'user_id' => $this->loggedInUser->id(),\n ]);\n $entity->save();\n $id = $entity->id();\n\n $this->drupalGet($entity->toUrl('collection'));\n $this->assertSession()->fieldValueEquals('Action', 'entity_test_enhanced_with_owner_delete_action');\n $edit = [\"entities[$id]\" => $id];\n $this->submitForm($edit, 'Apply to selected items');\n\n $this->assertSession()->elementTextContains('css', '.messages--error', 'No access to execute Delete enhanced entities with owner on the enhanced entity with owner Entity 1.');\n $this->assertInstanceOf(EnhancedEntityWithOwner::class, $this->storage->load($id));\n\n $account = $this->drupalCreateUser(array_merge(\n $this->basePermissions,\n ['delete any default entity_test_enhanced_with_owner']\n ));\n $this->drupalLogin($account);\n $this->drupalGet($entity->toUrl('collection'));\n $this->submitForm($edit, 'Apply to selected items');\n\n $this->assertSession()->elementTextContains('css', 'h1', 'Are you sure you want to delete this enhanced entity with owner?');\n $this->submitForm([], 'Delete');\n // The entity is deleted in the web process, but will still be in the static\n // cache of the test process, so we need to clear it manually.\n $this->storage->resetCache([$id]);\n\n $this->assertSession()->elementTextContains('css', 'h1', 'Enhanced entities with owner');\n $this->assertSession()->elementTextContains('css', '.messages--status', 'Deleted 1 item.');\n $this->assertNull($this->storage->load($id));\n }", "title": "" }, { "docid": "8e9a784b4bb5f4fe15b7b8dee7c3582c", "score": "0.5322457", "text": "public function testArticleEdit()\n {\n $article = Article::where('title', 'like', '%Testing Article title%')->first();\n if (empty($article)) {\n $data = [\n 'title' => 'Testing Article title',\n 'content' => 'Lorem ipsum dolor sit amet, consectetur adispicingi elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua',\n // 'author' => 'Ujang',\n ];\n\n $post = $this->action('POST', 'Admin\\ArticlesController@store', $data);\n }\n\n $this->action('GET', 'Admin\\ArticlesController@edit', $article->first()->id);\n $this->assertResponseOk();\n }", "title": "" }, { "docid": "69297fb7ebb08b6852eafb8c158e05f0", "score": "0.53140986", "text": "public function testToggleShowDeleted() {\n $deletedIDs=array();\n $list=GridFieldDeletedTest_TestObject::get();\n foreach($list as $item) {\n if($item->ID%2==0) {\n $deletedIDs[]=$item->ID;\n $item->delete();\n }\n }\n \n \n //In the default state the list should not contain the deleted items\n $this->assertEquals(0, $this->gridField->getManipulatedList()->filter('ID', $deletedIDs)->count(), 'Deleted items are visible in the list and they should not be in the default state');\n \n \n //Toggle the show deleted on\n $stateID='testGridStateActionField';\n Session::set($stateID, array('grid'=>'', 'actionName'=>'gf-toggle-deleted', 'args'=>array('ListDisplayMode'=>array('ShowDeletedItems'=>'Y'))));\n $request=new SS_HTTPRequest('POST', 'url', array(), array('action_gridFieldAlterAction?StateID='.$stateID=>true, $this->form->getSecurityToken()->getName()=>$this->form->getSecurityToken()->getValue()));\n $this->gridField->gridFieldAlterAction(array('StateID'=>$stateID), $this->form, $request);\n \n \n //Check to see if the deleted items are now visible\n $this->assertGreaterThan(0, $this->gridField->getManipulatedList()->filter('ID', $deletedIDs)->count(), 'Deleted items are not visible in the list and they should be when the toggle is on');\n \n \n //Toggle the show deleted back off\n $stateID='testGridStateActionField';\n Session::set($stateID, array('grid'=>'', 'actionName'=>'gf-toggle-deleted', 'args'=>array('ListDisplayMode'=>array('ShowDeletedItems'=>'N'))));\n $request=new SS_HTTPRequest('POST', 'url', array(), array('action_gridFieldAlterAction?StateID='.$stateID=>true, $this->form->getSecurityToken()->getName()=>$this->form->getSecurityToken()->getValue()));\n $this->gridField->gridFieldAlterAction(array('StateID'=>$stateID), $this->form, $request);\n \n \n //Check to see if the deleted items are now visible\n $this->assertEquals(0, $this->gridField->getManipulatedList()->filter('ID', $deletedIDs)->count(), 'Deleted items are visible in the list and they should be when the toggle is off');\n }", "title": "" }, { "docid": "3193a1257a3c3b377c1029fbe886da9b", "score": "0.53025794", "text": "public function testNewAction(): void\n {\n // Create form data\n $form = [\n 'dish' => [\n 'title_de' => 'dish-form-title-de',\n 'title_en' => 'dish-form-title-en',\n 'description_de' => 'dish-form-desc-de',\n 'description_en' => 'dish-form-desc-en',\n 'category' => '',\n '_token' => $this->getFormCSRFToken('/dish/form', 'form #dish__token'),\n ],\n ];\n\n // Call controller action\n $this->client->request('POST', '/dish/new', $form);\n\n // Get persisted entity\n /** @var EntityManager $entityManager */\n $entityManager = $this->client->getContainer()->get('doctrine')->getManager();\n $dishRepository = $entityManager->getRepository(Dish::class);\n $dish = $dishRepository->findOneBy([\n 'title_de' => 'dish-form-title-de',\n 'title_en' => 'dish-form-title-en',\n 'description_de' => 'dish-form-desc-de',\n 'description_en' => 'dish-form-desc-en',\n ]);\n\n $this->assertNotNull($dish);\n $this->assertInstanceOf(Dish::class, $dish);\n }", "title": "" }, { "docid": "233a453ffc079afcd81a93297bd6fa86", "score": "0.53005636", "text": "function setFeatured($featured) {\n\t\t$this->setData('featured', $featured);\n\t}", "title": "" }, { "docid": "d542ec8a14913fa034a49d4c4553a1ab", "score": "0.52908486", "text": "public function testDeleteAction(): void\n {\n $dish = $this->getDish(null, true);\n /* @var $dishVariation DishVariation */\n $dishVariation = $dish->getVariations()->get(0);\n\n $dishVariationSlug = $dishVariation->getSlug();\n $this->client->request('GET', \"/dish/variation/$dishVariationSlug/delete\");\n $dishVariationRepo = $this->getDoctrine()->getRepository(DishVariation::class);\n $queryResult = $dishVariationRepo->findBy(['slug' => $dishVariationSlug]);\n\n $this->assertEmpty($queryResult);\n }", "title": "" }, { "docid": "adf258e3b7a203c622a8959b4ebbb341", "score": "0.5286892", "text": "public function testTranslatableEntities() {\n ConfigurableLanguage::create(['id' => 'es'])->save();\n ConfigurableLanguage::create(['id' => 'fr'])->save();\n\n $selection = [];\n\n $entity1 = EntityTestMulRevPub::create(['type' => 'default', 'name' => 'entity1']);\n $entity1->addTranslation('es', ['name' => 'entity1 spanish']);\n $entity1->addTranslation('fr', ['name' => 'entity1 french']);\n $entity1->save();\n $selection[$entity1->id()]['en'] = 'en';\n\n $entity2 = EntityTestMulRevPub::create(['type' => 'default', 'name' => 'entity2']);\n $entity2->addTranslation('es', ['name' => 'entity2 spanish']);\n $entity2->addTranslation('fr', ['name' => 'entity2 french']);\n $entity2->save();\n $selection[$entity2->id()]['es'] = 'es';\n $selection[$entity2->id()]['fr'] = 'fr';\n\n $entity3 = EntityTestMulRevPub::create(['type' => 'default', 'name' => 'entity3']);\n $entity3->addTranslation('es', ['name' => 'entity3 spanish']);\n $entity3->addTranslation('fr', ['name' => 'entity3 french']);\n $entity3->save();\n $selection[$entity3->id()]['fr'] = 'fr';\n\n // This entity will be inaccessible because of\n // Drupal\\entity_test\\EntityTestAccessControlHandler.\n $entity4 = EntityTestMulRevPub::create(['type' => 'default', 'name' => 'forbid_access']);\n $entity4->save();\n $selection[$entity4->id()]['en'] = 'en';\n\n // Add the selection to the tempstore just like DeleteAction would.\n $tempstore = \\Drupal::service('tempstore.private')->get('entity_delete_multiple_confirm');\n $tempstore->set($this->account->id() . ':entity_test_mulrevpub', $selection);\n\n $this->drupalGet('/entity_test/delete');\n $assert = $this->assertSession();\n $assert->statusCodeEquals(200);\n $assert->elementTextContains('css', '.page-title', 'Are you sure you want to delete these test entity - revisions, data table, and published interface entities?');\n $list_selector = '#entity-test-mulrevpub-delete-multiple-confirm-form > div.item-list > ul';\n $assert->elementTextContains('css', $list_selector, 'entity1 (Original translation) - The following test entity - revisions, data table, and published interface translations will be deleted:');\n $assert->elementTextContains('css', $list_selector, 'entity2 spanish');\n $assert->elementTextContains('css', $list_selector, 'entity2 french');\n $assert->elementTextNotContains('css', $list_selector, 'entity3 spanish');\n $assert->elementTextContains('css', $list_selector, 'entity3 french');\n $delete_button = $this->getSession()->getPage()->findButton('Delete');\n $delete_button->click();\n $assert = $this->assertSession();\n $assert->addressEquals('/user/' . $this->account->id());\n $assert->responseContains('Deleted 6 items.');\n $assert->responseContains('1 item has not been deleted because you do not have the necessary permissions.');\n\n \\Drupal::entityTypeManager()->getStorage('entity_test_mulrevpub')->resetCache();\n $remaining_entities = EntityTestMulRevPub::loadMultiple([$entity1->id(), $entity2->id(), $entity3->id(), $entity4->id()]);\n $this->assertCount(3, $remaining_entities);\n }", "title": "" }, { "docid": "5f0f19895e1451ecbb0d7b472e6eca6a", "score": "0.5245688", "text": "public function testArticlesV2Post()\n {\n }", "title": "" }, { "docid": "6e01687149bdd5dfcac3d6b45acab6bd", "score": "0.524259", "text": "public function testGetEntities()\n {\n }", "title": "" }, { "docid": "c9f932b13b6811f9173408ee2c14c8d9", "score": "0.5231214", "text": "function testEntityGalleryTypeGetFunctions() {\n $entity_gallery_types = EntityGalleryType::loadMultiple();\n $entity_gallery_names = entity_gallery_type_get_names();\n\n $this->assertTrue(isset($entity_gallery_types['article']), 'Entity gallery type article is available.');\n $this->assertTrue(isset($entity_gallery_types['page']), 'Entity gallery type basic page is available.');\n\n $this->assertEqual($entity_gallery_types['article']->label(), $entity_gallery_names['article'], 'Correct entity gallery type base has been returned.');\n\n $article = EntityGalleryType::load('article');\n $this->assertEqual($entity_gallery_types['article'], $article, 'Correct node type has been returned.');\n $this->assertEqual($entity_gallery_types['article']->label(), $article->label(), 'Correct entity gallery type name has been returned.');\n }", "title": "" }, { "docid": "1148d2239446652ebdddc0ff6546ee91", "score": "0.5230736", "text": "public function testEdit02(): void\n {\n $client = static::createClient([], [\n 'PHP_AUTH_USER' => UserUsername::USER_USERNAME_DEFAULT_USER,\n 'PHP_AUTH_PW' => UserPassword::USER_PASSWORD_DEFAULT_VALUE,\n ]);\n\n $tests = $client->getContainer()->get('doctrine.orm.entity_manager')->getRepository(Test::class)->findAll();\n $id = end($tests)->getId();\n\n $client->request('GET', \"/admin/test/edit/$id\");\n\n $this->save('result.html', $client->getResponse()->getContent());\n\n $this->assertEquals(Response::HTTP_FORBIDDEN, $client->getResponse()->getStatusCode());\n }", "title": "" }, { "docid": "6700b546daee0c18a2955db170a7e6aa", "score": "0.522147", "text": "public function testBaseFieldCRUD() {\n // Create the entity type.\n $type = $this->createEntityType(['uid', 'created', 'changed']);\n $bundle = $this->createEntityBundle($type['id']);\n\n // Make sure base fields are added.\n $route_args = [\n 'eck_entity_type' => $type['id'],\n 'eck_entity_bundle' => $bundle['type'],\n ];\n $this->drupalGet(Url::fromRoute('eck.entity.add', $route_args));\n $this->assertSession()->fieldExists('uid[0][target_id]');\n $this->assertSession()->fieldExists('created[0][value][date]');\n\n // Add a field to the entity type.\n $edit = ['title' => TRUE];\n $this->drupalPostForm(Url::fromRoute('entity.eck_entity_type.edit_form', ['eck_entity_type' => $type['id']]), $edit, $this->t('Update @type', ['@type' => $type['label']]));\n $this->assertSession()->responseContains((string) $this->t('Entity type %label has been updated.', ['%label' => $type['label']]));\n\n // Make sure the field was added.\n $this->drupalGet(Url::fromRoute('eck.entity.add', $route_args));\n $this->assertSession()->fieldExists('title[0][value]');\n\n // Remove a field from the entity type.\n $edit = ['created' => FALSE];\n $this->drupalPostForm(Url::fromRoute('entity.eck_entity_type.edit_form', ['eck_entity_type' => $type['id']]), $edit, $this->t('Update @type', ['@type' => $type['label']]));\n $this->assertSession()->responseContains((string) $this->t('Entity type %label has been updated.', ['%label' => $type['label']]));\n\n // Make sure the base field was removed.\n $this->drupalGet(Url::fromRoute('eck.entity.add', $route_args));\n $this->assertSession()->fieldNotExists('created[0][value][date]');\n\n // Add an entity to make sure there is data in the title field.\n $edit = ['title[0][value]' => $this->randomMachineName()];\n $this->drupalPostForm(Url::fromRoute('eck.entity.add', $route_args), $edit, $this->t('Save'));\n $this->assertSession()->responseContains($edit['title[0][value]']);\n\n // We should not be able to remove fields that have data.\n $this->drupalGet(Url::fromRoute('entity.eck_entity_type.edit_form', ['eck_entity_type' => $type['id']]));\n $fields = $this->xpath('//input[@type=\"checkbox\"][@disabled]');\n $this->assertTrue(count($fields) > 0);\n }", "title": "" }, { "docid": "c5b02e07ff4b58a7e5455f27b1c87e42", "score": "0.5193911", "text": "public function testDelete() {\r\n $this->em->persist($this->entity);\r\n $this->em->flush();\r\n $id = $this->entity->getId();\r\n $entity = $this->repository->findOneById($id);\r\n $this->em->remove($entity);\r\n $this->em->flush();\r\n $this->assertNull($this->repository->findOneById($id));\r\n }", "title": "" }, { "docid": "b3df3699b16b3fba1902189e1092b372", "score": "0.51858604", "text": "public function testExpensesInlinePost()\n {\n }", "title": "" }, { "docid": "646fe27dde064f7a6f2d93ab0a082421", "score": "0.5180464", "text": "public function testGetEntity()\n {\n }", "title": "" }, { "docid": "5a2e2f30dcfff002f213d8327739f154", "score": "0.51741904", "text": "public function testDelete02(): void\n {\n $client = static::createClient([], [\n 'PHP_AUTH_USER' => UserUsername::USER_USERNAME_DEFAULT_USER,\n 'PHP_AUTH_PW' => UserPassword::USER_PASSWORD_DEFAULT_VALUE,\n ]);\n\n $tests = $client->getContainer()->get('doctrine.orm.entity_manager')->getRepository(Test::class)->findAll();\n $id = end($tests)->getId();\n\n $client->request('GET', \"/admin/test/delete/$id\");\n\n $this->save('result.html', $client->getResponse()->getContent());\n\n $this->assertEquals(Response::HTTP_FORBIDDEN, $client->getResponse()->getStatusCode());\n }", "title": "" }, { "docid": "6190d9f76a464ca47366f70e30c86a53", "score": "0.517181", "text": "function setwood_featured() {\n if( setwood_get_option('show_featured_content') ) :\n \n if(is_home() || is_front_page() && !is_paged()) {\n get_template_part( 'featured', 'content' );\n }\n endif;\n }", "title": "" }, { "docid": "53119d859a77d2aa09847557e57dd0fb", "score": "0.51602334", "text": "public function testGetEntity()\n {\n // First create a dummy task to get\n $task = new Entity(\"task\");\n $task->name = \"test\";\n $this->netricApi->saveEntity($task);\n\n // Queue it for cleanup in the tearDown function\n $this->testEntities[] = $task;\n\n // Now make sure we can retrieve the task from the API\n $taskFromServer = $this->netricApi->getEntity(\"task\", $task->id);\n $this->assertEquals($task->name, $taskFromServer->name);\n }", "title": "" }, { "docid": "a808394801c29d2cc4b1aa5098d14b99", "score": "0.5148597", "text": "public function testEdit03(): void\n {\n $client = static::createClient([], [\n 'PHP_AUTH_USER' => UserUsername::USER_USERNAME_DEFAULT_ADMIN,\n 'PHP_AUTH_PW' => UserPassword::USER_PASSWORD_DEFAULT_VALUE,\n ]);\n\n $tests = $client->getContainer()->get('doctrine.orm.entity_manager')->getRepository(Test::class)->findAll();\n $id = end($tests)->getId();\n\n $crawler = $client->request('GET', \"/admin/test/edit/$id\");\n\n $this->save('result.html', $client->getResponse()->getContent());\n\n $this->assertEquals(Response::HTTP_OK, $client->getResponse()->getStatusCode());\n\n $this->assertEquals(1, $crawler->filter('[name=\"edit_test[name]\"]')->count());\n\n $this->assertEquals(1, $crawler->filter('[name=\"edit_test[content]\"]')->count());\n\n $form = $crawler->filter('form[name=\"edit_test\"] [type=\"submit\"]')->form();\n $crawler = $client->submit($form, [\n 'edit_test[name]' => $this->faker->name,\n 'edit_test[content]' => 'INVALID',\n ]);\n\n $this->save('result02.html', $client->getResponse()->getContent());\n\n $this->assertGreaterThan(0, $crawler->filter('.has-error')->count());\n }", "title": "" }, { "docid": "133635cea9dc21a9ac11360d3fb5947d", "score": "0.512613", "text": "public function testFieldAccess($entity_class, array $entity_create_values, $expected_id_create_access) {\n // Set up a non-admin user that is allowed to create and update test\n // entities.\n \\Drupal::currentUser()->setAccount($this->createUser(['uid' => 2], ['administer entity_test content']));\n\n // Create the entity to test field access with.\n $entity = $entity_class::create($entity_create_values);\n\n // On newly-created entities, field access must allow setting the UUID\n // field.\n $this->assertTrue($entity->get('uuid')->access('edit'));\n $this->assertTrue($entity->get('uuid')->access('edit', NULL, TRUE)->isAllowed());\n // On newly-created entities, field access will not allow setting the ID\n // field if the ID is of type serial. It will allow access if it is of type\n // string.\n $this->assertEquals($expected_id_create_access, $entity->get('id')->access('edit'));\n $this->assertEquals($expected_id_create_access, $entity->get('id')->access('edit', NULL, TRUE)->isAllowed());\n\n // Save the entity and check that we can not update the ID or UUID fields\n // anymore.\n $entity->save();\n\n // If the ID has been set as part of the create ensure it has been set\n // correctly.\n if (isset($entity_create_values['id'])) {\n $this->assertSame($entity_create_values['id'], $entity->id());\n }\n // The UUID is hard-coded by the data provider.\n $this->assertSame('60e3a179-79ed-4653-ad52-5e614c8e8fbe', $entity->uuid());\n $this->assertFalse($entity->get('uuid')->access('edit'));\n $access_result = $entity->get('uuid')->access('edit', NULL, TRUE);\n $this->assertTrue($access_result->isForbidden());\n $this->assertEquals('The entity UUID cannot be changed.', $access_result->getReason());\n\n // Ensure the ID is still not allowed to be edited.\n $this->assertFalse($entity->get('id')->access('edit'));\n $access_result = $entity->get('id')->access('edit', NULL, TRUE);\n $this->assertTrue($access_result->isForbidden());\n $this->assertEquals('The entity ID cannot be changed.', $access_result->getReason());\n }", "title": "" }, { "docid": "c095ad77cf82e493bedf6a7dde6e838b", "score": "0.5107463", "text": "public function testEntityAccess() {\n // Set up a non-admin user that is allowed to view test entities.\n \\Drupal::currentUser()->setAccount($this->createUser(['uid' => 2], ['view test entity']));\n\n // Use the 'entity_test_label' entity type in order to test the 'view label'\n // access operation.\n $entity = EntityTestLabel::create([\n 'name' => 'test',\n ]);\n\n // The current user is allowed to view entities.\n $this->assertEntityAccess([\n 'create' => FALSE,\n 'update' => FALSE,\n 'delete' => FALSE,\n 'view' => TRUE,\n 'view label' => TRUE,\n ], $entity);\n\n // The custom user is not allowed to perform any operation on test entities,\n // except for viewing their label.\n $custom_user = $this->createUser();\n $this->assertEntityAccess([\n 'create' => FALSE,\n 'update' => FALSE,\n 'delete' => FALSE,\n 'view' => FALSE,\n 'view label' => TRUE,\n ], $entity, $custom_user);\n }", "title": "" }, { "docid": "16d4930cdb66bf636499915e9c49445e", "score": "0.50957453", "text": "public function testDelete04(): void\n {\n $client = static::createClient([], [\n 'PHP_AUTH_USER' => UserUsername::USER_USERNAME_DEFAULT_ADMIN,\n 'PHP_AUTH_PW' => UserPassword::USER_PASSWORD_DEFAULT_VALUE,\n ]);\n\n $tests = $client->getContainer()->get('doctrine.orm.entity_manager')->getRepository(Test::class)->findAll();\n $id = end($tests)->getId();\n\n $client->xmlHttpRequest('GET', \"/admin/test/delete/$id\");\n\n $this->save('result.html', $client->getResponse()->getContent());\n\n $this->assertEquals(Response::HTTP_OK, $client->getResponse()->getStatusCode());\n\n $content = json_decode($client->getResponse()->getContent(), true);\n\n $this->assertEquals(true, $content['success']);\n }", "title": "" }, { "docid": "2bec00019d822ade7ba99a980db78437", "score": "0.5090917", "text": "public function testShow(): void\n {\n $client = static::createClient();\n\n $tests = $client->getContainer()->get('doctrine.orm.entity_manager')->getRepository(Test::class)->findAll();\n $id = end($tests)->getId();\n\n $client->request('GET', \"/admin/test/view/$id\");\n\n $this->save('result.html', $client->getResponse()->getContent());\n\n $this->assertEquals(Response::HTTP_FOUND, $client->getResponse()->getStatusCode());\n }", "title": "" }, { "docid": "f96e8b4c31c6700668e4b10ceba46070", "score": "0.50794667", "text": "function update_featured($item_id)\n\t{\n\t\t$check_featured = $this->dbl->run(\"SELECT `id`, `filename`, `location` FROM `itemdb_images` WHERE `featured` = 1 AND `item_id` = ? ORDER BY `id` ASC\", array($item_id))->fetch_all();\n\t\t$count_featured = count($check_featured);\n\t\tif ($check_featured && $count_featured > 1)\n\t\t{\n\t\t\t$key = $this->core->config('do_space_key_uploads');\n\t\t\t$secret = $this->core->config('do_space_key_private_uploads');\n\n\t\t\t$client = new Aws\\S3\\S3Client([\n\t\t\t\t\t'version' => 'latest',\n\t\t\t\t\t'region' => 'am3',\n\t\t\t\t\t'endpoint' => 'https://ams3.digitaloceanspaces.com',\n\t\t\t\t\t'credentials' => [\n\t\t\t\t\t\t\t'key' => $key,\n\t\t\t\t\t\t\t'secret' => $secret,\n\t\t\t\t\t\t],\n\t\t\t]);\n\n\t\t\t$current = 0;\n\t\t\t$picture_ids = [];\n\t\t\tforeach ($check_featured as $old_featured)\n\t\t\t{\n\t\t\t\t$current++;\n\n\t\t\t\tif ($current != $count_featured)\n\t\t\t\t{\n\t\t\t\t\tif ($old_featured['location'] == NULL)\n\t\t\t\t\t{\n\t\t\t\t\t\tunlink(APP_ROOT . \"/uploads/gamesdb/big/\" . $item_id . '/' . $old_featured['filename']);\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$result = $client->deleteObject([\n\t\t\t\t\t\t\t'Bucket' => 'goluploads',\n\t\t\t\t\t\t\t'Key' => 'uploads/gamesdb/big/' . $item_id . '/' . $old_featured['filename']\n\t\t\t\t\t\t]);\n\t\t\t\t\t}\n\t\t\t\t\t$picture_ids[] = $old_featured['id'];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$in = str_repeat('?,', count($picture_ids) - 1) . '?';\n\t\t\t$this->dbl->run(\"DELETE FROM `itemdb_images` WHERE `featured` = 1 AND `item_id` = ? AND `id` IN ($in)\", array_merge([$item_id], $picture_ids));\n\t\t}\n\t\t$this->dbl->run(\"UPDATE `itemdb_images` SET `approved` = 1 WHERE `featured` = 1 AND `item_id` = ?\", array($item_id));\n\t}", "title": "" }, { "docid": "f0817b39eb73ede53c71f694d8574366", "score": "0.507194", "text": "public function setup()\n {\n $this->crud->setModel('App\\Models\\Teaser');\n $this->crud->setRoute(config('backpack.base.route_prefix') . '/teaser');\n $this->crud->setEntityNameStrings('teaser', 'teasers');\n\n /*\n |--------------------------------------------------------------------------\n | BASIC CRUD INFORMATION\n |--------------------------------------------------------------------------\n */\n // $this->crud->allowAccess('reorder');\n // $this->crud->enableReorder('text', 1);\n //$this->crud->setFromDb();\n $this->crud->addColumn([\n 'name' => 'image',\n 'label' => 'Изображение',\n 'type' => 'image_custom'\n ]);\n $this->crud->addColumn([\n 'name' => 'text',\n 'label' => 'Описание',\n 'type' => 'text',\n 'limit' => '50'\n ]);\n\n $this->crud->addColumn([\n 'label' => \"Страна\",\n 'type' => \"select\",\n 'name' => 'country_id',\n 'entity' => 'country',\n 'attribute' => \"name\",\n 'model' => \"App\\Models\\Country\"\n ]);\n\n $this->crud->addColumn([\n 'label' => \"Язык\",\n 'name' => 'lang_id',\n 'type' => \"select\",\n 'entity' => 'lang',\n 'attribute' => \"fullname\",\n 'model' => \"App\\Models\\Lang\"\n ]);\n\n $this->crud->addColumn([\n 'name' => 'gif', // The db column name\n 'label' => \"gif\", // Table column heading\n 'type' => 'check'\n ]);\n\n $this->crud->addButton('line', 'copy', 'view', 'crud::buttons.copy_teaser', 'end');\n\n $this->crud->addFilter([ // add a \"simple\" filter called Draft\n 'type' => 'select2',\n 'name' => 'country_id',\n 'label'=> 'По стране'\n ],\n function() {\n $countries = DB::table('countries')->select('id', 'name')->get();\n $i = 1;\n foreach ($countries as $country) {\n $new_country[$i] = $country->name;\n $i++;\n }\n return $new_country;\n // $arr = array(\n // 169 => 'Россия',\n // 197 => 'Таиланд'\n // );\n // $countryIds = Article::getUniqueCountryIds();\n // echo \"<pre>\";\n // die(print_r($countryIds));\n // return $arr;\n\n },\n function($value) {\n $this->crud->addClause('where', 'country_id', $value);\n });\n\n $this->crud->addFilter([ // add a \"simple\" filter called Draft\n 'type' => 'select2',\n 'name' => 'lang_id',\n 'label'=> 'По языку'\n ],\n function() {\n $langs = DB::table('langs')->select('id', 'fullname')->get();\n $i = 1;\n foreach ($langs as $lang) {\n $new_langs[$i] = $lang->fullname;\n $i++;\n }\n return $new_langs;\n },\n function($value) {\n $this->crud->addClause('where', 'lang_id', $value);\n });\n\n //FIELDS\n $this->crud->addField([\n 'name' => 'gif',\n 'label' => 'Загружать GIF',\n 'type' => 'checkbox_custom'\n ]);\n $this->crud->addField([\n 'label' => \"Изображение тизера\",\n 'name' => \"image\",\n 'type' => 'teaser_image1',\n 'upload' => true,\n 'crop' => true,\n 'wrapperAttributes' => [\n 'class' => 'form-group image teaset_image1 col-md-12'\n ],\n ]);\n\n $this->crud->addField([\n 'label' => \"Изображение кв.\",\n 'name' => \"image2\",\n 'type' => 'teaser_image2',\n 'upload' => true,\n 'crop' => true, // set to true to allow cropping, false to disable\n 'aspect_ratio' => 1, // ommit or set to 0 to allow any aspect ratio\n 'wrapperAttributes' => [\n 'class' => 'form-group image teaser_image2 col-md-12'\n ],\n ]);\n\n $this->crud->addField(\n [ // Upload\n 'name' => 'image1gif',\n 'label' => 'GIF Изображение',\n 'type' => 'upload2',\n 'upload' => true,\n 'disk' => 'uploads',\n 'wrapperAttributes' => [\n 'class' => 'form-group gif_image1 col-md-12'\n ],\n ]);\n\n // $this->crud->addField(\n // [ // Upload\n // 'name' => 'image2gif',\n // 'label' => 'GIF Изображение 2',\n // 'type' => 'upload2',\n // 'upload' => true,\n // 'disk' => 'uploads', // if you store files in the /public folder, please ommit this; if you store them in /storage or S3, please specify it;\n // 'wrapperAttributes' => [\n // 'class' => 'form-group gif_image2 col-md-12'\n // ],\n // ]);\n\n $this->crud->addField([\n 'name' => 'text',\n 'label' => 'Содержание',\n 'type' => 'textarea_teaser'\n ]);\n\n //dd($this);\n/*\n\nне работает считывание установленного языка и страны, посему сделано несколько по другому. Ниже\n // $this->crud->addField([\n // 'label' => \"Страна\",\n // 'type' => 'select2',\n // 'name' => 'country_id', // the db column for the foreign key\n // 'entity' => 'country', // the method that defines the relationship in your Model\n // 'attribute' => 'name', // foreign key attribute that is shown to user\n // 'model' => \"App\\Models\\Country\" // foreign key model\n // ]);\n\n // $this->crud->addField([\n // 'label' => \"Язык\",\n // 'name' => 'lang_id',\n // 'type' => 'select2',\n // 'entity' => 'lang', // the method that defines the relationship in your Model\n // 'attribute' => 'fullname', // foreign key attribute that is shown to user\n // 'model' => \"App\\Models\\Lang\" // foreign key model\n // ]);\n\n */\n $countries = Country::getCountriesForCrudIOptions();\n $this->crud->addField([\n 'label' => \"Страна\",\n 'type' => 'select2_from_array',\n 'options' => $countries,\n 'name' => 'country_id',\n 'allows_multiple' => false\n ], 'both');\n\n $langs = Lang::getLangsForCrudIOptions();\n $this->crud->addField([\n 'label' => \"Язык\",\n 'type' => 'select2_from_array',\n 'options' => $langs,\n 'name' => 'lang_id',\n 'allows_multiple' => false\n ], 'both');\n\n $this->crud->addField([\n 'name' => 'user_id',\n 'type' => 'hidden',\n 'value' => auth()->user()->id\n ]);\n\n $this->crud->addClause('where', 'user_id', auth()->user()->id);\n\n\n // ------ CRUD FIELDS\n // $this->crud->addField($options, 'update/create/both');\n // $this->crud->addFields($array_of_arrays, 'update/create/both');\n // $this->crud->removeField('name', 'update/create/both');\n // $this->crud->removeFields($array_of_names, 'update/create/both');\n\n // ------ CRUD COLUMNS\n // $this->crud->addColumn(); // add a single column, at the end of the stack\n // $this->crud->addColumns(); // add multiple columns, at the end of the stack\n // $this->crud->removeColumn('column_name'); // remove a column from the stack\n // $this->crud->removeColumns(['column_name_1', 'column_name_2']); // remove an array of columns from the stack\n // $this->crud->setColumnDetails('column_name', ['attribute' => 'value']); // adjusts the properties of the passed in column (by name)\n // $this->crud->setColumnsDetails(['column_1', 'column_2'], ['attribute' => 'value']);\n\n // ------ CRUD BUTTONS\n // possible positions: 'beginning' and 'end'; defaults to 'beginning' for the 'line' stack, 'end' for the others;\n // $this->crud->addButton($stack, $name, $type, $content, $position); // add a button; possible types are: view, model_function\n // $this->crud->addButtonFromModelFunction($stack, $name, $model_function_name, $position); // add a button whose HTML is returned by a method in the CRUD model\n // $this->crud->addButtonFromView($stack, $name, $view, $position); // add a button whose HTML is in a view placed at resources\\views\\vendor\\backpack\\crud\\buttons\n // $this->crud->removeButton($name);\n // $this->crud->removeButtonFromStack($name, $stack);\n // $this->crud->removeAllButtons();\n // $this->crud->removeAllButtonsFromStack('line');\n\n // ------ CRUD ACCESS\n // $this->crud->allowAccess(['list', 'create', 'update', 'reorder', 'delete']);\n // $this->crud->denyAccess(['list', 'create', 'update', 'reorder', 'delete']);\n\n // ------ CRUD REORDER\n // $this->crud->enableReorder('label_name', MAX_TREE_LEVEL);\n // NOTE: you also need to do allow access to the right users: $this->crud->allowAccess('reorder');\n\n // ------ CRUD DETAILS ROW\n // $this->crud->enableDetailsRow();\n // NOTE: you also need to do allow access to the right users: $this->crud->allowAccess('details_row');\n // NOTE: you also need to do overwrite the showDetailsRow($id) method in your EntityCrudController to show whatever you'd like in the details row OR overwrite the views/backpack/crud/details_row.blade.php\n\n // ------ REVISIONS\n // You also need to use \\Venturecraft\\Revisionable\\RevisionableTrait;\n // Please check out: https://laravel-backpack.readme.io/docs/crud#revisions\n // $this->crud->allowAccess('revisions');\n\n // ------ AJAX TABLE VIEW\n // Please note the drawbacks of this though:\n // - 1-n and n-n columns are not searchable\n // - date and datetime columns won't be sortable anymore\n // $this->crud->enableAjaxTable();\n\n // ------ DATATABLE EXPORT BUTTONS\n // Show export to PDF, CSV, XLS and Print buttons on the table view.\n // Does not work well with AJAX datatables.\n // $this->crud->enableExportButtons();\n\n // ------ ADVANCED QUERIES\n // $this->crud->addClause('active');\n // $this->crud->addClause('type', 'car');\n // $this->crud->addClause('where', 'name', '==', 'car');\n\n /*dd(auth()->user()->id);*/\n // $this->crud->addClause('whereName', 'car');\n // $this->crud->addClause('whereHas', 'posts', function($query) {\n // $query->activePosts();\n // });\n // $this->crud->addClause('withoutGlobalScopes');\n // $this->crud->addClause('withoutGlobalScope', VisibleScope::class);\n // $this->crud->with(); // eager load relationships\n // $this->crud->orderBy();\n // $this->crud->groupBy();\n // $this->crud->limit();\n }", "title": "" }, { "docid": "4a148e85a79b7ba6f597d4ccc5614c4d", "score": "0.5069788", "text": "function the_featured_post_content($post_id = NULL, $length = NULL, $notags = NULL) {\n echo get_the_featured_post_content($post_id, $length, $notags);\n }", "title": "" }, { "docid": "b8aecffb729dfd4dc60435e90b505237", "score": "0.50588286", "text": "public function index(){\n// $post = new Test();\n// $post->setcontent('test2');\n// $this->em->persist($post);\n// $this->em->flush();\n// //var_dump($post);\n $this->render(\"index\");\n }", "title": "" }, { "docid": "fb00070a2d528afd2366056c33e4bdb3", "score": "0.5052739", "text": "public function testFeatureShow()\n {\n $feature = Feature::query()->inRandomOrder()->first();\n\n $this->get(route('api.features.show', $feature))\n ->assertSuccessful()\n ->assertJson($feature->toArray());\n }", "title": "" }, { "docid": "cfb1e0041a822b7ec20817e4de466376", "score": "0.5046979", "text": "function setUp()\n {\n parent::setUp();\n\n // Configure WordPress with the test settings.\n wl_configure_wordpress_test();\n\n // Empty the blog.\n wl_empty_blog();\n\n // Check that entities and posts have been deleted.\n $this->assertEquals( 0, count( get_posts( array(\n 'posts_per_page' => -1,\n 'post_type' => 'post',\n 'post_status' => 'any'\n ) ) ) );\n $this->assertEquals( 0, count( get_posts( array(\n 'posts_per_page' => -1,\n 'post_type' => 'entity',\n 'post_status' => 'any'\n ) ) ) );\n\t\t\n\t\t\n\t\t// Creating 2 fake entities \n\t\t$entities = array();\n\t\t\n $uri = 'http://example.org/entity1';\n $label = 'Entity1';\n $type = 'http://schema.org/Thing';\n $description = 'An example entity.';\n $images = array();\n $same_as = array();\n $ent = wl_save_entity( $uri, $label, $type, $description, array(), $images, null, $same_as );\n\t\t$entities[] = $ent->ID;\n \n $uri = 'http://example.org/entity2';\n $label = 'Entity2';\n $type = 'http://schema.org/Thing';\n $description = 'An example entity.';\n $images = array();\n $same_as = array();\n\t\t$ent = wl_save_entity( $uri, $label, $type, $description, array(), $images, null, $same_as );\n\t\t$entities[] = $ent->ID;\n \n \n // Creating a fake post\n $content = 'This is a fake post. Ohhh yeah';\n $slug = 'yeah';\n $title = 'Yeah';\n\t\t$status = 'publish';\n\t\t$type = 'post';\n\t\tself::$FIRST_POST_ID = wl_create_post( $content, $slug, $title, $status, $type);\n \n wl_add_referenced_entities( self::$FIRST_POST_ID, $entities );\n\t\t\n\t\t// Creating another fake post and entity (the most connected one)\n\t\t\n\t\t// Creating a fake post\n $content = 'This is another fake post. Ohhh yeah';\n $slug = 'yeah';\n $title = 'Yeah';\n\t\t$status = 'publish';\n\t\t$type = 'post';\n\t\t$new_post = wl_create_post( $content, $slug, $title, $status, $type);\n\t\t\n\t\t$uri = 'http://example.org/entity3';\n $label = 'Entity3';\n $type = 'http://schema.org/Thing';\n $description = 'Another example entity only related to an entity.';\n $images = array();\n $same_as = array();\n $ent = wl_save_entity( $uri, $label, $type, $description, array(), $images, null, $same_as );\n\t\tself::$MOST_CONNECTED_ENTITY_ID = $ent->ID;\n\t\t\n\t\twl_add_referenced_entities( $new_post, self::$MOST_CONNECTED_ENTITY_ID );\n\t\twl_add_referenced_entities( self::$FIRST_POST_ID, self::$MOST_CONNECTED_ENTITY_ID);\n }", "title": "" }, { "docid": "12f6578f71133902b2b7b12dde2d19e0", "score": "0.50236076", "text": "function update_featured($item_id)\n\t{\n\t\t$check_featured = $this->dbl->run(\"SELECT `id`, `filename` FROM `itemdb_images` WHERE `featured` = 1 AND `item_id` = ? ORDER BY `id` ASC\", array($item_id))->fetch_all();\n\t\t$count_featured = count($check_featured);\n\t\tif ($check_featured && $count_featured > 1)\n\t\t{\n\t\t\t$current = 0;\n\t\t\t$picture_ids = [];\n\t\t\tforeach ($check_featured as $old_featured)\n\t\t\t{\n\t\t\t\t$current++;\n\n\t\t\t\tif ($current != $count_featured)\n\t\t\t\t{\n\t\t\t\t\tunlink(APP_ROOT . \"/uploads/gamesdb/big/\" . $item_id . '/' . $old_featured['filename']);\n\t\t\t\t\t$picture_ids[] = $old_featured['id'];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$in = str_repeat('?,', count($picture_ids) - 1) . '?';\n\t\t\t$this->dbl->run(\"DELETE FROM `itemdb_images` WHERE `featured` = 1 AND `item_id` = ? AND `id` IN ($in)\", array_merge([$item_id], $picture_ids));\n\t\t}\n\t\t$this->dbl->run(\"UPDATE `itemdb_images` SET `approved` = 1 WHERE `featured` = 1 AND `item_id` = ?\", array($item_id));\n\t}", "title": "" }, { "docid": "220a96a6cbb0c4211590885b5440c4b4", "score": "0.5022642", "text": "public function test_edit_background()\n {\n $file = UploadedFile::fake()\n ->image('testBG.jpg', 1024, 1024)\n ->size(1024);\n\n // Upload mockup image as background\n $this->post('items/storeBackground', [\n 'name' => 'testBG',\n 'price' => 10,\n 'backgroundImage' => $file,\n ]);\n\n $lastItem = Item::all()->last();\n\n $this->put('item/updatebg/' . $lastItem->id, [\n 'name' => 'testBG_edited',\n 'price' => 20,\n 'backgroundImage' => $file,\n ]);\n\n $this->assertDatabaseHas('items', [\n 'name' => 'testBG_edited',\n 'type' => 'background',\n 'point' => 20,\n ]);\n\n $this->assertDatabaseHas('item_details', [\n 'name' => 'backgroundImage',\n ]);\n }", "title": "" }, { "docid": "5f9ac7027f535e96a8727044421ac4ae", "score": "0.4998956", "text": "public function testGetContentUrlExisting()\n {\n oxTestModules::addFunction(\"oxUtilsServer\", \"getServerVar\", \"{ \\$aArgs = func_get_args(); if ( \\$aArgs[0] === 'HTTP_HOST' ) { return '\" . $this->getConfig()->getShopUrl() . \"'; } elseif ( \\$aArgs[0] === 'SCRIPT_NAME' ) { return ''; } else { return \\$_SERVER[\\$aArgs[0]]; } }\");\n\n $sStdUrl = 'cl=content';\n $sSeoUrl = 'content-title/';\n\n $oContent = oxNew('oxContent');\n $oContent->setLanguage(1);\n $oContent->setId('contentid');\n $oContent->oxcontents__oxtitle = new oxField('content title');\n\n\n $sShopId = $this->getConfig()->getBaseShopId();\n $iLang = 1;\n $sObjectId = $oContent->getId();\n $sIdent = md5(strtolower($sSeoUrl));\n $sType = 'oxcontent';\n\n $sQ = \"insert into oxseo (oxobjectid, oxident, oxshopid, oxlang, oxstdurl, oxseourl, oxtype)\n values ('$sObjectId', '$sIdent', '$sShopId', '$iLang', '$sStdUrl', '$sSeoUrl', '$sType')\";\n oxDb::getDb()->execute($sQ);\n\n $oEncoder = oxNew('oxSeoEncoderContent');\n\n $sUrl = $this->getConfig()->getShopUrl() . $sSeoUrl;\n $sSeoUrl = $oEncoder->getContentUrl($oContent);\n\n $this->assertEquals($sUrl, $sSeoUrl);\n }", "title": "" }, { "docid": "37570fe5c7673614d1ac84c1021cc9c8", "score": "0.4984796", "text": "public function getFeaturedProduct()\n\n {\n\n $storeId = Mage::app()->getStore()->getId(); \n\n $categoryId = $this->getRequest()->getParam('id', false);\n\n $resource = Mage::getSingleton('core/resource');\n\n $read = $resource->getConnection('catalog_read');\n\n $categoryProductTable = $resource->getTableName('catalog/category_product');\n\n //$productEntityIntTable = $resource->getTableName('catalog/product_entity_int'); // doesn't work :(\n\n $productEntityIntTable = (string)Mage::getConfig()->getTablePrefix() . 'catalog_product_entity_int';\n\n $eavAttributeTable = $resource->getTableName('eav/attribute');\n\n // Query database for featured product\n\n if ($categoryId){\n\n $select = $read->select()\n\n ->from(array('cp'=>$categoryProductTable))\n\n ->join(array('pei'=>$productEntityIntTable), 'pei.entity_id=cp.product_id', array())\n\n ->joinNatural(array('ea'=>$eavAttributeTable))\n\n ->where('cp.category_id=?', $categoryId)\n\n ->where('pei.value=1')\n\n ->where('ea.attribute_code=\"featured\"');}\n\n else {\n\n \n\n $select = $read->select()\n\n ->from(array('cp'=>$categoryProductTable))\n\n ->join(array('pei'=>$productEntityIntTable), 'pei.entity_id=cp.product_id', array())\n\n ->joinNatural(array('ea'=>$eavAttributeTable))\n\n ->where('pei.value=1')\n\n ->where('ea.attribute_code=\"featured\"');\n\n }\n\n $featuredProductData = $read->fetchAll($select);\n\n $i=0;\n\n $product=array();\n\n $productid=array();\n\n foreach ($featuredProductData as $row) {\n\n \n\n // instantiate the product object\n\n //$productid[$i] = Mage::getModel('catalog/product')->load($row['product_id']);\n\n $productid[$i] = $row['product_id'];\n\n \n\n // if the product is a featured product, return the object\n\n // if ($product->getData('featured')) {\n\n \n\n //}\n\n $i++;\n\n }\n\n $productid=array_unique($productid);\n\n $i=0;\n\n foreach($productid as $id){\n\n $product[$i] = Mage::getModel('catalog/product')->load($id);\n\n $i++;\n\n }\n\n return $product;\n\n }", "title": "" }, { "docid": "22292c680118951671d37e37709868f8", "score": "0.49837524", "text": "public function test_indexAction()\n {\n $this->dispatch('/blog');\n $this->assertQuery('div.sideWrap');\n $this->assertQueryCount('div.articleItem', 3);\n }", "title": "" }, { "docid": "fa9355caba4aac95a6216c43a1947d75", "score": "0.49836215", "text": "public function testArticlesV2Put()\n {\n }", "title": "" }, { "docid": "5366e54b58aac4927078abac14f43c00", "score": "0.4981377", "text": "function testEntityGalleryTypeEditing() {\n $web_user = $this->drupalCreateUser(array('bypass entity gallery access', 'administer entity gallery types', 'administer entity_gallery fields'));\n $this->drupalLogin($web_user);\n\n // Verify that title field is displayed.\n $this->drupalGet('gallery/add/page');\n $this->assertRaw('Title', 'Title field was found.');\n\n // Rename the title field.\n $edit = array(\n 'title_label' => 'Foo',\n );\n $this->drupalPostForm('admin/structure/gallery-types/manage/page', $edit, t('Save gallery type'));\n\n $this->drupalGet('gallery/add/page');\n $this->assertRaw('Foo', 'New title label was displayed.');\n $this->assertNoRaw('Title', 'Old title label was not displayed.');\n\n // Change the name and the description.\n $edit = array(\n 'name' => 'Bar',\n 'description' => 'Lorem ipsum.',\n );\n $this->drupalPostForm('admin/structure/gallery-types/manage/page', $edit, t('Save gallery type'));\n\n $this->drupalGet('gallery/add');\n $this->assertRaw('Bar', 'New name was displayed.');\n $this->assertRaw('Lorem ipsum', 'New description was displayed.');\n $this->clickLink('Bar');\n $this->assertRaw('Foo', 'Title field was found.');\n\n // Change the name through the API\n /** @var \\Drupal\\entity_gallery\\EntityGalleryTypeInterface $entity_gallery_type */\n $entity_gallery_type = EntityGalleryType::load('page');\n $entity_gallery_type->set('name', 'NewBar');\n $entity_gallery_type->save();\n\n /** @var \\Drupal\\Core\\Entity\\EntityTypeBundleInfoInterface $bundle_info */\n $bundle_info = \\Drupal::service('entity_type.bundle.info');\n $entity_gallery_bundles = $bundle_info->getBundleInfo('entity_gallery');\n $this->assertEqual($entity_gallery_bundles['page']['label'], 'NewBar', 'Entity gallery type bundle cache is updated');\n }", "title": "" }, { "docid": "61196d0c01686f75be63f6210e56093c", "score": "0.497521", "text": "function getFeatured() {\n\t\treturn $this->getData('featured');\n\t}", "title": "" }, { "docid": "53e19b04a500be7f4855cc11aa34dd24", "score": "0.49736252", "text": "public function test_guest_can_browse_articles_by_tags(){\n factory('App\\Admin')->create();\n $tag = factory('App\\Tag')->create();\n $article = factory('App\\Article')->create();\n factory('App\\ArticleTag')->create();\n\n //then guests should see the article in that tag\n $responce = $this->get('/articles/tags/'. $tag->name);\n $responce->assertSee($article->title, $article->excerpt, $article->author->name);\n }", "title": "" }, { "docid": "fa2b3fa1d3db2b7d385cb9f4aa4943fd", "score": "0.4971975", "text": "public function ChangeFeaturedExperience()\n\t{\n\t\t$ingIDD = $this->input->post('imgId');\n\t\t$FtrId = $this->input->post('FtrId');\n\t\t$currentPage = $this->input->post('cpage');\n\t\t$dataArr = array('featured' => $FtrId);\n\t\t$condition = array('experience_id' => $ingIDD);\n\t\t$this->experience_model->update_details(EXPERIENCE, $dataArr, $condition);\n\t\techo $result = ($FtrId == 1) ? 'Featured' : 'Unfeatured';\n\t\t//echo $result=$FtrId;\n\t}", "title": "" }, { "docid": "9273243a037c81578069a829b0c1cb1e", "score": "0.49507815", "text": "public function testCanEditEntity()\n {\n $user = $this->user;\n $this->browse(function (Browser $browser) use ($user) {\n $browser->loginAs($user);\n $browser->visitRoute('calculations.index');\n\n $name = $browser->text('#calculation-1 td:first-child');\n $newName = 'New name';\n\n $link = $browser->attribute('#calculation-1 td:first-child', 'href');\n\n $browser->click('.btn-group a:nth-child(2)')\n ->waitForLink($link)\n ->clear('name')\n ->type('name', $newName)\n ->press('Сохранить')\n ->waitFor('.swal2-confirm')\n ->click('.swal2-confirm')\n ->pause(1000)\n ->assertDontSee($name)\n ->assertSee($newName);\n });\n }", "title": "" }, { "docid": "51ebc49d75cfb24685686e0e18ca6f3e", "score": "0.49463558", "text": "function testAccessAsEditor($d1, $d2) {\n\n\t\t// Create a \\Scrivo\\ListItemDefinition object and do some crud\n\t\t// operations on it.\n\t\t$tmp = new \\Scrivo\\ListItemDefinition(self::$context);\n\t\t$this->setListItemDefinitionProperties($tmp, $d1);\n\t\t$tmp->insert();\n\n\t\t$cfg = new \\Scrivo\\Config(new \\Scrivo\\Str(\"test_config\"));\n\t\t$context = new \\Scrivo\\Context($cfg, self::EDITOR_USER_ID);\n\n\t\t// Creating/inserting a new \\Scrivo\\ListItemDefinition object as\n\t\t// editor should not succeed.\n\t\t$test = \"\";\n\t\t$new = new \\Scrivo\\ListItemDefinition($context);\n\t\t$this->setListItemDefinitionProperties($new, $d2);\n\t\ttry {\n\t\t\t$new->insert();\n\t\t} catch (\\Scrivo\\ApplicationException $e) {\n\t\t\t$test = \"Catch and release\";\n\t\t}\n\t\t$this->assertEquals(\"Catch and release\", $test);\n\n\t\t// Loading a \\Scrivo\\ListItemDefinition object as editor should\n\t\t// succeed ...\n\t\t$object = \\Scrivo\\ListItemDefinition::fetch($context, $tmp->id);\n\n\t\t// ... but updating not.\n\t\t$test = \"\";\n\t\ttry {\n\t\t\t$object->update();\n\t\t} catch (\\Scrivo\\ApplicationException $e) {\n\t\t\t$test = \"Catch and release\";\n\t\t}\n\t\t$this->assertEquals(\"Catch and release\", $test);\n\n\t\t// And deleting should not be possible too.\n\t\t$test = \"\";\n\t\ttry {\n\t\t\t\\Scrivo\\ListItemDefinition::delete($context, $object->id);\n\t\t} catch (\\Scrivo\\ApplicationException $e) {\n\t\t\t$test = \"Catch and release\";\n\t\t}\n\t\t$this->assertEquals(\"Catch and release\", $test);\n\n\t\t// Loading lists should succeed.\n\t\t$all = \\Scrivo\\ListItemDefinition::select(\n\t\t\t$context, self::APPLICATION_DEFINITION_ID);\n\t}", "title": "" }, { "docid": "aaa5fb678a3a9c172fd40bbb3e4aced6", "score": "0.4941976", "text": "function et_toggle_job_feature($job_id){\n\tglobal $current_user;\n\t// return failure if current logged user doesn't have permission\n\tif ( !current_user_can('administrator') )\n\t\treturn new WP_Error('not_permission', __('You don\\'t have permission to perform this action', ET_DOMAIN) );\n\n\t$featured = et_get_post_field( $job_id, 'featured' );\n\t$new = $featured;\n\tif ( $featured )\n\t\t$new = 0;\n\telse \n\t\t$new = 1;\n\n\tet_update_post_field($job_id, 'featured', $new);\n\treturn true;\n}", "title": "" }, { "docid": "05bdc3c2868b0b915a1e41a0eb93fc8e", "score": "0.4939532", "text": "public function testArticlesV2Get0()\n {\n }", "title": "" }, { "docid": "c73b99c407e448966f8720d56184f127", "score": "0.49380216", "text": "public function show(FeaturedProject $featuredProject)\n {\n //\n \n }", "title": "" }, { "docid": "a9b35105abce451f23e3934910061272", "score": "0.49287012", "text": "public function featured($pks, $value = 0)\n\t{\n\t\t// Sanitize the ids.\n\t\t$pks = (array) $pks;\n\t\tJArrayHelper::toInteger($pks);\n\n\t\tif (empty($pks))\n\t\t{\n\t\t\t$this->setError(JText::_('COM_CONTENT_NO_ITEM_SELECTED'));\n\n\t\t\treturn false;\n\t\t}\n\n\t\t$table = $this->getTable('Featured', 'CooltouramanTable');\n\n\t\ttry\n\t\t{\n\t\t\t$db = $this->getDbo();\n\t\t\t$query = $db->getQuery(true)\n\t\t\t\t\t\t->update($db->quoteName('#__cooltouraman_template'))\n\t\t\t\t\t\t->set('featured = ' . (int) $value)\n\t\t\t\t\t\t->where('id IN (' . implode(',', $pks) . ')');\n\t\t\t$db->setQuery($query);\n\t\t\t$db->execute();\n\n\t\t\tif ((int) $value == 0)\n\t\t\t{\n\t\t\t\t// Adjust the mapping table.\n\t\t\t\t// Clear the existing features settings.\n\t\t\t\t$query = $db->getQuery(true)\n\t\t\t\t\t\t\t->delete($db->quoteName('#__cooltouraman_template_frontpage'))\n\t\t\t\t\t\t\t->where('template_id IN (' . implode(',', $pks) . ')');\n\t\t\t\t$db->setQuery($query);\n\t\t\t\t$db->execute();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// First, we find out which of our new featured articles are already featured.\n\t\t\t\t$query = $db->getQuery(true)\n\t\t\t\t\t->select('f.template_id')\n\t\t\t\t\t->from('#__cooltouraman_template_frontpage AS f')\n\t\t\t\t\t->where('template_id IN (' . implode(',', $pks) . ')');\n\t\t\t\t$db->setQuery($query);\n\n\t\t\t\t$old_featured = $db->loadColumn();\n\n\t\t\t\t// We diff the arrays to get a list of the articles that are newly featured\n\t\t\t\t$new_featured = array_diff($pks, $old_featured);\n\n\t\t\t\t// Featuring.\n\t\t\t\t$tuples = array();\n\n\t\t\t\tforeach ($new_featured as $pk)\n\t\t\t\t{\n\t\t\t\t\t$tuples[] = $pk . ', 0';\n\t\t\t\t}\n\n\t\t\t\tif (count($tuples))\n\t\t\t\t{\n\t\t\t\t\t$db = $this->getDbo();\n\t\t\t\t\t$columns = array('template_id', 'ordering');\n\t\t\t\t\t$query = $db->getQuery(true)\n\t\t\t\t\t\t->insert($db->quoteName('#__cooltouraman_template_frontpage'))\n\t\t\t\t\t\t->columns($db->quoteName($columns))\n\t\t\t\t\t\t->values($tuples);\n\t\t\t\t\t$db->setQuery($query);\n\t\t\t\t\t$db->execute();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (Exception $e)\n\t\t{\n\t\t\t$this->setError($e->getMessage());\n\t\t\treturn false;\n\t\t}\n\n\t\t$table->reorder();\n\n\t\t$this->cleanCache();\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "7971a8bcb02662ee31241c99eccb2466", "score": "0.4927944", "text": "public function testEditCd(){\n $data = array(\n \"quantity\"=>99\n );\n $token = $this->getTokenAdmin();\n $headers = array(\n \"Authorization\"=>\"Bearer $token\"\n );\n $this->put('/cd/1', $data, $headers);\n $this->seeStatusCode(201);\n $this->seeJsonContains([\n 'success' => true, \n 'message' => 'Edit existing CD success',\n ]);\n }", "title": "" }, { "docid": "31cecc7b9aef6ea2e5300beae3710922", "score": "0.49272195", "text": "public function test()\n {\n $id = new ObjectId();\n $result = TestEntityLazySimpleId::lazyload($id);\n\n $this->assertInstanceOf(TestEntityLazySimpleId::class, $result);\n }", "title": "" }, { "docid": "1e7d54760efd5b60e97f31c09d852039", "score": "0.49235567", "text": "public function testDesignCommentsIdRepliesFkGet()\n {\n\n }", "title": "" }, { "docid": "3d4d5e2e186eef07d21ad33a132eb2da", "score": "0.49232936", "text": "public function testEdit()\n {\n $user = User::first();\n\n $this->seed(\\PostsTableSeeder::class);\n\n $post = Post::firstOrFail();\n\n $response = $this->actingAs($user)->get(route('posts.edit', ['post' => $post->id]));\n $response->assertStatus(200)\n ->assertViewIs('admin.posts.edit');\n }", "title": "" }, { "docid": "6b0f2e4f8a497680da4c54cb34c45bc8", "score": "0.4920295", "text": "public function run()\n\t{\n\t\t\\DB::table('fs_content')->whereIn('article_id', [300,301,302,303,304] )->delete();\n\t\t\\DB::table('fs_content')->insert(\n array(\n \t\t\tarray (\n \t\t\t\t'article_id' => 300,\n \t\t\t\t'menu_label' => '',\n \t\t\t\t'link' => '',\n \t\t\t\t'published' => 1,\n \t\t\t\t'language' => 'de',\n \t\t\t\t'data' => '[\n \t\t\t\t\t{\n \t\t\t\t\t\t\"content\":[\n \t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\t\"type\": \"block\",\n \t\t\t\t\t\t\t\t\"column\": 2,\n \t\t\t\t\t\t\t\t\"media\": [\n \t\t\t\t\t\t\t\t],\n \t\t\t\t\t\t\t\t\"content\": \"#Frontend-Entwickler/-in C&num; in Berlin\\\\n##Deine Herausforderungen:\\\\n- Du arbeitest an der Weiterentwicklung und Optimierung unseres Dokumentationssystems COPRA\\\\n- Gemeinsam mit dem Produktmanagement entwickelst du intuitive Oberflächenkonzepte für die komplexe medizinische Dokumentation\\\\n- Deine Oberflächen kommen in verschiedenen Bereichen des klinischen Umfelds zum Einsatz beispielsweise Operationssäle, Bettplätze und mobile Arbeitsstationen mit und ohne Touchscreen\\\\n##Deine Stärken:\\\\n- Du bist überzeugt von agilen Methoden und testgetriebener Programmierung in der Softwareentwicklung\\\\n- Du hast praktische Erfahrungen im Bereich Frontend-Entwicklung mit dem .Net Framework 4.0/4.5\\\\n- Deine Fähigkeiten gehen über die Standardverwendung von WPF & Xaml hinaus\\\\n- Entwicklungskonzepte wie MVVM oder Dependency Injection sind dir bekannt\\\\n- Idealerweise hast du schon mit Tools wie Resharper, Teamcity und Git gearbeitet\\\\n- Du hast höchste Ansprüche an die Qualität deiner Arbeit und verlierst auch in hektischen Zeiten weder deinen Kopf noch deinen Humor\\\\n##Deine Perspektiven:\\\\n- Wir bieten dir eine hochwertige und aktuelle Entwicklungsinfrastruktur mit Continuous Integration und automatisierten Tests\\\\n- Du arbeitest in einem jungen und hoch motiviertem SCRUM Team mit flachen Hierarchien und kurzen Entscheidungswegen\\\\n- Wir unterstützen deine eigenständige und kontinuierliche Weiterbildung beispielsweise die Teilnahme an Fachvorträgen, Community Events und Schulungen\\\\n- Wir bieten eine unbefristete Anstellung, ein attraktives Gehalt und viel Raum für individuelle Entwicklung\\\\n##Kontakt\\\\nHaben wir dein Interesse geweckt? Dann sende uns deine aussagekräftige, digitale Bewerbung an <a href=\\\"mailto:[email protected]\\\">[email protected]</a>.\"\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'created_at' => date(\"Y-m-d h:i:s\"),\n \t\t\t\t'updated_at' => date(\"Y-m-d h:i:s\"),\n \t\t\t),\n \t\t\tarray (\n \t\t\t\t'article_id' => 301,\n \t\t\t\t'menu_label' => '',\n \t\t\t\t'link' => '',\n \t\t\t\t'published' => 1,\n \t\t\t\t'language' => 'de',\n \t\t\t\t'data' => '[\n \t\t\t\t\t{\n \t\t\t\t\t\t\"content\":[\n \t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\t\"type\": \"block\",\n \t\t\t\t\t\t\t\t\"column\": 2,\n \t\t\t\t\t\t\t\t\"media\": [\n \t\t\t\t\t\t\t\t],\n \t\t\t\t\t\t\t\t\"content\": \"#Produktmanager in Berlin\\\\n##Deine Herausforderungen:\\\\n- Du arbeitest an der Weiterentwicklung unserer elektronischen Patientenakte COPRA\\\\n- Ein regelmäßiger Austausch mit Ärzten, Pflegern und anderem Fachpersonal aus der Medizin wird dir Input für Ideen geben, wie deren Arbeit durch COPRA erleichtert werden kann\\\\n- Gemeinsam mit einem UI/UX-Designer und einem Team an Fachberatern und Programmierern entwickelst du intuitive Konzepte für die vielfältige medizinische Dokumentation\\\\n- Anhand den von dir erstellten Spezifikationen (Stories) werden Schätzungen gemacht, die du für die Erstellung und Kommunikation einer Produktroadmap nutzt\\\\n- Du bist der fachliche Ansprechpartner für das Entwicklerteam und versorgst dieses mit Aufgaben\\\\n- Die von dir konzipierten Funktionen kommen in verschiedenen Bereichen des klinischen Umfelds zum Einsatz. COPRA ist vom OP über die Intensivstation bis in den Normalbereich verbreitet und bekannt\\\\n##Deine Stärken:\\\\n- Du bringst Berufserfahrungen aus dem klinischen Bereich mit oder warst bereits als Produktmanager in einem agilen Entwicklungsumfeld tätig\\\\n- Du hast eine Affinität zur digitalen Welt und warst bereits zuvor in der Entwicklung eines Softwaresystems oder einer App beteiligt\\\\n- Du bist hungrig darauf, die Wünsche und Probleme unserer Anwender zu hören, Lösungsmöglichkeiten zu diskutieren und diese in technische Konzepte zu überführen\\\\n- Analytische Fähigkeiten erlauben dir, eine Grundstruktur zu einem Problem zu entwickeln, die sich in anderen Lösungsansätzen wieder findet\\\\n- Du integrierst dich gut in ein neues Team, arbeitest strukturiert und selbstständig\\\\n- Du bist ein geduldiger und kreativer Diskussionspartner\\\\n- Ein Plus: Du hast bereits mit Techniken wie Event Storming und User Story Mapping gearbeitet\\\\n- Du hast höchste Ansprüche an die Qualität deiner Arbeit und verlierst auch in hektischen Zeiten weder deinen Kopf noch deinen Humor\\\\n##Deine Perspektiven:\\\\n- Wir bieten dir ein angenehmes und modernes Arbeitsumfeld in 15 Minuten Entfernung von Berlins Mitte\\\\n- Du arbeitest in einem jungen und hoch motiviertem SCRUM Team mit flachen Hierarchien und kurzen Entscheidungswegen\\\\n- Wir unterstützen deine eigenständige und kontinuierliche Weiterbildung, beispielsweise durch die Teilnahme an Community Events und Schulungen\\\\n- Wir bieten eine unbefristete Anstellung, ein attraktives Gehalt und viel Raum für individuelle Entwicklung\\\\n##Kontakt\\\\nHaben wir dein Interesse geweckt? Dann sende uns deine aussagekräftige, digitale Bewerbung an <a href=\\\"mailto:[email protected]\\\">[email protected]</a>.\"\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'created_at' => date(\"Y-m-d h:i:s\"),\n \t\t\t\t'updated_at' => date(\"Y-m-d h:i:s\"),\n \t\t\t),\n \t\t\tarray (\n \t\t\t\t'article_id' => 302,\n \t\t\t\t'menu_label' => '',\n \t\t\t\t'link' => '',\n \t\t\t\t'published' => 1,\n \t\t\t\t'language' => 'de',\n \t\t\t\t'data' => '[\n \t\t\t\t\t{\n \t\t\t\t\t\t\"content\":[\n \t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\t\"type\": \"block\",\n \t\t\t\t\t\t\t\t\"column\": 2,\n \t\t\t\t\t\t\t\t\"media\": [\n \t\t\t\t\t\t\t\t],\n \t\t\t\t\t\t\t\t\"content\": \"#Schnittstellen-Entwickler/-in C&num; in Berlin\\\\n##Deine Herausforderungen:\\\\n- Du arbeitest an der Weiterentwicklung und Optimierung unseres Dokumentationssystems COPRA\\\\n- Du entwickelst Kommunikationsschnittstellen zwischen COPRA und medizinischen Geräten sowie anderen Krankenhausinformationssystemen\\\\n- Du setzt dich mit den technischen Anforderungen der externen Schnittstellen auseinander und entwickelst passgenaue Lösungen für COPRA\\\\n##Deine Stärken:\\\\n- Du bist überzeugt von agilen Methoden und testgetriebener Programmierung in der Softwareentwicklung\\\\n- Du hast praktische Erfahrung in der Entwicklung von verteilten Anwendungen mit dem .Net Framework 4.0/4.5\\\\n- Du hast bereits serielle Schnittstellen implementiert\\\\n- Du bist sicher in der Implementierung asynchroner Prozesse und gängige Entwicklungsmuster wie Inversion Of Control sind dir bekannt\\\\n- Du verfügst über SQL-Kenntnisse und hast bereits Erfahrungen mit relationalen Datenbanken gesammelt\\\\n- Hilfreich für deine Arbeit sind Einblicke in den Umgang mit REST-Schnittstellen, XML, JSON und HL7\\\\n- Idealerweise kennst du dich mit Tools wie Resharper, Teamcity und Git aus\\\\n- Du hast höchste Ansprüche an die Qualität deiner Arbeit und verlierst auch in hektischen Zeiten weder deinen Kopf noch deinen Humor\\\\n##Deine Perspektiven:\\\\n- Wir bieten dir eine hochwertige und aktuelle Entwicklungsinfrastruktur mit Continuous Integration und automatisierten Tests\\\\n- Du arbeitest in einem jungen und hoch motiviertem SCRUM Team mit flachen Hierarchien und kurzen Entscheidungswegen\\\\n- Wir unterstützen deine eigenständige und kontinuierliche Weiterbildung beispielsweise die Teilnahme an Fachvorträgen, Community Events und Schulungen\\\\n- Wir bieten eine unbefristete Anstellung, ein attraktives Gehalt und viel Raum für individuelle Entwicklung\\\\n- \\\\n##Kontakt\\\\nHaben wir dein Interesse geweckt? Dann sende uns deine aussagekräftige, digitale Bewerbung an <a href=\\\"mailto:[email protected]\\\">[email protected]</a>.\"\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'created_at' => date(\"Y-m-d h:i:s\"),\n \t\t\t\t'updated_at' => date(\"Y-m-d h:i:s\"),\n \t\t\t),\n\t\t\tarray (\n \t\t\t\t'article_id' => 303,\n \t\t\t\t'menu_label' => '',\n \t\t\t\t'link' => '',\n \t\t\t\t'published' => 1,\n \t\t\t\t'language' => 'de',\n \t\t\t\t'data' => '[\n \t\t\t\t\t{\n \t\t\t\t\t\t\"content\":[\n \t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\t\"type\": \"block\",\n \t\t\t\t\t\t\t\t\"column\": 2,\n \t\t\t\t\t\t\t\t\"media\": [\n \t\t\t\t\t\t\t\t],\n \t\t\t\t\t\t\t\t\"content\": \"#Teamleiter/-in Softwareentwicklung C&num; in Berlin\\\\n##Deine Herausforderungen:\\\\n- Gemeinsam mit dem Produktmanagement gestaltest du die technische und strategische Entwicklung unseres Dokumentationssystems COPRA\\\\n- Als Ansprechpartner auf Augenhöhe bist du dafür verantwortlich, die Mitglieder deines interdisziplinären Teams, bestehend aus Softwareentwicklung, Qualitätssicherung und technischer Redaktion zu fördern und ein angenehmes und produktives Arbeitsumfeld sicherzustellen\\\\n- Als Prozessverantwortlicher steuerst du Ablauf und Einhaltung eines ISO 13485 konformen Softwareentwicklungsprozesses\\\\n##Deine Stärken:\\\\n- Du hast ein abgeschlossenes Studium im Fachbereich Informatik oder eine vergleichbare Qualifikation\\\\n- Du kannst Erfahrungen in der fachlichen und disziplinarischen Leitung von Entwicklungsteams vorweisen\\\\n- Du verfügst über mehrjährige Berufspraxis in der Entwicklung von verteilten Applikationen mit dem .Net Framework\\\\n- Du bist aufgeschlossen und verstehst es zu überzeugen und zielgruppenorientiert zu kommunizieren\\\\n- Du bist überzeugt von agilen Methoden und testgetriebener Programmierung\\\\n- Eine Zertifizierung zum SCRUM-Master rundet dein Profil ab\\\\n##Deine Perspektiven:\\\\n- Dich erwartet ein sympathisches und hochmotiviertes Team, welches einen respekt- und vertrauensvollen Umgang pflegt\\\\n- Wir laden dich dazu ein das Arbeitsumfeld für dich und deine Mitarbeiter deinen Vorstellungen entsprechend mitzugestalten\\\\n- Wir unterstützen deine eigenständige und kontinuierliche Weiterbildung beispielsweise die Teilnahme an Fachvorträgen, Community Events und Schulungen\\\\n- Wir bieten eine unbefristete Anstellung, ein attraktives Gehalt und viel Raum für individuelle Entwicklung\\\\n##Kontakt\\\\nHaben wir dein Interesse geweckt? Dann sende uns deine aussagekräftige, digitale Bewerbung an <a href=\\\"mailto:[email protected]\\\">[email protected]</a>.\"\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'created_at' => date(\"Y-m-d h:i:s\"),\n \t\t\t\t'updated_at' => date(\"Y-m-d h:i:s\"),\n \t\t\t),\n\t\t\tarray (\n \t\t\t\t'article_id' => 304,\n \t\t\t\t'menu_label' => '',\n \t\t\t\t'link' => '',\n \t\t\t\t'published' => 1,\n \t\t\t\t'language' => 'de',\n \t\t\t\t'data' => '[\n \t\t\t\t\t{\n \t\t\t\t\t\t\"content\":[\n \t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\t\"type\": \"block\",\n \t\t\t\t\t\t\t\t\"column\": 2,\n \t\t\t\t\t\t\t\t\"media\": [\n \t\t\t\t\t\t\t\t],\n \t\t\t\t\t\t\t\t\"content\": \"#Software-Tester/-in C&num; in Berlin\\\\n##Deine Herausforderungen:\\\\n- Als Verstärkung unserer Testabteilung bist du mitverantwortlich für die Qualitätssicherung unseres Dokumentationssystems COPRA\\\\n- Du versetzt dich in die Position unserer Anwender und erstellst realitätsnahe Testszenarien, beispielsweise für den Einsatz auf der Intensivstation oder im OP\\\\n- In enger Zusammenarbeit mit der Entwicklungsabteilung bist du verantwortlich für Planung, Durchführung und Dokumentation der Softwaretests\\\\n- Du nutzt das Potential von Automatisierung, um die Durchführung von Testabläufen zu optimieren\\\\n##Deine Stärken:\\\\n- Du verfügst bereits über fundierte Erfahrung im manuellen und automatisierten Softwaretesten\\\\n- Idealerweise hast du eine Ausbildung zum Softwaretester abgeschlossen und kennst dich mit Testautomatisierungs- und Testmanagementtools aus\\\\n- Du bist vertraut im Umgang mit Hyper-V und bewegst dich sicher im Windowsumfeld\\\\n- Du hast höchste Ansprüche an die Qualität deiner Arbeit und verlierst auch in hektischen Zeiten weder deinen Kopf noch deinen Humor\\\\n##Deine Perspektiven:\\\\n- Wir bieten dir eine hochwertige und aktuelle Infrastruktur, die du deinen Bedürfnissen gerecht mitgestalten kannst\\\\n- Du arbeitest in einem jungen und hoch motiviertem SCRUM Team mit flachen Hierarchien und kurzen Entscheidungswegen\\\\n- Wir unterstützen deine eigenständige und kontinuierliche Weiterbildung beispielsweise die Teilnahme an Fachvorträgen, Community Events und Schulungen\\\\n- Wir bieten eine unbefristete Anstellung, ein attraktives Gehalt und viel Raum für individuelle Entwicklung\\\\n##Kontakt\\\\nHaben wir dein Interesse geweckt? Dann sende uns deine aussagekräftige, digitale Bewerbung an <a href=\\\"mailto:[email protected]\\\">[email protected]</a>.\"\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'created_at' => date(\"Y-m-d h:i:s\"),\n \t\t\t\t'updated_at' => date(\"Y-m-d h:i:s\"),\n \t\t\t),\n\t\t)\n );\n\n\t\t/*\n\t\t* Insert into stream\n\t\t */\n\t\t\\DB::table('fs_stream')->where('stream', 'jobs' )->delete();\n\t\t\\DB::table('fs_stream')->insert(array (\n\t\t\tarray (\n\t\t\t\t'stream' => 'jobs',\n\t\t\t\t'parent_id' => 0,\n\t\t\t\t'position' => 2,\n\t\t\t\t'article_id' => 302,\n\t\t\t),\n\t\t\tarray (\n\t\t\t\t'stream' => 'jobs',\n\t\t\t\t'parent_id' => 0,\n\t\t\t\t'position' => 3,\n\t\t\t\t'article_id' => 300,\n\t\t\t),\n\t\t\tarray (\n\t\t\t\t'stream' => 'jobs',\n\t\t\t\t'parent_id' => 0,\n\t\t\t\t'position' => 1,\n\t\t\t\t'article_id' => 301,\n\t\t\t),\n\t\t\tarray (\n\t\t\t\t'stream' => 'jobs',\n\t\t\t\t'parent_id' => 0,\n\t\t\t\t'position' => 4,\n\t\t\t\t'article_id' => 303,\n\t\t\t),\n\t\t\tarray (\n\t\t\t\t'stream' => 'jobs',\n\t\t\t\t'parent_id' => 0,\n\t\t\t\t'position' => 5,\n\t\t\t\t'article_id' => 304,\n\t\t\t),\n\t\t));\n }", "title": "" }, { "docid": "715e2f6a4c46b4a232cef37165e8063f", "score": "0.4916599", "text": "public function testEntityViewHook() {\n // Create a node.\n $entity_type_manager = $this->container->get('entity_type.manager');\n $entity_type_manager->getStorage('node_type')\n ->create([\n 'type' => 'page',\n 'display_submitted' => FALSE,\n ])\n ->save();\n\n $node = $entity_type_manager->getStorage('node')\n ->create([\n 'title' => 'test',\n 'type' => 'page',\n ]);\n $node->save();\n\n // Build the node render array and render it, so that hook_entity_view() is\n // invoked.\n $view_builder = $entity_type_manager->getViewBuilder('node');\n $build = $view_builder->view($node);\n $this->container->get('renderer')->renderPlain($build);\n }", "title": "" }, { "docid": "d630dd4b7517b244f3bebd6070d97a3f", "score": "0.49144167", "text": "public function testDesignCommentsFindOneGet()\n {\n\n }", "title": "" }, { "docid": "7c1899a0c0bdba2300b3f1e487a96888", "score": "0.4914297", "text": "public function testModificationOfCustomFields()\n {\n $track = factory(Track::class)->create([\n 'active' => true,\n 'content' => [\n ['db' => 'sponsor', 'title' => 'Sponsor', 'helptext' => null, 'type' => 'shorttext', 'rules' => ['required', 'min:3']],\n ],\n ]);\n $show = factory(Show::class)->create([\n 'track_id' => $track->id,\n 'term_id' => $this->term->id,\n ]);\n $show->hosts()->attach($this->host, ['accepted' => true]);\n\n $request = $this->actingAs($this->host, 'api')->json('PATCH', \"/api/v1/shows/{$show->id}\", [\n 'content' => [\n 'sponsor' => 'asdf',\n ],\n ]);\n $request->assertOk();\n $testShow = Show::find($show->id);\n $this->assertEquals('asdf', $testShow->content['sponsor']);\n }", "title": "" }, { "docid": "dcabdf42d841f1e65ed27cb3f67f2be4", "score": "0.4911903", "text": "private function saveFeatured(Request $request, Post $post)\n {\n if ($request->featured == '1') {\n $currently_featured = Post::where('featured', 1)->first();\n if (!is_null($currently_featured)) {\n $currently_featured->featured = false;\n $currently_featured->save();\n }\n $post->featured = true;\n } else {\n $post->featured = false;\n }\n }", "title": "" }, { "docid": "c7aaa5808093d400c865a2fc1ccb8fd4", "score": "0.4909147", "text": "function columns_content_services($column_name, $post_ID) {\n if ( $column_name == 'services_image' ) {\n $post_featured_image = get_featured_image($post_ID);\n \n if ( $post_featured_image ) {\n echo '<div style=\"background:url('.$post_featured_image.'); height: 64px; width: 64px; background-position: 50% 50%; background-size: cover\"></div>'; \n } else {\n echo 'No preview available';\n }\n }\n}", "title": "" }, { "docid": "78d7db82bd11fd3e7a340b9ea84f25b4", "score": "0.49065962", "text": "protected function landing_featured_question(){\r\n\t\t\r\n\t\t/* Get data */\r\n\t\t$itemsModel = $this->getModel('items');\r\n\t\t$featureditem = $itemsModel->getIndexFeatured($this->_itemtype);\r\n\t\t$link = Uri::build($featureditem);\r\n\t\t\r\n\t\t/* Load template */\r\n\t\tinclude(BLUPATH_TEMPLATES . '/questions/landing/featured.php');\r\n\t\t\r\n\t}", "title": "" }, { "docid": "80425d1d1ed8a3734e27e6411eb444e6", "score": "0.49039707", "text": "public function testSoftDeletedInDb()\n {\n $this->assertNull($this->find($this->models[3]->id));\n\n $instance = $this->getTestModelInstance();\n $this->assertInstanceOf(\n $this->getTestModelClass(),\n $instance->newQuery()->withTrashed()->find($this->models[3]->id)\n );\n }", "title": "" }, { "docid": "0544c8c3be747a0c1164ea0499064f31", "score": "0.48958024", "text": "public function makeFeatured(Request $request, $id) {\n $previousFeature = Post::where('featured', '=', 'YES')->first();\n if($previousFeature) {\n $previousFeature->featured = '1';\n $previousFeature->save();\n }\n\n // now, make the selected one featured\n $newFeatured = Post::find($id);\n\n $newFeatured->featured = 'YES';\n $newFeatured->save();\n\n Session::flash('success', 'সফলভাবে ফিচারড করা হয়েছে');\n \n //redirect\n return redirect()->route('posts.allblogposts');\n }", "title": "" }, { "docid": "2d94e20b6a1b678a039f4b4ad59be8cc", "score": "0.4895077", "text": "public function testAdminPostEdit()\n {\n $user = factory(User::class, 'admin')->create();\n $post = factory(Post::class)->create();\n $user->posts()->save($post);\n\n $this->actingAs($user)\n ->visit(route('admin.posts.edit', ['post_id' => $post->id]))\n ->type('This is a good post 2', 'name')\n ->type('This is a good post 2', 'slug')\n ->type('This is the posts body 2', 'content')\n ->press('Save');\n\n $this->seeInDatabase('posts', [\n 'name' => 'This is a good post 2',\n 'slug' => str_slug('This is a good post 2'),\n ]);\n }", "title": "" }, { "docid": "5c26e621743e193f40b3dd993d00411b", "score": "0.48930767", "text": "function afb_get_featured_box( $id ) {\n global $wpdb;\n\n return $wpdb->get_row( $wpdb->prepare( 'SELECT * FROM ' . $wpdb->prefix . 'posts WHERE id = %d', $id ) );\n}", "title": "" }, { "docid": "bdaa5c05b2b6f3b76a771aad431804ec", "score": "0.48918474", "text": "public function testViewActionSuccess()\r\n {\r\n //Create a new property to ensure that there is one to view in the database\r\n $property = new Property();\r\n $property->setSiteId(1593843);\r\n $property->setPropertyName(\"Charlton Arms\");\r\n $property->setPropertyType(\"Townhouse Condo\");\r\n $property->setPropertyStatus(\"Active\");\r\n $property->setNumUnits(5);\r\n $property->setNeighbourhoodName(\"Sutherland\");\r\n $property->setNeighbourhoodId(\"O48\");\r\n // Have to create a new valid address too otherwise doctrine will fail\r\n $address = new Address();\r\n $address->setStreetAddress(\"12 15th st east\");\r\n $address->setPostalCode(\"S0E 1A0\");\r\n $address->setCity(\"Saskatoon\");\r\n $address->setProvince(\"Saskatchewan\");\r\n $address->setCountry(\"Canada\");\r\n $property->setAddress($address);\r\n\r\n //Create a client to go through the web page\r\n $client = static::createClient(array(), array('PHP_AUTH_USER' => 'admin', 'PHP_AUTH_PW' => 'password'));\r\n\r\n //Get the entity manager and the repo so we can make sure a property exists before editing it\r\n $em = $client->getContainer()->get('doctrine.orm.entity_manager');\r\n $repo = $em->getRepository(Property::class);\r\n //insert the property\r\n $propertyId = $repo->save($property);\r\n\r\n\r\n //Request the property view page for the property that was just inserted\r\n $crawler = $client->request('GET',\"/property/$propertyId\");\r\n\r\n // Assert that all the proper labels are on the page\r\n $this->assertGreaterThan(0, $crawler->filter('html:contains(\"Site Id\")')->count());\r\n $this->assertGreaterThan(0, $crawler->filter('html:contains(\"Property Name:\")')->count());\r\n $this->assertGreaterThan(0, $crawler->filter('html:contains(\"Property Type:\")')->count());\r\n $this->assertGreaterThan(0, $crawler->filter('html:contains(\"Property Status:\")')->count());\r\n $this->assertGreaterThan(0, $crawler->filter('html:contains(\"Num Units:\")')->count());\r\n $this->assertGreaterThan(0, $crawler->filter('html:contains(\"Neighbourhood Name:\")')->count());\r\n $this->assertGreaterThan(0, $crawler->filter('html:contains(\"Neighbourhood Id:\")')->count());\r\n $this->assertGreaterThan(0, $crawler->filter('html:contains(\"Street Address:\")')->count());\r\n $this->assertGreaterThan(0, $crawler->filter('html:contains(\"Postal Code:\")')->count());\r\n $this->assertGreaterThan(0, $crawler->filter('html:contains(\"City:\")')->count());\r\n $this->assertGreaterThan(0, $crawler->filter('html:contains(\"Province:\")')->count());\r\n $this->assertGreaterThan(0, $crawler->filter('html:contains(\"Country:\")')->count());\r\n\r\n // Assert that all the data is also there\r\n $this->assertGreaterThan(0, $crawler->filter('html:contains(\"1593843\")')->count());\r\n $this->assertGreaterThan(0, $crawler->filter('html:contains(\"Charlton Arms\")')->count());\r\n $this->assertGreaterThan(0, $crawler->filter('html:contains(\"Townhouse Condo\")')->count());\r\n $this->assertGreaterThan(0, $crawler->filter('html:contains(\"Active\")')->count());\r\n $this->assertGreaterThan(0, $crawler->filter('html:contains(\"5\")')->count());\r\n $this->assertGreaterThan(0, $crawler->filter('html:contains(\"Sutherland\")')->count());\r\n $this->assertGreaterThan(0, $crawler->filter('html:contains(\"O48\")')->count());\r\n $this->assertGreaterThan(0, $crawler->filter('html:contains(\"12 15th st east\")')->count());\r\n $this->assertGreaterThan(0, $crawler->filter('html:contains(\"S0E 1A0\")')->count());\r\n $this->assertGreaterThan(0, $crawler->filter('html:contains(\"Saskatoon\")')->count());\r\n $this->assertGreaterThan(0, $crawler->filter('html:contains(\"Saskatchewan\")')->count());\r\n $this->assertGreaterThan(0, $crawler->filter('html:contains(\"Canada\")')->count());\r\n }", "title": "" }, { "docid": "046cd6a3d02814a0c550e00d4cc99b0e", "score": "0.4888269", "text": "public function testShow03(): void\n {\n $client = static::createClient([], [\n 'PHP_AUTH_USER' => UserUsername::USER_USERNAME_DEFAULT_ADMIN,\n 'PHP_AUTH_PW' => UserPassword::USER_PASSWORD_DEFAULT_VALUE,\n ]);\n\n $tests = $client->getContainer()->get('doctrine.orm.entity_manager')->getRepository(Test::class)->findAll();\n $id = end($tests)->getId();\n\n $client->request('GET', \"/admin/test/view/$id\");\n\n $this->save('result.html', $client->getResponse()->getContent());\n\n $this->assertEquals(Response::HTTP_OK, $client->getResponse()->getStatusCode());\n }", "title": "" }, { "docid": "233ebfcd080ebb6e73de3d1a45a4f34e", "score": "0.48869607", "text": "public function testGetEntitiesBySearch()\n {\n }", "title": "" }, { "docid": "6a977a9fd91b5d5b966db40ba7c26de6", "score": "0.48832864", "text": "public function testArticlesV2Get()\n {\n }", "title": "" }, { "docid": "20ab061528dee6e2b200b49ed858dc0f", "score": "0.48825595", "text": "protected function loadTests() {\n $entity = $this->controller->load('test_button');\n\n $this->assertTrue($entity instanceof EmbedButtonInterface, 'The loaded entity is an embed button.');\n\n // Verify several properties of the embed button.\n $this->assertEqual($entity->label(), 'Testing embed button instance');\n $this->assertEqual($entity->getEntityTypeMachineName(), 'node');\n $this->assertTrue($entity->uuid());\n }", "title": "" }, { "docid": "c2604c8acc9155f044a38d6f8f054667", "score": "0.48815775", "text": "public function testDelete03(): void\n {\n $client = static::createClient([], [\n 'PHP_AUTH_USER' => UserUsername::USER_USERNAME_DEFAULT_ADMIN,\n 'PHP_AUTH_PW' => UserPassword::USER_PASSWORD_DEFAULT_VALUE,\n ]);\n\n $tests = $client->getContainer()->get('doctrine.orm.entity_manager')->getRepository(Test::class)->findAll();\n $id = end($tests)->getId();\n\n $client->request('GET', \"/admin/test/delete/$id\");\n\n $this->save('result.html', $client->getResponse()->getContent());\n\n $client->followRedirect();\n\n $this->save('result02.html', $client->getResponse()->getContent());\n\n $this->assertEquals(Response::HTTP_OK, $client->getResponse()->getStatusCode());\n }", "title": "" }, { "docid": "7507689a30f3bde92b196a6127c027eb", "score": "0.48783115", "text": "public function featured($id){\n $this->_checkAjaxRequest();\n\n $oCar = RentalCar::where('id', $id)->first();\n if(!$oCar){\n return $this->_failedJsonResponse([['Car is not valid or has been removed.']]);\n }\n\n $oCar->featured = !$oCar->featured;\n $oCar->save();\n return $this->_successJsonResponse(['message'=>'Car information is updated.', 'data' => $oCar]);\n }", "title": "" }, { "docid": "86cc104f8e41b0e980f7d8939421ac1b", "score": "0.4877408", "text": "public function show($content_id)\n {\n //\n }", "title": "" }, { "docid": "220ddd8c39f9692067d17b5339850f57", "score": "0.48756692", "text": "public function testDesignCommentsIdRepliesPost()\n {\n\n }", "title": "" }, { "docid": "eb46b55f67aeb95894d73cb3efe2cf93", "score": "0.48709744", "text": "public function testEntityTranslationAccess() {\n\n // Set up a non-admin user that is allowed to view test entity translations.\n \\Drupal::currentUser()->setAccount($this->createUser(['uid' => 2], ['view test entity translations']));\n\n // Create two test languages.\n foreach (['foo', 'bar'] as $langcode) {\n ConfigurableLanguage::create([\n 'id' => $langcode,\n 'label' => $this->randomString(),\n ])->save();\n }\n\n $entity = EntityTest::create([\n 'name' => 'test',\n 'langcode' => 'foo',\n ]);\n $entity->save();\n\n $translation = $entity->addTranslation('bar');\n $this->assertEntityAccess([\n 'view' => TRUE,\n ], $translation);\n }", "title": "" }, { "docid": "9a996481ff9b0aaca172f162ba8b66a2", "score": "0.48706043", "text": "public function testBaseTableFields() {\n $data = $this->entityTypeManager->getHandler('entity_test', 'views_data')->getViewsData();\n\n $this->assertNumericField($data['entity_test']['id']);\n $this->assertViewsDataField($data['entity_test']['id'], 'id');\n $this->assertUuidField($data['entity_test']['uuid']);\n $this->assertViewsDataField($data['entity_test']['uuid'], 'uuid');\n $this->assertStringField($data['entity_test']['type']);\n $this->assertEquals('type', $data['entity_test']['type']['entity field']);\n\n $this->assertLanguageField($data['entity_test']['langcode']);\n $this->assertViewsDataField($data['entity_test']['langcode'], 'langcode');\n $this->assertEquals('Original language', $data['entity_test']['langcode']['title']);\n\n $this->assertStringField($data['entity_test']['name']);\n $this->assertViewsDataField($data['entity_test']['name'], 'name');\n\n $this->assertLongTextField($data['entity_test'], 'description');\n $this->assertViewsDataField($data['entity_test']['description__value'], 'description');\n $this->assertViewsDataField($data['entity_test']['description__format'], 'description');\n\n $this->assertUriField($data['entity_test']['homepage']);\n $this->assertViewsDataField($data['entity_test']['homepage'], 'homepage');\n\n $this->assertEntityReferenceField($data['entity_test']['user_id']);\n $this->assertViewsDataField($data['entity_test']['user_id'], 'user_id');\n\n $relationship = $data['entity_test']['user_id']['relationship'];\n $this->assertEquals('users_field_data', $relationship['base']);\n $this->assertEquals('uid', $relationship['base field']);\n\n // The string field name should be used as the 'entity field' but the actual\n // field should reflect what the column mapping is using for multi-value\n // base fields NOT just the field name. The actual column name returned from\n // mappings in the test mocks is 'value'.\n $this->assertStringField($data['entity_test__string']['string_value']);\n $this->assertViewsDataField($data['entity_test__string']['string_value'], 'string');\n $this->assertEquals([\n 'left_field' => 'id',\n 'field' => 'entity_id',\n 'extra' => [[\n 'field' => 'deleted',\n 'value' => 0,\n 'numeric' => TRUE,\n ],\n ],\n ], $data['entity_test__string']['table']['join']['entity_test']);\n }", "title": "" }, { "docid": "c8038e8c6a9cc35140022b9104dd7d9f", "score": "0.48706013", "text": "public function setUp() {\n $this->crud->setModel(\"App\\Models\\Gempabumi\");\n $this->crud->setRoute(\"admin/pengamatan/gempabumi\");\n $this->crud->setEntityNameStrings('Gempabumi', 'Gempabumi');\n\n /*\n |--------------------------------------------------------------------------\n | BASIC CRUD INFORMATION\n |--------------------------------------------------------------------------\n */\n\n $this->crud->setFromDb();\n $fields = [\n [ // DateTime\n 'name' => 'tanggal',\n 'label' => 'Tanggal',\n 'type' => 'date_picker'\n ], [\n 'name' => 'waktu',\n 'label' => 'Pukul',\n 'type' => 'timespinner'\n ], [\n 'name' => 'lintang',\n 'label' => 'Lintang',\n 'type' => 'text'\n ], [\n 'name' => 'bujur',\n 'label' => 'Bujur',\n 'type' => 'text'\n ], [\n 'name' => 'magnitudo',\n 'label' => 'Magnitudo',\n 'type' => 'text'\n ],[\n 'name' => 'kedalaman',\n 'label' => 'Kedalaman',\n 'type' => 'number'\n ], [\n 'name' => 'terasa',\n 'label' => 'dirasakan',\n 'type' => 'checkbox'\n ],\n [\n 'name' => 'dirasakan',\n 'label' => 'Intensitas',\n 'type' =>'text'\n ], [\n 'name' => 'tsunami',\n 'label' => 'Tsunami',\n 'type' => 'checkbox'\n ], [\n 'name' => 'sumber',\n 'label' => 'sumber',\n 'type' => 'select_from_array',\n 'options' => ['seicomp3'=> 'Seiscomp3', 'pgr 5'=>'PGR 5','jamstec' => 'Jamstec', 'pgn' => 'PGN']\n ]\n ];\n\n // ------ CRUD FIELDS\n // $this->crud->addField($options, 'update/create/both');\n $this->crud->addFields($fields, 'update/create/both');\n // $this->crud->removeField('name', 'update/create/both');\n // $this->crud->removeFields($array_of_names, 'update/create/both');\n\n // ------ CRUD COLUMNS\n $this->crud->addColumn('peta'); // add a single column, at the end of the stack\n //$this->crud->addColumns(); // add multiple columns, at the end of the stack\n // $this->crud->removeColumn('column_name'); // remove a column from the stack\n //$this->crud->removeColumns(['pga_z', 'pga_ns', 'pga_ew', 'id_gempabumi']); // remove an array of columns from the stack\n // $this->crud->setColumnDetails('column_name', ['attribute' => 'value']); // adjusts the properties of the passed in column (by name)\n $this->crud->setColumnDetails('tanggal', ['label' => 'Tanggal']);\n $this->crud->setColumnDetails('waktu', ['label' => 'Waktu']);\n $this->crud->setColumnDetails('lintang', ['label' => 'Lintang']);\n $this->crud->setColumnDetails('bujur', ['label' => 'Bujur']);\n $this->crud->setColumnDetails('magnitudo', ['label' => 'Magnitudo']);\n $this->crud->setColumnDetails('kedalaman', ['label' => 'Kedalaman']);\n $this->crud->setColumnDetails('terasa', ['label' => 'Dirasakan']);\n $this->crud->setColumnDetails('dirasakan', ['label' => 'Intensitas']);\n $this->crud->setColumnDetails('tsunami', ['label' => 'Tsunami']);\n $this->crud->setColumnDetails('sumber', ['label' => 'Sumber']);\n // $this->crud->setColumnsDetails(['column_1', 'column_2'], ['attribute' => 'value']);\n \n // ------ CRUD BUTTONS\n // possible positions: 'beginning' and 'end'; defaults to 'beginning' for the 'line' stack, 'end' for the others;\n // $this->crud->addButton($stack, $name, $type, $content, $position); // add a button; possible types are: view, model_function\n // $this->crud->addButtonFromModelFunction($stack, $name, $model_function_name, $position); // add a button whose HTML is returned by a method in the CRUD model\n $this->crud->addButtonFromView('line', 'peta' , 'peta', 'end');\n //$this->crud->addButtonFromView('line', 'unduhpeta' , 'unduhpeta', 'end'); // add a button whose HTML is in a view placed at resources\\views\\vendor\\backpack\\crud\\buttons\n // $this->crud->removeButton($name);\n // $this->crud->removeButtonFromStack($name, $stack);\n\n // ------ CRUD ACCESS\n $this->crud->allowAccess(['list', 'create', 'update', 'reorder', 'delete', 'peta']);\n // $this->crud->denyAccess(['list', 'create', 'update', 'reorder', 'delete']);\n\n // ------ CRUD REORDER\n // $this->crud->enableReorder('label_name', MAX_TREE_LEVEL);\n // NOTE: you also need to do allow access to the right users: $this->crud->allowAccess('reorder');\n\n // ------ CRUD DETAILS ROW\n $this->crud->enableDetailsRow();\n // NOTE: you also need to do allow access to the right users: $this->crud->allowAccess('details_row');\n $this->crud->allowAccess('details_row');\n // NOTE: you also need to do overwrite the showDetailsRow($id) method in your EntityCrudController to show whatever you'd like in the details row OR overwrite the views/backpack/crud/details_row.blade.php\n\n // ------ REVISIONS\n // You also need to use \\Venturecraft\\Revisionable\\RevisionableTrait;\n // Please check out: https://laravel-backpack.readme.io/docs/crud#revisions\n // $this->crud->allowAccess('revisions');\n\n // ------ AJAX TABLE VIEW\n // Please note the drawbacks of this though:\n // - 1-n and n-n columns are not searchable\n // - date and datetime columns won't be sortable anymore\n // $this->crud->enableAjaxTable();\n \n \n // ------ DATATABLE EXPORT BUTTONS\n // Show export to PDF, CSV, XLS and Print buttons on the table view.\n // Does not work well with AJAX datatables.\n $this->crud->enableExportButtons();\n\n // ------ ADVANCED QUERIES\n // $this->crud->addClause('active');\n // $this->crud->addClause('type', 'car');\n $tahun = date('Y');\n $this->crud->addClause('where', 'tanggal', 'like', '%'.$tahun.'%');\n // $this->crud->addClause('whereName', 'car');\n // $this->crud->addClause('whereHas', 'posts', function($query) {\n // $query->activePosts();\n // });\n // $this->crud->orderBy();\n // $this->crud->groupBy();\n // $this->crud->limit();\n //$this->crud->addButton('top','importgempa', 'importgempa','importgempa');\n }", "title": "" }, { "docid": "04c9f79c36fa78bedecea3bee7dc781e", "score": "0.48611334", "text": "public function testEditPropertySuccess()\r\n {\r\n //Create a new property to ensure that there is one to edit in the database\r\n $property = new Property();\r\n $property->setSiteId(1593843);\r\n $property->setPropertyName(\"Charlton Arms\");\r\n $property->setPropertyType(\"Townhouse Condo\");\r\n $property->setPropertyStatus(\"Active\");\r\n $form['appbundle_property[structureId]'] = 54586;\r\n $property->setNumUnits(5);\r\n $property->setNeighbourhoodName(\"Sutherland\");\r\n $property->setNeighbourhoodId(\"O48\");\r\n // Have to create a new valid address too otherwise doctrine will fail\r\n $address = new Address();\r\n $address->setStreetAddress(\"12 15th st east\");\r\n $address->setPostalCode(\"S0E 1A0\");\r\n $address->setCity(\"Saskatoon\");\r\n $address->setProvince(\"Saskatchewan\");\r\n $address->setCountry(\"Canada\");\r\n\r\n $property->setAddress($address);\r\n\r\n $client = static::createClient(array(), array('PHP_AUTH_USER' => 'admin', 'PHP_AUTH_PW' => 'password'));\r\n\r\n //Get the entity manager and the repo so we can make sure a property exists before editing it\r\n $em = $client->getContainer()->get('doctrine.orm.entity_manager');\r\n $repo = $em->getRepository(Property::class);\r\n //insert the property\r\n $propertyId = $repo->save($property);\r\n\r\n $crawler = $client->request('GET', \"/property/$propertyId/edit\");\r\n\r\n $form = $crawler->selectButton('Save')->form();\r\n\r\n //set form values\r\n $form['appbundle_property[propertyName]'] = \"Charlton Legs\";\r\n\r\n $client->followRedirects(true);\r\n\r\n //Submit the form\r\n $client->submit($form);\r\n\r\n //$clientResponse = $crawler->filter(\"html:contains('View property')\");\r\n //Make sure the form has the same values\r\n $clientResponse = $client->getResponse()->getContent();\r\n\r\n\r\n $this->assertContains('Charlton Legs', $clientResponse);\r\n\r\n\r\n //$client->request('GET', \"/property/$propertyId\");\r\n //$clientResponse = $client->getResponse()->getContent();\r\n //$this->assertContains('Charlton Legs', $clientResponse);\r\n\r\n //Code to attempt following the redirect, but it will not actually\r\n //follow the redirect, works in actual implementation though\r\n\r\n //$dbProp = $repo->findOneById($propertyId);\r\n\r\n\r\n\r\n //$crawler = $client->request('GET', \"/property/$propertyId\");\r\n\r\n\r\n //$clientResponse = $crawler->html();\r\n //assert that the page contains the updated data\r\n\r\n //assert that the page is the view property page\r\n $this->assertContains('View Property', $clientResponse);\r\n }", "title": "" }, { "docid": "d6922d827219584e8986ded51b48a7da", "score": "0.4856847", "text": "public function editAction() : object\n {\n $request = $this->app->request;\n $response = $this->app->response;\n\n $session = $this->app->session;\n if (!$session->get(\"loggedin\")) {\n $response->redirect(\"content/login\");\n };\n\n $contentId = $request->getGet('contentId') ?: $request->getGet('id');\n if (!is_numeric($contentId)) {\n $response->redirect(\"content/show-all\");\n }\n $data = [\n \"title\" => \"Redigera\",\n ];\n\n if ($request->getPost('doDelete')) {\n $response->redirect(\"content/delete?id=\" . $contentId);\n }\n \n if ($request->getPost('doSave')) {\n $post = $request->getPost();\n\n $params = [\n \"contentTitle\" => $post[\"contentTitle\"] ?? null,\n \"contentData\" => $post[\"contentData\"] ?? null,\n \"contentType\" => $post[\"contentType\"] ?? null\n ];\n\n if ($params[\"contentType\"] == \"post\") {\n $params[\"contentPath\"] = null;\n } else {\n $params[\"contentPath\"] = $this->content->uniquePath($params[\"contentTitle\"]);\n }\n\n if ($params[\"contentType\"] == \"page\") {\n $params[\"contentSlug\"] = null;\n } else {\n $params[\"contentSlug\"] = $this->content->uniqueSlug($params[\"contentTitle\"]);\n }\n\n $params[\"contentFilter\"] = implode(\",\", $post[\"contentFilter\"]);\n\n $params[\"contentPublish\"] = $post[\"contentPublish\"] ?? null;\n\n $params[\"contentId\"] = $post[\"contentId\"] ?? null;\n\n $this->content->updateRow($params);\n $response->redirect(\"content/edit?id=\" . $contentId);\n }\n\n\n $data[\"content\"] = $this->content->getContentById($contentId);\n $this->app->page->add('content/header', $data);\n $this->app->page->add('content/edit', $data);\n return $this->app->page->render($data);\n }", "title": "" }, { "docid": "1a14e8e64a2d63c69a75da28337375fd", "score": "0.48483235", "text": "public function show(FeaturedProduct $featuredProduct)\n {\n dd($featuredProduct);\n }", "title": "" }, { "docid": "967c1986b40b82b1baa755a4e8882c5f", "score": "0.48480818", "text": "public function testApiEdit()\n {\n $user = User::find(1);\n\n $supplier = supplier::where('first_name', 'mahdi')->first();\n\n $response = $this->actingAs($user)->get('/api/suppliers/'.$supplier->id.'/edit');\n\n $response->assertStatus(200)\n ->assertJson([\n 'supplier' => true,\n ]);\n }", "title": "" }, { "docid": "94e2c30c8722a48b0956b31842376a1e", "score": "0.48474383", "text": "public function testContentAdminPages() {\n $this->drupalLogin($this->adminUser);\n\n // Use an explicit changed time to ensure the expected order in the content\n // admin listing. We want these to appear in the table in the same order as\n // they appear in the following code, and the 'content' View has a table\n // style configuration with a default sort on the 'changed' field DESC.\n $time = time();\n $nodes['published_page'] = $this->drupalCreateNode(['type' => 'page', 'changed' => $time--]);\n $nodes['published_article'] = $this->drupalCreateNode(['type' => 'article', 'changed' => $time--]);\n $nodes['unpublished_page_1'] = $this->drupalCreateNode(['type' => 'page', 'changed' => $time--, 'uid' => $this->baseUser1->id(), 'status' => 0]);\n $nodes['unpublished_page_2'] = $this->drupalCreateNode(['type' => 'page', 'changed' => $time, 'uid' => $this->baseUser2->id(), 'status' => 0]);\n\n // Verify view, edit, and delete links for any content.\n $this->drupalGet('admin/content');\n $this->assertSession()->statusCodeEquals(200);\n\n $node_type_labels = $this->xpath('//td[contains(@class, \"views-field-type\")]');\n $delta = 0;\n foreach ($nodes as $node) {\n $this->assertSession()->linkByHrefExists('node/' . $node->id());\n $this->assertSession()->linkByHrefExists('node/' . $node->id() . '/edit');\n $this->assertSession()->linkByHrefExists('node/' . $node->id() . '/delete');\n // Verify that we can see the content type label.\n $this->assertEquals(trim($node_type_labels[$delta]->getText()), $node->type->entity->label());\n $delta++;\n }\n\n // Verify filtering by publishing status.\n $this->drupalGet('admin/content', ['query' => ['status' => TRUE]]);\n\n $this->assertSession()->linkByHrefExists('node/' . $nodes['published_page']->id() . '/edit');\n $this->assertSession()->linkByHrefExists('node/' . $nodes['published_article']->id() . '/edit');\n $this->assertSession()->linkByHrefNotExists('node/' . $nodes['unpublished_page_1']->id() . '/edit');\n\n // Verify filtering by status and content type.\n $this->drupalGet('admin/content', ['query' => ['status' => TRUE, 'type' => 'page']]);\n\n $this->assertSession()->linkByHrefExists('node/' . $nodes['published_page']->id() . '/edit');\n $this->assertSession()->linkByHrefNotExists('node/' . $nodes['published_article']->id() . '/edit');\n\n // Verify no operation links are displayed for regular users.\n $this->drupalLogout();\n $this->drupalLogin($this->baseUser1);\n $this->drupalGet('admin/content');\n $this->assertSession()->statusCodeEquals(200);\n $this->assertSession()->linkByHrefExists('node/' . $nodes['published_page']->id());\n $this->assertSession()->linkByHrefExists('node/' . $nodes['published_article']->id());\n $this->assertSession()->linkByHrefNotExists('node/' . $nodes['published_page']->id() . '/edit');\n $this->assertSession()->linkByHrefNotExists('node/' . $nodes['published_page']->id() . '/delete');\n $this->assertSession()->linkByHrefNotExists('node/' . $nodes['published_article']->id() . '/edit');\n $this->assertSession()->linkByHrefNotExists('node/' . $nodes['published_article']->id() . '/delete');\n\n // Verify no unpublished content is displayed without permission.\n $this->assertSession()->linkByHrefNotExists('node/' . $nodes['unpublished_page_1']->id());\n $this->assertSession()->linkByHrefNotExists('node/' . $nodes['unpublished_page_1']->id() . '/edit');\n $this->assertSession()->linkByHrefNotExists('node/' . $nodes['unpublished_page_1']->id() . '/delete');\n\n // Verify no tableselect.\n $this->assertSession()->fieldNotExists('nodes[' . $nodes['published_page']->id() . ']');\n\n // Verify unpublished content is displayed with permission.\n $this->drupalLogout();\n $this->drupalLogin($this->baseUser2);\n $this->drupalGet('admin/content');\n $this->assertSession()->statusCodeEquals(200);\n $this->assertSession()->linkByHrefExists('node/' . $nodes['unpublished_page_2']->id());\n // Verify no operation links are displayed.\n $this->assertSession()->linkByHrefNotExists('node/' . $nodes['unpublished_page_2']->id() . '/edit');\n $this->assertSession()->linkByHrefNotExists('node/' . $nodes['unpublished_page_2']->id() . '/delete');\n\n // Verify user cannot see unpublished content of other users.\n $this->assertSession()->linkByHrefNotExists('node/' . $nodes['unpublished_page_1']->id());\n $this->assertSession()->linkByHrefNotExists('node/' . $nodes['unpublished_page_1']->id() . '/edit');\n $this->assertSession()->linkByHrefNotExists('node/' . $nodes['unpublished_page_1']->id() . '/delete');\n\n // Verify no tableselect.\n $this->assertSession()->fieldNotExists('nodes[' . $nodes['unpublished_page_2']->id() . ']');\n\n // Verify node access can be bypassed.\n $this->drupalLogout();\n $this->drupalLogin($this->baseUser3);\n $this->drupalGet('admin/content');\n $this->assertSession()->statusCodeEquals(200);\n foreach ($nodes as $node) {\n $this->assertSession()->linkByHrefExists('node/' . $node->id());\n $this->assertSession()->linkByHrefExists('node/' . $node->id() . '/edit');\n $this->assertSession()->linkByHrefExists('node/' . $node->id() . '/delete');\n }\n }", "title": "" }, { "docid": "81ff47967672fc6090f8e18c393f1d0f", "score": "0.484668", "text": "public function testEvents() {\n\t\t$model = new ADocumentationEntity();\n\t\t$model->name = \"test entity\";\n\t\t$this->assertTrue($model->save());\n\t\t$this->assertTrue($model->timeAdded > 0);\n\t\t$this->assertTrue(($model->hierarchy instanceof ADocumentationHierarchy));\n\t\t$hierarchyId = $model->hierarchy->id;\n\t\t$model->delete(); // clean up\n\t\t$this->assertNull(ADocumentationHierarchy::model()->findByPk($hierarchyId));\n\t}", "title": "" }, { "docid": "b0494a5cff3008735bf54a1df3014cf8", "score": "0.4844636", "text": "public function testEdit()\n {\n $user = User::find(1);\n\n $supplier = Supplier::where('first_name', 'mahdi')->first();\n\n $response = $this->actingAs($user)->get('/admin/suppliers/'.$supplier->id.'/edit');\n\n $response->assertStatus(200)\n ->assertViewIs('layouts.admin');\n }", "title": "" }, { "docid": "0626bac34a307dd4bfcd844138e8b23b", "score": "0.48444223", "text": "public function actionFillFeaturedBox() {\n Yii::app()->user->SiteSessions;\n if (isset($_POST['value'])) {\n\n $limit = 6;\n switch ($_POST['value']) {\n case \"Featured\":\n $order_detail = new OrderDetail;\n $dataProvider = $order_detail->featuredBooks($limit);\n $products = $order_detail->getFeaturedProducts($dataProvider);\n break;\n case \"Latest\":\n\n $dataProvider = Product::model()->allProducts(array(), $limit);\n $products = Product::model()->returnProducts($dataProvider);\n break;\n case \"Best Seller\":\n $order_detail = new OrderDetail;\n $dataProvider = $order_detail->bestSellings($limit);\n $products = $order_detail->getBestSelling($dataProvider);\n break;\n }\n $this->renderPartial(\n \"//product/featured_box\", array(\n \"dataProvider\" => $dataProvider,\n \"products\" => $products,\n ));\n }\n }", "title": "" }, { "docid": "3a0bf475ff1f6f8c46ea20510f9342fc", "score": "0.4840485", "text": "public function testRevisionDeletion() {\n $session = $this->getSession();\n $page = $session->getPage();\n $assert_session = $this->assertSession();\n $storage = \\Drupal::entityTypeManager()->getStorage('node');\n\n // Login with the appropriate permissions.\n $this->loginAsAdmin([\n 'access administration pages',\n 'view any unpublished content',\n 'view all revisions',\n 'revert all revisions',\n 'view latest version',\n 'view any unpublished content',\n 'create managed_test content',\n 'edit any managed_test content',\n 'create test_content_type content',\n 'edit any test_content_type content',\n 'delete any test_content_type content',\n 'use ' . $this->workflow->id() . ' transition create_new_draft',\n 'use ' . $this->workflow->id() . ' transition publish',\n 'use ' . $this->workflow->id() . ' transition archived_published',\n 'use ' . $this->workflow->id() . ' transition archived_draft',\n 'use ' . $this->workflow->id() . ' transition archive',\n ]);\n\n // Add content type to the managed_test content type and check if their type is present as a class.\n $this->drupalGet('node/add/managed_test');\n $page->findButton('managed_test_content_type_add_more')->press();\n\n // Create the first iteration of the\n $edit = [\n 'title[0][value]' => $this->randomString(),\n 'managed[0][subform][title][0][value]' => $this->randomString(),\n ];\n $this->drupalPostForm(NULL, $edit, t('Save'));\n\n // Get the managed node, and the owner.\n $first_owner = $this->drupalGetNodeByTitle($edit['title[0][value]']);\n $managed_node = $this->drupalGetNodeByTitle($edit['managed[0][subform][title][0][value]']);\n $this->assertNotNull($managed_node);\n\n // Update the moderation state of the managed node.\n $this->drupalGet('node/' . $managed_node->id() . '/edit');\n $assert_session->optionExists('moderation_state[0][state]', 'draft');\n $edit = [\n 'moderation_state[0][state]' => 'published',\n ];\n $this->drupalPostForm(NULL, $edit, t('Save'));\n\n // Ensure that the managed node has a proper moderation state.\n $storage->resetCache();\n $updated_nodes = $storage->getQuery()\n ->latestRevision()\n ->condition('title', $managed_node->label())\n ->execute();\n $updated_revisions = array_keys($updated_nodes);\n $updated_node = $storage->loadRevision(reset($updated_revisions));\n $this->assertEquals('published', $updated_node->get('moderation_state')->get(0)->getValue()['value']);\n\n // Add content type to the managed_test content type and check if their type is present as a class.\n $this->drupalGet('node/add/managed_test');\n $page->findButton('managed_revise')->press();\n\n // Create the second iteration of the managed node.\n $edit = [\n 'title[0][value]' => $this->randomString(),\n 'managed[0][subform][entity_id]' => $managed_node->label() . ' (' . $managed_node->id() . ')',\n ];\n $this->drupalPostForm(NULL, $edit, t('Save'));\n\n $second_owner = $this->drupalGetNodeByTitle($edit['title[0][value]']);\n\n // Check that the revision creates the appropriate node state.\n $storage->resetCache();\n $updated_nodes = $storage->getQuery()\n ->latestRevision()\n ->condition('title', $managed_node->label())\n ->execute();\n $updated_revisions = array_keys($updated_nodes);\n $updated_node = $storage->loadRevision(reset($updated_revisions));\n $this->assertEquals('draft', $updated_node->get('moderation_state')->get(0)->getValue()['value']);\n\n // Update the moderation state of the managed node.\n $this->drupalGet('node/' . $managed_node->id() . '/edit');\n $assert_session->optionExists('moderation_state[0][state]', 'draft');\n $edit = [\n 'moderation_state[0][state]' => 'published',\n ];\n $this->drupalPostForm(NULL, $edit, t('Save'));\n\n // Add content type to the managed_test content type and check if their type is present as a class.\n $this->drupalGet('node/add/managed_test');\n $page->findButton('managed_revise')->press();\n\n // Create the second iteration of the managed node.\n $edit = [\n 'title[0][value]' => $this->randomString(),\n 'managed[0][subform][entity_id]' => $managed_node->label() . ' (' . $managed_node->id() . ')',\n ];\n $this->drupalPostForm(NULL, $edit, t('Save'));\n\n $third_owner = $this->drupalGetNodeByTitle($edit['title[0][value]']);\n\n // Check that the revision creates the appropriate node state.\n $storage->resetCache();\n $updated_nodes = $storage->getQuery()\n ->latestRevision()\n ->condition('title', $managed_node->label())\n ->execute();\n $updated_revisions = array_keys($updated_nodes);\n $updated_node = $storage->loadRevision(reset($updated_revisions));\n $this->assertEquals('draft', $updated_node->get('moderation_state')->get(0)->getValue()['value']);\n\n // Perform a deletion of the first node.\n $first_owner->delete();\n\n // Check that the revision creates the appropriate node state.\n $storage->resetCache();\n $updated_nodes = $storage->getQuery()\n ->latestRevision()\n ->condition('title', $managed_node->label())\n ->execute();\n $updated_revisions = array_keys($updated_nodes);\n $updated_node = $storage->loadRevision(reset($updated_revisions));\n $this->assertEquals('published', $updated_node->get('moderation_state')->get(0)->getValue()['value']);\n\n // Perform a deletion of the first node.\n $second_owner->delete();\n\n // Check that the revision creates the appropriate node state.\n $storage->resetCache();\n $updated_nodes = $storage->getQuery()\n ->latestRevision()\n ->condition('title', $managed_node->label())\n ->execute();\n $updated_revisions = array_keys($updated_nodes);\n $updated_node = $storage->loadRevision(reset($updated_revisions));\n $this->assertEquals('published', $updated_node->get('moderation_state')->get(0)->getValue()['value']);\n\n // Perform a deletion of the first node.\n $third_owner->delete();\n\n // Check that the revision creates the appropriate node state.\n $storage->resetCache();\n $updated_nodes = $storage->getQuery()\n ->latestRevision()\n ->condition('title', $managed_node->label())\n ->execute();\n $this->assertEquals(0, count($updated_nodes));\n }", "title": "" } ]
59c6213f8c69360901f20b398a5d3cec
Permanently delete ProductSubpage from storage.
[ { "docid": "3324f67c9bc1119151b8592406a2e006", "score": "0.5985365", "text": "public function perma_del($id)\n {\n if (! Gate::allows('blog_delete')) {\n return abort(401);\n }\n $subpage = ProductSubpage::onlyTrashed()->findOrFail($id);\n $subpage->forceDelete();\n\n return redirect()->route('admin.product_subpages.index');\n }", "title": "" } ]
[ { "docid": "3e68b4d5a4b9cabe955cefa9a7eb3c54", "score": "0.6326949", "text": "public function destroy($id)\n {\n $product = Product::find($id);\n \n if (Storage::exists('products/'.$product->orginal_img)) {\n \n Storage::delete('products/'.$product->orginal_img);\n }\n \n $images = explode( '|' , $product->images );\n\n foreach ($images as $img=>$value) {\n if (Storage::exists('products/'.$value)) {\n \n Storage::delete('products/'.$value);\n }\n\n }\n $product->procat()->detach();\n $product->delete();\n return redirect()->back();\n\n }", "title": "" }, { "docid": "002648eb4b1f4c665d54a031e78236fa", "score": "0.62972647", "text": "protected function _delete()\n {\n $product = $this->_getProduct();\n try {\n $this->_deleteAssociated($product);\n $product->delete();\n } catch (Mage_Core_Exception $e) {\n $this->_critical($e->getMessage(), Mage_Api2_Model_Server::HTTP_INTERNAL_ERROR);\n } catch (Exception $e) {\n $this->_critical(self::RESOURCE_INTERNAL_ERROR);\n }\n }", "title": "" }, { "docid": "129254789d46752958a144811b47ab54", "score": "0.62916934", "text": "protected function _delete()\n {\n $product = $this->_getProduct();\n try {\n $product->delete();\n } catch (Mage_Core_Exception $e) {\n $this->_critical($e->getMessage(), Mage_Api2_Model_Server::HTTP_INTERNAL_ERROR);\n } catch (Exception $e) {\n $this->_critical(self::RESOURCE_INTERNAL_ERROR);\n }\n }", "title": "" }, { "docid": "777a4204b92c56259e83079044c7a8a5", "score": "0.6221185", "text": "public function delete(){\n SubCategory::destroy($this->modelId);\n $this->modalConfirmDeleteVisible = false;\n $this->resetPage();\n }", "title": "" }, { "docid": "7f0d40445c49d4e4af4f8a68df84d44d", "score": "0.6176258", "text": "public function deleteAction() {\r\n // LOGGED IN USER CAN DELETE PRODUCT\r\n if (!$this->_helper->requireUser()->isValid())\r\n return;\r\n\r\n // GET NAVIGATION\r\n $this->view->navigation = Engine_Api::_()->getApi('menus', 'core')->getNavigation(\"sitestoreproduct_main\");\r\n\r\n // GET VIEWER\r\n $viewer = Engine_Api::_()->user()->getViewer();\r\n\r\n // GET PRODUCT ID AND OBJECT\r\n $this->view->sitestoreproduct = $sitestoreproduct = Engine_Api::_()->getItem('sitestoreproduct_product', $this->_getParam('product_id'));\r\n\r\n if (empty($sitestoreproduct)) {\r\n return $this->_forward('notfound', 'error', 'core');\r\n }\r\n\r\n $store_id = $sitestoreproduct->store_id;\r\n\r\n // AUTHORIZATION CHECK\r\n $authValue = Engine_Api::_()->sitestoreproduct()->isStoreAdmin($store_id);\r\n if (empty($authValue) || ($authValue == 1) || !$this->_helper->requireAuth()->setAuthParams($sitestoreproduct, $viewer, \"delete\")->isValid()) {\r\n return;\r\n }\r\n\r\n // DELETE SITESTOREPRODUCT AFTER CONFIRMATION\r\n if ($this->getRequest()->isPost() && $this->getRequest()->getPost('confirm') == true) {\r\n $tabId = Engine_Api::_()->sitestoreproduct()->getProductTabId();\r\n $store_url = Engine_Api::_()->getDbtable('stores', 'sitestore')->getStoreAttribute($store_id, 'store_url');\r\n $sitestoreproduct->delete();\r\n return $this->_helper->redirector->gotoRoute(array('action' => 'store', 'store_id' => $store_id, 'type' => 'product', 'menuId' => 62, 'method' => 'manage'), 'sitestore_store_dashboard', false);\r\n }\r\n }", "title": "" }, { "docid": "9c56d1aa33647b972770918e4d29e1f5", "score": "0.61538815", "text": "public function destroy($id)\n {\n if (! Gate::allows('product_delete')) {\n return abort(401);\n }\n $subpage = ProductSubpage::findOrFail($id);\n $subpage->delete();\n\n return redirect()->route('admin.product_subpages.index');\n }", "title": "" }, { "docid": "9475d0a4157ad1026a444c83d76db19c", "score": "0.61494416", "text": "public function delete() {\n \t\n\t\t$this->deletePage();\n \tparent::delete();\n \t\n }", "title": "" }, { "docid": "f32bc8e7368765f7cf505fcee37d998a", "score": "0.6067802", "text": "public function deleteMobileAction() {\r\n if (!$this->_helper->requireUser()->isValid())\r\n return;\r\n\r\n // GET NAVIGATION\r\n $this->view->navigation = Engine_Api::_()->getApi('menus', 'core')->getNavigation(\"sitestoreproduct_main\");\r\n\r\n // GET VIEWER\r\n $viewer = Engine_Api::_()->user()->getViewer();\r\n\r\n // GET PRODUCT ID AND OBJECT\r\n $this->view->sitestoreproduct = $sitestoreproduct = Engine_Api::_()->getItem('sitestoreproduct_product', $this->_getParam('product_id'));\r\n $this->view->store_id = $store_id = $sitestoreproduct->store_id;\r\n $sitestore = Engine_Api::_()->getItem('sitestore_store', $sitestoreproduct->store_id);\r\n\r\n //only fix permission for mobile\r\n if (empty($sitestore) || !Engine_Api::_()->sitestore()->isManageAdmin($sitestore, 'delete')) {\r\n return $this->_helper->requireAuth()->forward();\r\n }\r\n\r\n // DELETE SITESTOREPRODUCT AFTER CONFIRMATION\r\n if ($this->getRequest()->isPost() && $this->getRequest()->getPost('confirm') == true) {\r\n $tabId = Engine_Api::_()->sitestoreproduct()->getProductTabId();\r\n $store_url = Engine_Api::_()->getDbtable('stores', 'sitestore')->getStoreAttribute($store_id, 'store_url');\r\n $sitestoreproduct->delete();\r\n return $this->_helper->redirector->gotoRoute(array('controller' => 'product', 'action' => 'manage', 'store_id' => $store_id), 'sitestoreproduct_extended', false);\r\n }\r\n }", "title": "" }, { "docid": "aeb76ac835f9c7a07a592ff9ff4c602c", "score": "0.6051927", "text": "public function del($product_id){\n unset($_SESSION[\"panier\"][$product_id]);\n }", "title": "" }, { "docid": "7f94f6a2dcf8ac378bb6e7a9212f26c8", "score": "0.60501206", "text": "function delete_product_page($conn, $id) {\n $sql = \"DELETE FROM cms_products WHERE id = '\".$id.\"'\";\n $result = mysqli_query($conn, $sql);\n if (!$result)\n return false;\n return true; \n}", "title": "" }, { "docid": "4f59f6496094425e201b8817716bacf2", "score": "0.60125005", "text": "public function delProductId($id_product)\n {\n unset($_SESSION['panier'][$id_product]);\n }", "title": "" }, { "docid": "7850b745ea28f8793f87b61467775a60", "score": "0.5973828", "text": "public function admin_product_delete(){\n Product::find(request()->product)->delete();\n return redirect('/products'); \n }", "title": "" }, { "docid": "a2f6f0f010d59efe141ffed076f0f3cf", "score": "0.59291035", "text": "public function ProductDelete(){\n $prod_id = $_REQUEST['prod_id'];\n $this->Product->DeleteProduct($prod_id);\n }", "title": "" }, { "docid": "547eb07f41c94e071fb1daf6da02654d", "score": "0.5925553", "text": "public function destroy($id)\n {\n $product = Product::findOrFail($id);\n unlink(public_path() .'/images/'.$product->file->file);\n session(['Delete'=>$product->title]);\n $product->delete();\n return redirect()->back();\n }", "title": "" }, { "docid": "2f5ddf194cad1d408d416d31cae16f05", "score": "0.5909962", "text": "public function delete()\n {\n Storage:: delete();\n }", "title": "" }, { "docid": "e9ce81a9dc66686f870f2c354fc69edc", "score": "0.59019184", "text": "public function destroy($id)\n {\n Product::destroy($id);\n $productPhoto=ProductPhoto::where('id','LIKE',$id)->get();\n \n if($productPhoto!=null)\n {\n foreach($productPhoto as $photo)\n File::delete('storage/'.$photo->image); \n ProductPhoto::destroy($id);\n }\n \n\n return redirect('admin/product')->with('flash_message', 'Product deleted!');\n }", "title": "" }, { "docid": "9e9a9d9363b0ac3e68a1243a8083cd0b", "score": "0.5868274", "text": "public function destroy($id)\n {\n \n $pro=Product::find($id);\n $one=$pro->image_one;\n \n $two=$pro->image_two;\n $three=$pro->image_three;\n $four=$pro->image_four;\n $five=$pro->image_five;\n $six=$pro->image_six;\n $path=\"media/products/\";\n Storage::disk('public')->delete([$path.$one,$path.$two,$path.$three,$path.$four,$path.$five,$path.$six]);\n\n\n\n $pro->delete();\n Toastr()->success('Product Deleted successfully');\n return redirect()->back();\n \n }", "title": "" }, { "docid": "f01337e3d0cbe7d57e18ba99f73199f1", "score": "0.5863407", "text": "function delete() {\n foreach ($this->content as $link) {\n $content = $this->loadContentObj($link);\n if (!is_object($content)) {\n continue;\n }\n $content->parent = \"\";\n superprint($content->title);\n superprint($content->parent);\n $content->save();\n }\n\n //delete link in parent\n if (is_file($this->parent)) {\n $parent = file_load_object($this->parent);\n $parent->removeContent($this->id);\n $parent->setDefaultID();\n $parent->save();\n //superprint($parent);\n }\n\n // delete section object\n $obj = $this->getFileName();\n if (is_file($obj)) {\n copy($obj, BACKUP_FOLDER . \"/\" . $this->id . \".obj\");\n unlink($obj);\n }\n }", "title": "" }, { "docid": "86976bf7cb4eee42808d8f54c7267b5a", "score": "0.5857059", "text": "public function destroy($id)\n {\n $subcategory = SubCategory::findOrFail($id);\n if ($subcategory->products()->count()) {\n return redirect()->back()->with('cant-delete', 'Data sub kategori tidak bisa dihapus karena sudah terhubung dengan data produk');\n }\n Storage::delete($subcategory->image);\n $subcategory->delete();\n return redirect()->back()->with('delete', 'Data sub kategori berhasil dihapus');\n }", "title": "" }, { "docid": "7f0f0e41ed99b838faefb8913ac3be0c", "score": "0.5854761", "text": "function deleteproduct( $productid ){\n\t\t$sql = \"SELECT ec_product.post_id FROM ec_product WHERE ec_product.product_id = %d\";\n\t\t$this_post_id = $this->db->get_var( $this->db->prepare( $sql, $productid ) );\n\t\twp_delete_post( $this_post_id, true );\n\t\t\n\t\t// Remove From Stripe Possibly\n\t\tif( get_option( 'ec_option_payment_process_method' ) == 'stripe' ){\n\t\t\t//create an object for call to stripe\n\t\t\t$stripe_plan = ( object ) array( \"product_id\" => $productid );\n\t\t\t$stripe = new ec_stripe;\n\t\t\t$response = $stripe->delete_plan( $stripe_plan );\n\t\t}\n\t\t\n\t\t// Remove Product\n\t\t$sql = \"DELETE FROM ec_product WHERE ec_product.product_id = %d\";\n\t\t$this->db->query( $this->db->prepare( $sql, $productid ) );\n\t\t\n\t\t// Remove Option Item Images\n\t\t$sql = \"DELETE FROM ec_optionitemimage WHERE ec_optionitemimage.product_id = %d\";\n\t\t$this->db->query( $this->db->prepare( $sql, $productid ) );\n\t\t\n\t\t// Remove Price Tiers\n\t\t$sql = \"DELETE FROM ec_pricetier WHERE ec_pricetier.product_id = %d\";\n\t\t$this->db->query( $this->db->prepare( $sql, $productid ) );\n\t\t\n\t\t// Remove Role Pricing\n\t\t$sql = \"DELETE FROM ec_roleprice WHERE ec_roleprice.product_id = %d\";\n\t\t$this->db->query( $this->db->prepare( $sql, $productid ) );\n\t\t\n\t\t// Remove Option Item Quantity\n\t\t$sql = \"DELETE FROM ec_optionitemquantity WHERE ec_optionitemquantity.product_id = %d\";\n\t\t$this->db->query( $this->db->prepare( $sql, $productid ) );\n\t\t\n\t\t// Remove Reviews\n\t\t$sql = \"DELETE FROM ec_review WHERE ec_review.product_id = %d\";\n\t\t$this->db->query( $this->db->prepare( $sql, $productid ) );\n\t\t\n\t\t// Remove affiliate\n\t\t$sql = \"DELETE FROM ec_affiliate_rule_to_product WHERE ec_affiliate_rule_to_product.product_id = %d\";\n\t\t$this->db->query( $this->db->prepare( $sql, $productid ) );\n\t\t\n\t\t// Remove Item from Product Groupings\n\t\t$sql = \"DELETE FROM ec_categoryitem WHERE ec_categoryitem.product_id = %d\";\n\t\t$this->db->query( $this->db->prepare( $sql, $productid ) );\n\t\t\n\t\treturn array( \"success\" ); // would need to check each query to return failed...\n\t\t\n\t}", "title": "" }, { "docid": "dadd5970b72098d67d9582d465142f7f", "score": "0.58524346", "text": "public function delete(Product $product): void;", "title": "" }, { "docid": "6be449c966561e32c76341978a92ee01", "score": "0.5836178", "text": "public function delete()\n\t{\n\t\t$this->_oldData = null;\n\t\t\n\t\treturn $this->_storage->delete($this->_level, $this->_subLevel, $this->key);\n\t}", "title": "" }, { "docid": "7995d20292380bb122fe2906c12560b2", "score": "0.583398", "text": "public function remove()\n\t{\n\t\t// Decodifica el id enviado desde la vista\n\t\t$id_decoded = $this->decode('id');\n\n\t\t// Referencia al producto a eliminar, no es necesario validar que el\n\t\t// producto esté en el carrito porque solo los productos en el mismo\n\t\t// aparecen para eliminar\n\t\t$producto = &$_SESSION['PEDIDO']['PRODUCTOS'][$id_decoded];\n\n\t\t// Si el índice tiene más de un producto en CANTIDAD...\n\t\tif ($producto['CANTIDAD'] > 1) {\n\t\t\t// ...reduce en 1 la cantidad...\n\t\t\t$producto['CANTIDAD']--;\n\t\t\t// ...y resta un producto al subtotal\n\t\t\t$producto['SUBTOTAL'] -= $producto['PRECIO'];\n\t\t} else {\n\t\t\t// Si solamente hay un producto de ese tipo, lo elimina del carrito completamente\n\t\t\tunset($_SESSION['PEDIDO']['PRODUCTOS'][$id_decoded]);\n\t\t}\n\t}", "title": "" }, { "docid": "af9a265c3646cf8d65236bc116a408cf", "score": "0.58212197", "text": "abstract public function deleteFromStore();", "title": "" }, { "docid": "dbabf0a7c6551793e9aa31032b1a4470", "score": "0.5816534", "text": "public function vendor_product_delete(){\n Product::find(request()->product)->delete();\n return redirect('/user/all_products'); \n }", "title": "" }, { "docid": "a9e5bd8f2b109e06cff12d882ddd74ea", "score": "0.57989275", "text": "public function remove($product,$slug){\n\t\t$this->content[$slug]['qty']--;\n\t\t$this->content[$slug]['price']-= $this->content[$slug]['item']['price'];\n\t\t$this->totalPrice -= $this->content[$slug]['item']['price'];\n\t\t$this->totalQty--;\n\t\t\n\t\t\tif($this->content[$slug]['qty'] <=0){\n\t\t\t\t\n\t\t\t\tunset($this->content[$slug]);\n\t\t\t}\n\t}", "title": "" }, { "docid": "0fb830d1c76aedcbac6d28699e64eada", "score": "0.5792164", "text": "public function delete()\n {\n if(File::isFile(public_path(). '/' . $this->getFullPath()))\n File::delete(public_path(). '/' . $this->getFullPath());\n if(File::isFile(public_path(). '/' . $this->getLightPath()))\n File::delete(public_path(). '/' . $this->getLightPath());\n if(File::isFile(public_path(). '/' . $this->getThumbnailPath()))\n File::delete(public_path(). '/' . $this->getThumbnailPath());\n\n parent::delete();\n }", "title": "" }, { "docid": "d68d6c2a2c30e94ab06c91420e3d4b91", "score": "0.5747007", "text": "public function destroy($id)\n {\n\n // dd($id);\n $cart_id=session('cart_id');\n \n $pro=subproduct_cart::where([\n ['subproduct_id', '=', $id],\n ['cart_id', '=', $cart_id],\n ])->first();\n\n $pro->delete();\n\n $cc=session('cart_count');\n session(['cart_count'=>$cc-1]);\n Session::flash('Success','The Product is Removed from Wishlist!');\n\n\n return redirect()->route('cart.index');\n\n }", "title": "" }, { "docid": "c022547af2f4f26ab1a6f2729ecd9767", "score": "0.572215", "text": "public function destroy($id)\n {\n $product= Product::find($id);\n $productPic= ProductPic::where('product_id',$id)->get();\n $productPic=$productPic[0];\n \n Storage::delete('public/Uploads/productPics/'.$productPic->product_id.'/'.$productPic->image_1);\n Storage::delete('public/Uploads/productPics/'.$productPic->product_id.'/'.$productPic->image_2);\n Storage::delete('public/Uploads/productPics/'.$productPic->product_id.'/'.$productPic->image_3);\n Storage::delete('public/Uploads/productPics/'.$productPic->product_id.'/'.$productPic->image_4);\n Storage::deleteDirectory('public/Uploads/productPics/'.$productPic->product_id);\n \n $product->delete();\n $productPic->delete();\n return redirect('/products')->with('success',\"product removed\");\n }", "title": "" }, { "docid": "a80b32a0ef410882e6ce4a4e17b655fa", "score": "0.57212883", "text": "function deleteSubPages($parent){\n\n\t\techo $query\t=\t\"SELECT `page_id` FROM `cms_pages` WHERE `parent`='$parent'\";\n\n\t\t$rec\t\t=\t$this->fetchAll($query);\n//print_r($rec);\n\n\n\t\tif(count($rec)>0){\n\t\t\tfor($i=0;$i<count($rec);$i++){\n\t\t\t\t$this->deleteSubPages($rec[$i]['page_id']);\n\t\t\t}\n\t\t}\n\t\t$this->delete(\"cms_pages\",'`page_id`='.$parent);\n\t\treturn true;\n\n\t\n\t}", "title": "" }, { "docid": "f4e3667015f28176c4145c96e3074e27", "score": "0.57151085", "text": "public function delete()\n {\n if (is_file($this->_path)) {\n @unlink($this->_path);\n }\n\n // Delete sub-files\n // Remove trailing .php to get 'my/page.html'\n $path = substr($this->_path, 0, -4);\n // Remove extension to get 'my/page'\n $extension = pathinfo($path, PATHINFO_EXTENSION);\n if (!empty($extension)) {\n $path = substr($path, 0, - strlen($extension) - 1);\n }\n // Delete the directory 'my/page/*'\n if (is_dir($path)) {\n try {\n \\File::delete_dir($path, true, true);\n } catch (\\Exception $e) {\n \\Log::exception($e, 'Error while deleting the directory \"'.$path.'\" cache. ');\n }\n }\n\n // Delete suffixes directory 'my/page.cache.suffixes/*'\n if (is_dir($this->_path_suffix)) {\n try {\n \\File::delete_dir($this->_path_suffix, true, true);\n } catch (\\Exception $e) {\n \\Log::exception($e, 'Error while deleting the suffix directory \"'.$this->_path_suffix.'\" cache. ');\n }\n }\n }", "title": "" }, { "docid": "8704632a581adc9389a9b4e8e9c8e32c", "score": "0.5713838", "text": "public function destroy($id)\n {\n $product = Product::findOrFail($id)->delete();\n //Without database OnDdelete Cascade\n //$product->size()->detach($id);\n Session::flash('flash_message', 'Product successfully deleted!');\n return redirect()->back();\n }", "title": "" }, { "docid": "8704632a581adc9389a9b4e8e9c8e32c", "score": "0.5713838", "text": "public function destroy($id)\n {\n $product = Product::findOrFail($id)->delete();\n //Without database OnDdelete Cascade\n //$product->size()->detach($id);\n Session::flash('flash_message', 'Product successfully deleted!');\n return redirect()->back();\n }", "title": "" }, { "docid": "10dcb37895144846913467284c167bf6", "score": "0.57066154", "text": "public function delete()\n {\n // Implemented in DAVRootPoolFile\n if ($poolNode = $this->getDAVRootPoolObject()) {\n $poolNode->delete();\n }\n }", "title": "" }, { "docid": "db55f66543bbe982934f8da5b1691aef", "score": "0.57040477", "text": "function delete_product($productID){\n\tglobal $db;\n\t$query = \"DELETE from products WHERE productID = '$productID'\";\n\t$db->exec($query);\n}", "title": "" }, { "docid": "4e643be94235fc1fe8fa482362c1c665", "score": "0.5692853", "text": "function remove_extension()\r\n{\r\nglobal $wpdb;\r\n$singleproduct=get_template_directory().\"\\single-product.php\";\r\nunlink($singleproduct);\r\n$productshow=get_template_directory().\"\\wpdzshop-productshow.php\";\r\nunlink($productshow);\r\n\r\n$table = $wpdb->prefix.\"wpdzshop_cart\";\r\n$wpdb->query(\"DROP TABLE $table\");\r\n\r\n$table = $wpdb->prefix.\"wpdzshop_customer\";\r\n$wpdb->query(\"DROP TABLE $table\");\r\n\r\n$table = $wpdb->prefix.\"wpdzshop_purchase\";\r\n$wpdb->query(\"DROP TABLE $table\");\r\n\r\n$table = $wpdb->prefix.\"wpdzshop_product_purchase\";\r\n$wpdb->query(\"DROP TABLE $table\");\r\n\r\n$table = $wpdb->prefix.\"posts\";\r\n$delete = $wpdb->query(\"DELETE FROM $table WHERE post_name IN ('my-cart', 'successfull-payment-notify-paypal', 'successfull-payment-notify-epay', 'successfull-payment-epay', 'successfull-payment-paypal')\");\r\n}", "title": "" }, { "docid": "30899cbddadcb9c714095179bbe09a87", "score": "0.56912833", "text": "public function destroy($id)\n {\n $product = Product::findOrFail($id)->delete();\n //Without database OnDdelete Cascade\n //$product->size()->detach($id);\n Session::flash('flash_message', '¡Producto eliminado!');\n return redirect()->back();\n }", "title": "" }, { "docid": "aa3abaf6f71fb87e26d0c81ad233f809", "score": "0.56808484", "text": "public function deleteByProductId($product_id);", "title": "" }, { "docid": "7cbce193e65fc045a462cd01b1a6d5c8", "score": "0.5675969", "text": "public function destroy($id)\n {\n //product::find($id);\n $product = Product::where('id',$id)->first();\n\n //delete photo\n unlink(public_path($product->photo));\n\n $product->delete();\n\n return redirect()->to('/admin/product');\n\n }", "title": "" }, { "docid": "31e5cc4a0b6af59482a96519deaba446", "score": "0.56675905", "text": "public function delete()\r\n {\r\n $directory = rtrim(config('infinite.upload_path'), \"/\");\r\n\r\n Storage::delete($directory . '/' . $this->file_name . '.' . $this->extension);\r\n }", "title": "" }, { "docid": "19b2a562afcef7db10ce9b75c7e6a8dc", "score": "0.5655305", "text": "public function deleteFromDisk(): void\n {\n Storage::cloud()->delete($this->path());\n }", "title": "" }, { "docid": "310a313c356bb26937b5100c8f9545a5", "score": "0.56489706", "text": "function remove() {\n\t\tif ($success = parent::remove()) {\n\t\t\t$sortorder = $this->getSortOrder();\n\t\t\tif ($this->id) {\n\t\t\t\t$success = $success && query(\"DELETE FROM \" . prefix('obj_to_tag') . \"WHERE `type`='pages' AND `objectid`=\" . $this->id);\n\t\t\t\t$success = $success && query(\"DELETE FROM \".prefix('comments').\" WHERE ownerid = \".$this->getID().' AND type=\"pages\"'); // delete any comments\n\t\t\t\t//\tremove subpages\n\t\t\t\t$mychild = strlen($sortorder)+4;\n\t\t\t\t$result = query_full_array('SELECT * FROM '.prefix('pages').\" WHERE `sort_order` like '\".$sortorder.\"-%'\");\n\t\t\t\tif (is_array($result)) {\n\t\t\t\t\tforeach ($result as $row) {\n\t\t\t\t\t\tif (strlen($row['sort_order']) == $mychild) {\n\t\t\t\t\t\t\t$subpage = new ZenpagePage($row['titlelink']);\n\t\t\t\t\t\t\t$success = $success && $subpage->remove();\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 $success;\n\t}", "title": "" }, { "docid": "10bc7ae5962f04f3b272400268862aa5", "score": "0.5642964", "text": "public function destroy($id)\n {\n $blogs = Product::find($id);\n \n \n\n unlink(storage_path('app/public/product_images/'.$blogs->image));\n \n \n Product::where('id',$id)->delete();\n \n session()->flash('message','Product deleted Successfully');\n return redirect('/product');\n\n }", "title": "" }, { "docid": "f007991d24671935b00a119a230c6f2c", "score": "0.5623655", "text": "public function destroy($id)\n {\n //\n\n $product = Product::findOrFail($id);\n \n if($product->photo_id){\n\n if(File::exists(public_path().$product->photo->file)){ //if image file exists\n unlink(public_path().$product->photo->file);\n // $product->photos()->delete(); \n }\n }\n \n $product->delete();\n \n Session::flash('deleted_product','Product deleted successfully.');\n\n\n return redirect()->route('products.index'); \n\n }", "title": "" }, { "docid": "9402b8ae252c52ea5a3f3e41171b6bd8", "score": "0.5618429", "text": "public function destroy($id)\n {\n $dbt = PageTopImage::where('id','like', $id)->first();\n /// Delete Stored image \n if (Storage::exists($dbt->image)) {\n /// Delete Stored image \n Storage::delete($dbt->image);\n }\n //print_r($dbt[0]->image);\n $dt = PageTopImage::find($id);\n $dt->delete();\n }", "title": "" }, { "docid": "e11ef3e0f0076d0789936fc77df7bfbe", "score": "0.56166035", "text": "public function deleteProductDb()\n\t{\n\t}", "title": "" }, { "docid": "bbb13cdc2a46bac35635b953aa8ffd50", "score": "0.56153476", "text": "public function testCrossStorageDeleteFile() {\n\t\t$storage2 = new Temporary([]);\n\t\t\\OC\\Files\\Filesystem::mount($storage2, [], $this->user . '/files/substorage');\n\n\t\t$this->userView->file_put_contents('substorage/subfile.txt', 'foo');\n\t\t$storage2->getScanner()->scan('');\n\t\t$this->assertTrue($storage2->file_exists('subfile.txt'));\n\t\t$this->userView->unlink('substorage/subfile.txt');\n\n\t\t$storage2->getScanner()->scan('');\n\t\t$this->assertFalse($this->userView->getFileInfo('substorage/subfile.txt'));\n\t\t$this->assertFalse($storage2->file_exists('subfile.txt'));\n\n\t\t// check if file is in trashbin\n\t\t$results = $this->rootView->getDirectoryContent($this->user . '/files_trashbin/files');\n\t\t$this->assertCount(1, $results);\n\t\t$name = $results[0]->getName();\n\t\t$this->assertEquals('subfile.txt', \\substr($name, 0, \\strrpos($name, '.')));\n\t}", "title": "" }, { "docid": "f74a7d86b1f9ae84dc2cc0fdf612354f", "score": "0.5603438", "text": "public function destroy()\n {\n\n $id = Input::get('id');\n\n $delPage = $this->page->getDataById($id);\n $delPageCount = count($delPage->child);\n\n //if page to be deleted contains child page throw error\n if ($delPageCount > 0) {\n $data['msgError'] = 'The Page contains child Pages,delete all its child Pages before deleting this Page !!';\n\n return redirect(PREFIX . '/multicms/pages/pages')->withErrors($data);\n }\n\n if ( ! empty( $this->page->getDataById($id)->menu_icon )) {\n $menu_icon = $this->page->getDataById($id)->menu_icon;\n\n $menuIconDirectory = base_path() . '/uploads/pages/menu_icon';\n\n File::delete($menuIconDirectory . '/' . $menu_icon);\n\n }\n\n $delpagesLg = $delPage->pagesLg;\n // Start transaction!\n DB::beginTransaction();\n\n if (count($delpagesLg) > 0) {\n\n foreach ($delpagesLg as $page_lang) {\n\n if ( ! empty( $page_lang->banner )) {\n $banner = $page_lang->banner;\n\n $menuIconDirectory = base_path() . '/uploads/pages/banner';\n\n File::delete($menuIconDirectory . '/' . $banner);\n\n }\n\n if ( ! empty( $page_lang->thumbnails )) {\n $thumbnails = $page_lang->thumbnails;\n\n $menuIconDirectory = base_path() . '/uploads/pages/thumbnails';\n\n File::delete($menuIconDirectory . '/' . $thumbnails);\n\n }\n //if delete of any news languages fails,rollback all database changes\n //and redirect to news list with error\n try {\n $this->pageLg->deleteData($page_lang->id);\n\n } catch (Exception $e) {\n DB::rollback();\n $data['msgError'] = 'Error! Deleting languages associated with this news!';\n\n return redirect(PREFIX . '/multicms/pages/pages')->withErrors($data);\n }\n }\n }\n\n if ($this->page->deleteData($id)) {\n DB::commit();\n $data['msgSuccess'] = 'Successfully deleted Page !!';\n\n return redirect(PREFIX . '/multicms/pages/pages')->withErrors($data);\n } else {\n DB::rollback();\n $data['msgError'] = 'Error! Adding Page!';\n\n return redirect(PREFIX . '/multicms/pages/pages')->withErrors($data);\n }\n\n\n }", "title": "" }, { "docid": "390ba8cdad298c06073f709dc8af71c6", "score": "0.5603403", "text": "public function destroy(SubSubCategory $subSubCategory)\n {\n //\n }", "title": "" }, { "docid": "b2810c5543b8da342496d6eb4c07b1b2", "score": "0.55984217", "text": "public function destroy(Product $product)\n {\n $name = $product->name;\n $image = $product->path_img;\n $product->sizes()->detach();\n $deleted = $product->delete();\n\n if ($deleted) {\n if (!empty($image)) {\n Storage::disk('public')->delete($image); \n }\n return redirect()->route('products.index')->with('product-deleted' , $name); \n } else {\n return redirect()->route('homepage');\n }\n }", "title": "" }, { "docid": "77c576dd43e8fbb8054d57ede7036006", "score": "0.5597718", "text": "private function deleteProduct(array $data): void\n {\n $this->rejectMessages();\n $serviceInfo = [\n 'rest' => [\n 'resourcePath' => self::RESOURCE_PATH . '/' . $data['sku'],\n 'httpMethod' => Request::HTTP_METHOD_DELETE,\n ],\n 'soap' => [\n 'service' => self::SERVICE_NAME,\n 'serviceVersion' => self::SERVICE_VERSION,\n 'operation' => self::SERVICE_NAME . 'deleteById',\n ],\n ];\n $this->_webApiCall(\n $serviceInfo,\n $data\n );\n $this->runConsumers(self::DELETE_QUEUE_TOPIC_NAME);\n }", "title": "" }, { "docid": "49d97b46a2b73a9c6e378c728565fe2c", "score": "0.5592848", "text": "public function deleteFromCart()\n\t{\n\t\t$key = $_GET['product'];\n\t\tunset($_SESSION[_SES_NAME]['Cart'][$key]);\n\t\t$json['totalPrice'] = $this->calculateTotalPrice();\n\t\t$json['nb_product'] = $this->nbProduct();\n\t\techo json_encode($json);\n\t\texit();\n\t}", "title": "" }, { "docid": "e17c37b737fb644836dccb65d2890b86", "score": "0.5591803", "text": "public function delete(Page $page)\r\n {\r\n $this->getEntityManager()->remove($page);\r\n $this->getEntityManager()->flush();\r\n }", "title": "" }, { "docid": "374170092b35db127341ead03eb14e11", "score": "0.5591683", "text": "public function destroy(Product $product)\n {\n Storage::delete('public/catalogo/'.$product->name); //public para eliminar\n $product->delete();\n return redirect('products')->with('success','Catálogo removido');\n }", "title": "" }, { "docid": "f4d63fed86275077d602d6bc625fd360", "score": "0.558012", "text": "public function destroy($id)\n {\n $imagePath = Product::select('image')->where('id', $id)->first();\n $filePath = $imagePath->image;\n if (file_exists($filePath)) {\n unlink($filePath);\n Product::where('id', $id)->delete();\n }else{\n Product::where('id', $id)->delete();\n }\n $ProductCategory = Product_category::where('product_id', $id)->delete();\n $ProductAttribute = Product_attribute::where('product_id', $id)->delete();\n $ProductSize = Product_size::where('product_id', $id)->delete();\n $ProductColor = Product_color::where('product_id', $id)->delete();\n $ProductImage = Product_image::where('product_id', $id)->delete(); \n $ProductVariation = Product_variation::where('product_id', $id)->delete(); \n\n $notification=array(\n 'message' => 'Product Deleted Successfully !!',\n 'alert-type' => 'error'\n );\n return redirect()->back()->with($notification);\n }", "title": "" }, { "docid": "368230bb080f8f6c51f1832974a498e2", "score": "0.5580017", "text": "public function destroy($id)\n {\n $product = Product::where('id',$id)->first();\n $photo = $product->image;\n if($photo){\n unlink($photo);\n $product->delete();\n }else{\n $product->delete();\n }\n\n }", "title": "" }, { "docid": "3c75962e885128987a7452e1f644ac15", "score": "0.55793035", "text": "public function destroy($id)\n {\n $product = Product::findOrFail($id);\n\n\n// $path = storage_path('show');\n// if (!File::exists($path)) {\n// mkdir($path);\n// }\n// File::delete($path.\"/\" . $product['name'] . \".txt\");\n\n $product->delete();\n\n return redirect()->route('products.index')->with('message', 'Item deleted successfully.');\n }", "title": "" }, { "docid": "db1e52a2e667ac3428f60f68aa0fb475", "score": "0.557464", "text": "private function deleteProd(){\r\n\t\t\tif($this->get_request_method() != \"DELETE\"){\r\n\t\t\t\t$this->response('',406);\r\n\t\t\t}\r\n\t\t\t$id = (int)$this->_request['id'];\r\n\t\t\t$sku_id = $this->_request['sku_id'];\r\n\t\t\tif($id > 0){\r\n\r\n\t\t\t\tmysql_query(\"DELETE FROM products WHERE id = $id\");\t\t\t\t\r\n\t\t\t\tmysql_query(\"DELETE FROM products_stock_history WHERE sku_id = '$sku_id'\");\r\n\t\t\t\tmysql_query(\"DELETE FROM prod_return WHERE sku_id = '$sku_id'\");\r\n\t\t\t\tmysql_query(\"DELETE FROM prod_sales WHERE sku_id = '$sku_id'\");\r\n\t\t\t\t$prod_list=$this->productsList();\r\n\t\t\t\t$prod_history=$this->stockHistory();\r\n\t\t\t\t$success = array('status' => \"Success\", \"msg\" => \"Product details deleted.\",\"prod_list\"=>$prod_list,\"prod_history\"=>$prod_history);\r\n\t\t\t\t$this->response($this->json($success),200);\r\n\t\t\t}else\r\n\t\t\t\t$this->response('',204);\t// If no records \"No Content\" status\r\n\t\t}", "title": "" }, { "docid": "bc861c0a119005e7c5230aa532895f7e", "score": "0.55728245", "text": "function delete(){\n $conexion = conexion();\n $sql = \"DELETE FROM productos WHERE id_producto = '$this->id_prod';\";\n $conexion->query($sql);\n }", "title": "" }, { "docid": "4a7833fb18e0673fc44a788fa2e59a5a", "score": "0.5566872", "text": "function deleteUnsaveProduct()\n {\n $list = $this->getFluent()->where(\"status = 'not_in_system' AND add_date < ( NOW() - 60*12 )\")->fetchAll();\n\n if (!empty($list)) {\n foreach ($list as $l) {\n $this->delete($l['id_product']);\n }\n }\n }", "title": "" }, { "docid": "fe9c8d7082c1d09282ae145e0bf3102d", "score": "0.556189", "text": "public function removeProduct()\n {\n }", "title": "" }, { "docid": "a68f8428efc327bc7ec88fe4dce799a0", "score": "0.55578893", "text": "public function delete()\n\t{\n\t\t//product id\n\t\t$id = $this->uri->segment(3);\n\t\t$this->gedung_model->delete_gedung($id);\n\t\t// page setup\n\t\tif (strlen($_SESSION['search_string_selected'])==0){\n\t\t\t$next_page = $_SESSION['hal_skr'];\n\t\t} else {\n\t\t\t$next_page = ''.$_SESSION['hal_skr'].'?search_string='.$_SESSION['search_string_selected'].'&search_in='.$_SESSION['search_in_field'].'&order='.$_SESSION['order'].'&order_type='.$_SESSION['order_type'].'';\n\t\t}\n\t\tredirect($next_page);\n\t\t//redirect('prainspeksi/gedung');\n\t}", "title": "" }, { "docid": "94ff206289fd4d61f992a6c15683903d", "score": "0.55536604", "text": "function subprod_deactivate(){\n\tdelete_option('subprod_afiliado');\n\tdelete_option('subprod_produtos');\n\tdelete_option('subprod_titulowidget');\n\tdelete_option('subprod_cache');\n\tdelete_option('subprod_exibirnumprodutos');\n}", "title": "" }, { "docid": "4f0327b684c8e36a3c75eda514c1b40d", "score": "0.5552757", "text": "public static function deleteItemById($id)\n {\n if (isset($_SESSION['products'][$id])) {\n unset($_SESSION['products'][$id]);\n }\n }", "title": "" }, { "docid": "4361b6df9108296b984487abe9c7b479", "score": "0.55526835", "text": "public function afterDelete()\n {\n parent::afterDelete();\n if($this->image){\n $dir = Yii::getAlias('@frontend/web/storage').dirname($this->image);\n FileHelper::removeDirectory($dir);\n }\n }", "title": "" }, { "docid": "8dbf0bd8683ce1d4d559090aeb669aac", "score": "0.555187", "text": "public function delete_secondary() {\n $id = $_POST['edu_id'];\n $certificate = $_POST['certificate'];\n\n $data = array(\n 'edu_certificate_secondary' => ''\n );\n\n $updatedata = $this->common->update_data($data, 'job_add_edu', 'edu_id', $id);\n\n //FOR DELETE IMAGE AND PDF IN FOLDER START\n $path = 'uploads/job_education/main/' . $certificate;\n $path1 = 'uploads/job_education/thumbs/' . $certificate;\n\n unlink($path);\n unlink($path1);\n //FOR DELETE IMAGE AND PDF IN FOLDER END\n echo 1;\n die();\n }", "title": "" }, { "docid": "9f73890f1f53a7ce073273607cae6afd", "score": "0.5547838", "text": "public function thumbDelete($id)\n { \n $id = Input::get('id');\n $pages_lg_id = Input::get('pages_lg_id');\n\n $delImage = $this->pageLg->getDataById($pages_lg_id);\n\n $image = 'uploads/pages/thumbnails';\n File::delete($image . '/' . $delImage->thumbnails);\n\n\n $delImage->thumbnails = '';\n $delImage->save();\n\n $data['msgSuccess'] = 'Successfully deleted Thumbnail for this Page !';\n return redirect(PREFIX . '/multicms/pages/pages/managePage?id='.$id)->withErrors($data);\n }", "title": "" }, { "docid": "26caa61359f94174551b0fb38f69c335", "score": "0.55451083", "text": "public function deleteProduct() {\n\t\t$this->db->setQuery(\"DELETE FROM products WHERE product_id=$this->productId\");\n\t\t$result = $this->db->executeQuery();\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "b7ff7b407cf359bfc677b7b71df71b1a", "score": "0.5544068", "text": "public function destroysubcategory($id)\n {\n //\n }", "title": "" }, { "docid": "8f446839aa83042814e671182325ec58", "score": "0.5542628", "text": "public function it_deletes_a_product()\n {\n Http::fake();\n\n (new Shopify('shop', 'token'))->products(123)->delete();\n\n Http::assertSent(function (Request $request) {\n return $request->url() == 'https://shop.myshopify.com/admin/products/123.json'\n && $request->method() == 'DELETE';\n });\n }", "title": "" }, { "docid": "d34fd35101cdd6364fca15d28792da8c", "score": "0.5539738", "text": "public function destroy($lang , $Product)\n {\n\n $Product = Product::withTrashed()->where('id' , $Product)->first();\n\n if($Product->trashed()){\n\n if(auth()->user()->hasPermission('products-delete')){\n\n\n Storage::disk('public')->delete('/images/products/' . $Product->image);\n $Product->forceDelete();\n\n\n session()->flash('success' , 'Product Deleted successfully');\n\n $countries = Country::all();\n $products = Product::onlyTrashed()\n ->whenSearch(request()->search)\n ->whenCategory(request()->category_id)\n ->whenCountry(request()->country_id)\n ->paginate(5);\n return view('dashboard.products.index')->with('products' , $products)->with('categories' , $categories)->with('countries' , $countries);\n\n }else{\n\n session()->flash('success' , 'Sorry.. you do not have permission to make this action');\n $countries = Country::all();\n $products = Product::onlyTrashed()\n ->whenSearch(request()->search)\n ->whenCategory(request()->category_id)\n ->whenCountry(request()->country_id)\n ->paginate(5);\n return view('dashboard.products.index')->with('products' , $products)->with('categories' , $categories)->with('countries' , $countries);\n }\n\n\n\n }else{\n\n\n\n if(auth()->user()->hasPermission('products-trash')){\n\n if($Product->orders > '0'){\n session()->flash('success' , 'you can not delete this product because it is related with some users orders');\n return redirect()->route('products.index' , app()->getLocale());\n }\n\n $Product->delete();\n\n session()->flash('success' , 'Product trashed successfully');\n return redirect()->route('products.index' , app()->getLocale());\n\n }else{\n\n session()->flash('success' , 'Sorry.. you do not have permission to make this action');\n return redirect()->route('products.index' , app()->getLocale());\n\n }\n\n }\n\n\n }", "title": "" }, { "docid": "ed5465b6adee0fba4022292179cd7be7", "score": "0.55394447", "text": "public function delete()\n {\n # check if menu have children\n if ( ! $this->sub->isEmpty() ) {\n # let menu parent adopt the children\n foreach ( $this->sub as $child ) {\n $child->menu_parent = $this->menu_parent;\n $child->save();\n }\n }\n\n # delete menu meta\n DB::table('menus_meta')->where('menu_id', $this->id)->delete();\n\n # delete the menu\n parent::delete();\n }", "title": "" }, { "docid": "11f0155b19f5942ccff48a71e071741d", "score": "0.55377966", "text": "public function deleteAction() {\n\t\t$this->session = new Zend_Session_Namespace ( 'Default' );\n\t\t\n\t\t// Get the parameters\n\t\t$params = $request = $this->getRequest ()->getParams ();\n\t\t\n\t\t// Get all the cart products\n\t\t$products = $cart->products;\n\t\t\n\t\t$index = 0;\n\t\t\n\t\t// If the product is a domain delete the temporary session domain information\n\t\tif (! empty ( $params ['tld'] )) {\n\t\t\tforeach ( $products as $key => $product ) {\n\t\t\t #Delete domain in hosting if is incluse\n if (! empty ( $product ['domain_selected'] ) && $product ['domain_selected'] == $params ['tld']) {\n\t\t\t\t\tunset ( $products [$index] ); // Delete the product from the session cart \n\t\t\t\t\t$cart->products = array_values ( $products );\n\t\t\t\t\tunset ( $cart->domain );\n\t\t\t\t} elseif( $products['type'] == 'hosting' && $products['site'] == $params ['tld']) {\n unset( $cart->products[$key]['site'] ); \n }\n \n\t\t\t\t$index ++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Check if the product selected is a common product \n\t\tif (! empty ( $params ['product'] ) && is_numeric ( $params ['product'] )) {\n\t\t\t\n\t\t\t// Cycle all the products inserted in the cart\n\t\t\tforeach ( $products as $product ) {\n\t\t\t\t\n\t\t\t\t// Matching of the product selected and the product cycled\n\t\t\t\tif ($product ['product_id'] == $params ['product']) {\n\t\t\t\t\t\n\t\t\t\t\t// Delete the product from the session cart \n\t\t\t\t\tunset ( $products [$index] );\n\t\t\t\t\t$cart->products = array_values ( $products );\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t$index ++;\n\t\t\t}\n\t\t} elseif (! empty ( $params ['product'] ) && $params ['product'] == \"all\") {\n\t\t\tunset ( $cart );\n\t\t}\n\t\t\n\t\tif (! empty ( $cart->products ) && count ( $cart->products ) > 0) {\n\t\t\tif ($this->checkIfHostingProductIsPresentWithinCart ()) {\n\t\t\t\t$this->_helper->redirector ( 'domain', 'cart', 'default', array ('mex' => 'The domain has been deleted from the cart list. Choose another domain name.', 'status' => 'success' ) );\n\t\t\t} else {\n\t\t\t\t$this->_helper->redirector ( 'contacts', 'cart', 'default', array ('mex' => 'The domain has been deleted from the cart list.', 'status' => 'success' ) );\n\t\t\t}\n\t\t} else {\n\t\t\t$this->_helper->redirector ( 'index', 'index', 'default' );\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "2f4b60d8e5f7e52e6e646ec3b0678c89", "score": "0.5530172", "text": "private function _del($id) {\n $product = $this->product_model->get_info($id);\n if (!$product) {\n //tạo ra nội dung thông báo\n $this->session->set_flashdata('message', 'Không tồn tại sản phẩm này');\n redirect(admin_url('product'));\n }\n //thuc hien xoa san pham\n $this->product_model->delete($id);\n\n //xoa cac anh cua san pham\n $image_link = './upload/product/' . $product->image_link;\n if (file_exists($image_link)) {\n unlink($image_link);\n }\n }", "title": "" }, { "docid": "51cc47ba769c2ca69e04b04d84f1125d", "score": "0.55293596", "text": "public function destroy(Product $product)\n {\n Storage::disk('public')->delete($product -> imagen); \n $product->delete();\n return redirect()->route('adminproductos');\n }", "title": "" }, { "docid": "c68c33460f82ad4c6cba9c9a07db403b", "score": "0.5524328", "text": "public function deleted(Product $product)\n {\n if ($product->isForceDeleting()) {\n $product->channels()->detach();\n $product->collections()->detach();\n $product->assets()->detach();\n $product->variants()->forceDelete();\n $product->categories()->detach();\n $product->routes()->forceDelete();\n $product->recommendations()->forceDelete();\n }\n }", "title": "" }, { "docid": "db333b65591dd7b81858dfa7fa6337b6", "score": "0.55218256", "text": "public function delete() {\n\t\t// update children\n\t\t$sql = \"UPDATE\twcf\".WCF_N.\"_template_group\n\t\t\tSET\tparentTemplateGroupID = ?\n\t\t\tWHERE\tparentTemplateGroupID = ?\";\n\t\t$statement = WCF::getDB()->prepareStatement($sql);\n\t\t$statement->execute(array($this->parentTemplateGroupID, $this->templateGroupID));\n\t\t\n\t\tparent::delete();\n\t\t\n\t\t$this->deleteFolders();\n\t}", "title": "" }, { "docid": "d24d15e0d85f2e5d664625b4e16acf3f", "score": "0.55209553", "text": "public function product() {\n\t\t$params = array();\n\t\t$category_id = false;\n\t\t$product_data = $this->shop->products->Get_item($_POST['id']);\n\t\tif ($product_data) {\n\t\t\t$category_id = v($product_data['category_id'], false);\n\t\t\t$this->_check_category_access($category_id);\n\t\t}\n\n\t\t$this->_out['success'] = $this->shop->products->Delete($_POST['id'], $params);\n\n\t\tif ($category_id and $this->core->Count_hooks('plugin/pc_shop/save/product')) {\n\t\t\t$this->_out['success'] = true;\n\t\t\t$this->_out['data'] = array();\n\t\t\t$hook_object = false;\n\t\t\t$this->core->Init_hooks('plugin/pc_shop/save/product', array(\n\t\t\t\t'success' => &$this->_out['success'],\n\t\t\t\t'category' => $category_id,\n\t\t\t\t'out' => &$this->_out,\n\t\t\t\t'hook_object' => &$hook_object,\n\t\t\t));\n\t\t}\n\t\tif (!$this->_out['success'])\n\t\t\t$this->_out['error'] = $params->errors->Get();\n\t}", "title": "" }, { "docid": "e13cdd6089d909d293400efc5222f2ea", "score": "0.5510581", "text": "public function delete(): void\n {\n\t\t// only already saved articles can actively be deleted\n\n\t\tif(!is_null($this->id)) {\n\n\t\t\tArticleEvent::create(ArticleEvent::BEFORE_ARTICLE_DELETE, $this)->trigger();\n\t\t\t\t\n\t\t\t// delete record\n\n\t\t\t$db = Application::getInstance()->getVxPDO(); \n\t\t\t$db->deleteRecord('articles', $this->id);\n\n\t\t\t// delete instance references\n\n unset(self::$instancesById[$this->id], self::$instancesByAlias[$this->alias]);\n\n $db->deleteRecord('articles_files', ['articlesid' => $this->id]);\n\n\t\t\tArticleEvent::create(ArticleEvent::AFTER_ARTICLE_DELETE, $this)->trigger();\n\t\t}\n\t}", "title": "" }, { "docid": "e7b2552e3cb6da2468d7c16fbbcad509", "score": "0.55090386", "text": "public function destroy($id)\n {\n $category = SubCategory::findOrFail($id);\n\n DB::table('questions')->where('question_cat_name', '=', $id)->delete();\n $category->delete();\n Storage::delete($category->image);\n session()->flash('success','Subcategory Deleted Succesfully.');\n return redirect()->route('subcategory.index');\n }", "title": "" }, { "docid": "c275a3d0da79daf6223951a256f6be91", "score": "0.5505703", "text": "public function productSizeDelete($id){\n ACL::check([\"permission\" => \"mr_setup\"]);\n #-----------------------------------------------------------#\n ProductSizeGroup::where('id', $id)->delete();\n productsize::where('mr_product_size_group_id', $id)->delete();\n\n return back()\n ->with('success', \"Product Size Deleted Successfully!!\");\n }", "title": "" }, { "docid": "5ba299b8ba2ee4ad7281a8a74f1d25f1", "score": "0.5504601", "text": "public function destroy(SubCategory $subCategory)\n\n {\n $subCategoryId = $subCategory['id'];\n SubCategory::where('id',$subCategoryId)->delete();\n Brand::where('sub_category_id',$subCategoryId)->delete();\n session()->flash('message','Data Deleted SussessFuly');\n return redirect('/admin');\n }", "title": "" }, { "docid": "ca76bc1b32834d3e5a5978ccb99b2923", "score": "0.54951084", "text": "public function deleteAction()\n {\n if ( $this->getRequest()->getParam('id') > 0) {\n try {\n $subsubtask = Mage::getModel('bs_misc/subsubtask');\n $subsubtask->setId($this->getRequest()->getParam('id'))->delete();\n Mage::getSingleton('adminhtml/session')->addSuccess(\n Mage::helper('bs_misc')->__('Sub Sub Task was successfully deleted.')\n );\n $this->_redirect('*/*/');\n return;\n } catch (Mage_Core_Exception $e) {\n Mage::getSingleton('adminhtml/session')->addError($e->getMessage());\n $this->_redirect('*/*/edit', ['id' => $this->getRequest()->getParam('id')]);\n } catch (Exception $e) {\n Mage::getSingleton('adminhtml/session')->addError(\n Mage::helper('bs_misc')->__('There was an error deleting sub sub task.')\n );\n $this->_redirect('*/*/edit', ['id' => $this->getRequest()->getParam('id')]);\n Mage::logException($e);\n return;\n }\n }\n Mage::getSingleton('adminhtml/session')->addError(\n Mage::helper('bs_misc')->__('Could not find sub sub task to delete.')\n );\n $this->_redirect('*/*/');\n }", "title": "" }, { "docid": "22e2d7a19f994669decf669cbfb3e1fd", "score": "0.54938424", "text": "public function deleteProduct($id)\n {\n $productsInCart = $this->getProducts();\n unset($productsInCart[$id]);\n $this->session->set('products', $productsInCart);\n }", "title": "" }, { "docid": "b7dba676f2bec3953ddd38f4dfd7269c", "score": "0.5492622", "text": "public function destroy($id)\n {\n $product = product::find(Input::get('id'));\n\t\tif($product){\n\t\t\tFile::delete('public/'.$product->image);\n\t\t\t$product->delete();\n\t\t\treturn Redirect::to('admin/products');\n\t\t}\n }", "title": "" }, { "docid": "53eee40f2e33c1c3b53b819bb59d254d", "score": "0.54829484", "text": "public function delete()\n {\n Storage::delete($this->path);\n return parent::delete();\n }", "title": "" }, { "docid": "0cc4fae6dba0c367d44a12bfc15f4a8c", "score": "0.54791445", "text": "function delete() {\n $id = $this->uri->rsegment(3);\n $this->_del($id);\n\n //tạo ra nội dung thông báo\n $this->session->set_flashdata('message', 'Xóa thành công');\n redirect(admin_url('product'));\n }", "title": "" }, { "docid": "22bdfae3097b31cefc5d920dd8dd82d7", "score": "0.54772675", "text": "public function destroy($id)\n {\n $products = Product::findOrFail($id);\n $products->category()->detach();\n\n Storage::delete('public/'.$products->photo);\n $products->delete();\n\n Session::flash('success', 'Data berhasil dihapus');\n\n return redirect()->route('products.index');\n }", "title": "" }, { "docid": "a4f60b80185f7d0d8ac5ef8f14a8603f", "score": "0.54719234", "text": "public function delete($id){\n\n // DB::table('product_item')->where('id', $id)->delete();\n $pathimage = product_item::findOrFail($id);\n\n // localhost for base path\n\n $path = base_path().'/public'.$pathimage->id;\n\n // any for url or assets\n if(file_exists($path)){\n unlink($path);\n }\n product_item::find($id)->delete();\n\n // Return with success message\n\n return redirect()->back()->with('error', 'Delete Successfully Done !');\n }", "title": "" }, { "docid": "14ada696fe3099e263e2f0f5dca1eaef", "score": "0.5467723", "text": "public function delete_product($id){\n\t$this->load->model('admin/product_model');\n\t$this->product_model->delete_product($id);\n}", "title": "" }, { "docid": "96e0f5b6f5879ba3cd54a139885bb5da", "score": "0.5467248", "text": "public function delete($id)\n {\n $result = Products::find($id)->delete();\n }", "title": "" }, { "docid": "ab8f5d9960e7b1fbd4f9f404529a5d4d", "score": "0.54607373", "text": "public function deleteById($productId);", "title": "" }, { "docid": "b4ad613595daf3adb412a621b11ee55f", "score": "0.5458651", "text": "public function testDeleteProduct()\n {\n $this->browse(function (Browser $browser) {\n\n factory('App\\Models\\Category', 5)->create();\n factory('App\\Models\\Product', 3)->create();\n\n $product = Product::find(3);\n $browser->loginAs($this->user)\n ->visit('/admin/products')\n ->assertSee('Product List')\n ->click('tr td #deleted' . $product->id . ' > button')\n ->acceptDialog();\n\n $elements = $browser->visit('/admin/products')\n ->elements('.table-responsive table tbody tr');\n $numRecord = count($elements);\n $this->assertTrue($numRecord == 2);\n\n $this->assertSoftDeleted('products', [\n 'id' => $product->id,\n 'category_id' => $product->category_id,\n 'name' => $product->name\n ]);\n });\n }", "title": "" }, { "docid": "d39ff6fcffa627200045906e7ffacc4b", "score": "0.54547274", "text": "public function delete(){\n // TODO: make work more better\n parent::delete();\n }", "title": "" }, { "docid": "79ba7384e805f9cd4c181af1e15bd913", "score": "0.54514235", "text": "public function destroy($id)\n {\n //\n DB::beginTransaction();\n try {\n \n $product = Product::findOrFail($id);\n $imageOld = $product->image;\n $product->delete();\n\n DB::commit();\n\n // DELETE OK then delete thumbnail file\n if (File::exists(public_path($imageOld))) {\n File::delete(public_path($imageOld));\n }\n DB::commit();\n return redirect()->route('admin.product.index')->with('success','Delete product success');\n } catch (\\Exception $ex) {\n // insert into data to table category (fail)\n DB::rollBack();\n return redirect()->back()->with('error', $ex->getMessage());\n }\n }", "title": "" }, { "docid": "11ec1f8de0d018960982d717360a1648", "score": "0.54509336", "text": "public function destroy(Product $product)\n {\n $image_path = public_path().'uploads/product_images/'.$product->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 $product->delete();\n session()->flash('success', __(' تم الحذف بنجاح'));\n return redirect()->route('dashboard.products.index');\n //\n }", "title": "" }, { "docid": "84ffe699b65bfb3db0a10b147f3b184f", "score": "0.5450115", "text": "function delete_dinkassa_product($post_id)\r\n{\r\n $meta_key = META_KEY_PREFIX . 'id';\r\n $dinkassa_id = get_post_meta($post_id, $meta_key, true);\r\n if (! empty($dinkassa_id)) {\r\n $delete_dinkassa_products = get_option('delete_dinkassa_products');\r\n if ($delete_dinkassa_products === 'yes') {\r\n // Delete product in Dinkassa.se\r\n\r\n $product_info = get_product_info($post_id);\r\n create_async_http_request(\r\n \"DELETE\",\r\n null,\r\n \"inventoryitem\",\r\n null,\r\n $dinkassa_id,\r\n 0,\r\n \"product-deleted\",\r\n $product_info);\r\n }\r\n else {\r\n // Don't delete the product in Dinkassa.se.\r\n // Save dinkassa_id in the database so that WooCommerce can\r\n // remember which products that have been deleted. This pre-\r\n // vents them from being added during the next update.\r\n $term_id = get_deleted_item_term_id();\r\n if (! deleted_item_exists($term_id, 'product', $dinkassa_id)) {\r\n $deleted_item = new WC_Deleted_Item();\r\n $deleted_item->type = 'product';\r\n $deleted_item->dinkassa_id = $dinkassa_id;\r\n add_term_meta($term_id, 'meta_deleted_item', $deleted_item);\r\n }\r\n }\r\n }\r\n}", "title": "" }, { "docid": "57393e572b7123d4cfb3dfcd46293ab1", "score": "0.5447084", "text": "public function delete($key = false) {\n if (is_numeric($key))\n unset($this->products[$key]);\n else\n $this->products = array();\n }", "title": "" }, { "docid": "412fdb8e9078aea6e2f246614d6791a1", "score": "0.54433984", "text": "function delete(){\n\t sotf_Utils::erase($this->getDir());\n return parent::delete();\n }", "title": "" }, { "docid": "534b34e8dcf2edfff1b20f8ab9571ec9", "score": "0.54419166", "text": "public function delete()\n {\n $this->entityManager->getConnection()->exec('TRUNCATE subscriptions;');\n $this->entityManager->getConnection()->exec('TRUNCATE subscriptions_periods;');\n }", "title": "" } ]
55366dfb40b5ebf0bcad0bd8cbfe80d3
Check if an user was already given a review on a project.
[ { "docid": "285aa591ebd89814bac3832a6ddda9ba", "score": "0.7256192", "text": "function hrb_is_user_reviewed_on_project( $post_id, $recipient_id, $user_id ){\n\n\t// retrieve reviews with any status\n\t$args = array(\n\t\t'user_id' => $user_id,\n\t\t'post_id' => $post_id,\n\t\t'status' => '',\n\t);\n\t$reviews = appthemes_get_user_reviews( $recipient_id, $args );\n\n\treturn (bool) ( ! empty( $reviews->reviews ) );\n}", "title": "" } ]
[ { "docid": "cea748c994e4ad21b3768c75b834c988", "score": "0.74448", "text": "public function checkIfUserAlreadyReviewed(){\n $reviewed = Review::where('fundraiser_id',request()->input('fundraiserId'))->where('user_id',Auth::id())->exists();\n if($reviewed){\n return 1;\n }else{\n return 0;\n }\n }", "title": "" }, { "docid": "a7fc45126200a5b36626ef3f637db89a", "score": "0.6381736", "text": "function isPeerReviewer($userID,$amplID){\n\t$isPR=false;\n\t\n\t$review=new Reviews();\n\t$row=$review->findByUserAmp($userID,$amplID);\n\tif($row!=null){\n\t\t$isPR=true;\n\t}\n\treturn $isPR;\n}", "title": "" }, { "docid": "789aada0db00b09f6510a10108eed8ad", "score": "0.6358553", "text": "public function isReviewDuplicate($idUser, $idProduct) // torna true se l'utente può scrivere la recensione, false se non la può scrivere perchè ha già scritto una recensione per quel prodotto\n {\n // l'id del prodotto di cui l'utente vuole scrivere la recensione\n\n $entry = DB::table('reviews')->where([['product_id', '=', $idProduct],['user_id', '=', $idUser]])->first();\n\n if (is_null($entry)) return true;\n else return false;\n }", "title": "" }, { "docid": "411333f19e5b0d7ff74e46f5c97aa38e", "score": "0.6350765", "text": "public function maybe_remind(User $reviewer) {\n /*\n * A user is only able to do reviews if they have submitted in all\n * categories.\n */\n if(!$this->has_submitted($reviewer)) {\n return false;\n }\n\n $this->notify($reviewer);\n\n return true;\n }", "title": "" }, { "docid": "b85940a55b69ecd55281e3e5d4c9bcf6", "score": "0.6181774", "text": "function hrb_is_project_reviweable_by( $user_id, $post_id, $workspace_ids = 0 ){\n\n\tif ( ! $workspace_ids ) {\n\t\t$workspace_ids = hrb_get_participants_workspace_for( $post_id, $user_id );\n\t}\n\n\tforeach( (array) $workspace_ids as $workspace_id ) {\n\n\t\tif ( ! is_hrb_workspace_open_for_reviews( $workspace_id ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif ( ! hrb_is_work_ended( $workspace_id ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t}\n\treturn true;\n}", "title": "" }, { "docid": "7c58fd47dd56c37d3d105c582c3b7025", "score": "0.61680424", "text": "public function update(User $user, Review $review)\n {\n return $user->id === $review->user_id;\n }", "title": "" }, { "docid": "ac4c44d8b16f1eb864d06b0b50cbaf7c", "score": "0.61585015", "text": "private function checkHasReviewed($userId, $productId){\n $db = DB_connection\n ::getDB();\n $sqlQuery = \"select * from reviews where user_id = :userId and product_id = :productId\";\n $preparedQuery = $db->prepare($sqlQuery);\n $preparedQuery->bindParam(':userId', $userId, PDO::PARAM_INT, 11);\n $preparedQuery->bindParam(':productId', $productId, PDO::PARAM_INT, 11);\n $preparedQuery->execute();\n $result = $preparedQuery->fetch();\n if($result !== false){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "1055f892b30ec686e079dced8c3ae891", "score": "0.6093839", "text": "public function isReviewLegal($idUser, $idProduct) // torna true se l'utente può scrivere la recensione, false se non la può scrivere perchè non ha mai comprato il prodotto\n {\n // l'id del prodotto di cui l'utente vuole scrivere la recensione\n\n $entry = DB::table('review_permissions')->where([['product_id', '=', $idProduct],['user_id', '=', $idUser]])->first();\n\n if (is_null($entry)) return false;\n else return true;\n }", "title": "" }, { "docid": "68b2b68f0b6a51054e3b12a6f592726b", "score": "0.6093133", "text": "public static function reviewerExsists($name,$lastname,$petname){\n\n $review = Reviews::find()\n ->where(['name'=>$name, 'lastname' =>$lastname, 'petname' => $petname])\n ->exists();\n\n return $review == 1 ? true : false;\n }", "title": "" }, { "docid": "82fd805a200b065966aaeae4a588ac4d", "score": "0.59840715", "text": "public function checkForReview($productId, $userId)\n {\n $productReviewModel = new ProductReviewModel();\n\n $productReviewRecord = ProductReviewRecord::model()->findByAttributes(array('productId' => $productId, 'userId'=>$userId));\n\n if ($productReviewRecord)\n {\n return true;\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "4b77ac133f2c49e8ecbb76aad3372bc5", "score": "0.59614533", "text": "public function hasReviews();", "title": "" }, { "docid": "54955f2bb55ab1ae0fc77540ca457404", "score": "0.5953815", "text": "private function maybe_notify(User $reviewer, User $reviewee, $time) {\n /*\n * A user is only able to do reviews if they have submitted in all\n * categories.\n */\n if(!$this->has_submitted($reviewer)) {\n return false;\n }\n\n $this->notify($reviewer, $reviewee);\n\n return true;\n }", "title": "" }, { "docid": "e92160e13e75fedd6dc5220fcb826de1", "score": "0.5922124", "text": "static function checkReview($params)\n {\n\t $con =$params['dbconnection'];\n\t\t$query = \"SELECT \n\t\t`id`\n\t\tFROM `reviews` \n\t\tWHERE `order_id`='{$params['order_id']}' AND `user_id`='{$params['user_id']}'\" ;\n\t\t$result = mysqli_query($con,$query) ;\n\t\tif (mysqli_error($con) != '')\n\t\treturn \"mysql_Error:-\".mysqli_error($con);\n\t\tif (mysqli_num_rows($result) > 0) \n\t\treturn \"reviewexist\";\n\t\telse\n\t\treturn null;\n }", "title": "" }, { "docid": "007c1d6c34e9ff0e3cbfef7cbdb03a2f", "score": "0.5883377", "text": "public function add_user_review()\n {\n if ($this->general_settings->user_reviews != 1) {\n exit();\n }\n $seller_id = $this->input->post('seller_id', true);\n $review = $this->user_review_model->get_review_by_user($seller_id, user()->id);\n if (!empty($review)) {\n echo \"voted_error\";\n } else {\n $this->user_review_model->add_review();\n }\n }", "title": "" }, { "docid": "80965ee91ad40deecbad9faaee330d0e", "score": "0.5795626", "text": "public function repCheck() {\r\n\t\tif (!$this->institution_pk) {\r\n\t\t\t$this->Message = \"Invalid institution_pk ($this->institution_pk)\";\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t// first get the Institution for this user\r\n\t\t$Inst = new Institution($this->institution_pk);\r\n\t\tif ($Inst->pk <= 0) {\r\n\t\t\t$this->Message = \"Invalid institution object ($this->institution_pk)\";\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t// now set the vars\r\n\t\tif ($Inst->rep_pk == $this->pk) {\r\n\t\t\t$this->isRep = true;\r\n\t\t} else {\r\n\t\t\t$this->isRep = false;\r\n\t\t}\t\t\t\r\n\r\n\t\tif ($Inst->repvote_pk == $this->pk) {\r\n\t\t\t$this->isVoteRep = true;\r\n\t\t} else {\r\n\t\t\t$this->isVoteRep = false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "daef3b6b4f96b3dfe12e3d65b09e8d5b", "score": "0.57946366", "text": "public function canPostReview($params = array()) {\n\n //MAKE QUERY\n $select = $this->select()\n ->from($this->info('name'), array('review_id'));\n\n $reviewTableName = $this->info('name');\n\n if (isset($params['resource_id']) && !empty($params['resource_id'])) {\n $select->where(\"$reviewTableName.resource_id = ?\", $params['resource_id']);\n }\n\n if (isset($params['resource_type']) && !empty($params['resource_type'])) {\n $select->where(\"$reviewTableName.resource_type = ?\", $params['resource_type']);\n }\n\n if (isset($params['type']) && $params['type'] == 'editor') {\n $select->where(\"$reviewTableName.type =?\", $params['type']);\n if (!isset($params['notIncludeStatusCheck'])) {\n $select->where(\"$reviewTableName.status =?\", 1);\n }\n } elseif (isset($params['type']) && ($params['type'] == 'user' || $params['type'] == 'visitor')) {\n $select->where(\"$reviewTableName.type in (?)\", array($params['type'], 'visitor'));\n }\n\n if (isset($params['viewer_id']) && !empty($params['viewer_id'])) {\n $select->where('owner_id = ?', $params['viewer_id']);\n }\n\n $hasPosted = $select->query()->fetchColumn();\n\n //RETURN RESULTS\n return $hasPosted;\n }", "title": "" }, { "docid": "06fe5b51132bda9f5d96cf50f0cb1f4b", "score": "0.5782491", "text": "public function user_has_assigned_practitioner($user_id){\r\n\t\t\t\r\n\t\t$html = false;\r\n\t\t\r\n\t\tif($user_id){\r\n\t\t\t$user = get_user_by('ID', $user_id);\r\n\t\t\t\r\n\t\t\tif($user instanceof WP_User){\r\n\t\t\t\t$assigned_practitioner_id = get_user_meta($user_id, 'practitioner_id', true);\r\n\t\t\t\tif($assigned_practitioner_id){\r\n\t\t\t\t\t$html = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn $html;\r\n\t}", "title": "" }, { "docid": "19e0a1eb8632348e657f8a56c12cabb5", "score": "0.5733514", "text": "public function isLiked()\n {\n return $this->favorites()->where('user_id', auth()->id())->exists();\n }", "title": "" }, { "docid": "36aa52e6b4614a22832f3eba85abc389", "score": "0.57071036", "text": "public function access(User $user, SubmissionDocument $document)\n {\n return $user->id === $document->submission->user_id;\n }", "title": "" }, { "docid": "4a5de4f2c45a26e2360b485a898b8d04", "score": "0.5645015", "text": "private function isAlreadyRated(){\n\t\t\t$result = false;\n\t\t\t$newpostid = Validation::integerOnly($this->postid);\n\t\t\t$userip = $this->getUserIP();\n\t\t\t$sql = \"SELECT a.IP\n\t\t\t\tfrom data_liked a\n\t\t\t\twhere a.IP=:ip and a.PostID=:postid;\";\n\t\t\t\t$stmt = $this->db->prepare($sql);\n\t\t\t\t$stmt->bindValue(':ip', $userip, PDO::PARAM_STR);\n\t\t\t\t$stmt->bindValue(':postid', $newpostid, PDO::PARAM_STR);\n\n\t\t\t\tif ($stmt->execute()) {\t\n \t \tif ($stmt->rowCount() > 0){\n\t\t\t\t\t\t$result = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$result = false;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$result = false;\n\t\t\t\t}\n\t\t\treturn $result;\n\t\t}", "title": "" }, { "docid": "79ad96159297e2afbaf1e3034bb6c1ab", "score": "0.5633174", "text": "public function it_has_a_user()\n {\n $user= $this->singIn();\n $project = ProjectFactory::ownedBy($user)->create();\n\n $this->assertEquals($user->id,$project->activity()->first()->user->id);\n }", "title": "" }, { "docid": "f99e3133ce2a742de7ca832dfc9dfe2e", "score": "0.5630332", "text": "public function checkIfUserAlreadyFlagged()\n {\n $conn = Db::getInstance();\n $statement = $conn->prepare(\"SELECT post_id, user_id FROM flag WHERE post_id = :postid and user_id = :userid\");\n $statement->bindValue(':postid', $this->getMSPostId());\n $statement->bindValue(':userid', $_SESSION['login']['userid']);\n if ($statement->execute()) {\n if ($statement->rowCount() == 0) {\n return true;\n }else{\n throw new Exception(\"je hebt deze post in het verleden al eens gerapporteerd. Je kan dezelfde post maar 1 keer rapporteren.\");\n }\n } else {\n throw new Exception(\"de post kon niet gerapporteerd worden. Probeer later opnieuw.\");\n }\n }", "title": "" }, { "docid": "370a77db46f92ab434cc1236a3f6b5e3", "score": "0.56223243", "text": "public function isSaved() {\n\t\t$user = Auth::user();\n\n\t\tif ( !$user ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$userSavedProject = UserSavedProject::where('project_id', $this->id)->where('user_id', $user->id)->get();\n\n\t\treturn count($userSavedProject) != 0;\n\t}", "title": "" }, { "docid": "a48134b3084fc1f3182e75b95a6e2859", "score": "0.5615406", "text": "function is_user_projects() {\r\n return _is_request('projects', ['user_id' => is_user_id()]);\r\n }", "title": "" }, { "docid": "c2f0496a389709226724d6fe68ad3630", "score": "0.5612629", "text": "function is_user_project($value, $key = 'name') {\r\n return _is_request('project', ['user_id' => is_user_id(), $key => $value]);\r\n }", "title": "" }, { "docid": "45df31829dfcbdfe3dc3435a8bd484f2", "score": "0.56072676", "text": "private function review() {\n\n\t\t// show the review request 3 times, depending on the number of entries\n\t\t$show_intervals = array( 50, 200, 500 );\n\t\t$asked = $this->review_status['asked'];\n\n\t\tif ( ! isset( $show_intervals[ $asked ] ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$entries = FrmEntry::getRecordCount();\n\t\t$count = $show_intervals[ $asked ];\n\t\t$user = wp_get_current_user();\n\n\t\t// Only show review request if the site has collected enough entries\n\t\tif ( $entries < $count ) {\n\t\t\t// check the entry count again in a week\n\t\t\t$this->review_status['time'] = time();\n\t\t\tupdate_user_meta( $user->ID, $this->option_name, $this->review_status );\n\n\t\t\treturn;\n\t\t}\n\n\t\tif ( $entries <= 100 ) {\n\t\t\t// round to the nearest 10\n\t\t\t$entries = floor( $entries / 10 ) * 10;\n\t\t} else {\n\t\t\t// round to the nearest 50\n\t\t\t$entries = floor( $entries / 50 ) * 50;\n\t\t}\n\t\t$name = $user->first_name;\n\t\tif ( ! empty( $name ) ) {\n\t\t\t$name = ' ' . $name;\n\t\t}\n\n\t\t// We have a candidate! Output a review message.\n\t\tinclude( FrmAppHelper::plugin_path() . '/classes/views/shared/review.php' );\n\t}", "title": "" }, { "docid": "c5222c6f862cf3dc095228ca87f11524", "score": "0.5598554", "text": "public function create(User $user)\n {\n return $user->comments->count() < 1 ;\n }", "title": "" }, { "docid": "f4ef30fd73759527108eb3cec7f5e592", "score": "0.5541141", "text": "public function make(User $user, Project $project, int $id)\n {\n return $user->id == $project->findOrFail($id)->user_id;\n }", "title": "" }, { "docid": "9c49232f09f35d5f5bc12120bc0529c8", "score": "0.5529604", "text": "public function review_request() {\n\n\t\t// Only show the review request to high-level users on Formidable pages\n\t\tif ( ! current_user_can( 'frm_change_settings' ) || ! FrmAppHelper::is_formidable_admin() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Verify that we can do a check for reviews\n\t\t$this->set_review_status();\n\n\t\t// Check if it has been dismissed or if we can ask later\n\t\t$dismissed = $this->review_status['dismissed'];\n\t\tif ( $dismissed === 'later' && $this->review_status['asked'] < 3 ) {\n\t\t\t$dismissed = false;\n\t\t}\n\n\t\t$week_ago = ( $this->review_status['time'] + WEEK_IN_SECONDS ) <= time();\n\n\t\tif ( empty( $dismissed ) && $week_ago ) {\n\t\t\t$this->review();\n\t\t}\n\t}", "title": "" }, { "docid": "75f0781eb13a5199452cf6d1a8ce7a18", "score": "0.5521208", "text": "public function isRestricted($item, $userId) {\n \n if(empty($item->id) OR empty($item->user_id)) {\n return true;\n }\n \n // Check for the owner of the project.\n // If it is not published and not approved, only the owner will be able to view the project.\n if((!$item->published OR !$item->approved) AND ($item->user_id != $userId)) {\n return true;\n }\n \n return false;\n \n }", "title": "" }, { "docid": "07d678f02be736bdd7d92eb038242e24", "score": "0.5515961", "text": "public function has_reviewed($assignTag, $reviewerId, $revieweeId) {\n $pdo = $this->pdo();\n\n $sql = <<<SQL\nselect time\nfrom $this->tablename\nwhere reviewerid=? and revieweeid=? and assigntag=?\nlimit 1\nSQL;\n\n $stmt = $pdo->prepare($sql);\n $stmt->execute([$reviewerId, $revieweeId, $assignTag]);\n $row = $stmt->fetch(\\PDO::FETCH_ASSOC);\n if($row === false || $row === null || $row['time'] === null) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "e7c06be29a2fe63b5e7910bd69fd9906", "score": "0.5500523", "text": "public function hasUserTakenQuiz($quizName, LoggedInUser $user) {\n\t\treturn $this->quizDAL->hasUserTakenQuiz($quizName, $user);\n\t}", "title": "" }, { "docid": "c3fe1e28e218e6adfc17efe1dd18bee6", "score": "0.54918677", "text": "function _hasAccess()\n {\n // create user object\n $user =& User::singleton();\n\n $timePoint =& TimePoint::singleton($_REQUEST['sessionID']);\n $candID = $timePoint->getCandID();\n\n $candidate =& Candidate::singleton($candID);\n\n // check user permissions\n return ($user->hasPermission('access_all_profiles') || $user->getData('CenterID') == $candidate->getData('CenterID') || $user->getData('CenterID') == $timePoint->getData('CenterID'));\n }", "title": "" }, { "docid": "7e2fa4adfdb41c9a9ee0eba9baddcc22", "score": "0.5491744", "text": "function is_project_create($name, $data, $user_id = 0) {\r\n return _is_request('project/create', ['user_id' => $user_id ?: is_user_id(), 'name' => $name, 'data' => $data]);\r\n }", "title": "" }, { "docid": "c333880529886a6a994a0d5d703967eb", "score": "0.5477273", "text": "public function favoredBy(User $user): bool\n {\n return $this->favoredUsers()\n ->whereKey($user->getKey())\n ->exists();\n }", "title": "" }, { "docid": "7554673c9fcc479f19d09c343d80ee61", "score": "0.54753226", "text": "public function approve($user)\n {\n return $user->hasPermission('approve_users');\n }", "title": "" }, { "docid": "fa677ad32af6ff9d0addfcd3f5d1cac5", "score": "0.5464903", "text": "public function markSurveyNewForUserAction()\t{\n\n\t\t$this->_validateRequiredParameters(array('user_id', 'user_key', 'starbar_id'));\n\n\t\tif ($this->related_survey_id!=null) {\n\t\t\t// We have a related survey.\n\n\t\t\t// Check if this user has already seen this survey\n\t\t\tif (Survey_Response::checkIfUserHasCompletedSurvey($this->user_id,$this->related_survey_id)) {\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\t// User has not seen this survey. Add it to their list\n\t\t\t\tSurvey_Response::addSurveyForUser($this->user_id,$this->related_survey_id);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else {\n\t\t\treturn false; // There is no related survey for this trailer\n\t\t}\n\t}", "title": "" }, { "docid": "5fa3172336d0d7cb81f922ff36f88c89", "score": "0.5459847", "text": "function is_project_owner()\n\t{\n\t\t$project = Configure::read(\"project\");\n\t\tif(empty($project)) { return false; }\n\t\treturn $project['Project']['user_id'] == $this->me();\n\t}", "title": "" }, { "docid": "d4be9fefb6149b4f9d893c1e41f70c8a", "score": "0.54166013", "text": "public function submitted(User $user, Submission $submission, $time) {\n /*\n * Ensure we can still do reviews...\n */\n if($this->after_due($time)) {\n return false;\n }\n\n /*\n * A user is only able to do reviews or be reviewed if they have submitted in all\n * categories.\n */\n if(!$this->has_submitted($user)) {\n return false;\n }\n\n /*\n * If none of the instructors haven't been notified before,\n * and students have been assigned to one-another, then email instructors\n */\n if (!$this->hasNotifiedInstructors()){\n if (!$this->isAssigned()) {\n // Email Instructors\n $this->notifyMissingAssignments();\n }\n }\n\n // Get the reviewers for this submission\n $reviewAssignments = new ReviewAssignments($this->assignment->site->db);\n $reviewers = $reviewAssignments->getMemberReviewers($user->member->id, $this->assignment->tag);\n\n /*\n * Iterate over the reviewers\n */\n foreach($reviewers as $reviewer) {\n $this->maybe_notify($reviewer['reviewer'], $user, $time);\n }\n\n /*\n * If this is a first submission for this user, they may be\n * in a position to now review other posts\n */\n $submissions = new Submissions($this->assignment->site->db);\n $subs = $submissions->get_submissions($user->member->id, $this->assignment->tag, $submission->tag);\n if(count($subs) == 1) {\n /*\n * This is a first submission\n * Iterate over the reviewees. If any are ready, notify this user.\n */\n $reviewees = $reviewAssignments->getMemberReviewees($user->member->id, $this->assignment->tag);\n foreach($reviewees as $reviewee) {\n if($this->has_submitted($reviewee['reviewee'])) {\n $this->notify($user);\n break;\n }\n }\n }\n }", "title": "" }, { "docid": "83b6f7e71c616f56fdab02a0a7d73536", "score": "0.5413916", "text": "public function checkRated($video_id, $user_id) {\n\n $select = $this->select()\n ->where('videorating_id = ?', $video_id)\n ->where('user_id = ?', $user_id)\n ->limit(1);\n $row = $this->fetchAll($select);\n\n if (count($row) > 0)\n return true;\n return false;\n }", "title": "" }, { "docid": "4a0525175bb9642342d20b502170e096", "score": "0.5413315", "text": "public function canApproveCreator( $userId ){\n $OK = true;\n if( !empty($this->is_verify) ){\n $OK = false;\n if( ! $this->isCreator($userId) && ! $this->hasApproved( $userId ) ){\n $OK = true;\n }\n }\n return $OK;\n }", "title": "" }, { "docid": "7e08ef850246b1ed37aad96e7f82ad97", "score": "0.53834", "text": "function canView(User $user) {\n $project = $this->getProject();\n\n return $project instanceof Project && $user->getMinVisibility() <= $this->getVisibility() && ProjectObjects::canAccess($user, $project, $this->getProjectPermissionName());\n }", "title": "" }, { "docid": "34cc179ad86584d32eee0c15f4abd7b0", "score": "0.53762305", "text": "public function update( User $user, Practice $practice ) {\n\t\treturn ($user->role == Constant::ROLE_OWNER) && ($practice->user_id == $user->id);\n\t}", "title": "" }, { "docid": "d745204de1919e468428a67304811cce", "score": "0.5374073", "text": "public function isAbleToReview($faustNum) {\n return $this->isServiceAvailable();\n }", "title": "" }, { "docid": "5b9234d684e8afa650851fd29ef99b71", "score": "0.5370594", "text": "public function view(User $user, Project $Project, int $id)\n {\n return $user->id == $Project->findOrFail($id)->user_id;\n }", "title": "" }, { "docid": "b55e87853af5bfb776ca994914d28074", "score": "0.53701884", "text": "public function add(Review $review) {\n $pdo = $this->pdo();\n\n $sql = <<<SQL\ninsert into $this->tablename(assigntag, time, metadata, reviewerid, revieweeid)\nvalues(?, ?, ?, ?, ?)\nSQL;\n\n $stmt = $pdo->prepare($sql);\n if(!$stmt->execute($review->exec($this))) {\n return false;\n }\n\n $review->id = $pdo->lastInsertId();\n\n return true;\n }", "title": "" }, { "docid": "2a266856b2e6c8203223ea93a1e5c2d7", "score": "0.53562164", "text": "public function addReview($post)\n {\n \\CustomHelper::postCheck($post,\n array(\n 'userToken' => 'required',\n 'reviewToId' => 'required|integer',\n 'reviewById' => 'required|integer',\n 'reviewRatingValue' => 'required',\n 'reviewText' => 'optional',\n 'reviewUserType' => 'required|enum=indUser,copUser'\n ),\n 6);\n\n $user = \\CustomHelper::postRequestUserDetailCheck($post->reviewUserType, $post->userToken, $post->reviewById);\n\n // getting post value\n $reviewById = $post->reviewById;\n $reviewToId = $post->reviewToId;\n $reviewText = $post->reviewText;\n $reviewRatingValue = $post->reviewRatingValue;\n\n\n // check hire or not\n if (!$this->indHire->isHired($reviewById, $reviewToId, $user['type'])) {\n //\n return false;\n }\n\n if (!$this->indReview->isReviewed($reviewById, $reviewToId, $user['type'])) {\n\n // add Review and rating\n $review = IndReview::create(array(\n 'reviewById' => $reviewById,\n 'reviewToId' => $reviewToId,\n 'reviewUserType' => $user['type'],\n 'reviewText' => $reviewText,\n 'reviewReportStatus' => 'N',\n 'reviewRatingValue' => $reviewRatingValue,\n 'reviewAddedDate' => Carbon::now(),\n 'reviewUpdatedDate' => Carbon::now()\n ));\n\n // set internal log\n if ($user['type'] == 'cop') {\n CopInternalLogHandler::addInternalLog($reviewById, $post);\n } else {\n IndInternalLogHandler::addInternalLog($reviewById, $post);\n }\n\n // now add to notification\n $message = \"<strong>\" . $user['name'] . \"</strong>\" . \" reviewed your profile\";\n $this->indNotificationHandler->addNotification(\n $userId = $reviewToId,\n $details = $message,\n $type = '_PROFILE_REVIEW_',\n $targetId = $review->reviewId\n );\n\n return array('success' => Lang::get('messages.profile.review.review_successful'), 'data' => $post);\n }\n\n // oh o...already reviewed\n return false;\n }", "title": "" }, { "docid": "d1146acb6eded4d818b63efe4e1fe65b", "score": "0.5343842", "text": "public function isAssigned($itemName,$userId);", "title": "" }, { "docid": "fb614ae2a381785606057146e3209650", "score": "0.5339817", "text": "public function authorize()\n {\n $project = $this->route('project');\n\n return $project->user_id == auth()->id();\n }", "title": "" }, { "docid": "dbfbd51dacec1e55e215576be8e7c819", "score": "0.5336419", "text": "public function isFavorited() {\n return $this->favorites()->whereUserId(auth()->id())->exists();\n }", "title": "" }, { "docid": "50a19f1063b17c12ac1e99e446debca6", "score": "0.53359926", "text": "function _isRecommendable() {\n // surfer must be logged in\n if (!$this->surferObj->isValid) {\n return FALSE;\n }\n\n // event must not already be in a public calendar\n $event = $this->_getEventDetails();\n $calInfo = $this->calendarObj->loadCalendar((int)$event['calendar_id']);\n\n if (is_null($calInfo['surfer_id'])) {\n return FALSE;\n }\n\n // surfer must not have recommended this event already\n $recommendations = $this->calendarObj->loadRecommendations(\n $this->eventId,\n $this->surferObj->surferId\n );\n\n if (count($recommendations) > 0) {\n return FALSE;\n }\n\n return TRUE;\n }", "title": "" }, { "docid": "27262c2e4452de0fb03544c4e17e55ac", "score": "0.53320545", "text": "public function checkReviewPermissions( $oTitle, $oUser, $sAction, &$bRight ) {\n\t\t$aActionsBlacklist = array( 'edit', 'delete', 'move', 'protect', 'rollback' );\n\t\tif ( !in_array( $sAction, $aActionsBlacklist ) )\n\t\t\treturn true;\n\n\t\t$oRev = BsReviewProcess::newFromPid( $oTitle->getArticleID() );\n\t\tif ( !$oRev ) {\n\t\t\treturn true; // There is no review on the page\n\t\t}\n\n\n// Because of FlaggedRevs is it now allowed to edit when a workflow is finished...\n\t\t$bResult = false;\n\t\twfRunHooks( 'checkPageIsReviewable', array( $oTitle, &$bResult ) );\n\n\t\tif ( ( $oRev->isActive() ) || ( $oRev->isStarted() && $bResult == false ) ) {\n\t\t\t// Restrict access only after review process has been started\n\t\t\tif ( !$oRev->isEditable() ) {\n\t\t\t\t$bRight = false;\n\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// check, if current user can currently review.\n\t\t\t$aPages = BsReviewProcess::listReviews( $oUser->getId() );\n\t\t\tif ( !in_array( $oTitle->getArticleID(), $aPages ) ) {\n\t\t\t\t$bRight = false;\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "0dbd108ab43740018580ce4b92d9dd51", "score": "0.5329477", "text": "public function isLikedBy(User $user) {\n return DB::table($likes_table)->where('thread_id', $this->id)->where('user_id', $user->id)->count() > 0;\n }", "title": "" }, { "docid": "78eedd53aaeebd73d02e15b239f8aead", "score": "0.53237534", "text": "function islp_assign_user($l_id) {\n global $DB;\n $return;\n $isexist = $DB->record_exists('learning_user_learningplan', array('lp_id' => $l_id));\n if ($isexist > 0) {\n $return = true;\n } else {\n $return = false;\n }\n return $return;\n}", "title": "" }, { "docid": "fff5675e1d46778f528354808645d2ab", "score": "0.532276", "text": "public function check_ownership($project_id) {\n $project_id = (int)$project_id;\n\n $sql = \"SELECT * FROM projects WHERE id = $project_id\";\n $project = $this->select($sql)[0];\n\n if($project['user_id'] == $_SESSION['user_logged_in'] ) {\n return true;\n } else {\n header(\"Location: /\");\n exit();\n }\n\n }", "title": "" }, { "docid": "524a60eb63d65098b92725eca9eb1df8", "score": "0.53218484", "text": "public function isOwnedBy ($user)\n {\n return (int) $user->id === (int) $this->user_id;\n }", "title": "" }, { "docid": "0855dcfd3554140cde4865375fa876f1", "score": "0.5315479", "text": "public function isAuthoredBy($article, $user): bool;", "title": "" }, { "docid": "8b005a579f8915c4127642b9ab50361c", "score": "0.53128785", "text": "static function checkAccessToObject(\n $review_plugin,\n $obj_id,\n $user_id,\n $cmd,\n $obj_type\n ) {\n\t\tglobal $ilDB, $ilUser;\n\n\t\tif ($user_id == \"\") {\n\t\t\t$user_id = $ilUser->getId();\n\t\t}\n\n\t\tswitch ($cmd) {\n\t\t\tcase \"inputReview\":\n\t\t\tcase \"saveReview\":\n if (count($review_plugin->review_db->getReviewForms(\n array(\"id\" => $obj_id, \"reviewer\" => $user_id)\n )) == 1) {\n return true;\n }\n /*\n $res = $ilDB->queryF(\n \"SELECT COUNT(id) FROM rep_robj_xrev_revi \"\n . \"WHERE id=%s AND reviewer=%s\",\n array(\"integer\", \"integer\"),\n array($obj_id, $user_id)\n );\n\t\t\t\tif ($ilDB->fetchAssoc($res)[\"count(id)\"] == 1) {\n\t\t\t\t\treturn true;\n }\n */\n\t\t\t\tbreak;\n\t\t\tcase \"showReviews\":\n if ($obj_type == \"review\") {\n if (count($review_plugin->review_db->getReviewForms(\n array(\"question_id\" => $obj_id, \"reviewer\" => $user_id)\n )) == 1) {\n return true;\n }\n }\n if ($obj_type == \"question\") {\n if (count($review_plugin->review_db->getCycleQuestions(\n array(\"id\" => $obj_id, \"owner\" => $user_id)\n )) == 1) {\n return true;\n }\n }\n /*\n\t\t\t\tif ($obj_type == \"review\") {\n $res = $ilDB->queryF(\n \"SELECT COUNT(id) FROM rep_robj_xrev_revi \"\n . \"WHERE id=%s AND reviewer=%s\",\n array(\"integer\", \"integer\"),\n array($obj_id, $user_id)\n );\n\t\t\t\t\tif ($ilDB->fetchAssoc($res)[\"count(id)\"] == 1) {\n\t\t\t\t\t\treturn true;\n }\n\t\t\t\t}\n\t\t\t\tif ($obj_type == \"question\") {\n $res = $ilDB->queryF(\n \"SELECT COUNT(question_id) FROM qpl_questions \"\n . \"WHERE question_id=%s AND owner=%s\",\n array(\"integer\", \"integer\"),\n array($obj_id, $user_id)\n );\n\t\t\t\t\tif ($ilDB->fetchAssoc($res)[\"count(question_id)\"] == 1) {\n\t\t\t\t\t\treturn true;\n }\n\t\t\t\t}\n */\n\t\t\t\tbreak;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "fca7e28253c63b0317f6183eece50a28", "score": "0.5309197", "text": "public function checkProjects($user)\n {\n foreach ($user->getProjets() as $key => $value) {\n if (!$this->get('app.manager.project')->findDevis($value)) {\n $this->addFlash(\n 'danger',\n $this->get('translator')->trans('user.project_not_found', ['%project%' => $value])\n );\n\n return false;\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "e33bc079732fc914cdde5ae346b22f00", "score": "0.5299163", "text": "public function authorize()\n {\n $proposal = Proposal::findOrFail($this->route('id'));\n\n return $proposal->deadline >= Carbon::today() && $proposal->approved_at == null;\n }", "title": "" }, { "docid": "0562d1c41010ae8f0910aff3312f5b05", "score": "0.52985007", "text": "public function canChoosePropose()\n {\n /**\n * @var bool\n */\n $isProposalLimit = $this->proposals()->where('kind', 1)->count() >= 3;\n\n return !$this->isClose() && $this->isOwn() && !$isProposalLimit;\n }", "title": "" }, { "docid": "ad27678f91b036c0f09f8345339a77fa", "score": "0.5297341", "text": "public function user_has_already_voted($proposal_id)\n {\n $meta_IP = get_proposal_like($proposal_id, 'voted_IP');\n\n $voted_IP = [];\n\n if (!empty($meta_IP[0])) {\n $voted_IP = $meta_IP[0];\n }\n\n // Retrieve current user IP\n $ip = $_SERVER['REMOTE_ADDR'];\n\n // If user has already voted\n if (in_array($ip, array_keys($voted_IP))) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "8d5c21dfad53995f0e6462eb7383ff18", "score": "0.52901703", "text": "public function view(?User $user, Board $board)\n {\n return $board->isApproved() || ($user != null && $board->created_by == $user->id);\n }", "title": "" }, { "docid": "d6993519813da329a80488c18d069907", "score": "0.5288592", "text": "function verificaPerfil($user,$perfil){\n\tif($user->perfil === $perfil){\n\t\treturn true;\n\t}else{\n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "1dc4d5ac901397ffab87be8aa934607c", "score": "0.528779", "text": "public function pardon(User $user): bool;", "title": "" }, { "docid": "350d72a2a30854f676071e92f7723843", "score": "0.52826375", "text": "function has_voted($user, $course) {\n global $DB;\n return $DB->record_exists('block_courseaward_vote', array(\n 'user_id'=>$user,\n 'course_id'=>$course,\n 'deleted'=>0\n ));\n}", "title": "" }, { "docid": "fe1be1e9c031ef74de90536baec4bdd1", "score": "0.52780837", "text": "public function view(User $user, Skill $skill)\n {\n return $user->id == $skill->user_id;\n }", "title": "" }, { "docid": "266605ab9c147f9295f7381af5a29bfa", "score": "0.52745134", "text": "public function ownsTeam($item)\n {\n return $this->id == $item->user_id;\n }", "title": "" }, { "docid": "0251b9511916ebd03af0bbae5d0594bd", "score": "0.5273376", "text": "public function completedByUser(User $user) {\n return $this->completedBy()\n ->where('user_id', $user->id)\n ->count() == 1;\n }", "title": "" }, { "docid": "9095f368c6583c73eb430c3c1cfd6f5f", "score": "0.5272529", "text": "public function chkAlreadyRated()\n\t\t\t{\n\t\t\t\t$sql = 'SELECT rate FROM '.$this->CFG['db']['tbl']['video_rating'].\n\t\t\t\t\t\t' WHERE user_id='.$this->dbObj->Param('user_id').' AND'.\n\t\t\t\t\t\t' video_id='.$this->dbObj->Param('video_id').' LIMIT 0,1';\n\n\t\t\t\t$stmt = $this->dbObj->Prepare($sql);\n\t\t\t\t$rs = $this->dbObj->Execute($stmt, array($this->CFG['user']['user_id'], $this->fields_arr['video_id']));\n\t\t\t\t if (!$rs)\n\t\t\t\t\t trigger_db_error($this->dbObj);\n\n\t\t\t\tif($row = $rs->FetchRow())\n\t\t\t\t\treturn $row['rate'];\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "a5a450cc9f190d63aade3dabaa05f4fa", "score": "0.5263988", "text": "public function is_user_in_exammode ($userid) {\n global $DB;\n return $DB->record_exists('local_exammode_user', array('userid' => $userid));\n }", "title": "" }, { "docid": "aa6a71e2ff1b6fc5782b4c4ee3c81d41", "score": "0.52633727", "text": "public function isUserTaken($user) {\n\t\t$dbal = GFDoctrineManager::getDoctrineDBAL();\n\n\t\t$sql = \"SELECT * FROM \".GF_TABLE_USERS.\" WHERE user = :user\";\n\t\t$stmt = $dbal->prepare($sql);\n\t\t$stmt->bindValue(\"user\", $user);\n\t\t$stmt->execute();\n\n\n\t\tif ($stmt->rowCount() == 0) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "09c04b2df630536d0267fb5d79d5900c", "score": "0.5260763", "text": "public function editOwnPost($user, $post) {\n\t\treturn $user->id === $post->user_id;\n\t}", "title": "" }, { "docid": "45234cf948ac9c08bd3444200a95768c", "score": "0.52512974", "text": "function isFavorite($idUser, $idRecette){\n\t$sql = \"SELECT idreciepe FROM panier WHERE iduser = \".$idUser.\" AND idreciepe = \".$idRecette.\"\";\n\t$fav = parcoursRs(SQLSelect($sql));\n\treturn count($fav);\n}", "title": "" }, { "docid": "d4fd5433f05a7549ee89ae776aa73d0a", "score": "0.5245879", "text": "public function checkIsAuthor($user_id) {\n\t\treturn ($this->client_id == $user_id);\n\t}", "title": "" }, { "docid": "63a958fedce9e142748a39642b4914f7", "score": "0.5241814", "text": "public function authorize()\n {\n return $this->project->isUserAuthor($this->user());\n\n }", "title": "" }, { "docid": "0a8de85d952c1b40910195022e829dd2", "score": "0.52320504", "text": "public function isActionAllowedForUser($userId, $projectId) {\n\n $dao = new ProjectDao();\n\n return $dao->isActionAllowedForUser($userId, $projectId);\n }", "title": "" }, { "docid": "b7a9bb6a2e50e0b140f75ca4b14685af", "score": "0.52293086", "text": "function canIssue($user) {\n return ($this->getStatus() == INVOICE_STATUS_DRAFT) && $user->getSystemPermission('can_manage_invoices');\n }", "title": "" }, { "docid": "2d2ff2df0f098a73eddb5133e063809b", "score": "0.5225487", "text": "public function view(User $user, Pet $pet)\n {\n return $user->has_permission('view-pet');\n }", "title": "" }, { "docid": "0c15d01665c81b0d38e945790186f54c", "score": "0.52254415", "text": "public function reviewable();", "title": "" }, { "docid": "024a52e844c24ce1b898da9b16a33975", "score": "0.52227706", "text": "public function canEdit($user = NULL)\n {\n /*if (!($user instanceof User))\n return false;*/\n \n $em = self::getEntityManager();\n $child_comments = $em->createQuery('SELECT COUNT(u) FROM ' . get_class() . ' u WHERE u.parent_id = :parent_id')\n ->setParameter('parent_id', $this->id)\n ->getSingleScalarResult();\n \n // If more than one child_comment, then there have been replies!\n $has_replies = $child_comments > 0;\n \n return !$has_replies && $user->id == $this->user->id && $this->created_at > time() - self::getEditDuration();\n }", "title": "" }, { "docid": "d11433e8e4bac16ae02cdb96cbcfcdc2", "score": "0.5216868", "text": "function can_review($syllabus)\n\t{\n\t\t$review_groups = $this->review_groups_query();\n\n\t\t$sql = \"SELECT\n\t\t\t\tdistinct syllabus.*\n\t\t\tFROM\n\t\t\t\tsyllabus JOIN module\n\t\t\tWHERE\n\t\t\t\tsyllabus.module_id = module.id\n\t\t\t\tAND isunderreview=1\n\t\t\t\tAND module.session=?\n\t\t\t\tAND syllabus.id=?\n\t\t\t\tAND \". $review_groups[\"sql\"]; \n\n\t\t$values = array();\n\t\t$values[] = $syllabus->module->session; \n\t\t$values[] = $syllabus->id;\n\t\t$values = array_merge($values, $review_groups['values']);\n\n\n\t\t$syllabuses = R::convertToBeans(\"syllabus\", R::getAll( $sql, $values));\n\t\treturn count($syllabuses);\n\t}", "title": "" }, { "docid": "d701a038510ca06c4db4cbc6172a73f5", "score": "0.52153677", "text": "public function userIsCreator($quizName, LoggedInUser $user) {\n\t\t$quiz = $this->quizDAL->getQuiz($quizName);\n\t\treturn (strcasecmp($user->getUserName(), $quiz->getCreator()) == 0);\n\t}", "title": "" }, { "docid": "f8463734b27f26ccdf345bcc50765de4", "score": "0.5215139", "text": "public static function isHired($project, $user) {\n return self::where('buyer_id', $project->client_id)\n ->where('contractor_id', $user->id)\n ->where('project_id', $project->id)\n ->whereIn('status', [\n self::STATUS_CLOSED, \n self::STATUS_OPEN, \n self::STATUS_PAUSED, \n self::STATUS_SUSPENDED\n ])\n ->exists();\n }", "title": "" }, { "docid": "b33620afcdc394b779466ff78ec29b17", "score": "0.52147675", "text": "public function isAuthor(User $user1=null)\n {\n return $user1 && $user1->getId() == $this->getUserid();\n }", "title": "" }, { "docid": "76bfc8bddb4575da00b95ca7f115d11b", "score": "0.5209929", "text": "abstract public function check(User $user) : bool", "title": "" }, { "docid": "08f64ddc596fe891dcadf12e22535d28", "score": "0.52026504", "text": "function program_responsible($programid, $userid) {\n global $DB, $USER;\n \n if (!isset($userid)) {\n $userid = $USER->id;\n }\n \n program_exists($programid);\n user_exists($userid);\n \n return $DB->record_exists(\n 'tool_epman_program',\n array(\n 'id' => $programid,\n 'responsibleid' => $userid\n )\n );\n}", "title": "" }, { "docid": "d46d81613bab332dc54ddda9e2bf6e0f", "score": "0.5201265", "text": "public function getIsReviewed()\n {\n return $this->is_reviewed;\n }", "title": "" }, { "docid": "7bb15ceb2363e6c1d7f1ae609965806a", "score": "0.51951057", "text": "public function hasRater($user) {\n if ($user instanceof BaseModel) {\n $user = $user->getKey();\n }\n\n return $this->raters()->where($this->getRaterKeyName(), $user)->count() > 0;\n }", "title": "" }, { "docid": "d92c1167241a3521b63b54e762d8594f", "score": "0.5193435", "text": "public function duplicateReview()\n {\n return craft()->plugins->getPlugin('productreview')->getSettings()->duplicateReview;\n }", "title": "" }, { "docid": "cff8bf68ee820695111df7b2430b599d", "score": "0.519167", "text": "private function checkAuth (User $user, Post $post){\n if ($user->id == $post->owner){\n return True;\n }\n return False;\n }", "title": "" }, { "docid": "1c0f6734cf5978e54e1b78b4b40e7e9d", "score": "0.51910514", "text": "private function voteIdea(): bool\n {\n try {\n $this->idea->voters()->attach(auth()->user());\n return true;\n } catch (\\Illuminate\\Database\\QueryException $e) {\n // User already voted for this idea\n return false;\n }\n }", "title": "" }, { "docid": "183fb4b45e183a44080985c247e5b639", "score": "0.51895034", "text": "public function isLiked($user_id)\n {\n return $this->hasMany(StoreRatingLikes::class, 'store_rating_id')->where('like', true)\n ->where('user_id', $user_id)->exists();\n }", "title": "" }, { "docid": "3f9de1bdbbd9b4037b4ba44a11ba17f8", "score": "0.51877844", "text": "public function isApproved();", "title": "" }, { "docid": "3f9de1bdbbd9b4037b4ba44a11ba17f8", "score": "0.51877844", "text": "public function isApproved();", "title": "" }, { "docid": "ceb10a26b472e103e615c85aeae07727", "score": "0.51860905", "text": "function sensei_has_user_completed_prerequisite_lesson( $current_lesson_id, $user_id ) {\n\n return WooThemes_Sensei_Lesson::is_pre_requisite_complete( $current_lesson_id, $user_id );\n\n}", "title": "" }, { "docid": "2aadc66283e9bc83b9baab9690a00dfa", "score": "0.5181877", "text": "public function check_doc_id($doc_id, $user_id){\n\t\tif ( $this->user_model->is_doc_owner($user_id, $doc_id))\n\t\t\treturn TRUE;\n\t\t// this method can be called as form validation, or outside of it, so the form validation library might not be present\n\t\tif ( isset($this->form_validation) && $this->form_validation != NULL)\n\t\t\t$this->form_validation->set_message('check_doc_id', 'You are not authorized to assign this document.');\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "7294980a202c79b186ebf5a3940dbcaa", "score": "0.5181298", "text": "public function getUserProductReview($user_id, $prod_id) {\r\n\t\t$sql = \"select * from pt_product_reviews where created_by = ? and product_id = ?\";\r\n\t\treturn $this->_getDb()->fetchRow($sql, array($user_id, $prod_id));\r\n\t}", "title": "" }, { "docid": "6cb0575835700277653b5868a06e8821", "score": "0.5179236", "text": "public function isTest(User $user) {\n return $this->run_owner_id == $user->id;\n }", "title": "" }, { "docid": "89be930c84a34dfbe2cae59b0dccdb06", "score": "0.5178936", "text": "public static function ownComment($userId)\r\n\t{\r\n\t\tif ($userId)\r\n\t\t{\r\n\t\t\t$user = JFactory::getUser();\r\n\r\n\t\t\tif ($userId == $user->id)\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "title": "" } ]
ba8f04039159133f328c2bdb63870f77
Set the object property _UpdateDate to $inUpdateDate
[ { "docid": "4ded33779885c8fd71033fcf33478576", "score": "0.79860824", "text": "function setUpdateDate($inUpdateDate) {\n\t\tif ( $inUpdateDate !== $this->_UpdateDate ) {\n\t\t\tif ( !$inUpdateDate instanceof DateTime ) {\n\t\t\t\t$inUpdateDate = new systemDateTime($inUpdateDate, system::getConfig()->getSystemTimeZone()->getParamValue());\n\t\t\t}\n\t\t\t$this->_UpdateDate = $inUpdateDate;\n\t\t\t$this->setModified();\n\t\t}\n\t\treturn $this;\n\t}", "title": "" } ]
[ { "docid": "14b85919f9aa82a3241df9272c743d7c", "score": "0.72760284", "text": "public function setUpdateDateValue() {\n }", "title": "" }, { "docid": "14b85919f9aa82a3241df9272c743d7c", "score": "0.72760284", "text": "public function setUpdateDateValue() {\n }", "title": "" }, { "docid": "38f7274149b54f57a8995c84300bc8c0", "score": "0.7244654", "text": "public function setUpdateDateValue()\n {\n }", "title": "" }, { "docid": "b1075adc617f8db7ff05585dec7ad956", "score": "0.6743915", "text": "public function beforeUpdate()\n {\n $this->modified_in = date('Y-m-d H:i:s');\n }", "title": "" }, { "docid": "b1075adc617f8db7ff05585dec7ad956", "score": "0.6743915", "text": "public function beforeUpdate()\n {\n $this->modified_in = date('Y-m-d H:i:s');\n }", "title": "" }, { "docid": "b1075adc617f8db7ff05585dec7ad956", "score": "0.6743915", "text": "public function beforeUpdate()\n {\n $this->modified_in = date('Y-m-d H:i:s');\n }", "title": "" }, { "docid": "f54ff4a86a4e82a7a882aa5262c35faa", "score": "0.66967624", "text": "public function setDateUpdate($dateUpdate)\n {\n if($dateUpdate instanceof DateTime) {\n $this->dateUpdate = $dateUpdate;\n }\n else {\n if($dateUpdate === null) {\n $dateUpdate = '';\n }\n $this->dateUpdate = new DateTime($dateUpdate);\n }\n return $this;\n }", "title": "" }, { "docid": "9673a9de38c636f7c0fe425ea5f83afc", "score": "0.6583911", "text": "public function setUpdateAt()\n\t{\n\t\t$this->updated_at = date($this->timestamp_format);\n\t}", "title": "" }, { "docid": "8cf9cd9fd5b0a49e70458283d3288564", "score": "0.6574623", "text": "public function preUpdate()\n {\n \t$this->updatedAt = new \\DateTime;\n }", "title": "" }, { "docid": "cc2ee967c83f0b8c7e5e32b74368293c", "score": "0.64758563", "text": "public function preUpdate()\n {\n $this->updatedAt = new \\DateTime();\n }", "title": "" }, { "docid": "4188fca44c06fde0c4d5f74f76430050", "score": "0.647266", "text": "public function setUpdated()\n {\n $this->updated = new \\DateTime('now', new \\DateTimeZone('UTC'));\n }", "title": "" }, { "docid": "6e67b8c86b191ae1db2570b6aac847dc", "score": "0.6415399", "text": "public function setUpdatedValue()\r\n {\r\n $this->setUpdated(new \\DateTime());\r\n }", "title": "" }, { "docid": "5f585612ad0210053fe3c5a72106ab58", "score": "0.6397183", "text": "public function testMagicSetUpdatedDateJDateObject()\n\t{\n\t\t$date = new JDate('October 12, 2011');\n\t\t$this->_instance->updatedDate = $date;\n\n\t\t$properties = TestReflection::getValue($this->_instance, 'properties');\n\n\t\t$this->assertInstanceOf('JDate', $properties['updatedDate']);\n\t\t$this->assertTrue($date === $properties['updatedDate']);\n\t}", "title": "" }, { "docid": "de9a2310b6b65b63f7633dd01cae1a77", "score": "0.6373065", "text": "public function setUpdatedValue() {\n $this->setUpdated(new \\DateTime());\n }", "title": "" }, { "docid": "4ae4dc0222172a4edf3fa513feff18ea", "score": "0.63540083", "text": "public function preUpdate()\t{\n\t\t$this->updatedAt = new \\DateTime('now', new \\DateTimeZone('UTC'));\n\t}", "title": "" }, { "docid": "709f5bbd77354cfc7e24c6dceae4a997", "score": "0.6353538", "text": "public function onPreUpdate()\n {\n $this->updatedAt = new DateTime();\n }", "title": "" }, { "docid": "e6cb769c9ceceb7167ee99d3f9bf5d9c", "score": "0.6351672", "text": "public function preUpdate()\n {\n $this->updatedAt = new \\DateTime('now', new \\DateTimeZone('UTC'));\n }", "title": "" }, { "docid": "e6cb769c9ceceb7167ee99d3f9bf5d9c", "score": "0.6351672", "text": "public function preUpdate()\n {\n $this->updatedAt = new \\DateTime('now', new \\DateTimeZone('UTC'));\n }", "title": "" }, { "docid": "cea16c615809134507e004e1926627ae", "score": "0.63441193", "text": "public function onPreUpdate()\n {\n $this->updatedAt = new \\DateTime();\n }", "title": "" }, { "docid": "cea16c615809134507e004e1926627ae", "score": "0.63441193", "text": "public function onPreUpdate()\n {\n $this->updatedAt = new \\DateTime();\n }", "title": "" }, { "docid": "cea16c615809134507e004e1926627ae", "score": "0.63441193", "text": "public function onPreUpdate()\n {\n $this->updatedAt = new \\DateTime();\n }", "title": "" }, { "docid": "cea16c615809134507e004e1926627ae", "score": "0.63441193", "text": "public function onPreUpdate()\n {\n $this->updatedAt = new \\DateTime();\n }", "title": "" }, { "docid": "43bc95ef756ecb027d4f3f3f4acd9691", "score": "0.63371134", "text": "public function onPreUpdate()\n {\n $this->updatedate = new \\DateTime(\"now\");\n }", "title": "" }, { "docid": "6d5fc2c2e47d32609cfd3fc578f1690c", "score": "0.6334411", "text": "protected function _update()\n\t{\n\t\t$this->date_modified = \\Core\\Date::getInstance(null, \\Core\\Date::SQL_FULL, true)->toString();\n\t}", "title": "" }, { "docid": "c9d91cb4a54d74069398e27c6814d0d0", "score": "0.6294942", "text": "public function testUpdateDisbursementDate()\n {\n }", "title": "" }, { "docid": "e96426da5b88b55c1fd7ec17590d8e70", "score": "0.6250763", "text": "public function beforeUpdate()\n {\n $this->updatedAt = new \\DateTime('now', new \\DateTimeZone('UTC'));\n }", "title": "" }, { "docid": "e96426da5b88b55c1fd7ec17590d8e70", "score": "0.6250763", "text": "public function beforeUpdate()\n {\n $this->updatedAt = new \\DateTime('now', new \\DateTimeZone('UTC'));\n }", "title": "" }, { "docid": "f8bb5b2ca18a27b8ca6b974427d1f0f9", "score": "0.6248278", "text": "public function onPreUpdate()\n {\n $this->updated = new \\DateTime;\n }", "title": "" }, { "docid": "687decdf92a611699c50e6807c18f38a", "score": "0.6237314", "text": "public function onPreUpdate()\n {\n $this->updatedAt = new \\DateTime(\"now\");\n }", "title": "" }, { "docid": "4e123293a7af84209c351d7b9b9b6031", "score": "0.6202754", "text": "public function setEntryDate($entryDate) {\n\t\t$this->entryDate = $entryDate;\n\t}", "title": "" }, { "docid": "a86d8d0b35191efe517d6021551e8396", "score": "0.619551", "text": "public function beforeUpdate()\n {\n // Set the modification date\n $this->inactive_date = date('Y-m-d');\n }", "title": "" }, { "docid": "98a383995ec8a74d34283b72dc80fade", "score": "0.61913097", "text": "public function setDateUpdate(?\\DateTime $dateUpdate)\n {\n $this->dateUpdate = $dateUpdate;\n\n return $this;\n }", "title": "" }, { "docid": "34c0b75bb4cfb8bbdb560708d000aa81", "score": "0.6182148", "text": "public function createUpdateDateTime()\n {\n $this->updated = new \\DateTime();\n }", "title": "" }, { "docid": "b5f44c1ff952e273d4dee2fd7c4b1880", "score": "0.61723524", "text": "public function setUpdatedDate($updated_at);", "title": "" }, { "docid": "bf4f4df792d004248d3c55a2bac4b0a2", "score": "0.617129", "text": "public function onPreUpdate()\n {\n $this->updatedAt = new \\DateTime(\"now\");\n }", "title": "" }, { "docid": "433e0c89775e1395840cdce7db6443ac", "score": "0.6155301", "text": "public function onPreUpdate()\n {\n $this->updatedAt = new \\DateTime(\"now\");\n }", "title": "" }, { "docid": "433e0c89775e1395840cdce7db6443ac", "score": "0.6155301", "text": "public function onPreUpdate()\n {\n $this->updatedAt = new \\DateTime(\"now\");\n }", "title": "" }, { "docid": "433e0c89775e1395840cdce7db6443ac", "score": "0.6155301", "text": "public function onPreUpdate()\n {\n $this->updatedAt = new \\DateTime(\"now\");\n }", "title": "" }, { "docid": "7910eac43315f275172f9f1db3b7d402", "score": "0.6154875", "text": "public function setUpdatedDate($updatedDate)\n\t{\n\t\t$this->updatedDate = (int) $updatedDate;\n\t}", "title": "" }, { "docid": "1777749cfe90b4e44c827732211f1c97", "score": "0.61532074", "text": "function getUpdateDate() {\n\t\treturn $this->_UpdateDate;\n\t}", "title": "" }, { "docid": "e6a018811641d33b11986d0930fa7fb7", "score": "0.6123437", "text": "public function setDateUpdated($date_updated)\n {\n $this->date_updated = $date_updated;\n }", "title": "" }, { "docid": "8c1f876cafb9a21cb5b5ccab10d72185", "score": "0.6101438", "text": "public function setUpdateDate($updateDate)\n {\n $this->updateDate = $updateDate;\n\n return $this;\n }", "title": "" }, { "docid": "e1685d5391c070f691995d6f640bfe3d", "score": "0.6096897", "text": "public function setOrderByUpdateDate() {\n\t\t$this->orderByUpdateDate = true;\n\t}", "title": "" }, { "docid": "10b19092e602610a5956a73465b7cbac", "score": "0.60940206", "text": "public function updateDate( Inx_Api_Recipient_Attribute $oAttr, $dValue );", "title": "" }, { "docid": "44f00e3a3b876f8ebfdfbf69a2bbf852", "score": "0.60818166", "text": "public function setDate()\n\t{\n\t\tif($this->isNewRecord)\n\t\t\t$this->create_time=$this->update_time=time();\n\t\telse\n\t\t\t$this->update_time=time();\n\t}", "title": "" }, { "docid": "985cb49297932c6700b6a806c2611324", "score": "0.60612833", "text": "public function getUpdateDate()\n {\n return $this->updateDate;\n }", "title": "" }, { "docid": "ac01f17f4c61cf341bf7eb8e319ffbca", "score": "0.60487765", "text": "public function beforeUpdate()\n {\n $this->update_time = date('Y-m-d H:i:s');\n }", "title": "" }, { "docid": "cec3e840a023d6550df06dfa6fef7567", "score": "0.60456043", "text": "public function onPreUpdate()\n\t{\n\t\t$this->updatedAt = new \\DateTime(\"now\");\n\t}", "title": "" }, { "docid": "8028de25ecd8f14b8205fd8025949650", "score": "0.60060424", "text": "public function onPreUpdate()\n {\n $this->updated = new \\DateTime(\"now\");\n }", "title": "" }, { "docid": "8028de25ecd8f14b8205fd8025949650", "score": "0.60060424", "text": "public function onPreUpdate()\n {\n $this->updated = new \\DateTime(\"now\");\n }", "title": "" }, { "docid": "8028de25ecd8f14b8205fd8025949650", "score": "0.60060424", "text": "public function onPreUpdate()\n {\n $this->updated = new \\DateTime(\"now\");\n }", "title": "" }, { "docid": "8028de25ecd8f14b8205fd8025949650", "score": "0.60060424", "text": "public function onPreUpdate()\n {\n $this->updated = new \\DateTime(\"now\");\n }", "title": "" }, { "docid": "24f31173b288183380213ff05c8ba1d9", "score": "0.60010904", "text": "public function setUpdDate($upd_date)\n {\n $this->upd_date = $upd_date;\n\n return $this;\n }", "title": "" }, { "docid": "24f31173b288183380213ff05c8ba1d9", "score": "0.60010904", "text": "public function setUpdDate($upd_date)\n {\n $this->upd_date = $upd_date;\n\n return $this;\n }", "title": "" }, { "docid": "26aa7c4b798f63d26eefb7f0b9816ed1", "score": "0.5999945", "text": "public function setObjectDate($date)\n {\n $this->date = $date;\n }", "title": "" }, { "docid": "52dc68626bde60f09ed9b2ae8dbf0ff5", "score": "0.5956891", "text": "public function setDate()\n {\n if ($this->isNewRecord)\n $this->create_time = $this->update_time = time();\n else\n $this->update_time = time();\n }", "title": "" }, { "docid": "6ae4019e6a3acb944f3a416026068ca3", "score": "0.5955202", "text": "public function beforeUpdate() {\n\t\t$this->modifiedAt = date('Y-m-d H:i:s');\n\t}", "title": "" }, { "docid": "1695d054081718270d1831e4ab3d65f4", "score": "0.59271735", "text": "public function onPreUpdate()\n {\n $this->modified_at = new \\DateTime(\"now\");\n }", "title": "" }, { "docid": "680c5e2288140ec4eaa2e51895dd561d", "score": "0.5921842", "text": "public function onPreUpdate() {\n $this->updated_at = new \\DateTime(\"now\");\n }", "title": "" }, { "docid": "32c025d462d2d857d645f95c83bd6a24", "score": "0.59125096", "text": "public function testMagicSetUpdatedDateString()\n\t{\n\t\t$this->_instance->updatedDate = 'May 2nd, 1967';\n\n\t\t$properties = TestReflection::getValue($this->_instance, 'properties');\n\n\t\t$this->assertInstanceOf('JDate', $properties['updatedDate']);\n\t}", "title": "" }, { "docid": "95fcb16276194c800cbd46e1ba495aed", "score": "0.5911861", "text": "public function onPreUpdate()\n {\n $this->updated_at = new \\DateTime(\"now\");\n }", "title": "" }, { "docid": "95fcb16276194c800cbd46e1ba495aed", "score": "0.5911861", "text": "public function onPreUpdate()\n {\n $this->updated_at = new \\DateTime(\"now\");\n }", "title": "" }, { "docid": "91b9e60b2b3b376c2b9d651c932ac5ce", "score": "0.5878184", "text": "public function onPreUpdate()\n {\n $this->updated_at = new \\DateTime('now');\n }", "title": "" }, { "docid": "f9e498a4e4d153d2555d34c816b8a65f", "score": "0.5870257", "text": "public function setEntrydate($v)\n\t{\n\t\t$dt = PropelDateTime::newInstance($v, null, 'DateTime');\n\t\tif ($this->entrydate !== null || $dt !== null) {\n\t\t\t$currentDateAsString = ($this->entrydate !== null && $tmpDt = new DateTime($this->entrydate)) ? $tmpDt->format('Y-m-d') : null;\n\t\t\t$newDateAsString = $dt ? $dt->format('Y-m-d') : null;\n\t\t\tif ($currentDateAsString !== $newDateAsString) {\n\t\t\t\t$this->entrydate = $newDateAsString;\n\t\t\t\t$this->modifiedColumns[] = UserPeer::ENTRYDATE;\n\t\t\t}\n\t\t} // if either are not null\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "f450d1e3ca45ff7267d4cd85346ec887", "score": "0.58669364", "text": "public function updateDatetime()\n {\n $this->setDatetime(new \\DateTime());\n }", "title": "" }, { "docid": "862bebedc4d465b639205923cd37beb5", "score": "0.5851887", "text": "public function onPreUpdate()\n {\n $this->setUpdated(new \\DateTime(\"now\"));\n }", "title": "" }, { "docid": "862bebedc4d465b639205923cd37beb5", "score": "0.5851887", "text": "public function onPreUpdate()\n {\n $this->setUpdated(new \\DateTime(\"now\"));\n }", "title": "" }, { "docid": "c30b425fa5cef58dcb20a4abc8d1ce4c", "score": "0.58391595", "text": "private function updateDates()\n {\n if (isset($this->getMetaData()->tableSchema->columns[$this->updatedField])) {\n $this->{$this->updatedField} = new CDbExpression('NOW()');\n }\n\n if ($this->isNewRecord\n && $this->{$this->createdField}\n && isset($this->getMetaData()->tableSchema->columns[$this->createdField])) {\n\n $this->{$this->createdField} = new CDbExpression('NOW()');\n }\n }", "title": "" }, { "docid": "75e6eef05e36d50db9fdac159835b3f8", "score": "0.583047", "text": "protected function setModifyDate(){\n $this->_modifyDate = date('Y-m-d H:i:s');\n }", "title": "" }, { "docid": "a630f712c6596017cee18d63a61a2add", "score": "0.58216894", "text": "public function setUpdated(\\DateTime $updated)\n {\n $this->updated = $updated;\n }", "title": "" }, { "docid": "5c7e49efb0a3acc57d6725b4606148b0", "score": "0.5784186", "text": "public function setUpdatedAtValue()\n {\n $this->updatedAt = new \\DateTime();\n }", "title": "" }, { "docid": "09ec80843f728795785e2775a4aab331", "score": "0.57821584", "text": "public function update()\n {\n $values = get_object_vars($this->model);\n\n foreach ($values as $key => $value) {\n if (in_array($key, $this->_validColumns))\n {\n if($key == \"date\" && $value instanceof Zend_Date)\n $data[$key] = $value->get(Zend_Date::TIMESTAMP);\n else\n $data[$key] = $value;\n }\n }\n\n $this->db->update(\n self::TABLE_NAME,\n $data,\n array('id = ?' => $this->model->getId())\n );\n }", "title": "" }, { "docid": "a944c6cb5c9c15aee16f43e406a747dd", "score": "0.57523614", "text": "public function _setUpdatedOn($updatedOn) {\n\t\t$this->_updatedOn = $updatedOn;\n\t}", "title": "" }, { "docid": "47f2fb14c505748508ae810f97861051", "score": "0.5732763", "text": "public function beforeUpdate()\n {\n if (empty($this->birthdate) || $this->birthdate == '0000-00-00') {\n $this->birthdate = null;\n }\n\n $this->modifiedAt = time();\n }", "title": "" }, { "docid": "ef03615a7caeb78b55ce84e4df0ff8cb", "score": "0.5730029", "text": "public function setUpdatedOn()\n {\n $date = date('Y-m-d H:i:s');\n $this->updatedOn = $date;\n\n return $this;\n }", "title": "" }, { "docid": "0cd2334c75ca5bd9b27c45922410f5a6", "score": "0.5729157", "text": "public function onPreUpdate()\n {\n $now = new \\DateTime('now');\n $now->setTimezone(new \\DateTimeZone('UTC'));\n $this->setUpdatedAt($now);\n }", "title": "" }, { "docid": "91f3cb5564ff1fa3cae4fedcd37680e8", "score": "0.5715393", "text": "public function setUpdatedt(\\DateTime $value)\r\n {\r\n $this->updatedAt = $value;\r\n }", "title": "" }, { "docid": "a192176872eef9342a30a659ddbed593", "score": "0.5696277", "text": "private function __set_upgrade_date() {\n\n $this->_master_version->meta_update_time = time();\n $this->_master_version->save();\n }", "title": "" }, { "docid": "5854c7b6a5c447c2b9d5d5ea24020859", "score": "0.5685723", "text": "public function updateDate(){\n\n $this->mod_login->verify_is_admin_login();\n $custom = $this->mongo_db->customQuery();\n \n $collectionName = 'user_investment_'.$this->input->get('exchange');\n $where['admin_id'] = (string)$this->input->get('admin_id');\n\n $insertArray = [\n\n 'goodNowDate' => $this->mongo_db->converToMongodttime(date('Y-m-d H:i:s')), \n 'good_button' => 'hide'\n ];\n $count = $custom->$collectionName->updateOne($where, ['$set' => $insertArray]);\n $this->investment_report();\n\n }", "title": "" }, { "docid": "f6f1345c76647828990ff72d1fed4335", "score": "0.5676789", "text": "public function setLastUpdateAttribute($date)\n {\n $myDate = Carbon::createFromFormat('Y-m-d', $date);\n if($myDate > Carbon::now()){\n $this->attributes['last_update'] = Carbon::parse($date);\n }else{\n $this->attributes['last_update'] = Carbon::createFromFormat('Y-m-d', $date); \n } \n }", "title": "" }, { "docid": "24f39d647c3f9d2af6641d4f8a12ebc6", "score": "0.56636167", "text": "public function setUpdatedDate($updated_date, $format, $time_zone)\n\t\t{\n\t\t\t$this->updated_date = date_create_from_format($format, $updated_date, $time_zone);\n\n\t\t\treturn $this;\n\t\t}", "title": "" }, { "docid": "f0e2312b646505afeedd38d9e55c0398", "score": "0.5661283", "text": "public function onPreUpdate()\r\n\t{\r\n\t\t$this->dataAltera = date('Y-m-d');\r\n\t}", "title": "" }, { "docid": "a53de1c9021ba62e4dbfde2c95d45a5d", "score": "0.5649615", "text": "public function avantUpdate()\n {\n $this->nom = InbeautyAppInterface::capitalize($this->nom);\n $this->dateMaj = new DateTime();\n }", "title": "" }, { "docid": "cd18a2fcbbbfd16463d44b6f9e13c318", "score": "0.5648005", "text": "public function getDateUpdate()\n {\n return $this->dateUpdate;\n }", "title": "" }, { "docid": "cd18a2fcbbbfd16463d44b6f9e13c318", "score": "0.5648005", "text": "public function getDateUpdate()\n {\n return $this->dateUpdate;\n }", "title": "" }, { "docid": "a3cb64d90593cbaaefb6a3424cbbbc26", "score": "0.56301415", "text": "public function updated(In $in)\n {\n // \n }", "title": "" }, { "docid": "6aaa2b2e1a0d84606ce7c8821e167efb", "score": "0.5603336", "text": "function setCreateDate($inCreateDate) {\n\t\tif ( $inCreateDate !== $this->_CreateDate ) {\n\t\t\tif ( !$inCreateDate instanceof DateTime ) {\n\t\t\t\t$inCreateDate = new systemDateTime($inCreateDate, system::getConfig()->getSystemTimeZone()->getParamValue());\n\t\t\t}\n\t\t\t$this->_CreateDate = $inCreateDate;\n\t\t\t$this->setModified();\n\t\t}\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "a789c2ef6d0f47ee93878bd3f295f23d", "score": "0.5585983", "text": "function setSendDate($inSendDate) {\n\t\tif ( $inSendDate !== $this->_SendDate ) {\n\t\t\t$this->_SendDate = $inSendDate;\n\t\t\t$this->setModified();\n\t\t}\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "3bc6d47da3fda922834b7fa21b65ddbe", "score": "0.558322", "text": "public function setUpdate_at($update_at)\r\n {\r\n $this->update_at = $update_at;\r\n\r\n return $this;\r\n }", "title": "" }, { "docid": "3bc6d47da3fda922834b7fa21b65ddbe", "score": "0.558322", "text": "public function setUpdate_at($update_at)\r\n {\r\n $this->update_at = $update_at;\r\n\r\n return $this;\r\n }", "title": "" }, { "docid": "6880a2ac17352f3ae8d3b09e6947c0fe", "score": "0.5577054", "text": "public function updateDatetime( Inx_Api_Recipient_Attribute $oAttr, $dtValue );", "title": "" }, { "docid": "7659f9bd5543dac07d7132d8c06c40ab", "score": "0.55708224", "text": "public function updateContactDate(){\n\n $this->mod_login->verify_is_admin_login();\n $custom = $this->mongo_db->customQuery();\n\n $post_data = $this->input->post();\n $collectionName = 'user_investment_'.$post_data['exchange'];\n $where['admin_id'] = (string)$post_data['admin_id'];\n\n $insertArray = [\n\n 'contactNowDate' => $this->mongo_db->converToMongodttime(date('Y-m-d H:i:s')),\n 'contact_button' => 'hide' \n ];\n $count = $custom->$collectionName->updateOne($where, ['$set' => $insertArray]);\n return true;\n }", "title": "" }, { "docid": "2f2d0e9707478dc8070201b4c7616911", "score": "0.5546011", "text": "public function setDateModified($date);", "title": "" }, { "docid": "d05ee1a94955026b8ad4b110e37766be", "score": "0.5544174", "text": "public function beforeValidationOnUpdate()\r\n {\r\n // Seta a data e hora antes de atualizar o status\r\n $this->respostaDt = date('Y-m-d H:i:s');\r\n }", "title": "" }, { "docid": "2585ecd0b5ac20250eeb707c55ae75e5", "score": "0.5535885", "text": "public function update()\n {\n $this->bean->setMeta('cast.exchangerate', 'double')->exchangerate = $this->bean->exchangerate;\n parent::update();\n }", "title": "" }, { "docid": "2585ecd0b5ac20250eeb707c55ae75e5", "score": "0.5535885", "text": "public function update()\n {\n $this->bean->setMeta('cast.exchangerate', 'double')->exchangerate = $this->bean->exchangerate;\n parent::update();\n }", "title": "" }, { "docid": "b78c146a62146e01be4f2b48602a4c00", "score": "0.55128336", "text": "protected function _update() {\n\t\t$objUserSessionData = new Zend_Session_Namespace ( 'user' );\n\t\t$objUserDetails = $objUserSessionData->userDetails;\n\n\t $objDateTime = new DateTime();\n\t\t$this->{Bf_Db_Table::COL_UPDATED_BY} = $objDateTime->format(Bf_Db_Table::MYSQL_DATETIME);\n\n\t\tif (! empty ( $objUserDetails->{User_Model_Db_Users::COL_ID_USERS} )) {\n\t\t\t$this->{Bf_Db_Table::COL_UPDATED_BY} = (int)$objUserDetails->{User_Model_Db_Users::COL_ID_USERS};\n\t\t} else {\n\t\t\t$this->{Bf_Db_Table::COL_UPDATED_BY} = 0;\n\t\t}\n\t}", "title": "" }, { "docid": "aa921173bfa5ba43de02974d3f9ad9c0", "score": "0.55109966", "text": "public function setUpdated()\n {\n $this->updated = new \\DateTime();\n return $this;\n }", "title": "" }, { "docid": "c65ac113195cb3231bcbb2f2ddbc09b9", "score": "0.55105925", "text": "public function touchEditDate(){\n $this->edit_date = new \\Datetime();\n }", "title": "" }, { "docid": "a179de93b401a24c63fa7ad879611d07", "score": "0.54957116", "text": "public function setDate($date) {\n\t\t$this->_date = $date;\n\t}", "title": "" } ]
2e640b2819e0e2483ca2c8015eacce77
Show the application dashboard.
[ { "docid": "c706d1a46bbb72c03e260f328ed1623c", "score": "0.0", "text": "public function index()\n {\n $filters = [\n 'organization' => '0'\n ];\n $organizations = Organization::where('status', 'active')\n ->where('type', 'cso')->get();\n $csos = Cso::where('status', 'active')->get();\n return $this->return_view($csos, $organizations, $filters);\n }", "title": "" } ]
[ { "docid": "cb6e0ad71a421a47071a8f6e8333e017", "score": "0.7825051", "text": "public function showDashboard()\n {\n return view(\"admin.dashboard\");\n }", "title": "" }, { "docid": "36ddaf38a543d27dc03afc1ab1ad175d", "score": "0.7605309", "text": "public function dashboard() {\n\t $this->render('dashboard');\n\t }", "title": "" }, { "docid": "87ce5015f00182229623646de59c2709", "score": "0.75718164", "text": "public function showDashboard()\n {\n return View::make('users.dashboard', ['user' => Sentry::getUser()]);\n }", "title": "" }, { "docid": "0fdd0382be975f86689160af24ea82c2", "score": "0.7555917", "text": "public function dashboard()\n {\n return view ('adminpanel.dashboard');\n }", "title": "" }, { "docid": "a66115f23f587470b8c0c36938a2607b", "score": "0.7533549", "text": "public function dashboard()\n\t{\n\t\treturn view('dashboard');\n\t}", "title": "" }, { "docid": "a814c74fa33fb66ab68bf5961a861428", "score": "0.75147", "text": "public function actionDashboard()\n {\n return $this->render('dashboard', []);\n }", "title": "" }, { "docid": "f1458f21e8ba0082475fb4d3d5dd5b82", "score": "0.75045663", "text": "public function dashboard()\n\t{\n\t\t//setting the side bar\n\t\t$sidebar = \"dashbaord\";\n\t\treturn view(\"admin/dashboard\",compact(\"sidebar\"));\n\t}", "title": "" }, { "docid": "560953216347e5dfd01ad84a476bd35c", "score": "0.7495437", "text": "protected function show() {\n Nav::setActiveTabs(['dashboard']);\n View::show('pages/auth/dashboard');\n }", "title": "" }, { "docid": "0be0696e4498cd39f61a470931f87acd", "score": "0.7490185", "text": "static public function dashboard() {\n App::render('dashboard.twig');\n }", "title": "" }, { "docid": "e405e9ef1b9206f4917a18f739d89aad", "score": "0.7482813", "text": "public function index()\n {\n $this->global['pageTitle'] = MYAPP_NAME.' : Dashboard';\n \n $this->loadViews(\"admin/dashboard\", $this->global, NULL , NULL);\n }", "title": "" }, { "docid": "21f99163ffbd4f48bcba74332ed01ce5", "score": "0.74373347", "text": "public function dashboard() {\n return view('backend.dashboard');\n }", "title": "" }, { "docid": "f684044cc49478a6f199ba7323f08d53", "score": "0.7425294", "text": "public function dashboard() {\n return view('admin.dasboard');\n }", "title": "" }, { "docid": "5ce46c83f39e108a118a06a4bd021633", "score": "0.74246854", "text": "public function dashboard()\n {\n return view('event-manager.dashboard');\n }", "title": "" }, { "docid": "66b8f7c1ffb939236185b94231da88ff", "score": "0.7417151", "text": "public function index()\n {\n return view('oxygencms::admin.dashboard');\n }", "title": "" }, { "docid": "b292d0aefb95b98b0c9bb9c5234aecca", "score": "0.7395091", "text": "public function index()\n {\n $widgets['fullcolumn'] = new DashboardWidget(Event::call('reborn.dashboard.widgets.fullcolumn'));\n $widgets['leftcolumn'] = new DashboardWidget(Event::call('reborn.dashboard.widgets.leftcolumn'));\n $widgets['rightcolumn'] = new DashboardWidget(Event::call('reborn.dashboard.widgets.rightcolumn'));\n\n $this->template->title(t('label.dashboard'))\n ->set('widgets', $widgets)\n ->view('dashboard');\n }", "title": "" }, { "docid": "6414c13dbbf066eeac6b39b4f8618d46", "score": "0.73931515", "text": "public function dashboard(){\n $data['current_page'] = $_SERVER['REQUEST_URI'];\n $data['title'] = \"Dashboard\";\n $data['welcome_message'] = \"Welcom to the Admin Panel Dashboard - Stuff Coming Soon!\";\n\n // Setup Breadcrumbs\n $data['breadcrumbs'] = \"\n <li><a href='\".DIR.\"AdminPanel'><i class='fa fa-fw fa-cog'></i> Admin Panel</a></li>\n <li class='active'><i class='fa fa-fw fa-dashboard'></i>\".$data['title'].\"</li>\n \";\n\n View::renderModule('AdminPanel/views/header', $data);\n View::renderModule('AdminPanel/views/adminpanel', $data);\n View::renderModule('AdminPanel/views/footer', $data);\n }", "title": "" }, { "docid": "6ac160069c243ac2fc9d561c605d8dca", "score": "0.7359748", "text": "public function index()\n {\n $this->global['pageTitle'] = 'CodeInsect : Dashboard';\n \n $this->loadViews(\"dashboard\", $this->global, NULL , NULL);\n }", "title": "" }, { "docid": "7f943c4ab23ae9224174d929e27daf6a", "score": "0.7357403", "text": "public function index()\n {\n return view('agent.dashboard');\n }", "title": "" }, { "docid": "1a8925153d4fdf57b36c041ec5d7a890", "score": "0.7350788", "text": "public function dashboard()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "1a8925153d4fdf57b36c041ec5d7a890", "score": "0.7350788", "text": "public function dashboard()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "77f64e9ebec53575cbee69c808ae641c", "score": "0.7348339", "text": "public function dashboard()\n {\n $this->layout->title = \"Frugal Calendar\";\n $this->layout->content = View::make('dashboard');\n }", "title": "" }, { "docid": "ccffd0739878752ff0eb825ba1b421b4", "score": "0.73473203", "text": "public function main()\n {\n return view('user.user.dashboard.main');\n }", "title": "" }, { "docid": "8b7b3f70249264987814e906e0c4a08e", "score": "0.7310895", "text": "public function dashboard()\n {\n $this->global['pageTitle'] = 'Incoming Parts - '.APP_NAME;\n $this->global['pageMenu'] = 'Incoming Parts';\n $this->global['contentHeader'] = 'Incoming Parts';\n $this->global['contentTitle'] = 'Incoming Parts';\n $this->global ['role'] = $this->role;\n $this->global ['name'] = $this->name;\n \n $data['classname'] = $this->cname;\n $data['readonly'] = $this->readonly;\n $this->loadViews($this->view_dir.'/dashboard', $this->global, $data);\n }", "title": "" }, { "docid": "28196d084f0a4275d3027e6d198899cc", "score": "0.73100924", "text": "public function dashboard()\n {\n //Insatnce de la class AnnonceModel\n $all = new AnnonceModel();\n $annonce = $all->findAll();\n $this->show('default/dashboard' , array('annonce' => $annonce));\n }", "title": "" }, { "docid": "c2d2e2ddd5f30c45bbec66ebafab47c6", "score": "0.7304336", "text": "public function index()\n {\n $this->render();\n $this->share( 'dashboardRightLeft', $this->container->render( 'dashboard-right-left' ) );\n $this->share( 'dashboardRightRight', $this->container->render( 'dashboard-right-right' ) );\n $this->layout->content = view( 'ensphere.auth::dashboard.dashboard' );\n }", "title": "" }, { "docid": "118f6fdb91be91d751e42108dcda45c1", "score": "0.7297324", "text": "public function dashboard()\n {\n \n return view('convection.dashboard');\n \n }", "title": "" }, { "docid": "651619d31743c1ca5cb10a5b635c5503", "score": "0.72939444", "text": "public function show()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "3e734887a0c9a587d6e79869270e41b9", "score": "0.7287446", "text": "public function index()\n {\n return view('app.administrators.dashboard.index');\n }", "title": "" }, { "docid": "118c04aca94182d0b2f7ac749a41b569", "score": "0.7285838", "text": "public function dashboard()\n {\n return view('pages.superAdmin.dashboard');\n }", "title": "" }, { "docid": "979df6f8245a87c8084d6a419248f035", "score": "0.727347", "text": "public function dashboard()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "979df6f8245a87c8084d6a419248f035", "score": "0.727347", "text": "public function dashboard()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "979df6f8245a87c8084d6a419248f035", "score": "0.727347", "text": "public function dashboard()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "4af7b25b19bfd1003655810a690dad6b", "score": "0.72733915", "text": "public function dashboard() {\n add_action( 'admin_menu', function() {\n add_menu_page( 'Fuse', 'Fuse', 'manage_options', config::$slug, function() {\n include_once(config::$viewspath . 'admin/fuse-dashboard.php');\n }); \n });\n\n\n /**\n * Fuse dashboard widgets\n */\n add_action('wp_dashboard_setup', function() {\n \\add_meta_box(\n 'dash_contact',\n 'Developer Contact Details',\n array($this, 'dash_contact' ),\n 'dashboard', 'side', 'high'\n );\n });\n\n /**\n * Hijack the Welcome Panel\n */\n \\remove_action( 'welcome_panel', 'wp_welcome_panel' );\n \\add_action('welcome_panel', function() {\n include_once(config::$viewspath . 'admin/fuse-dashboard-meta-welcome.php');\n });\n\n }", "title": "" }, { "docid": "8c07c24a1f4352676bdd170ad221de34", "score": "0.72663695", "text": "public function getDashboard()\n {\n $page['page_title'] = config('app.name') . ': Admin - Dashboard';\n $page['page_description'] = config('app.name') . ': Doctor Appointment Scheduler ';\n\n return view('main.layout');\n }", "title": "" }, { "docid": "cd420ee47132019bc667fc6201ff6e14", "score": "0.72559637", "text": "public function getDashboard()\n {\n return view('admin.index');\n }", "title": "" }, { "docid": "8cd0a13f3368c82f274273b3a5634a62", "score": "0.7251768", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "8cd0a13f3368c82f274273b3a5634a62", "score": "0.7251768", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "8cd0a13f3368c82f274273b3a5634a62", "score": "0.7251768", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "8cd0a13f3368c82f274273b3a5634a62", "score": "0.7251768", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "8cd0a13f3368c82f274273b3a5634a62", "score": "0.7251768", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "8cd0a13f3368c82f274273b3a5634a62", "score": "0.7251768", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "8cd0a13f3368c82f274273b3a5634a62", "score": "0.7251768", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "8cd0a13f3368c82f274273b3a5634a62", "score": "0.7251768", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "8cd0a13f3368c82f274273b3a5634a62", "score": "0.7251768", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "8cd0a13f3368c82f274273b3a5634a62", "score": "0.7251768", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "8cd0a13f3368c82f274273b3a5634a62", "score": "0.7251768", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "8cd0a13f3368c82f274273b3a5634a62", "score": "0.7251768", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "908a901a034226f160e1d57b626fae9c", "score": "0.72466016", "text": "public function index()\n {\n return view('/dashboards/application/index');\n }", "title": "" }, { "docid": "633fb58c80a5951c414d6ae33c1978d7", "score": "0.7241399", "text": "public function dashboard()\n {\n return View::make('admins.dashboard');\n }", "title": "" }, { "docid": "2ffc7668a2d7dafbb34f0f037ea18408", "score": "0.72408867", "text": "public function index()\n\t{\n\t\treturn view('agent.dashboard.index');\n\t}", "title": "" }, { "docid": "170c8bf6de673492828f0205cea49285", "score": "0.7235519", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "4f9cad14ec3924b214c3985f7b9584f3", "score": "0.7233406", "text": "public function indexAction()\r\n {\r\n \t$this->loadLayout()->_setActiveMenu('dashboard')->_title($this->__('DashBoard'));\r\n \t$this->_addBreadcrumb(Mage::helper('vendors')->__('DashBoard'), Mage::helper('vendors')->__('DashBoard'));\r\n\t\t$this->renderLayout();\r\n }", "title": "" }, { "docid": "b9f6b853ad276f6b6d25624c13274d3e", "score": "0.7228874", "text": "public function index()\n\t{\n\t return View::make('dashboard.dashboard');\n\t}", "title": "" }, { "docid": "4f692545c4f494cf661e7d389a31cf5f", "score": "0.7225958", "text": "protected function get_dashboard()\n\t{\n\t\treturn View::make('dashboard');\n\t}", "title": "" }, { "docid": "c85ecbcd8bfdc6c1649fce9f2ff24d90", "score": "0.7223095", "text": "public function index()\n {\n $dashboard_data = [];\n Session::flash('success','Welcome to future Starr admin panel.');\n return view('admin.dashboard', compact('dashboard_data'));\n }", "title": "" }, { "docid": "d5c9a1c7366ab2bbb988a0ede2547df3", "score": "0.7215577", "text": "public function index()\n {\n return view('Admin::dashboard');\n }", "title": "" }, { "docid": "1448d517659a49af3a75046bfa87f525", "score": "0.72135884", "text": "public function index()\n {\n return view('apps.pages.dashboard');\n }", "title": "" }, { "docid": "5632ff6f197064f244a6952c0fba9d45", "score": "0.72134346", "text": "public function index()\n\t{\n\n\t\treturn View::make('ims.dashboard.index');\n\t}", "title": "" }, { "docid": "59d85a2aaf4e3319679196fe6bfb07b6", "score": "0.71935964", "text": "public function index()\n\t{\n\t\treturn view('sanatorium/dashboards::index');\n\t}", "title": "" }, { "docid": "954c2b1f5888401f9e5f9d43cb39cb66", "score": "0.71893674", "text": "public function index()\n {\n return view('dashboard/main');\n }", "title": "" }, { "docid": "fdbdec2d62c5ca2d6accbaa165e3710d", "score": "0.71856666", "text": "public function index()\n {\n \n return view('pages.admin.dashboard');\n }", "title": "" }, { "docid": "860677a27259f47e2abf267f4d2f7e27", "score": "0.71845174", "text": "public function index()\n {\n $this->authorize(LogViewerPolicy::PERMISSION_DASHBOARD);\n\n $stats = $this->logViewer->statsTable();\n $percents = $this->calcPercentages($stats->footer(), $stats->header());\n\n $this->setTitle('LogViewer Dashboard');\n $this->addBreadcrumb('Dashboard');\n\n return $this->view('admin.system.log-viewer.dashboard', compact('percents'));\n }", "title": "" }, { "docid": "3bdce1ac3450af9600ef1e0548e495ba", "score": "0.71791834", "text": "public function index() {\n\n\t\t$this->dashboard();\n\n\t}", "title": "" }, { "docid": "510a3d4d4fc5f26735cfb805c403bc12", "score": "0.7178999", "text": "public function dashboard()\n {\n return view('admin.pages.dashboard');\n }", "title": "" }, { "docid": "57f81f91b584b0f1969f137fee33b74e", "score": "0.7178822", "text": "public function index()\n {\n // Gate::allows('is-admin')\n return view('dashboard');\n }", "title": "" }, { "docid": "fb056c0b3b80a9835b08833ffe9aef25", "score": "0.71748364", "text": "public function index()\r\n {\r\n $this->global['pageTitle'] = 'Dashboard';\r\n \r\n $this->loadViews(\"dashboard\", $this->global, NULL , NULL);\r\n }", "title": "" }, { "docid": "b936a80ac0cd743dc4c80e034f16d06d", "score": "0.7174445", "text": "public function index()\n {\n // dd(Route::current(), Route::currentRouteName(), Route::currentRouteAction());\n $this->attr['title'] = 'Dashboard';\n // dd('后台首页,当前用户名:'.auth('admin')->user()->name);\n return view('admin.dashboard.index', compact('title'));\n }", "title": "" }, { "docid": "598b327e8519f75058dc7eb896e444e4", "score": "0.71721923", "text": "public function index()\n\t{\n\t\t$data['applications'] = $this->applicationRepo->getAll();\n\n\t\treturn view('admin.applications.overview', $data);\n\t}", "title": "" }, { "docid": "8958569f9cef194dca7f2a15c320c0cb", "score": "0.7161582", "text": "public function actionDashboard()\n {\n if (Yii::app()->user->isGuest)\n {\n $this->actionLogin();\n exit;\n }\n\n $this->render('dashboard');\n }", "title": "" }, { "docid": "c6cdb2d5b3844895dda145f7b5bfde00", "score": "0.71599877", "text": "public function dashboard(){\n $user = $this->get('user');\n \n $dashpanel = $this->output->layout(\"dashpanel\");\n $dashbanner = $this->output->layout(\"dashbanner\");\n \n $this->output->addToPosition(\"banner\" , $dashbanner );\n $this->output->addToPosition(\"body\" , $dashpanel );\n \n }", "title": "" }, { "docid": "c1c7e6ec460fb29cc84ed2e548d123a5", "score": "0.7151146", "text": "public function index()\n {\n\n return view('provider.dashboard');\n }", "title": "" }, { "docid": "2ea2c71e80d6868006a25563720e0281", "score": "0.71509403", "text": "public function index()\n {\n $data = ['title' => 'Home','sub_title' => 'DPWH Bidding System','content' => 'Welcome to the online DPWH Bidding System.'];\n\n return view('dashboard')->with(compact('data'));\n }", "title": "" }, { "docid": "79d4f3dcbdf219617607d7fdec69656b", "score": "0.714957", "text": "public function dashboard()\n {\n\t\tif($this->sensors->is_not_empty('sensors'))\n\t\t{\n\t\t\t$data['title'] = \"Dashboard\";\n\t\t\t$data['subtitle'] = \"Display relevant data\";\n\t\t\t$data['description'] = \"Using charts and tables to illustrate the most important informations\";\n\n\t\t\t$this->load->view('header', $data);\n\t\t\t$this->load->view('dashboard', $data);\n\t\t\t$this->load->view('footer');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$data['title'] = \"Error\";\n\t\t\t$data['subtitle'] = \"Whoops, look like something went wrong...\";\n\t\t\t$data['description'] = \"The website encountered an error\";\n\n\t\t\t$this->load->view('header', $data);\n\t\t\t$this->load->view('db_empty', $data);\n\t\t\t$this->load->view('footer');\n\t\t}\n }", "title": "" }, { "docid": "f6b6324e72ee6fab33c9f214d91b76cf", "score": "0.71441406", "text": "public function dashboardAction() {\n return $this->render('ControlPanelBundle:Dashboard:dashboard.html.twig');\n }", "title": "" }, { "docid": "417ccfa69dc8486060c5255b5f8b193a", "score": "0.7142982", "text": "public function index()\n\t{\n\t\treturn View::make(\"dashboard.index\");\n\t}", "title": "" }, { "docid": "e5e61cee6f68de18db3dd1bccb8f1cf9", "score": "0.7136884", "text": "public function index()\n {\n return view('admin.dashboard',['title'=>'Dashboard','subtitle'=>'Admin Dashboard']);\n }", "title": "" }, { "docid": "dc50af2aef83e99d7a83c50f03b72521", "score": "0.7132746", "text": "public function index()\n {\n return view('admin.dashboard.index');\n }", "title": "" }, { "docid": "2941df939fb1581541b8662f49fc178f", "score": "0.713098", "text": "public function dashboard()\n\t{\n\n\t\tif (Auth::user()) {\n\t\t\treturn View::make('account.dashboard');\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn View::make('account.login');\n\t\t}\n\t}", "title": "" }, { "docid": "2653f0ce71dedaa1e205b4f0c7197723", "score": "0.7130058", "text": "public function index()\n {\n $statistics = $this->dashboard->getDashboardStatistics();\n return view('admin.dashboard.index')\n ->withStatistics($statistics);\n }", "title": "" }, { "docid": "5321ac25772a9c35e42d3b7b949b3d4f", "score": "0.7128687", "text": "public function index()\n {\n return view('laradmin::dashboard');\n }", "title": "" }, { "docid": "9dac154b72c62c4b94ca6d990dba4de0", "score": "0.712398", "text": "public function dashboard()\n {\n return view('pages.dashboard');\n }", "title": "" }, { "docid": "4948e699fcc1cdca8436e6583d123e5e", "score": "0.71188265", "text": "public function index()\n {\n $this->setMeta('Title', 'Page Title', 'description');\n\n return view('dashboard.index', $this->data);\n }", "title": "" }, { "docid": "ea9df934397a50f058796d2fa2638087", "score": "0.71174717", "text": "public function dashboard()\n {\n $this->global['pageTitle'] = 'Outgoing Parts - '.APP_NAME;\n $this->global['pageMenu'] = 'Outgoing Parts';\n $this->global['contentHeader'] = 'Outgoing Parts';\n $this->global['contentTitle'] = 'Outgoing Parts';\n $this->global ['role'] = $this->role;\n $this->global ['name'] = $this->name;\n \n $data['classname'] = $this->cname;\n $data['readonly'] = $this->readonly;\n $this->loadViews($this->view_dir.'/dashboard', $this->global, $data);\n }", "title": "" }, { "docid": "07d718b8ca39f85d5e428d97a12b177b", "score": "0.7117433", "text": "public function getIndex()\n\t{\n\t\t// Show the page\n\t\treturn View::make('backend.account.dashboard');\n\t}", "title": "" }, { "docid": "8436aa5902306289ef4aa397666ddd3b", "score": "0.7109032", "text": "public function index()\n {\n if($this->isAdmin() == TRUE)\n {\n $this->loadThis();\n }\n $this->global['pageTitle'] = 'Touba : Dashboard';\n \n $this->loadViews(\"dashboard\", $this->global, NULL , NULL);\n }", "title": "" }, { "docid": "3fd7ee20f2f65bfb6adcebd47464c5b2", "score": "0.71077615", "text": "public function index()\n {\n \treturn view('admin.dashboard');\n }", "title": "" }, { "docid": "5857c5429afb87a158b48c3c7902c4b4", "score": "0.7099872", "text": "public function index() {\n $this->view->render('dashboard/index', null, null);\n }", "title": "" }, { "docid": "bad12283e37ddb9cfaca585ea76b7a79", "score": "0.7098498", "text": "public function show()\n {\n return view('app');\n }", "title": "" }, { "docid": "f715d1f124bd07ff9f81a0d7ce96f852", "score": "0.70929056", "text": "public function dashboard()\n {\n view()->share('menu', 'dashboard');\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "09e07b62162bd32a8608e5ccb4ca0e59", "score": "0.7089245", "text": "public function dashboard(){\n\n\t\tif($this->session->userdata('admin_login')){\n\t\t\t// if admin is logged in loading the dash view\n\t\t\t$data['page_title'] = 'Admin Dashboard';\n\t\t\t$data['page_name'] = 'dashboard';\n\t\t\t$data['active'] = 'dashboard';\n\n\t\t\t$this->load->view('backend/index', $data, FALSE);\n\t\t}\n\t\telse{\n\t\t\tredirect(base_url('admin'),'refresh');\n\t\t}\n\t}", "title": "" }, { "docid": "e9e333d30b0a5fbbd74d7ac86380e64f", "score": "0.7088498", "text": "public function index()\n {\n return view('admin/dashboard');\n }", "title": "" }, { "docid": "e9e333d30b0a5fbbd74d7ac86380e64f", "score": "0.7088498", "text": "public function index()\n {\n return view('admin/dashboard');\n }", "title": "" }, { "docid": "6afb81606502d3aacca63761dbd8b28b", "score": "0.7084292", "text": "public function index()\n {\n return view('adminpartials.admindashboard');\n }", "title": "" }, { "docid": "4fe0a13b8bd492791e46ff69ea732208", "score": "0.7083742", "text": "public function index()\n {\n return view('admin.crud_admin.dashboard');\n }", "title": "" }, { "docid": "b59874ac9d8bc2f978d360b556d41f2a", "score": "0.7083035", "text": "public function dashboard()\n {\n if(!isset($_SESSION['logedin'])){\n header('Location: '. DOMAIN );\n }\n $this->view->render('dashboard');\n }", "title": "" }, { "docid": "812b850f2935fdf5dc3df428b6be7f66", "score": "0.7082308", "text": "public function index()\n {\n $client = Auth::user();\n return view('client.dashboard', compact('client'));\n }", "title": "" }, { "docid": "7c62fe1f03fd48ba49ec4ac57acd9963", "score": "0.7075653", "text": "public function index()\n {\n return view('dashboard.dashboard');\n }", "title": "" }, { "docid": "c9e82b04a5cffddf30be74e089a4641e", "score": "0.70751685", "text": "public function show()\n {\n return view('dashboard::show');\n }", "title": "" }, { "docid": "c9e82b04a5cffddf30be74e089a4641e", "score": "0.70751685", "text": "public function show()\n {\n return view('dashboard::show');\n }", "title": "" }, { "docid": "ae8ad0d436b585e184597f282b6ad1f6", "score": "0.70699096", "text": "public function index()\n {\n $dashboardWidgets = Dashboardwidget::orderBy('position', 'asc')->get();\n\n return view_backend('dashboard', compact('dashboardWidgets'));\n }", "title": "" }, { "docid": "048ed5c3ae90c3535c33e73d1e11ed4c", "score": "0.70698303", "text": "public function dashboard()\n {\n return view('admin/dashboard');\n }", "title": "" } ]
08aae556c581a631cddd73994540b77d
Constructor If $source is a string, it must be a URI and a default label will be assigned to it If $source is an array it is expected to contain elements "label" and "uri". If $source is an object, it is expected to have members "label" and "uri".
[ { "docid": "713974a00fd4bc9fb2392af43ae0eecd", "score": "0.61566335", "text": "public function __construct($source = NULL) {\r\n\t\tif (empty($source)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tparent::__construct($source);\r\n\r\n\t\tif (is_string($source)) {\r\n\t\t\treturn;\r\n\t\t} else if (is_array($source)) {\r\n\t\t\tif (!empty($source[\"autoTriggerRange\"])) {\r\n\t\t\t\t$this->autoTriggerRange = (int)$source[\"autoTriggerRange\"];\r\n\t\t\t\t$this->autoTriggerOnly = (bool)$source[\"autoTriggerOnly\"];\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (!empty($source->autoTriggerRange)) {\r\n\t\t\t\t$this->autoTriggerRange = (int)$source->autoTriggerRange;\r\n\t\t\t\t$this->autoTriggerOnly = (bool)((string)$source->autoTriggerOnly);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" } ]
[ { "docid": "b2c981d31748af9be476276688781a03", "score": "0.75077707", "text": "public function __construct($source = NULL) {\r\n\t\tif (empty($source)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t$optionalFields = array(\"contentType\", \"method\", \"activityType\", \"params\", \"closeBiw\", \"showActivity\", \"activityMessage\");\r\n\r\n\t\tif (is_string($source)) {\r\n\t\t\t$this->label = self::DEFAULT_ACTION_LABEL;\r\n\t\t\t$this->uri = $source;\r\n\t\t} else if (is_array($source)) {\r\n\t\t\t$this->label = $source[\"label\"];\r\n\t\t\t$this->uri = $source[\"uri\"];\r\n\t\t\tforeach ($optionalFields as $field) {\r\n\t\t\t\tif (isset($source[$field])) {\r\n\t\t\t\t\tswitch($field) {\r\n\t\t\t\t\tcase \"activityType\":\r\n\t\t\t\t\t\t$this->$field = (int)$source[$field];\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"closeBiw\":\r\n\t\t\t\t\tcase \"showActivity\":\r\n\t\t\t\t\t\t$this->$field = (bool)$source[$field];\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"params\":\r\n\t\t\t\t\t\t$value = (string)$source[$field];\r\n\t\t\t\t\t\tif (!empty($value)) {\r\n\t\t\t\t\t\t\t$this->$field = explode(\",\", $value);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->$field = (string)$source[$field];\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->label = (string)$source->label;\r\n\t\t\t$this->uri = (string)$source->uri;\r\n\t\t\tforeach ($optionalFields as $field) {\r\n\t\t\t\tif (isset($source->$field)) {\r\n\t\t\t\t\tswitch($field) {\r\n\t\t\t\t\tcase \"activityType\":\r\n\t\t\t\t\t\t$this->$field = (int)$source->$field;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"closeBiw\":\r\n\t\t\t\t\tcase \"showActivity\":\r\n\t\t\t\t\t\t$this->$field = (bool)(string)$source->$field;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"params\":\r\n\t\t\t\t\t\t$value = (string)$source->$field;\r\n\t\t\t\t\t\tif (!empty($value)) {\r\n\t\t\t\t\t\t\t$this->$field = explode(\",\", $value);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->$field = (string)$source->$field;\r\n\t\t\t\t\t\tbreak;\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": "a49555d56d453f15fb1a00048589942d", "score": "0.71027964", "text": "public function __construct(Source $source)\n {\n $this->source = $source;\n }", "title": "" }, { "docid": "acdb973b5b5b8620f2c3b63b8a27a091", "score": "0.70428854", "text": "public function __construct($label, $url = null);", "title": "" }, { "docid": "ddf1362ee1800249dd24f33cb56b4ee9", "score": "0.7027716", "text": "public function __construct($source)\r\n\t{\r\n\t\tif ($source == null) {\r\n\t\t\tthrow new \\InvalidArgumentException('null source');\r\n\t\t}\r\n\t\t$this->source = $source;\r\n\t}", "title": "" }, { "docid": "f5f0c7f0b7984b9f37df2e06f4c162c8", "score": "0.69576186", "text": "public function __construct( $source ) {\n\n //Initialize object state.\n $this->source = $source;\n $this->readonly = [\n 'contents', 'object', 'position', 'source', 'type'\n ];\n\n //Set the name of this object's instance for future checking.\n $parts = explode( '\\\\', get_class( $this ) );\n $this->object_type = array_pop( $parts );\n\n //Invoke customizeable object initialization.\n $this->initialize_element();\n }", "title": "" }, { "docid": "dc7f648fd5a96e7785b6f06755c5d452", "score": "0.694079", "text": "public function __construct(array $source = array())\n {\n $this\n ->setSource($source);\n }", "title": "" }, { "docid": "a491f031dfeae66f7acbd5e6576e553f", "score": "0.6645659", "text": "public function __construct($source = '')\n {\n if (func_num_args() > 0) {\n $this->source = $this->prepareSource($source);\n $this->topNodes = $this->parseNodes($this->source);\n }\n }", "title": "" }, { "docid": "f20405b37efb45f15c628324385fb8b8", "score": "0.6644976", "text": "public function __construct(string $source, \\Stripe\\Api\\Model\\V1SourcesSourcePostBody $payload)\n {\n $this->source = $source;\n $this->body = $payload;\n }", "title": "" }, { "docid": "59c3eeb2f8d8c6e50fa6464d3d3e1c81", "score": "0.6507886", "text": "function __construct(array $source,string $string_item=\"null\") {\n $this->string_value = $source[$string_item] ?? null;\n $this->string_item = $string_item;\n $this->source_data = $source;\n $this->_max = $this->_min=0;\n $this->db = DB::getInstance();\n $this->lang = (object)LANG_VALIDATE;\n $this->checkExist();\n }", "title": "" }, { "docid": "142d1848fe656e1e67a762b2c01b6220", "score": "0.6464965", "text": "public function setSource($source);", "title": "" }, { "docid": "9cebc2f5c0ba8023e0eb5df44ffdb860", "score": "0.64335704", "text": "public function __construct($source = null, array $options = array())\n\t{\n\t\t$hash = null;\n\n\t\tif (is_string($source))\n\t\t{\n\t\t\t$hash = strtoupper($source);\n\n\t\t\tswitch ($hash)\n\t\t\t{\n\t\t\t\tcase 'GET':\n\t\t\t\t\t$source = $_GET;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'POST':\n\t\t\t\t\t$source = $_POST;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'FILES':\n\t\t\t\t\t$source = $_FILES;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'COOKIE':\n\t\t\t\t\t$source = $_COOKIE;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'ENV':\n\t\t\t\t\t$source = $_ENV;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'SERVER':\n\t\t\t\t\t$source = $_SERVER;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$source = $_REQUEST;\n\t\t\t\t\t$hash = 'REQUEST';\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\telseif (is_object($source) && ($source instanceof Input))\n\t\t{\n\t\t\t$source = $source->getData();\n\t\t}\n\t\telseif (is_object($source) && ($source instanceof \\JInput))\n\t\t{\n\t\t\t$serialised = $source->serialize();\n\t\t\tlist ($xOptions, $xData, $xInput) = unserialize($serialised);\n\t\t\tunset ($xOptions);\n\t\t\tunset ($xInput);\n\t\t\tunset ($source);\n\t\t\t$source = $xData;\n\t\t\tunset ($xData);\n\t\t}\n\t\telseif (is_object($source))\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$source = (array) $source;\n\t\t\t}\n\t\t\tcatch (\\Exception $exc)\n\t\t\t{\n\t\t\t\t$source = null;\n\t\t\t}\n\t\t}\n\t\telseif (is_array($source))\n\t\t{\n\t\t\t// Nothing, it's already an array\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Any other case\n\t\t\t$source = null;\n\t\t}\n\n\t\t// If we are not sure use the REQUEST array\n\t\tif (empty($source))\n\t\t{\n\t\t\t$source = $_REQUEST;\n\t\t\t$hash = 'REQUEST';\n\t\t}\n\n\t\tparent::__construct($source, $options);\n\t}", "title": "" }, { "docid": "b9d5e73f0988efba1d741ab4e1924e4c", "score": "0.64204794", "text": "public function __construct( $source, $options = [] ) {\n if ( ! is_array( $source ) ) {\n throw new FileSourceNotAcceptableException( \"Array expected as source but got \" . gettype( $source ) );\n }\n\n // initialize parent\n parent::__construct( $source, $options );\n\n // test completeness of given source\n if ( ! isset( $this->source['name'] ) || ! isset( $this->source['mime'] ) || ! isset( $this->source['size'] ) ) {\n throw new FileSourceIncompleteException( \"Expected source to contain 'name', 'mime' and 'size' keys but it doesn't\" );\n }\n }", "title": "" }, { "docid": "68315172e50d695b33938df91812d0b9", "score": "0.64178693", "text": "public function setSource($source){ }", "title": "" }, { "docid": "9a11d03d6722afeea2d01b44db972a6f", "score": "0.6350504", "text": "function __construct($label, $contentSrc, $id = NULL) {\n\t\t$this->setLabel($label);\n\t\t$this->setContentSrc($contentSrc);\n\t\t$this->setId($id);\n\t}", "title": "" }, { "docid": "b757b21081dd9f67afe3221726815523", "score": "0.6294335", "text": "function __construct($label, $value){\n $this->label = $label;\n $this->value = $value;\n }", "title": "" }, { "docid": "e17439cb51733d1a8ee41586147d7acc", "score": "0.62903523", "text": "public static function init($source) {\n return new self($source);\n }", "title": "" }, { "docid": "ee7fe1b817dfb4194b30b5fb6cf90ff4", "score": "0.6277418", "text": "public function __construct($source = \"ARCH\")\n {\n parent::__construct(\"ARCH\");\n $this->connect($source);\n }", "title": "" }, { "docid": "6186ee97c09f910a5e523b9ab8493e04", "score": "0.6240832", "text": "public function __construct($source = NULL) {\r\n\t\tif (!empty($source)) {\r\n\t\t\t$reflectionClass = new ReflectionClass($this);\r\n\t\t\t$reflectionProperties = $reflectionClass->getProperties();\r\n\t\t\tforeach ($reflectionProperties as $reflectionProperty) {\r\n\t\t\t\t$propertyName = $reflectionProperty->getName();\r\n\t\t\t\tif (is_array($source)) {\r\n\t\t\t\t\tif (isset($source[$propertyName])) {\r\n\t\t\t\t\t\tif ($propertyName == \"actions\") {\r\n\t\t\t\t\t\t\t$value = array();\r\n\t\t\t\t\t\t\tforeach ($source[\"actions\"] as $sourceAction) {\r\n\t\t\t\t\t\t\t\t$value[] = new POIAction($sourceAction);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if ($propertyName == \"animations\") {\r\n\t\t\t\t\t\t\t$value = array(\"onCreate\" => array(), \"onFocus\" => array(), \"onClick\" => array());\r\n\t\t\t\t\t\t\tforeach ($source[\"animations\"] as $event => $animations) {\r\n\t\t\t\t\t\t\t\tforeach ($animations as $animation) {\r\n\t\t\t\t\t\t\t\t\t$value[$event][] = new Animation($animation);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if ($propertyName == \"object\") {\r\n\t\t\t\t\t\t\t$value = new POIObject($source[\"object\"]);\r\n\t\t\t\t\t\t} else if ($propertyName == \"transform\") {\r\n\t\t\t\t\t\t\t$value = new POITransform($source[\"transform\"]);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tswitch ($propertyName) {\r\n\t\t\t\t\t\t\tcase \"dimension\":\r\n\t\t\t\t\t\t\tcase \"type\":\r\n\t\t\t\t\t\t\tcase \"alt\":\r\n\t\t\t\t\t\t\tcase \"visibilityRange\":\r\n\t\t\t\t\t\t\t\t$value = (int)$source[$propertyName];\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"lat\":\r\n\t\t\t\t\t\t\tcase \"lon\":\r\n\t\t\t\t\t\t\tcase \"relativeAlt\":\r\n\t\t\t\t\t\t\t\t$value = (float)$source[$propertyName];\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"showSmallBiw\":\r\n\t\t\t\t\t\t\tcase \"showBiwOnClick\":\r\n\t\t\t\t\t\t\tcase \"doNotIndex\":\r\n\t\t\t\t\t\t\tcase \"isVisible\":\r\n\t\t\t\t\t\t\t\t$value = (bool)(string)$source[$propertyName];\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\t$value = (string)$source[$propertyName];\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$this->$propertyName = $value;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (isset($source->$propertyName)) {\r\n\t\t\t\t\t\tif ($propertyName == \"actions\") {\r\n\t\t\t\t\t\t\t$value = array();\r\n\t\t\t\t\t\t\tforeach ($source->actions as $sourceAction) {\r\n\t\t\t\t\t\t\t\t$value[] = new POIAction($sourceAction);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if ($propertyName == \"animations\") {\r\n\t\t\t\t\t\t\t$value = array(\"onCreate\" => array(), \"onFocus\" => array(), \"onClick\" => array());\r\n\t\t\t\t\t\t\tforeach ($source->animations as $event => $animations) {\r\n\t\t\t\t\t\t\t\tforeach ($animations as $animation) {\r\n\t\t\t\t\t\t\t\t\t$value[$event][] = new Animation($animation);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if ($propertyName == \"object\") {\r\n\t\t\t\t\t\t\t$value = new POIObject($source->object);\r\n\t\t\t\t\t\t} else if ($propertyName == \"transform\") {\r\n\t\t\t\t\t\t\t$value = new POITransform($source->transform);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tswitch ($propertyName) {\r\n\t\t\t\t\t\t\tcase \"dimension\":\r\n\t\t\t\t\t\t\tcase \"type\":\r\n\t\t\t\t\t\t\tcase \"alt\":\r\n\t\t\t\t\t\t\tcase \"visibilityRange\":\r\n\t\t\t\t\t\t\t\t$value = (int)$source->$propertyName;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"relativeAlt\":\r\n\t\t\t\t\t\t\tcase \"lat\":\r\n\t\t\t\t\t\t\tcase \"lon\":\r\n\t\t\t\t\t\t\t\t$value = (float)$source->$propertyName;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase \"showSmallBiw\":\r\n\t\t\t\t\t\t\tcase \"showBiwOnClick\":\r\n\t\t\t\t\t\t\tcase \"doNotIndex\":\r\n\t\t\t\t\t\t\tcase \"isVisible\":\r\n\t\t\t\t\t\t\t\t$value = (bool)(string)$source->$propertyName;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\t$value = (string)$source->$propertyName;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$this->$propertyName = $value;\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": "e7ec55cfd78d9f68c8a3eb01285abbab", "score": "0.62195987", "text": "public function __construct($source)\n {\n $this->serverName = Constants::$host[$source][\"Server\"];\n $this->username = Constants::$host[$source][\"Username\"];\n $this->password = Constants::$host[$source][\"Password\"];\n $this->database = Constants::$host[$source][\"Database\"];\n $this->db_type = Constants::$host[$source][\"Type\"];\n }", "title": "" }, { "docid": "680035d876a8d74917b6a6f1893dd4ab", "score": "0.62153333", "text": "public function __construct($label) {\n parent::__construct('label', $label);\n }", "title": "" }, { "docid": "94d195af5776fcdf088692b8b9f1920b", "score": "0.61736894", "text": "public function setSource($source)\n {\n $this->values['Source'] = $source;\n return $this;\n }", "title": "" }, { "docid": "21d713a5527f2a98f5664b9f5353f992", "score": "0.6114423", "text": "public function setSource($source)\n\t{\n\t\t$this->_source = $source;\n\t}", "title": "" }, { "docid": "02bd987ddef25f7cb704772e186f0b1a", "score": "0.6113177", "text": "public function __construct($_value, $_label) {\r\n\t\t/* Store the details */\r\n\t\t$this->value = $_value;\r\n\t\t$this->label = $_label;\r\n\t}", "title": "" }, { "docid": "c03f9277c3e7a327f13acc1e5999010f", "score": "0.60684925", "text": "public function __construct(SourceProvider $source)\n {\n $this->source = $source;\n }", "title": "" }, { "docid": "11a088aca9d08b779de4939378a4b57a", "score": "0.6065053", "text": "public function source($source);", "title": "" }, { "docid": "10ac22e38479b30fbcbde687321c65df", "score": "0.6044821", "text": "public function __construct(Note $note, $source)\n {\n $this->note = $note;\n $this->source = $source;\n }", "title": "" }, { "docid": "bc43756daaae3c0b0be22806a39ac973", "score": "0.60248363", "text": "public function setSource(string $source)\n {\n $this->source = $source;\n }", "title": "" }, { "docid": "bb9f7cb6481ff6f07806d00e7fd74fc1", "score": "0.60104614", "text": "public function __construct($source, $controller) {\r\n\t\tparent::__construct();\r\n\r\n\t\t$this->controller = $controller;\r\n\t\t$this->source = $source;\r\n\t\t$this->type = 'text/html';\r\n\t\t$this->encoding = $this->config['encoding'];\r\n\t}", "title": "" }, { "docid": "4e65977565fff407aa921019e6a5b8c5", "score": "0.5997355", "text": "public function __construct( $form_id = 0, $source = '' ) {\n\n\t\t// must-have info\n\t\t$this->form_id = (int) $form_id;\n\t\t$this->source = sanitize_key( $source );\n\n\t\t// normalize form data from supported plugins\n\t\t$form = $this->get_form();\n\t\t$this->name = $form['name'];\n\t\t$this->fields = $form['fields'];\n\n\t\t// get existing values\n\t\t$this->values = $this->get_values();\n\n\t}", "title": "" }, { "docid": "41b7b859c9d45b0de156ddd9f54cda3d", "score": "0.59748036", "text": "public function setSource($source)\n {\n $this->meta['source'] = $source;\n return $this;\n }", "title": "" }, { "docid": "6fae21b1f459b8e4f73501dc2aba30ff", "score": "0.5950214", "text": "public function __construct($source, $properties = null)\n {\n parent::__construct($properties);\n $this->setSource($source);\n }", "title": "" }, { "docid": "7967af29ed21be39948c7557f8490535", "score": "0.5942042", "text": "public function setSource($source)\n {\n $this->attribute['source'] = $source;\n return $this;\n }", "title": "" }, { "docid": "76464781bd03e1915a239c0abff36c40", "score": "0.59334743", "text": "public static function of($source)\n {\n return self::make($source);\n }", "title": "" }, { "docid": "f4db26ebfd4d0eb8015b8aa32b81e0c8", "score": "0.59308857", "text": "public static function create($source=NULL) { return new static($source); }", "title": "" }, { "docid": "f2fea7b97b1ef5de87b69252a7dc195e", "score": "0.5882087", "text": "public function setSource($source=null)\n {\n if($source){\n $this->_source = $source;\n }\n }", "title": "" }, { "docid": "71922227b1b52db0f81ddc821bfc62ce", "score": "0.57914317", "text": "public function __construct($source, ParserInterface $parser = null)\n {\n $this->source = $source;\n $this->parser = $parser;\n }", "title": "" }, { "docid": "40ae41010e5c67c627437fb2e1f15b34", "score": "0.57830185", "text": "function __construct($name, $title = \"\", $source = array(), $value = \"\", $form = null) {\n\t\tparent::__construct($name, $title, $source, $value, $form);\n\t}", "title": "" }, { "docid": "5c6b609f21877165078ceb088b9da983", "score": "0.57814956", "text": "public function __construct($source, $username = \"\", $password = \"\") {\n\t\t$this->source = $source;\n\t\t$this->username = $username;\n\t\t$this->password = $password;\n\t}", "title": "" }, { "docid": "b5f81254eec08d14eb1831553f11c638", "score": "0.5773506", "text": "public function setSource(string $source = null): self\n {\n $this->source = $source ?? 'auto';\n return $this;\n }", "title": "" }, { "docid": "9f3167e8cc09a695d0840c7e1831302e", "score": "0.57399607", "text": "function __construct($model, $urlName, $sourceName, $title = null, array $options = array(), $form = null) {\n\t\t$this->urlName = $urlName;\n\t\t$this->sourceName = $sourceName;\n\t\t$name = $urlName;\n\t\tif(!$title) {\n\t\t\t$title = $urlName;\n\t\t}\n\t\t$this->urlField = new TextField($name.'[_URL]', 'Source URL');\n\t\t$this->urlField->setValue($model->$urlName);\n\n\t\t$this->sourceField = new TextareaField($name.'[_Source]', 'Embed Code');\n\t\t$this->sourceField->setValue($model->$sourceName);\n\t\t$this->sourceField->setDisabled(true);\n\t\t$this->children = new FieldSet($this->urlField, $this->sourceField);\n\n\t\tforeach($options as $option => $value) {\n\t\t\t$option = ucfirst($option);\n\t\t\tif(method_exists($this, 'set' . $option)) {\n\t\t\t\t$this->{'set' . $option}($value);\n\t\t\t}\n\t\t}\n\n\t\treturn parent::__construct($name, $title, null, $form);\n\t}", "title": "" }, { "docid": "8f79122c7572422971db32ac14d8cb75", "score": "0.5732306", "text": "public function __construct($source)\n\t{\n\t\tif(version_compare(phpversion(), '5.3.0', '<'))\n\t\t{\n\t\t\tdefine('T_NAMESPACE', 0);\n\t\t\tdefine('T_USE', 0);\n\t\t}\n\t\t\n\t\t$this->_tokens_array = token_get_all($source);\n\t\t\n\t\t$this->_filter()->_toObjects();\n\t}", "title": "" }, { "docid": "10bd6d6b40331b0c6b495b2a098c82f6", "score": "0.57190114", "text": "public function __construct($label, $selector, array $transformers) {\n $this->label = $label;\n $this->selector = $selector;\n $this->transformers = $transformers;\n }", "title": "" }, { "docid": "45e78c3db6eb415c3b1b003e0e81ceaa", "score": "0.5695461", "text": "public function setSource($source)\n {\n $this->source = $source;\n\n return $this;\n }", "title": "" }, { "docid": "45e78c3db6eb415c3b1b003e0e81ceaa", "score": "0.5695461", "text": "public function setSource($source)\n {\n $this->source = $source;\n\n return $this;\n }", "title": "" }, { "docid": "6e2fe1452d60133c2e0e0a5da9a5674d", "score": "0.56756455", "text": "public function __construct(Smarty_Template_Source $source)\n {\n $this->source = $source;\n }", "title": "" }, { "docid": "cd0f6e109b5d303e7dfaf81f4fdb5c93", "score": "0.56666595", "text": "public function __construct($value = \"\") {\n // a full url\n // or a null string\n if ($value === '') {\n return;\n }\n $value = strtolower($value);\n if ($this->startsWith(strtolower($value), 'http')) {\n $groups = $this->processGWEMurl($value);\n If ($groups === false) {\n return;\n }\n } else {\n $groups = $value;\n }\n if ($this->walksmanageractive) {\n $source = new RJsonwalksSourcewalksmanager($groups);\n $this->sources[] = $source;\n }\n if ($this->gwemactive) {\n $source = new RJsonwalksSourcegwem($groups);\n $this->sources[] = $source;\n }\n }", "title": "" }, { "docid": "b316563c20786e574b8ff5ca4370ae52", "score": "0.56663585", "text": "public function __construct(array $source, DBMapper $mapper)\n\t{\n\t\t$this->source = $source;\n\t\t$this->mapper = $mapper;\n\t}", "title": "" }, { "docid": "8cdb9c2d4920bfbdfd09910c133e2072", "score": "0.5641592", "text": "public function setSource(array $source)\n {\n $this->source = $source;\n }", "title": "" }, { "docid": "a36f9b38a17206e13e14dac18e871526", "score": "0.5633377", "text": "protected function fillResource(array $source): void\n {\n $this->entity->setOwner($this->userOrDefaultOwner($source['o:owner']));\n\n if (!empty($source['o:resource_class']['o:id'])) {\n $resourceClass = $this->entityManager->find(\\Omeka\\Entity\\ResourceClass::class, $source['o:resource_class']['o:id']);\n if ($resourceClass) {\n $this->entity->setResourceClass($resourceClass);\n } else {\n $this->logger->warn(\n 'Resource class for resource #{id} (source #{source_id}) is not available.', // @translate\n ['id' => $this->entity->getId(), 'source_id' => $source[$this->sourceKeyId]]\n );\n }\n }\n\n if (!empty($source['o:resource_template']['o:id'])) {\n $resourceTemplate = $this->entityManager->find(\\Omeka\\Entity\\ResourceTemplate::class, $source['o:resource_template']['o:id']);\n if ($resourceTemplate) {\n $this->entity->setResourceTemplate($resourceTemplate);\n } else {\n $this->logger->warn(\n 'Resource template for resource #{id} (source #{source_id}) is not available.', // @translate\n ['id' => $this->entity->getId(), 'source_id' => $source[$this->sourceKeyId]]\n );\n }\n }\n\n if (!empty($source['o:thumbnail']['o:id'])) {\n $asset = $this->entityManager->find(\\Omeka\\Entity\\Asset::class, $source['o:thumbnail']['o:id']);\n if ($asset) {\n $this->entity->setThumbnail($asset);\n } else {\n $this->logger->warn(\n 'Specific thumbnail for resource #{id} (source #{source_id}) is not available.', // @translate\n ['id' => $this->entity->getId(), 'source_id' => $source[$this->sourceKeyId]]\n );\n }\n }\n\n if (array_key_exists('o:title', $source) && strlen((string) $source['o:title'])) {\n $this->entity->setTitle($source['o:title']);\n }\n\n $this->entity->setIsPublic(!empty($source['o:is_public']));\n\n // TODO Replace by implodeDate() in previous steps.\n $sqlDate = function ($value) {\n return substr(str_replace('T', ' ', $value), 0, 19) ?: $this->currentDateTimeFormatted;\n };\n\n $created = new \\DateTime($sqlDate($source['o:created']['@value']));\n $this->entity->setCreated($created);\n\n if ($source['o:modified']['@value']) {\n $modified = new \\DateTime($sqlDate($source['o:modified']['@value']));\n $this->entity->setModified($modified);\n }\n\n $this->fillResourceValues($source);\n }", "title": "" }, { "docid": "dfc7bd86b34e90cd52fe1c5a403a40aa", "score": "0.5624819", "text": "public function __construct(State $source, State $target)\n {\n $this->source = $source;\n $this->target = $target;\n }", "title": "" }, { "docid": "b03196c084b7cd744db2bed174c612c4", "score": "0.56219", "text": "public function __construct($config = [], $label = null)\n {\n // @deprecated old API\n if (!is_array($config)) {\n return parent::__construct([\n 'fieldName' => $config,\n 'label' => $label\n ]);\n }\n\n parent::__construct($config);\n }", "title": "" }, { "docid": "5cac93ad9f50b8f8c683bbea4eee97f0", "score": "0.56020385", "text": "public static function initializeFromSrc(string $src);", "title": "" }, { "docid": "abd42fc1c0c698a832c4d46a5e9987b6", "score": "0.55980635", "text": "public function __construct($sourceId)\n {\n $this->setDbId($sourceId);\n $sourceInformation = $this->getSourceInformationFromDb();\n $this->setSourceInformation($sourceInformation);\n }", "title": "" }, { "docid": "a70b9d718cb5daa341c4167bf0b2b0fe", "score": "0.55769575", "text": "public function __construct($label,$type = \"text\",$name,$placeholder,$value=\"\")\n {\n $this->type = $type;\n $this->label = $label;\n $this->name = $name;\n $this->placeholder = $placeholder;\n $this->value = $value;\n }", "title": "" }, { "docid": "05c5d61aaf503a5af689d76a77dc14fc", "score": "0.55508095", "text": "public function __construct($name,$label=null)\n {\n parent::__construct($name,$label);\n }", "title": "" }, { "docid": "ac3d1dbbfe7602a936d84123f3b5764e", "score": "0.5529148", "text": "public function __construct($source, $blueprint, $singleton)\n {\n $this->target = $source;\n $this->blueprint = $blueprint;\n $this->singleton = $singleton;\n }", "title": "" }, { "docid": "e9a1ae5253c7b207cf677ce778d3497a", "score": "0.55282044", "text": "public function setSource(array $source): self\n {\n $this->source = $source;\n\n return $this;\n }", "title": "" }, { "docid": "4a65e8496691c60b41e044046829e980", "score": "0.55179894", "text": "public function setSource($source): void\n {\n $this->source = $source;\n $this->sourceExcludes = null;\n $this->sourceIncludes = null;\n }", "title": "" }, { "docid": "169a867bc62adc01e72c252311cb4a36", "score": "0.5507822", "text": "public function setLabel(string $label){$this->label = $label; return $this;}", "title": "" }, { "docid": "ae5d9bce9f79b1f791ff02556f318dae", "score": "0.54963887", "text": "function __construct($elementName,$label)\n\t{\n\t\t$this->setName($elementName);\n\t\t$this->setLabel($label);\n\t}", "title": "" }, { "docid": "f1a02918e9066e58fd5e899762a6505f", "score": "0.5494622", "text": "protected function _construct()\n {\n $this->_init(\n 'DPD\\Shipping\\Model\\ShipmentLabels',\n 'DPD\\Shipping\\Model\\ResourceModel\\ShipmentLabels'\n );\n }", "title": "" }, { "docid": "eaa4b1fb2fb76a5bbf3de53b4c16f122", "score": "0.5488888", "text": "public function setSource($source)\r\n {\r\n if (!($source instanceof Source))\r\n {\r\n throw new \\InvalidArgumentException('Supplied Source have to extend Source class.');\r\n }\r\n\r\n $this->source = $source;\r\n\r\n $this->source->initialise($this->container);\r\n\r\n //get cols from source\r\n $this->source->getColumns($this->columns);\r\n\r\n return $this;\r\n }", "title": "" }, { "docid": "0be40d180e527b09e9723e373eaba28c", "score": "0.5488481", "text": "public function __construct( $data, $source, $action ){\n\t\t\t\n\t\t\t$this->init( $data, $source, $action );\n\t\t\t\n\t\t}", "title": "" }, { "docid": "021eb3aace9a7c950d69fd731ce96ba3", "score": "0.5477307", "text": "public function __construct($label, $value, $selected)\n\t{\n\t\t$this->label = $label;\n\t\t$this->value = $value;\n\t\t$this->selected = $selected;\n\t}", "title": "" }, { "docid": "936305caa3ae98cc4a5d7ac07630df96", "score": "0.547497", "text": "public function __construct()\n {\n parent::__construct(\n array(\n 'singular' => 'source',\n 'plural' => 'sources',\n 'ajax' => false\n )\n );\n }", "title": "" }, { "docid": "be3c9ca96f082bf5467b822c545a1daf", "score": "0.54634136", "text": "public function load($source)\n\t{\n\t\t// if $source is not a string, short-circuit\n\t\tif ( ! is_string($source)) {\n\t\t\tthrow new \\InvalidArgumentException(\n\t\t\t\t__METHOD__.\"() expects parameter one, source, to be a string file name\"\n\t\t\t);\n\t\t}\n\t\t\n\t\t// otherwise, create a new file chunker\n\t\t$chunker = new \\Jstewmc\\Chunker\\File($source);\n\t\t\n\t\treturn $this->create($chunker);\n\t}", "title": "" }, { "docid": "005e395f8e16cb9759c24fdedeca402a", "score": "0.5451058", "text": "public function setPayloadSource($source)\n {\n $this->dict['payload']['source'] = (string) $source;\n return $this;\n }", "title": "" }, { "docid": "6093c5240f8f7e476064a468b24e5732", "score": "0.54392856", "text": "public function setLabel($label = null)\n {\n if (null === $label) {\n $this->label = null;\n return $this;\n }\n if ($label instanceof FHIRString) {\n $this->label = $label;\n return $this;\n }\n $this->label = new FHIRString($label);\n return $this;\n }", "title": "" }, { "docid": "3435c4b39cd08ad85a0b7090a5e7e559", "score": "0.54206437", "text": "public function setLabel( $label );", "title": "" }, { "docid": "2ea0c6d1bafba2e0dcbdcb59b9c81e90", "score": "0.5409583", "text": "public function __construct(\\Traversable $source)\n {\n $this->source = $source;\n }", "title": "" }, { "docid": "8d337bca2af1d58ee272436b0717dc03", "score": "0.54071224", "text": "public function __construct(\n Source $source,\n Array $record\n ) {\n $this->m_keys = array_keys( $record );\n $this->m_fields = null;\n $this->m_source = $source;\n foreach( $record as $key => $value ) {\n $this->$key = $value;\n }\n }", "title": "" }, { "docid": "6b6322f93566579a3d5917fd7ca59791", "score": "0.5391513", "text": "public function fromString(string $source): string;", "title": "" }, { "docid": "38ec0ae547ee850a68bfda389816b2c9", "score": "0.5387387", "text": "public function __construct ($uri) {\n if (file_exists($uri)) {\n $this->magick = (function_exists('ImageMagick')) ? true : false;\n list($width, $height, $type) = @getimagesize($uri);\n switch ($type) {\n case 1: $this->type = 'gif'; break; // do not crop and resize well from jpegs using ImageMagick\n case 2: $this->type = 'jpg'; break;\n case 3: $this->type = 'png'; break;\n case 17: if ($this->magick) $this->type = 'ico'; break; // 255 pixels is the max width and height\n }\n if ($this->type) { // continue\n $this->width = $width;\n $this->height = $height;\n $this->source = $uri;\n }\n }\n }", "title": "" }, { "docid": "74c1a4c1be81d02af6b66fef6db629da", "score": "0.53620243", "text": "public function __construct($name, $title = null, $source = array(), $value = '', $form = null, $emptyString = null)\n {\n $this->addExtraClass('dropdown');\n parent::__construct($name, ($title === null) ? $name : $title, $value, $form);\n }", "title": "" }, { "docid": "0306e607c8b8204c911558d06da63e2e", "score": "0.534656", "text": "public function setSourcePath(string $sourcePath): Resource\n {\n }", "title": "" }, { "docid": "553317881fd3a86477cf644b396a4132", "score": "0.53316784", "text": "public function __construct(string $name, string $label, array $options = array(), array $attributes = array()){\n\t\t$this->name = $name;\n\t\t$this->label = $label;\t\t\t\n\t\t$this->options = $options;\n\t\t$this->attributes = $attributes; //attributes are optional\n\t}", "title": "" }, { "docid": "e818af86ead56446ff89c7935953ab76", "score": "0.53238785", "text": "public function __construct($label)\n\t{\n\t\tif (!array_key_exists($label, $this->labelToGoalMap)) {\n throw new \\DomainException;\n }\n\n $this->goalSlug = $this->labelToGoalMap[$label];\n\t}", "title": "" }, { "docid": "91f098d47a8ba028a1050866a49bd4d6", "score": "0.53126407", "text": "protected function init_source_with_store()\n\t{\n\t\t$this->source = new AddressRuleContainer($this);\n\t\t$this->source->name = 'source';\n\t}", "title": "" }, { "docid": "6d0292f353fa8fdb07bd885b37a902ce", "score": "0.5308905", "text": "public function addSource(string $source): self\n\t{\n\t\t$this->setProperty(\n\t\t\t'source',\n\t\t\t'SOURCE' . $this->getCharsetString(),\n\t\t\t$source\n\t\t);\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "00730e21f496947e1bdae06502f87aa1", "score": "0.5295812", "text": "public function SetSource ( array $options=array () )\r\n\t{\r\n\t\t// Data fetch parameters\r\n\t\t$this->_source = array ();\r\n\t\t$this->_source['name'] = isset ( $options['name'] ) ?\r\n\t\t\t$options['name'] : $this->_name . '_terms';\r\n\t\t\r\n\t\t$this->_source['id'] = isset ( $options['id'] ) ?\r\n\t\t\t$options['id'] : $this->_name . '_id_attr';\r\n\t\t\r\n\t\t$this->_source['term'] = isset ( $options['term'] ) ?\r\n\t\t\t$options['term'] : $this->_name . '_term_attr';\r\n\t\t\r\n\t\t$this->_source['delim'] = isset ( $options['delim'] ) ?\r\n\t\t\t$options['delim'] : ',';\r\n\t\t\r\n\t\t$this->_source['query'] = array_key_exists ( 'query', $options ) ?\r\n\t\t\t$options['query'] : sprintf (\r\n\t\t\t\t'select %s from %s where %s in ($id) order by field(%s, $id)',\r\n\t\t\t\t$this->_source['term'],\r\n\t\t\t\t$this->_source['name'],\r\n\t\t\t\t$this->_source['id'],\r\n\t\t\t\t$this->_source['id']\r\n\t\t\t);\r\n\t}", "title": "" }, { "docid": "bb958083f5117ecb0eb925082990fda0", "score": "0.5289967", "text": "public function __construct($message, $code = 0, array $source = NULL) {\n\t\t$this->source = $source;\n\t\t\n\t\tparent::__construct($message, $code, NULL);\n\t}", "title": "" }, { "docid": "f0a3759a85a75c0b028a718791fec7d9", "score": "0.52631205", "text": "public function __construct()\n {\n $this->_fieldDefaults['label'] = null;\n }", "title": "" }, { "docid": "99104c5ed5347a94740785c8cca0bb7b", "score": "0.5256902", "text": "public function __construct($name, $label, $options = Array()) {\n\t\tparent::__construct($name, $label, $options);\n\t\t$defaultValues = Array(\n\t\t);\n\n\t\t$this->merge($options, $defaultValues);\n\t}", "title": "" }, { "docid": "474f1b3583e25516c26d587532376843", "score": "0.5249745", "text": "public function __construct($label = null, array $items = null)\n {\n parent::__construct($label, $items);\n }", "title": "" }, { "docid": "e0a1fe870db9fc088f0952bfc73da3a4", "score": "0.5231511", "text": "public function setSource(File $source);", "title": "" }, { "docid": "b8dc2419d69662dd82a4281d92c83b27", "score": "0.5226012", "text": "public function __construct(string $link, string $label, array $attributes = NULL)\n {\n $this->link = $link;\n $this->label = $label;\n $this->setAttribute('class', self::DEFAULT_CLASS);\n\n if ($attributes) {\n $this->setAttributes($attributes);\n }\n }", "title": "" }, { "docid": "3dfc95a97d2ce6e7aef53e2ec26f4aab", "score": "0.52258897", "text": "public function __construct(string $message, int $offset = null, Source $source = null, Exception $previous = null)\n\t{\n\t\tparent::__construct('', 0, $previous);\n\n\t\tif ($offset !== null) {\n\t\t\t$this->lineno = $source->getLineForOffset($offset);\n\t\t\t$this->column = $source->getColumnForOffset($offset);\n\t\t}\n\n\t\t$this->source = $source;\n\t\t$this->name = $source->getName();\n\t\t$this->sourceCode = $source->getCode();\n\t\t$this->sourcePath = $source->getPath();\n\t\t$this->rawMessage = $message;\n\n\t\t$this->updateRepr();\n\t}", "title": "" }, { "docid": "1737abb348740888e8e33699913157d6", "score": "0.5222218", "text": "public function __construct() {\n $this->model = '\\Models\\SourceModel';\n $this->route = '\\Util\\Route';\n\n // Create a new view and give it data.\n $this->view = new View();\n $this->view->sources = $this->model::getSources();\n $this->view->baseUrl = '//' . $_SERVER['HTTP_HOST'] . '/';\n $this->view->setLayout(DEFAULT_LAYOUT);\n }", "title": "" }, { "docid": "e4f912aadc41c32ec4017e32523a88f9", "score": "0.5212818", "text": "public function __construct(string $name, string $code, string $title, string $description, array $source, array $errors = [])\n {\n $this->errors = $errors;\n $this->code = $code;\n $this->title = $title;\n $this->description = $description;\n $this->source = $source;\n $this->name = $name;\n }", "title": "" }, { "docid": "194a7608de034b39d7cb5d4b9c09c65a", "score": "0.52113557", "text": "public function __construct($data, $id, $value, $label) {\n\t\t$this->data = $data;\n\t\t$this->id = $id;\n\t\t$this->value = $value;\n\t\t$this->label = $label;\n\t}", "title": "" }, { "docid": "a99815cfd78c1965a489972dadc88b02", "score": "0.52032185", "text": "public function __construct( $full_url_string = null ){\r\n \r\n if( !is_null($full_url_string) ){\r\n if( is_string($full_url_string) ){\r\n $this->setFullUrl($full_url_string);\r\n }else{\r\n throw new \\Exception( 'Url must be a string if it\\'s provided.' );\r\n }\r\n }\r\n \r\n }", "title": "" }, { "docid": "2a71941d51f33e533807d9fde5bef65b", "score": "0.51943123", "text": "public function __construct($url, $idColumn = null, $label = null) {\n\t\t$this->url = $url;\n\t\t$this->idColumn = $idColumn;\n\t\t$this->label = $label;\n\t}", "title": "" }, { "docid": "e745c5bdb10d249aa00e266b70efe89f", "score": "0.5190708", "text": "public function setSource($var)\n {\n GPBUtil::checkEnum($var, \\Accounts\\V1\\Blame_Source::class);\n $this->source = $var;\n }", "title": "" }, { "docid": "7405f2a67ddec55c63c6b9bc34bbc04d", "score": "0.51898205", "text": "public function setSource(string $value)\n {\n $this->_source = $value;\n return $this;\n }", "title": "" }, { "docid": "dd9a6b2efbecc370acacf950fe9a493d", "score": "0.5184063", "text": "public function __construct ( $id, $label = null ) {\n\n $this->setId($id);\n $this->setLabel($label);\n\n return;\n }", "title": "" }, { "docid": "4bebb6360238534496c9845e02dadf24", "score": "0.5182659", "text": "public function setLabel($label);", "title": "" }, { "docid": "4bebb6360238534496c9845e02dadf24", "score": "0.5182659", "text": "public function setLabel($label);", "title": "" }, { "docid": "4bebb6360238534496c9845e02dadf24", "score": "0.5182659", "text": "public function setLabel($label);", "title": "" }, { "docid": "00d5198fd91fe7f183974dd7a6d4147f", "score": "0.5181468", "text": "public function setDataset($source)\n {\n if (file_exists($source)) {\n\n $this->source = $source;\n $this->dataset = json_decode(file_get_contents($source));\n $err = json_last_error();\n if ($err !== JSON_ERROR_NONE) {\n throw new Exception('il formato json non è corretto', $err);\n }\n } else {\n throw new Exception('il file richiesto non esiste', self::FILE_NOT_FOUND);\n }\n }", "title": "" }, { "docid": "0eb9629fbf3c7d4207a94f445ac971e2", "score": "0.5181387", "text": "public function __construct(string $label, ?string $name = null)\n {\n parent::__construct($label, $name);\n\n $this->type('text');\n }", "title": "" } ]
0b2a71485091e55357579a023d3818be
Initialize the class and set its properties.
[ { "docid": "c1d18ed70e9dc9a961ea11fcf94a7d59", "score": "0.0", "text": "public function __construct( $plugin_name, $version ) {\n\n\t\t$this->plugin_name = $plugin_name;\n\t\t$this->version = $version;\n\n\t}", "title": "" } ]
[ { "docid": "2b128f8b49e49bf8cd8f557aa3a5cb53", "score": "0.7872871", "text": "private function __construct () {\n\t\t$this->initialize();\n\t}", "title": "" }, { "docid": "3fa02aae4839728ee91d5100f0397852", "score": "0.7862866", "text": "public static function init() {\n\n\t\t$class = new self();\n\t\t$class->setup();\n\n\t}", "title": "" }, { "docid": "15104e6d07a8293ac214c2fe3ef5bfda", "score": "0.7721752", "text": "public function __construct() {\n\n\t\t\t$this->init();\n\t\t}", "title": "" }, { "docid": "f348e20297037608be0f53ae42aa99a4", "score": "0.7708135", "text": "private function __construct() {\n\t\t$this->init();\n\t}", "title": "" }, { "docid": "67c69f964946cbe726f1f0abddf3f2c1", "score": "0.76669", "text": "protected function __construct( )\n {\n $this->Initialise();\n }", "title": "" }, { "docid": "a135c4067a8d719c8bd74fc3cdb6786a", "score": "0.7610308", "text": "public function __construct()\n {\n\t\t\t$this->init();\n\t\t}", "title": "" }, { "docid": "7f21cea006b8c9d0d5ec73e8fa746ac9", "score": "0.76067996", "text": "public function __construct() {\n $this->init();\n }", "title": "" }, { "docid": "edbf1d18cd38c6b66296e359179bd587", "score": "0.7585876", "text": "private function __construct()\n {\n \t$this->initialize();\n }", "title": "" }, { "docid": "a2631dd41a7c3b6fc9b673a10cb04eca", "score": "0.7509731", "text": "protected function init_class() {\n\t\t}", "title": "" }, { "docid": "9587ae8c8078c3f0ec82b8b09e910321", "score": "0.7506274", "text": "public function __construct() {\n $this->init();\n }", "title": "" }, { "docid": "9587ae8c8078c3f0ec82b8b09e910321", "score": "0.7506274", "text": "public function __construct() {\n $this->init();\n }", "title": "" }, { "docid": "149ea9552ae1eb6fa35d98cb8efeaefb", "score": "0.7500369", "text": "public function __construct() \n\t{\n\t\t$this->initialize();\n\t}", "title": "" }, { "docid": "0ac4f674cdefdf0794ce45e17311fa16", "score": "0.74541956", "text": "public function init(){}", "title": "" }, { "docid": "0ac4f674cdefdf0794ce45e17311fa16", "score": "0.74541956", "text": "public function init(){}", "title": "" }, { "docid": "0ac4f674cdefdf0794ce45e17311fa16", "score": "0.74541956", "text": "public function init(){}", "title": "" }, { "docid": "6212b5aae52b2dbad6690edfa796c90c", "score": "0.74367183", "text": "public function __construct(){\n\t\t\t\n\t\t\t$this->init();\n\t\t}", "title": "" }, { "docid": "e6f52d26c04a457e1b9156292f7c3623", "score": "0.7408824", "text": "public function __construct(){\n\t\t\t$this->setup();\n\t\t}", "title": "" }, { "docid": "301b396f2e10e9368a994b407609017e", "score": "0.74061674", "text": "public function init() {}", "title": "" }, { "docid": "301b396f2e10e9368a994b407609017e", "score": "0.74061674", "text": "public function init() {}", "title": "" }, { "docid": "301b396f2e10e9368a994b407609017e", "score": "0.74061674", "text": "public function init() {}", "title": "" }, { "docid": "301b396f2e10e9368a994b407609017e", "score": "0.74061674", "text": "public function init() {}", "title": "" }, { "docid": "301b396f2e10e9368a994b407609017e", "score": "0.74061674", "text": "public function init() {}", "title": "" }, { "docid": "d584f947532f9510a8ae1848081226fd", "score": "0.74006397", "text": "public static function _init() {\n // this is called upon loading the class\n }", "title": "" }, { "docid": "d584f947532f9510a8ae1848081226fd", "score": "0.74006397", "text": "public static function _init() {\n // this is called upon loading the class\n }", "title": "" }, { "docid": "1eeafc22d4ca706e2854a5bb09e37e80", "score": "0.7396044", "text": "public function init() {\n \n }", "title": "" }, { "docid": "1eeafc22d4ca706e2854a5bb09e37e80", "score": "0.7396044", "text": "public function init() {\n \n }", "title": "" }, { "docid": "1eeafc22d4ca706e2854a5bb09e37e80", "score": "0.7396044", "text": "public function init() {\n \n }", "title": "" }, { "docid": "b9e3f859986c316ec05df0e2b10c985c", "score": "0.73914486", "text": "public function __construct()\n\t\t{\n\t\t\t$this->init();\n \t}", "title": "" }, { "docid": "05b135ab3f6aedf2651984ce62cbf3a2", "score": "0.7381686", "text": "public function init() { }", "title": "" }, { "docid": "05b135ab3f6aedf2651984ce62cbf3a2", "score": "0.7381686", "text": "public function init() { }", "title": "" }, { "docid": "7341d837e903e4e0c6f894a669b201d2", "score": "0.7378469", "text": "public function __construct()\n\t{\n\t\t$this->init();\n\t}", "title": "" }, { "docid": "dd7132b3f5568c65eb53f7aaf1549b50", "score": "0.73689115", "text": "public function __construct()\n\t{\n\t\t$this->_init();\n\t}", "title": "" }, { "docid": "16cb0850c2aa5739395b7f5ee01edd82", "score": "0.73456585", "text": "public function __construct()\n {\n $this->init();\n }", "title": "" }, { "docid": "16cb0850c2aa5739395b7f5ee01edd82", "score": "0.73456585", "text": "public function __construct()\n {\n $this->init();\n }", "title": "" }, { "docid": "16cb0850c2aa5739395b7f5ee01edd82", "score": "0.73456585", "text": "public function __construct()\n {\n $this->init();\n }", "title": "" }, { "docid": "16cb0850c2aa5739395b7f5ee01edd82", "score": "0.73456585", "text": "public function __construct()\n {\n $this->init();\n }", "title": "" }, { "docid": "16cb0850c2aa5739395b7f5ee01edd82", "score": "0.73456585", "text": "public function __construct()\n {\n $this->init();\n }", "title": "" }, { "docid": "a67ff27fa47ea46f84952b0dbd5c7375", "score": "0.7345455", "text": "function __construct()\n\t{\n\t\t$this->_init();\n\t}", "title": "" }, { "docid": "a67ff27fa47ea46f84952b0dbd5c7375", "score": "0.7345455", "text": "function __construct()\n\t{\n\t\t$this->_init();\n\t}", "title": "" }, { "docid": "a67ff27fa47ea46f84952b0dbd5c7375", "score": "0.7345455", "text": "function __construct()\n\t{\n\t\t$this->_init();\n\t}", "title": "" }, { "docid": "87d1b3ff5d5d0d3869961cbd3ee8ece9", "score": "0.7323431", "text": "public function init() {\n }", "title": "" }, { "docid": "d20180575001b22216298dee3a5c5586", "score": "0.7313078", "text": "public function __construct() {\n $this->init();\n }", "title": "" }, { "docid": "31bafc8821916ab206d237277d758b56", "score": "0.73095006", "text": "public function initialize()\n {\n // TODO: Implement initialize() method.\n }", "title": "" }, { "docid": "9998c8321d7162dbb2934ff6e88e687a", "score": "0.730556", "text": "public static function init() {\n \n }", "title": "" }, { "docid": "66d0394efb21b2bbe8416a2ade27a465", "score": "0.7297043", "text": "protected function initialize() {}", "title": "" }, { "docid": "d97f871a83d84ed0eb30d30b672ab85b", "score": "0.7287283", "text": "public function initialize() {\n \n }", "title": "" }, { "docid": "01069025b26003837bd6d8e438a09591", "score": "0.7270806", "text": "public function init() {\n \n }", "title": "" }, { "docid": "6e1f509ec28d98fd87b25b9448670032", "score": "0.7268556", "text": "public function init() {\n }", "title": "" }, { "docid": "6e1f509ec28d98fd87b25b9448670032", "score": "0.7268556", "text": "public function init() {\n }", "title": "" }, { "docid": "6e1f509ec28d98fd87b25b9448670032", "score": "0.7268556", "text": "public function init() {\n }", "title": "" }, { "docid": "2e3a42ce531afde690f6cbbd6f484339", "score": "0.72681063", "text": "function __construct()\n {\n $this->init();\n }", "title": "" }, { "docid": "aaa7732ebe0b1a93ede23aeb1f03c959", "score": "0.7267894", "text": "private function initProperties()\n {\n $this->oVkRequests = new VkRequests();\n $this->oMysqlConfig = new MysqlConfig();\n $this->oVkUsers = new VkUsers($this->oMysqlConfig);\n $this->oVkAlbums = new VkAlbums($this->oMysqlConfig);\n $this->oVkPhotos = new VkPhotos($this->oMysqlConfig);\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7248563", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7248563", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7248563", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7248563", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7248563", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7248563", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7248563", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7248563", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7248563", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7248563", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7248563", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7248563", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7248563", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7248563", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7248563", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7248563", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7248563", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7248563", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7248563", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7248563", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7248563", "text": "public function init() {\n }", "title": "" }, { "docid": "0d4b575bc653cbf2120a34e4a75ff9a5", "score": "0.7248563", "text": "public function init() {\n }", "title": "" }, { "docid": "b082acc8d1b741e5b8b7a6e8a6a26cad", "score": "0.7244358", "text": "protected function __construct() {\n $this->storage = Storage::getInstance();\n $this->_init();\n }", "title": "" }, { "docid": "013b5d2b99bc319967b442888c668b8a", "score": "0.72380275", "text": "public function init()\n {\n \t\n }", "title": "" }, { "docid": "06b9df18e0620ae0a915fd38813c43fa", "score": "0.7235994", "text": "public function init() {\r\n }", "title": "" }, { "docid": "f8b371bf54f0bcff812d3b80c51fe89f", "score": "0.72320503", "text": "function __construct() {\n parent::__construct();\n $this->init();\n $this->setParam();\n }", "title": "" }, { "docid": "55abee3a9509d47c13775da1ac15dd87", "score": "0.72079754", "text": "public function __construct() {\n $this->settings = new \\stdClass();\n $this->set_settings();\n }", "title": "" }, { "docid": "80a281e06e8905abaff0ac3db7c09b8e", "score": "0.72020394", "text": "protected function init(){}", "title": "" }, { "docid": "80a281e06e8905abaff0ac3db7c09b8e", "score": "0.72020394", "text": "protected function init(){}", "title": "" }, { "docid": "c6c8a730af23b60a472cc7ab4b80480d", "score": "0.71990836", "text": "protected function __construct()\n {\n $this->fields = array();\n $this->define();\n }", "title": "" }, { "docid": "1182ee2f1e2e3fa4976c97c5a5e395ec", "score": "0.71736324", "text": "public function _initialize()\n {\n }", "title": "" }, { "docid": "b4e425e88b336f2040e816b9d78c807f", "score": "0.7166701", "text": "protected function __init__() { }", "title": "" }, { "docid": "faf4a7d6149456e7e7453474cd1d0838", "score": "0.71664363", "text": "protected function init() {}", "title": "" }, { "docid": "faf4a7d6149456e7e7453474cd1d0838", "score": "0.71664363", "text": "protected function init() {}", "title": "" }, { "docid": "faf4a7d6149456e7e7453474cd1d0838", "score": "0.71664363", "text": "protected function init() {}", "title": "" }, { "docid": "faf4a7d6149456e7e7453474cd1d0838", "score": "0.71664363", "text": "protected function init() {}", "title": "" }, { "docid": "25e3884c72a7f4cb072fbf4c2bc0b257", "score": "0.7162918", "text": "public function init() {\n \n }", "title": "" }, { "docid": "c396d5c9eb301ec49e3c1aa5a816c15e", "score": "0.7157401", "text": "public function initialize () {\n }", "title": "" }, { "docid": "228d5c560351e30cbbee02bbb5b57e5e", "score": "0.7135399", "text": "public function __construct() {\n parent::__construct('UML - Class', 1);\n\n // always initialize\n $this->initialize();\n }", "title": "" }, { "docid": "76fe99184609550cf1289467c237a12c", "score": "0.7134155", "text": "public function init() {\n\t\t$this->settings = new Settings( $this );\n\t\t$this->connectors = new Connectors( $this );\n\t\t$this->alerts = new Alerts( $this );\n\t\t$this->alerts_list = new Alerts_List( $this );\n\n\t}", "title": "" }, { "docid": "da56940076eb4dcde32cc6288a70e4cb", "score": "0.7129368", "text": "public function __construct(){\t\t\t\n\t\t\t\t\n\t\t\t$this->init();\n\t\t\t\n\t\t}", "title": "" }, { "docid": "d8710cd2620c3289ac3069ff6752f7de", "score": "0.71248716", "text": "public function init()\n {\n }", "title": "" }, { "docid": "d8710cd2620c3289ac3069ff6752f7de", "score": "0.71248716", "text": "public function init()\n {\n }", "title": "" }, { "docid": "d8710cd2620c3289ac3069ff6752f7de", "score": "0.71248716", "text": "public function init()\n {\n }", "title": "" }, { "docid": "d8710cd2620c3289ac3069ff6752f7de", "score": "0.71248716", "text": "public function init()\n {\n }", "title": "" }, { "docid": "d8710cd2620c3289ac3069ff6752f7de", "score": "0.71248716", "text": "public function init()\n {\n }", "title": "" }, { "docid": "d8710cd2620c3289ac3069ff6752f7de", "score": "0.71248716", "text": "public function init()\n {\n }", "title": "" }, { "docid": "d8710cd2620c3289ac3069ff6752f7de", "score": "0.71248716", "text": "public function init()\n {\n }", "title": "" }, { "docid": "d8710cd2620c3289ac3069ff6752f7de", "score": "0.71248716", "text": "public function init()\n {\n }", "title": "" } ]
dfd96202e35b9e6f2d4cce18e6383d58
hent reservationer for ting i tidsrum
[ { "docid": "2a2995f35ce7e41230c94be9c7b2af7f", "score": "0.0", "text": "public static function getReservationTime($itemname, $location) {\n\t\t//xxxxxxxxxxx\n\t\t$res = mysql_query($qry);\n\t\twhile ($data = mysql_fetch_assoc($res)) {\n\t\t\t$reservationList[] = new Reservation($user, $data['resid'], $data['starttime'], $data['endtime'], $data['qunatity'], $data['contentlistid']);\n\t\t}\n\t\treturn $reservationList;\n\t}", "title": "" } ]
[ { "docid": "fae7aad025323726eb8a8ecdd355822c", "score": "0.7482386", "text": "public function reservation()\n\t{\n\n\t}", "title": "" }, { "docid": "8b57fa82b49db711a3213f453f296973", "score": "0.60942507", "text": "function reservation()\n {\n $empresa = $this->Session->read('Empresa');\n //si no hay\n if (empty($empresa)) {\n $this->Session->setFlash('No has iniciado sesión.', 'error');\n //redirijo al login\n $this->redirect(\n array(\n 'action' => 'index'\n )\n );\n } else {\n $this->set('empresa', $empresa);\n $reservas = $this->Empresa->Viaje->viajesEmpresa($empresa['Empresa']['id']);\n $this->set('reservas', $reservas);\n }\n }", "title": "" }, { "docid": "ca1f9e84bab38f893706db59017f5756", "score": "0.60742366", "text": "function reserve_complete2() {\n\t\tglobal $const; \n\t\t$this -> set('const', $const);\n\t\t\n\t\tglobal $language_reserve_complete; \n\t\t\n\t\t$this -> set('language_reserve_complete', $language_reserve_complete);\n\t\t\n\t\t// need payment_id\n//\t\t$payment_id = $this -> params['form']['payment'];\n//\t\t&& ($payment_id < 0 || $payment_id == NULL)\n\t\t$payment_id = 0;\n\t\tif ( isset($this -> params['form']['payment']) && $this -> params['form']['payment'] > 0 ) {\n\t\t\t\n\t\t\t$payment_id = $this -> params['form']['payment'];\n\n\t\t\t$loginInfo\t\t\t = $this -> Session -> read('loginInfo');\n\t\t\t$tacherConfirmSch\t = $this -> Session -> read('tacherConfirmSch');\n\t\n\t\t\t$this -> set( 'teacher_id', $this -> data['Lesson']['teacher_id'] );\n\t\t//\t//2010-02-10 YHLEE END\n\t\t\t$messages = ''; \n\t\n\t\t\tif( $tacherConfirmSch == null ){\n\t\t//\t\t// '예약시간을 설정하지 않으신것 같습니다.\n\t\t\t\t$messages = $language_reserve_complete[0];\n\t\t\t\t$this -> set( 'messages', $messages );\n\t\t\t\treturn;\n\t\t\t}\n\t\t//\t//自由検索文に変更\n\t\t\t$where_string = 'Available_lesson.teacher_id = '. $this -> data['Lesson']['teacher_id'];\n\t\t\t$where_string .= \" AND Available_lesson.reserve_status = 'R'\";\n\t\t\t\n\t\t\t$number_of_reserve = sizeof( $tacherConfirmSch );\n\t\t\t$i = 1;\n\t\t\t\n\t\t//\t//2012-02-05 start\n\t\t\t$student_reserve_time\t = null;\n\t\t\t$user_id\t\t\t\t = $loginInfo['User']['id'];\n\t\t\t$teacher_id\t\t\t\t = $this -> data['Lesson']['teacher_id'];\n\t\n\t\t\t$reserve_count = array();\n\t\t//\t//2012-02-05 end\n\t\t\n\t\t\tforeach( $tacherConfirmSch as $sch ) {\n\t\t\t\t\n\t\t\t\tif( $i == 1 ){\n\t\t\t\t\t$where_string .= ' AND (';\n\t\t\t\t}else{\n\t\t\t\t\t$where_string .= ' OR ';\n\t\t\t\t}\n\t\t\n\t\t//\t\techo date ( 'Y-m-d H:i:s', strtotime($sch) );\n\t\t//\t\t$student_reserve_time = sprintf( \"%d-%d-%d %d:%d:00\", substr($sch,0,4),substr($sch,4,2),substr($sch,6,2),substr($sch,8,2),substr($sch,10,2));\n\t\t\t\t$student_reserve_time = date ( 'Y-m-d H:i:s', strtotime($sch) );\n\t\t//\t\t$where_string\t\t .= \" Available_lesson.available_time = '\". sprintf(\"%d-%d-%d %d:%d:00\", substr($sch,0,4), substr($sch,4,2), substr($sch,6,2), substr($sch,8,2), substr($sch,10,2)).\"'\";\n\t\t\t\t$where_string\t\t .= \" Available_lesson.available_time = '\".$student_reserve_time.\"'\";\n\t\n\t\t\t\tif( $i == $number_of_reserve ){\n\t\t\t\t\t$where_string .= \")\";\n\t\t\t\t}\n\t\t\t\t$i++;\n\t\t\t}\n\t\n\t\t\t$reservation_info = $this -> Lesson -> reservation_info( $where_string );\n\t\t\t\n\t\t\tif ( sizeof($tacherConfirmSch) != sizeof($reservation_info) ){\n\t\t//\t\t//'죄송합니다. 다른 회원님에 의해 예약이 되었습니다.'\n\t\t\t\t$messages = $language_reserve_complete[1];\n\t\t\t\t$this -> set('messages', $messages);\n\t\t\t}else{\n\t\t//\t\t//DBをUPDATEする前に十分なポイントを持っているか確認する\n\t\t//\t\t//セッションからユーザポイントを求める\n\t\t//\t\t//ユーザーが持っているポイントがレッスン予約合計より小さい場合DBUPDATEしないずにメッセージセットする\n\t\t//\t\t//ユーザポイントをもう一度求める\n\t\t//\t\t$loginInfo = $this -> Session -> read('loginInfo');\n\t\t\t\t$mb_id = $loginInfo['User']['mb_id'];\n\t\n\t\t//\t\t//load teachers name\n\t\t//\t\t//$teachers_name = $this->ModelHandler->getTeacherNames();\n\t\n\t\t//\t\t//No Error In case of normal\n\t\t//\t\t//get reservation_kinds variable from confirmation page\n\t\t\t\t$reservation_kinds = $this -> params['form']['reservation_kinds'];\n\t\n\t\t\t\tif( $reservation_kinds == $const['point_reservation'] ){\n\t\t//\t\t\t//get user point from g4member table\n\t\t\t\t\t$user_point = $this -> ModelHandler -> getMbPoint($mb_id,'Lesson');\n\t\t\t\t\t$loginInfo['User']['points'] = $user_point;\n\t\n\t\t//\t\t\t//decide errors of lack of points\n\t\t\t\t\t$spend_points = $this -> data['Lesson']['spend_point'] * $number_of_reserve;\n\t\t\t\t\tif( $loginInfo['User']['points'] < $spend_points ){\n\t\t//\t\t\t\t//エラーメッセージセット\n\t\t//\t\t\t\t//'포인트가 부족한 것 같습니다. 포인트 구입후 다시 예약해 주시기 바랍니다.'\n\t\t\t\t\t\t$messages = $language_reserve_complete[2];\n\t\t\t\t\t\t$this -> set( 'messages', $messages );\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t//\t\t//process common regardless point reservation or koma reservation\n\t\t//\t\t\n\t\t//\t\t//lesson data input\n\t\t//\t\t\n\t\t//\t\t//ループを回りなから Insert Updateする\n\t\t//\t\t$ct = get_time();\t//現在の時間を求める\n\t\t//\t\t$current_time = $ct['time_ymdhis'];\n\t\t\t\t$current_time = date ( 'Y-m-d H:i:s' );\n\t\t\t\t\t\n\t\t//\t\t//ポイントテーブルにINSERT\n\t\t\t\t$i = 0;\n\t\t\t\t$comment_id = null;\n\t\t\t\t\n\t\t\t\tforeach( $reservation_info as $keyRInfo => $r_info ){\n\t\t\t\t\t\n\t\t\t\t\t//transanction start\n\t\t\t\t\t//$this->Lesson->begin();\n\t\n\t\t//\t\t\t//画面でコメントが入力しているか判断する\n\t\t\t\t\tif( $this -> params['form']['comment'.$i] != null && $this -> params['form']['comment'.$i] != '' ){\n\t\t//\t\t\t\t//commentテーブルのMAX値を求める\n\t\t\t\t\t\t$max_id = $this -> ModelHandler -> getCommentMaxId();\n\t\t//\t\t\t\t\t\n\t\t//\t\t\t\t//$this->data['Lesson']['comment_id'] = $max_id;\n\t\t\t\t\t\tif( $i == 0 ){\n\t\t\t\t\t\t\t$comment_id = $max_id;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$comment_id++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\n\t\t//\t\t\t//lessonテーブルにインサーとする\n\t\t\t\t\t$pay_plan = $loginInfo['User']['pay_plan'];\n\t\t\t\t\t\n\t\t\t\t\tif( $pay_plan == 'M' && $reservation_kinds == $const['point_reservation'] ){\n\t\t\t\t\t\t$reservation_kinds_data = 'T';\n\t\t\t\t\t} else if( $reservation_kinds == $const['point_reservation'] ){\n\t\t\t\t\t\t$reservation_kinds_data = 'P';\n\t\t\t\t\t}else if( $reservation_kinds == $const['koma_reservation'] ){\n\t\t\t\t\t\t$reservation_kinds_data = 'K';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$this -> loadModel( 'Dictionary' );\n\t\t\t\t\t$this -> loadModel( 'DictionaryDetail' );\n\t\t\t\t\t$this -> loadModel( 'Payment' );\n\t\t\t\t\t\n\t\t//\t\t\t$this->Lesson->bindModel(array('belongsTo' => array('Teacher'=>array('className' => 'Teacher','foreignKey' => 'teacher_id'))));\n\t\t\t\t\t$this -> DictionaryDetail -> bindModel( array( 'belongsTo' => array( \n\t\t\t\t\t\t\t\t'Dictionary' => array( 'className' => 'Dictionary', 'foreignKey' => 'dictionary_id' ),\n\t\t\t\t\t\t\t\t'Payment' => array( 'className' => 'Payment', 'foreignKey' => false, 'conditions' => array( 'Payment.goods_name = DictionaryDetail.name' ) ) ) ) );\n\t\t\t\t\t\n\t\t\t\t\t$getReservationKinds\t = $this -> DictionaryDetail -> find( 'first', array( 'fields' => array( 'DictionaryDetail.express_name_en' ), 'conditions' => array( 'Payment.id' => $payment_id, 'Dictionary.name' => 'payment_kinds' ) ) );\n\t\t\t\t\t\n\t\t\t\t\tif ( count($getReservationKinds) > 0 && strlen($getReservationKinds['DictionaryDetail']['express_name_en']) > 0 ) {\n\t\t\t\t\t\t$reservation_kinds_data\t = $getReservationKinds['DictionaryDetail']['express_name_en'];\n\t\t\t\t\t\t// save Payment id\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$this -> data['Lesson']['payment_id'] = $payment_id;\n\t\n\t\t//\t\t\tpr($getReservationKinds);\n\t\n\t\t\t\t\t$this -> data['Lesson']['user_id']\t\t\t\t = $loginInfo['User']['id'];\n\t\t\t\t\t$this -> data['Lesson']['teacher_id']\t\t\t = $this -> data['Lesson']['teacher_id'];\n\t\t\t\t\t$this -> data['Lesson']['available_lesson_id']\t = $r_info['Available_lesson']['id'];\n\t\t\t\t\t$this -> data['Lesson']['lesson_status']\t\t = 'R';\n\t\t\t\t\t$this -> data['Lesson']['point_id']\t\t\t\t ='';\n\t\t\t\t\t\n\t\t//\t\t\t//コメント入力したかによって\n\t\t\t\t\t$this -> data['Lesson']['comment_id']\t\t\t = $comment_id;\n\t\t\t\t\t$this -> data['Lesson']['spend_point']\t\t\t = $this -> data['Lesson']['spend_point'];\n\t\t\t\t\t$this -> data['Lesson']['reserve_time']\t\t\t = $r_info['Available_lesson']['available_time'];\n\t\t\t\t\t\n\t\t//\t\t\t//textCodeを何を入れてるかによって\n\t\t\t\t\t$this -> data['Lesson']['text_code']\t\t\t = $this -> data['Lesson']['text_code'.$i];\n\t\t\t\t\t$this -> data['Lesson']['reservation_kinds']\t = $reservation_kinds_data;\n\t\t\t\t\t\n\t\t\t\t\t$this -> data['Lesson']['lesson_file']\t\t\t = null;\n\t\t\t\t\t$result = $this -> Lesson -> save($this->data);\n\t\t\t\t\t\n\t\t\t\t\t$count_payment_id_used = $this -> Programmer1Handler -> count_payment_id_used($payment_id, 'complete');\n\t\n\t\t//\t\t\t//Commentテーブルにコメントを入力する\n\t\t//\t\t\t//2010-02-04 YHLEE UPDATE START\n\t\t//\t\t\t//change relationship between lesson table and comment table is one by one\n\t\t//\t\t\t//even if uer do not comment data , insert comment table with ''\n\t\t//\t\t\t\t\n\t\t//\t\t\t//2010-04-21 start\n\t\t//\t\t\t//$lesson_max_id = $this->ModelHandler->getLessonMaxId('Lesson');\n\t\t//\t\t\t\t\n\t\t\t\t\t$lesson_max_id = $this -> Lesson -> getLastInsertID();\n\t\t\t\t\t\n\t\t\t\t\t// Mail System\n\t\t\t\t\t$this->requestAction('/phpmailers/mail/',array('form'=>array('post'=>array('Lesson'=>array('id'=>$lesson_max_id)),'mail_type'=>'Reservation')));\n\t\t//\t\t\t\t\n\t\t//\t\t\t//pr($lesson_max_id);\n\t\t//\t\t\t\t\t\t\t\t\n\t\t\t\t\tif($this -> params['form']['comment'.$i] == null){\n\t\t\t\t\t\t$this -> params['form']['comment'.$i]='';\n\t\t\t\t\t}\n\t\t//\t\t\t\t\t\n\t\t\t\t\t$this -> ModelHandler -> insertComment( $loginInfo['User']['id'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$this -> data['Lesson']['teacher_id'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t0,mysql_real_escape_string( trim($this -> params['form']['comment'.$i]) )\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t,$lesson_max_id);\n\t\t\n\t\t//\t\t\t//update availableLesson table(teacher's reservation table)\n\t\t\t\t\t$availableLessonData['id']\t\t\t\t = $r_info['Available_lesson']['id'];\n\t\t\t\t\t$availableLessonData['reserve_status']\t = $this -> ModelHandler -> L_Finish;\n\t\t\t\t\t$this -> ModelHandler -> updateRserveStatusOnAvailableLesson( $availableLessonData,'Lesson' );\n\t\n\t\t\t\t\t\t\n\t\t//\t\t\t//ポイントテーブルを件数別インサートする\n\t\t//\t\t\t//仕様変更g4_pointテーブルにインサートする\n\t\t//\t\t\t//料金プランによってポイントテーブルに設定する内容が違う\n\t\t//\t\t\t//2010-02-04 YHLEE UPDATE START \n\t\t\t\t\tif($reservation_kinds == $const['point_reservation']){ \n\t\t\t\t\t\t$spent_point =- $this -> data['Lesson']['spend_point'];\n\t\n\t\t\t\t\t\t$content = $this -> data['Lesson']['reserve_time'].\" \".$language_reserve_complete[3];\n\t\t\t\t\t\t$sql = \" insert into g4_point \n\t\t\t set mb_id = '$mb_id',\n\t\t\t po_datetime = '$current_time',\n\t\t\t po_content = '$content',\n\t\t\t po_point = '$spent_point',\n\t\t\t po_rel_table = 'lessons',\n\t\t\t po_rel_id = '',\n\t\t\t po_rel_action = '$language_reserve_complete[3]' \";\n\t\n\t\t\t\t\t\t$free_sql_result = $this->Lesson->free_sql($sql);\n\t\t\n\t\t\t\t\t}else if($reservation_kinds == $const['koma_reservation']){\n\t\t//\t\t\t\t//今日予約した回数を一つ増やす\n\t\t\t\t\t\t$loginInfo['User']['todayReservation'] = $loginInfo['User']['todayReservation']++;\n\t\t\t\t\t}\t\n\t\t//\t\t\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t//\t\t//end of loop\n\t\t//\t\t\t\n\t\t//\t\t//ポイントはg4_pointからSUMする\n\t\t//\t\t//only in case of point reservation\n\t\t\t\tif($reservation_kinds == $const['point_reservation']){ \n\t\t\t\t\t$select_string\t = \"sum(po_point) AS point \";\n\t\t\t\t\t$table\t\t\t = \"g4_point \";\n\t\t\t\t\t$where_string\t = \"mb_id = '$mb_id' \";\n\t\t\t\t\t\t\n\t\t\t\t\t$point_results = $this -> Lesson -> select_free_common( $select_string, $table, $where_string );\n\t\t\t\t\tforeach( $point_results as $point_result ){\n\t\t\t\t\t\t$point = $point_result[0]['point'];\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t//\t\t //g4_member UPDATEする\n\t\t\t\t\t$sql = \t\"update g4_member\n\t\t\t\t\t\t\tSET mb_point = $point \n\t\t\t\t\t\t\tWHERE mb_id = '$mb_id'\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t$this -> Lesson -> free_sql($sql);\n\t\t\n\t\t//\t\t\t//セッションのユーザポイントをUPDATEする\n\t\t\t\t\t$loginInfo['User']['points'] = $point;\n\t\t\t\t}\n\t\n\t\t//\t\t//$this->Lesson->rollback();\n\t\n\t\t//\t\t//2012-02-05 START It can be deleted\n\t\t\t\t$this -> Lesson -> bindModel( array( 'belongsTo' => array('Teacher' => array('className' => 'Teacher','foreignKey' => 'teacher_id')) ) );\n\t\t\t\t$reserve_count = $this -> Lesson -> find('all',\n\t\t\t\t\t\tarray( 'conditions' => array('Lesson.user_id' => $user_id\n\t\t\t\t\t\t\t,'Lesson.lesson_status' => 'R'\n\t\t\t\t\t\t\t,'Lesson.reserve_time' =>$student_reserve_time)\n\t\t\t\t)); \n\t\t//\t\t\t\n\t\t//\t\t//if reservation is sucessivly reserved , reserve count sould be 1 \n\t\t//\t\t//pr($reserve_count);\n\t\t//\t\t//pr(sizeof($reserve_count));\n\t\t\t\tif(sizeof($reserve_count) > 0){\n\t\t\t\t}else{\n\t\t\t\t\t$messages .= \"예약이 현재 이루어지지 않았습니다. 현재 강사님의 예약 화면에서 다시 예약 부탁드립니다.\";\n\t\t\t\t}\n\t\t//\t\t//pr($reserve_count);\n\t\t//\t\t//2012-02-05 END\n\t\t\t\t$this -> set( 'reserve_count', $reserve_count );\t \n\t\t\t\t$this -> Session -> write( 'loginInfo', $loginInfo );\n\t\t\t\t$this -> set( 'messages', $messages );\t\n\t\t\t}\n\t\n\t\t//\t//クリックしたセッションを消す\n\t\t//\t//戻った時に青いまま残っているから\n\t\t\t$this -> Session -> write( 'tacherConfirmSch', null );\n\t\n\t\t//\t//TEACHER_IDを設定(次の予約ために同じ先生のページに飛ぶように)\n\t\t\t$this -> set( 'teacher_id', $this -> data['Lesson']['teacher_id'] );\n\t\t} else {\n\t\t\t$cubic_error_condition = array();\n\t\t\t$loginInfo = $this -> Session -> read('loginInfo');\n\t\t\t$today = date('Y-m-d H:i:s');\n\t\t\t$indentify_user = \"\"; \n\t\t\tif ( empty($loginInfo) || $loginInfo == null ) {\n\t\t\t\t$indentify_user = \"unidentified user; <br >lesson_id : cannot identified; <br >teacher_id : cannot identified; <br >session has been expired;\";\n\t\t\t} else {\n\t\t\t\t$indentify_user = \"identified user; <br >lesson_id : cannot identified; <br > teacher_id :cannot identified;\";\n\t\t\t\t$cubic_error_condition['user_id'] = $loginInfo['User']['id'];\n\t\t\t}\n\t\t\t\n\t\t\t$cubic_error_condition['error']\t\t = \"001\";\n\t\t\t$cubic_error_condition['message']\t = \"this -> params[form][payment] : return 0; <br > $indentify_user\";\n\t\t\t$cubic_error_condition['controller'] = \"lessons_controller\";\n\t\t\t$cubic_error_condition['method']\t = \"function reserve_complete2(){};\";\n\t\t\t$cubic_error_condition['created']\t = $today;\n\t\t\t$cubic_error_condition['modified']\t = $today;\n\t\t\t\n\t\t\t$this -> loadModel('CubicError');\n\t\t\t$this -> CubicError -> create();\n\t\t\t$this -> CubicError -> set($cubic_error_condition);\n\t\t\t$this -> CubicError -> save();\n\t\t\t\n\t\t\t$messages = \"수업 예약중 에러가 발생하였습니다.<br />불편을 드려서 죄송하오며 고객센터에 문의를 부탁드립니다.<br />070-7847-5487\";\n\t\t\t$this -> set('messages', $messages);\n\t\t\t\t\n\t\t}\n\t\t$this -> set('payment_id', $payment_id);\n\t}", "title": "" }, { "docid": "d13a9d22001b4744787e653166a3ec33", "score": "0.60257876", "text": "public function index (Request $request, $id)\n {\n \n // Enviar email =======>\n //$date = reserve::where('name_reserve',$id )->first();\n \n $date = reserve::where('id',$id )->first();\n \n \n \n///////////////////////////////////////////////////////////////////////////// Incremento Quarto y eliminacion ///////////////////////////////////////////////////////////\n $id_quarto = $date->id_room;\n \n /*$x = room::where ( 'available', 'LIKE', '%' . 0 . '%' )\n ->where ( 'id', 'LIKE', '%' . $id_quarto . '%' )\n ->first(); */\n \n $x = room::where('id',$id_quarto)\n ->first();\n \n \n //NO SUPERIOR\n \n if ($x->id == 1){\n \n $quartoid= 1;\n $numero = $x->infoConfirm;\n \n if( ($numero> -1) && ($numero< 6) ){\n \n \n if($numero==5){\n \n $n=5;\n \n room::where('id', 1 )\n ->update(['infoConfirm' => $n]); \n \n reserve::where('id', $id)->delete();\n \n }\n else{\n \n $suno= $numero + 1;\n \n room::where('id', 1 )\n ->update(['infoConfirm' => $numero + 1]); \n \n \n //Elimino el quarto en reserva table BD\n reserve::where('id', $id)->delete();\n \n }\n \n }\n \n }\n \n \n \n \n if ($x->id == 5){\n \n $numero = $x->infoConfirm;\n \n \n if( ($numero>-1) && ($numero<2) ){\n \n \n if($numero==1){\n \n $n=1;\n \n room::where('id', 5 )\n ->update(['infoConfirm' => $n]); \n \n reserve::where('id', $id)->delete();\n \n }\n else{\n \n $suno= $numero + 1;\n \n room::where('id', 5 )\n ->update(['infoConfirm' => $numero + 1]); \n \n \n //Elimino el quarto en reserva table BD\n reserve::where('id', $id)->delete();\n \n }\n \n }\n \n \n }\n \n \n //SUPERIOR\n \n if ($x->id == 3){\n \n \n $numero = $x->infoConfirm;\n \n \n if( ($numero>-1) && ($numero<8) ){\n \n \n if($numero==7){\n \n $n=7;\n \n room::where('id', 3 )\n ->update(['infoConfirm' => $n]); \n \n reserve::where('id', $id)->delete();\n \n }\n else{\n \n $suno= $numero + 1;\n \n room::where('id', 3 )\n ->update(['infoConfirm' => $numero + 1]); \n \n \n //Elimino el quarto en reserva table BD\n reserve::where('id', $id)->delete();\n \n }\n \n }\n \n }\n \n \n \n \n \n if ($x->id == 6){\n \n $numero = $x->infoConfirm;\n \n \n if( ($numero>-1) && ($numero<8) ){\n \n \n if($numero==7){\n \n $n=7;\n \n room::where('id', 6 )\n ->update(['infoConfirm' => $n]); \n \n reserve::where('id', $id)->delete();\n \n }\n else{\n \n $suno= $numero + 1;\n \n room::where('id', 6 )\n ->update(['infoConfirm' => $numero + 1]); \n \n \n //Elimino el quarto en reserva table BD\n reserve::where('id', $id)->delete();\n \n }\n \n }\n }\n \n \n/////////////////////////////////////////////////////////////////////////////////////////////\n \n \n $cor =(explode(\"_\",$date->name_reserve));\n \n \n $name ='Cancelar Reserva Rsaecolodge'; \n $message = 'NOME:'.Auth::user()->name.',' . ' '.'EMAIL:'.Auth::user()->email.','.' '.'CHECKIN:'. $date->checkin.','. ' '.'CHEKOUT:'.$date->checkout.','. ' ' .'RESERVA:'.$cor[0] ; \n \n // Email A empresa/admin\n //Mail::to('[email protected]')->send(new Demoemail2($name,$message));\n Mail::to('[email protected]')->send(new Demoemail2($name,$message));\n \n // Email User\n $email_individuo= Auth::user()->email;\n Mail::to($email_individuo)->send(new Demoemail2($name,$message));\n\n\n //Activo el quarto en room table BD\n /*$n_room = room::find($id);\n $n_roomeng = roomeng::find($id);\n $person= $n_room->person;\n $personeng= $n_roomeng->person;\n room::where('id',$id )\n ->update(['available' => 0, 'vacancies' => $person ]); \n\n roomeng::where('id',$id )\n ->update(['available' => 0, 'vacancies' => $personeng ]);*/\n \n \n return redirect(route('home'));\n \n }", "title": "" }, { "docid": "b0798ebfbb03eefc86af8608951e85b1", "score": "0.6007748", "text": "function reserve_for_guest(){\n if($_SERVER['REQUEST_METHOD']==\"POST\" || isset($_POST['submit'])){\n $First_name = escape_string(trim($_POST['fname']));\n $Last_name = escape_string(trim($_POST['lname']));\n $P_no = escape_string(trim($_POST['pno']));\n $Seat_id = escape_string(trim($_POST['seat_id']));\n $Schedule_id = escape_string(trim($_POST['sc_id']));\n $Date = date('Y-m-d H:m:s');\n $Guest = query(\"INSERT INTO cinetest_guest(first_name,last_name,phone,created_at) VALUES ('{$First_name}','{$Last_name}','{$P_no}',curdate())\");\n confirm($Guest);\n $Saved_Guest = query(\"SELECT * FROM cinetest_guest WHERE first_name='{$First_name}' AND last_name='{$Last_name}' AND phone='{$P_no}' AND created_at=curdate()\");\n confirm($Saved_Guest);\n $G_row = fetch_array($Saved_Guest);\n if(num_rows($Saved_Guest)>0){\n $G_id = $G_row['id'];\n $_SESSION['G_id'] = $Schedule_id;\n echo $G_id;\n $Reservation = query(\"INSERT INTO cinetest_reservations(created_at,guest_id,schedule_id,seat_id,is_valid ) VALUES(curdate(), '{$G_id}','{$Schedule_id}','{$Seat_id}',1)\");\n confirm($Reservation);\n redirect(\"../schedule/index.php?s_id={$Schedule_id}\");\n }\n else{\n $_SESSION['G_id'] = 'G_id';\n }\n redirect(\"../schedule/index.php?s_id={$Schedule_id}\");\n }\n}", "title": "" }, { "docid": "783a14ab8d9cd5ba911924c002b3fd9c", "score": "0.598762", "text": "public function reservationAction()\n {\n // specify required fields\n $requirements = array(\n array('name' => 'title', 'required' => true, 'type' => 'integer'),\n array('name' => 'firstName', 'required' => true, 'type' => 'string'),\n array('name' => 'lastName', 'required' => true, 'type' => 'string'),\n array('name' => 'email', 'required' => true, 'type' => 'string', 'constraints' => array('email' => 1)),\n array('name' => 'country', 'required' => true, 'type' => 'string'),\n array('name' => 'mobileCountryCode', 'required' => true, 'type' => 'string'),\n //array('name' => 'mobile', 'required' => true, 'type' => 'string'),\n array('name' => 'guestFirstName', 'required' => true, 'type' => 'array'),\n array('name' => 'guestLastName', 'required' => true, 'type' => 'array'),\n array('name' => 'ccType', 'required' => true),\n array('name' => 'ccCardHolder', 'required' => true),\n array('name' => 'ccNumber', 'required' => true),\n array('name' => 'ccExpiryMonth', 'required' => true),\n array('name' => 'ccExpiryYear', 'required' => true),\n array('name' => 'ccCVC', 'required' => true),\n array('name' => 'fromDate', 'required' => true, 'type' => 'string', 'constraints' => array('date' => 1)),\n array('name' => 'toDate', 'required' => true, 'type' => 'string', 'constraints' => array('date' => 1)),\n array('name' => 'hotelDetails', 'required' => true, 'type' => 'array'),\n array('name' => 'selectedOffers', 'required' => true, 'type' => 'array'),\n array('name' => 'transactionId', 'required' => true, 'type' => 'string'),\n );\n\n // fetch post json data\n $requestData = $this->fetchRequestData($requirements);\n\n for ($key = 0; $key < count($requestData['selectedOffers']); $key++) {\n if (!isset($requestData['guestFirstName'][$key]) || empty($requestData['guestFirstName'][$key]) || !isset($requestData['guestLastName'][$key]) || empty($requestData['guestLastName'][$key])) {\n return array(\"code\" => 400, \"message\" => $this->translator->trans(\"Invalid guest params\"));\n }\n }\n\n //prebook\n $prebook = $this->prebook($requestData);\n\n $serviceConfig = $this->getHotelServiceConfig();\n\n $requestData['reference'] = $prebook['reference'];\n $requestData['ccRequired'] = $prebook['ccRequired'];\n $requestData['ccCodeRequired'] = $prebook['ccCodeRequired'];\n $requestData['reservationMode'] = $prebook['reservationMode'];\n $requestData['offersSelectedSerialize'] = json_encode($prebook['selectedOffers']);\n $requestData['transactionSourceId'] = $this->transactionSourceId;\n $requestData['userId'] = $this->userGetID();\n if (isset($requestData['arrivalTime'])) {\n $requestData['arrival_time'] = $requestData['arrivalTime'];\n unset($requestData['arrivalTime']);\n }\n unset($requestData['selectedOffers']);\n\n $hotelBC = $this->get('HRSServices')->getHotelBookingCriteria($requestData);\n\n $toreturn = $this->get('HRSServices')->processHotelReservationRequest($serviceConfig, $hotelBC);\n\n return $toreturn;\n }", "title": "" }, { "docid": "07bcba6b7621d3194cf4a95129ea1834", "score": "0.59069127", "text": "public function postReservation(Request $request)\n { \n $reservation = Reservation::where('date',$request->date)\n ->where('phone',$request->phone)\n ->where('time_slot',$request->time)\n ->first();\n\n if(!empty($reservation)){\n\n $message = \"You already Have A Reservation at $request->date for $request->time\";\n return redirect()->back()->with(\"error\",$message);\n }\n else{\n $reservations = Reservation::where('date',$request->date)\n ->where('time_slot',$request->time)\n ->get();\n $totalPerson = 0;\n foreach ($reservations as $reservation) {\n $totalPerson += $reservation->num_of_person;\n }\n $totalPersonAvailable = $totalPerson + $request->person;\n if($totalPersonAvailable>20){\n $message = \"Booking is not Available for $request->time at $request->date\";\n return redirect()->back()->with(\"error\",$message);\n }else{\n $reservation = new Reservation();\n $reservation->name = $request->name;\n $reservation->phone = $request->phone;\n $reservation->date = $request->date;\n $reservation->num_of_person = $request->person;\n $reservation->time_slot = $request->time;\n $reservation->verificarionCode= str_random(5);\n $reservation->save();\n\n $res_id = $reservation->id;\n $code = $reservation->verificarionCode;\n Nexmo::message()->send([\n 'to' => '+88'.$reservation->phone.'',\n 'from' => '+8801940374834',\n 'text' => $code\n ]);\n \n return redirect()->route('reservation.confirm', [$res_id]);\n }\n \n }\n }", "title": "" }, { "docid": "7e00abb7e31e20acd171b9dbde2c91b1", "score": "0.5902381", "text": "public function atender(){\n\t\t$cargo=Cargo::getById($_SESSION['cargos_id']);\n\t\t$area=Area::getById($cargo->getAreas_id());\n\t\t$estado=\"A\";\n\t\t//inicia el seguimiento\n\t\t$seguimiento= new Seguimiento(NULL,$area->getId(),$area->getId(),$_POST['fecha_atencion'],$estado,1,$_POST['id']);\n\t\t$expediente=new Expediente($_POST['id'],NULL,NULL,$_POST['fecha_atencion'],$estado,NULL,NULL,NULL,NULL);\n\t\tSeguimiento::save($seguimiento);\n\t\tExpediente::update($expediente);\n\t\t$_SESSION['mensaje']='Registro guardado satisfactoriamente';\n\t\t$this->tramitar();\n\t}", "title": "" }, { "docid": "96702c39baa349afd9fac3e27810446c", "score": "0.58804184", "text": "public function Reservar_Horario_SR(){\n try{\n //session_start();\n $obj=new cmd();\n\n $ubicacion=$_POST['ubicacion'];\n $mes=$_POST['mes'];\n $fecha=$_POST['fecha'];\n\n //recibo parametros para verificar si la matricula ya existe en una reserva\n //$capacidad=$obj->Registros(\"Reservas_SR WHERE(Id_horario=\".$_POST['identificador_horario'].\")\");\n \n $horarios_disponibles=$obj->ExistenciaC(\"Horario_SR\",\"Mes='\".$mes.\"' and fecha='\".$fecha.\"' and Id_ubicacion=\".$ubicacion);\n\n //$matricula=$obj->Extraer_Parametro(\"Credenciales_Estudiantes WHERE(pass='\".$_SESSION['nombre'].\"')\", 0);\n //$puedoreservar=$obj->Extraer_Parametro(\"Reservas WHERE(Matricula='\".$_SESSION['nombre'].\"')\", 0);\n\n //$yareservo= $obj->ExistenciaB(\"Reservas_SR\",\"Matricula\",\"'\".$matricula.\"'\");\n //echo $puedoreservar;\n //$capacidad=$obj->Extraer_Parametro(\"Horario_de_reserva WHERE(Id='\".$_POST['Id_reserva'].\"')\", 3);\n //$resta=0;\n //if(int($capacidad)>0){$resta=$resta-1;}\n if($horarios_disponibles==0){echo 0;}\n if($horarios_disponibles>0){echo 1;}\n //echo $ubicacion.\"-\".$mes.\"-\".$fecha.\"-\".\"::::\";\n //echo $horarios_disponibles;\n \n /*\n if($capacidad<6&&$yareservo==0&&$horarios_disponibles>0){\n echo 'tiene permitido reservar';\n //$obj->Modificar(\"Horario_de_reserva\",\"Capacidad='\".$resta.\"'\",\"Id\",\"'\".$_POST['Id_reserva'].\"'\");\n //$obj->Insertar(\"Reservas\",\"\".$_POST['identificador_horario'].\",'\".$matricula.\"'\");\n\n }\n //if($yareservo>0&&$horarios_disponibles>0){\n //echo 'no tienes permitido reservar una segunda vez en el mismo horario';\n //echo '<script language=\"javascript\">alert(\"Se modificara la entidad\");</script>';\n //$obj->Modificar(\"Instancias\",\"Inicio_De_Instancia='\".time().\"',Galleta='\".$varr.\"'\",\"Huesped\",\"'\".$_SESSION['nombre'].\"'\");\n //}\n if($yareservo>0){\n echo 'parece que ya has reservado termina tu clase y reserva de nuevo no te permitire reservar';\n //$obj->Insertar(\"Reservas\",\"\".$_POST['identificador_horario'].\",'\".$matricula.\"'\");\n //echo '<script language=\"javascript\">alert(\"Se modificara la entidad\");</script>';\n //$obj->Modificar(\"Instancias\",\"Inicio_De_Instancia='\".time().\"',Galleta='\".$varr.\"'\",\"Huesped\",\"'\".$_SESSION['nombre'].\"'\");\n }\n */\n\n \n } catch (Exception $ex) {echo 'error al realizas la consulta tipo de error: '.$ex;\n\n }\n }", "title": "" }, { "docid": "82f239b9d5e564ea586b89a1ffcc491c", "score": "0.5839815", "text": "public function rohrbuendelAction() {\n\t\t}", "title": "" }, { "docid": "6263f9b553b4b31e334db6d2fdf16e2a", "score": "0.5820465", "text": "public function geschraubtAction() {\n\t\t}", "title": "" }, { "docid": "cdc49d9dbfbf1695a0c56fb2b78aee1b", "score": "0.5812645", "text": "function annuler_reservation($data){\n\n\t\t$query = $this->db->query(\"SELECT * FROM reservations WHERE id = ?\", array($data['id']));\n\t\t$val = 0;\n\t\t$valToUpdate = array('status' => 'annuler','place'=>$val);\n\t\t$this->db->where('id', $data['id_reservation']);\n\t\t$resultat = $this->db->update('reservations', $valToUpdate);\n\t\t\t\t\n\t\tif ($resultat) {\n\t\t\t$valToUpdates = array('place_disponible'=>$data['place_disponible']);\n\t\t\t$this->db->where('id', $data['id_trajet']);\n\t\t\t$result = $this->db->update('trajet', $valToUpdates);\n\t\t\tif($result){\n\t\t\t\techo json_encode($message=array('etat' => 1,'message'=>'Reservation annulée avec success'));\n\t\t\t}\n\t\t\telse{\n\t\t\t\techo json_encode($message=array('etat' => 0,'message'=>'Annulation échouée'));\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\techo json_encode($message=array('etat' => 0,'message'=>'Annulation échouée'));\n\t\t}\n\t\t\n\t\treturn !empty($message)?$message:null;\n\t}", "title": "" }, { "docid": "d7d7c8f09981e5fa1431a7a48b871486", "score": "0.5743829", "text": "function tickets_autoriser(){}", "title": "" }, { "docid": "972bc3c397931d7940d7f73f3bd6ff29", "score": "0.567346", "text": "function verbrauchHeute()\n{\n\t\n\tglobal $verbrauch;\n\t\t\n\t$verbrauchHeuteAktor = 0.0;\n\t$euroHeuteAktor = 0.0;\n\t$verbrauchHeuteDevices = 0.0;\n\t$euroHeuteDevices = 0.0;\n\t\t\n\t$sql = query( \"SELECT iid, zeitEin, zeitHeute FROM aktor\" );\n\twhile( $row = fetch($sql))\n\t{\n\t\t$deltaZeit = 0;\n\t\t$zeitHeute = 0;\n\t\t\n\t\t// Zeit der Aktiven Aktoren miteinbeziehen\n\t\tif( $row['zeitEin'] > 0 )\n\t\t{\n\t\t\t// $deltaZeit = Zeit die der Aktor bis jetz ein war\n\t\t\t$deltaZeit = time() - $row['zeitEin'];\n\t\t}\n\t\n\t\t// zeitHeute brechnen\n\t\t$zeitHeute = $deltaZeit + $row['zeitHeute'];\n\t\t//echo $row['iid'] .\"<br/>\";\n\t\trechneVerbrauchHeute($row['iid'],\"aktor\", $zeitHeute);\n\t\t//echo \"aktor \" . $row['iid'] . \" :\" . $verbrauch['kwh'] . \"<br/>\";\n\t\t//print_r($verbrauch);\n\t\t$verbrauchHeuteAktor = $verbrauchHeuteAktor + $verbrauch['kwh'];\n\t\t$euroHeuteAktor = $euroHeuteAktor + $verbrauch['euro'];\n\t}\n\t\n\t/* Verbrauch der \"Geräte\" miteinbeziehen\n\t$monat = date(\"m\");\n\t$tagHeute = date(\"d\");\n\t$jahr = date(\"Y\");\n\t$timestamp = mktime(0, 0, 0, $monat, $tagHeute, $jahr);\n\t\n\trechneVerbrauchHeute( false, $timestamp );\n\t$verbrauchHeute = $verbrauchHeute + $verbrauch['kwh'];\n\t$euroHeute = $euroHeute + $verbrauch['euro'];\n\t*/\n\t\n\t$sql = query( \"SELECT id, zeitEin, zeitHeute FROM devices\" );\n\twhile( $row = fetch($sql))\n\t{\n\t\t$deltaZeit = 0;\n\t\t$zeitHeute = 0;\n\t\t\n\t\t// Zeit der Aktiven Aktoren miteinbeziehen\n\t\tif( $row['zeitEin'] > 0 )\n\t\t{\n\t\t\t// $deltaZeit = Zeit die der Aktor bis jetz ein war\n\t\t\t$deltaZeit = time() - $row['zeitEin'];\n\t\t}\n\t\n\t\t// zeitHeute brechnen\n\t\t$zeitHeute = $deltaZeit + $row['zeitHeute'];\n\t\t//echo $zeitHeute . \"<br/>\";\n\t\trechneVerbrauchHeute($row['id'],\"devices\", $zeitHeute);\n\t\t//echo \"device \" . $row['id'] . \" :\" . $verbrauch['kwh'] . \"<br/>\";\n\t\t$verbrauchHeuteDevices = $verbrauchHeuteDevices + $verbrauch['kwh'];\n\t\t$euroHeuteDevices = $euroHeuteDevices + $verbrauch['euro'];\n\t}\t\n\t\n\t$verbrauch['kwh'] = round($verbrauchHeuteDevices + $verbrauchHeuteAktor,2) ;\n\t$verbrauch['euro'] = round($euroHeuteDevices + $euroHeuteAktor,2);\n\t\n\treturn $verbrauch;\n\t\n}", "title": "" }, { "docid": "3ea0145e0e458294d4d5d9d3fdb14836", "score": "0.56360555", "text": "public function guideseatcompleteAction()\n {\n $uid = $this->_USER_ID;\n $floorId = $this->getParam(\"CF_floorid\");\n //wait chair id\n $chairId = $this->getParam(\"CF_chairid\");\n //mood from flash\n $mood = $this->getParam(\"CF_ha\");\n //move to work chair id, from flash\n $seatId = $this->getParam(\"selid\");\n //waitServiceGuestCount, from flash\n $waitServiceGuestCount = $this->getParam(\"CF_guestCount\");\n //param $from from flash\n $from = $this->getParam(\"CF_from\");\n $tempArray = explode(\"-\", $from);\n $actionName = $tempArray[0];\n if ('waitingroomothers' == $actionName) {\n $this->view->stealfloorid = $tempArray[2];\n $this->view->inneruid = $tempArray[4];\n }\n\n if (empty($floorId)) {\n info_log($uid . \"guide seat floorid is null\", \"guideseat\");\n return $this->_redirectErrorMsg(-1);\n }\n if (empty($seatId)) {\n return $this->_redirect($this->_baseUrl . '/mobile/tower/home');\n }\n /*\n $chairMap = array(1=>1,2=>4,3=>7,4=>10,5=>13,6=>2,7=>5,8=>8,9=>11,10=>14,11=>3,12=>6,13=>9,14=>12,15=>15);\n $toChairId = '10020' . ((strlen($chairMap[$seatId]) > 1) ? $chairMap[$seatId] : ('0' . $chairMap[$seatId]));*/\n $toChairId = $seatId;\n //move guest to work chair\n $mbllApi = new Mbll_Tower_ServiceApi($uid);\n $aryRst = $mbllApi->moveGuest($floorId, $chairId, $toChairId);\n\n if (!$aryRst || $aryRst['errno']) {\n $errParam = '-1';\n if (!empty($aryRst['errno'])) {\n $errParam = $aryRst['errno'];\n return $this->_redirectErrorMsg($errParam);\n }\n else {\n $this->view->errorHappend = 1;\n }\n }\n\n //get my store type\n $aryMyFloors = explode(',', $this->_user['floors']);\n $storeType = 0;\n foreach ($aryMyFloors as $key=>$fvalue) {\n $aryTmp = explode('|', $fvalue);\n if ($aryTmp[0] == $floorId) {\n $storeType = $aryTmp[1];\n break;\n }\n }\n\n $waitServiceGuest = $aryRst['result'];\n\n //get this guest state, such as need item,mood etc\n $guest = Mbll_Tower_GuestTpl::getGuestDescription($waitServiceGuest['tp']);\n //guest name\n $guestName = explode(\"|\", $guest['des']);\n $waitServiceGuest['guest_name'] = $guestName[0];\n //need item\n $needItem = Mbll_Tower_ItemTpl::getItemDescription($waitServiceGuest['ac']);\n $waitServiceGuest['ac_name'] = $needItem['name'];\n $thisItemCount = $mbllApi->getItemCountById($waitServiceGuest['ac']);\n $waitServiceGuest['ac_count'] = $thisItemCount['result']['count'];\n //mood picture\n $waitServiceGuest['moodPic'] = round($waitServiceGuest['ha']/10)*10;\n $waitServiceGuest['mood_emoj'] = Mbll_Tower_Common::getMoodDesc($waitServiceGuest['ha']);\n //work chair id\n $waitServiceGuest['toChairId'] = $toChairId;\n\n $this->view->waitServiceGuest = $waitServiceGuest;\n $this->view->storeType = $storeType;\n $this->view->oldMood = $mood;\n $this->view->newMood = $waitServiceGuest['ha'];\n $this->view->floorid = $floorId;\n $this->view->waitServiceGuestCount = $waitServiceGuestCount;\n\n $this->render();\n }", "title": "" }, { "docid": "5af10a6a5ecd9d00320d05d16dd02b5c", "score": "0.5619286", "text": "public function SelectRoomReservation(){\n global $database,$Functions;\n if(isset($_GET[\"submit_booking\"]) && isset($_GET[\"select_booking\"]) && !(empty($_GET[\"select_booking\"]))){\n isset($_GET[\"page\"]) ? $page = $_GET[\"page\"] : $page = 1;\n switch($_GET[\"select_booking\"]){\n case \"notbooked\":\n settype($page,\"integer\");\n $pagination = $Functions->pagination(5,$page,'room_reservation','reserve_id',' WHERE reserved_mode = 0 ');\n self::$total_page = $pagination[\"total_page\"];\n $sql = \"SELECT * FROM room_reservation WHERE reserved_mode = 0 ORDER BY reserve_id DESC LIMIT {$pagination['start_from']},{$pagination['record_per_page']}\";\n $result = $database->query($sql);\n $booking_mode = \"notbooked\";\n return array($result,$booking_mode);\n break;\n case \"booked\":\n settype($page,\"integer\");\n $pagination = $Functions->pagination(5,$page,'room_reservation','reserve_id',' WHERE reserved_mode = 1 ');\n self::$total_page = $pagination[\"total_page\"];\n $sql = \"SELECT * FROM room_reservation WHERE reserved_mode = 1 ORDER BY reserve_id DESC LIMIT {$pagination['start_from']},{$pagination['record_per_page']}\";\n $result = $database->query($sql);\n $booking_mode = \"booked\";\n return array($result,$booking_mode);\n break;\n default:\n settype($page,\"integer\");\n $pagination = $Functions->pagination(5,$page,'room_reservation','reserve_id',' WHERE reserved_mode = 0 ');\n self::$total_page = $pagination[\"total_page\"];\n $sql = \"SELECT * FROM room_reservation WHERE reserved_mode = 0 ORDER BY reserve_id DESC LIMIT {$pagination['start_from']},{$pagination['record_per_page']}\";\n $result = $database->query($sql);\n $booking_mode = \"notbooked\";\n return array($result,$booking_mode);\n break;\n }\n }else{\n settype($page,\"integer\");\n $pagination = $Functions->pagination(5,$page,'room_reservation','reserve_id',' WHERE reserved_mode = 0 ');\n self::$total_page = $pagination[\"total_page\"];\n $sql = \"SELECT * FROM room_reservation WHERE reserved_mode = 0 ORDER BY reserve_id DESC LIMIT {$pagination['start_from']},{$pagination['record_per_page']}\";\n $result = $database->query($sql);\n $booking_mode = \"notbooked\";\n return array($result,$booking_mode);\n }\n }", "title": "" }, { "docid": "1e429ec3d873fee6b775b2f673ba986e", "score": "0.55854875", "text": "public function reservations() {\n $this->template->content = View::instance(\"v_reservations_reservations\");\n $this->template->title = \"Reservations\";\n\n # Build the query to get all the users\n // $q = \"SELECT * FROM reservations\";\n\n\t $q = \"SELECT *\n FROM reservations\n WHERE user_id = \".$this->user->user_id.\" order by reservation_id desc\";\n\n # Execute the query to get all the users.\n # Store the result array in the variable $users\n $reservations = DB::instance(DB_NAME)->select_rows($q);\n\n # Build the query to figure out what reservations does this user already have?\n # I.e. who are they following\n $q = \"SELECT *\n FROM reservations\n WHERE user_id = \".$this->user->user_id;\n\n\n\n # Pass data (reservations) to the view\n $this->template->content->reservations = $reservations;\n\n\n # Render the view\n echo $this->template;\n }", "title": "" }, { "docid": "e990c1390727d8832803107c0296a56b", "score": "0.55577475", "text": "public function reservation_sanitize($request){\n\n\t\t$reservation_idx=$request->id;\n\t\t$first_name=$request->param('first_name');\n\t\t$first_name=filter_var($first_name, FILTER_SANITIZE_STRING);\n\t\t$first_name = stripslashes($first_name);\n\t\t$reserve['first_name'] = $first_name;\n\n\t\t$last_name=$request->param('last_name');\n\t\t$last_name=filter_var($last_name, FILTER_SANITIZE_STRING);\n\t\t$last_name = stripslashes($last_name);\n\t\t$reserve['last_name'] = $last_name; \n\n\t\t$phone=$request->param('phone');\n\t\t$phone=filter_var($phone, FILTER_SANITIZE_STRING);\n\t\t$reserve['phone'] = $phone;\n\n\t\t$email=$request->param('email');\n\t\t$email=filter_var($email, FILTER_SANITIZE_STRING);\n\t\t$reserve['email'] = $email;\n\n\t\t$reserve_type=$request->param('radio');\n\t\t$reserve_type=filter_var($reserve_type, FILTER_SANITIZE_STRING);\n\t\t$reserve['reserve_type'] = $reserve_type;\n\n\t\t$start_date=$request->param('start_date');//request a parameter for start_date\n\t\t$start_date=filter_var($start_date, FILTER_SANITIZE_STRING);\n\t\t$reserve['start_date'] = $start_date;\n\n\t\t$end_date=$request->param('end_date');//request a parameter for enddate\n\t\t$end_date=filter_var($end_date, FILTER_SANITIZE_STRING);\n\t\t$reserve['end_date'] = $end_date;\n\n\t\t$title=$request->param('title');//request a parameter for title\n\t\t$title=filter_var($title, FILTER_SANITIZE_STRING);\n\t\t$title = stripslashes($title);\n\t\t$reserve['title'] = $title;\n\n\t\t$location=$request->param('location');//request a parameter for location\n\t\t$location=filter_var($location, FILTER_SANITIZE_STRING);\n\t\t$reserve['location'] = $location;\n\n\t\t$room=$request->param('room');\n\t\t$room=filter_var($room, FILTER_SANITIZE_STRING);\n\t\t$reserve['room'] = $room;\n\n\t\t$comments=$request->param('comments');\n\t\t$comments=filter_var($comments,FILTER_SANITIZE_STRING);\n\t\t$comments = stripslashes($comments);\n\t\t$reserve['comments'] = $comments;\n\n\t\t$starthour=$request->param('starthour');\n\t\t$starthour=filter_var($starthour, FILTER_SANITIZE_STRING);\n\t\t$reserve['starthour'] = $starthour;\n\n\t\t$startminute=$request->param('startminute');\n\t\t$startminute=filter_var($startminute, FILTER_SANITIZE_STRING);\n\t\t$reserve['startminute'] = $startminute;\n\n\t\t$startminute=sprintf(\"%02d\",$startminute);\n\t\t$startampm=$request->param('startampm');\n\t\t$startampm=filter_var($startampm, FILTER_SANITIZE_STRING);\n\t\t$reserve['startampm'] = $startampm;\n\n\t\t$start_time=$starthour . ':' . $startminute . ' ' . $startampm;\n\n\t\t$endhour=$request->param('endhour');\n\t\t$endhour=filter_var($endhour, FILTER_SANITIZE_STRING);\n\t\t$reserve['hour'] = $endhour;\n\n\t\t$endminute=$request->param('endminute');\n\t\t$endminute=filter_var($endminute, FILTER_SANITIZE_STRING);\n\t\t$reserve['endminute'] = $endminute;\n\n\t\t$endminute=sprintf(\"%02d\",$endminute);\n\t\t$endampm=$request->param('endampm');\n\t\t$endampm=filter_var($endampm, FILTER_SANITIZE_STRING);\n\t\t$reserve['endampm'] = $endampm;\n\n\t\t$end_time=$endhour . ':' . $endminute . ' ' . $endampm;\n\n\t\tif( ! $first_name ){ //if there is no first name\n\t\t\t$_SESSION['errors'][]='First name not found'; //throw error\n\t\t}\n\t\t\n\t\tif( ! $last_name ){ //if there is no last name\n\t\t\t$_SESSION['errors'][]='Last name not found'; //throw error\n\t\t}\n\t\t\n\t\tif( ! $phone ){ //if there is no phone number\n\t\t\t$_SESSION['errors'][]='Phone number not found'; //throw error\n\t\t}\n\t\t\n\t\tif( ! $email ){\n\t\t\t$_SESSION['errors'][]='Email not found';\n\t\t}else{\n\t\t\tif(! filter_var($email, FILTER_VALIDATE_EMAIL)){\n\t\t\t\t$_SESSION['errors'][]='Email not correct.';\n\t\t\t}\n\t\t}\n\t\t\n\t\tif( ! $title ){\n\t\t\t$_SESSION['errors'][]='Event Title not found';\n\t\t}\n\t\t\n\t\tif( ! $location){\n\t\t\t$_SESSION['errors'][]='Location not found';\n\t\t}\n\t\t\n\t\tif( $location == \"Please select a location\" ) {\n\t\t\t$_SESSION['errors'][]='Location not found';\n\t\t}\n\t\t\n\t\tif( ! $room ){\n\t\t\t$_SESSION['errors'][]='Room not found';\n\t\t}\n\t\t\n\t\tif( ! $start_date ){//if there is no start date\n\t\t\t$_SESSION['errors'][]='Start Date not found';\n\t\t}\n\t\t\n\t\tif( ! $end_date ){ //if there is no end date\n\t\t\t$_SESSION['errors'][]='End Date not found';\n\t\t}\n\n\t\tif( count($_SESSION['errors'])>0 ){//if the number of errors is > 0\n\t\t\t$data=array(\n\t\t\t\t'complete' => false,\n\t\t\t\t'reserve' => $reserve,\n\t\t\t);\n\t\t\treturn $data;\n\t\t}\n\n\t\t$cts_admin['first_name']=$first_name;\n\t\t$cts_admin['last_name']=$last_name;\n\t\t$cts_admin['phone']=$phone;\n\t\t$cts_admin['email']=$email;\n\n\t\t$start_time = date(\"H:i:s\", strtotime($start_time));\n\t\t$end_time = date(\"H:i:s\", strtotime($end_time));\n\t\t$start_date=date(\"Y-m-d\", strtotime($start_date));\n\t\t$end_date=date(\"Y-m-d\" , strtotime($end_date));\n\t\t$cts_admin['start_date']=$start_date;\n\t\t$cts_admin['end_date']=$end_date;\n\t\t$cts_admin['start_time']=$start_time;\n\t\t$cts_admin['end_time']=$end_time;\n\n\t\tif( $comments ) {\n\t\t\t$comments= filter_var($comments, FILTER_SANITIZE_STRING);\n\t\t\t$cts_admin['comments']=$comments;\n\t\t}else{\n\t\t\t$comments = NULL;\n\t\t}\n\n\t\t$cts_admin['location']=$location;\n\t\t$cts_admin['room']=$room;\n\t\t$cts_admin['title']=$title;\n\t\t$cts_admin['reserve_type']=$reserve_type;\n\t\t$cts_admin['reservation_idx']=$reservation_idx;\n\t\t//update the reservation with the new information\n\t\t$data=array(\n\t\t\t'complete' => true,\n\t\t\t'cts_admin' => $cts_admin,\n\t\t\t'reserve' => $reserve,\n\t\t);\n\t\treturn $data;\n\n\t}", "title": "" }, { "docid": "1594d10dbaa0e5762dd28b5c3c1fa716", "score": "0.55434245", "text": "function cancelPending() {\n\t\tself::$_db->saveQry(\"SELECT `ID` FROM `#_reservations` \".\n\t\t\t\t\"WHERE (`status` = 'pending' OR `status` = 'prefered') \".\n\t\t\t\t\"AND ? >= `startTime` \",\n\t\t\t\tCalendar::startCancel());\n\t\t\n\n\t\twhile($res = self::$_db->fetch_assoc())\n\t\t\tReservation::load($res['ID'])->failed();\n\t\t\n\t\t\n\t\t// TagesEnde - BuchungsCancelZeit ist kleiner als Aktueller Zeitblock\n\t\tif(Calendar::calculateTomorrow()) {\n\t\t\t$opening = Calendar::opening(date('Y-m-d', strtotime(\"tomorrow\")));\n\t\t\tself::$_db->saveQry(\"SELECT * FROM `#_reservations` \".\n\t\t\t\t\t\"WHERE (`status` = 'pending' OR `status` = 'prefered') \".\n\t\t\t\t\t\"AND ? <= `startTime` AND `startTime` <= ? \",\n\t\t\t\t\t$opening->format(\"Y-m-d H:i\"), \n\t\t\t\t\tCalendar::startCancel($opening));\n\t\t\t\n\t\t\twhile($res = self::$_db->fetch_assoc())\n\t\t\t\tReservation::load($res['ID'])->failed();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "32ddc505eb851e6674a6d9879585a331", "score": "0.5534872", "text": "public function invoke() {\n $partySize = intval($_GET['partySize']);\n $dateTime = DateTime::createFromFormat('m-d-Y', $_GET['selectedDate']);\n $date = $dateTime->format('Y-m-d');\n $d = DateTime::createFromFormat('H:i A ', $_GET['selectedTime']);\n $time = $d->format('H:i:s');\n\t\t// Create a reservation object.\n $this->reservation = Reservation::queryReservation($this->restaurant->id, $date, $time, $partySize);\n\t\t\n\t\t// Check for special instructions.\n if($this->reservation->tableId != NIL){\n if(isset($_GET['specialinstruction'])){\n $this->instruction = $_GET['specialinstruction'];\n }\n \n //Construct a new reservation based on selected information\n $this->reservation = new Reservation(\"\", $this->user->id, $this->restaurant->id,\n \t\t\t\t\t\t\t\t\t$this->reservation->date, $this->reservation->time,\n\t\t\t\t\t\t\t\t\t\t\t\t$partySize, $this->reservation->tableId, \n\t\t\t\t\t\t\t\t\t\t\t\t$this->instruction, $this->reservation->status,\"\");\n $this->reservation->placeReservation();\n }\n \n // Retrieve the menu items for the specified restaurnt.\n $this->menuitems = MenuItem::getMenuItemsByRestaurant($this->restaurant->id);\n \n // Create a new order object.\n//\t\t$this->order = new Order(NIL, $this->reservation->id);\n\t\t$this->order = Order::createOrder($this->reservation->id);\n\t\t\n // Load the order page\n include 'view/page/order_page.php';\n }", "title": "" }, { "docid": "741520bac14d2cf7f294df66c7e98a6c", "score": "0.55297387", "text": "public function get_reservation_per_teacher($res_teach_code=NULL,\n\t\t\t\t\t\t\t\t\t\t\t\t $res_room_code=NULL,\n\t\t\t\t\t\t\t\t\t\t\t\t $tm_row=NULL,\n\t\t\t\t\t\t\t\t\t\t\t\t $res_todate)\n\t\t{\n \t\t\t$where = \" and DATE_FORMAT(res_time_start,'%Y-%m-%d') = '\". date(\"Y-m-d\").\"'\";\n\t\t if(!empty($res_todate))\n\t\t\t $where = \" and DATE_FORMAT(res_time_start,'%Y-%m-%d') = '\".date('Y-m-d',strtotime($res_todate)).\"'\";\n\t\t \n\t\t\t\n\t \n \t\t\t$reservs = $this->db->query(\"select Distinct res_teach_code, res_admin_note from \n\t\t\t\t\t\t\t\t\t\t reservations \n \t\t\t where res_teach_code = \".$res_teach_code.\"\n\t\t\t\t\t\t\t and res_room_code = \".$res_room_code.\"\n\t\t\t\t\t\t\t and DATE_FORMAT(res_time_start, '%H:%i') <= '\".$tm_row.\"'\n\t\t\t\t\t\t\t and DATE_FORMAT(res_time_end, '%H:%i') >= '\".$tm_row.\"' \".\n\t\t\t\t\t\t $where .\n \t\t\t\t\t\t\t \" order by res_code desc \")->result();\n \t\t\t //\t \n\t \n\t\t\treturn $reservs;\n\t\t}", "title": "" }, { "docid": "779d517e9c3251c27a47addd37577445", "score": "0.55290514", "text": "public function SelectUserRoomReservation(){\n global $database,$Functions;\n if(isset($_GET[\"submit_booking\"]) && isset($_GET[\"select_booking\"]) && !(empty($_GET[\"select_booking\"]))){\n isset($_GET[\"page\"]) ? $page = $_GET[\"page\"] : $page = 1;\n switch($_GET[\"select_booking\"]){\n case \"notbooked\":\n settype($page,\"integer\");\n $pagination = $Functions->pagination(5,$page,'room_reservation','reserve_id',\" WHERE user_id={$_SESSION['user_id']} AND reserved_mode = 0 \");\n self::$total_page = $pagination[\"total_page\"];\n $sql = \"SELECT * FROM room_reservation WHERE user_id={$_SESSION['user_id']} AND reserved_mode = 0 ORDER BY reserve_id DESC LIMIT {$pagination['start_from']},{$pagination['record_per_page']}\";\n $result = $database->query($sql);\n $booking_mode = \"notbooked\";\n return array($result,$booking_mode);\n break;\n case \"booked\":\n settype($page,\"integer\");\n $pagination = $Functions->pagination(5,$page,'room_reservation','reserve_id',\" WHERE user_id={$_SESSION['user_id']} AND reserved_mode = 1 \");\n self::$total_page = $pagination[\"total_page\"];\n $sql = \"SELECT * FROM room_reservation WHERE user_id={$_SESSION['user_id']} AND reserved_mode = 1 ORDER BY reserve_id DESC LIMIT {$pagination['start_from']},{$pagination['record_per_page']}\";\n $result = $database->query($sql);\n $booking_mode = \"booked\";\n return array($result,$booking_mode);\n break;\n default:\n settype($page,\"integer\");\n $pagination = $Functions->pagination(5,$page,'room_reservation','reserve_id',\" WHERE user_id={$_SESSION['user_id']} AND reserved_mode = 0 \");\n self::$total_page = $pagination[\"total_page\"];\n $sql = \"SELECT * FROM room_reservation WHERE user_id={$_SESSION['user_id']} AND reserved_mode = 0 ORDER BY reserve_id DESC LIMIT {$pagination['start_from']},{$pagination['record_per_page']}\";\n $result = $database->query($sql);\n $booking_mode = \"notbooked\";\n return array($result,$booking_mode);\n break;\n }\n }else{\n settype($page,\"integer\");\n $pagination = $Functions->pagination(5,$page,'room_reservation','reserve_id',\" WHERE user_id={$_SESSION['user_id']} AND reserved_mode = 0 \");\n self::$total_page = $pagination[\"total_page\"];\n $sql = \"SELECT * FROM room_reservation WHERE user_id={$_SESSION['user_id']} AND reserved_mode = 0 ORDER BY reserve_id DESC LIMIT {$pagination['start_from']},{$pagination['record_per_page']}\";\n $result = $database->query($sql);\n $booking_mode = \"notbooked\";\n return array($result,$booking_mode);\n }\n }", "title": "" }, { "docid": "9ad62213a82dce4558587fcfc42ebd51", "score": "0.5525609", "text": "public function MantenimientoReserva($idreserva,$idhotel ,$idcliente ,$bfecha ,$bguia ,$btrasporte ,$balimento ,$btipocliente ,$bfecha_inicio ,$bfecha_fin ,$btipobagon ,$bmachupicchu ,$bhorasalida ,$bhorallegada,$op,$mensaje,$consulta){\n\t if($consulta==\"I\"){\n\t\t$sql = \" INSERT INTO TRESERVA VALUES (NULL ,'\".$idhotel.\"','\".$idcliente.\"','\".$bfecha.\"','\".$bguia.\"','\".$btrasporte .\"','\".$balimento.\"','\".$btipocliente.\"','\".$bfecha_inicio.\"','\".$bfecha_fin .\"','\".$btipobagon.\"','\".$bmachupicchu .\"','\".$bhorasalida .\"','\".$bhorallegada.\"','\".$op.\"','\".$mensaje.\"' )\";\n\t }else\t \n\t if($consulta==\"A\"){\n\t\t $sql = \" UPDATE TRESERVA SET bhorasalida='\".$bhorasalida.\"',bhorallegada='\".$bhorallegada.\"',bopcional='\".$op.\"',bobservacion='\".$mensaje.\"' WHERE idreserva='\".$idreserva.\"'\";\n\t\t echo \" <script language='JavaScript'> \n alert('Sus Datos Fueron Actualizados Correctamente'); \n </script>\";\n\t\t }\n\t \n\t \n\t\t mysql_query($sql);\n\t\t}", "title": "" }, { "docid": "1534933bed7e39446591fa438d153c12", "score": "0.55215037", "text": "public function encender(){\n\n \t\tif($this->estado){\n\n \t\tprint \"No pudes encender el Auto dos veces <br>\";\t\n\n \t\t} else { \n \t\t\tif($this->tanque <= 0){\n\n \t\t\tprint \"No se puede encender el Auto, no hay gasolina :( <br>\";\n \t\t}\n\n \t\t}\telse{\n \t\t\tprint \"Auto Encendido <br>\";\n \t\t}\n \t}", "title": "" }, { "docid": "b5149612b08425c4a94161492856ce95", "score": "0.5515469", "text": "public function reserved(Request $request)\n {\n $booking = Booking::findOrFail($request->id);\n $available = DB::table('bookings')\n ->where('bookings.room_id','=',$booking->room_id)\n ->where('bookings.status','=',4)\n ->exists(); // is true if exists some booking is reserved\n if ($available) {\n return back()->withErrors(['Ya reservaste esta habitación']); //return back because other booking is reserved\n }\n $booking->note = $request->message;\n $booking->status = 4;\n $booking->save();\n\n event(new BookingWasChanged($booking));\n\n $user = $booking->user;\n $manager = $booking->room->house->manager->user;\n $user->notify(new BookingNotification($booking));\n $manager->notify(new BookingNotification($booking));\n\n $info = [\n 'id' => $booking->id,\n 'status' => $booking->status\n ];\n // self::statusUpdate($info);\n return redirect()->back()->with('accepted_success','Se realizo el cambio');\n }", "title": "" }, { "docid": "07238b8ee72b5acea21a5d719f0ede77", "score": "0.5498707", "text": "public function markRented() {\n if(!empty($_SESSION)) {\n $url_param = Manage::getUrlParameter();\n $rental_unit_id = filter_var($url_param, FILTER_SANITIZE_NUMBER_INT);\n $this->model->updateAvailability($rental_unit_id,1);\n \n header('location: ' . URL . 'manage');\n }\n else {\n header('location: ' . URL . 'home');\n }\n }", "title": "" }, { "docid": "037270607da94b1a710a5e6a4454d3c9", "score": "0.54914737", "text": "public function ticket();", "title": "" }, { "docid": "7c0e9a138a45ada2133682f85a5deae9", "score": "0.54863554", "text": "function bombadierePlaneten($schiff_id, $bombadiere) {\n $aktive_spezialmission = @mysql_query(\"SELECT spezialmission FROM skrupel_schiffe WHERE id='$schiff_id'\");\n $aktive_spezialmission = @mysql_fetch_array($aktive_spezialmission);\n $aktive_spezialmission = $aktive_spezialmission['spezialmission'];\n if($aktive_spezialmission != 3 && $aktive_spezialmission != 0 && $bombadiere) return;\n $bomben_mission = 0;\n if($bombadiere) $bomben_mission = 3;\n @mysql_query(\"UPDATE skrupel_schiffe SET spezialmission='$bomben_mission' WHERE id='$schiff_id'\");\n if($this->SchiffHatFertigkeit($schiff_id, 'viraleinvasion')) {\n $virale_mission = 0;\n if($bombadiere) $virale_mission = 17;\n @mysql_query(\"UPDATE skrupel_schiffe SET spezialmission='$virale_mission' WHERE id='$schiff_id'\");\n }\n }", "title": "" }, { "docid": "f248e9dafa20f14bb7f8e7e72dbbd87a", "score": "0.54721063", "text": "function reserveTempSeats($trip_ID,$seat_no,$start_city,$end_city,$p_price)\n\t{\n\t\t\n\t\t\n\t\t$dataConnection = new DataConnection();\n\t\t\n\t\t$seat_Num = explode(\",\", $seat_no);\n\t\t\n\t\t//loop through seats and save in the database\n\t\t\n\t\t\t$temp1=rand(10000,1);\n\t\t\t$temp2=rand(10000,1);\n\t\t\t\n\t\t\t$reqID=$temp1.$temp2;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\tfor ($i = 0; $i < count($seat_Num); $i++) \n\t\t{\n\n\t\t\t$dataConnection->insertTempres_seats($trip_ID,$seat_Num[$i],$reqID);\n\t\n\t\t\n\t\t}\n\t\t\n\t\t\n\t\t$t_price=$p_price*count($seat_Num);\n\t\t$dataConnection->insertTempres_info($reqID,$start_city,$end_city,$t_price);\n\t\treturn $reqID;\n\t\n\t}", "title": "" }, { "docid": "9beb0cbde5a959072c91105126a8147d", "score": "0.54625493", "text": "public function booking_operation()\n {\n $booking_id= $_GET['id'];\n $request= $_GET['request'];\n\n switch ($request) \n {\n case 1:\n $this->accept_booking($booking_id);\n break;\n\n case 2:\n $this->start_booking($booking_id);\n break;\n\n case 3:\n $this->end_booking($booking_id);\n break;\n default:\n redirect('Admin/booking');\n }\n }", "title": "" }, { "docid": "9ece198e7059227e3c4fe79e0f370630", "score": "0.54624575", "text": "function aktiviereDestabilisator($jaeger_id) {\n $schiff_daten = @mysql_query(\"SELECT kox, koy, status, fertigkeiten FROM skrupel_schiffe \n\t\t\tWHERE id='$jaeger_id'\");\n $schiff_daten = @mysql_fetch_array($schiff_daten);\n $schiff_status = $schiff_daten['status'];\n if($schiff_status != 2) return false;\n $fertigkeiten = $schiff_daten['fertigkeiten'];\n if(substr($fertigkeiten, 50, 2) + 0 < eigenschaften::$jaeger_infos->min_destabilisator_prozent) return false;\n $x_pos = $schiff_daten['kox'];\n $y_pos = $schiff_daten['koy'];\n $spiel_id = eigenschaften::$spiel_id;\n $planeten_infos = @mysql_query(\"SELECT id, besitzer, kolonisten FROM skrupel_planeten \n\t\t\tWHERE (x_pos='$x_pos') AND (y_pos='$y_pos') AND (spiel='$spiel_id')\");\n $planeten_infos = @mysql_fetch_array($planeten_infos);\n $planeten_id = $planeten_infos['id'];\n $besitzer = $planeten_infos['besitzer'];\n $this->tankeLemin($jaeger_id, $planeten_infos['id']);\n $kolonisten = $planeten_infos['kolonisten'];\n if(in_array($besitzer, eigenschaften::$gegner_ids)\n && $kolonisten >= eigenschaften::$jaeger_infos->min_kolonisten_destabilisator) {\n @mysql_query(\"UPDATE skrupel_schiffe SET spezialmission=20 WHERE id='$jaeger_id'\");\n\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "b4b2a8d51ad8aea9f636a0ff0a2a32d5", "score": "0.54607654", "text": "function save_reservation($data)\n {\n extract($data);\n $isexist = get_data('manage_reservation',array('reservation_code'=>$reservation_code,'user_id'=>$user_id,'hotel_id'=>$hotel_id,'room_id'=>$room_id));\n \n if($isexist->num_rows() == 0)\n {\n $start_date = date('d/m/Y',strtotime($start_date));\n $end_date = date('d/m/Y',strtotime($end_date));\n $taxes = get_data(TAX,array('user_id'=>$data['user_id']))->result_array();\n if(count($taxes)!=0)\n {\n foreach($taxes as $valuue)\n {\n extract($valuue);\n $t_data['user_id']=$user_id;\n $t_data['hotel_id']=$hotel_id;\n $t_data['reservation_id']=$reservation_code;\n $t_data['tax_name'] = $user_name;\n $t_data['tax_included'] = $included_price;\n $t_data['tax_price'] = $tax_rate;\n insert_data(R_TAX,$t_data);\n }\n }\n $room_count=$num_rooms;\n $this->db->set('reservation', 'reservation+'.$room_count.'', FALSE);\n $this->db->where('separate_date >=',$start_date); \n $this->db->where('separate_date <=',$end_date); \n $this->db->where('room_id',$room_id); \n $this->db->update('room_update');\n \n \n //reservation updae\n \n $startDate = DateTime::createFromFormat(\"d/m/Y\",$start_date);\n\n $endDate = DateTime::createFromFormat(\"d/m/Y\",$end_date);\n\n $periodInterval = new DateInterval(\"P1D\");\n\n //$endDate->add( $periodInterval );\n\n $period = new DatePeriod( $startDate, $periodInterval, $endDate );\n\n $endDate->add( $periodInterval );\n \n if($status != \"Cancel\" && $roomstatus != \"Cancel\")\n {\n foreach($period as $date)\n {\n $get_available = get_data(TBL_UPDATE,array('owner_id'=>$user_id,'hotel_id'=>$hotel_id,'room_id'=>$room_id,'individual_channel_id'=>0,'separate_date'=>$date->format(\"d/m/Y\")))->row();\n //$get_available = get_data(TBL_UPDATE,array('owner_id'=>user_id(),'room_id'=>$room_id,'separate_date'=>$date->format(\"d/m/Y\")))->row()->availability;\n $diff = $room_count * 1;\n \n $upaval['availability'] = $get_available->availability - $diff ;\n \n $upaval['trigger_cal'] = '1';\n require_once(APPPATH.'controllers/mapping.php'); \n $callAvailabilities = new Mapping();\n\n update_data(TBL_UPDATE,$upaval,array('owner_id'=>$user_id,'hotel_id'=>$hotel_id,'individual_channel_id'=> 0,'room_id'=>$room_id,'separate_date'=>$date->format(\"d/m/Y\")));\n\n //$this->db->query('call UpdateAvailabilityInMain(\"'.TBL_UPDATE.'\",\"'.$upaval['availability'].'\",\"'.current_user_type().'\",\"'.hotel_id().'\",\"'.$room_id.'\",\"'.$date->format(\"d/m/Y\").'\")');\n $this->db->where('room_update_id !=',$get_available->room_update_id);\n $this->db->where('owner_id',$user_id);\n $this->db->where('hotel_id',$hotel_id);\n $this->db->where('room_id',$room_id);\n $this->db->where('separate_date',$date->format(\"d/m/Y\"));\n //$this->db->set('availability','availability - '.$diff,false);\n $this->db->set('availability','CASE WHEN availability - '.$diff.' >=0 THEN availability-'.$diff.' WHEN availability-'.$diff.' < 0 AND individual_channel_id = 0 THEN availability-'.$diff.' WHEN availability-'.$diff.' < 0 AND individual_channel_id = 0 THEN 0 END' ,false);\n $this->db->update(TBL_UPDATE);\n\n $channel['channel_id'] = 0;\n $channel['property_id'] = $room_id;\n $channel['rate_id'] = 0;\n $channel['guest_count'] = 0;\n $channel['refun_type'] = 0;\n $channel['start'] = $start_date;\n $channel['end'] = $end_date;\n //update_data(TBL_UPDATE,$upaval,array('owner_id'=>user_id(),'room_id'=>$room_id,'separate_date'=>$date->format(\"d/m/Y\")));\n\n $roomMappingDetails = get_data(MAP,array('property_id' => $room_id,'owner_id'=>$user_id))->row_array();\n\n if(count($roomMappingDetails)!=0){\n \n $callAvailabilities->update_channel($user_id,$hotel_id,$upaval,$channel,$date->format(\"d/m/Y\"),$mapping_id = \"\",\"manual\");\n }\n\n //$callAvailabilities->update_subrooms($upaval['availability'],$channel,$date->format(\"d/m/Y\"),current_user_type(),hotel_id());\n \n }\n }\n\n $data=array(\n 'reservation_code'=>$reservation_code,\n 'hotel_id'=>$hotel_id,\n 'user_id'=>$user_id,\n 'guest_name'=>$guest_name,\n 'last_name'=>$last_name,\n 'mobile'=>$mobile,\n 'email'=>$email,\n 'room_id'=>$room_id,\n 'num_nights'=>$num_nights,\n 'num_rooms' => $room_count,\n 'members_count'=>$members_count,\n 'start_date'=>$start_date,\n 'end_date'=>$end_date,\n 'booking_date'=>$booking_date,\n 'price'=>$price,\n 'pms' => 1,\n 'description'=>$description,\n 'currency_id'=>get_data(TBL_CUR,array('currency_id'=>get_data(HOTEL,array('owner_id'=>$user_id,'hotel_id'=>$hotel_id))->row()-> currency))->row()->currency_id,\n );\n\n if($roomstatus != \"Book\")\n {\n $data['modified_date'] = date('Y-m-d');\n if($status == \"Cancel\" || $roomstatus != \"Cancel\")\n {\n $data['status'] = \"Canceled\";\n $data['cancel_date'] = date('Y-m-d');\n }\n }\n /*$this->db->insert('manage_reservation',$data);*/\n \n if(insert_data('manage_reservation',$data))\n {\n\n $id = $this->db->insert_id();\n \n if($exp_month!='' && $exp_year!='' && $card_number!='' && $card_type!='' && $card_name!='')\n {\n $card=array(\n 'exp_month'=>$exp_month,\n 'name'=>$card_name,\n 'card_type' => $card_type,\n 'securitycode' => $securitycode,\n 'exp_year'=>$exp_year,\n 'number'=>$card_number,\n 'user_id'=>$user_id,\n 'resrv_id'=>$id,\n );\n $this->db->insert('card_details',$card);\n }\n \n $save_note = array('type'=>'3','created_date'=>date('Y-m-d H:i:s'),'status'=>'unseen','reservation_id'=>$id,'user_id'=>$user_id,'hotel_id'=>$hotel_id);\n\n $ver = $this->db->insert('notifications',$save_note);\n }\n }else{\n $start_date = date('d/m/Y',strtotime($start_date));\n $end_date = date('d/m/Y',strtotime($end_date));\n $dataupdate=array(\n 'reservation_code'=>$reservation_code,\n 'hotel_id'=>$hotel_id,\n 'user_id'=>$user_id,\n 'guest_name'=>$guest_name,\n 'last_name'=>$last_name,\n 'mobile'=>$mobile,\n 'email'=>$email,\n 'room_id'=>$room_id,\n 'num_nights'=>$num_nights,\n 'num_rooms' => $num_rooms,\n 'members_count'=>$members_count,\n 'start_date'=>$start_date,\n 'end_date'=>$end_date,\n 'booking_date'=>$booking_date,\n 'price'=>$price,\n 'description'=>$description,\n 'currency_id'=>get_data(TBL_CUR,array('currency_id'=>get_data(HOTEL,array('owner_id'=>$user_id,'hotel_id'=>$hotel_id))->row()->currency))->row()->currency_id,\n );\n if($status == \"Modify\" && $isexist->row()->status != \"Canceled\")\n {\n if($roomstatus != \"Cancel\")\n {\n $dataupdate['modified_date'] = date('Y-m-d');\n \n $old_room = $isexist->row()->room_id;\n $old_room_count = $isexist->row()->num_rooms;\n $old_room_start_date = $isexist->row()->start_date;\n $old_room_end_date = $isexist->row()->end_date;\n if($old_room == $room_id)\n {\n if($old_room_start_date == $start_date && $old_room_end_date == $end_date)\n {\n if($old_room_count != $num_rooms)\n {\n if($old_room_count > $num_rooms)\n {\n $diff = $old_room_count - $num_rooms;\n $opr = '+';\n }else{\n $diff = $num_rooms - $old_room_count;\n $opr = '-';\n }\n $this->updateAvailability($diff,$opr,$dataupdate);\n update_data('manage_reservation',$dataupdate,array('reservation_code'=>$reservation_code,'user_id'=>$user_id,'hotel_id'=>$hotel_id,'room_id'=>$room_id));\n }else{\n update_data('manage_reservation',$dataupdate,array('reservation_code'=>$reservation_code,'user_id'=>$user_id,'hotel_id'=>$hotel_id,'room_id'=>$room_id));\n }\n }else{\n $diff = $old_room_count;\n $opr = '+';\n $this->updateAvailability($diff,$opr,$dataupdate,$old_room_start_date,$old_room_end_date);\n if($old_room_count != $num_rooms)\n {\n if($old_room_count > $num_rooms)\n {\n $diff = $old_room_count - $num_rooms;\n $opr = '+';\n }else{\n $diff = $num_rooms - $old_room_count;\n $opr = '-';\n }\n $this->updateAvailability($diff,$opr,$dataupdate);\n update_data('manage_reservation',$dataupdate,array('reservation_code'=>$reservation_code,'user_id'=>$user_id,'hotel_id'=>$hotel_id,'room_id' => $room_id));\n }else{\n $diff = $num_rooms;\n $opr = '-';\n $this->updateAvailability($diff,$opr,$dataupdate);\n update_data('manage_reservation',$dataupdate,array('reservation_code'=>$reservation_code,'user_id'=>$user_id,'hotel_id'=>$hotel_id,'room_id'=>$room_id));\n }\n }\n }else{\n $diff = $old_room_count;\n $opr = \"+\";\n $this->updateAvailability($diff,$opr,$dataupdate,$old_room_start_date,$old_room_end_date,$old_room);\n $diff = $num_rooms;\n $opr = '-';\n $this->updateAvailability($diff,$opr,$dataupdate);\n update_data('manage_reservation',$dataupdate,array('reservation_code'=>$reservation_code,'user_id'=>$user_id,'hotel_id'=>$hotel_id,'room_id'=>$room_id));\n }\n }else{\n $dataupdate['cancel_date'] = date('Y-m-d');\n $dataupdate['modified_date'] = date('Y-m-d');\n $dataupdate['status'] = 'Canceled';\n $old_room = $isexist->row()->room_id;\n $old_room_count = $isexist->row()->num_rooms;\n $old_room_start_date = $isexist->row()->start_date;\n $old_room_end_date = $isexist->row()->end_date;\n $diff = $old_room_count;\n $opr = \"+\";\n $this->updateAvailability($diff,$opr,$dataupdate,$old_room_start_date,$old_room_end_date,$old_room);\n update_data('manage_reservation',$dataupdate,array('reservation_code'=>$reservation_code,'user_id'=>$user_id,'hotel_id'=>$hotel_id,'room_id'=>$room_id));\n\n }\n }else if($status == \"Cancel\" && $isexist->row()->status != \"Canceled\")\n {\n $dataupdate['cancel_date'] = date('Y-m-d');\n $dataupdate['modified_date'] = date('Y-m-d');\n $dataupdate['status'] = 'Canceled';\n $old_room = $isexist->row()->room_id;\n $old_room_count = $isexist->row()->num_rooms;\n $old_room_start_date = $isexist->row()->start_date;\n $old_room_end_date = $isexist->row()->end_date;\n $diff = $old_room_count;\n $opr = \"+\";\n $this->updateAvailability($diff,$opr,$dataupdate,$old_room_start_date,$old_room_end_date,$old_room);\n update_data('manage_reservation',$dataupdate,array('reservation_code'=>$reservation_code,'user_id'=>$user_id,'hotel_id'=>$hotel_id,'room_id'=>$room_id));\n }\n\n }\n return true;\n }", "title": "" }, { "docid": "0f0151e04af99d6cb7c0476afeaf0d1e", "score": "0.5458424", "text": "public function reservarSaldos() {\n\n $oDaoReserva = db_utils::getDao(\"orcreserva\");\n $oDaoReservaContrato = db_utils::getDao(\"orcreservaacordoitemdotacao\");\n foreach ($this->getDotacoes() as $oDotacao) {\n\n /**\n * verificamos se existe saldo na dotacao, e\n * incluimos a reserva\n */\n $oDotacaoSaldo = new Dotacao($oDotacao->dotacao, $oDotacao->ano);\n $nSaldoReservar = $oDotacao->valor - $oDotacao->executado;\n if (round($oDotacaoSaldo->getSaldoFinal() <= $oDotacao->valor, 2)) {\n $nSaldoReservar = $oDotacaoSaldo->getSaldoFinal();\n }\n if ($nSaldoReservar > 0 && isset($oDotacao->codigodotacaoitem) && $oDotacao->codigodotacaoitem != \"\") {\n\n $oAcordo = new Acordo($this->getPosicao()->getAcordo());\n $iNumeroAcordo = $oAcordo->getNumero();\n\n $oDaoReserva->o80_anousu = $oDotacao->ano;\n $oDaoReserva->o80_coddot = $oDotacao->dotacao;\n $oDaoReserva->o80_dtini = date(\"Y-m-d\", db_getsession(\"DB_datausu\"));\n $oDaoReserva->o80_dtfim = \"{$oDotacao->ano}-12-31\";\n $oDaoReserva->o80_dtlanc = date(\"Y-m-d\", db_getsession(\"DB_datausu\"));\n $oDaoReserva->o80_valor = $nSaldoReservar;\n $oDaoReserva->o80_descr = \"reserva acordo {$iNumeroAcordo}, item {$this->getCodigo()}\";\n $oDaoReserva->incluir(null);\n\n if ($oDaoReserva->erro_status == 0) {\n\n $sMessage = \"Erro ao reservar saldo!\\n{$oDaoReserva->erro_msg}\";\n throw new Exception($sMessage);\n }\n\n $oDaoReservaContrato->o84_orcreserva = $oDaoReserva->o80_codres;\n $oDaoReservaContrato->o84_acordoitemdotacao = $oDotacao->codigodotacaoitem;\n $oDaoReservaContrato->incluir(null);\n if ($oDaoReservaContrato->erro_status == 0) {\n\n $sMessage = \"Erro ao reservar saldo!\\n{$oDaoReservaContrato->erro_msg}\";\n throw new Exception($sMessage);\n }\n }\n return $this;\n }\n }", "title": "" }, { "docid": "d7039f7da42552da53eb4d1af652bc62", "score": "0.54546237", "text": "public function pastReservation()\n {\n if (isset($_SESSION['id']) && isset($_SESSION['user'])) {\n $id = $_SESSION['id'];\n $pastReservations = new ReservationManager();\n $pastReservations->selectAllReservation($id);\n }\n }", "title": "" }, { "docid": "e56d364f39076b8141ddbc246d429412", "score": "0.5430069", "text": "public function __construct($reservation)\n {\n $this->reservation = $reservation;\n }", "title": "" }, { "docid": "d67c6deb7bc5989c1281b243ff0870e6", "score": "0.5403586", "text": "function AjoutReservation($date_retrait){\n\t\t\t$req = \"SELECT * FROM \". $GLOBALS['Panier']. \" WHERE id_user =\".$_SESSION[\"id_user\"];\n\t\t\t$resp = $GLOBALS[\"BDD\"]->query($req);\n\t\t\t\t\t\twhile ($donnees = $resp->fetch()){\n\t\t\t\t\t\t\t\t\t//On ajoute la reservation à la table reservation\n\t\t\t\t\t\t\t\t\t$insert = $GLOBALS[\"BDD\"]->prepare(\"INSERT INTO \". $GLOBALS['Reservation']. \" (id_user, id_jeu, date_retrait) VALUES ('\".$_SESSION[\"id_user\"].\"', '\".$donnees['id_jeu'].\"', '\".$date_retrait.\"')\");\n\t\t\t\t\t\t\t $insert->execute(array(\n\t\t\t\t\t\t\t \"id_user\" => $_SESSION[\"id_user\"],\n\t\t\t\t\t\t\t \"id_jeu\" => $donnees[\"id_jeu\"],\n\t\t\t\t\t\t\t\t\t\t'date_retrait' => $date_retrait\n\t\t\t\t\t\t\t\t\t\t));\n\t\t\t\t\t\t\t\t\t//On met à jour le stock des jeux\n\t\t\t\t\t\t\t\t\t$req = \"UPDATE \". $GLOBALS['Jeux']. \" SET stock = stock - 1 WHERE id_jeu =\".$donnees[\"id_jeu\"];\n\t\t\t\t\t\t\t\t\t$update = $GLOBALS[\"BDD\"]->prepare($req);\n\t\t\t\t\t\t\t\t\t$update->execute(array(\n\t\t\t\t\t\t\t\t\t\t));\n\t\t\t\t\t\t\t\t\t//On supprime le panier de l'utilisateur\n\t\t\t\t\t\t\t\t\t$req = \"DELETE FROM \". $GLOBALS['Panier']. \" WHERE id_panier =\".$donnees[\"id_panier\"];\n\t \t\t\t\t\t\t\t$GLOBALS[\"BDD\"]->exec($req);\n\t\t\t\t\t\t}\n\t\t}", "title": "" }, { "docid": "09ad42b81d8c031fd3f2ca26ad5d2049", "score": "0.5394851", "text": "public function trasnaction(){\n\n\t}", "title": "" }, { "docid": "95f924ccfacb0e21b2aa73b26a614122", "score": "0.5382775", "text": "public static function aceptar_reserva($id_pedido,$id_conductor,$id_vehiculo)\n {\n /*\n\testado del taxi:\n\t0=inactivo\n\t1=activo\n\t2=\n\t3=\n\t4=en camino a un pedido.\n */\n \t$res=false;\n$asignado=self::id_taxi_del_pedido_reserva($id_pedido);\nif($asignado!=-1)\n{\n if($asignado['id_vehiculo']!=$id_vehiculo && $asignado['id_conductor']!=$id_conductor){\n $consulta=\"UPDATE pedido p,conductor c,vehiculo v set p.id_vehiculo=?,p.id_conductor=?, p.estado_reserva=1,p.fecha_reserva_aceptado=now() \n where p.id=? and TIMESTAMPDIFF(MINUTE,now(),p.fecha_reserva)>20 and p.estado_reserva=0 and c.id_vehiculo=v.placa\n and c.credito>0 and c.bloqueo=0 AND p.tipo_reserva=1 and p.id_vehiculo is null and p.id_conductor is null\";\n $aceptado=false;\n\t\t\ttry{\n \t\t\t $comando=parent::getInstance()->getDb()->prepare($consulta);\n\t\t\t\t$comando->execute(array($id_vehiculo,$id_conductor,$id_pedido));\n\t\t\t\t$aceptado=true;\n\t \t\t}catch(PDOException $e)\n\t \t\t{\n\t \t\t\t$aceptado=false;\n\t \t\t}\n\t \t\n\t \t\t//si no hubo ningun problema al actualizar entonces verificamos si el id_taxi esta en el pedido\n\t \t\tif($aceptado==true)\n\t \t\t{\n\t \t\t\t \n\t\t \t\t\n\t\t\t\t\n\t\t\t\t $resultado=self::id_taxi_del_pedido_reserva($id_pedido);\n\t \t\t\tif($resultado['id_vehiculo']==$id_vehiculo && $resultado['id_conductor']==$id_conductor)\n\t \t\t\t{\n\t \t\t\t\t$res=true;\n\t \t\t\t\t$token=self::get_token_id_pedido($id_pedido);\n\t \t\t\t\tself::enviar_notificacion_aceptar_reserva($token,$id_pedido);\n\t \t\t\t}\n\t \t\t\t\n\n\t \t\t}\n\t \t}\n\t }\n\nreturn $res;\n }", "title": "" }, { "docid": "f97ee4db63d694374bd8440a84ce2662", "score": "0.53786075", "text": "function unattended() {\n\t\tself::$_db->saveQry(\"SELECT `ID` FROM `#_reservations` \".\n\t\t\t\t\"WHERE (`status` = 'queued') \".\n\t\t\t\t\"AND `startTime` <= ?\",\n\t\t\t\tCalendar::unattended());\n\t\t\n\t\twhile($res = self::$_db->fetch_assoc())\n\t\t\tReservation::load($res['ID'])->unattended();\n\t}", "title": "" }, { "docid": "c25ca2f9e128b044e24da1225ac9d3d0", "score": "0.5374199", "text": "public function index()\n\t{\n\n\n\n\t\t$un_bookings = array();\n\t\t$bookings = array();\n\t\t$todayBookings = array();\n\t\t$postReservation = array();\n\t\t$count = 1;\n\n\t\t//unconfirmed bookings\n\t\t$statusCancelledNew = DB::select(DB::raw('select * from reservation_status_log having new_reservation_status_id in (1,2,7,3,6,7,8,9) and created_at in (SELECT MAX(created_at) FROM reservation_status_log group by reservation_id)'));\n\t\t$reservationIdArr = array();\n\t\tforeach($statusCancelledNew as $reservId){\n\t\t\t$reservationIdArr[] = $reservId->reservation_id;\n\t\t}\n\n\t\t$reservStatusArr = $this->reservationDetails->getReservationStatus($reservationIdArr,[1,2,7,3,6,7,8,9]);\n\n\t\t//print_r($reservStatusArr);die;\n\n\t\tforeach (ReservationDetails::with('experience','vendor_location.vendor','vendor_location.address.city_name','attributesDatetime')\n\t\t\t\t\t /*->with(['reservationStatus' => function($query)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$query->whereIn('reservation_statuses.id',[1,2,7])\n\t\t\t\t\t\t\t\t\t ->orderBy('reservation_statuses.id','desc')\n\t\t\t\t\t\t\t\t\t ->select(DB::raw('reservation_statuses.*, user_id'));\n\n\t\t\t\t\t }])*/\n\t\t\t\t\t ->where('vendor_location_id','!=','0')\n\t\t\t\t\t ->where('vendor_location_id','!=','54')\n\t\t\t\t\t ->whereIn('id',$reservationIdArr)\n\t\t\t\t\t ->where('created_at','>=','2015-10-12 15:20:00')\n\t\t\t\t\t ->where('id','!=','27355')\n\t\t\t\t\t ->orderBy('reservation_details.created_at','desc')->get() as $unconfirmedBookings)\n\t\t{\n\t\t\t//print_r($unconfirmedBookings->attributesDatetime->attribute_value);die;\n\t\t\t$booking = new \\stdClass();\n\t\t\t$booking->id = $unconfirmedBookings->id;\n\t\t\t//echo \"<pre>\".print_r($unconfirmedBookings);\n\n\t\t\tif($unconfirmedBookings->product_id == 0){\n\t\t\t\t$booking->name = \"Classic Reservation\";\n\t\t\t} else {\n\t\t\t\t$booking->name = $unconfirmedBookings->experience->name;\n\t\t\t}\n\t\t\t$booking->cust_name = $unconfirmedBookings->guest_name;\n\t\t\t$booking->restaurant_name = $unconfirmedBookings->vendor_location->vendor->name;\n\t\t\tif(empty($unconfirmedBookings->vendor_location->address->city_name)){\n\t\t\t\t$booking->city = \"\";\n\t\t\t} else {\n\t\t\t\t$booking->city = $unconfirmedBookings->vendor_location->address->city_name->name;\n\t\t\t}\n\t\t\t//$reservStatus = $unconfirmedBookings->reservationStatus->first();\n\t\t\t//dd($reservStatus->status);\n\t\t\t$booking->email = $unconfirmedBookings->guest_email;\n\t\t\t$booking->phone_no = $unconfirmedBookings->guest_phone;\n\t\t\t$booking->no_of_persons = $unconfirmedBookings->no_of_persons;\n\t\t\t//$booking->status = $reservStatus->status;\n\t\t\t$userModel = User::find($unconfirmedBookings->user_id);\n\t\t\t$booking->lastmodified = $userModel->role->name;\n\t\t\t$booking->user_id = $unconfirmedBookings->user_id;\n\n\t\t\t$statusArr = $this->reservStatuses;\n\t\t\t$statusKey = array_search($reservStatusArr[$unconfirmedBookings->id],$statusArr);\n\t\t\t//echo $statusKey.\"<br/>\";\n\t\t\tif($statusKey != -1){\n\t\t\t\tunset($statusArr[$statusKey]);\n\t\t\t}\n\t\t\t//echo $reservStatusArr[$unconfirmedBookings->id];\n\t\t\t$booking->reserv_status = $reservStatusArr[$unconfirmedBookings->id][0];\n\t\t\t$booking->reservation_status_id = $reservStatusArr[$unconfirmedBookings->id][1];\n\t\t\t$booking->statusArr = $statusArr;\n\t\t\t//echo $reservStatusArr[$unconfirmedBookings->id][0];\n\t\t\t//if($reservStatusArr[$unconfirmedBookings->id][1] == 3){\n\t\t\tif(array_search($reservStatusArr[$unconfirmedBookings->id][1],array(3,6,7,8,9)) != -1){\n\t\t\t\t$booking->zoho_update = 1;\n\t\t\t} else {\n\t\t\t\t$booking->zoho_update = 0;\n\t\t\t}\n\n\t\t\t$reservationDetailsAttr = $this->reservationDetails->getByReservationId($unconfirmedBookings->id);\n\t\t\t$booking->special_request = (isset($reservationDetailsAttr['attributes']['special_request']) ? $reservationDetailsAttr['attributes']['special_request'] : \"\");\n\t\t\t$booking->gift_card_id = (isset($reservationDetailsAttr['attributes']['gift_card_id_reserv']) ? $reservationDetailsAttr['attributes']['gift_card_id_reserv'] : \"\");\n\t\t\t$booking->outlet = (isset($reservationDetailsAttr['attributes']['outlet']) ? $reservationDetailsAttr['attributes']['outlet'] : \"\");\n\t\t\t$booking->reserv_type = $reservationDetailsAttr['attributes']['reserv_type'];\n\n\t\t\t$reservCarbonDate = Carbon::createFromFormat('Y-m-d H:i:s',$reservationDetailsAttr['attributes']['reserv_datetime']);\n\t\t\t$booking->bdate = $reservCarbonDate->format('d-m-Y');\n\t\t\t$booking->btime = $reservCarbonDate->format('h:i A');\n\t\t\t//echo $unconfirmedBookings->id.\"<pre>\".print_r($reservationDetailsAttr['attributes']['zoho_booking_cancelled']);\n\t\t\t//echo $unconfirmedBookings->id;\n\t\t\tif(!isset($reservationDetailsAttr['attributes']['zoho_booking_update'])){\n\t\t\t\t$un_bookings[$count] = $booking;\n\t\t\t}\n\t\t\t//$un_bookings[$count] = $booking;\n\t\t\t//print_r($booking);die;\n\n\t\t\t$count++;\n\n\n\t\t}\n\t\t//die;\n\t\t//post reservation bookings\n\t\t$statusCancelledNew = DB::select(DB::raw('select * from reservation_status_log having new_reservation_status_id in (6) and created_at in (SELECT MAX(created_at) FROM reservation_status_log group by reservation_id)'));\n\t\t$reservationIdArr = array();\n\t\tforeach($statusCancelledNew as $reservId){\n\t\t\t$reservationIdArr[] = $reservId->reservation_id;\n\t\t}\n\n\t\t$reservStatusArr = $this->reservationDetails->getReservationStatus($reservationIdArr,[6]);\n\t\t//print_r($reservStatusArr);die;\n\n\t\tforeach (ReservationDetails::with('experience','vendor_location.vendor','vendor_location.address.city_name','attributesDatetime')\n\t\t\t\t\t /*->with(['reservationStatus' => function($query)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$query->whereIn('reservation_statuses.id',[1,2,7])\n\t\t\t\t\t\t\t\t\t ->orderBy('reservation_statuses.id','desc')\n\t\t\t\t\t\t\t\t\t ->select(DB::raw('reservation_statuses.*, user_id'));\n\n\t\t\t\t\t }])*/\n\t\t\t\t\t ->where('vendor_location_id','!=','0')\n\t\t\t\t\t ->where('vendor_location_id','!=','54')\n\t\t\t\t\t ->whereIn('id',$reservationIdArr)\n\t\t\t\t\t ->where('reservation_date','=',Carbon::yesterday()->format('Y-m-d'))\n\t\t\t\t\t ->where('created_at','>=','2015-10-12 15:20:00')\n\t\t\t\t\t ->orderBy('reservation_details.created_at','desc')->get() as $postBookings)\n\t\t{\n\t\t\t//print_r($unconfirmedBookings->attributesDatetime->attribute_value);die;\n\t\t\t$booking = new \\stdClass();\n\t\t\t$booking->id = $postBookings->id;\n\t\t\t/*$reservCarbonDate = Carbon::createFromFormat('Y-m-d H:i:s',$postBookings->attributesDatetime->attribute_value);\n\t\t\t$booking->bdate = $reservCarbonDate->format('d-m-Y');\n\t\t\t$booking->btime = $reservCarbonDate->format('h:i A');*/\n\t\t\tif($postBookings->product_id == 0){\n\t\t\t\t$booking->name = \"Classic Reservation\";\n\t\t\t} else {\n\t\t\t\t$booking->name = $postBookings->experience->name;\n\t\t\t}\n\t\t\t$booking->cust_name = $postBookings->guest_name;\n\t\t\t$booking->restaurant_name = $postBookings->vendor_location->vendor->name;\n\t\t\tif(empty($postBookings->vendor_location->address->city_name)){\n\t\t\t\t$booking->city = \"\";\n\t\t\t} else {\n\t\t\t\t$booking->city = $postBookings->vendor_location->address->city_name->name;\n\t\t\t}\n\t\t\t//$reservStatus = $unconfirmedBookings->reservationStatus->first();\n\t\t\t//dd($reservStatus->status);\n\t\t\t$booking->email = $postBookings->guest_email;\n\t\t\t$booking->phone_no = $postBookings->guest_phone;\n\t\t\t$booking->no_of_persons = $postBookings->no_of_persons;\n\t\t\t//$booking->status = $reservStatus->status;\n\t\t\t$userModel = User::find($postBookings->user_id);\n\t\t\t$booking->lastmodified = $userModel->role->name;\n\t\t\t$booking->user_id = $postBookings->user_id;\n\n\t\t\t$statusArr = $this->reservStatuses;\n\t\t\t$statusKey = array_search($reservStatusArr[$postBookings->id],$statusArr);\n\t\t\t//echo $statusKey.\"<br/>\";\n\t\t\tif($statusKey != -1){\n\t\t\t\tunset($statusArr[$statusKey]);\n\t\t\t}\n\t\t\t//echo $reservStatusArr[$unconfirmedBookings->id];\n\t\t\t$booking->reserv_status = $reservStatusArr[$postBookings->id][0];\n\t\t\t$booking->reservation_status_id = $reservStatusArr[$postBookings->id][1];\n\t\t\t$booking->statusArr = $statusArr;\n\n\t\t\tif($reservStatusArr[$postBookings->id][1] == 6){\n\t\t\t\t$booking->zoho_update = 1;\n\t\t\t} else {\n\t\t\t\t$booking->zoho_update = 0;\n\t\t\t}\n\n\t\t\t$reservationDetailsAttr = $this->reservationDetails->getByReservationId($postBookings->id);\n\t\t\t$booking->special_request = (isset($reservationDetailsAttr['attributes']['special_request']) ? $reservationDetailsAttr['attributes']['special_request'] : \"\");\n\t\t\t$booking->gift_card_id = (isset($reservationDetailsAttr['attributes']['gift_card_id_reserv']) ? $reservationDetailsAttr['attributes']['gift_card_id_reserv'] : \"\");\n\t\t\t$booking->outlet = (isset($reservationDetailsAttr['attributes']['outlet']) ? $reservationDetailsAttr['attributes']['outlet'] : \"\");\n\t\t\t$booking->reserv_type = $reservationDetailsAttr['attributes']['reserv_type'];\n\n\t\t\t$reservCarbonDate = Carbon::createFromFormat('Y-m-d H:i:s',$reservationDetailsAttr['attributes']['reserv_datetime']);\n\t\t\t$booking->bdate = $reservCarbonDate->format('d-m-Y');\n\t\t\t$booking->btime = $reservCarbonDate->format('h:i A');\n\t\t\t//print_r($booking);die;\n\t\t\t$postReservation[$count] = $booking;\n\t\t\t$count++;\n\n\n\t\t}\n\n\n\n\n\t\t$statusCancelledNew = DB::select(DB::raw('select * from reservation_status_log having new_reservation_status_id in (1,2,3,4,5,6,7,8) and created_at in (SELECT MAX(created_at) FROM reservation_status_log group by reservation_id)'));\n\t\t$reservationIdArr = array();\n\t\tforeach($statusCancelledNew as $reservId){\n\t\t\t$reservationIdArr[] = $reservId->reservation_id;\n\t\t}\n\t\t$reservStatusArr = $this->reservationDetails->getReservationStatus($reservationIdArr,[1,2,3,4,5,6,7,8]);\n\t\tforeach (ReservationDetails::with('experience','vendor_location.vendor','vendor_location.address.city_name','attributesDatetime')\n\t\t\t\t\t /*->with(['reservationStatus' => function($query)\n\t\t\t\t\t {\n\t\t\t\t\t\t $query->whereIn('status',[3,8,6])\n\t\t\t\t\t\t\t ->orderBy('reservation_statuses.id','desc')\n\t\t\t\t\t\t\t ->select(DB::raw('reservation_statuses.*, user_id'));\n\n\t\t\t\t\t }])*/\n\t\t\t ->with(['attributesInteger' => function($query){\n\t\t\t\t\t\t $query->where('reservation_attribute_id',function($q1){\n\t\t\t\t\t\t\t \t\t$q1->select('id')\n\t\t\t\t\t\t\t\t\t ->from('reservation_attributes')\n\t\t\t\t\t\t\t\t\t ->where('alias','=','order_completed');\n\t\t\t\t\t\t });\n\n\t\t\t\t\t }])\n\t\t\t\t\t ->where('vendor_location_id','!=','0')\n\t\t\t\t\t ->where('vendor_location_id','!=','54')\n\t\t\t\t\t ->whereIn('id',$reservationIdArr)\n\t\t\t\t\t ->where('created_at','>=','2015-10-12 15:20:00')\n\t\t\t\t\t ->orderBy('created_at','desc')->get() as $allbookings)\n\t\t{\n\n\n\t\t\t$booking = new \\stdClass();\n\t\t\t$booking->id = $allbookings->id;\n\t\t\t//print_r($allbookings);\n\t\t\t//echo \"<br/><br/>\";\n\t\t\t/*$reservCarbonDate = Carbon::createFromFormat('Y-m-d H:i:s',$allbookings->attributesDatetime->attribute_value);\n\t\t\t$booking->bdate = $reservCarbonDate->format('d-m-Y');\n\t\t\t$booking->btime = $reservCarbonDate->format('h:i A');*/\n\t\t\tif($allbookings->product_id == 0){\n\t\t\t\t$booking->name = \"Classic Reservation\";\n\t\t\t} else {\n\t\t\t\t$booking->name = $allbookings->experience->name;\n\t\t\t}\n\t\t\t$booking->cust_name = $allbookings->guest_name;\n\t\t\t$booking->restaurant_name = $allbookings->vendor_location->vendor->name;\n\t\t\tif(empty($allbookings->vendor_location->address->city_name)){\n\t\t\t\t$booking->city = \"\";\n\t\t\t} else {\n\t\t\t\t$booking->city = $allbookings->vendor_location->address->city_name->name;\n\t\t\t}\n\t\t\t//$reservStatus = $allbookings->reservationStatus->first();\n\t\t\t//dd($reservStatus);\n\t\t\t$booking->email = $allbookings->guest_email;\n\t\t\t$booking->phone_no = $allbookings->guest_phone;\n\t\t\t$booking->no_of_persons = $allbookings->no_of_persons;\n\t\t\t//$booking->status = $reservStatus->status;\n\t\t\t$userModel = User::find($allbookings->user_id);\n\t\t\t$booking->lastmodified = $userModel->role->name;\n\t\t\t$booking->user_id = $allbookings->user_id;\n\n\t\t\tif(!$allbookings->attributesInteger->isEmpty()){\n\t\t\t\t$booking->order_completed = 1;\n\t\t\t} else {\n\t\t\t\t$booking->order_completed = 0;\n\t\t\t}\n\n\t\t\t$statusArr = $this->reservStatuses;\n\t\t\t$statusKey = array_search($reservStatusArr[$allbookings->id],$statusArr);\n\t\t\tif($statusKey != -1){\n\t\t\t\tunset($statusArr[$statusKey]);\n\t\t\t}\n\t\t\t$booking->reserv_status = $reservStatusArr[$allbookings->id][0];\n\t\t\t$booking->statusArr = $statusArr;\n\n\t\t\t$reservationDetailsAttr = $this->reservationDetails->getByReservationId($allbookings->id);\n\t\t\t$booking->special_request = (isset($reservationDetailsAttr['attributes']['special_request']) ? $reservationDetailsAttr['attributes']['special_request'] : \"\");\n\t\t\t$booking->gift_card_id = (isset($reservationDetailsAttr['attributes']['gift_card_id_reserv']) ? $reservationDetailsAttr['attributes']['gift_card_id_reserv'] : \"\");\n\t\t\t$booking->outlet = (isset($reservationDetailsAttr['attributes']['outlet']) ? $reservationDetailsAttr['attributes']['outlet'] : \"\");\n\t\t\t$booking->reserv_type = $reservationDetailsAttr['attributes']['reserv_type'];\n\t\t\t$reservCarbonDate = Carbon::createFromFormat('Y-m-d H:i:s',$reservationDetailsAttr['attributes']['reserv_datetime']);\n\t\t\t$booking->bdate = $reservCarbonDate->format('d-m-Y');\n\t\t\t$booking->btime = $reservCarbonDate->format('h:i A');\n\t\t\t$bookings[$count] = $booking;\n\t\t\t$count++;\n\n\t\t\t//var_dump();\n\n\n\t\t}\n\t\t//die;\n\t\t//today's bookings\n\n\t\t$statusCancelledNew = DB::select(DB::raw('select rd.id as id from reservation_details as rd left join reservation_attributes_date as rad on rd.id = rad.reservation_id where DATE(rad.attribute_value) = \\''.Carbon::now()->format('Y-m-d').'\\''));\n\t\t$reservationIdArr = array();\n\t\tforeach($statusCancelledNew as $reservId){\n\t\t\t$reservationIdArr[] = $reservId->id;\n\t\t}\n\t\t$reservStatusArr = $this->reservationDetails->getReservationStatus($reservationIdArr,[1,2,3,6,7,8]);\n\t\tforeach (ReservationDetails::with('experience','vendor_location.vendor','vendor_location.address.city_name','attributesDatetime')\n\t\t\t\t\t /*->with(['reservationStatus' => function($query)\n\t\t\t\t\t {\n\t\t\t\t\t\t $query->whereIn('status',[1,2,3,6,7,8])\n\t\t\t\t\t\t\t ->orderBy('reservation_statuses.id','desc')\n\t\t\t\t\t\t\t ->select(DB::raw('reservation_statuses.*, user_id'));\n\n\t\t\t\t\t }])*/\n\t\t\t\t\t ->where('vendor_location_id','!=','0')\n\t\t\t\t\t ->where('vendor_location_id','!=','54')\n\t\t\t\t\t ->whereIn('id',$reservationIdArr)\n\t\t\t\t\t //->whereRaw(\"reservation_date = '\".date('Y-m-d').\"'\")\n\t\t\t\t\t ->where('created_at','>=','2015-10-12 15:20:00')\n\t\t\t\t\t ->orderBy('created_at','desc')->get() as $today)\n\t\t{\n\n\n\t\t\t$booking = new \\stdClass();\n\t\t\t$booking->id = $today->id;\n\t\t\t/*$reservCarbonDate = Carbon::createFromFormat('Y-m-d H:i:s',$today->attributesDatetime->attribute_value);\n\t\t\t$booking->bdate = $reservCarbonDate->format('d-m-Y');\n\t\t\t$booking->btime = $reservCarbonDate->format('h:i A');*/\n\t\t\tif($today->product_id == 0){\n\t\t\t\t$booking->name = \"Classic Reservation\";\n\t\t\t} else {\n\t\t\t\t$booking->name = $today->experience->name;\n\t\t\t}\n\t\t\t$booking->cust_name = $today->guest_name;\n\t\t\t$booking->restaurant_name = $today->vendor_location->vendor->name;\n\t\t\tif(empty($today->vendor_location->address->city_name)){\n\t\t\t\t$booking->city = \"\";\n\t\t\t} else {\n\t\t\t\t$booking->city = $today->vendor_location->address->city_name->name;\n\t\t\t}\n\t\t\t//$reservStatus = $today->reservationStatus->first();\n\t\t\t//dd($reservStatus);\n\t\t\t$booking->email = $today->guest_email;\n\t\t\t$booking->phone_no = $today->guest_phone;\n\t\t\t$booking->no_of_persons = $today->no_of_persons;\n\t\t\t//$booking->status = $reservStatus->status;\n\t\t\t$userModel = User::find($today->user_id);\n\t\t\t$booking->lastmodified = $userModel->role->name;\n\t\t\t$booking->user_id = $today->user_id;\n\n\t\t\t$statusArr = $this->reservStatuses;\n\t\t\t$statusKey = array_search($reservStatusArr[$today->id],$statusArr);\n\t\t\tif($statusKey != -1){\n\t\t\t\tunset($statusArr[$statusKey]);\n\t\t\t}\n\t\t\t$booking->reserv_status = $reservStatusArr[$today->id][0];\n\t\t\t$booking->statusArr = $statusArr;\n\n\t\t\t$reservationDetailsAttr = $this->reservationDetails->getByReservationId($today->id);\n\t\t\t$booking->special_request = (isset($reservationDetailsAttr['attributes']['special_request']) ? $reservationDetailsAttr['attributes']['special_request'] : \"\");\n\t\t\t$booking->gift_card_id = (isset($reservationDetailsAttr['attributes']['gift_card_id_reserv']) ? $reservationDetailsAttr['attributes']['gift_card_id_reserv'] : \"\");\n\t\t\t$booking->outlet = (isset($reservationDetailsAttr['attributes']['outlet']) ? $reservationDetailsAttr['attributes']['outlet'] : \"\");\n\t\t\t$booking->reserv_type = $reservationDetailsAttr['attributes']['reserv_type'];\n\t\t\t$reservCarbonDate = Carbon::createFromFormat('Y-m-d H:i:s',$reservationDetailsAttr['attributes']['reserv_datetime']);\n\t\t\t$booking->bdate = $reservCarbonDate->format('d-m-Y');\n\t\t\t$booking->btime = $reservCarbonDate->format('h:i A');\n\t\t\t$todayBookings[$count] = $booking;\n\t\t\t$count++;\n\n\t\t\t//print_r($today);\n\t\t}\n\n\n\t\t//die;\n\n\t\treturn view('admin.bookings.index')->with('un_bookings',$un_bookings)\n\t\t\t\t\t\t\t\t\t\t ->with('post_bookings',$postReservation)\n\t\t\t\t\t\t\t\t\t\t ->with('bookings',$bookings)\n\t\t\t \t\t\t\t\t ->with('todaysbookings',$todayBookings);\n\t}", "title": "" }, { "docid": "c6bdb18dee5c613518009e586cd08bb8", "score": "0.53712636", "text": "public function bookingAction() {\n\n \t$params = $this->_getAllParams();\n\t\t/*$user = new Zend_Session_Namespace('user');\n\t\t$params[\"user_id\"] = $user->userId ;*/\n/*echo \"<pre>\";\nprint_r($params);\necho \"</pre>\";\ndie;*/\n\t\t// $to = \"[email protected]\";\n\t\t$to = \"[email protected]\";\n \t$frm = $params[\"email\"];\n \t\t$mail = new Zend_Mail();\n\n\t\t\t$mail->setBodyHtml(\"New order, <br> Your new order / Inquiry as below:<br><br> Customer Email is : \".$params[\"email\"].\"<br> Customer Phone no is : \".$params[\"phone\"].\"<br><br> <a href='\".HTTP_PATH.\"/admin/' >Click here</a> to find more detail in your admin panel under order management sidebar link. <br><br>Thank You,<br>\".$params[\"email\"].\"<br>\".$params[\"phone\"].\"\");\n\t\t\t// $mail->setBodyHtml(\"DEAR romy,<br> Your new order\");\n\t\t\t$mail->setFrom($frm, 'indiatripholiday(indiatripholiday.com)');\n\t\t\t$mail->addTo($to, \"Romy\");\n\t\t\t$mail->setSubject('Your new Order');\n\t\t\t$mail->send();\n \t\n \t$InquiriesObj = new Inquiries();\n \t$InquiriesObj->saveInquiry($params); \t\t\n \t \t\n\n\t \t$flash = $this->_helper->getHelper('FlashMessenger');\n\t \t$message = $this->view->translate('You has been request submitted successfully. Agent will contect via phone call or email about your booking');\n\t \t$flash->addMessage(array('success' => $message ));\n\t \t$this->_redirect(HTTP_PATH.'index/booknow');\n\t \t// $this->_redirect('https://www.instamojo.com/@sarthee22');\n\t \texit;\n }", "title": "" }, { "docid": "ccb7d02b28549e19fcc439a41b4f60b1", "score": "0.536679", "text": "function Itens() {\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 // Recupera os dados da solicitacao\r\n $sql = new db_getMtMovim; $RS_Solic = $sql->getInstanceOf($dbms,$w_cliente,$w_usuario,$SG,3,\r\n null,null,null,null,null,null,null,null,null,null,$w_chave,null,null,null,null,null,null,\r\n null,null,null,null,null,null,null,null,null,null,null);\r\n foreach($RS_Solic as $row){$RS_Solic=$row; break;}\r\n \r\n // Se pelo menos um item está ligado a uma compra ou contrato, não permite incluir nem excluir.\r\n // Também impede alteração dos dados importados da compra ou contrato\r\n $sql = new db_getMtEntItem; $RS = $sql->getInstanceOf($dbms,$w_cliente,$w_chave,null,null,null,null,null,null,null,null,null,null,null,null,null);\r\n $w_edita = true;\r\n foreach($RS as $row) {\r\n if (nvl(f($row,'sq_solicitacao_item'),'')!='') $w_edita = false;\r\n }\r\n \r\n if ($w_troca>'' && $O <> 'E') {\r\n $w_nome = $_REQUEST['w_nome'];\r\n $w_material = $_REQUEST['w_material'];\r\n $w_ordem = $_REQUEST['w_ordem'];\r\n $w_quantidade = $_REQUEST['w_quantidade'];\r\n $w_valor = $_REQUEST['w_valor'];\r\n $w_validade = $_REQUEST['w_validade'];\r\n $w_fabricacao = $_REQUEST['w_fabricacao'];\r\n $w_fator = $_REQUEST['w_fator'];\r\n $w_vida_util = $_REQUEST['w_vida_util'];\r\n $w_lote = $_REQUEST['w_lote'];\r\n $w_fabricante = $_REQUEST['w_fabricante'];\r\n $w_modelo = $_REQUEST['w_modelo'];\r\n $w_material_nm = $_REQUEST['w_material_nm'];\r\n } elseif (strpos('LI',$O)!==false) {\r\n $sql = new db_getMtEntItem; $RS = $sql->getInstanceOf($dbms,$w_cliente,$w_chave,null,null,null,null,null,null,null,null,null,null,null,null,null);\r\n $RS = SortArray($RS,'ordem','asc','nome','asc'); \r\n $w_proximo = count($RS)+1;\r\n } elseif (strpos('AE',$O)!==false) {\r\n $sql = new db_getMtEntItem; $RS = $sql->getInstanceOf($dbms,$w_cliente,$w_chave,$w_chave_aux,null,null,null,null,null,null,null,null,null,null,null,null);\r\n foreach ($RS as $row) {$RS = $row; break;}\r\n $w_almoxarifado = f($RS,'sq_almoxarifado');\r\n $w_situacao = f($RS,'sq_sit_item');\r\n $w_material = f($RS,'sq_material');\r\n $w_material_nm = f($RS,'nome');\r\n $w_ordem = f($RS,'ordem');\r\n $w_quantidade = formatNumber(f($RS,'quantidade'),0);\r\n $w_valor = formatNumber(f($RS,'valor_total'),2);\r\n $w_fator = f($RS,'fator_embalagem');\r\n $w_validade = formataDataEdicao(f($RS,'validade'));\r\n $w_fabricacao = formataDataEdicao(f($RS,'fabricacao'));\r\n $w_vida_util = f($RS,'vida_util');\r\n $w_lote = f($RS,'lote_numero');\r\n $w_fabricante = f($RS,'marca');\r\n $w_modelo = f($RS,'modelo');\r\n } \r\n\r\n // Recupera informações sobre o tipo do material ou serviço\r\n if (nvl($w_material,'')!='') {\r\n $sql = new db_getMatServ; $RS_Mat = $sql->getInstanceOf($dbms,$w_cliente,$w_usuario,$w_material,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);\r\n foreach ($RS_Mat as $row) { $RS_Mat = $row; break; }\r\n $w_classe = f($RS_Mat,'classe');\r\n $w_nm_classe = f($RS_Mat,'nm_classe');\r\n\r\n // Recupera o código da situação inicial da movimentação\r\n $sql = new db_getMtSituacao; $RS_Sit = $sql->getInstanceOf($dbms,$w_cliente,(($w_classe==4) ? 'ENTMATPER' : 'ENTMATCON'),null,'S',null,null);\r\n if (count($RS_Sit)==0) {\r\n ScriptOpen('JavaScript');\r\n ShowHTML(' alert(\"ATENÇÃO: A tabela de situações precisa ser carrregada com pelo menos um registro relativo a entrada de material!\");');\r\n retornaFormulario('w_tipo');\r\n ScriptClose();\r\n exit();\r\n } else {\r\n $RS_Sit = SortArray($RS_Sit,'sigla','asc');\r\n foreach($RS_Sit as $row){ $RS_Sit=$row; break;}\r\n $w_situacao = f($RS_Sit,'chave');\r\n }\r\n \r\n } \r\n\r\n Cabecalho();\r\n head();\r\n ShowHTML('<TITLE>'.f($RS_Menu,'nome').' - Itens</TITLE>');\r\n Estrutura_CSS($w_cliente);\r\n Estrutura_CSS($w_cliente);\r\n if (strpos('IA',$O)!==false) {\r\n ScriptOpen('JavaScript');\r\n checkBranco();\r\n FormataValor();\r\n FormataData();\r\n ValidateOpen('Validacao');\r\n if ($w_edita) {\r\n Validate('w_ordem','Ordem','1','1','1','4','','0123456789');\r\n CompValor('w_ordem','Ordem','>','0','1'); \r\n Validate('w_nome','Nome','1','','3','30','1','1');\r\n Validate('w_material','Material/Serviço','SELECT','1','1','18','','1');\r\n }\r\n if (nvl($w_material,'')=='') {\r\n ShowHTML(' theForm.Botao[0].disabled=true;');\r\n ShowHTML(' theForm.Botao[1].disabled=true;');\r\n } else {\r\n if ($w_edita) {\r\n Validate('w_quantidade','Quantidade','1','1','1','18','','1');\r\n CompValor('w_quantidade','Quantidade','>','0','1'); \r\n Validate('w_valor','Valor total','VALOR','1','4','18','','0123456789.,');\r\n CompValor('w_valor','Valor total','>','0','zero');\r\n }\r\n if ($w_classe==1||$w_classe==2||$w_classe==3) {\r\n Validate('w_validade','Data de validade','DATA',1,10,10,'','0123456789/');\r\n CompData('w_validade','Data de validade','>=',formataDataEdicao(time()),'Data atual');\r\n if ($w_edita) {\r\n Validate('w_fator','Embalagem','1','1',1,4,'','0123456789');\r\n CompValor('w_fator','Fator de embalagem','>','0','0');\r\n }\r\n } elseif ($w_classe==4) {\r\n Validate('w_vida_util','Vida útil','1','1',1,4,'','0123456789');\r\n CompValor('w_vida_util','Vida útil','>','0','0');\r\n }\r\n if ($w_classe==1) {\r\n Validate('w_lote','Lote nr','','',1,20,'1','1');\r\n Validate('w_fabricacao','Data de fabricação','DATA',1,10,10,'','0123456789/');\r\n CompData('w_fabricacao','Data de fabricação','<',formataDataEdicao(time()),'Data atual');\r\n }\r\n if ($w_classe!=4) {\r\n Validate('w_fabricante','Marca','1','1',2,50,'1','1');\r\n } else {\r\n Validate('w_fabricante','Fabricante','1','1',2,50,'1','1');\r\n Validate('w_modelo','Marca/Modelo','1','1',2,50,'1','1');\r\n }\r\n Validate('w_almoxarifado','Almoxarifado','SELECT','1','1','18','','1');\r\n ShowHTML(' theForm.Botao[0].disabled=true;');\r\n ShowHTML(' theForm.Botao[1].disabled=true;');\r\n if ($O=='I') ShowHTML(' theForm.Botao[2].disabled=true;');\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=='L' || !$w_edita) {\r\n BodyOpen('onLoad=\"this.focus();\"');\r\n } elseif (strpos('IA',$O)!==false) {\r\n BodyOpen('onLoad=\"document.Form.w_ordem.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 // Exibe os dados da solicitação\r\n ShowHTML('<table border=1 width=\"100%\" bgcolor=\"#FAEBD7\"><tr><td>');\r\n ShowHTML(' <TABLE WIDTH=\"100%\" CELLSPACING=\"'.$conTableCellSpacing.'\" CELLPADDING=\"'.$conTableCellPadding.'\" BorderColorDark=\"'.$conTableBorderColorDark.'\" BorderColorLight=\"'.$conTableBorderColorLight.'\">');\r\n ShowHTML(' <tr><td><table border=0 width=\"100%\">');\r\n ShowHTML(' <tr valign=\"top\">');\r\n ShowHTML(' <td>Tipo: <b>'.f($RS_Solic,'nm_tp_mov').'</b></td>');\r\n ShowHTML(' <td colspan=2>Situação: <b>'.f($RS_Solic,'nm_sit').'</b></td>');\r\n ShowHTML(' </tr>');\r\n ShowHTML(' <tr><td colspan=3>Fornecedor: <b>'.ExibePessoa('../',$w_cliente,f($RS_Solic,'sq_fornecedor'),$TP,f($RS_Solic,'nm_fornecedor')).'</b></td></tr>');\r\n ShowHTML(' <tr valign=\"top\">');\r\n ShowHTML(' <td>Documento:<br><b>'.f($RS_Solic,'nm_tp_doc').' '.f($RS_Solic,'nr_doc').'</b></td>');\r\n ShowHTML(' <td>Data:<br><b>'.formataDataEdicao(f($RS_Solic,'dt_doc'),5).'</b></td>');\r\n ShowHTML(' <td>Valor:<br><b>'.formatNumber(f($RS_Solic,'vl_doc')).'</b></td>');\r\n ShowHTML(' </tr>');\r\n if (!$w_edita && $O!='L') {\r\n ShowHTML(' <tr><td colspan=3><hr>Item: <b>'.$w_ordem.' - '.$w_material_nm.'</b></td></tr>');\r\n ShowHTML(' <tr valign=\"top\">');\r\n ShowHTML(' <td>Quantidade:<br><b>'.$w_quantidade.'</b></td>');\r\n ShowHTML(' <td>Valor:<br><b>'.$w_valor.'</b></td>');\r\n ShowHTML(' <td>Fator de embalagem:<br><b>'.$w_fator.'</b></td>');\r\n ShowHTML(' </tr>');\r\n }\r\n ShowHTML(' </table>');\r\n ShowHTML(' </TABLE>');\r\n ShowHTML('</table>');\r\n\r\n if ($w_filtro > '') ShowHTML($w_filtro);\r\n ShowHTML('<table border=\"0\" width=\"100%\">');\r\n\r\n if ($O=='L') {\r\n unset($w_classes);\r\n foreach($RS as $row) $w_classes[f($row,'classe')] = 1;\r\n reset($RS);\r\n $colspan = 0;\r\n ShowHTML('<tr><td>');\r\n if ($w_edita) ShowHTML(' <a accesskey=\"I\" class=\"SS\" href=\"'.$w_dir.$w_pagina.$par.'&R='.$w_pagina.$par.'&O=I&w_menu='.$w_menu.'&w_chave='.$w_chave.'&P1='.$P1.'&P2='.$P2.'&P3=1&P4='.$P4.'&TP='.$TP.'&SG='.$SG.MontaFiltro('GET').'\"><u>I</u>ncluir</a>&nbsp;');\r\n ShowHTML(' <a accesskey=\"F\" class=\"ss\" href=\"javascript:this.status.value;\" onClick=\"parent.$.fancybox.close();\"><u>F</u>echar</a>&nbsp;');\r\n ShowHTML(' <td align=\"right\"><b>'.exportaOffice().'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 rowspan=2><b>'.LinkOrdena('Item','ordem').'</td>');\r\n ShowHTML(' <td rowspan=2><b>'.LinkOrdena('Nome','nome').'</td>');\r\n if (!$w_classes[4]) {\r\n ShowHTML(' <td rowspan=2><b>'.LinkOrdena('Marca','marca').'</td>');\r\n } elseif (!$w_classes[1] && !$w_classes[2] && !$w_classes[3] && $w_classes[4]) {\r\n ShowHTML(' <td rowspan=2><b>'.LinkOrdena('Fabricante','marca').'</td>');\r\n } elseif (($w_classes[1] || $w_classes[2] || $w_classes[3]) && $w_classes[4]) {\r\n ShowHTML(' <td rowspan=2><b>'.LinkOrdena('Fabricante / marca','marca').'</td>');\r\n }\r\n if ($w_classes[4]) {\r\n ShowHTML(' <td rowspan=2><b>'.LinkOrdena('Modelo','modelo').'</td>');\r\n $colspan++;\r\n ShowHTML(' <td rowspan=2><b>'.LinkOrdena('Vida útil','vida_util').'</td>');\r\n $colspan++;\r\n }\r\n if ($w_classes[1]) {\r\n ShowHTML(' <td rowspan=2><b>'.LinkOrdena('Lote','lote_numero').'</td>');\r\n ShowHTML(' <td rowspan=2><b>'.LinkOrdena('Fabricação','fabricacao').'</td>');\r\n $colspan += 2;\r\n }\r\n if ($w_classes[1] || $w_classes[2] || $w_classes[3]) {\r\n ShowHTML(' <td rowspan=2><b>'.LinkOrdena('Validade','validade').'</td>');\r\n ShowHTML(' <td rowspan=2><b>'.LinkOrdena('Fator<br>Embal.','fator_embalagem').'</td>');\r\n ShowHTML(' <td rowspan=2><b>'.LinkOrdena('U.M.','sg_unidade_medida').'</td>');\r\n $colspan += 3;\r\n }\r\n ShowHTML(' <td rowspan=2><b>'.LinkOrdena('Qtd','quantidade').'</td>');\r\n ShowHTML(' <td colspan=2><b>Valores</td>');\r\n ShowHTML(' <td rowspan=2 class=\"remover\"><b>Operações</td>');\r\n ShowHTML(' </tr>');\r\n ShowHTML(' <tr bgcolor=\"'.$conTrBgColor.'\" align=\"center\">');\r\n ShowHTML(' <td><b>'.LinkOrdena('Unit.','valor_unitario').'</td>');\r\n ShowHTML(' <td><b>'.LinkOrdena('Total','valor_total').'</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=9 align=\"center\"><b>Não foram encontrados registros.</b></td></tr>');\r\n } else {\r\n // Lista os registros selecionados para listagem\r\n $w_total = 0;\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 align=\"center\">'.f($row,'ordem').'</td>');\r\n ShowHTML(' <td>'.ExibeMaterial($w_dir_volta,$w_cliente,f($row,'nome'),f($row,'sq_material'),$TP,null).'</td>');\r\n ShowHTML(' <td>'.f($row,'marca').'</td>');\r\n if ($w_classes[4]) {\r\n ShowHTML(' <td>'.nvl(f($row,'modelo'),'&nbsp;').'</td>');\r\n ShowHTML(' <td align=\"center\">'.nvl(f($row,'vida_util'),'&nbsp').'</td>');\r\n }\r\n if ($w_classes[1]) {\r\n ShowHTML(' <td align=\"center\">'.nvl(formataDataEdicao(f($row,'lote_numero'),5),'&nbsp;').'</td>');\r\n ShowHTML(' <td align=\"center\">'.nvl(formataDataEdicao(f($row,'fabricacao'),5),'&nbsp;').'</td>');\r\n }\r\n if ($w_classes[1] || $w_classes[2] || $w_classes[3]) {\r\n ShowHTML(' <td align=\"center\">'.nvl(formataDataEdicao(f($row,'validade'),5),'&nbsp;').'</td>');\r\n ShowHTML(' <td align=\"center\">'.((f($row,'classe')==1||f($row,'classe')==3) ? f($row,'fator_embalagem') : '&nbsp;').'</td>');\r\n ShowHTML(' <td align=\"center\" title=\"'.f($row,'nm_unidade_medida').'\">'.f($row,'sg_unidade_medida').'</td>');\r\n }\r\n ShowHTML(' <td align=\"right\">'.formatNumber(f($row,'quantidade'),0).'</td>');\r\n ShowHTML(' <td align=\"right\">'.formatNumber(f($row,'valor_unitario'),10).'</td>');\r\n ShowHTML(' <td align=\"right\">'.formatNumber(f($row,'valor_total')).'</td>');\r\n ShowHTML(' <td align=\"top\" nowrap class=\"remover\">');\r\n ShowHTML(' <A class=\"HL\" HREF=\"'.$w_dir.$w_pagina.$par.'&R='.$w_pagina.$par.'&O=A&w_menu='.$w_menu.'&w_chave='.$w_chave.'&w_chave_aux='.f($row,'sq_entrada_item').'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.'\" title=\"Alterar\">AL</A>&nbsp');\r\n if ($w_edita) ShowHTML(' <A class=\"HL\" HREF=\"'.$w_dir.$w_pagina.'Grava&R='.$w_pagina.$par.'&O=E&w_menu='.$w_menu.'&w_chave='.$w_chave.'&w_chave_aux='.f($row,'sq_entrada_item').'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.'\" title=\"Excluir\" onClick=\"return confirm(\\'Confirma a exclusão do registro?\\');\">EX</A>&nbsp');\r\n ShowHTML(' </td>');\r\n ShowHTML(' </tr>');\r\n $w_total += f($row,'valor_total');\r\n }\r\n if (count($RS)>1) ShowHTML(' <tr bgcolor=\"'.$w_cor.'\" valign=\"top\"><td colspan=\"'.(5+$colspan).'\" align=\"right\"><b>Total dos itens</b><td align=\"right\">'.formatNumber($w_total).'<td>&nbsp;</td></tr>');\r\n } \r\n ShowHTML(' </table>');\r\n ShowHTML(' </td>');\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,$R,$O);\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_menu\" value=\"'.$w_menu.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_situacao\" value=\"'.$w_situacao.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_material_nm\" value=\"'.$w_material_nm.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_troca\" value=\"\">');\r\n if (!$w_edita) {\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_ordem\" value=\"'.$w_ordem.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_material\" value=\"'.$w_material.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_quantidade\" value=\"'.$w_quantidade.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_valor\" value=\"'.$w_valor.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_fator\" value=\"'.$w_fator.'\">');\r\n }\r\n ShowHTML('<tr bgcolor=\"'.$conTrBgColor.'\"><td align=\"center\">');\r\n ShowHTML(' <table width=\"97%\" border=\"0\">');\r\n ShowHTML(' <tr><td><table border=0 width=\"100%\" cellspacing=0><tr valign=\"top\">');\r\n if ($w_edita) {\r\n ShowHTML(' <tr valign=\"top\">');\r\n ShowHTML(' <td><b><u>I</u>tem número:</b><br><input accesskey=\"I\" type=\"text\" name=\"w_ordem\" class=\"STI\" SIZE=\"5\" MAXLENGTH=\"4\" VALUE=\"'.nvl($w_ordem,$w_proximo).'\" '.$w_Disabled.' style=\"text-align:center;\"></td>');\r\n ShowHTML(' <td colspan=3><b><u>N</u>ome do material:</b><br><input '.$p_Disabled.' accesskey=\"N\" type=\"text\" name=\"w_nome\" class=\"sti\" SIZE=\"40\" MAXLENGTH=\"100\" VALUE=\"'.$w_nome.'\">');\r\n ShowHTML(' <input class=\"stb\" type=\"button\" onClick=\"document.Form.action=\\''.$w_dir.$w_pagina.$par.'\\'; document.Form.w_troca.value=\\'w_material\\'; document.Form.submit();\" name=\"Botao\" value=\"Procurar\">');\r\n ShowHTML(' </tr>');\r\n ShowHTML(' <tr valign=\"top\">');\r\n ShowHTML(' <td colspan=\"4\" TITLE=\"Selecione o material/serviço desejado na listagem ou procure por outro nome.\"><b>Material:</b><br><SELECT ACCESSKEY=\"'.$accesskey.'\" CLASS=\"STS\" NAME=\"w_material\" '.$w_Disabled.' onChange=\"document.Form.action=\\''.$w_dir.$w_pagina.$par.'\\'; document.Form.w_troca.value=\\'w_material\\'; document.Form.submit();\">');\r\n ShowHTML(' <option value=\"\">---');\r\n if (nvl($w_nome,'')!='' || $O=='A') {\r\n if (nvl($w_nome,'')!='') {\r\n $sql = new db_getMatServ; $RS = $sql->getInstanceOf($dbms,$w_cliente,$w_usuario,null,null,null,$w_nome,'S',null,null,null,null,null,null,null,null,null,null,null,null,null);\r\n } else {\r\n $sql = new db_getMatServ; $RS = $sql->getInstanceOf($dbms,$w_cliente,$w_usuario,$w_material,null,null,null,'S',null,null,null,null,null,null,null,null,null,null,null,null,null);\r\n }\r\n $RS = SortArray($RS,'nome','asc'); \r\n } else {\r\n $RS = array();\r\n }\r\n foreach ($RS as $row) {\r\n ShowHTML(' <option value=\"'.f($row,'chave').'\" '.((nvl(f($row,'chave'),0)==nvl($w_material,0)) ? 'SELECTED' : '').'>'.f($row,'nome').' ('.f($row,'nm_unidade_medida').')');\r\n } \r\n ShowHTML(' </select>');\r\n }\r\n if (nvl($w_material,'')=='') {\r\n ShowHTML(' <tr><td colspan=4 align=\"center\"><hr>');\r\n } else {\r\n ShowHTML(' <tr><td colspan=\"4\" align=\"center\" height=\"1\" bgcolor=\"#000000\"></td></tr>');\r\n ShowHTML(' <tr><td colspan=4 align=\"center\"><b>Classe do material: '.$w_classe.' - '.upper($w_nm_classe).'</b></td></tr>');\r\n ShowHTML(' <tr><td colspan=\"4\" align=\"center\" height=\"1\" bgcolor=\"#000000\"></td></tr>');\r\n ShowHTML(' <tr valign=\"top\">');\r\n if ($w_edita) {\r\n ShowHTML(' <td><b><u>Q</u>uantidade:</b><br><input accesskey=\"Q\" type=\"text\" name=\"w_quantidade\" class=\"STI\" SIZE=\"18\" MAXLENGTH=\"18\" VALUE=\"'.$w_quantidade.'\" '.$w_Disabled.' style=\"text-align:right;\" onKeyDown=\"FormataValor(this,18,0,event);\"></td>');\r\n ShowHTML(' <td><b>$ <u>T</u>otal:</b><br><input type=\"text\" '.$w_Disabled.' accesskey=\"T\" name=\"w_valor\" class=\"sti\" SIZE=\"10\" MAXLENGTH=\"18\" VALUE=\"'.$w_valor.'\" style=\"text-align:right;\" onKeyDown=\"FormataValor(this,18,2,event);\" title=\"Informe o valor total do item. O sistema calculará o valor unitário.\"></td>');\r\n }\r\n if ($w_classe==1||$w_classe==2||$w_classe==3) {\r\n ShowHTML(' <td><b><u>V</u>alidade:</b><br><input '.$w_Disabled.' accesskey=\"V\" type=\"text\" name=\"w_validade\" class=\"STI\" SIZE=\"10\" MAXLENGTH=\"10\" VALUE=\"'.$w_validade.'\" onKeyDown=\"FormataData(this,event);\" title=\"Data de validade do item.\"></td>');\r\n if ($w_edita) ShowHTML(' <td><b><u>F</u>ator de embalagem:</b><br><input type=\"text\" '.$w_Disabled.' accesskey=\"F\" name=\"w_fator\" class=\"sti\" SIZE=\"4\" MAXLENGTH=\"4\" VALUE=\"'.nvl($w_fator,f($row,'fator_embalagem')).'\" style=\"text-align:right;\" title=\"Define o múltiplo da quantidade a ser solicitada.\"></td>');\r\n } else {\r\n if ($w_classe==4) {\r\n ShowHTML(' <td><b><u>V</u>ida útil (anos):</b><br><input type=\"text\" '.$w_Disabled.' accesskey=\"V\" name=\"w_vida_util\" class=\"sti\" SIZE=\"4\" MAXLENGTH=\"4\" VALUE=\"'.nvl($w_vida_util,f($row,'vida_util')).'\" style=\"text-align:right;\" title=\"Vida útil do bem.\"></td>');\r\n }\r\n if ($w_edita) ShowHTML('<INPUT type=\"hidden\" name=\"w_fator\" value=\"1\">');\r\n }\r\n if ($w_classe==1) {\r\n if ($w_edita) { ShowHTML(' </tr>'); ShowHTML(' <tr valign=\"top\">'); }\r\n ShowHTML(' <td colspan=2><b><u>L</u>ote:</b><br><input '.$p_Disabled.' accesskey=\"L\" type=\"text\" name=\"w_lote\" class=\"sti\" SIZE=\"20\" MAXLENGTH=\"20\" VALUE=\"'.$w_lote.'\">');\r\n ShowHTML(' <td><b><u>F</u>abricação:</b><br><input '.$w_Disabled.' accesskey=\"F\" type=\"text\" name=\"w_fabricacao\" class=\"STI\" SIZE=\"10\" MAXLENGTH=\"10\" VALUE=\"'.$w_fabricacao.'\" onKeyDown=\"FormataData(this,event);\" title=\"Data de fabricação do item.\"></td>');\r\n ShowHTML(' </tr>');\r\n }\r\n if ($w_edita) { ShowHTML(' </tr>'); ShowHTML(' <tr valign=\"top\">'); }\r\n if ($w_classe!=4) {\r\n ShowHTML(' <td colspan=2><b>M<u>a</u>rca:</b><br><input '.$p_Disabled.' accesskey=\"A\" type=\"text\" name=\"w_fabricante\" class=\"sti\" SIZE=\"30\" MAXLENGTH=\"50\" VALUE=\"'.$w_fabricante.'\">');\r\n } else {\r\n ShowHTML(' <td colspan=2><b>F<u>a</u>bricante:</b><br><input '.$p_Disabled.' accesskey=\"A\" type=\"text\" name=\"w_fabricante\" class=\"sti\" SIZE=\"30\" MAXLENGTH=\"50\" VALUE=\"'.$w_fabricante.'\">');\r\n ShowHTML(' <td colspan=2><b><u>M</u>odelo:</b><br><input '.$p_Disabled.' accesskey=\"M\" type=\"text\" name=\"w_modelo\" class=\"sti\" SIZE=\"30\" MAXLENGTH=\"50\" VALUE=\"'.$w_modelo.'\">');\r\n }\r\n ShowHTML(' </tr>');\r\n ShowHTML(' <tr>');\r\n SelecaoAlmoxarifado('Al<u>m</u>oxarifado para armazenamento:','M', 'Selecione o almoxarifado onde o material será armazenado.', $w_almoxarifado,'w_almoxarifado',null,null,4);\r\n ShowHTML(' <tr><td colspan=4 align=\"center\"><hr>');\r\n ShowHTML(' <input class=\"stb\" type=\"submit\" name=\"Botao\" value=\"Gravar\">');\r\n }\r\n ShowHTML(' <input class=\"stb\" type=\"button\" onClick=\"location.href=\\''.montaURL_JS($w_dir,$w_pagina.$par.'&w_menu='.$w_menu.'&w_chave='.$w_chave.'&w_chave_aux='.$w_chave_aux.'&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(' </TD>');\r\n ShowHTML('</tr>');\r\n ShowHTML('</table>');\r\n}", "title": "" }, { "docid": "0325277246e3ac9febf5d3c9baae72db", "score": "0.5365091", "text": "public function editassigntimeAction()\n {\n $prevurl = getenv(\"HTTP_REFERER\");\n $user_params=$this->_request->getParams();\n $ftvrequest_obj = new Ep_Ftv_FtvRequests();\n $ftvpausetime_obj = new Ep_Ftv_FtvPauseTime();\n $requestId = $user_params['requestId'];\n $requestsdetail = $ftvrequest_obj->getRequestsDetails($requestId);\n\n ($user_params['editftvspentdays'] == '') ? $days=0 : $days=$user_params['editftvspentdays'];\n ($user_params['editftvspenthours'] == '') ? $hours=0 : $hours=$user_params['editftvspenthours'];\n ($user_params['editftvspentminutes'] == '') ? $minutes=0 : $minutes=$user_params['editftvspentminutes'];\n ($user_params['editftvspentseconds'] == '') ? $seconds=0 : $seconds=$user_params['editftvspentseconds'];\n\n /*if($user_params['addasigntime'] == 'addasigntime') ///when time changes in mail content in publish ao popup//\n {\n /*$editdate = date('Y-m-d', strtotime($user_params['editftvassigndate']));\n $edittime = date('H:i:s', strtotime($user_params['editftvassigntime']));\n $editdatetime =$editdate.\" \".$edittime;\n $data = array(\"assigned_at\"=>$editdatetime);////////updating\n $query = \"identifier= '\".$user_params['requestId'].\"'\";\n $ftvrequest_obj->updateFtvRequests($data,$query);\n $parameters['ftvType'] = \"chaine\";\n // $newseconds = $this->allToSeconds($user_params['editftvspentdays'],$user_params['editftvspenthours'],$user_params['editftvspentminutes'],$user_params['editftvspentseconds']);\n echo \"<br>\".$format = \"P\".$days.\"DT\".$hours.\"H\".$minutes.\"M\".$seconds.\"S\";\n echo \"<br>\".$requestsdetail[0]['assigned_at'];\n $time=new DateTime($requestsdetail[0]['assigned_at']);\n $time->sub(new DateInterval($format));\n echo \"<br>\".$assigntime = $time->format('Y-m-d H:i:s');\n $data = array(\"assigned_at\"=>$assigntime);////////updating\n echo $query = \"identifier= '\".$requestId.\"'\";\n $ftvrequest_obj->updateFtvRequests($data,$query);\n $this->_redirect($prevurl);\n }\n elseif($user_params['subasigntime'] == 'subasigntime')\n {\n $format = \"P\".$days.\"DT\".$hours.\"H\".$minutes.\"M\".$seconds.\"S\";\n $time=new DateTime($requestsdetail[0]['assigned_at']);\n $time->add(new DateInterval($format));\n $assigntime = $time->format('Y-m-d H:i:s');\n $data = array(\"assigned_at\"=>$assigntime);////////updating\n $query = \"identifier= '\".$requestId.\"'\";\n $ftvrequest_obj->updateFtvRequests($data,$query);\n $this->_redirect($prevurl);\n }*/\n $inpause = $ftvpausetime_obj->inPause($requestId);\n $requestsdetail[0]['inpause'] = $inpause;\n $ptimes = $ftvpausetime_obj->getPauseDuration($requestId);\n $assigntime = $requestsdetail[0]['assigned_at'];\n //echo $requestId; echo $requestsdetail[0]['assigned_at'];\n\n if(($requestsdetail[0]['status'] == 'done' || $inpause == 'yes') && $requestsdetail[0]['assigned_at'] != null)\n {\n if($requestsdetail[0]['status'] == \"closed\")\n $time1 = ($requestsdetail[0]['cancelled_at']); /// created time\n elseif ($requestsdetail[0]['status'] == \"done\")\n $time1 = ($requestsdetail[0]['closed_at']); /// created time\n else{\n if($inpause == 'yes') {\n $time1 = ($requestsdetail[0]['pause_at']);\n }else {\n $time1 = (date('Y-m-d H:i:s'));///curent time\n }\n }\n $pausedrequests = $ftvpausetime_obj->pausedRequest($requestId);\n if($pausedrequests == 'yes')\n {\n $time2 = $this->subDiffFromDate($requestId, $requestsdetail[0]['assigned_at']);\n }else{\n $time2 = $requestsdetail[0]['assigned_at'];\n }\n $difference = $this->timeDifference($time1, $time2);\n\n }elseif($requestsdetail[0]['assigned_at'] != null){\n $time1 = (date('Y-m-d H:i:s'));///curent time\n\n $pausedrequests = $ftvpausetime_obj->pausedRequest($requestId);\n if($pausedrequests == 'yes')\n {\n $updatedassigntime = $this->subDiffFromDate($requestId, $requestsdetail[0]['assigned_at']);\n }else{\n $updatedassigntime = $requestsdetail[0]['assigned_at'];\n }\n $time2 = $updatedassigntime;\n $difference = $this->timeDifference($time1, $time2);\n }\n ////when user trying to edit the time spent///\n if($user_params['editftvassignsubmit'] == 'editftvassignsubmit') ///when button submitted in popup//\n {\n $newseconds = $this->allToSeconds($days,$hours,$minutes,$seconds);\n $previousseconds = $this->allToSeconds($difference['days'],$difference['hours'],$difference['minutes'],$difference['seconds']);\n if($newseconds > $previousseconds){\n $diffseconds = $newseconds-$previousseconds;\n $difftime = $this->secondsTodayshours($diffseconds);\n $format = \"P\".$difftime['days'].\"DT\".$difftime['hours'].\"H\".$difftime['minutes'].\"M\".$difftime['seconds'].\"S\";\n $requestsdetail[0]['assigned_at'];\n $time=new DateTime($requestsdetail[0]['assigned_at']);\n $time->sub(new DateInterval($format));\n $assigntime = $time->format('Y-m-d H:i:s');\n $data = array(\"assigned_at\"=>$assigntime);////////updating\n $query = \"identifier= '\".$requestId.\"'\";\n $ftvrequest_obj->updateFtvRequests($data,$query);\n $this->_redirect($prevurl);\n }elseif($newseconds < $previousseconds){\n $diffseconds = $previousseconds-$newseconds;\n $difftime = $this->secondsTodayshours($diffseconds);\n $format = \"P\".$difftime['days'].\"DT\".$difftime['hours'].\"H\".$difftime['minutes'].\"M\".$difftime['seconds'].\"S\";\n $time=new DateTime($requestsdetail[0]['assigned_at']);\n $time->add(new DateInterval($format));\n $assigntime = $time->format('Y-m-d H:i:s');\n $data = array(\"assigned_at\"=>$assigntime);////////updating\n $query = \"identifier= '\".$requestId.\"'\";\n $ftvrequest_obj->updateFtvRequests($data,$query);\n $this->_redirect($prevurl);\n }else\n $this->_redirect($prevurl);\n }\n /*$this->_view->reqasgndate = date(\"d-m-Y\", strtotime($reqdetails[0]['assigned_at']));\n $this->_view->reqasgntime = date(\"g:i A\", strtotime($reqdetails[0]['assigned_at']));*/\n $this->_view->days = $difference['days'];\n $this->_view->hours = $difference['hours'];\n $this->_view->minutes = $difference['minutes'];\n $this->_view->seconds = $difference['seconds'];\n $this->_view->requestId = $user_params['requestId'];\n $this->_view->requestobject = $requestsdetail[0]['request_object'];\n $this->_view->current_duration= $difference['days'].\"j \".$difference['hours'].\"h \".$difference['minutes'].\"m \".$difference['seconds'].\"s \";\n\n $this->_view->extendparttime = 'no';\n $this->_view->extendcrtparttime = 'no';\n $this->_view->editftvassigntime = 'yes';\n $this->_view->nores = 'true';\n $this->_view->render(\"ongoing_extendtime_writer_popup\");\n\n }", "title": "" }, { "docid": "2d0d3aab8e2a3cc56b7ae0da3f3bb88d", "score": "0.5355385", "text": "public function getReservation2($golfclubid, $teetimeid, $numberofplayers, $date){\n \n if (Auth::user()->check()) { $userid = Auth::user()->get()->id; } else { $userid = 0; }\n \n $this->layout->content = View::make('reservation2')->with('golfclubid', $golfclubid)->with('teetimeid', $teetimeid)->with('numberofplayers', $numberofplayers)->with('date', $date)->with('userid',$userid); \n }", "title": "" }, { "docid": "5b43288d30fd635253c7a669eaf7021b", "score": "0.5352671", "text": "public function safetodb($dbconnection){\n $sql_find_mov = \"SELECT id FROM movie_times WHERE start='\".$this->mv_time->start.\"' AND end='\".$this->mv_time->end.\"';\";\n $result_find_mov = $dbconnection->query($sql_find_mov);\n $movid = $result_find_mov->fetch_assoc()['id'];\n\n //Check if Reservation Users already exist\n $sql_check_resusr = \"SELECT * from reservation_users WHERE firstname='\".$this->reservation_user->firstname.\"' AND lastname='\".$this->reservation_user->lastname.\"';\";\n $result_check_resusr = $dbconnection->query($sql_check_resusr);\n $row_check_resusr = $result_check_resusr->fetch_assoc();\n\n //Create Reservation User\n if($row_check_resusr == \"\" || $row_check_resusr == \" \"){\n $sql_create_resusr = \"INSERT INTO reservation_users (firstname, lastname) VALUES ('\".$this->reservation_user->firstname.\"', '\".$this->reservation_user->lastname.\"');\";\n $dbconnection->query($sql_create_resusr);\n\n //Get Res Users ID\n $sql_find_resusr = \"SELECT id from reservation_users WHERE firstname='\".$this->reservation_user->firstname.\"' AND lastname='\".$this->reservation_user->lastname.\"';\";\n $result_find_resusr = $dbconnection->query($sql_find_resusr);\n $resuserid = $result_find_resusr->fetch_assoc()['id'];\n }\n else{\n $resuserid = $row_check_resusr['id'];\n }\n // ! User cannot make two Reservations for 1 Movie\n\n //Create Reservation\n $sql_create_reservation = \"INSERT INTO reservations (FK_reservation_user, FK_movie_times) VALUES (\".$resuserid.\", \".$movid.\");\";\n $dbconnection->query($sql_create_reservation);\n\n //Get Reservation ID\n $sql_find_resid = \"SELECT id from reservations WHERE FK_reservation_user=\".$resuserid.\" AND FK_movie_times=\".$movid.\";\";\n $result_find_resid = $dbconnection->query($sql_find_resid);\n $resid = $result_find_resid->fetch_assoc()['id'];\n\n //Create Reservated Seats\n foreach($this->reservated_seats as $this_res_seats){\n //Get Seat ID\n $sql_find_seatid = \"SELECT * from seats WHERE seats.row=\".$this_res_seats->row.\" AND seats.col=\".$this_res_seats->col.\";\";\n $result_find_seatid = $dbconnection->query($sql_find_seatid);\n while($row_find_seatid = $result_find_seatid->fetch_assoc()){\n if($row_find_seatid['FK_room'] == $this->mv_time->room){\n $seatid = $row_find_seatid['id'];\n break;\n }\n }\n $sql_create_resseats = \"INSERT INTO reservated_seats (FK_reservation, FK_seat) VALUES ($resid, $seatid);\";\n $dbconnection->query($sql_create_resseats);\n }\n }", "title": "" }, { "docid": "4342f245367d87e9cbc61407773ab71e", "score": "0.53352386", "text": "public function partirAuTravail(): void\n\t{\n\t}", "title": "" }, { "docid": "fee1dd238aefbdbdaa82eb787ec8026b", "score": "0.5333691", "text": "function get_time_conflicts($room_id,$room_section,$user_id,$date,$start_time,$end_time,$otf,$reschedule_reservation_id=null)\n{\n\tglobal $db;\n\n\t$conflicts = array();\n\n\t$rooms = load_rooms(null,array('id'=>$room_id));\n\tforeach($rooms as $room)\n\t\tbreak;\n\n\t$hours = load_hours($db,$date);\n\n\t// check to make sure there aren't any conflicts for the room\n\t$select_conflicts = \"select * from reservations where room_id like '$room_id' and room_section like '$room_section' and ((sched_end_time > '\".date('Y-m-d H:i:s',strtotime($start_time)).\"' AND sched_start_time <= '\".date('Y-m-d H:i:s',strtotime($start_time)).\"') OR (sched_end_time >= '\".date('Y-m-d H:i:s',strtotime($end_time)).\"' AND sched_start_time < '\".date('Y-m-d H:i:s',strtotime($end_time)).\"') OR (sched_start_time >= '\".date('Y-m-d H:i:s',strtotime($start_time)).\"' AND sched_end_time <= '\".date('Y-m-d H:i:s',strtotime($end_time)).\"')) AND cancelled like '0' AND key_checkin_time is null and active like '1'\";\n\tif($reschedule_reservation_id && $reschedule_reservation_id > 0)\n\t\t$select_conflicts .= \" AND id not like '$reschedule_reservation_id'\";\n\t//print(\"select: $select_conflicts<br>\\n\");\n\t$res_conflicts = $db->query($select_conflicts);\n\t$num_conflicts = $res_conflicts->numRows();\n\tif($num_conflicts > 0)\n\t{\n\t\tunset($conflict);\n\t\tif($num_conflicts == 1)\n\t\t\t$conflict->message = \"The room reservation you selected conflicts with an existing room reservation.\";\n\t\telse\n\t\t\t$conflict->message = \"The room reservation you selected conflicts with multiple existing room reservations.\";\n\t\twhile($res_conflicts->fetchInto($res))\n\t\t\t$conflict->data[] = $res;\n\t\t$conflicts[] = $conflict;\n\t}\n\n\t// check to make sure there aren't any conflicts for the patron\n\t$select_conflicts = \"select * from reservations where user_id like '$user_id' and (sched_end_time > '\".date('Y-m-d H:i:s',strtotime($start_time)).\"' AND sched_start_time < '\".date('Y-m-d H:i:s',strtotime($end_time)).\"') AND cancelled like '0' AND status not like 'Cancelled' AND status not like 'Completed' AND active like '1'\";\n\tif($reschedule_reservation_id && $reschedule_reservation_id > 0)\n\t\t$select_conflicts .= \" AND id not like '$reschedule_reservation_id'\";\n\t//print(\"select: $select_conflicts<br>\\n\");\n\t$res_conflicts = $db->query($select_conflicts);\n\t$num_conflicts = $res_conflicts->numRows();\n\tif($num_conflicts > 0)\n\t{\n\t\tunset($conflict);\n\t\tif($num_conflicts == 1)\n\t\t\t$conflict->message = \"An existing reservation overlaps with this reservation.\";\n\t\telse\n\t\t\t$conflict->message = \"Multiple existing reservations overlap with this reservation.\";\n\t\twhile($res_conflicts->fetchInto($res))\n\t\t\t$conflict->data[] = $res;\n\t\t$conflicts[] = $conflict;\n\t}\n\n\t// double-check the libary is not closed\n\tif(strtotime($start_time) < strtotime($hours->open_time) || strtotime($end_time) > strtotime($hours->close_time))\n\t{\n\t\tunset($conflict);\n\t\t$conflict->message = \"You have selected a reservation that falls outside of the available hours for \" . date('m/d/Y',strtotime($date)) . \".\";\n\t\t$conflicts[] = $conflict;\n\t}\n\n\t// double-check the reservation is not for a time too far in the future\n\t$max_date_hours = load_hours($db,date('Y-m-d',strtotime(\"+\".(MAX_FUTURE_RES_DAYS-1).\" days\",strtotime('now'))));\n\tif(strtotime($start_time) > strtotime($max_date_hours->close_time))\n\t{\n\t\tunset($conflict);\n\t\t$conflict->message = \"You have selected a reservation that is too far in the future. Reservations may only be made as far as \".MAX_FUTURE_RES_DAYS.\" days in advance.\";\n\t\t$conflicts[] = $conflict;\n\t}\n\n\t// double-check to make sure the reservation length is not greater than the max allowed\n\t$res_length = round((strtotime($end_time) - strtotime($start_time))/60);\n\tif($res_length > DEFAULT_MAX_RES_LEN && strcmp($otf,\"1\"))\n\t{\n\t\tunset($conflict);\n\t\t$conflict->message = \"You have selected a reservation that exceeds the maximum allowed duration of \".DEFAULT_MAX_RES_LEN.\" minutes.\";\n\t\t$conflicts[] = $conflict;\n\t}\n\n\t// double-check to make sure the reservation length is not shorter than the min allowed\n\tif($res_length < DEFAULT_MIN_RES_LEN)\n\t{\n\t\tif((in_array('Staff',$_SESSION['LibRooms']['Roles']) || in_array('Admin',$_SESSION['LibRooms']['Roles'])) && !strcmp($otf,\"1\"))\n\t\t{\n\t\t\t// on the fly checkouts are allowed to be shorter than the minimum reservation length\n\t\t}\n\t\telse\n\t\t{\n\t\t\tunset($conflict);\n\t\t\t$conflict->message = \"You have selected a reservation that is shorter than the minimum allowed duration of \".DEFAULT_MIN_RES_LEN.\" minutes.\";\n\t\t\t$conflicts[] = $conflict;\n\t\t}\n\t}\n\n\t// double-check that the end time comes after the start time\n\tif($res_length <= 0)\n\t{\n\t\tunset($conflict);\n\t\t$conflict->message = \"You have selected an invalid start time or end time for your reservation.\";\n\t\t$conflicts[] = $conflict;\n\t}\n\n\t// double-check reservation start time is for a time in the future (if staff/admin -> minus 1 res_precision)\n\tif(isset($_SESSION['LibRooms']['Roles']) && (in_array('Staff',$_SESSION['LibRooms']['Roles']) || in_array('Admin',$_SESSION['LibRooms']['Roles'])))\n\t\t$min_start_time = strtotime(RES_PRECISION . \" minutes ago\",strtotime('now'));\n\telse\n\t\t$min_start_time = strtotime('now');\n\tif(strtotime($start_time) < $min_start_time)\n\t{\n\t\tunset($conflict);\n\t\t$conflict->message = \"You have selected a start time in the past.\";\n\t\t$conflicts[] = $conflict;\n\t}\n\n\n\t// double-check room is not out-of-order\n\tif(!strcmp($room->out_of_order,'Yes'))\n\t{\n\t\tunset($conflict);\n\t\t$conflict->message = \"The room you selected is currently out of order.\";\n\t\t$conflicts[] = $conflict;\n\t}\n\n\t// confirm user has a staff or admin role before allowing first come first serve reservations\n\tif(isset($_SESSION['LibRooms']['Roles']) && !in_array('Staff',$_SESSION['LibRooms']['Roles']) && !in_array('Admin',$_SESSION['LibRooms']['Roles']) && !strcmp($room->fcfs,'Yes'))\n\t{\n\t\tunset($conflict);\n\t\t$conflict->message = \"You do not have permission to reserve first come first serve rooms.\";\n\t\t$conflicts[] = $conflict;\n\t}\n\n\t// if back-to-back reservations are not allowed, check to make sure this is not a back-to-back\n\tif(!strcmp(BACK_TO_BACK_RESERVATIONS,\"No\"))\n\t{\n\t\t$select_conflicts = \"select * from reservations where user_id like '$user_id' and room_id like '$room_id' and (sched_end_time like '\".date('Y-m-d H:i:s',strtotime($start_time)).\"' OR sched_start_time like '\".date('Y-m-d H:i:s',strtotime($end_time)).\"') AND cancelled like '0' and active like '1'\";\n\t\tif($reschedule_reservation_id && $reschedule_reservation_id > 0)\n\t\t\t$select_conflicts .= \" AND id not like '$reschedule_reservation_id'\";\n\t\t//print(\"select: $select_conflicts<br>\\n\");\n\t\t$res_conflicts = $db->query($select_conflicts);\n\t\t$num_conflicts = $res_conflicts->numRows();\n\t\tif($num_conflicts > 0)\n\t\t{\n\t\t\tunset($conflict);\n\t\t\t$conflict->message = \"Back to back reservations by the same patron for the same room are not allowed.\";\n\t\t\twhile($res_conflicts->fetchInto($res))\n\t\t\t\t$conflict->data[] = $res;\n\t\t\t$conflicts[] = $conflict;\n\t\t}\n\t}\n\n\treturn($conflicts);\n}", "title": "" }, { "docid": "790dbe1e60a98ea2b125be86dd4d053a", "score": "0.53323126", "text": "private function initTransitions() {\n\t\t\n\t\t\n\t\tself::$_db->saveQry(\"SELECT ID FROM `#_reservations` \".\n\t\t\t\t\"WHERE (`status` = 'queued' OR `status` = 'pending' OR `status` = 'prefered') \".\n\t\t\t\t\"AND ? <= `startTime` AND `startTime` <= ? \". \n\t\t\t\t\"ORDER BY FIELD(`status`, 'queued','prefered','pending') , `ID` DESC\",\n\t\t\t\tdate(\"Y-m-d H:i\"), Calendar::startAccept());\n\t\t\n\t\t\n\t\twhile($res = self::$_db->fetch_assoc()) \n\t\t\t$this->transitions->push(Reservation::load($res['ID']));\n\t\t\n\t\t// TagesEnde - BuchungsAcceptZeit ist kleiner als Aktueller Zeitblock\n\t\tif(Calendar::calculateTomorrow()) {\n\t\t\t$opening = Calendar::opening(date('Y-m-d', strtotime(\"tomorrow\")));\n\t\t\tself::$_db->saveQry(\"SELECT ID FROM `#_reservations` \".\n\t\t\t\t\t\"WHERE (`status` = 'queued' OR `status` = 'pending' OR `status` = 'prefered') \".\n\t\t\t\t\t\"AND ? <= `startTime` AND `startTime` <= ? \". \n\t\t\t\t\t\"ORDER BY FIELD(`status`, 'queued','prefered','pending') , `ID` DESC\",\n\t\t\t\t\t$opening->format(\"Y-m-d H:i\"), \n\t\t\t\t\tCalendar::startAccept($opening->format(\"Y-m-d H:i\")));\n\t\t\t\n\t\t\t\n\t\t\twhile($res = self::$_db->fetch_assoc())\n\t\t\t\t$this->transitions->push(Reservation::load($res['ID']));\n\t\t\t\n\t\t}\n\t\t\t\n\t}", "title": "" }, { "docid": "499e2104ef712d4d42e79a6c98cb2ece", "score": "0.5331966", "text": "function bonus_devident() {\n hitungDevident();\n}", "title": "" }, { "docid": "f4ca4616a52fe01467693ccd3bd54e23", "score": "0.53293484", "text": "public function sendReservation(Request $request) \n {\n // array para controlar los errores\n $response = array(\n 'message' => 'Reservation saved satisfactorily',\n 'error' => false\n );\n\n $date = new Carbon($request->input('date'));\n\n // consultamos si hay servicios para el dia y horas indicados\n $result = Schedule::where('date', '=' , $request->input('date'))\n ->where('time_start', '<=', $request->input('hour_start'))\n ->where('time_end', '>=', $request->input('hour_end'))\n ->where('service_id', '=', $request->input('service_id'))\n ->get();\n\n if (count($result) == 0) {\n $response['error'] = true;\n $response['message'] = 'Could not be registered. There are not services for that day';\n\n return json_encode($response);\n }\n\n // comprobamos que la reserva no se solape con otra\n $result = DB::select(DB::raw(\"select * from (\n select * from reservations where date_reservation = '\" . $request->input('date') . \"' and service_id = \" . $request->input('service_id') . \" ) reserv\n where (reserv.hour_end <= '\" . $request->input('hour_start') . \"' and '\" . $request->input('hour_start') . \"' <= reserv.hour_start) \n or ('\" . $request->input('hour_end') . \"' >= reserv.hour_start and reserv.hour_end > '\" . $request->input('hour_start') . \"')\"));\n\n if (count($result) > 0) {\n $response['error'] = true;\n $response['message'] = 'Could not be registered. Day and time overlapping ';\n \n return json_encode($response);\n }\n\n // salvamos la reserva\n $this->saveReservation($request);\n\n return json_encode($response);\n }", "title": "" }, { "docid": "edaec86a0793f03e6e89666d59db1bd2", "score": "0.5322908", "text": "function verificarInscrito($retorno) {\n //verifica si el espacio ya ha sido inscrito\n $inscrito=$this->validacion->validarEspacioInscrito($_REQUEST);\n if($inscrito!='ok' && is_array($inscrito))\n {\n $carrera=$this->consultarNombreCarrera($inscrito[0]['PROYECTO']);\n $retorno['mensaje']=\"El espacio académico ya esta inscrito en el grupo \".$inscrito[0]['GRUPO'].\" de \".$carrera.\" para el periodo actual. No se puede inscribir de nuevo.\";\n $this->enlaceNoAdicion($retorno);\n }\n }", "title": "" }, { "docid": "8473bc6e15de46d93888a19a95e3bf8b", "score": "0.5322726", "text": "public function acceptInvitation(Request $request){\n // $acceptedInvitation->booking_id = $booking->id;\n // $acceptedInvitation->invitation_id = $invitation->id\n // $acceptedInvitation->save();\n $booking = new Booking();\n $booking->status = 1;\n $booking->date_from = $request->date_from;\n $booking->date_to = $request->date_to;\n $booking->room_id = $request->room_id;\n $booking->user_id = $request->user_id;\n $booking->mode = 1;\n $booking->save();\n $user = $booking->User;\n $manager = $booking->Room->House->Manager->User;\n $user->notify(new BookingNotification($booking));\n $manager->notify(new BookingNotification($booking));\n return response()->json($booking->id,200);\n }", "title": "" }, { "docid": "6beea13fc8946ed78bb7c357ef8e0689", "score": "0.5313982", "text": "public function reserve_process($reserve_post_data)\n\t{\n\t\t$villaName = $reserve_post_data['hidVillaName'];\n\t\t$params['VillaID'] = $reserve_post_data['villaID'];\n\t\t$params['CIDate'] = $reserve_post_data['txtArrivalDate'];\n\t\t$params['CODate'] = $reserve_post_data['txtDepartDate'];\n\t\t$params['GuestFirstName'] = stripslashes($reserve_post_data['txtFirstname']);\n\t\t$params['GuestLastName'] = stripslashes($reserve_post_data['txtLastName']);\n\t\t$params['CountryOfResidence'] = $reserve_post_data['selCountry'];\n\t\t$params['Email'] = $reserve_post_data['txtEmail'];\n\t\t$params['TelNo'] = $reserve_post_data['txtPhoneAreaCode'].$reserve_post_data['txtPhoneNumber'];\n\t\t$params['TotalAdults'] = empty($reserve_post_data['numAdult'])?'2':$reserve_post_data['numAdult'];\n\t\t$params['BookingSourceID'] = \"11\";\n\t\t$params['MobileNo'] = empty($reserve_post_data['txtAltNumber'])?$reserve_post_data['txtPhoneNumber']:'';\n\t\t$params['BedRooms'] = '1';\n\t\t/* for complex villas */\n\t\tif( isset($reserve_post_data['villaids']) ): \n\t\t\t$vill = \"\";\n\t\t\t$svill = sizeof($reserve_post_data['villaids']);\n\t\t\tfor($c=0; $c<$svill; $c++):\n\t\t\t\tif(isset($reserve_post_data['villaids'][$c])):\n\t\t\t\t\t$vill .= $reserve_post_data['villaids'][$c].', ';\n\t\t\t\tendif;\n\t\t\tendfor;\n\t\t\t$vill = substr($vill,0,-1);\n\t\tendif;\n\t\t/* end for complex villas */\n\t\t$params['SpecialRequest'] = stripslashes( strip_tags($reserve_post_data['txtMessage']).(!empty($vill)?', Selected villas: '.$vill:'') );\n\t\t$params['SpecialRequest'] = preg_replace('/[^\\00-\\255]+/u','',$params['SpecialRequest']);\n\t\t$params['SpecialRequest'] = preg_replace('/[^\\\\x20-\\\\x7E]/', '', $params['SpecialRequest']);\n\t\tif ($reserve_post_data['alternatives'] == 'Y'):\n\t\t\t$params['SuggestOtherVilla'] = 'Y';\n\t\telse:\n\t\t\t$params['SuggestOtherVilla'] = 'N';\n\t\tendif;\n\t\t$params['TotalChildren'] = $reserve_post_data['numChildren'];\n\t\t$params['TotalInfants'] = $reserve_post_data['numInfant'];\n\t\t$params['RURL'] = urlencode($reserve_post_data['rurl']);\n\t\t$params['IsGenInquiry'] = 'N';\n\t\t$params['CIPAddress'] = $reserve_post_data['hid_cip'];\n\t\tif ($reserve_post_data['is_event'] == 'Y'):\n\t\t\t$params['IsEvent'] = 'Y';\n\t\telse:\n\t\t\t$params['IsEvent'] = 'N';\n\t\tendif;\n\t\tif ($reserve_post_data['date_flex'] == 'Y'):\n\t\t\t$params['AreDatesFlexible'] = 'Y';\n\t\telse:\n\t\t\t$params['AreDatesFlexible'] = 'N';\n\t\tendif;\n\t\t$params['OptInMailList'] = 'Y';\n\t\t$params['LCID'] = 'en';\n\t\n\t\t$timeTokenHash = $this->cheeze_curls('Security_GetTimeToken', \"\", TRUE, FALSE,\"\",\"\",$reserve_post_data['db']);\n\t\tif (!is_array($timeTokenHash))\n\t\t\t$timeTokenHash = html_entity_decode($timeTokenHash);\n\t\n\t\t$params['p_ToHash'] = 'villaprtl|Xr4g2RmU|'.$timeTokenHash[0];\n\t\t$hashString = $this->prepare_Security_GetMD5Hash($params);\n\t\t$md5Hash = $this->cheeze_curls('Security_GetMD5Hash', $hashString, TRUE, FALSE,\"\",\"\",$reserve_post_data['db']);\n\t\t$p_Params = json_encode($params);\n\t\t$p_UserID = 'villaprtl';\n\t\t$p_Token = $md5Hash[0];\n\t\t$request = 'p_Token='.$p_Token.'&p_UserID='.$p_UserID.'&p_Params='.$p_Params;\n\t\t$newBooking = $this->cheeze_curls('insertInquiry',$request,TRUE,FALSE,\"\",\"\",$reserve_post_data['db']);\n\t\tif ($newBooking['@attributes']['status'] == 'error'):\n\t\t\t$error['form_error'] = 'Enquiry Form';\n\t\t\t$error['return_url'] = '/reservations.html';\n\t\t\t$this->houston_we_have_a_problem($error);\n\t\telse:\n\t\t\t$newBooking['thank_you_message'] = '<p>Your Reservation Enquiry Form has been successfully sent for '.$villaName.'.</p>\n\t\t\t\t<p>The Elite Havens Group, luxury villa rentals, manage all the reservations for '.$villaName.'. One of our villa specialists will be in touch shortly.</p>\n\t\t\t\t<p>Your Reference I.D. is <strong>'.$newBooking['Transactions']['InquiryID'].'</strong></p>\n\t\t\t\t<p>The Elite Havens Group presents a stunning portfolio of luxury private villas throughout Bali and Lombok in Indonesia, Thailand, Sri Lanka and Maldives. Staffed to the highest quality, each villa offers a blissfully relaxing and highly individual experience. Ranging in size from one to nine bedrooms and boasting private pools, luxurious living spaces, equipped kitchens (with chef) and tropical gardens, our villas are situated in the heart of the action, beside blissful beaches, upon jungle-clad hillsides and amongst idyllic rural landscapes ensuring the perfect holiday experience for all.</p>';\n\t\tendif;\n\t\treturn $newBooking;\n\t}", "title": "" }, { "docid": "87987a16a4e0780597b33fbd1d09a9cf", "score": "0.53131396", "text": "function manage_bookings()\n\t{\n\t\t$query = pg_query(\"SELECT * from list_reservations;\");\n\t\t\n\t\techo \"<table>\";\n\t\techo \"<tr><th>Reservation number</th> <th>Datae</th> <th>Current date</th> <th>USER ID</th> <th>Name</th> <th>Surname</th>\".\n\t\t\"<th>Specimen ID</th><th>Movie title</th></tr>\";\n\t\twhile ($row = pg_fetch_row($query))\n\t\t{\n\t\t\techo \"<tr> <td>$row[0]</td> <td>$row[1]</td> <td>$row[2]</td> <td>$row[3]</td> <td>$row[4]</td> <td>$row[5]</td> <td>$row[6]</td> <td>$row[7]</td></tr>\";\n\t\t}\n\t\techo \"</table>\";\n pg_free_result($query);\n\n // pokaz opcje do rezerwacji\n $q_user = pg_query(\"select widz_id, imie, nazwisko from widz;\");\n\t\t$q_egzemplarz = pg_query(\"select e.egzemplarz_id, f.tytul FROM egzemplarz as e, film as f WHERE f.film_id=f.film_id ORDER BY e.egzemplarz_id;\");\n\t\t\n\t\techo \"<br/><form action='index.php?action=manage_bookings' method='post'>\n\t\t <br>\n\t\t<select name='czytelnik'>\";\n\t\twhile($row = pg_fetch_row($q_user))\n\t\t{\n\t\t\techo \"<option value='$row[0]'>$row[0] $row[1] $row[2]</option>\";\n\t\t}\n\t\techo \"</select>\";\n\t\techo \"<select name='egz'>\";\n\t\twhile($row = pg_fetch_row($q_egzemplarz))\n\t\t{\n\t\t\techo \"<option value='$row[0]'>$row[0] $row[1]</option>\";\n\t\t}\n\t\techo \"</select><input type='submit' value='Zarezerwuj'> </form>\";\n\t\t\n\t\tpg_free_result($q_user);\n\t\tpg_free_result($q_egzemplarz);\n\t\t\n\t\tif(isset($_POST['czytelnik']) && isset($_POST['egz']))\n\t\t{\n\t\t\t$q_rezerwacji = pg_query(\"select * from zamowienie;\");\n\t\t\t$count = pg_num_rows($q_rezerwacji) + 1;\n\t\t\t$ins = \"INSERT INTO zamowienie VALUES($count, CURRENT_DATE, true, '$_POST[czytelnik]', '$_POST[egz]')\";\n\t\t\t$add = pg_query($ins);\n\t\t\tprint(pg_last_notice($this->dbconn));\n\t\t\tpg_free_result($add);\n }\n }", "title": "" }, { "docid": "41d10bc6d206f490f238cfcf58c52c0e", "score": "0.5311403", "text": "public function selectEndorseOvertime() { \r\n\t \r\n\t}", "title": "" }, { "docid": "6e5963346245c0ae6549f6e6bb217c55", "score": "0.5303378", "text": "function new_room_booking_old(Request $request) {\r\n //print_r($reserved_rooms); die;\r\n $uid = 0;\r\n $total_amount = 0;\r\n $rules['roomType'] = 'required';\r\n $validator = Validator::make($request->all(), $rules);\r\n if ($validator->passes()) {\r\n \r\n $discount_apply = '';\r\n if (\\Auth::check()) {\r\n $uid = \\Auth::user()->id;\r\n $userdet = \\DB::table('tb_users')->where('id', $uid)->first();\r\n \r\n $discount_apply = \\DB::table('tb_user_invitee_discount')->where('user_id', \\Auth::user()->id)->where('availability', 1)->first();\r\n }\r\n $props = \\DB::table('tb_properties')->where('id', $request->input('property'))->first();\r\n $curnDate = date('Y-m-d');\r\n $price = 0;\r\n \r\n $extra_adult = 0;\r\n $extra_junior = 0;\r\n \r\n $single_price = 0;\r\n $monday_price = 0; \r\n $tuesday_price = 0; \r\n $wednesday_price = 0; \r\n $thursday_price = 0; \r\n $friday_price = 0; \r\n $saturday_price = 0; \r\n $sunday_price = 0;\r\n \r\n \r\n $data['property_id'] = $request->input('property');\r\n \r\n \r\n \r\n $arrive_date = '';\r\n $book_arrive_date = '';\r\n if (!is_null($request->input('booking_arrive')) && $request->input('booking_arrive') != '' && $request->input('booking_arrive') != 'null') {\r\n \r\n $arrive = trim($request->input('booking_arrive'));\r\n $arrive_array=explode(\"-\",$arrive); \r\n $t=$arrive_array[0];\r\n $arrive_array[0]=$arrive_array[1];\r\n $arrive_array[1]=$t;\r\n $arrive_date=implode(\".\",$arrive_array);\r\n \r\n $book_arrive_date = $arrive_array[2].\"-\".$arrive_array[1].\"-\".$arrive_array[0];\r\n }\r\n \r\n $checkout_date = '';\r\n $book_checkout_date = '';\r\n if (!is_null($request->input('booking_destination')) && $request->input('booking_destination') != '' && $request->input('booking_destination') != 'null') {\r\n \r\n $checkout_date = trim($request->input('booking_destination'));\r\n $checkout_date_array=explode(\"-\",$checkout_date); \r\n $t=$checkout_date_array[0];\r\n $checkout_date_array[0]=$checkout_date_array[1];\r\n $checkout_date_array[1]=$t;\r\n $checkout_date_date=implode(\".\",$checkout_date_array);\r\n \r\n $book_checkout_date = $checkout_date_array[2].\"-\".$checkout_date_array[1].\"-\".$checkout_date_array[0];\r\n }\r\n \r\n \r\n \r\n \r\n \r\n \r\n if ($props->default_seasons != 1) {\r\n $checkseason = \\DB::table('tb_properties_category_rooms_price')->join('tb_seasons','tb_seasons.id','=','tb_properties_category_rooms_price.season_id')->join('tb_seasons_dates','tb_seasons_dates.season_id','=','tb_seasons.id')->select('tb_properties_category_rooms_price.rack_rate')->where('tb_properties_category_rooms_price.property_id', $props->id)->where('tb_properties_category_rooms_price.category_id', $request->input('roomType'))->where('tb_seasons.property_id', $props->id)->where('tb_seasons_dates.season_from_date', '<=', $book_arrive_date)->where('tb_seasons_dates.season_to_date', '>=', $book_checkout_date)->orderBy('tb_seasons.season_priority', 'asc')->first();\r\n } else {\r\n $checkseason = \\DB::table('tb_properties_category_rooms_price')->join('tb_seasons','tb_seasons.id','=','tb_properties_category_rooms_price.season_id')->join('tb_seasons_dates','tb_seasons_dates.season_id','=','tb_seasons.id')->select('tb_properties_category_rooms_price.rack_rate')->where('tb_properties_category_rooms_price.property_id', $props->id)->where('tb_properties_category_rooms_price.category_id', $request->input('roomType'))->where('tb_seasons.property_id', 0)->where('tb_seasons_dates.season_from_date', '<=', $book_arrive_date)->where('tb_seasons_dates.season_to_date', '>=', $book_checkout_date)->first();\r\n }\r\n \r\n if (!empty($checkseason)) {\r\n\t\t\t $price = $checkseason->rack_rate;\r\n //$extra_adult = $checkseason->extra_adult;\r\n //$extra_junior = $checkseason->extra_junior; \r\n } else {\r\n $checkseasonPrice_ifnotanyseason = \\DB::table('tb_properties_category_rooms_price')->select('rack_rate')->where('season_id', 0)->where('property_id', $props->id)->where('category_id', $request->input('roomType'))->first();\r\n if (!empty($checkseasonPrice_ifnotanyseason)) {\r\n $price = $checkseasonPrice_ifnotanyseason->rack_rate;\r\n //$extra_adult = $checkseason->extra_adult;\r\n //$extra_junior = $checkseason->extra_junior; \r\n }\r\n }\r\n \r\n \r\n \r\n \r\n\r\n /*\r\n * Save reservation data\r\n */\r\n\r\n \r\n \r\n $data['checkin_date'] = $book_arrive_date;\r\n $data['checkout_date'] = $book_checkout_date;\r\n $data['type_id'] = $request->input('roomType');\r\n $data['number_of_nights'] = $request->input('number_of_nights');\r\n $data['organizing_transfers'] = (!is_null($request->input('organizing_transfers')) && $request->input('organizing_transfers') != '') ? 'Yes' : 'No';\r\n $data['client_id'] = $uid;\r\n $data['source'] = 'Direct reservation';\r\n $data['guest_title'] = $request->input('guest_title');\r\n $data['guest_names'] = $request->input('guest_first_name') . ' ' . $request->input('guest_last_name');\r\n $data['guest_birthday'] = $request->input('guest_birthday_yyyy') . '-' . $request->input('guest_birthday_mm') . '-' . $request->input('guest_birthday_dd');\r\n $data['guest_address'] = $request->input('guest_address');\r\n $data['guest_city'] = $request->input('guest_city');\r\n $data['guest_zip_code'] = $request->input('guest_zip_code');\r\n $data['guest_country'] = $request->input('guest_country');\r\n $data['guest_landline_code'] = $request->input('guest_landline_code');\r\n $data['guest_landline_number'] = $request->input('guest_landline_number');\r\n $data['guest_mobile_code'] = $request->input('guest_mobile_code');\r\n $data['guest_mobile_number'] = $request->input('guest_mobile_number');\r\n $data['guest_email'] = $request->input('guest_email');\r\n $data['price'] = $price;\r\n $data['price_mode'] = 'daily';\r\n $data['created_by'] = $uid;\r\n $data['created_date'] = date('Y-m-d h:i:s');\r\n //print_r($data); die;\r\n if($discount_apply!=''){\r\n $discount = ($price*10/100);\r\n $data['discount'] = $discount;\r\n }\r\n \r\n\r\n $resid = \\DB::table('tb_reservations')->insertGetId($data);\r\n\r\n /*\r\n * Rooms data\r\n */\r\n\r\n $booking_adults = $request->input('booking_adults');\r\n $booking_children = $request->input('booking_children');\r\n $booking_Room_type = $request->input('booking_Room_type');\r\n \r\n $f_reserved_rooms = array();\r\n $flag = true;\r\n $return = array();\r\n $arr_type = array();\r\n if (!empty($booking_adults)) { \r\n for($j=0; $j<count($booking_adults); $j++){\r\n $type_id = $booking_Room_type[$j]==0 ? $request->input('roomType') : $booking_Room_type[$j];\r\n $rmid = '';\r\n $query = \"select pct.*, pcr.id as roomid from tb_properties_category_rooms pcr inner join tb_properties_category_types pct on pct.id=pcr.category_id where pcr.room_active_from <= '\".$book_arrive_date.\"' and pcr.room_active_to >='\".$book_checkout_date.\"' and pcr.category_id=\".$type_id.\" and pcr.id not IN (select td_reserved_rooms.room_id from tb_reservations INNER join td_reserved_rooms on td_reserved_rooms.reservation_id=tb_reservations.id where '\".$book_arrive_date.\"' BETWEEN checkin_date and checkout_date or '\".$book_checkout_date.\"' BETWEEN checkin_date and checkout_date)\";\r\n \r\n $rooms = DB::select($query);\r\n if(count($rooms)>0){ \r\n $rmid = $rooms[0]->roomid; \r\n }\r\n \r\n //print_r($rooms); die;\r\n \r\n if ($props->default_seasons != 1) {\r\n $checkseason = \\DB::table('tb_properties_category_rooms_price')->join('tb_seasons','tb_seasons.id','=','tb_properties_category_rooms_price.season_id')->join('tb_seasons_dates','tb_seasons_dates.season_id','=','tb_seasons.id')->where('tb_properties_category_rooms_price.property_id', $props->id)->where('tb_properties_category_rooms_price.category_id', $type_id)->where('tb_seasons.property_id', $props->id)->where('tb_seasons_dates.season_from_date', '<=', $book_arrive_date)->where('tb_seasons_dates.season_to_date', '>=', $book_checkout_date)->orderBy('tb_seasons.season_priority', 'asc')->first();\r\n } else {\r\n $checkseason = \\DB::table('tb_properties_category_rooms_price')->join('tb_seasons','tb_seasons.id','=','tb_properties_category_rooms_price.season_id')->join('tb_seasons_dates','tb_seasons_dates.season_id','=','tb_seasons.id')->where('tb_properties_category_rooms_price.property_id', $props->id)->where('tb_properties_category_rooms_price.category_id', $type_id)->where('tb_seasons.property_id', 0)->where('tb_seasons_dates.season_from_date', '<=', $book_arrive_date)->where('tb_seasons_dates.season_to_date', '>=', $book_checkout_date)->first();\r\n }\r\n \r\n if (!empty($checkseason)) { print_r($checkseason); die;\r\n \t\t\t $price = $checkseason->rack_rate;\r\n $extra_adult = $checkseason->extra_adult;\r\n $extra_junior = $checkseason->extra_junior; \r\n \r\n $single_price = $checkseason->single_price;\r\n $monday_price = ($checkseason->monday_price > 0) ? $checkseason->monday_price : $price; \r\n $tuesday_price = ($checkseason->tuesday_price > 0) ? $checkseason->tuesday_price : $price; \r\n $wednesday_price = ($checkseason->wednesday_price > 0) ? $checkseason->wednesday_price : $price; \r\n $thursday_price = ($checkseason->thursday_price > 0) ? $checkseason->thursday_price : $price; \r\n $friday_price = ($checkseason->friday_price > 0) ? $checkseason->friday_price : $price; \r\n $saturday_price = ($checkseason->saturday_price > 0) ? $checkseason->saturday_price : $price; \r\n $sunday_price = ($checkseason->sunday_price > 0) ? $checkseason->sunday_price : $price; \r\n \r\n } else {\r\n $checkseasonPrice_ifnotanyseason = \\DB::table('tb_properties_category_rooms_price')->select('tb_properties_category_rooms_price.*')->where('season_id', 0)->where('property_id', $props->id)->where('category_id', $type_id)->first();\r\n if (!empty($checkseasonPrice_ifnotanyseason)) { \r\n $price = $checkseasonPrice_ifnotanyseason->rack_rate;\r\n $extra_adult = $checkseasonPrice_ifnotanyseason->extra_adult;\r\n $extra_junior = $checkseasonPrice_ifnotanyseason->extra_junior; \r\n \r\n $single_price = $checkseasonPrice_ifnotanyseason->single_price;\r\n $monday_price = ($checkseasonPrice_ifnotanyseason->monday_price > 0) ? $checkseasonPrice_ifnotanyseason->monday_price : $price; \r\n $tuesday_price = ($checkseasonPrice_ifnotanyseason->tuesday_price > 0) ? $checkseasonPrice_ifnotanyseason->tuesday_price : $price; \r\n $wednesday_price = ($checkseasonPrice_ifnotanyseason->wednesday_price > 0) ? $checkseasonPrice_ifnotanyseason->wednesday_price : $price; \r\n $thursday_price = ($checkseasonPrice_ifnotanyseason->thursday_price > 0) ? $checkseasonPrice_ifnotanyseason->thursday_price : $price; \r\n $friday_price = ($checkseasonPrice_ifnotanyseason->friday_price > 0) ? $checkseasonPrice_ifnotanyseason->friday_price : $price; \r\n $saturday_price = ($checkseasonPrice_ifnotanyseason->saturday_price > 0) ? $checkseasonPrice_ifnotanyseason->saturday_price : $price; \r\n $sunday_price = ($checkseasonPrice_ifnotanyseason->sunday_price > 0) ? $checkseasonPrice_ifnotanyseason->sunday_price : $price; \r\n }\r\n }\r\n \r\n $day_w_price = array($sunday_price, $monday_price, $tuesday_price, $wednesday_price, $thursday_price, $friday_price, $saturday_price);\r\n \r\n $diff = strtotime($book_checkout_date) - strtotime($book_arrive_date);\r\n $staytime = ($diff/86400)+1;\r\n \r\n $amt = $this->get_daywise_price($book_arrive_date, $staytime, $day_w_price);\r\n \r\n $total_amount = $total_amount + $amt; //($staytime*$price);\r\n //echo $total_amount;\r\n /*if($staytime < $rooms[0]->minimum_stay){ \r\n $flag = false;\r\n $return['status'] = \"error\";\r\n $return['minimumstay'] = true;\r\n $arr_type[] = array('category'=>$rooms[0]->category_name, 'min_stay'=>$rooms[0]->minimum_stay);\r\n //$return[] =\r\n }else{*/\r\n if(count($rooms)>0){ \r\n $rooms_data['reservation_id'] = $resid;\r\n $rooms_data['type_id'] = $type_id;\r\n $rooms_data['room_id'] = $rmid;\r\n if($booking_adults[$j] > $rooms[0]->guests_adults)\r\n {\r\n $noof_extra_adult = $booking_adults[$j] - $rooms[0]->guests_adults;\r\n $total_amount = $total_amount + ($noof_extra_adult * $extra_adult * $staytime);\r\n }\r\n $rooms_data['booking_adults'] = $booking_adults[$j];\r\n if($booking_children[$j] > $rooms[0]->guests_juniors)\r\n {\r\n $noof_extra_child = $booking_children[$j] - $rooms[0]->guests_juniors;\r\n $total_amount = $total_amount + ($noof_extra_child * $extra_junior * $staytime);\r\n }\r\n $rooms_data['booking_children'] = $booking_children[$j];\r\n $rooms_data['price'] = $price; \r\n $f_reserved_rooms[] = $rooms_data; \r\n \\DB::table('td_reserved_rooms')->insertGetId($rooms_data);\r\n }\r\n /*}*/\r\n \r\n }\r\n //print_r($total_amount);\r\n //die;\r\n /* foreach ($booking_adults as $key => $booking_adult) {\r\n $type_id = $booking_Room_type[$key]==0 ? $request->input('roomType') : $booking_Room_type[$key];\r\n //$rooms = \\DB::table(\"tb_properties_category_rooms\")->where('category_id', $type_id)->where('room_active_from', '<=', $book_arrive_date)->where_not_in(DB::raw())->get();\r\n $rmid = '';\r\n $query = \"select * from tb_properties_category_rooms pcr inner join tb_properties_category_types pct on pct.id=pcr.category_id where pcr.room_active_from <= '\".$book_arrive_date.\"' and pcr.room_active_to >='\".$book_checkout_date.\"' and pcr.category_id=\".$type_id.\" and pcr.id not IN (select td_reserved_rooms.room_id from tb_reservations INNER join td_reserved_rooms on td_reserved_rooms.reservation_id=tb_reservations.id where '\".$book_arrive_date.\"' BETWEEN checkin_date and checkout_date or '\".$book_checkout_date.\"' BETWEEN checkin_date and checkout_date)\";\r\n $rooms = DB::select($query);\r\n if(count($rooms)>0){ \r\n $rmid = $rooms[0]->id; \r\n }\r\n print_r($rooms);\r\n if ($props->default_seasons != 1) {\r\n $checkseason = \\DB::table('tb_properties_category_rooms_price')->join('tb_seasons','tb_seasons.id','=','tb_properties_category_rooms_price.season_id')->join('tb_seasons_dates','tb_seasons_dates.season_id','=','tb_seasons.id')->select('tb_properties_category_rooms_price.rack_rate')->where('tb_properties_category_rooms_price.property_id', $props->id)->where('tb_properties_category_rooms_price.category_id', $request->input('roomType'))->where('tb_seasons.property_id', $props->id)->where('tb_seasons_dates.season_from_date', '<=', $book_arrive_date)->where('tb_seasons_dates.season_to_date', '>=', $book_checkout_date)->orderBy('tb_seasons.season_priority', 'asc')->first();\r\n } else {\r\n $checkseason = \\DB::table('tb_properties_category_rooms_price')->join('tb_seasons','tb_seasons.id','=','tb_properties_category_rooms_price.season_id')->join('tb_seasons_dates','tb_seasons_dates.season_id','=','tb_seasons.id')->select('tb_properties_category_rooms_price.rack_rate')->where('tb_properties_category_rooms_price.property_id', $props->id)->where('tb_properties_category_rooms_price.category_id', $request->input('roomType'))->where('tb_seasons.property_id', 0)->where('tb_seasons_dates.season_from_date', '<=', $book_arrive_date)->where('tb_seasons_dates.season_to_date', '>=', $book_checkout_date)->first();\r\n }\r\n \r\n if (!empty($checkseason)) {\r\n \t\t\t $price = $checkseason->rack_rate;\r\n } else {\r\n $checkseasonPrice_ifnotanyseason = \\DB::table('tb_properties_category_rooms_price')->select('rack_rate')->where('season_id', 0)->where('property_id', $props->id)->where('category_id', $request->input('roomType'))->first();\r\n if (!empty($checkseasonPrice_ifnotanyseason)) {\r\n $price = $checkseasonPrice_ifnotanyseason->rack_rate;\r\n }\r\n }\r\n \r\n \r\n $diff = strtotime($book_checkout_date) - strtotime($book_arrive_date);\r\n $staytime = ($diff/86400)+1;\r\n \r\n \r\n //$rooms_data['reservation_id'] = $resid;\r\n $rooms_data['type_id'] = $booking_Room_type[$key]==0 ? $request->input('roomType') : $booking_Room_type[$key];\r\n $rooms_data['room_id'] = $rmid;\r\n $rooms_data['booking_adults'] = $booking_adult;\r\n $rooms_data['booking_children'] = $booking_children[$key];\r\n //\\DB::table('td_reserved_rooms')->insertGetId($rooms_data);\r\n }*/\r\n } //die;\r\n $_discount = 0;\r\n if($discount_apply!=''){\r\n $_discount = ($total_amount*10/100);\r\n //$data['discount'] = $discount;\r\n }\r\n $commision_amt = 0;\r\n $commision_app_amt = (int)($total_amount - $_discount);\r\n $per_comm = $props->commission;\r\n if($commision_app_amt > 0){\r\n $commision_amt = (int)($commision_app_amt * $per_comm)/100;\r\n }\r\n /*if(!$flag){\r\n if(!empty($arr_type)){\r\n $msg = '';\r\n foreach($arr_type as $s_type){\r\n $msg.=\"This \".$s_type['category'].\" allowed mininum \".$s_type['min_stay'].\" days stay <br />\";\r\n } \r\n $return['message'] = \"There are following error <br>\";\r\n }\r\n }\r\n echo json_encode($return);\r\ndie; */\r\n /*\r\n * Save booking preferences\r\n */\r\n\r\n $bp_data['reservation_id'] = $resid;\r\n $bp_data['already_stayed'] = $request->input('already_stayed');\r\n $bp_data['arrival_time'] = $request->input('arrival_time_hh') . ':' . $request->input('arrival_time_mm');\r\n $bp_data['first_name'] = $request->input('bp_first_name');\r\n $bp_data['last_name'] = $request->input('bp_last_name');\r\n $bp_data['relationship'] = $request->input('relationship');\r\n $bp_data['purpose_of_stay'] = $request->input('purpose_of_stay');\r\n $bp_data['stay_details'] = $request->input('stay_details');\r\n $bp_data['desired_room_temperature'] = $request->input('desired_room_temperature');\r\n $bp_data['smoking_preference'] = $request->input('smoking_preference');\r\n $bp_data['rollaway_bed'] = (!is_null($request->input('rollaway_bed')) && $request->input('rollaway_bed') != '') ? 'Yes' : 'No';\r\n $bp_data['crib'] = (!is_null($request->input('crib')) && $request->input('crib') != '') ? 'Yes' : 'No';\r\n $bp_data['wheelchair_accessible'] = (!is_null($request->input('wheelchair_accessible')) && $request->input('wheelchair_accessible') != '') ? 'Yes' : 'No';\r\n $bp_data['generally_am_size'] = $request->input('generally_am_size');\r\n $bp_data['pillow_firmness'] = $request->input('pillow_firmness');\r\n $bp_data['pillow_type'] = $request->input('pillow_type');\r\n $bp_data['bed_style'] = $request->input('bed_style');\r\n $bp_data['generally_sleep_on'] = $request->input('generally_sleep_on');\r\n $bp_data['art'] = (!is_null($request->input('art')) && $request->input('art') != '') ? 'Yes' : 'No';\r\n $bp_data['architecture_interior_design'] = (!is_null($request->input('architecture_interior_design')) && $request->input('architecture_interior_design') != '') ? 'Yes' : 'No';\r\n $bp_data['cigars'] = (!is_null($request->input('cigars')) && $request->input('cigars') != '') ? 'Yes' : 'No';\r\n $bp_data['dance'] = (!is_null($request->input('dance')) && $request->input('dance') != '') ? 'Yes' : 'No';\r\n $bp_data['fashion'] = (!is_null($request->input('fashion')) && $request->input('fashion') != '') ? 'Yes' : 'No';\r\n $bp_data['gastronomy'] = (!is_null($request->input('gastronomy')) && $request->input('gastronomy') != '') ? 'Yes' : 'No';\r\n $bp_data['literature'] = (!is_null($request->input('literature')) && $request->input('literature') != '') ? 'Yes' : 'No';\r\n $bp_data['music'] = (!is_null($request->input('music')) && $request->input('music') != '') ? 'Yes' : 'No';\r\n $bp_data['nature'] = (!is_null($request->input('nature')) && $request->input('nature') != '') ? 'Yes' : 'No';\r\n $bp_data['photography'] = (!is_null($request->input('photography')) && $request->input('photography') != '') ? 'Yes' : 'No';\r\n $bp_data['science'] = (!is_null($request->input('science')) && $request->input('science') != '') ? 'Yes' : 'No';\r\n $bp_data['technology'] = (!is_null($request->input('technology')) && $request->input('technology') != '') ? 'Yes' : 'No';\r\n $bp_data['travel'] = (!is_null($request->input('travel')) && $request->input('travel') != '') ? 'Yes' : 'No';\r\n $bp_data['watches'] = (!is_null($request->input('watches')) && $request->input('watches') != '') ? 'Yes' : 'No';\r\n $bp_data['wines_spirits'] = (!is_null($request->input('wines_spirits')) && $request->input('wines_spirits') != '') ? 'Yes' : 'No';\r\n $bp_data['other_interests'] = $request->input('other_interests');\r\n $bp_data['snorkeling'] = (!is_null($request->input('snorkeling')) && $request->input('snorkeling') != '') ? 'Yes' : 'No';\r\n $bp_data['diving'] = (!is_null($request->input('diving')) && $request->input('diving') != '') ? 'Yes' : 'No';\r\n $bp_data['sailing'] = (!is_null($request->input('sailing')) && $request->input('sailing') != '') ? 'Yes' : 'No';\r\n $bp_data['tennis'] = (!is_null($request->input('tennis')) && $request->input('tennis') != '') ? 'Yes' : 'No';\r\n $bp_data['golf'] = (!is_null($request->input('golf')) && $request->input('golf') != '') ? 'Yes' : 'No';\r\n $bp_data['motorized_water_sports'] = (!is_null($request->input('motorized_water_sports')) && $request->input('motorized_water_sports') != '') ? 'Yes' : 'No';\r\n $bp_data['spa_treatments'] = (!is_null($request->input('spa_treatments')) && $request->input('spa_treatments') != '') ? 'Yes' : 'No';\r\n $bp_data['hair_treatments'] = (!is_null($request->input('hair_treatments')) && $request->input('hair_treatments') != '') ? 'Yes' : 'No';\r\n $bp_data['fitness'] = (!is_null($request->input('fitness')) && $request->input('fitness') != '') ? 'Yes' : 'No';\r\n $bp_data['pool'] = (!is_null($request->input('pool')) && $request->input('pool') != '') ? 'Yes' : 'No';\r\n $bp_data['yoga'] = (!is_null($request->input('yoga')) && $request->input('yoga') != '') ? 'Yes' : 'No';\r\n $bp_data['pilates'] = (!is_null($request->input('pilates')) && $request->input('pilates') != '') ? 'Yes' : 'No';\r\n $bp_data['meditation'] = (!is_null($request->input('meditation')) && $request->input('meditation') != '') ? 'Yes' : 'No';\r\n $bp_data['prefer_language'] = ($request->input('prefer_language') == 'Other') ? $request->input('prefer_language_other') : $request->input('prefer_language');\r\n $bp_data['vegetarian'] = (!is_null($request->input('vegetarian')) && $request->input('vegetarian') != '') ? 'Yes' : 'No';\r\n $bp_data['halal'] = (!is_null($request->input('halal')) && $request->input('halal') != '') ? 'Yes' : 'No';\r\n $bp_data['kosher'] = (!is_null($request->input('kosher')) && $request->input('kosher') != '') ? 'Yes' : 'No';\r\n $bp_data['gluten_free'] = (!is_null($request->input('gluten_free')) && $request->input('gluten_free') != '') ? 'Yes' : 'No';\r\n $bp_data['ovo_lactarian'] = (!is_null($request->input('ovo_lactarian')) && $request->input('ovo_lactarian') != '') ? 'Yes' : 'No';\r\n $bp_data['favourite_dishes'] = $request->input('favourite_dishes');\r\n $bp_data['food_allergies'] = $request->input('food_allergies');\r\n $bp_data['known_allergies'] = $request->input('known_allergies');\r\n $bp_data['savory_snacks'] = (!is_null($request->input('savory_snacks')) && $request->input('savory_snacks') != '') ? 'Yes' : 'No';\r\n $bp_data['any_sweet_snacks'] = (!is_null($request->input('any_sweet_snacks')) && $request->input('any_sweet_snacks') != '') ? 'Yes' : 'No';\r\n $bp_data['chocolate_based_pastries'] = (!is_null($request->input('chocolate_based_pastries')) && $request->input('chocolate_based_pastries') != '') ? 'Yes' : 'No';\r\n $bp_data['fruit_based_pastries'] = (!is_null($request->input('fruit_based_pastries')) && $request->input('fruit_based_pastries') != '') ? 'Yes' : 'No';\r\n $bp_data['seasonal_fruits'] = (!is_null($request->input('seasonal_fruits')) && $request->input('seasonal_fruits') != '') ? 'Yes' : 'No';\r\n $bp_data['exotic_fruits'] = (!is_null($request->input('exotic_fruits')) && $request->input('exotic_fruits') != '') ? 'Yes' : 'No';\r\n $bp_data['dried_fruits_and_nuts'] = (!is_null($request->input('dried_fruits_and_nuts')) && $request->input('dried_fruits_and_nuts') != '') ? 'Yes' : 'No';\r\n $bp_data['espresso'] = (!is_null($request->input('espresso')) && $request->input('espresso') != '') ? 'Yes' : 'No';\r\n $bp_data['cafe_au_lait'] = (!is_null($request->input('cafe_au_lait')) && $request->input('cafe_au_lait') != '') ? 'Yes' : 'No';\r\n $bp_data['tea'] = (!is_null($request->input('tea')) && $request->input('tea') != '') ? 'Yes' : 'No';\r\n $bp_data['herbal_tea'] = (!is_null($request->input('herbal_tea')) && $request->input('herbal_tea') != '') ? 'Yes' : 'No';\r\n $bp_data['hot_chocolate'] = (!is_null($request->input('hot_chocolate')) && $request->input('hot_chocolate') != '') ? 'Yes' : 'No';\r\n $bp_data['coca'] = (!is_null($request->input('coca')) && $request->input('coca') != '') ? 'Yes' : 'No';\r\n $bp_data['diet_coke'] = (!is_null($request->input('diet_coke')) && $request->input('diet_coke') != '') ? 'Yes' : 'No';\r\n $bp_data['pepsi'] = (!is_null($request->input('pepsi')) && $request->input('pepsi') != '') ? 'Yes' : 'No';\r\n $bp_data['diet_pepsi'] = (!is_null($request->input('diet_pepsi')) && $request->input('diet_pepsi') != '') ? 'Yes' : 'No';\r\n $bp_data['orange_soda'] = (!is_null($request->input('orange_soda')) && $request->input('orange_soda') != '') ? 'Yes' : 'No';\r\n $bp_data['lemon_soda'] = (!is_null($request->input('lemon_soda')) && $request->input('lemon_soda') != '') ? 'Yes' : 'No';\r\n $bp_data['served_with_lemon'] = (!is_null($request->input('served_with_lemon')) && $request->input('served_with_lemon') != '') ? 'Yes' : 'No';\r\n $bp_data['served_with_ice_cubes'] = (!is_null($request->input('served_with_ice_cubes')) && $request->input('served_with_ice_cubes') != '') ? 'Yes' : 'No';\r\n $bp_data['preferred_aperitif'] = $request->input('preferred_aperitif');\r\n $bp_data['upcoming_visit_remarks'] = $request->input('upcoming_visit_remarks');\r\n\r\n \\DB::table('td_booking_preferences')->insertGetId($bp_data);\r\n\r\n /*\r\n * Save user info\r\n */\r\n\r\n $userData['title'] = $request->input('title');\r\n $userData['first_name'] = $request->input('first_name');\r\n $userData['last_name'] = $request->input('last_name');\r\n $userData['birthday'] = $request->input('birthday_yyyy') . '-' . $request->input('birthday_mm') . '-' . $request->input('birthday_dd');\r\n $userData['address'] = $request->input('address');\r\n $userData['city'] = $request->input('city');\r\n $userData['zip_code'] = $request->input('zip_code');\r\n $userData['country'] = $request->input('country');\r\n $userData['landline_code'] = $request->input('landline_code');\r\n $userData['landline_number'] = $request->input('landline_number');\r\n $userData['mobile_code'] = $request->input('mobile_code');\r\n $userData['mobile_number'] = $request->input('mobile_number');\r\n //$userData['email'] = $request->input('email');\r\n $userData['prefer_communication_with'] = $request->input('prefer_communication_with');\r\n\r\n $userData['card_number'] = base64_encode($request->input('card_number'));\r\n $userData['card_type'] = base64_encode($request->input('card_type'));\r\n $userData['expiry_month'] = base64_encode($request->input('expiry_month'));\r\n $userData['expiry_year'] = base64_encode($request->input('expiry_year'));\r\n\r\n $checkUser = \\DB::table('tb_users')->where('email', $request->input('email'))->get();\r\n\r\n /*if (empty($checkUser)) {\r\n\r\n $userData['username'] = $request->input('email');\r\n $userData['email'] = $request->input('email');\r\n $userData['password'] = \\Hash::make($request->input('password'));\r\n $userData['group_id'] = 3;\r\n $userData['active'] = 1;\r\n $userData['last_login'] = date(\"Y-m-d H:i:s\");\r\n $userData['created_at'] = date('Y-m-d h:i:s');\r\n\r\n $user_id = \\DB::table('tb_users')->insertGetId($userData);\r\n \\DB::table('tb_reservations')->where('id', $resid)->update(array('client_id' => $user_id));\r\n } else {\r\n \\DB::table('tb_users')->where('id', $uid)->update($userData);\r\n }*/\r\n \r\n $booking_number = '101'.str_pad($resid, 5, 0, STR_PAD_LEFT);\r\n \\DB::table('tb_reservations')->where('id', $resid)->update(array('booking_number' => $booking_number, 'total_price'=>$total_amount, 'discount'=>$_discount, 'total_commission'=>$commision_amt));\r\n /*\r\n * Send email notification\r\n */ \r\n\r\n $reservation = \\DB::table('tb_reservations')->where('id', $resid)->first();\r\n $preferences = \\DB::table('td_booking_preferences')->where('reservation_id', $reservation->id)->first();\r\n $rooms = \\DB::table('td_reserved_rooms')->where('reservation_id', $reservation->id)->get();\r\n $user_info = \\DB::table('tb_users')->where('id', $reservation->client_id)->first();\r\n $property = \\DB::table('tb_properties')->where('id', $reservation->property_id)->first();\r\n $type = \\DB::table('tb_properties_category_types')->where('id', $reservation->type_id)->first();\r\n $type_image = \\DB::table('tb_properties_images')->join('tb_container_files', 'tb_container_files.id', '=', 'tb_properties_images.file_id')->select('tb_properties_images.*', 'tb_container_files.file_name', 'tb_container_files.file_size', 'tb_container_files.file_type', 'tb_container_files.folder_id')->where('tb_properties_images.property_id', $reservation->property_id)->where('tb_properties_images.category_id', $reservation->type_id)->where('tb_properties_images.type', 'Rooms Images')->orderBy('tb_container_files.file_sort_num', 'asc')->first();\r\n $type_image->imgsrc = (new ContainerController)->getThumbpath($type_image->folder_id);\r\n $hotel_terms_n_conditions = \\DB::table('td_property_terms_n_conditions')->where('property_id', $reservation->property_id)->first();\r\n $reserved_rooms = \\DB::table('td_reserved_rooms')->join('tb_properties_category_types', 'tb_properties_category_types.id', '=', 'td_reserved_rooms.type_id')->where('reservation_id', $reservation->id)->get();\r\n //$reserved_rooms = \\DB::table('td_reserved_rooms')->join('tb_properties_category_types', 'tb_properties_category_types.id', '=', 'td_reserved_rooms.type_id')->join('tb_properties_category_rooms_price', 'tb_properties_category_rooms_price.category_id', '=', 'td_reserved_rooms.type_id')->where('reservation_id', $reservation->id)->get();\r\n\r\n $bookingEmail = base_path() . \"/resources/views/user/emails/booking_notification.blade.php\";\r\n $bookingEmailTemplate = file_get_contents($bookingEmail);\r\n \r\n $reservation_price = $reservation->price;\r\n if($discount_apply!=''){\r\n $discount_price = ($reservation->price*10/100);\r\n $org_price = $reservation->price - $discount_price;\r\n $reservation_price = $org_price;\r\n }\r\n\r\n $bookingEmailTemplate = str_replace('{reservation_id}', 'DL-' . date('d.m.y') . '-' . $reservation->id, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{checkin_date}', date('M d, Y', strtotime($reservation->checkin_date)), $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{checkout_date}', date('M d, Y', strtotime($reservation->checkout_date)), $bookingEmailTemplate);\r\n //$bookingEmailTemplate = str_replace('{price}', '€' . $reservation->price, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{price}', '€' . $reservation_price, $bookingEmailTemplate);\r\n\r\n $bookingEmailTemplate = str_replace('{already_stayed}', $preferences->already_stayed, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{family_name}', trim($preferences->first_name . ' ' . $preferences->last_name), $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{relationship}', $preferences->relationship, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{purpose_of_stay}', $preferences->purpose_of_stay, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{stay_details}', $preferences->stay_details, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{desired_room_temperature}', $preferences->desired_room_temperature, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{smoking_preference}', $preferences->smoking_preference, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{rollaway_bed}', $preferences->rollaway_bed, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{crib}', $preferences->crib, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{wheelchair_accessible}', $preferences->wheelchair_accessible, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{generally_am_size}', $preferences->generally_am_size, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{pillow_firmness}', $preferences->pillow_firmness, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{pillow_type}', $preferences->pillow_type, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{bed_style}', $preferences->bed_style, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{generally_sleep_on}', $preferences->generally_sleep_on, $bookingEmailTemplate);\r\n\r\n $cultural_interests_values = array();\r\n if ($preferences->art == 'Yes') {\r\n $cultural_interests_values[] = 'Art';\r\n }\r\n if ($preferences->architecture_interior_design == 'Yes') {\r\n $cultural_interests_values[] = 'Architecture & Interior Design';\r\n }\r\n if ($preferences->cigars == 'Yes') {\r\n $cultural_interests_values[] = 'Cigars';\r\n }\r\n if ($preferences->dance == 'Yes') {\r\n $cultural_interests_values[] = 'Dance';\r\n }\r\n if ($preferences->fashion == 'Yes') {\r\n $cultural_interests_values[] = 'Fashion';\r\n }\r\n if ($preferences->gastronomy == 'Yes') {\r\n $cultural_interests_values[] = 'Gastronomy';\r\n }\r\n if ($preferences->literature == 'Yes') {\r\n $cultural_interests_values[] = 'Literature';\r\n }\r\n if ($preferences->music == 'Yes') {\r\n $cultural_interests_values[] = 'Music';\r\n }\r\n if ($preferences->nature == 'Yes') {\r\n $cultural_interests_values[] = 'Nature';\r\n }\r\n if ($preferences->photography == 'Yes') {\r\n $cultural_interests_values[] = 'Photography';\r\n }\r\n if ($preferences->science == 'Yes') {\r\n $cultural_interests_values[] = 'Science';\r\n }\r\n if ($preferences->technology == 'Yes') {\r\n $cultural_interests_values[] = 'Technology';\r\n }\r\n if ($preferences->travel == 'Yes') {\r\n $cultural_interests_values[] = 'Travel';\r\n }\r\n if ($preferences->watches == 'Yes') {\r\n $cultural_interests_values[] = 'Watches';\r\n }\r\n if ($preferences->wines_spirits == 'Yes') {\r\n $cultural_interests_values[] = 'Wines & Spirits';\r\n }\r\n\r\n if (!empty($cultural_interests_values)) {\r\n $cultural_interests_list = '<ul style=\"float: left; width: calc(50% - 30px);\">';\r\n foreach ($cultural_interests_values as $key => $cultural_interests_value) {\r\n $cultural_interests_list .= '<li>' . $cultural_interests_value . '</li>';\r\n if (($key + 1) == (round(count($cultural_interests_values) / 2))) {\r\n $cultural_interests_list .= '</ul>';\r\n $cultural_interests_list .= '<ul style=\"float: left;\">';\r\n }\r\n }\r\n $cultural_interests_list .= '</ul>';\r\n } else {\r\n $cultural_interests_list = '<p></p>';\r\n }\r\n\r\n $bookingEmailTemplate = str_replace('{cultural_interests_list}', $cultural_interests_list, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{other_interests}', $preferences->other_interests, $bookingEmailTemplate);\r\n\r\n $sports_preferences_values = array();\r\n if ($preferences->snorkeling == 'Yes') {\r\n $sports_preferences_values[] = 'Snorkeling';\r\n }\r\n if ($preferences->diving == 'Yes') {\r\n $sports_preferences_values[] = 'Diving';\r\n }\r\n if ($preferences->sailing == 'Yes') {\r\n $sports_preferences_values[] = 'Sailing';\r\n }\r\n if ($preferences->tennis == 'Yes') {\r\n $sports_preferences_values[] = 'Tennis';\r\n }\r\n if ($preferences->golf == 'Yes') {\r\n $sports_preferences_values[] = 'Golf';\r\n }\r\n if ($preferences->motorized_water_sports == 'Yes') {\r\n $sports_preferences_values[] = 'Motorized water sports';\r\n }\r\n\r\n if (!empty($sports_preferences_values)) {\r\n $sports_preferences_list = '<ul style=\"float: left; width: calc(50% - 30px);\">';\r\n foreach ($sports_preferences_values as $key => $sports_preferences_value) {\r\n $sports_preferences_list .= '<li>' . $sports_preferences_value . '</li>';\r\n if (($key + 1) == (round(count($sports_preferences_values) / 2))) {\r\n $sports_preferences_list .= '</ul>';\r\n $sports_preferences_list .= '<ul style=\"float: left;\">';\r\n }\r\n }\r\n $sports_preferences_list .= '</ul>';\r\n } else {\r\n $sports_preferences_list = '<p></p>';\r\n }\r\n\r\n $bookingEmailTemplate = str_replace('{sports_preferences_list}', $sports_preferences_list, $bookingEmailTemplate);\r\n\r\n $wellbeing_preferences_values = array();\r\n if ($preferences->spa_treatments == 'Yes') {\r\n $wellbeing_preferences_values[] = 'Spa treatments';\r\n }\r\n if ($preferences->hair_treatments == 'Yes') {\r\n $wellbeing_preferences_values[] = 'Hair treatments';\r\n }\r\n if ($preferences->fitness == 'Yes') {\r\n $wellbeing_preferences_values[] = 'Fitness';\r\n }\r\n if ($preferences->pool == 'Yes') {\r\n $wellbeing_preferences_values[] = 'Pool';\r\n }\r\n if ($preferences->yoga == 'Yes') {\r\n $wellbeing_preferences_values[] = 'Yoga';\r\n }\r\n if ($preferences->pilates == 'Yes') {\r\n $wellbeing_preferences_values[] = 'Pilates';\r\n }\r\n if ($preferences->meditation == 'Yes') {\r\n $wellbeing_preferences_values[] = 'Meditation';\r\n }\r\n\r\n if (!empty($wellbeing_preferences_values)) {\r\n $wellbeing_preferences_list = '<ul style=\"float: left; width: calc(50% - 30px);\">';\r\n foreach ($wellbeing_preferences_values as $key => $wellbeing_preferences_value) {\r\n $wellbeing_preferences_list .= '<li>' . $wellbeing_preferences_value . '</li>';\r\n if (($key + 1) == (round(count($wellbeing_preferences_values) / 2))) {\r\n $wellbeing_preferences_list .= '</ul>';\r\n $wellbeing_preferences_list .= '<ul style=\"float: left;\">';\r\n }\r\n }\r\n $wellbeing_preferences_list .= '</ul>';\r\n } else {\r\n $wellbeing_preferences_list = '<p></p>';\r\n }\r\n\r\n $bookingEmailTemplate = str_replace('{wellbeing_preferences_list}', $wellbeing_preferences_list, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{prefer_language}', $preferences->prefer_language, $bookingEmailTemplate);\r\n\r\n $dietary_preferences_values = array();\r\n if ($preferences->vegetarian == 'Yes') {\r\n $dietary_preferences_values[] = 'Vegetarian';\r\n }\r\n if ($preferences->halal == 'Yes') {\r\n $dietary_preferences_values[] = 'Halal';\r\n }\r\n if ($preferences->kosher == 'Yes') {\r\n $dietary_preferences_values[] = 'Kosher';\r\n }\r\n if ($preferences->gluten_free == 'Yes') {\r\n $dietary_preferences_values[] = 'Gluten-free';\r\n }\r\n if ($preferences->ovo_lactarian == 'Yes') {\r\n $dietary_preferences_values[] = 'Ovo-lactarian';\r\n }\r\n\r\n if (!empty($dietary_preferences_values)) {\r\n $dietary_preferences_list = '<ul style=\"float: left; width: calc(50% - 30px);\">';\r\n foreach ($dietary_preferences_values as $key => $dietary_preferences_value) {\r\n $dietary_preferences_list .= '<li>' . $dietary_preferences_value . '</li>';\r\n if (($key + 1) == (round(count($dietary_preferences_values) / 2))) {\r\n $dietary_preferences_list .= '</ul>';\r\n $dietary_preferences_list .= '<ul style=\"float: left;\">';\r\n }\r\n }\r\n $dietary_preferences_list .= '</ul>';\r\n } else {\r\n $dietary_preferences_list = '<p></p>';\r\n }\r\n\r\n $bookingEmailTemplate = str_replace('{dietary_preferences_list}', $dietary_preferences_list, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{favourite_dishes}', $preferences->favourite_dishes, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{food_allergies}', $preferences->food_allergies, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{known_allergies}', $preferences->known_allergies, $bookingEmailTemplate);\r\n\r\n $snacks_preferences_values = array();\r\n if ($preferences->savory_snacks == 'Yes') {\r\n $snacks_preferences_values[] = 'Savory snacks';\r\n }\r\n if ($preferences->any_sweet_snacks == 'Yes') {\r\n $snacks_preferences_values[] = 'Any sweet snacks';\r\n }\r\n if ($preferences->chocolate_based_pastries == 'Yes') {\r\n $snacks_preferences_values[] = 'Chocolate based pastries';\r\n }\r\n if ($preferences->fruit_based_pastries == 'Yes') {\r\n $snacks_preferences_values[] = 'Fruit based pastries';\r\n }\r\n\r\n if (!empty($snacks_preferences_values)) {\r\n $snacks_preferences_list = '<ul style=\"float: left; width: calc(50% - 30px);\">';\r\n foreach ($snacks_preferences_values as $key => $snacks_preferences_value) {\r\n $snacks_preferences_list .= '<li>' . $snacks_preferences_value . '</li>';\r\n if (($key + 1) == (round(count($snacks_preferences_values) / 2))) {\r\n $snacks_preferences_list .= '</ul>';\r\n $snacks_preferences_list .= '<ul style=\"float: left;\">';\r\n }\r\n }\r\n $snacks_preferences_list .= '</ul>';\r\n } else {\r\n $snacks_preferences_list = '<p></p>';\r\n }\r\n\r\n $bookingEmailTemplate = str_replace('{snacks_preferences_list}', $snacks_preferences_list, $bookingEmailTemplate);\r\n\r\n $fruits_preferences_values = array();\r\n if ($preferences->seasonal_fruits == 'Yes') {\r\n $fruits_preferences_values[] = 'Seasonal fruits';\r\n }\r\n if ($preferences->exotic_fruits == 'Yes') {\r\n $fruits_preferences_values[] = 'Exotic fruits';\r\n }\r\n if ($preferences->dried_fruits_and_nuts == 'Yes') {\r\n $fruits_preferences_values[] = 'Dried fruits and nuts';\r\n }\r\n\r\n if (!empty($fruits_preferences_values)) {\r\n $fruits_preferences_list = '<ul style=\"float: left; width: calc(50% - 30px);\">';\r\n foreach ($fruits_preferences_values as $key => $fruits_preferences_value) {\r\n $fruits_preferences_list .= '<li>' . $fruits_preferences_value . '</li>';\r\n if (($key + 1) == (round(count($fruits_preferences_values) / 2))) {\r\n $fruits_preferences_list .= '</ul>';\r\n $fruits_preferences_list .= '<ul style=\"float: left;\">';\r\n }\r\n }\r\n $fruits_preferences_list .= '</ul>';\r\n } else {\r\n $fruits_preferences_list = '<p></p>';\r\n }\r\n\r\n $bookingEmailTemplate = str_replace('{fruits_preferences_list}', $fruits_preferences_list, $bookingEmailTemplate);\r\n\r\n $beverages_preferences_values = array();\r\n if ($preferences->seasonal_fruits == 'Yes') {\r\n $beverages_preferences_values[] = 'Seasonal fruits';\r\n }\r\n if ($preferences->exotic_fruits == 'Yes') {\r\n $beverages_preferences_values[] = 'Exotic fruits';\r\n }\r\n if ($preferences->dried_fruits_and_nuts == 'Yes') {\r\n $beverages_preferences_values[] = 'Dried fruits and nuts';\r\n }\r\n\r\n if (!empty($beverages_preferences_values)) {\r\n $beverages_preferences_list = '<ul style=\"float: left; width: calc(50% - 30px);\">';\r\n foreach ($beverages_preferences_values as $key => $beverages_preferences_value) {\r\n $beverages_preferences_list .= '<li>' . $beverages_preferences_value . '</li>';\r\n if (($key + 1) == (round(count($beverages_preferences_values) / 2))) {\r\n $beverages_preferences_list .= '</ul>';\r\n $beverages_preferences_list .= '<ul style=\"float: left;\">';\r\n }\r\n }\r\n $beverages_preferences_list .= '</ul>';\r\n } else {\r\n $beverages_preferences_list = '<p></p>';\r\n }\r\n\r\n $bookingEmailTemplate = str_replace('{beverages_preferences_list}', $beverages_preferences_list, $bookingEmailTemplate);\r\n\r\n $sodas_preferences_values = array();\r\n if ($preferences->seasonal_fruits == 'Yes') {\r\n $sodas_preferences_values[] = 'Seasonal fruits';\r\n }\r\n if ($preferences->exotic_fruits == 'Yes') {\r\n $sodas_preferences_values[] = 'Exotic fruits';\r\n }\r\n if ($preferences->dried_fruits_and_nuts == 'Yes') {\r\n $sodas_preferences_values[] = 'Dried fruits and nuts';\r\n }\r\n\r\n if (!empty($sodas_preferences_values)) {\r\n $sodas_preferences_list = '<ul style=\"float: left; width: calc(50% - 30px);\">';\r\n foreach ($sodas_preferences_values as $key => $sodas_preferences_value) {\r\n $sodas_preferences_list .= '<li>' . $sodas_preferences_value . '</li>';\r\n if (($key + 1) == (round(count($sodas_preferences_values) / 2))) {\r\n $sodas_preferences_list .= '</ul>';\r\n $sodas_preferences_list .= '<ul style=\"float: left;\">';\r\n }\r\n }\r\n $sodas_preferences_list .= '</ul>';\r\n } else {\r\n $sodas_preferences_list = '<p></p>';\r\n }\r\n\r\n $bookingEmailTemplate = str_replace('{sodas_preferences_list}', $sodas_preferences_list, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{preferred_aperitif}', $preferences->preferred_aperitif, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{upcoming_visit_remarks}', $preferences->upcoming_visit_remarks, $bookingEmailTemplate);\r\n\r\n $bookingEmailTemplate = str_replace('{property_name}', $property->property_name, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{property_city}', $property->city, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{property_country}', $property->country, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{property_website}', $property->website, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{property_phone}', $property->phone, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{property_email}', $property->email, $bookingEmailTemplate);\r\n\r\n $bookingEmailTemplate = str_replace('{category_name}', $type->category_name, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{category_image}', $type_image->imgsrc . $type_image->file_name, $bookingEmailTemplate);\r\n\r\n $bookingEmailTemplate = str_replace('{full_user_name}', trim($user_info->first_name . ' ' . $user_info->last_name), $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{title}', $user_info->title, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{birthday}', date(\"d/m/Y\", strtotime($user_info->birthday)), $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{landline_number}', $user_info->landline_code . '-' . $user_info->landline_number, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{mobile_number}', $user_info->mobile_code . '-' . $user_info->mobile_number, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{prefer_communication_with}', $user_info->prefer_communication_with, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{email}', $user_info->email, $bookingEmailTemplate);\r\n\r\n $total_price = 0;\r\n $html = '';\r\n foreach ($reserved_rooms as $reserved_room) {\r\n //$total_price += ($reservation->number_of_nights * $reservation_price);\r\n //$total_price += ($reservation->number_of_nights * $reserved_room->rack_rate);\r\n $html .= '<tr>\r\n <th width=\"209\" class=\"stack2\" style=\"margin: 0;padding: 0;border-collapse: collapse;\">\r\n <table width=\"209\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"table60032\" style=\"border-bottom-color: #C7AB84;mso-table-lspace: 0pt;mso-table-rspace: 0pt;\">\r\n <tr>\r\n <td colspan=\"3\" height=\"20\" style=\"font-size: 0;line-height:1;border-collapse: collapse;\" class=\"va2\">&nbsp;</td>\r\n </tr>\r\n <tr>\r\n <td width=\"30\" class=\"wz2\" style=\"border-collapse: collapse;\"></td>\r\n <!-- DESCRIPTION -->\r\n <td class=\"header2TD\" style=\"border-collapse: collapse;\" mc:edit=\"mcsec-25\">' . $reserved_room->category_name . '\r\n <br/> </td>\r\n <td width=\"30\" class=\"wz2\" style=\"border-collapse: collapse;\"></td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"3\" height=\"20\" style=\"font-size: 0;line-height:1;border-collapse: collapse;\" class=\"va2\">&nbsp;</td>\r\n </tr>\r\n </table>\r\n </th>\r\n <th width=\"139\" class=\"stack3\" style=\"border-left: 1px solid #C7AB84;margin: 0;padding: 0;border-collapse: collapse;\">\r\n <table width=\"139\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"table60033\" style=\"border-bottom-color: #C7AB84;mso-table-lspace: 0pt;mso-table-rspace: 0pt;\">\r\n <tr>\r\n <td colspan=\"3\" height=\"20\" style=\"font-size: 0;line-height:1;border-collapse: collapse;\" class=\"va2\">&nbsp;</td>\r\n </tr>\r\n <tr>\r\n <td width=\"30\" class=\"wz2\" style=\"border-collapse: collapse;\"></td>\r\n <!-- PRICE -->\r\n <td class=\"RegularText5TD\" style=\"border-collapse: collapse;\" mc:edit=\"mcsec-26\">€' . $reserved_room->price . '</td>\r\n <td width=\"30\" class=\"wz2\" style=\"border-collapse: collapse;\"></td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"3\" height=\"20\" style=\"font-size: 0;line-height:1;border-collapse: collapse;\" class=\"va2\">&nbsp;</td>\r\n </tr>\r\n </table>\r\n </th>\r\n <th width=\"139\" class=\"stack3\" style=\"border-left: 1px solid #C7AB84;margin: 0;padding: 0;border-collapse: collapse;\">\r\n <table width=\"139\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"table60033\" style=\"mso-table-lspace: 0pt;mso-table-rspace: 0pt;\">\r\n <tr>\r\n <td colspan=\"3\" height=\"20\" style=\"font-size: 0;line-height:1;border-collapse: collapse;\" class=\"va2\">&nbsp;</td>\r\n </tr>\r\n <tr>\r\n <td width=\"30\" class=\"wz2\" style=\"border-collapse: collapse;\"></td>\r\n <!-- QUANTITY -->\r\n <td class=\"RegularText5TD\" style=\"border-collapse: collapse;\" mc:edit=\"mcsec-27\">' . $reservation->number_of_nights . '</td>\r\n <td width=\"30\" class=\"wz2\" style=\"border-collapse: collapse;\"></td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"3\" height=\"20\" style=\"font-size: 0;line-height:1;border-collapse: collapse;\" class=\"va2\">&nbsp;</td>\r\n </tr>\r\n </table>\r\n </th>\r\n <th width=\"139\" class=\"stack3\" style=\"border-left: 1px solid #C7AB84;margin: 0;padding: 0;border-collapse: collapse;\">\r\n <table width=\"139\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"table60033\" style=\"mso-table-lspace: 0pt;mso-table-rspace: 0pt;\">\r\n <tr>\r\n <td colspan=\"3\" height=\"20\" style=\"font-size: 0;line-height:1;border-collapse: collapse;\" class=\"va2\">&nbsp;</td>\r\n </tr>\r\n <tr>\r\n <td width=\"30\" class=\"wz2\" style=\"border-collapse: collapse;\"></td>\r\n <!-- TOTAL -->\r\n <td class=\"RegularText5TD\" style=\"border-collapse: collapse;\" mc:edit=\"mcsec-28\">€' . ($reservation->number_of_nights * $reserved_room->price) . '</td>\r\n <td width=\"30\" class=\"wz2\" style=\"border-collapse: collapse;\"></td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"3\" height=\"20\" style=\"font-size: 0;line-height:1;border-collapse: collapse;\" class=\"va2\">&nbsp;</td>\r\n </tr>\r\n </table>\r\n </th>\r\n </tr>';\r\n }\r\n\r\n //$commission_due = $total_price * ($property->commission / 100);\r\n //$grand_total = $commission_due + $total_price;\r\n $total_price = 0;\r\n $total_price = $reservation->total_price;\r\n $commission_due = $reservation->total_commission;\r\n $grand_total = $commission_due + $total_price;\r\n\r\n $bookingEmailTemplate = str_replace('{reserved_rooms}', $html, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{total_price}', '€' . $total_price, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{commission_due}', '€' . $commission_due, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{grand_total}', '€' . $grand_total, $bookingEmailTemplate);\r\n \r\n $hotel_term_and_condition = '';\r\n if(!empty($hotel_terms_n_conditions)){\r\n if(isset($hotel_terms_n_conditions->terms_n_conditions)){\r\n $hotel_term_and_condition = $hotel_terms_n_conditions->terms_n_conditions;\r\n }\r\n }\r\n \r\n $bookingEmailTemplate = str_replace('{hotel_terms_n_conditions}', $hotel_term_and_condition, $bookingEmailTemplate);\r\n $bookingEmailTemplate = str_replace('{property_email}', $property->email, $bookingEmailTemplate);\r\n \r\n \r\n //view('user.emails.'.$tempe, $emailArr);\r\n //print_r($bookingEmailTemplate); die;\r\n //$headers = \"MIME-Version: 1.0\" . \"\\r\\n\";\r\n //$headers .= \"Content-type:text/html;charset=UTF-8\" . \"\\r\\n\";\r\n //$headers .= 'From: ' . CNF_APPNAME . '<[email protected]>' . \"\\r\\n\";\r\n //$headers .= 'From: ' . CNF_APPNAME . '<[email protected]>' . \"\\r\\n\";\r\n //mail($property->email, \"Booking Confirmation\", $bookingEmailTemplate, $headers);\r\n //mail($user_info->email, \"Booking Confirmation\", $bookingEmailTemplate, $headers);\r\n //mail('[email protected]', \"Booking Confirmation\", $bookingEmailTemplate, $headers);\r\n $tempe = 'blank';\r\n $emailArr['msg'] = $bookingEmailTemplate;\r\n \r\n //echo view('user.emails.'.$tempe, $emailArr);\r\n //die;\r\n \r\n $toouser['email'] = $property->email; \r\n\t\t\t//$toouser['subject'] = \"Booking Confirmation\"; \r\n $toouser['subject'] = \"Booking Request\"; \t\t\r\n \\Mail::send('user.emails.'.$tempe, $emailArr, function ($message) use ($toouser) {\r\n $message->to($toouser['email'])\r\n ->subject($toouser['subject'])\r\n ->from('[email protected]', CNF_APPNAME);\r\n });\r\n \r\n $toouser1['email'] = $user_info->email;\r\n\t\t\t//$toouser1['subject'] = \"Booking Confirmation\";\t\r\n $toouser1['subject'] = \"Booking Request\";\r\n \\Mail::send('user.emails.'.$tempe, $emailArr, function ($message) use ($toouser1) {\r\n $message->to($toouser1['email'])\r\n ->subject($toouser1['subject'])\r\n ->from('[email protected]', CNF_APPNAME);\r\n });\r\n \r\n /* * ******************* Email notification end here **************************** */\r\n\r\n /*\r\n * Log in user\r\n */\r\n \r\n if (!\\Auth::check()) {\r\n\r\n $temp = \\Auth::attempt(array('email' => $request->input('email'), 'password' => $request->input('password')), 'false');\r\n\r\n if (\\Auth::attempt(array('email' => $request->input('email'), 'password' => $request->input('password')), 'false')) {\r\n if (\\Auth::check()) {\r\n\r\n $row = User::find(\\Auth::user()->id);\r\n\r\n \\DB::table('tb_users')->where('id', '=', $row->id)->update(array('last_login' => date(\"Y-m-d H:i:s\")));\r\n \\Session::put('uid', $row->id);\r\n \\Session::put('gid', $row->group_id);\r\n \\Session::put('eid', $row->email);\r\n \\Session::put('ll', $row->last_login);\r\n \\Session::put('fid', $row->first_name . ' ' . $row->last_name);\r\n \\Session::put('lang', 'Deutsch');\r\n }\r\n }\r\n }else{\r\n if($discount_apply!=''){ \r\n \\DB::table('tb_user_invitee_discount')->where('id', $discount_apply->id)->update(array('availability' => 0));\r\n }\r\n }\r\n\r\n $res['status'] = 'success';\r\n return json_encode($res);\r\n } else {\r\n\r\n $res['status'] = 'error';\r\n $res['errors'] = $validator->errors()->all();\r\n return json_encode($res);\r\n }\r\n }", "title": "" }, { "docid": "e072ab143715564e00bf834bec456f33", "score": "0.53006303", "text": "public function getEndreservation($teetimeid){\n $this->layout->content = View::make('endreservation')->with('teetimeid', $teetimeid);\n }", "title": "" }, { "docid": "245bf7d6c175eaf88f62c70ac8229f73", "score": "0.52988374", "text": "public function store(Request $request)\n {\n $start_date = $request->input('start_date');\n $start = $start_date.' '.$request->input('start_time');\n $end = $start_date.' '.$request->input('end_time');\n $overlap = $this->checkOverlap(null, $start, $end);\n if ($overlap['overlap']) {\n # Si entra aquí, significa que esta reserva se cruza\n # con otra reserva existente.\n return response()->json([\n 'success' => false,\n 'message' => $overlap['message']\n ]);\n }\n $grupo_especialista = $request->input('especialista');\n $slot = new Slot;\n $slot->slot_date = $request->input('start_date');\n $slot->slot_time_from = $request->input('start_time');\n $slot->slot_time_to = $request->input('end_time');\n $slot->calendar_id = $grupo_especialista;\n $slot->slot_reservation = 1;\n $slot->reservation_message = $request->input('reservation_message');\n $slot->idEstadoVisita = 1;\n $slot->save();\n $reservacion = new Reservacion;\n $reservacion->slot_id = $slot->id;\n $reservacion->TipoDocumento = $request->input('TipoDocumento');\n $reservacion->IdPaciente = $request->input('IdPaciente');\n $reservacion->reservation_name = $request->input('reservation_name');\n $reservacion->reservation_surname = $request->input('reservation_surname');\n $reservacion->reservation_email = $request->input('reservation_email');\n $reservacion->reservation_phone = $request->input('reservation_phone');\n $reservacion->TipoConsulta = $request->input('TipoConsulta');\n $reservacion->reservation_message = $request->input('reservation_message');\n $reservacion->calendar_id = $grupo_especialista;\n $reservacion->idEstadoVisita = 1;\n $reservacion->save();\n $this->sendReservationNotification($reservacion->id);\n return response()->json(['success' => true]);\n }", "title": "" }, { "docid": "478b3d43fd77d0073c233d1413299ac0", "score": "0.529426", "text": "public function calendarVisitToUser($owner_id)\n{\n $resrtvationsToOwner= $this->fR->getReservationByOwnerId($owner_id);\n return view('pages.calendarVisitToUser')->with(['reservations'=>$resrtvationsToOwner]);\n}", "title": "" }, { "docid": "f4f1bed74bffedc829a683d15d66baf7", "score": "0.5292464", "text": "function autoSchedule()\r\n {\r\n\r\n }", "title": "" }, { "docid": "e8d00505e778695c9c08920b2bca8f1f", "score": "0.5291483", "text": "function my_bookings()\n\t{\n\t\t$query = pg_query(\"select * from list_reservations WHERE widz_id=$_SESSION[id];\");\n\t\t\n\t\techo \"<table>\";\n\t\techo \"<tr> <th>Date</th> <th>Up-to-date</th> <th>Title</th></tr>\";\n\t\twhile ($row = pg_fetch_row($query))\n\t\t{\n\t\t\techo \"<tr> <td>$row[1]</td> <td>$row[2]</td> <td>$row[7]</td></tr>\";\n\t\t}\n\t\techo \"</table>\";\n\t\tpg_free_result($query);\n\t}", "title": "" }, { "docid": "bbadde4426cd3e8dd3aa46016c86ab6b", "score": "0.5280258", "text": "public function make_reservation(){\n $this->load->model('reservation/mreservation');\n $pat_id = $this->input->post('patient_id');\n $pat_param = null;\n if($pat_id){\n $this->m->port->p->select('name, surname, telephone, email, insurance_type, insurance, gender');\n $patient_query = $this->m->port->p->get_where('patients',array('id'=>$pat_id),1);\n if($patient_query->num_rows()>0){\n $pat_param = $patient_query->row();\n }\n }\n $insert_param = array(\n 'doctor_id' => $this->input->post('doctor_id')!=0?$this->input->post('doctor_id'):$this->m->user_id(),\n 'patient_id' => $pat_id?$pat_id:'',\n 'termin_id' => $this->input->post('id')!='add'?$this->input->post('id'):0,\n 'start' => $this->input->post('start'),\n 'end' => $this->input->post('end'),\n 'gender' => $pat_id?$pat_param->gender:$this->input->post('gender'), \n 'email' => $pat_id?$pat_param->email:$this->input->post('email'),\n 'first_name' => $pat_id?$pat_param->name:$this->input->post('first_name'),\n 'last_name' => $pat_id?$pat_param->surname:$this->input->post('last_name'),\n 'telephone' => $pat_id?$pat_param->telephone:$this->input->post('telephone'),\n 'insurance' => $pat_id?$pat_param->insurance_type:$this->input->post('insurance_type'),\n 'insurance_provider' => $pat_id?$pat_param->insurance:$this->input->post('insurance_provider'),\n 'text_notes' => $this->input->post('text_notes'),\n );\n $reserve_id = $this->mreservation->insert($insert_param);\n $this->mreservation->updateReserv($reserve_id,array('accept'=>1));\n }", "title": "" }, { "docid": "08649e3ee66b7ae945a42c047f9dc787", "score": "0.52727556", "text": "public function reserve_one() {\n $manager = $this->Auth->user();\n\n // a manager can only have one reserved award at a time\n $params = array(\n 'conditions' => array(\n 'Withdrawal.status' => 'reserved',\n 'Withdrawal.admin_id' => $manager['id']\n )\n );\n $reserved_award = $this->Withdrawal->find('all', $params);\n if(!empty($reserved_award)){\n $this->Session->setFlash(\n 'You already have a reserved withdrawal!',\n 'FlashMessage',\n array('type' => 'warning')\n );\n return $this->redirect(array('action' => 'management', 'admin' => false));\n }\n\n //search for the last withdrawal\n $params = array(\n 'contain' => array(\n 'User',\n 'Ticket' => array(\n 'Lottery' => array(\n 'EveItem' => array('EveCategory')\n )\n ),\n ),\n 'conditions' => array('Withdrawal.status' => array('claimed'), 'Withdrawal.type' => array('award_isk', 'award_item')),\n 'order' => array(\n 'Withdrawal.modified' => 'asc'\n )\n );\n $award = $this->Withdrawal->find('first', $params);\n\n //if there is no withdrawal to reserve\n if(empty($award)){\n $this->Session->setFlash(\n 'No withdrawal to reserve!',\n 'FlashMessage',\n array('type' => 'warning')\n );\n return $this->redirect(array('action' => 'management', 'admin' => false));\n }\n\n $this->Withdrawal->updateAll(\n array(\n 'Withdrawal.admin_id' => $manager['id'],\n 'Withdrawal.status' => \"'reserved'\"),\n array(\n 'Withdrawal.id' => $award['Withdrawal']['id']\n )\n );\n\n $this->Session->setFlash(\n \"You reserved a player's claim\",\n 'FlashMessage',\n array('type' => 'info')\n );\n\n return $this->redirect(array('action' => 'management', 'admin' => false));\n }", "title": "" }, { "docid": "128e76602111be44aa096e73e90b9f85", "score": "0.52609706", "text": "public function view1($room_number,$max_guest, $check_in_date, $check_out_date, $type_name,$bookingCalendar, $customer_id=0) {\n if(!isset($_SESSION['user_id'])) {\n $dashboard = new DashboardController();\n $dashboard->index(); \n }\n else {\n $db = new RoomDetails();\n $rooms = $db->getRoomAll();\n $roomsAll = $db->getRoomID($room_number);\n $room_id = $roomsAll['room_id'];\n $data['rooms'] = $rooms;\n if($customer_id != 0) {\n $customer = new Customer();\n $customerDetails = $customer->getCustomer($customer_id);\n $data['customer'] = $customerDetails;\n }\n // think room search result will be indicate here\n $value=1;\n $data['room_id'] = $room_id;\n $data['discount'] = array(\"value\"=>$value);\n $data['bookingCalendar'] = $bookingCalendar; // normal search add should\n $data['reservation'] = array(\"check_in_date\"=>$check_in_date, \"check_out_date\"=>$check_out_date, \"type_name\"=>$type_name, 'room_number' => $room_number, 'max_guest' => $max_guest);\n view::load('dashboard/reservation/create', $data);\n \n }\n \n }", "title": "" }, { "docid": "4124be902f6d7233ea488690f255a64e", "score": "0.5254253", "text": "function head() {\n global $_lib;\n\n $query = \"select max(RemittanceDaySequence) from invoicein where RemittanceSendtDateTime='\" . $_lib['sess']->get_session('Date') . \"' and Active=1\";\n #print \"Finn h¿yeste dag sekvens: $query\";\n $daysequence = $_lib['storage']->get_row(array('query' => $query));\n\n $query = \"select max(RemittanceSequence) from invoicein where Active=1\";\n #print \"Finn h¿yeste sekvens: $query\";\n $sequence = $_lib['storage']->get_row(array('query' => $query));\n \n #print \"<h2>Her kommer remitteringsfila p&aring; TelePay 2.0.1 formatet</h2>\";\n $transaction = new stdClass();\n $this->transaction->RemittanceSequence = $daysequence->RemittanceSequence + 1; #MŒ kalkuleres og settes\n $this->transaction->RemittanceDaySequence = $daysequence->RemittanceDaySequence; #MŒ kalkuleres og settes\n\n #$this->transaction->BatchID = 99; #MŒ kalkuleres og settes\n $this->transaction->Date = $_lib['sess']->get_session('Date');\n $this->transaction->Datetime = $_lib['sess']->get_session('Datetime');\n $this->transaction->VersionSoftware = '00001.00 LODO';\n \n $old_pattern = array(\"/[^0-9]/\");\n $new_pattern = array(\"\");\n $this->transaction->CustomerOrgNumber = strtolower(preg_replace($old_pattern, $new_pattern , $_lib['sess']->get_companydef('OrgNumber'))); \n $this->transaction->CustomerName = $_lib['sess']->get_companydef('CompanyName');\n $this->transaction->Database = $_SETUP['DB_NAME']['0'];\n \n $this->transaction->NumTransactions = 0;\n $this->transaction->TotalAmount = 0;\n $this->transaction->NumRecords = 0; \n\n if(!$InvoiceO->CustomerBankAccount) { #Sjekke lengde og modulus pŒ kontonummer ogsŒ\n $_lib['message']->Add(\"Betalerkonto mangler\");\n return;\n }\n if(!$this->transaction->CustomerOrgNumber) {\n $_lib['message']->Add(\"Orgnummer/personnummer mangler p&aring; betaler\");\n return;\n }\n }", "title": "" }, { "docid": "fd5dd3ca512b546293c6ecdc1e393316", "score": "0.5254024", "text": "public function vacation_registerPT() {\n\t\t$colaboradores=$this->user_model->getPagination(null);\n\n\t\tforeach ($colaboradores as $colaborador):\n\t\t\t\n\t\t\t$aniversario = date('m-d',strtotime($colaborador->fecha_ingreso));\n\n\t\t\t$ingreso = new DateTime($colaborador->fecha_ingreso);\n\t\t\t$hoy = new DateTime(date('Y-m-d'));\n\t\t\t$diferencia = $ingreso->diff($hoy);\n\t\t\t$ingreso->add(new DateInterval('P'.$diferencia->y.'Y'));\n\t\t\t$actualidad = new DateTime($ingreso->format('Y-m-d'));\n\t\t\t$actualidad->add(new DateInterval('P18M'));\n\t\t\t$caducidad = $actualidad->format('Y-m-d');\n\t\t\t\n\t\t\techo $colaborador->id.\"<br>\".$colaborador->nombre.\"<br>Ingreso: \".$colaborador->fecha_ingreso.\"<br>Años: \".$diferencia->y.\"<br>Cumplimiento: \".$ingreso->format('Y-m-d').\"<br>Caducidad: \".$caducidad.\"<br><br>\";\n//-----------------------------\n\t\t\t/*echo \"<br>\".$colaborador->id.\"<br>\".$colaborador->nombre.\"<br>Ingreso: \".$colaborador->fecha_ingreso;\n\t\t\t$fecha = new DateTime($colaborador->fecha_ingreso);\n\n\t\t\t$hoy = new DateTime(date('Y-m-d'));\n\n\t\t\t\n\t\t\t$diff = $fecha->diff($hoy);\n\n\t\t\t$fecha->add(new DateInterval('P'.$diff->y.'Y'));\n\t\t\techo \"<br>Cumplimiento: \".$fecha->format('Y-m-d').\"<br> Años: \".$diff->y.\"<br>\";\n\t\t\t//echo \"<br>\".$diff->y;\n\n\t\t\t$fv = new DateTime($fecha->format('Y-m-d'));\n\t\t\t$fv->add(new DateInterval('P18M'));\n\t\t\techo \"Caducidad: \".$fv->format('Y-m-d').\"<br>\";*/\n\t\t\t//echo strtotime('+18 month',strtotime($colaborador->fecha_ingreso)).\"<br>\";\n\n\t\t\t/*$fecha = new DateTime($colaborador->fecha_ingreso);\n\t\t\t\t\techo $fecha->add(new DateInterval('P18M'))->format('Y-m-d').\"<br>\";*/\n\t\t// ---------------------------\n\n\t\t\tif($aniversario == date('m-d')):\n\n\t\t\t\t$ingreso=new DateTime($colaborador->fecha_ingreso);\n\t\t\t\t$hoy=new DateTime(date('Y-m-d'));\n\t\t\t\t$diff = $ingreso->diff($hoy);\n\t\t\t\t\n\t\t\t\tswitch ($diff->y):\n\t\t\t\t\tcase 0: $dias=0;\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1: $dias=6;\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2: $dias=8;\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3: $dias=10;\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4: $dias=12;\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 5:case 6:case 7:case 8:case 9: $dias=14;\t\t\tbreak;\n\t\t\t\t\tcase 10:case 11:case 12:case 13:case 14: $dias=16;\t\tbreak;\n\t\t\t\t\tcase 15:case 16:case 17:case 18:case 19: $dias=18;\t\tbreak;\n\t\t\t\t\tcase 20:case 21:case 22:case 23:case 24: $dias=20;\t\tbreak;\n\t\t\t\t\tdefault: $dias=22;\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tendswitch;\n\t\t\t\t\n\t\t\t\t$ingreso = new DateTime($colaborador->fecha_ingreso);\n\t\t\t\t$hoy = new DateTime(date('Y-m-d'));\n\t\t\t\t$diferencia = $ingreso->diff($hoy);\n\t\t\t\t$ingreso->add(new DateInterval('P'.$diferencia->y.'Y'));\n\t\t\t\t$actualidad = new DateTime($ingreso->format('Y-m-d'));\n\t\t\t\t$actualidad->add(new DateInterval('P18M'));\n\t\t\t\t$caducidad = $actualidad->format('Y-m-d');\n\n\t\t\t\tif($acumulados = $this->solicitudes_model->getAcumulados($colaborador->id)){\n\t\t\t\t\t\n\t\t\t\t\t/*$datos['dias_dos']=$dias;\n\t\t\t\t\t$datos['vencimiento_dos'] = strtotime('+18 month',strtotime($colaborador->fecha_ingreso));\n\t\t\t\t\t$datos['dias_acumulados'] = (int)$acumulados->dias_acumulados + (int)$dias;*/\n\n\t\t\t\t\t$datos['dias_dos'] = $dias;\n\t\t\t\t\t$datos['vencimiento_dos'] = $caducidad;\n\t\t\t\t\t$datos['dias_acumulados'] = (int)$acumulados->dias_acumulados + (int)$dias;\n\t\t\t\t\n\t\t\t\t}else{\n\n\t\t\t\t\t/*$datos['dias_uno']=$dias;\n\t\t\t\t\t$datos['vencimiento_uno'] = strtotime('+18 month',strtotime($colaborador->fecha_ingreso));\n\t\t\t\t\t$datos['dias_acumulados'] = $dias;*/\n\n\t\t\t\t\t$datos['dias_uno'] = $dias;\n\t\t\t\t\t$datos['vencimiento_uno'] = $caducidad;\n\t\t\t\t\t$datos['dias_acumulados'] = $dias;\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$this->solicitudes_model->actualiza_dias_vacaciones($colaborador->id,$datos);\n\n\t\t\tendif;\n\n\t\tendforeach;\nexit;\n\t}", "title": "" }, { "docid": "fa02af5cef064db0ceb0dcb0fd39122c", "score": "0.5252851", "text": "public function reservations() {\n\t\t//2014-12-25\n\t\t//Format: 2014-12-25 00:00:00\n\t\t$today = date(\"Y-m-d\");//date(\"Ymd\")=20140503\t\t\n\t\t$dayRequest = Input::get('day',$today);\n\t\t//Get Matches for a day\n\t\t//$arrReservationClass = Reservation::getDayReservations($dayRequest);\n\t\t\n\t\treturn View::make('admin.reservations');\n\t}", "title": "" }, { "docid": "91c844e22da32ef85a5d001d50123a03", "score": "0.5242507", "text": "function notAvailableTimeSlot_time($params = array()){\n $notAvailableTimeSlot_time = [];\n if(empty($params)) return $notAvailableTimeSlot_time;\n\n $duration = $params['duration']; // 30 di set di file \"myli_1/app/Http/Controllers/API/CfpScheduleController.php\"\n $schedule_start_date_formated = $params['schedule_start_date_formated']; // 2018-08-01 inputan\n $notAvailableTimeSlots = $params['notAvailableTimeSlots']; // 09:00 - 09:30 yang sudah ter booking\n //$notAvailableTimeSlots_now = $params['notAvailableTimeSlots_now'];\n $cfp_working_hour_start = $params['cfp_working_hour_start']; // 09:00:00 jam mulai kerja\n $cfp_working_hour_end = $params['cfp_working_hour_end']; // 17:00:00 jam selesai kerja\n $schedule_weekend = date('N', strtotime($schedule_start_date_formated)); // hari (1 = Senin, 2 = Selasa, dst)\n\n\n $path_holiday_json = storage_path() . \"/json/national_holiday.json\"; // json hari libur nasional\n $json_holiday = json_decode(file_get_contents($path_holiday_json), true); \n $data_holiday = array(); \n\n foreach($json_holiday['items'] as $holidays){\n $nested_data['start_holiday'] = $holidays['start']['date'];\n $data_holiday[] = $nested_data;\n }\n $date_holiday = array_column($data_holiday, 'start_holiday');\n $holiday_date = in_array(date('Y-m-d', strtotime($schedule_start_date_formated)), $date_holiday);\n\n $today_date = Carbon\\Carbon::now()->format('Y-m-d');\n\n /**\n | ----------------------------------------------------------------------------------------------\n | jika tanggal pertemuan lebih kecil dari tanggal saat ini (jadwal pertemuan sudah terlewat).\n | jika hari sabtu\n | jika hari minggu\n | jika hari libur nasional\n |\n */\n\n if(strtotime($schedule_start_date_formated) < strtotime($today_date) || $holiday_date == true){ // kemarin dan sebelumnya serta sabtu,minggu \" $schedule_weekend == 6 || $schedule_weekend == 7 || \"\n $notAvailableTimeSlot_time[] = [ $cfp_working_hour_start, Carbon\\Carbon::parse($cfp_working_hour_end)->subMinutes(30)->format('H:i'), 'Hari libur / kelewat' ];\n } else {\n $notAvailableTimeSlot_time = [];\n if(count($notAvailableTimeSlots) > 0){\n foreach ($notAvailableTimeSlots as $notAvailableTimeSlot) {\n $notAvailableTimeSlot_time[] = [ Carbon\\Carbon::parse($notAvailableTimeSlot->schedule_start_date_plus_spare)->format('H:i'), Carbon\\Carbon::parse($notAvailableTimeSlot->schedule_end_date)->format('H:i'), 'Jam sudah terbooking' ];\n }\n }\n\n $now_datetime_formated = Carbon\\Carbon::now()->format('Y-m-d H:i:s'); //'2018-07-31 10:20' - Hari dan jam sekarang\n \n /**\n | ------------------------------------------------------\n | Tambahkan jika tanggal nya adalah HARI INI\n |\n */\n\n if(strtotime($schedule_start_date_formated) == strtotime($today_date)) { // jika waktu start_date_schedule = hari ini\n\n\n // jika jam sekarang sudah jam 09:00\n // Start diambil dari jam kerja CFP \n if(Carbon\\Carbon::now()->format('H:i') >= Carbon\\Carbon::parse($cfp_working_hour_start)->format('H:i')) {\n $today_time_start = $cfp_working_hour_start;\n } else {\n // jika belum jam 09:00\n // Start diambil dari jam saat itu\n $today_time_start = Carbon\\Carbon::parse($now_datetime_formated)->format('H:i'); //$cfp_working_hour_start; // 09:00:00\n }\n\n $today_time_end = '';\n // $now_datetime_formated = Carbon\\Carbon::now()->format('Y-m-d H:i:s');\n\n // jika hari dan jam sekarang menitnya lebih besar dari 0\n // jika hari dan jam sekarang menitnya <= dengan dari duration (30 menit)\n if(Carbon\\Carbon::parse($now_datetime_formated)->format('i') > 0 && Carbon\\Carbon::parse($now_datetime_formated)->format('i') <= $duration ) {\n // waktu akhir hari = jam ini + duration (30 menit)\n $today_time_end = Carbon\\Carbon::parse(Carbon\\Carbon::parse($now_datetime_formated)->format('H:00'))->addMinutes($duration)->format('H:i');\n \n // jika hari dan jam sekarang menitnya > 30 menit\n } else if(Carbon\\Carbon::parse($now_datetime_formated)->format('i') > $duration ){\n // waktu akhir hari ini = hari jam sekarang H:duration (30menit) tambah 30 menit\n $today_time_end = Carbon\\Carbon::parse(Carbon\\Carbon::parse($now_datetime_formated)->format('H:'.$duration))->addMinutes($duration)->format('H:i');\n } else {\n $today_time_end = Carbon\\Carbon::parse(Carbon\\Carbon::parse($now_datetime_formated)->format('H:'.$duration))->addMinutes($duration)->format('H:i');\t\n }\n\n $notAvailableTimeSlot_time[] = [ $today_time_start, Carbon\\Carbon::parse($today_time_end)->format('H:i'), 'Not available karna hari ini jamnya sudah terlewat' ];\n }\n }\n return $notAvailableTimeSlot_time;\n}", "title": "" }, { "docid": "34ef45362a735193360616d8f4a97bbb", "score": "0.5235776", "text": "function addReservation($date, $table, $hour, $mealId, $userId): int\r\n {\r\n $user = $this->getUser($userId);\r\n $user = $user['useFirstName'] . ' ' . $user['useLastName'];\r\n $subject = 'Réservation de ' . $user;\r\n $body = $user . ' a réservé un menu végétarien pour le ' . $date . /*$table . ' ' . $meal*/ ' à ' . $hour . 'h.';\r\n\r\n $this->sendMail($subject, $body);\r\n\r\n return $this->addData('t_reservation', ['resDate', 'resTable', 'resHour', 'fkMeal', 'fkUser'], [$date, $table, $hour, $mealId, $userId]);\r\n }", "title": "" }, { "docid": "1290cdbca9f2c5f9e39485a2401905d0", "score": "0.52316266", "text": "public function waitingroomothersAction()\n {\n $uid = $this->_USER_ID;\n $floorId = $this->getParam('CF_floorid');\n $stealFloorId = $this->getParam('CF_stealfloorid');\n $innerUid = $this->getParam('CF_inneruid');\n\n if (empty($innerUid)) {\n return $this->_redirectErrorMsg(-1);\n }\n $mbllApi = new Mbll_Tower_ServiceApi($uid);\n $aryUser = $mbllApi->getUserInfo($innerUid);\n if (!$aryUser || !$aryUser['result']) {\n $errParam = '-1';\n if (!empty($aryUser['errno'])) {\n $errParam = $aryUser['errno'];\n }\n return $this->_redirectErrorMsg($errParam);\n }\n $this->view->userName = $aryUser['result']['nickname'];\n\n $arySameTypeFloors = array();\n if (empty($floorId)) {\n $type = $this->getParam('CF_type');\n if (!empty($type)) {\n $aryMyFloors = explode(',', $this->_user['floors']);\n foreach ($aryMyFloors as $key=>$fvalue) {\n $aryTmp = explode('|', $fvalue);\n if ($aryTmp[1] == $type) {\n $floorId = $aryTmp[0];\n $arySameTypeFloors[] = array('floor_id' => $aryTmp[0], 'floor_name' => $this->_user['floor_names'][$aryTmp[0]]);\n }\n }\n }\n }\n\n if (empty($floorId)) {\n return $this->_redirectErrorMsg(524);\n }\n\n if (count($arySameTypeFloors) > 1) {\n $this->view->arySameTypeFloors = $arySameTypeFloors;\n }\n\n if (empty($floorId) || empty($stealFloorId)) {\n return $this->_redirectErrorMsg(-1);\n }\n\n $aryRst = $mbllApi->getWaitingRoomGuestList($stealFloorId);\n if (!$aryRst || !$aryRst['result']) {\n $errParam = '-1';\n if (!empty($aryRst['errno'])) {\n $errParam = $aryRst['errno'];\n }\n return $this->_redirectErrorMsg($errParam);\n }\n\n //waiting guest data\n $lstWaiting = $aryRst['result']['list'];\n\n if (!empty($lstWaiting)) {\n foreach ($lstWaiting as $key=>$gdata) {\n $rowGuest = Mbll_Tower_GuestTpl::getGuestDescription($gdata['tp']);\n $aryTmp = explode('|', $rowGuest['des']);\n $lstWaiting[$key]['guest_name'] = $aryTmp[0];\n $lstWaiting[$key]['mode_percent'] = round($gdata['ha']/10)*10;\n $lstWaiting[$key]['remain_hour'] = floor(($gdata['ot'] - $gdata['ct'])/3600);\n $lstWaiting[$key]['remain_minute'] = strftime('%M', $gdata['ot'] - $gdata['ct']);\n $lstWaiting[$key]['ha_desc'] = Mbll_Tower_Common::getMoodDesc($gdata['ha']);\n }\n }\n\n $this->view->floorId = $floorId;\n $this->view->stealFloorId = $stealFloorId;\n $this->view->lstWaiting = $lstWaiting;\n $this->view->cntWaiting = count($lstWaiting);\n $this->view->type = $aryRst['result']['type'];\n $this->view->storeName = $aryRst['result']['name'];\n $this->view->innerUid = $innerUid;\n $this->render();\n }", "title": "" }, { "docid": "a80018425816a3c49e3b19e4ff78f9e5", "score": "0.5231409", "text": "public function QueueSlotBooking(){\r\n //echo 'hi';\r\n $getSessionData = StringHelper::getMainSession(3);\r\n if($getSessionData == FALSE){\r\n return 0;\r\n }else{\r\n $bookingdata = Input::all(); \r\n if(!empty($bookingdata)){\r\n $returnBooking = $this->MainBooking($bookingdata,$bookingdata['booktype']); \r\n return $returnBooking;\r\n }else{\r\n return 0;\r\n } \r\n }\r\n }", "title": "" }, { "docid": "9a702059fb4b229471c6c1c1fb390ae1", "score": "0.5221972", "text": "public function atenderShow(){\n\t\t//$areas=Area::allDerivar();\n\t\t$expediente=Expediente::getById($_GET['idExpediente']);\n\t\t$tramite=Tramite::getById($expediente->getTramites_id());\n\t\t$solicitante=Solicitante::getById($expediente->getSolicitantes_id());\n\t\trequire_once('Views/Expediente/atender.php');\n\t}", "title": "" }, { "docid": "c01a338f220bb1e22f36ed5b57cd2f1d", "score": "0.5218258", "text": "public function inschrijven()\n {\n $vrijwilliger = new stdClass();\n\n $deelnemer = $this->authex->getDeelnemerInfo();\n $vrijwilliger->deelnemerId = $deelnemer->id;\n $vrijwilliger->taakShiftId = $this->input->get('id');\n $vrijwilliger->commentaar = \"\";\n\n\n $this->HelperTaak_model->insertVrijwilliger($vrijwilliger);\n\n $personeelsfeestId = $this->input->get('personeelsfeestId');\n redirect(\"Vrijwilliger/HulpAanbieden/index/\" . $personeelsfeestId);\n }", "title": "" }, { "docid": "311bf78b55f0ab6956452d2d90112013", "score": "0.5216425", "text": "public function booking_free() {\n //Request post data\n $appointment_id = (int) $this->input->post('appointment_id');\n $description = $this->input->post('description', true);\n $slot_time = $this->input->post('user_slot_time');\n $service_id = (int) $this->input->post('service_id');\n $bookdate = $this->input->post('user_datetime');\n $service_payment_type = $this->input->post('service_payment_type');\n $service_booking_seat = $this->input->post('total_booked_seat');\n $staff_member_id = $this->input->post('staff_member_id');\n\n //Check valid service id\n if ($service_id > 0):\n $service_data = get_full_service_service_data($service_id);\n\n if (isset($service_data['id']) && $service_data['id'] > 0 && $service_data['type'] == 'S'):\n\n $service_title = isset($service_data['title']) ? ($service_data['title']) : '';\n $vendor_id = isset($service_data['created_by']) ? ($service_data['created_by']) : '';\n $type = $service_data['type'];\n $total_seat = $service_data['total_seat'];\n\n $customer_id = (int) $this->session->userdata('CUST_ID');\n if ($customer_id == 0) {\n $this->session->set_flashdata('msg_class', 'failure');\n $this->session->set_flashdata('msg', translate('protected_message'));\n redirect('login');\n }\n\n $check_multiple_book_status = check_multiple_book_status(date(\"Y-m-d\", strtotime($bookdate)), date(\"H:i:s\", strtotime($bookdate)), $type, $service_id, $staff_member_id);\n if ($check_multiple_book_status == FALSE) {\n $this->session->set_flashdata('msg_class', 'failure');\n $this->session->set_flashdata('msg', translate('not_allowed_booking'));\n redirect(base_url('day-slots/' . $service_id));\n } else {\n $insert['customer_id'] = $customer_id;\n $insert['description'] = $description;\n $insert['slot_time'] = $slot_time;\n $insert['service_id'] = $service_id;\n $insert['service_booked_seat'] = $service_booking_seat;\n $insert['start_date'] = date(\"Y-m-d\", strtotime($bookdate));\n $insert['start_time'] = date(\"H:i:s\", strtotime($bookdate));\n $insert['payment_status'] = 'S';\n $insert['status'] = 'P';\n $insert['staff_id'] = $staff_member_id;\n $insert['created_on'] = date(\"Y-m:d H:i:s\");\n $insert['type'] = $type;\n $book = $this->model_front->insert(\"app_service_appointment\", $insert);\n\n //Send email to customer\n $customer = $this->model_front->getData(\"app_customer\", \"first_name,last_name,email\", \"id='$customer_id'\");\n $name = ($customer[0]['first_name']) . \" \" . ($customer[0]['last_name']);\n $subject = translate('appointment_booking');\n $define_param['to_name'] = ($customer[0]['first_name']) . \" \" . ($customer[0]['last_name']);\n $define_param['to_email'] = $customer[0]['email'];\n\n $parameter['name'] = $name;\n $parameter['appointment_date'] = get_formated_date(($bookdate));\n $parameter['service_data'] = $service_data;\n $parameter['price'] = translate('free');\n\n if ($staff_member_id > 0):\n $parameter['staff_data'] = get_staff_row_by_id($staff_member_id);\n endif;\n\n $html = $this->load->view(\"email_template/service_booking_customer\", $parameter, true);\n $this->sendmail->send($define_param, $subject, $html);\n\n\n //Send email to vendor\n $vendor_name = ($service_data['first_name']) . \" \" . ($service_data['last_name']);\n $vendor_email = $service_data['email'];\n $subject2 = $service_data['title'] . ' | ' . translate('appointment_booking');\n $define_param2['to_name'] = $vendor_name;\n $define_param2['to_email'] = $vendor_email;\n\n $parameterv['name'] = $vendor_name;\n $parameterv['appointment_date'] = get_formated_date(($bookdate));\n $parameterv['service_data'] = $service_data;\n if ($staff_member_id > 0):\n $parameterv['staff_data'] = get_staff_row_by_id($staff_member_id);\n endif;\n $parameterv['customer_data'] = $customer[0];\n $parameterv['price'] = translate('free');\n $html2 = $this->load->view(\"email_template/service_booking_vendor\", $parameterv, true);\n $this->sendmail->send($define_param2, $subject2, $html2);\n\n if ($staff_member_id > 0):\n // Send email to staff if selected\n $staff_e_data = get_staff_row_by_id($staff_member_id);\n $staff_name = ($staff_e_data['first_name']) . \" \" . ($staff_e_data['last_name']);\n $staff_email = $staff_e_data['email'];\n\n $subject2 = $service_data['title'] . ' | ' . translate('appointment_booking');\n $define_param2['to_name'] = $staff_name;\n $define_param2['to_email'] = $staff_email;\n\n $parameters['name'] = $staff_name;\n $parameters['appointment_date'] = get_formated_date(($bookdate));\n $parameters['service_data'] = $service_data;\n $parameters['customer_data'] = $customer[0];\n $parameters['price'] = translate('free');\n\n $html2 = $this->load->view(\"email_template/service_booking_vendor\", $parameters, true);\n $this->sendmail->send($define_param2, $subject2, $html2);\n endif;\n\n $this->session->set_flashdata('msg', translate('booking_pending'));\n $this->session->set_flashdata('msg_class', 'info');\n redirect('appointment-success/' . $book);\n }\n else:\n $this->session->set_flashdata('msg_class', 'failure');\n $this->session->set_flashdata('msg', translate('invalid_request'));\n redirect(base_url());\n endif;\n else:\n $this->session->set_flashdata('msg_class', 'failure');\n $this->session->set_flashdata('msg', translate('invalid_request'));\n redirect(base_url());\n endif;\n }", "title": "" }, { "docid": "aee2bb2d53a6ddbce63cdff86848bf45", "score": "0.52148837", "text": "public function denied(Request $request)\n {\n // return response()->json(['respondio'=>$request->all()]);\n $bookingCurrent = Booking::findOrFail($request->id);\n\n self::SendSuggestions($bookingCurrent);\n\n // Mail::send('bookings.emails.user_0_suggestions', $data, function ($message) use ($data) {\n // $message->from('[email protected]', 'VICO - ¡Vivir entre amigos!');\n // // $message->to($data['email']); //there is comment until test\n // $message->to('[email protected]');\n // $message->subject($data['subject']);\n // });\n // event(new BookingWasChanged($bookingCurrent));\n\n if ($request->flag == 1)\n {\n //booking current is updated\n $bookingCurrent->status = -21;\n $bookingCurrent->save();\n $info = [\n 'id' => $bookingCurrent->id,\n 'status' => -21\n ];\n // self::statusUpdate($info);\n\n // it's created a new user\n $request->flag = null; //change the flag because in newUser There is a flag\n $user = self::newUser($request);\n\n try\n {\n DB::beginTransaction();\n\n $booking=new Booking();\n $booking->status=100;\n $booking->date_to=$request->dateto;\n $booking->date_from=$request->date_from;\n $booking->room_id=$request->room_id;\n $booking->user_id=$user->id;\n $booking->mode= 1;\n $booking->message=\"without message\";\n $booking->note=\"FAKE booking\";\n if($request->dateask!=null){\n $booking->created_at=date('Y-m-d', time());\n }\n\n $booking->save();\n\n event(new BookingWasSuccessful($booking,false,true));\n $manager = $booking->manager();\n // $manager->notify(new BookingUpdateManager($booking));\n $info = [\n 'id' => $booking->id,\n 'status' => 100\n ];\n // self::statusUpdate($info);\n DB::commit();\n }\n catch (\\PDOException $e) {\n DB::rollBack();\n\n //delete user if some was bad\n $user->delete();\n\n return back();\n // return $e;\n\n // dd($e);\n }\n }\n else\n {\n $bookingCurrent->status = -22;\n $bookingCurrent->note = (isset($request->massage)) ? $request->message : 'sin mensaje' ;\n $bookingCurrent->save();\n\n $info = [\n 'id' => $bookingCurrent->id,\n 'status' => -22\n ];\n // self::statusUpdate($info);\n\n }\n\n return redirect()->back()->with('accepted_success','Se realizo el cambio');\n }", "title": "" }, { "docid": "01b0aab734a3b89557324c32104a2993", "score": "0.52118766", "text": "function isReserved($date, $reservations)\n {\n $dateStr = $date->format(\"Y-m-d H:i\");\n\n //Search through the working times\n foreach ($reservations as $reservation) {\n //Remove the seconds part\n $res_date = date(\"Y-m-d H:i\", strtotime($reservation->res_date));\n if ($dateStr == $res_date) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "79d3c6c159d6e0a4b1c51faf1084b7db", "score": "0.5211243", "text": "public function guest_cancel_reservation(Request $request,EmailController $email_controller)\n {\n $reservation_details = Reservation::findOrFail($request->id);\n\n $cancel_status = ['Cancelled','Declined','Expired'];\n \n if(in_array($reservation_details->status,$cancel_status)) {\n return redirect()->route('current_bookings');\n }\n\n if($reservation_details->status == 'Pending' || $reservation_details->status == 'Pre-Accepted') {\n $this->cancelReservation($request->id,$request->cancel_reason,$request->cancel_message);\n flash_message('success', trans('messages.your_reservations.cancelled_successfully'));\n return redirect()->route('current_bookings');\n }\n\n $space_details = Space::find($reservation_details->space_id);\n\n if($reservation_details->status != 'Accepted') {\n return redirect()->route('current_bookings');\n }\n\n $host_fee_percentage = Fees::find(2)->value > 0 ? Fees::find(2)->value : 0;\n $host_payout_amount = $reservation_details->subtotal;\n $guest_refundable_amount = 0;\n\n $datetime1 = new DateTime(date('Y-m-d')); \n $datetime2 = new DateTime(date('Y-m-d', strtotime($reservation_details->checkin)));\n $interval_diff = $datetime1->diff($datetime2);\n $interval = $interval_diff->days;\n\n // $per_hour_price = $reservation_details->per_hour;\n // $total_hours = $reservation_details->hours;\n // $total_hour_price = $per_hour_price * $total_hours;\n\n $per_hour_price = $reservation_details->per_hour;\n $per_day_price = $reservation_details->per_day;\n $per_week_price = $reservation_details->per_week;\n $per_month_price = $reservation_details->per_month;\n $day_hour=$reservation_details->days*24;\n $week_hour=($reservation_details->weeks*7)*24;\n $month_hour=($reservation_details->months*30)*24;\n $total_hour=$day_hour+$week_hour+$month_hour+$reservation_details->hours;\n if($interval_diff->i>0)\n $spend_hour=($interval_diff->d*24)+($interval_diff->h+1);\n else\n $spend_hour=$interval_diff->d*24+$interval_diff->h;\n if($total_hour!=0)\n $per_hour_amount=$reservation_details->subtotal/$total_hour; \n $pay_to_guest=$spend_hour*$per_hour_amount;\n $remain_to_host=($total_hour*$per_hour_amount)-$pay_to_guest;\n\n\n // To check the check in is less than today date\n if($interval_diff->invert) {\n $spend_hour_price = round($pay_to_guest);\n $remain_hour_price= round($remain_to_host);\n // $spend_hour_price = $per_hour_price * ($interval <= $total_hours ? $interval : $total_hours);\n // $remain_hour_price= $per_hour_price * (($total_hours - $interval) > 0 ? ($total_hours - $interval) : 0);\n }\n else {\n $spend_hour_price = 0;\n $remain_hour_price= $reservation_details->subtotal;\n }\n\n $cleaning_fees = $reservation_details->cleaning;\n $coupon_amount = $reservation_details->coupon_amount;\n $service_fee = $reservation_details->service;\n $host_payout_ratio = (1 - ($host_fee_percentage / 100));\n\n if($reservation_details->cancellation == \"Flexible\") {\n // To check the check in is less than today date\n if($interval_diff->invert) {\n if($interval > 0) // (interval < 0) condition\n {\n $refund_hour_price = $remain_hour_price;\n $guest_refundable_amount = array_sum([\n $refund_hour_price,\n -$coupon_amount\n ]);\n\n $payout_hour_price = $spend_hour_price;\n $host_payout_amount = array_sum([\n $payout_hour_price,\n $cleaning_fees,\n ]);\n }\n }\n else\n {\n // Checkin and today date are equal\n if($interval == 0)\n {\n $refund_hour_price = 0;\n $guest_refundable_amount = array_sum([\n $refund_hour_price,\n -$coupon_amount\n ]);\n\n $payout_hour_price = $reservation_details->subtotal;\n $host_payout_amount = array_sum([\n $payout_hour_price,\n $cleaning_fees,\n ]);\n }\n // Checkin greater and today date\n else if($interval > 0)\n {\n $refund_hour_price = $reservation_details->subtotal;\n $guest_refundable_amount = array_sum([\n $refund_hour_price,\n $cleaning_fees,\n -$coupon_amount\n ]);\n\n $payout_hour_price = 0;\n $host_payout_amount = array_sum([\n $payout_hour_price,\n ]);\n }\n }\n }\n\n else if($reservation_details->cancellation == \"Moderate\") {\n if($interval_diff->invert) // To check the check in is less than today date\n {\n if($interval > 0) // (interval < 0) condition\n {\n $refund_hour_price = $remain_hour_price * (50 / 100); // 50 % of remain hour price\n $guest_refundable_amount = array_sum([\n $refund_hour_price,\n -$coupon_amount\n ]);\n\n $payout_hour_price = $spend_hour_price + ($remain_hour_price * (50 / 100)); // spend hour price and 50% remain hour price\n $host_payout_amount = array_sum([\n $payout_hour_price,\n $cleaning_fees,\n ]);\n }\n }\n else {\n if($interval < 5 && $interval > 0) // (interval < 5 && interval >= 0) condition\n {\n $refund_hour_price = ($reservation_details->subtotal-$per_hour_price) * (50 /100); // 50% of other than first hour price\n $guest_refundable_amount = array_sum([\n $refund_hour_price,\n $cleaning_fees,\n -$coupon_amount\n ]);\n\n $payout_hour_price = $per_hour_price + (($reservation_details->subtotal-$per_hour_price) * (50 /100)); // First hour price and 50% other hour price\n $host_payout_amount = array_sum([\n $payout_hour_price,\n ]);\n }\n else if($interval == 0) // (interval < 5 && interval >= 0) condition\n {\n $refund_hour_price = 0;\n $guest_refundable_amount = array_sum([\n $refund_hour_price,\n -$coupon_amount\n ]);\n\n $payout_hour_price = $reservation_details->subtotal;\n $host_payout_amount = array_sum([\n $payout_hour_price,\n $cleaning_fees,\n ]);\n }\n else if($interval >= 5) // (interval >= 5) condition\n {\n $refund_hour_price = $reservation_details->subtotal;\n $guest_refundable_amount = array_sum([\n $refund_hour_price,\n $cleaning_fees,\n -$coupon_amount\n ]);\n\n $payout_hour_price = 0;\n $host_payout_amount = array_sum([\n $payout_hour_price,\n ]);\n }\n }\n }\n\n else if($reservation_details->cancellation == \"Strict\") {\n if($interval_diff->invert) // To check the check in is less than today date\n {\n if($interval > 0) // (interval < 0) condition\n {\n $refund_hour_price = 0; // Total hour price is non refundable\n $guest_refundable_amount = array_sum([\n $refund_hour_price,\n -$coupon_amount\n ]);\n\n $payout_hour_price = $reservation_details->subtotal; // Total hour price is payout\n $host_payout_amount = array_sum([\n $payout_hour_price,\n $cleaning_fees,\n ]);\n }\n }\n else\n {\n if($interval < 7 && $interval > 0) // (interval < 7 && interval >= 0) condition\n {\n $refund_hour_price = 0; // Total hour price is non refundable\n $guest_refundable_amount = array_sum([\n $refund_hour_price,\n $cleaning_fees,\n -$coupon_amount\n ]);\n\n $payout_hour_price = $reservation_details->subtotal; // Total hour price is payout\n $host_payout_amount = array_sum([\n $payout_hour_price,\n ]);\n }\n if($interval == 0) // (interval < 7 && interval >= 0) condition\n {\n $refund_hour_price = 0; // Total hour price is non refundable\n $guest_refundable_amount = array_sum([\n $refund_hour_price,\n -$coupon_amount\n ]);\n\n $payout_hour_price = $reservation_details->subtotal; // Total hour price is payout\n $host_payout_amount = array_sum([\n $payout_hour_price,\n $cleaning_fees,\n ]);\n }\n else if($interval >= 7) // (interval >= 7) condition\n {\n $refund_hour_price = $reservation_details->subtotal * (50/100); // 50% of total hour price;\n $guest_refundable_amount = array_sum([\n $refund_hour_price,\n $cleaning_fees,\n -$coupon_amount\n ]);\n\n $payout_hour_price = $reservation_details->subtotal * (50/100); // 50% of total hour price;\n $host_payout_amount = array_sum([\n $payout_hour_price,\n ]);\n }\n }\n }\n\n $host_fee = ($host_payout_amount * ($host_fee_percentage / 100));\n $host_payout_amount = $host_payout_amount * $host_payout_ratio;\n\n $this->payment_helper->payout_refund_processing($reservation_details, $guest_refundable_amount, $host_payout_amount);\n\n // Revert travel credit if cancel before checkin\n if(!$interval_diff->invert) {\n $this->payment_helper->revert_travel_credit($reservation_details->id);\n }\n\n // Update Reservation Times\n $reservation_times = ReservationTimes::where('reservation_id',$reservation_details->id)->first();\n if($reservation_times) {\n $reservation_times->status = 'Available';\n $reservation_times->save();\n }\n\n $this->cancelReservation($request->id,$request->cancel_reason,$request->cancel_message,$host_fee);\n\n flash_message('success', trans('messages.your_reservations.cancelled_successfully'));\n return redirect()->route('current_bookings');\n }", "title": "" }, { "docid": "d7a327c9179a645150fb3cbe29bea5a1", "score": "0.52110684", "text": "public function index(Request $request)\n {\n $start = new Carbon($request->input('start'));\n $end = new Carbon($request->input('end'));\n $grupo_especialista = $request->input('especialista');\n # Guarda el último especialista seleccionado en la sesión, se usa para\n # seleccionar el especialista (si pertenece a una IPS) en la vista del\n # usuario cuando se recarga la página.\n $_SESSION['last_selected_especialista'] = $grupo_especialista;\n if ($start->diffInDays($end) > 7) {\n # La vista actual es por mes, entonces retorna\n # un conteo de reservaciones por día.\n return $this->eventsCounterByDay($grupo_especialista, $start, $end);\n }\n $reservaciones = Reservacion::reservaciones(\n $start->toDateString(), $end->toDateString()\n )->with(\n # Obtiene los slots de las reservaciones, de esta forma\n # evita hacer un query por cada reservación para pedir la\n # información de su slot y lo realiza en una sola query.\n ['slot' => function($query) use ($start, $end) {\n $query->where('slot_date', '>=', $start->toDateString())\n ->where('slot_date', '<=', $end->toDateString());\n }]\n );\n if ($grupo_especialista > 0) {\n $reservaciones->byCalendarId($grupo_especialista);\n # Requiere las reservaciones de un especialista en particular.\n } else if ($grupo_especialista == -1) {\n # Requiere todas las reservaciones de todos los especialistas\n # perteneciente a la misma IPS.\n # Obtiene el grupo del especialista logueado.\n $grupo_especialista = 1;\n # IPS del especialista actual para obtener los grupos\n # de los demás especialistas pertenecientes a esta IPS.\n $ips = $this->ipsEspecialista($grupo_especialista);\n # Grupos de los especialistas que pertenecen a la misma IPS\n # del especialista logueado actualmente.\n $grupos = $this->grupoEspecialistasIps($ips);\n $reservaciones->byCalendarIdIn($grupos);\n }\n $reservaciones = $reservaciones->get();\n $eventos = array();\n foreach($reservaciones as $reservacion) {\n $eventos[] = $this->formatReservacion($reservacion);\n }\n return response()->json($eventos);\n }", "title": "" }, { "docid": "588d25573aed3685587ffeb662151102", "score": "0.52016795", "text": "public function ripTicket()\n\t{ $this->getMyModel()->ripTicket(); }", "title": "" }, { "docid": "41479e1cb5a6acdf1b0b7bf47006b13a", "score": "0.51977044", "text": "public function timeRequest(Request $request)\n {\n $booking = Booking::findOrFail($request->id);\n $booking->note = $request->message_admin;\n $booking->status = 3;\n $booking->save();\n\n event(new BookingWasChanged($booking));\n\n $user = $booking->user;\n $manager = $booking->room->house->manager->user;\n $user->notify(new BookingNotification($booking));\n $manager->notify(new BookingNotification($booking));\n\n $info = [\n 'id' => $booking->id,\n 'status' => $booking->status\n ];\n // self::statusUpdate($info);\n return redirect()->back()->with('accepted_success','Se realizo el cambio');\n }", "title": "" }, { "docid": "328d32637004235c7cc0c70f91c4fc5e", "score": "0.51971227", "text": "function sellAktie($connection, $userid, $aktieId, $pris,$antal){\n //Denne tager prisen og trækker fra\n $omkostning = -$pris*$antal;\n //Denne tager antal og søger for at vi fjerner.\n $salgAntal = -$antal;\n //står for transaktioner\n $transaktions = getUserAktieOversigt($connection, $_SESSION['user_id']);\n //indsætter vores transaktion\n foreach($transaktions as $row){\n if($row['antal']>=$antal&&$row['aktie_id']==$aktieId){\n $sql =\"INSERT INTO myDB.TRANSAKTIONER (id,`user_id`, `aktie_id`, `antal`, `omkostning`) VALUES (NULL,\".$userid.\", \".$aktieId.\",\".$salgAntal.\",\".$omkostning.\");\";\n $tbCreated = $connection->query($sql);\n }\n }\n //debug besked\n if($GLOBALS['debug']){\n echo \"<br>DEBUG: SELL sql \".$sql;\n if ($tbCreated) {\n echo \"<br>DEBUG:sell aktie successfully\";\n } else {\n echo \"<br>DEBUG:Error sell: \" . $connection->error;\n }\n } \n }", "title": "" }, { "docid": "bdf60ca26f4c2c775df393f431b83cb0", "score": "0.5195854", "text": "public function postCreateReservation(ReservationRequest $request) {\n\n $reservation = new Reservation([\n 'user_id'=> getLoggedUser()->id,\n 'temp_user_id' =>0, //Sugalvot ka daryt del temp useriu\n 'park_id' => $request->input('park_id'),\n 'date' => $request->input('date'),\n 'time' => $request->input('time'),\n 'duration' => $request->input('duration'),\n 'status' => $request->input('status')\n ]);\n\n $reservation->save();\n\n return redirect()->route('reservations')->with('info', 'Reservation created');\n }", "title": "" }, { "docid": "4242857413a0651f6fce59f418e25088", "score": "0.5193868", "text": "public function actionBooking() {\n $model = new Reservation();\n $check_in_date = Yii::$app->request->post('check_in');\n $check_out_date = Yii::$app->request->post('check_out');\n $rate_plan = Yii::$app->request->post('rate_plan_id');\n $total_amount = Yii::$app->request->post('total_amount');\n\n return $this->render('create', [\n 'check_in_date'=>$check_in_date,\n 'check_out_date'=>$check_out_date,\n 'rate_plan'=>$rate_plan,\n 'total_amount'=>$total_amount,\n 'model'=>$model,\n ]);\n\n }", "title": "" }, { "docid": "7e1c082253fe83bf0f248cb7b70fb60e", "score": "0.5193545", "text": "public function waiting_requester(){\n\n }", "title": "" }, { "docid": "7951b65ba7912567eb07bf1a17994602", "score": "0.5189768", "text": "function email_CTS($reserve, $insert_id){\n\t\t\t\t$categories=ReserveDatabaseAPI::categories();\n\t\t\t\t$locations=ReserveDatabaseAPI::locations();\n\t\t\t\t$email=new \\PSUSmarty;\n\t\t\t\t//creates a new template\n\t\t\t\t$email->assign('insert_id', $insert_id);\n\t\t\t\t//grabs the insert id (this is the reservation id)\n\t\t\t\t$email->assign('categories', $categories);\n\t\t\t\t$email->assign('locations', $locations);\n\t\t\t\t$email->assign('reserve', $reserve);\n\t\t\t\t$title=\"Media Request from \" . $reserve['first_name'] . \" \" . $reserve['last_name'];\n\t\t\t\t//fetches the contents of the template\n\t\t\t\t$contents=$email->fetch( $GLOBALS['TEMPLATES'] . '/email.admin.tpl' );\n\t\t\t\treturn PSU::mail( \"[email protected]\",$title,$contents,self::admin_headers());\n\t\t\n\n\t\t\t}", "title": "" }, { "docid": "e61efbed0279dbc44c56eeedba1e4aed", "score": "0.51873493", "text": "function bkap_remove_time_slot() {\n\t\t\t\tglobal $wpdb;\n\t\t\t\t\n\t\t\t\tif( isset( $_POST['details'] ) ) {\n\t\t\t\t\t$details = explode( \"&\", $_POST['details'] );\n\t\t\t\t\n\t\t\t\t\t$date_delete = $details[2];\n\t\t\t\t\t$date_db = date( 'Y-m-d', strtotime( $date_delete ) );\n\t\t\t\t\t$id_delete = $details[0];\n\t\t\t\t\t$book_details = get_post_meta( $details[1], 'woocommerce_booking_settings', true );\n\t\t\t\t\n\t\t\t\t\tif ( is_array( $book_details[ 'booking_time_settings' ] ) && count( $book_details[ 'booking_time_settings' ] > 0 ) ) {\n \t\t\t\t\tunset( $book_details[ 'booking_time_settings' ][ $date_delete ][ $id_delete ] );\n \t\t\t\t\t\n \t\t\t\t\tif ( count( $book_details[ 'booking_time_settings' ][ $date_delete ] ) == 0 ) {\n \t\t\t\t\t\t\n \t\t\t\t\t unset( $book_details[ 'booking_time_settings' ][ $date_delete ] );\n \t\t\t\t\t\t\n \t\t\t\t\t\tif ( substr( $date_delete, 0, 7 ) == \"booking\" ) {\n \t\t\t\t\t\t\t$book_details[ 'booking_recurring' ][ $date_delete ] = '';\n \t\t\t\t\t\t} elseif ( substr( $date_delete, 0, 7 ) != \"booking\" ) {\n \t\t\t\t\t\t\t$key_date = array_search( $date_delete, $book_details[ 'booking_specific_date' ] );\n \t\t\t\t\t\t\tunset( $book_details[ 'booking_specific_date' ][ $key_date ] );\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\tupdate_post_meta( $details[1], 'woocommerce_booking_settings', $book_details );\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\tif ( substr( $date_delete, 0, 7 ) != \"booking\" ) {\n\t\t\t\t\t\tif ( $details[4] == \"0:00\" ) {\n\t\t\t\t\t\t\t$details[4] = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\t$update_status_query = \"UPDATE `\".$wpdb->prefix.\"booking_history`\n \t\t\t\t\t\t\t\t\t\tSET status = 'inactive'\n \t\t\t\t\t\t\t\t\t\tWHERE post_id = '\".$details[1].\"'\n \t\t\t\t\t\t\t\t\t \tAND start_date = '\".$date_db.\"'\n \t\t\t\t\t\t\t\t\t \tAND from_time = '\".$details[3].\"'\n \t\t\t\t\t\t\t\t\t \tAND to_time = '\".$details[4].\"' \";\n\t\t\t\t\t\n\t\t\t\t\t\t$wpdb->query( $update_status_query );\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telseif ( substr( $date_delete, 0, 7 ) == \"booking\" ) {\n\t\t\t\t\t\tif ( $details[4] == \"0:00\" ) {\n\t\t\t\t\t\t\t$details[4] = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t\t$update_status_query = \"UPDATE `\".$wpdb->prefix.\"booking_history`\n \t\t\t\t\t\t\t\t\t\tSET status = 'inactive'\n \t\t\t\t\t\t\t\t\t\tWHERE post_id = '\".$details[1].\"'\n \t\t\t\t\t\t\t\t\t\tAND weekday = '\".$date_delete.\"'\n \t\t\t\t\t\t\t\t\t\tAND from_time = '\".$details[3].\"'\n \t\t\t\t\t\t\t\t\t\tAND to_time = '\".$details[4].\"' \";\n\t\t\t\t\t\t$wpdb->query( $update_status_query );\n\t\t\t\t\t\t\n\t\t\t\t\t\t// delete the base record for the recurring weekday\n\t\t\t\t\t\t$delete_base_query = \"DELETE FROM `\".$wpdb->prefix.\"booking_history`\n \t\t\t\t\t\t\t\t\t\tWHERE post_id = '\".$details[1].\"'\n \t\t\t\t\t\t\t\t\t\tAND weekday = '\".$date_delete.\"'\n \t\t\t\t\t\t\t\t\t\t AND start_date = '0000-00-00'\n \t\t\t\t\t\t\t\t\t\tAND from_time = '\".$details[3].\"'\n \t\t\t\t\t\t\t\t\t\tAND to_time = '\".$details[4].\"' \";\n\t\t\t\t\t\t$wpdb->query( $delete_base_query );\n\t\t\t\t\t}\n \t}\t\n\t\t\t}", "title": "" }, { "docid": "31db5138af7e1253ab7b27759f7aabd4", "score": "0.51872176", "text": "public function run()\n {\n $reservation1 = new Reservation();\n $reservation1->total_price = 150;\n $reservation1->start_date = '2019-11-14';\n $reservation1->end_date = '2019-11-16';\n $reservation1->user_id = 1;\n $reservation1->room_id = 2;\n $reservation1->save();\n\n $reservation2 = new Reservation();\n $reservation2->total_price = 2071.5;\n $reservation2->start_date = '2019-12-14';\n $reservation2->end_date = '2020-01-20';\n $reservation2->user_id = 1;\n $reservation2->room_id = 1;\n $reservation2->save();\n\n $reservation3 = new Reservation();\n $reservation3->total_price = 13020;\n $reservation3->start_date = '2019-12-19';\n $reservation3->end_date = '2020-01-28';\n $reservation3->user_id = 1;\n $reservation3->room_id = 5;\n $reservation3->save();\n }", "title": "" }, { "docid": "848bf67fa7cdec6bdbb0b368e1436279", "score": "0.51861143", "text": "public function create(Request $request)\n {\n $sw = \"create\";\n $start = null;\n $end = null;\n $from_date = null;\n $user = Auth::user();\n $englishDates = [];\n for ($i = 1; $i <= 30; $i++) {\n $englishDates[] = Carbon::now()->addDays($i - 1)->format('Y-m-d');\n }\n $slotsOfTheUser = Slot::where(function($query) use($user){\n $query->where('athlete_id_1', $user->id)\n ->orWhere('athlete_id_2', $user->id)\n ->orWhere('athlete_id_3', $user->id);\n })->whereIn('date',$englishDates)->get();\n if ($request->getMethod() == 'POST') {\n dd('create');\n\n if ($request->input('time')) {\n $arr = explode('-', $request->input('time'));\n $start = trim($arr[0]);\n $end = trim($arr[1]);\n } else {\n $request->session()->flash(\"msg_error\", \"لطفا زمان موردنظر خود را انتخاب کنید.\");\n return redirect()->back();\n }\n\n if ($request->input('date')) {\n $from_date = $this->jalaliToGregorian($request->input('date'));\n } else {\n $request->session()->flash(\"msg_error\", \"لطفا تاریخ موردنظر خود را انتخاب کنید.\");\n return redirect()->back();\n }\n if (count($slotsOfTheUser) >= 2) {\n $request->session()->flash(\"msg_error\", \"در ماه بیش تر از ۲ روز مجاز به وقت گرفتن نیستید!\");\n return redirect()->back();\n }\n $found = Slot::where('start', $start)\n ->where('end', $end)\n ->where('date', $from_date)\n ->first();\n if ($found) {\n $firstAthlete = $found->athlete_id_1;\n $secondAthlete = $found->athlete_id_2;\n $thirdAthlete = $found->athlete_id_3;\n $athletes = [$firstAthlete, $secondAthlete, $thirdAthlete];\n if (empty(array_filter($athletes))) {\n $found->start = $start;\n $found->end = $end;\n $found->date = $from_date;\n $found->athlete_id_1 = Auth::user()->id;\n try {\n $found->save();\n $request->session()->flash(\"msg_success\", \"با موفقیت ثبت شدید.\");\n return redirect()->back()->with([\n 'sw' => $sw\n ]);;\n } catch (Exception $e) {\n dd($e);\n }\n } else if (!empty(array_filter($athletes))) {\n if (!$firstAthlete) {\n $found->athlete_id_1 = $user->id;\n $found->save();\n $request->session()->flash(\"msg_success\", \"با موفقیت ثبت شدید.\");\n return redirect()->back()->with([\n 'sw' => $sw\n ]);;\n } else {\n if (!$secondAthlete) {\n $found->athlete_id_2 = $user->id;\n $found->save();\n $request->session()->flash(\"msg_success\", \"با موفقیت ثبت شدید.\");\n return redirect()->back()->with([\n 'sw' => $sw\n ]);;\n }\n if (!$thirdAthlete) {\n $found->athlete_id_3 = $user->id;\n $found->save();\n $request->session()->flash(\"msg_success\", \"با موفقیت ثبت شدید.\");\n return redirect()->back()->with([\n 'sw' => $sw\n ]);;\n }\n }\n } else if ($firstAthlete != 0 && $secondAthlete == 0) {\n $found->athlete_id_2 = Auth::user()->id;\n try {\n if ($firstAthlete != $found->athlete_id_2) {\n $found->save();\n $request->session()->flash(\"msg_success\", \"با موفقیت ثبت شدید.\");\n return redirect()->back()->with([\n 'sw' => $sw\n ]);;\n }\n } catch (Exception $e) {\n dd($e);\n }\n } else if ($firstAthlete != 0 && $secondAthlete != 0 && $thirdAthlete == 0) {\n $found->athlete_id_3 = Auth::user()->id;\n try {\n if ($firstAthlete != $found->athlete_id_3 && $secondAthlete != $found->athlete_id_3) {\n $found->save();\n $request->session()->flash(\"msg_success\", \"با موفقیت ثبت شدید.\");\n return redirect()->back()->with([\n 'sw' => $sw\n ]);;\n }\n } catch (Exception $e) {\n dd($e);\n }\n } else if ($firstAthlete != 0 && $secondAthlete != 0 && $thirdAthlete != 0) {\n $request->session()->flash(\"msg_error\", \"در این تایم نوبت ها پر شده است.\");\n return redirect()->back()->with([\n 'sw' => $sw\n ]);;\n }\n } else {\n $slot = new Slot;\n $slot->start = $start;\n $slot->end = $end;\n $slot->date = $from_date;\n $slot->athlete_id_1 = Auth::user()->id;\n try {\n $slot->save();\n $request->session()->flash(\"msg_success\", \"با موفقیت ثبت شدید.\");\n return redirect()->back()->with([\n 'sw' => $sw\n ]);;\n } catch (Exception $e) {\n dd($e);\n }\n }\n\n\n }\n }", "title": "" }, { "docid": "4ec9ce06a7e35850fcf7e7b66acac2a7", "score": "0.51858777", "text": "public function seatReservation(Request $request)\n {\n $seat_id = $request->seat_id;\n $user_id = $request->user_id;\n $passenger_id = $request->passenger_id;\n\n $seat = Seat::find($seat_id);\n\n //To obtain the open reservation of the user\n $reservation = Reservation::where([\n ['user_id', $user_id],\n ['closed', false],\n ])->first();\n\n\n if($seat->status == 0){\n\n $seat->status = 1;\n $seat->passenger_id = $passenger_id;\n $reservation->seats()->attach($seat_id,['closed' => false]);\n $seat->save();\n\n $current_balance = floatval(preg_replace('/[^\\d\\.]/', '', $reservation->current_balance));\n $seat_price = floatval(preg_replace('/[^\\d\\.]/', '', $seat->price));\n $current_balance += $seat_price;\n $reservation->current_balance = money_format('%i',$current_balance);\n $reservation->save();\n\n return \"The seat was reserved successfully\";\n }\n else{\n return \"the seat is no longer available\";\n }\n }", "title": "" }, { "docid": "46d841fdee1bd449593b935442c40279", "score": "0.51844597", "text": "function rejectBooking($disputeId,$booking_no,$cancel_booking_id)\n\t{\n\t\t\t\n\t\t\t$condition = array('id' => $disputeId,'cancel_status' => $cancel_booking_id);\n\t\t\t$data = array('status' =>'Reject');\n\t\t\t$ok = $this->review_model->update_details(DISPUTE,$data,$condition);\n\t\t\n\t\t\t/* Mail to Guest Start*/\t\n $newsid='58';\n\t\t\t$template_values=$this->review_model->get_newsletter_template_details($newsid);\n\n\t\t\tif($template_values['sender_name']=='' && $template_values['sender_email']==''){\n\t\t\t\t$sender_email=$this->data['siteContactMail'];\n\t\t\t\t$sender_name=$this->data['siteTitle'];\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$sender_name=$template_values['sender_name'];\n\t\t\t\t$sender_email=$template_values['sender_email'];\n\t\t\t} \n \t\t\n\t\t$getdisputeDetails = $this->review_model->get_all_details(DISPUTE,$condition);\n\t\t\n\t\t/*GetHostDetails*/\n\t\t$condition = array (\n\t\t'id' => $getdisputeDetails->row()->disputer_id\n\t\t);\n\t\t$hostDetails = $this->review_model->get_all_details( USERS, $condition );\n\t\t\n\t\t$uid = $hostDetails->row ()->id;\n\t\t$hostname = $hostDetails->row()->user_name;\n\t\t$host_email = $hostDetails->row()->email;\n\t\t\n\t\t\n\t\t/*GetCustomerDetails*/\n\t\t$condition = array (\n\t\t'id' => $getdisputeDetails->row()->user_id\n\t\t);\n\t\t\n\t\t$custDetails = $this->review_model->get_all_details( USERS, $condition );\n\t\t$cust_name = $custDetails->row()->user_name;\n\t\t$email = $custDetails->row()->email;\n\t\t\n\t\t/*GetProductDetails*/\n\t\t$condition = array (\n\t\t'id' => $getdisputeDetails->row()->prd_id\n\t\t);\n\t\t$prdDetails = $this->review_model->get_all_details( PRODUCT, $condition );\n\t\t$prd_title = $prdDetails->row()->product_title;\n\t\t\n $email_values = array(\n\t\t\t\t\t'from_mail_id'=>$sender_email,\n\t\t\t\t\t'to_mail_id'=> $email,\n\t\t\t\t\t'subject_message'=>$template_values ['news_subject'],\n\t\t\t\t\t'body_messages'=>$message\n\t\t\t); \n\t\t\t\n\t\t\t$reg= array('host_name' => $hostname,'cust_name'=>$cust_name,'prd_title'=>$prd_title,'logo' => $this->data['logo']);\t\n $message = $this->load->view('newsletter/ToGuestRejectCancelBooking'.$newsid.'.php',$reg,TRUE);\n\t\t\t\n /*send mail*/\n $this->load->library('email',$config);\n $this->email->from($email_values['from_mail_id'], $sender_name);\n $this->email->to($email_values['to_mail_id']);\n $this->email->subject($email_values['subject_message']);\n $this->email->set_mailtype(\"html\");\n $this->email->message($message); \n\t\t\t\t\t\t\n\t\t\t\t try{\n\t\t\t\t\t$this->email->send();\n\t\t\t\t\t$returnStr ['msg'] = 'Successfully registered';\n\t\t\t\t\t\t$returnStr ['success'] = '1';\n\t\t\t\t\t}catch(Exception $e){\n\t\t\t\t\techo $e->getMessage();\n\t\t\t\t\t} \n \n /* Mail to Guest End*/\n\t\t\n\t\t\techo 'success';\n\t\t\t$this->setErrorMessage('success','Cancel booking rejected successfully');\n\t\t\tredirect('admin/dispute/cancel_booking_list');\t\t\t\t\n\t}", "title": "" }, { "docid": "a044cad7b254b125938582c3b4cba469", "score": "0.51806307", "text": "public function bookRide()\n {\n try\n {\n if(\\Session::has('userId'))\n {\n $param=$this->request->all();\n $rideid=$param['ride'];\n $cost_seat=$param['cost_seat'];\n $seat=$param['No_seats'];\n $totalCost=$cost_seat*$seat;\n $tax=round(0.1*$totalCost);\n $totalFinal=$totalCost+$tax;\n $findride=DB::table('rides')->where('id',$rideid)->get();\n\n if(count($findride)>0)\n {\n //remain select origin n destination according to ride type(daily,return date);\n if($findride[0]->available_seat>=$seat)\n {\n $daily=0;\n if($findride[0]->isDaily==1)\n {\n $cost_seat=0;\n $totalCost=$cost_seat*$seat;\n $tax=27.5;\n $totalFinal=$totalCost+$tax;\n $daily=1;\n }\n //check wallet amount enough in book rider account\n $walletRecord=DB::table('payment_wallete')->where('userId',session('userId'))->get();\n if(count($walletRecord)>0)\n {\n if($walletRecord[0]->amount>$totalFinal)\n {\n //you can book this ride \n //insert data in ride booking\n DB::beginTransaction();\n $insertData=array(\"offer_userId\"=>$findride[0]->userId,\"book_userId\"=>session('userId'),\"rideId\"=>$rideid,\"source\"=>$findride[0]->departureOriginal,\"destination\"=>$findride[0]->arrivalOriginal,\"no_of_seats\"=>$seat,\"cost_per_seat\"=>$totalCost,\"paymentType\"=>\"wallet\");\n $status=DB::table('ride_booking')->insert($insertData);\n if($status>0)\n {\n //tax amount add in admin account\n $insertAdminWallet=array(\"rideId\"=>$rideid,\"userId\"=>session('userId'),\"amount\"=>$tax,\"bookType\"=>\"book\",\"isDaily\"=>$daily);\n DB::table('admin_wallet')->insert($insertAdminWallet);\n\n //wallet amount transfer from rider account to offerrider account\n $rdd=DB::table('payment_wallete')->where('userId',session('userId'))->get();\n DB::table('payment_wallete')->where('userId',session('userId'))->update(['amount'=>$rdd[0]->amount-$totalFinal]);\n\n //check wallet amount exists for offer rider\n $che=DB::table('payment_wallete')->where('userId',$findride[0]->userId)->get();\n if(count($che)>0)\n {\n //update wallet amount... amount add in offer userid account\n DB::table('payment_wallete')->where('userId',$findride[0]->userId)->update(['amount'=>$che[0]->amount+$totalCost]);\n }\n else\n {\n //insert amount in offer userid account\n DB::table('payment_wallete')->insert(['userId'=>$findride[0]->userId,'amount'=>$totalCost]);\n }\n //minus available seat of a ride\n $st=DB::table('rides')->where('id',$rideid)->update(['available_seat'=>$findride[0]->available_seat-$seat]);\n if($st)\n {\n //send booked email\n //GET DETAILS OF OFFERED PERSON\n $offerPersonDetail=DB::table('users')->where('id',$findride[0]->userId)->get();\n //GET RIDE DETAILS\n //$offerRideDetail=DB::table('rides')->where('id',$bookRideArray['offerid'])->get();\n //GET DETAILS OF BOOKED PERSON\n $bookedPersonDetail=DB::table('users')->where('id',session('userId'))->get();\n\n if(count($offerPersonDetail)>0)\n {\n $dd['username']=$offerPersonDetail[0]->username;\n $dd['email']=$offerPersonDetail[0]->email; \n\n }\n if(count($findride)>0)\n {\n $dd['date']=date(\"d-m-Y\",strtotime($findride[0]->departure_date));\n $dd['time']=date(\"H:i:s\",strtotime($findride[0]->departure_date));\n $dd['source']=$findride[0]->departureOriginal;\n $dd['destination']=$findride[0]->arrivalOriginal;\n $dd['seat']=$seat;\n if($findride[0]->isDaily==0)\n {\n $dd['amount']=$totalCost;\n }\n }\n if(count($bookedPersonDetail)>0)\n {\n $dd['bookedname']=$bookedPersonDetail[0]->username;\n $dd['bookedemail']=$bookedPersonDetail[0]->email;\n }\n if(isset($dd['email']))\n {\n if($dd['email']!=\"\")\n {\n $this->send_ride_email($dd['email'],$dd);\n //send sms\n if($offerPersonDetail[0]->phone_no!=\"\" && $offerPersonDetail[0]->phone_no>0)\n {\n $offermsg='Your offer is been booked by '.$dd['bookedname'].'. Source :'.$dd['source'].'. Destination :'.$dd['destination'].'. Passenger email :'.$dd['bookedemail'].', Seats book :'.$dd['seat'];\n if(isset($dd['amount']))\n {\n $offermsg.=' , Amount earn: '.$dd['amount'].' Rs , ';\n }\n $offermsg.='Time :'.$dd['time'].' , Date :'.$dd['date'];\n \n $ph=$offerPersonDetail[0]->phone_no;\n \\Queue::push(function($job) use($ph,$offermsg){\n HelperController::send_offer_sms($ph,$offermsg);\n $job->delete();\n }); \n }\n }\n }\n if(isset($dd['bookedemail']))\n {\n if($dd['bookedemail']!=\"\")\n {\n $this->send_book_ride_email($dd['bookedemail'],$dd);\n if($bookedPersonDetail[0]->phone_no!=\"\" && $bookedPersonDetail[0]->phone_no>0)\n {\n $bookedmsg='Your ride has been successfully booked.';\n $bookedmsg.=' Source :'.$dd['source'];\n $bookedmsg.=' . Destination :'.$dd['destination'];\n $bookedmsg.=' . Owner email :'.$dd['email'];\n $bookedmsg.=' , Seats book :'.$dd['seat'];\n $bookedmsg.=' , Time :'.$dd['time'];\n $bookedmsg.=' , Date :'.$dd['date'];\n $ph=$bookedPersonDetail[0]->phone_no;\n \\Queue::push(function($job) use($ph,$bookedmsg){\n HelperController::send_offer_sms($ph,$bookedmsg);\n $job->delete();\n }); \n }\n }\n }\n //ends\n //send default sms to user who has book this ride same as email\n $msg='Dear '.$dd['bookedname'].' ,<br>Your ride has been successfully booked.below are the offer details.<br/>';\n $msg.='Source :'.$dd['source'].'<br>';\n $msg.='Destination :'.$dd['destination'].'<br>';\n $msg.='Owner email :'.$dd['email'].'<br>';\n $msg.='Seats book :'.$dd['seat'].'<br>';\n $msg.='Time :'.$dd['time'].'<br>';\n $msg.='Date :'.$dd['date'].'<br><br>';\n $msg.='Enjoy your ride<br><br>';\n $msg.='Thank you';\n \n DB::table('user_chat_messages')->insert(['fromUserId'=>$findride[0]->userId,\"toUserId\"=>session('userId'),\"message\"=>$msg,\"ip\"=>$this->ip]);\n\n $this->request->session()->flash('status', 'Your ride has been booked successfully');\n DB::commit();\n $response['message'] = \"success\";\n $response['status'] = true;\n $response['erromessage']= array();\n return response($response,200); \n }\n else\n {\n //error\n DB::rollBack();\n $response['data'] = array();\n $response['message'] = \"Please try again\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,400);\n }\n }\n else\n {\n //error\n DB::rollBack();\n $response['data'] = array();\n $response['message'] = \"Please try again\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,400);\n }\n }\n else\n {\n //don't have enough balance in your wallet to book this ride..\n $response['data'] = array();\n $response['message'] = \"you don't have enough balance in your wallet to book this ride.\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,400);\n }\n }\n else\n {\n //don't have enough balance in your wallet to book this ride..\n $response['data'] = array();\n $response['message'] = \"you don't have enough balance in your wallet to book this ride.\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,400);\n }\n }\n else\n {\n //seat is not available\n $response['data'] = array();\n $response['message'] = \"your requested seat is not available\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,400);\n }\n }\n else\n {\n //ride not found error\n $response['data'] = array();\n $response['message'] = \"Please try again\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,400);\n }\n }\n else\n {\n $response['data'] = array();\n $response['message'] = \"Please try again\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,400); \n }\n }\n catch(Exception $e) \n {\n //return redirect()->back()->withErrors(['error'=>true])->withInput();\n \\Log::error('bookRide function error: ' . $e->getMessage());\n $response['data'] = array();\n $response['message'] = \"Please try again\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,400);\n //return Response::json(array('error'=>true), 400);\n }\n }", "title": "" }, { "docid": "d0b83af3eef99e96285808da4b1288a6", "score": "0.51781785", "text": "function reserve($map, $n)\n{\n if ($n > 10 | $n < 1)\n {\n // The max number of tickets someone can request at once is 10, just give back the map\n echo 'Not available';\n return $map;\n }\n\n else\n {\n $map_in = json_decode($map, TRUE);\n $best_Mhtn_dist = $map_in['max_Mhtn_dist'];\n $reserved = array();\n $found_seating = FALSE; // flag, set to TRUE if a set of seats is found\n\n // for all seats in the \"auditourium\"\n for ($i =0; $i < $map_in['rows']; $i++)\n {\n for ($j =0; $j <= $map_in['cols'] - $n; $j++)\n {\n $made_it = TRUE; // flag as TRUE, will be set to false if we don't find appropriate seating\n $candidate_reserved = array();\n\n // if the seat is free\n if (!$map_in[$i][$j]['is_reserved'])\n {\n // set the candidate Manhattan distance\n $candidate_best_Mhtn_dist = $map_in[$i][$j]['Mhtn_dist'];\n\n // add the seat to the candidate seating array\n $candidate_seat = 'R' . ($i + 1) . 'C' . ($j + 1);\n array_push($candidate_reserved, $candidate_seat);\n\n // if we're looking for more than one seat...\n if ($n > 1)\n {\n // for the next seat, to the last seat desired\n for($looking_at = $j + 1; $looking_at < $j + $n; $looking_at++)\n {\n // if we can use this seat...\n if (!$map_in[$i][$looking_at]['is_reserved'])\n {\n // push this seat into the array\n $candidate_seat = 'R' . ($i + 1) . 'C' . ($looking_at + 1);\n array_push($candidate_reserved, $candidate_seat);\n\n // if the Manhattan distance is smaller, update it\n $looking_at_Mhtn_dist = $map_in[$i][$looking_at]['Mhtn_dist'];\n\n if ($looking_at_Mhtn_dist < $candidate_best_Mhtn_dist)\n {\n $candidate_best_Mhtn_dist = $looking_at_Mhtn_dist;\n }\n }\n // else if we can't use this seat...\n elseif ($map_in[$i][$looking_at]['is_reserved'])\n {\n // set the flag to false, break to try the next seat over\n $made_it = FALSE;\n break;\n }\n }\n }\n }\n // if current seat is not available\n else if ($map_in[$i][$j]['is_reserved'])\n {\n $made_it = FALSE;\n }\n\n // if we made it through with an appropriate sized block of seats\n if($made_it)\n {\n if ($candidate_best_Mhtn_dist < $best_Mhtn_dist)\n {\n // we will be able to return a map!\n $found_seating = TRUE;\n\n // move the candidate reserved array into the reserved array, and\n // clear the candidate arrary for the next run\n $reserved = $candidate_reserved;\n unset($candidate_reserved);\n\n $best_Mhtn_dist = $candidate_best_Mhtn_dist;\n }\n }\n }\n }\n\n // if we found seats to reserve...\n if($found_seating)\n {\n // update the seating map\n $map_out = update(json_encode($map_in), $reserved);\n\n echo $reserved[0];\n if($n >1) echo ' - ' . $reserved[$n-1];\n\n return json_encode($map_out);\n }\n // else, we didn't find anything\n else\n {\n echo 'Not available';\n return $map;\n }\n }\n}", "title": "" }, { "docid": "79516e2909a8644823666f23e344a01f", "score": "0.517762", "text": "public function releasevehicle(Request $request,$id)\n {\n //\n $current_time = \\Carbon\\Carbon::now()->timestamp;\n $ActivityMasterdata = ActivityMaster::get();\n $VehicleTypeMasterdata = VehicleTypeMaster::get();\n $GateentryData = YmGateentry::find($id);\n $GateentryData->gateoutremark = request('gateoutremark');\n $GateentryData->status = 'Gate Out';\n $GateentryData->updatedby = session('username');\n $GateentryData->updatedon = $current_time ;\n $GateentryData->gateout = $current_time ;\n $GateentryData->save();\n return redirect('outwardlist');\n // return view('gateoutentry.gateoutentry',compact('GateentryData','id','ActivityMasterdata','VehicleTypeMasterdata'));\n }", "title": "" }, { "docid": "85cdd22d2ea9acebc76c8d155c969223", "score": "0.5159822", "text": "public function rentOut()\n {\n $ps = $this->pt_dao->getPaymentStatusId($_SESSION['SelectedPt'][0]['ptdescription']);\n $this->pt_dao->addToPayment($_SESSION['SelectedEmp'], $_SESSION['SelectedCust'], $ps, $_SESSION['SelectedPt']);\n \n $this->film_dao->addToFilmRental($_SESSION['SelectedFilm'], $_SESSION['SelectedEmp'], $_SESSION['SelectedCust']);\n $this->index();\n }", "title": "" }, { "docid": "94b133d7dad7e14eaf6a20acc2caa802", "score": "0.5159433", "text": "function get_eventtop_your_rsvp($emeta='',$ri, $eventid){\n\t\t\t$existing_rsvp_status = false;\n\t\t\t$output = '';\n\t\t\tif(evo_settings_check_yn($this->optRS, 'evors_eventop_rsvp')){\t\n\t\t\t\tif(is_user_logged_in()){\n\t\t\t\t\tglobal $current_user;\n\t\t\t\t\twp_get_current_user();\n\t\t\t\t\t$this_user_id = ($current_user->ID!= '0' )? $current_user->ID:'na';\n\n\t\t\t\t\t$unixTime = $this->get_correct_eventTime($emeta, $ri);\n\t\t\t\t\t\t$row_endTime = $unixTime['end'];\n\t\t\t\t\t\n\t\t\t\t\t// Initial values\n\t\t\t\t\t\t$existing_rsvp_status = $this->functions->get_user_rsvp_status($current_user->ID, $eventid, $ri, $emeta);\n\t\t\t\t\t\t$closeRSVPbeforeX = $this->functions->close_rsvp_beforex($unixTime['start'], $emeta);\n\t\t\t\t\t\t$can_still_rsvp = $this->functions->can_still_rsvp($row_endTime, $emeta);\n\t\t\t\t\t\t$remaining_rsvp = $this->functions->remaining_rsvp($emeta, $ri, $eventid);\n\t\t\t\t\t\t$lang = $this->get_local_lang();\n\n\t\t\t\t\tif($remaining_rsvp==true || $remaining_rsvp >0){\n\t\t\t\t\t\t// if loggedin user have not rsvp-ed yet\n\t\t\t\t\t\tif(!$existing_rsvp_status && !$closeRSVPbeforeX && $can_still_rsvp){\n\t\t\t\t\t\t\t$TEXT = eventon_get_custom_language($this->opt2, 'evoRSL_001','RSVP to event', $lang);\n\t\t\t\t\t\t\t$output .= \"<span class='evors_eventtop_section evors_eventtop_rsvp evors_eventop_rsvped_data' data-eid='{$eventid}' data-ri='{$ri}'data-uid='{$this_user_id}' data-lang='{$lang}'>\".$TEXT. $this->get_rsvp_choices($this->opt2, $this->optRS).\"</span>\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t// user has rsvp-ed already\n\t\t\t\t\t\t\t$TEXT = evo_lang('You have already RSVP-ed', $lang);\n\t\t\t\t\t\t\t$output .=\"<span class='evors_eventtop_section evors_eventtop_rsvp evors_eventop_rsvped_data'>{$TEXT}: <em class='evors_rsvped_status_user'>\".$this->get_rsvp_status($existing_rsvp_status).\"</em></span>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\treturn $output;\n\t\t}", "title": "" }, { "docid": "8dd52dfd5dc72ddc9f6247437cfd6bbc", "score": "0.5158565", "text": "function match_all()\n {\n $this->m_refund->match_insert_new_kodebooking();\n }", "title": "" }, { "docid": "157f6ae4d438ca356d722216159017a4", "score": "0.51561403", "text": "function verwalteJaeger() {\n $spiel_id = eigenschaften::$spiel_id;\n foreach(eigenschaften::$jaeger_ids as $jaeger_id) {\n if($this->istAktivesSpezialSchiff($jaeger_id)) continue;\n $this->setzeAggressivitaet($jaeger_id, 9);\n $this->setzeTaktik($jaeger_id, 1);\n if($this->SchiffHatFertigkeit($jaeger_id, 'destabilisator')\n && $this->aktiviereDestabilisator($jaeger_id)) continue;\n if(count(geleitschutz_basis::ermittleKommendeBegleitSchiffe($jaeger_id)) != 0) {\n @mysql_query(\"UPDATE skrupel_schiffe SET flug=0, zielid=0, zielx=0, ziely=0 \n\t\t\t\t\tWHERE id='$jaeger_id'\");\n\n continue;\n }\n $schiff_daten = @mysql_query(\"SELECT kox, koy, status, zielid, flug, lemin, spezialmission, schaden, \n\t\t\t\tprojektile, hanger_anzahl, crew, crewmax FROM skrupel_schiffe WHERE id='$jaeger_id'\");\n $schiff_daten = @mysql_fetch_array($schiff_daten);\n //Der naechste unbewohnte Planet wird gescannt und ins Schiffs-Logbuch eingetragen, falls er sich\n //fuer die Kolonisierung nicht lohnt.\n $this->scanneUmgebung($jaeger_id);\n //Hat der Jaeger einen Subraumverzerrer und macht es gerade Sinn, diesen zu aktivieren, so wird\n //nichts weiter gemacht.\n if($this->SchiffHatFertigkeit($jaeger_id, 'srv') && $this->aktiviereSRV($jaeger_id)) continue;\n //Falls der Jaeger einen Tarnfeldgenerator hat, wird dieser (falls es gerade Sinn macht) aktiviert.\n if($this->SchiffHatFertigkeit($jaeger_id, 'tarnung')) $this->aktiviereTarnung($jaeger_id);\n $warp = $this->ermittleMaximumWarp($jaeger_id);\n $x_pos = $schiff_daten['kox'];\n $y_pos = $schiff_daten['koy'];\n $schiff_status = $schiff_daten['status'];\n $ziel_id = $schiff_daten['zielid'];\n $schiff_flug = $schiff_daten['flug'];\n if($schiff_flug == 4) $this->setzeAggressivitaet($jaeger_id, 8);\n $schiff_lemin = $schiff_daten['lemin'];\n $spezialmission = $schiff_daten['spezialmission'];\n $schaden = $schiff_daten['schaden'];\n $projektile = $schiff_daten['projektile'];\n $hangars = $schiff_daten['hanger_anzahl'];\n $crew = $schiff_daten['crew'];\n $crew_max = $schiff_daten['crewmax'];\n //Falls der Jaeger Schaden erlitten hat, aktiviert er die Schiffreparatur und fliegt zur\n //naechsten Sternenbasis.\n if($schaden >= eigenschaften::$jaeger_infos->max_jaeger_schaden\n && !$this->SchiffHatFertigkeit($jaeger_id, 'srv')) {\n //Falls feindliche Schiffe nicht zu nahe sind und das Schiff Projektile an Bord hat, wird ein\n //Minenfeld gelegt, bevor das Schiff einen Reparatur-Flug macht.\n if(ki_basis::ModulAktiv('minenfelder') && $schiff_status != 2\n && $projektile > eigenschaften::$jaeger_infos->min_projektile_minen_legen) {\n $nahes_feindschiff = ki_basis::ermittleNahesZiel($jaeger_id,\n eigenschaften::$sichtbare_gegner_schiffe, null);\n $gegner_entfernung = floor(ki_basis::berechneStrecke($x_pos, $y_pos,\n $nahes_feindschiff['x'], $nahes_feindschiff['y']));\n if($nahes_feindschiff == null || $nahes_feindschiff['id'] == null\n || $nahes_feindschiff['id'] == 0 || ($gegner_entfernung != 0 && $gegner_entfernung\n > eigenschaften::$jaeger_infos->min_feind_abstand_minen_legen && $gegner_entfernung\n < eigenschaften::$jaeger_infos->max_feind_abstand_minen_legen)) {\n $extra = '0:0:'.$projektile;\n @mysql_query(\"UPDATE skrupel_schiffe SET spezialmission=24, routing_schritt=0, \n\t\t\t\t\t\t\trouting_koord='', extra='$extra', zielx=0, ziely=0, zielid=0, flug=0 \n\t\t\t\t\t\t\tWHERE id='$jaeger_id'\");\n\n continue;\n }\n }\n if($schiff_status == 2) {\n $planeten_infos = @mysql_query(\"SELECT id FROM skrupel_planeten \n\t\t\t\t\t\tWHERE (x_pos='$x_pos') AND (y_pos='$y_pos') AND (spiel='$spiel_id')\");\n $planeten_infos = @mysql_fetch_array($planeten_infos);\n $this->tankeLemin($jaeger_id, $planeten_infos['id']);\n }\n if($this->SchiffHatFertigkeit($jaeger_id, 'lloyd')) {\n @mysql_query(\"UPDATE skrupel_schiffe SET spezialmission=16 WHERE id='$jaeger_id'\");\n\n continue;\n }\n if($schiff_status != 2) {\n $this->zuWichtigenPlaneten($jaeger_id);\n\n continue;\n }\n }\n if($this->reagiereAufWurmloch($jaeger_id)) continue;\n //Ist der Jaeger nah genug an einem feindlichen Minenfeld und verfuegt der Jaeger ueber Hangars, so\n //wird versucht das Minenfeld zu raeumen.\n if($this->MinenfeldRaeumen($jaeger_id)) continue;\n //Hier wird geprueft, ob das Schiff durch ein Objekt fliegen muesste, um sein Ziel zu erreichen.\n //Falls ja, wird sogleich ein Ausweich-Kurs gesetzt.\n if($this->mussObjektUmfliegen($jaeger_id)) continue;\n //Wird die untere Schranke oder die untere Prozent-Marke fuer Lemin unterschritten, fliegt\n //das Schiff zum naechsten Planeten, um aufzutanken.\n $strecken_lemin = $this->ermittleStreckenVerbrauch($jaeger_id);\n if($schiff_lemin < (eigenschaften::$jaeger_infos->min_jaeger_lemin_prozent * $strecken_lemin / 100)\n && $schiff_status != 2) {\n $this->fliegeTanken($jaeger_id);\n @mysql_query(\"UPDATE skrupel_schiffe SET routing_schritt=0, routing_koord='' \n\t\t\t\t\tWHERE id='$jaeger_id'\");\n\n continue;\n }\n if($schiff_status == 2) {\n //Baut alle moeglichen Projektile.\n $this->baueProjektile($jaeger_id);\n $planeten_infos = @mysql_query(\"SELECT id, besitzer, sternenbasis, kolonisten \n\t\t\t\t\tFROM skrupel_planeten WHERE (x_pos='$x_pos') AND (y_pos='$y_pos') AND (spiel='$spiel_id')\");\n $planeten_infos = @mysql_fetch_array($planeten_infos);\n $planeten_id = $planeten_infos['id'];\n $besitzer = $planeten_infos['besitzer'];\n $sternenbasis = $planeten_infos['sternenbasis'];\n $kolonisten = $planeten_infos['kolonisten'];\n //Hat das Schiff einen Tarnfeldgenerator, so wird eine gewisse Menge an Rennurbin geladen.\n if($this->SchiffHatFertigkeit($jaeger_id, 'tarnung')) {\n $this->ladeResourceAufSchiff($jaeger_id, $planeten_id, 'min2',\n eigenschaften::$schiffe_infos->max_ren_tarnung_start);\n }\n //Falls ein beschaedigter Jaeger bei einer Sternenbasis ist, bleibt er fuer die Reparatur\n //im Orbit.\n if($sternenbasis == 2 && $besitzer == eigenschaften::$comp_id) {\n if($crew < $crew_max) {\n $neue_crew = $crew_max - $crew;\n $extra = '0:'.$neue_crew.':0';\n @mysql_query(\"UPDATE skrupel_schiffe SET spezialmission=23, extra='$extra' \n\t\t\t\t\t\t\tWHERE id='$jaeger_id'\");\n\n continue;\n } elseif($schaden != 0) {\n @mysql_query(\"UPDATE skrupel_schiffe SET spezialmission=14 WHERE id='$jaeger_id'\");\n\n continue;\n }\n }\n //Es wird geprueft, ob sich der Planet fuer die Kolonisierung nicht lohnt.\n ki_basis::PlanetLohntSich($planeten_id);\n //Falls der Jaeger nicht an einem gegnerischen Planeten ist, wird weiter geflogen.\n if(($schiff_flug == 0 || $schiff_flug == 4) && $besitzer != 0\n && $besitzer != eigenschaften::$comp_id && $kolonisten >= 1000) {\n $this->bombadierePlaneten($jaeger_id, true);\n\n continue;\n } else $this->fliegeJaeger($jaeger_id);\n //Hat das Schiff aus welch Gruenden auch immer kein Ziel, so wird eins bestimmt.\n $flug_daten = @mysql_query(\"SELECT zielx, ziely, kox, koy FROM skrupel_schiffe \n\t\t\t\t\tWHERE id='$jaeger_id'\");\n $flug_daten = @mysql_fetch_array($flug_daten);\n if(($flug_daten['zielx'] == 0 && $flug_daten['ziely'] == 0)\n || ($flug_daten['zielx'] == $flug_daten['kox'] && $flug_daten['ziely'] == $flug_daten['koy']))\n $this->fliegeJaeger($jaeger_id);\n if($schiff_lemin == 0 && $sternenbasis == 2)\n $this->tankeLeminStart($jaeger_id, $planeten_id);\n else $this->tankeLemin($jaeger_id, $planeten_id);\n\n continue;\n }\n //Falls das Schiff Begleitschutz gibt, wird nur die Aggressivitaet etwas herabgesetzt, damit das\n //zu begleitende Schiff zu erst angegriffen wird.\n if($this->gibtWeiterGeleitschutz($jaeger_id)) {\n $this->setzeAggressivitaet($jaeger_id, 8);\n\n continue;\n }\n //Es wird ueberprueft, ob das gegnerische Schiff, das angeflogen wird, noch sichtbar ist und\n //ueberhaupt noch existiert. Falls nicht, wird ein neuer Kurs berechnet.\n if($schiff_flug == 3) {\n $sicht = 'sicht_'.eigenschaften::$comp_id;\n $ziel_daten = @mysql_query(\"SELECT $sicht FROM skrupel_schiffe WHERE (id='$ziel_id')\");\n $ziel_daten = @mysql_fetch_array($ziel_daten);\n $ziel_sichtbar = $ziel_daten[$sicht];\n if($ziel_sichtbar == null || $ziel_sichtbar == 0) {\n $this->fliegeJaeger($jaeger_id);\n\n continue;\n }\n }\n //Ist ein sichtbares Schiff in Reichweite, wird es sofort angegriffen.\n if(count(eigenschaften::$sichtbare_gegner_schiffe) > 0) {\n $nahes_schiff = ki_basis::ermittleNahesZiel($jaeger_id, eigenschaften::$sichtbare_gegner_schiffe,\n eigenschaften::$bekannte_wurmloch_daten);\n $entfernung = floor(ki_basis::berechneStrecke($x_pos, $y_pos, $nahes_schiff['x'],\n $nahes_schiff['y']));\n if($entfernung <= eigenschaften::$jaeger_infos->max_jaeger_reichweite_schiffe\n && $entfernung != 0 && $nahes_schiff['id'] != 0) {\n $this->bombadierePlaneten($jaeger_id, false);\n $this->fliegeSchiff($jaeger_id, $nahes_schiff['x'], $nahes_schiff['y'], $warp,\n $nahes_schiff['id']);\n\n continue;\n }\n }\n //Hat das Schiff aus welch Gruenden auch immer kein Ziel, so wird eins bestimmt.\n $flug_daten = @mysql_query(\"SELECT zielx, ziely, kox, koy FROM skrupel_schiffe \n\t\t\t\tWHERE id='$jaeger_id'\");\n $flug_daten = @mysql_fetch_array($flug_daten);\n if(($flug_daten['zielx'] == 0 && $flug_daten['ziely'] == 0)\n || ($flug_daten['zielx'] == $flug_daten['kox'] && $flug_daten['ziely'] == $flug_daten['koy']))\n $this->fliegeJaeger($jaeger_id);\n }\n }", "title": "" }, { "docid": "a6ed4273e00523e9e5a69d1619818f9a", "score": "0.51541865", "text": "public function reservationAction(Request $request) {\n\n\t\t// On récupère la session\n\t\t$session = $request->getSession();\n\n\t\tif ($session->get('reservation_id')) { // Si l'utilisateur revient sur la page en cours de reservation\n\t\t\t$reservation = $this->getDoctrine()->getManager()->getRepository('FormBundle:Reservation')->find($session->get('reservation_id'));\n\t\t} else { // Sinon on crée un reservation vide\n\t\t\t$reservation = new Reservation();\n\t\t}\t\t\n\n\t\t// Création du formulaire\n\t\t$formBuilder = $this->get('form.factory')->createBuilder(FormType::class, $reservation);\n\n\t\t// Création des champs du formulaire\n\t\t$formBuilder\n\t\t\t->add('jour',\t\t\t\t\t\t\t\tJourType::class)\n\t\t\t->add('nom_reservation',\t\tTextType::class)\n\t\t\t->add('prenom_reservation',\tTextType::class)\n\t\t\t->add('email',\t\t\t\t\t\t\tEmailType::class)\n\t\t\t->add('submit',\t\t\t\t\t\t\tSubmitType::class, array('attr' => ['value' => 'Valider']));\n\n\t\t// On génère le formulaire\n\t\t$form = $formBuilder->getForm();\n\n\n\t\t// Si le formulaire est soumis\n\t\tif ($request->isMethod('POST')) {\n\n\t\t\t// On fait le lien Requete <=> Formulaire, la variable $reservation contient les valeurs entrées dans le formulaire\n\t\t\t$form->handleRequest($request);\n\n\t\t\t// Si les données sont correctes\n\t\t\tif ($form->isValid()) { \n\n\t\t\t\t// On récupère le jour\n\t\t\t\t$jour = $this->getDoctrine()->getManager()->getRepository('FormBundle:Jour')->findOneBy(array('jour' => $reservation->getJour()->getJour()));\n\n\t\t\t\tif ($jour != null) { // Si le jour existe déjà on l'assigne à la reservation\n\t\t\t\t\t$reservation->setJour($jour);\t\t\t\t\n\t\t\t\t} \n\n\t\t\t\t// On met le nom en majuscule\n\t\t\t\t$reservation->setNomReservation(strtoupper($reservation->getNomReservation()));\n\n\t\t\t\t// On crée le code aléatoire de reservation grâce au service\n\t\t\t\t$codeReservationService = $this->container->get('form.codeReservation');\n\t\t\t\t$codeReservation = $codeReservationService->codeReservation();\n\n\t\t\t\t// On verifie que ce code n'existe pas déjà \n\t\t\t\t$codeExistant = $this->getDoctrine()->getManager()->getRepository('FormBundle:Reservation')->findOneBy(array('code' => $codeReservation));\n\t\t\t\t\n\t\t\t\t// Tant que le code créé existe, on en crée un autre\n\t\t\t\twhile ($codeExistant) {\n\t\t\t\t\t$codeReservation = $codeReservationService->codeReservation();\n\t\t\t\t}\t\t\t\t\n\n\t\t\t\t// On assigne le code\n\t\t\t\t$reservation->setCode($codeReservation);\n\n\t\t\t\t// On recupère l'entity manager\n\t\t\t\t$em = $this->getDoctrine()->getManager();\n\n\t\t\t\t$em->persist($reservation);\n\t\t\t\t$em->flush();\n\n\t\t\t\t// On crée la variable de session pour la reservation\n\t\t\t\t$session->set('reservation_id', $reservation->getId());\n\n\t\t\t\t// On redirige vers la page suivante\n\t\t\t\treturn $this->redirectToRoute('info_billet');\n\t\t\t} else { // Si les données ne sont pas valides\n\t\t\t\treturn $this->render('FormBundle::info_reservation.html.twig', array('form' => $form->createView()));\n\t\t\t}\n\n\t\t} else { // Si on arrive sur la page pour la première fois\n\t\t\treturn $this->render('FormBundle::info_reservation.html.twig', array('form' => $form->createView()));\n\t\t}\n\t}", "title": "" }, { "docid": "eaa0eb01bb01878ad8d3f1e5076628cb", "score": "0.51541847", "text": "public function voegmetingtoe()\n {\n $temp = new Temperatuur();\n if (!isset($_GET['guid']) || empty($_GET['guid'])) {\n echo '{\"Error\" : \"Er is een fout opgetreden\"}';\n exit;\n }\n if (isset($_GET['meting']) && !empty($_GET['meting']) && $temp->guidIsCorrect($_GET['guid'])) {\n $db = new DatabaseInstance();\n $conn = $db->create();\n\n $stmt = $conn->prepare(\"CALL AddTempMeting(?, ?)\");\n $stmt->execute([1, $_GET['meting']]);\n\n\n $guid = $temp->createGuid();\n\n $stmt = $conn->prepare(\"UPDATE `tempguid` SET `current_guid`= ?\");\n $stmt->execute([$guid]);\n\n echo '{\"guid\" : \"' . $guid . '\"}';\n } else {\n echo '{\"Error\" : \"Er is een fout opgetreden\"}';\n exit;\n }\n }", "title": "" }, { "docid": "b6893b6e48c2fca3b5c50ac03e5a01f1", "score": "0.515296", "text": "public function store(Request $request)\n {\n //Create $end_time string in time format H:i\n $start_time = $request->request->get('start_time');\n $end_time = $request->request->get('end_time');\n $carbon_end_time = new Carbon($start_time);\n $carbon_end_time->addHours((int) $end_time);\n $end_time=$carbon_end_time->format('H:i');\n $request->request->set('end_time',$end_time);\n \n //Validate data\n $storeData = $request->validate([\n 'user_id' => 'required',\n 'reservation_date' => 'required|after:yesterday',\n 'start_time' => 'required|date_format:H:i|after:15:59|before:20:01',\n 'end_time' => 'required|date_format:H:i|after:17:59|before:22:01',\n 'number_people' => 'required|max:10',\n 'drink_name' => 'required',\n 'dish_name' => 'required'\n\n ]);\n\n //Get array of availible tables\n $reservation_date =$storeData['reservation_date'];\n $start_time =$storeData['start_time'];\n $end_time =$storeData['end_time'];\n $availible_tables = self::getAvailibleTables($reservation_date,$start_time,$end_time);\n\n //Check if there is enough availible tables for the specified number of people\n if(count($availible_tables)*2 < $storeData['number_people']){\n return redirect('/bookings')\n ->with('failure', 'Not enough available tables to accommodate '.$storeData['number_people'].\n ' people at '.$reservation_date.' from '.$start_time.' to '.$end_time.'.'); \n }\n\n //Create reservation\n $booking = Reservation::create($storeData);\n $reservation = Reservation::find($booking->id);\n\n //Attach tables to the reservation\n $number_of_tables_needed = ceil($storeData['number_people']/2);\n for ($i=0; $i < $number_of_tables_needed; $i++) { \n $reservation->tables()->attach($availible_tables[$i]->id);\n }\n\n return redirect('/bookings')->with('success', 'Booking has been saved!');\n }", "title": "" }, { "docid": "1858f9ea285b2ce2f62328b9d801d213", "score": "0.51508105", "text": "public function insert_reserve_online($ref, $id_ocupacion, $id_customer, $adults_qty, $children_qty, $interm_id, $qty_nights, $HS_nights, $LS_nights, $price_per_night, $priceHS, $amount_commision, $sub_total_rent, $ITBIS, $services_amount, $deposit, $general_amount, $status, $reserve_comment, $online){\n $query=\"INSERT INTO `\".DB_PREFIX.\"reserves` ( `id`,\n \t\t\t\t\t\t\t\t\t\t\t\t`ref`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`id_occupancy`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`id_client`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`adults`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`children`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`id_interm`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`qty_nights`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`nightsHS`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`nightsLS`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`price_per_night`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`priceHS`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`commision`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`amount`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`tax`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`services_amount`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`deposit`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`total`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`status`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`comment`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`online`)\n \t\t\t\t\tVALUES ( NULL ,'\".$this->link->myesc($ref).\"','\".$this->link->myesc($id_ocupacion).\"','\".$this->link->myesc($id_customer).\"','\".$this->link->myesc($adults_qty).\"','\".$this->link->myesc($children_qty).\"','\".$this->link->myesc($interm_id).\"','\".$this->link->myesc($qty_nights).\"','\".$this->link->myesc($HS_nights).\"','\".$this->link->myesc($LS_nights).\"','\".$this->link->myesc($price_per_night).\"','\".$this->link->myesc($priceHS).\"','\".$this->link->myesc($amount_commision).\"','\".$this->link->myesc($sub_total_rent).\"','\".$this->link->myesc($ITBIS).\"','\".$this->link->myesc($services_amount).\"','\".$this->link->myesc($deposit).\"','\".$this->link->myesc($general_amount).\"','\".$this->link->myesc($status).\"','\".$this->link->myesc($reserve_comment).\"','\".$this->link->myesc($online).\"')\";\n /*NOTE: HERE IT IS IMPORTANTE THAT THE BOOKING CAN INSERT COMMENT IN CASE THAT THE ONLINE CLIENT IS INSTERETED IN BUYING INFO*/\n $result = $this->link->execute($query);\n return $result;\n\t}", "title": "" } ]
aee444d23926b52afb58dfae3df8c804
Delete all the items from cart.
[ { "docid": "ae5f24f63dee2d7e62172003cdcde0a4", "score": "0.6410025", "text": "public function delete_all( $user_id ) {\n\t\t$this->db\n\t\t\t->from( 'cart' )\n\t\t\t->where( 'user_id', $user_id )\n\t\t\t->delete();\n\t}", "title": "" } ]
[ { "docid": "58d32c92396d01ab852c1cae80209882", "score": "0.77041936", "text": "public function clearCart(){\n Cart::instance('cart')->destroy();\n $this->emitTo('cart-count-component','refreshComponent');\n session()->flash('message','All items removed Successfully!');\n }", "title": "" }, { "docid": "c3e87016fd18a908edb06e9d5073b0e7", "score": "0.7658407", "text": "public function deleteAll()\n {\n $this->cartModel->deleteAll();\n $this->orderModel->delete();\n }", "title": "" }, { "docid": "e73f82dba3595cecfc6d5a34460ddbdf", "score": "0.7654096", "text": "public function clear() {\n Auth::userAuth();\n Csrf::CsrfToken();\n Session::set('success', 'All Item has been deleted');\n $delete = $this->Cart->clear();\n if ($delete) {\n Redirect::to('cart/cart');\n }\n }", "title": "" }, { "docid": "42ef5a11dc84f6101c5053947758f542", "score": "0.7616737", "text": "function deleteAll(){\n $cart = new cartModel();\n $cart->cust_id = $_SESSION['userid'];\n $cart->deleteAllCart();\n }", "title": "" }, { "docid": "76020aa3cece3d70260eb62ba822726d", "score": "0.7320227", "text": "public function deleteItems()\n {\n foreach($this->items as $item)\n {\n $item->delete();\n }\n\n $this->price = 0;\n $this->save();\n $this->refresh();\n }", "title": "" }, { "docid": "dbb5b64372b74359d5b428ac6210580a", "score": "0.72979504", "text": "public function delete_all_cart(){\n\n $sql = \"DELETE FROM cart\";\n $stmt = $this->conn->prepare($sql);\n $stmt->execute(array());\n $result = $stmt->fetch();\n return $result;\n }", "title": "" }, { "docid": "a31d50db32239edc51e898a71c62eff6", "score": "0.7152014", "text": "public function deleteAllProducts()\n {\n $this->cart->reset();\n return redirect('/');\n }", "title": "" }, { "docid": "77c1aa89be8c952025ee7d29e03edcac", "score": "0.7132738", "text": "public static function deleteAllProduct(){\n $dbh = Database::connect();\n $query = \"DELETE FROM cartcontent WHERE idCart=?\";\n $sth = $dbh->prepare($query);\n $sth->setFetchMode(PDO::FETCH_CLASS,'cartProduct'); \n $sth->execute(array($_GET['id_cart'])); \n }", "title": "" }, { "docid": "6550b31ec697f3a8204e0673a6dc6651", "score": "0.71198714", "text": "public function clear_all_cart(Request $request)\n\t{\n\t\t$user_details = JWTAuth::parseToken()->authenticate();\n\t\t$order = Order::where('user_id', $user_details->id)->status('cart')->first();\n\t\t\n\t\tif(is_null($order)) {\n\t\t\treturn response()->json([\n\t\t\t\t'status_code' => '0',\n\t\t\t\t'status_message' => trans('api_messages.already_removed'),\n\t\t\t]);\n\t\t}\n\n\t\ttry {\n\t\t\t\\DB::beginTransaction();\n\t\t\t$order_items = OrderItem::where('order_id', $order->id)->get();\n\n\t\t\t$order_item_modifiers = OrderItemModifier::whereIn('order_item_id',$order_items->pluck('id')->toArray())->get();\n\t\t\t\n\t\t\tif($order_item_modifiers->count()) {\n\t\t\t\t$order_item_modifier_items = OrderItemModifierItem::whereIn('order_item_modifier_id',$order_item_modifiers->pluck('id')->toArray())->delete();\n\t\t\t}\n\n\t\t\tOrderItemModifier::whereIn('order_item_id',$order_items->pluck('id')->toArray())->delete();\n\t\t\tOrderItem::where('order_id', $order->id)->delete();\n\t\t\tOrderDelivery::where('order_id', $order->id)->delete();\n\t\t\tPenalityDetails::where('order_id', $order->id)->delete();\n\t\t\tOrder::find($order->id)->delete();\n\t\t\t\\DB::commit();\n\t\t}\n\t\tcatch (\\Exception $e) {\n\t\t\t\\DB::rollback();\n\t\t\treturn response()->json([\n\t\t\t\t'status_code' => '0',\n\t\t\t\t// 'status_message' => trans('api_messages.unable_to_remove'),\n\t\t\t\t'status_message' => $e->getMessage(),\n\t\t\t]);\n\t\t}\n\n\t\treturn response()->json([\n\t\t\t'status_code' => '1',\n\t\t\t'status_message' => trans('user_api_language.removed_successfully'),\n\t\t]);\n\t}", "title": "" }, { "docid": "b33850a3f55dde5306245055fca3dff3", "score": "0.70855165", "text": "public function clearCart();", "title": "" }, { "docid": "aa2adc5645cc7538d570800439ce6842", "score": "0.7083107", "text": "public function clear()\n {\n $this->clearItems();\n $this->clearCartConditions();\n }", "title": "" }, { "docid": "8f48924f61c560c312794fa13c74df9a", "score": "0.70805365", "text": "public function deleteAllItems(CartInterface $cart)\n {\n foreach ($cart->getItems() as $item) {\n $this->doDeleteItem($cart, $item);\n }\n\n return $cart;\n }", "title": "" }, { "docid": "624478f1948b965a9d4f8534eb8db50a", "score": "0.70774084", "text": "public function RemoveAll($id){\n $Item = Item::find($id);\n $OldCart = Session::has('shoppingcart') ? Session::get('shoppingcart') : null ;\n //cart is the object if the ShoppingCart ======> session\n $cart = new ShoppingCart($OldCart );\n $cart->RemoveItem($Item->id);\n\n \n if ($cart->TotalQuantity >= 1 ) {\n Session::put('shoppingcart',$cart); \n }else {\n Session::forget('shoppingcart');\n }\n return redirect()->route('ShoppingCart'); \n }", "title": "" }, { "docid": "5e8dad2c55af3855cbb2347a79e7e2dd", "score": "0.70306987", "text": "public function onClearCart()\n {\n $this->manager->clearItems();\n $this->prepareCart();\n }", "title": "" }, { "docid": "d9accf2c66ead91a2b5c76708d1847ee", "score": "0.69675314", "text": "function delete_cart() {\n\t\tif ( $cart = $this->get_cart() ) {\n\t\t\t$cart->delete();\n\t\t}\n\t}", "title": "" }, { "docid": "5ea7e8c6d496848d233c4ceb6a6b1455", "score": "0.6930148", "text": "public function clearCart(){\n return Cart::destroy();\n }", "title": "" }, { "docid": "e715b0ea17f7f443dba1ebd95de34704", "score": "0.6702468", "text": "function empty_cart()\n\t{\n\t\t\n\t\t$this->cart->destroy();\n\t\tredirect('cart/view_cart');\n\t}", "title": "" }, { "docid": "b8d6c4a26a4eb122ea2f4f960f7d39a1", "score": "0.6701548", "text": "public function emptyCart()\n {\n DB::table('carts')->where('user_id',Auth::user()->id)->delete();\n Cart::destroy();\n return redirect('cart')->withSuccessMessage('Корзина очищена!');\n }", "title": "" }, { "docid": "cd82c01f713e3d766ae64525eb7488dc", "score": "0.6678938", "text": "public function removeAllCartItems()\n {\n foreach ($this->session->all() as $sessionKey => $sessionValue) {\n if (substr($sessionKey, 0, strlen(ConfigService::$brand . '-' . self::SESSION_KEY)) == ConfigService::$brand . '-' . self::SESSION_KEY) {\n $this->session->remove($sessionKey);\n }\n }\n }", "title": "" }, { "docid": "d7d6cc93f6a8523dd93eb277b82c27bd", "score": "0.6664875", "text": "public function deleteAll()\n {\n $this->doDeleteAll();\n }", "title": "" }, { "docid": "37ccd8af53ceb5f4b93805d510223a72", "score": "0.6664553", "text": "public function clearItems()\n {\n $this->items->each(function ($item) {\n $item->delete = true;\n });\n }", "title": "" }, { "docid": "d5ff46b5f6be47889da89e08b65957d3", "score": "0.66585046", "text": "public function emptyCart()\n {\n Cart::destroy(); //0\n return redirect('cart')->withSuccessMessage('Your items has been removed from the cart');\n }", "title": "" }, { "docid": "aa63f17cea873177c506e39fe1b3f5fa", "score": "0.66538244", "text": "public function clearCart()\n {\n $quote = $this->checkoutSession->getQuote();\n\n if ($quote->getLinkedQuotationId()) {\n $this->quoteRepository->delete($quote);\n }\n }", "title": "" }, { "docid": "d255ca29244e4e4b13ee1abb5911f240", "score": "0.6633742", "text": "public function emptyCart(){\n $this->_items = (object) array();\n }", "title": "" }, { "docid": "db8a0fb7641c4854eed1dea081abe06f", "score": "0.663026", "text": "public function deleteAll() \n {\n // note that the item couldn't be deleted.\n Mage::log(\n \"Attempting to clear the cache\", \n Zend_Log::INFO\n );\n \n $collection = Mage::getModel('Proxy/feed')->getCollection();\n \n foreach ($collection as $ProxyItem) {\n try { \n $ProxyItem->delete(); \n } catch (Exception $e) {\n Mage::log(\n sprintf(\"Couldn't delete record. [%s]\", var_export($_item, TRUE)), \n Zend_Log::ERR\n );\n }\n }\n }", "title": "" }, { "docid": "17c7834758a58426367a8cd916ad0a03", "score": "0.659911", "text": "public function clear_cart(Request $request)\n\t{\n\t\t$user_details = JWTAuth::parseToken()->authenticate();\n\n\t\t$remove_order = OrderItem::with('order_item_modifier.order_item_modifier_item')->find($request->order_item_id);\n\t\t$remove_order_item = OrderItemModifier::where('order_item_id',$request->order_item_id)->get();\n\n\t\tif($remove_order_item) {\n\t\t\tforeach ($remove_order_item as $key => $value) {\n\t\t\t\t$order = $value->id;\n\t\t\t\t$remove_order_item_modifer = OrderItemModifierItem::whereIn('order_item_modifier_id',[$order])->delete();\n\t\t\t}\n\t\t\tOrderItemModifier::where('order_item_id',$request->order_item_id)->delete();\n\t\t}\n\t\t\n\n\t\tif ($remove_order) {\n\t\t\t$remove_order->delete();\n\t\t}\n\n\t\t$orderitem = OrderItem::where('order_id', $request->order_id)->count();\n\n\t\tif ($orderitem == 0) {\n\t\t\t$remove_order_delivery = OrderDelivery::where('order_id', $request->order_id)->first();\n\t\t\tif ($remove_order_delivery) {\n\t\t\t\t$remove_order_delivery->delete();\n\t\t\t}\n\t\t\t$order = Order::find($request->order_id);\n\t\t\tif ($order) {\n\t\t\t\t$remove_penality = PenalityDetails::where('order_id', $order->id)->first();\n\t\t\t\tif ($remove_penality) {\n\t\t\t\t\t$remove_penality->delete();\n\t\t\t\t}\n\t\t\t\t$order->delete();\n\t\t\t\t//ASAP\n\t\t\t\t$address = UserAddress::where('user_id', $user_details->id)->default()->first();\n\t\t\t\t$address->order_type = 0;\n\t\t\t\t$address->save();\n\t\t\t}\n\n\t\t}\n\n\t\treturn response()->json([\n\t\t\t'status_message' => __('user_api_language.cart.removed_successfully_cart'),\n\t\t\t'status_code' => '1',\n\t\t]);\n\t}", "title": "" }, { "docid": "cb8eaa99496d7d42683f135c284de30a", "score": "0.6595983", "text": "public function deleteAll()\n {\n $this->clear();\n }", "title": "" }, { "docid": "de48c02a67f077a87493d89a00c79def", "score": "0.65902495", "text": "private function cartEmpty() : void {\n try {\n $this->cart_handler->deleteCart($this->order_id);\n } catch (\\Exception $e) {\n mailchimp_ecommerce_log_error_message('Unable to delete cart from mailchimp. Order ID: ' . $this->order_id);\n }\n }", "title": "" }, { "docid": "37af24013e2f8c634f3e650df737ad4e", "score": "0.65816903", "text": "public function clear(): void\n {\n\t\t $_SESSION['cart'] = [];\n }", "title": "" }, { "docid": "31bd52918d270002dae6d1e7d11d1dc2", "score": "0.65484506", "text": "function undeleteProductsAll(){\n}", "title": "" }, { "docid": "8905cfc06fd8f793b04d0ede5ce37f44", "score": "0.6530442", "text": "public function deleteAll();", "title": "" }, { "docid": "8905cfc06fd8f793b04d0ede5ce37f44", "score": "0.6530442", "text": "public function deleteAll();", "title": "" }, { "docid": "d11da859398e9d07d333cb7c640382ce", "score": "0.6518306", "text": "public function deleteAll() {\n // TODO: Implement deleteAll() method.\n }", "title": "" }, { "docid": "a771cd4501da2b80ca23ac38dcf241d1", "score": "0.6517731", "text": "public function deleteAll()\n {\n }", "title": "" }, { "docid": "a771cd4501da2b80ca23ac38dcf241d1", "score": "0.6517731", "text": "public function deleteAll()\n {\n }", "title": "" }, { "docid": "25fcfbbe008cccf100d7125810d37c84", "score": "0.6495746", "text": "public function deleteFromCart()\n {\n $cartID = $this->args[\"cartID\"] ?? 0;\n $productID = $this->args[\"productID\"] ?? 0;\n \n if ($cartID && $productID) {\n $res = $this->model->deleteItem($cartID, $productID);\n\n if ($errorCode = $this->model->getError()) {\n $this->setError(\": $errorCode\");\n } elseif ($res) {\n\n $cart = array();\n $cart[\"cart_id\"] = $cartID;\n\n $couponObj = $this->loadModule(\"coupons\");\n\n if ($result = $couponObj->applyCoupon($cartID)) {\n if (isset($result[\"discount_applied\"]) && $result[\"discount_applied\"]) {\n $cart[\"cart_discount\"] = $result[\"discount_amt\"] ?? 0.0;\n }\n }\n\n $newCart = $couponObj->cart;\n $cartItemCount = 0;\n $cartTotal = 0.0;\n\n if ($newCart) {\n foreach ($newCart as $row) {\n $cartItemCount += 1;\n $cartTotal += (float)$row[\"cart_total\"];\n }\n }\n $cart[\"cart_item_count\"] = $cartItemCount;\n $cart[\"cart_total\"] = $cartTotal;\n $this->setData(\"payload\", $cart);\n }\n } else {\n $this->setError(\": INVALID_REQUEST\");\n }\n\n $this->render();\n }", "title": "" }, { "docid": "7dce1257627ae45576a9ecbf2623855b", "score": "0.647273", "text": "public function collectDeleteCart()\n {\n $this->cart->deleteCartProduct($_GET['ean']);\n $this->redirect($_SERVER['HTTP_REFERER']);\n \n }", "title": "" }, { "docid": "3972547b7ed5a214f07f0171517bee50", "score": "0.6470848", "text": "public function deleteAction($index)\n { //vardump($_SESSION);\n\n $cartClass = $this->loadModel('Cart');\n $cart = $cartClass::load();\n /* > ok\n\n $cart->clean();\n $cart->save();\n >a changer pour le for each\n\n $this->render(\n 'catalog::checkout::cart',\n array(\n 'cart' => $cart\n )\n );*/\n $index = $index - 1 ;\n\n foreach ($cart->items as $idx => $item) {\n if ($idx == $index) {\n // verifiez les dates\n $delete = true;\n\n if ($delete) {\n if($item->quantity > 1){\n $item->quantity--;\n $cart->save();\n } else {\n unset($cart->items[$idx]); \n }\n\n/*\n if(isset($this->current_user->firstname)) {\n $this->addFlash('Réservation supprimé', 'success');\n\n Mail::send('[email protected]', 'Contact', $this->current_user->email, $this->current_user->fullname, 'FITNSS, annulation de votre réservation' , 'Bonjour ' . $this->current_user->firstname . ',<br/><br/>\n\n Nous avons pris en compte votre annulation pour la séance de ' . $item->product->label . ' - ' . $item->product->label_slot . ' le [Date] à [Heure].<br/>\n\n Votre remboursement sera effectué suivant nos conditions générales d’utilisation dans un délai de 10 jours ouvrés. <br/>\n\n Pour réserver une autre séance FITNSS, <a href=\"http://fitnss.fr/slots/search\" target=\"_blank\"> cliquez ici</a> <br/><br/>\n\n Sportivement,<br/>\n L’équipe FITNSS.');\n\n Mail::send('[email protected]', 'Contact', '[email protected]', 'Contact' , 'FITNSS, annulation d\\'une réservation', 'La séance de ' . $item->product->label . ' - ' . $item->product->label_slot . ' a été annulé par' . $this->current_user->fullname .' N\\'oubliez pas de le recontacter pour le remboursement. ');\n\n Mail::send('[email protected]', 'Contact', $item->coach->email, $item->coach->fullname, 'FITNSS, annulation d\\'une réservation', 'Une place de la séance de ' . $item->product->label . ' - ' . $item->product->label_slot . ' a été annulé par' . $this->current_user->fullname .' ');\n*/\n\n\n\n\n } else {\n $this->addFlash('Réservation non supprimé', 'error');\n }\n }\n }\n $this->redirect('catalog_checkout_cart');\n }", "title": "" }, { "docid": "8230ecaaf25249324cbbb3b8810e73df", "score": "0.6453383", "text": "public function clear_cart(){\n\t\t$this->session->unset_userdata('orderList');\n\t\t$this->session->unset_userdata('comboList');\n\t\t$this->session->unset_userdata('total');\n\t\t$this->session->unset_userdata('orderId');\n\t\t$this->session->unset_userdata('delivery');\n\t\tredirect('home/index');\n\t}", "title": "" }, { "docid": "e7263d9d889634668d0bb38f64639edb", "score": "0.64489114", "text": "public function remove_cart_items($cartID) {\n \t$this->db->where('Cart_ID', $cartID);\n\t\t$this->db->delete('Cart'); \n }", "title": "" }, { "docid": "78346bb606f675181003a110372248fb", "score": "0.64341486", "text": "public function emptyCart()\r\n {\r\n if (!empty($this->_type))\r\n $where[] = $this->_db->quoteInto('CI_Type = ?', $this->_type);\r\n\r\n $where[] = $this->_db->quoteInto('CI_CartID = ?', $this->_id);\r\n\r\n $this->_db->delete('CartItems', $where);\r\n }", "title": "" }, { "docid": "8723825d0734f1382a35ee68914c525e", "score": "0.64150035", "text": "public function emptyCart() {\n return $this->model\n ->where('id_user', '=', $this->current_user->id)\n ->delete();\n }", "title": "" }, { "docid": "6272c8430ae9f8694a6d02392fc27237", "score": "0.64041716", "text": "public function deleteAll(): void\n {\n $this->getInstance()->flush();\n }", "title": "" }, { "docid": "c385a81eb14d8e7962bb01ed3f5d57d5", "score": "0.6379268", "text": "public function emptyCart()\n {\n Cart::destroy();\n return redirect('cart')->withSuccessMessage('Your cart has been cleared!');\n }", "title": "" }, { "docid": "eb86e926e11c481bfdb89d84e196c556", "score": "0.63741446", "text": "function cartdelete($cart_id){\n Cart::find($cart_id)->delete();\n return back();\n }", "title": "" }, { "docid": "972275d92c47911e333ee5cae3bb54e4", "score": "0.636245", "text": "public function delete() {\n $this->each(function($item){\n $item->delete();\n });\n }", "title": "" }, { "docid": "ad464e227a4e4a12fa0d2a763cd77984", "score": "0.63621783", "text": "public function clear() {\n // If the user is not authenticated\n if (!$this->contact) {\n $this->response->send(array('status' => 'error', 'message' => 'Unauthorized'), 401);\n }\n\n $response = $this->carts_model->clear($this->contact);\n if ($response->status != 'success') {\n $this->response->send(array('status' => 'error', 'message' => 'Could not clear carts on SAGE'), 400);\n }\n\n $this->response->send();\n }", "title": "" }, { "docid": "0250cc3db531fe137a6181d52b857904", "score": "0.63604885", "text": "public function deleteAll() {\n\t\t$this->getInstance()->flush();\n\t}", "title": "" }, { "docid": "fcacdb35a54df762af2fae2acbd98300", "score": "0.6349149", "text": "public function deleteAll ();", "title": "" }, { "docid": "0e3d3e9e63a2b203dbabeb21104744cf", "score": "0.63485444", "text": "public function delete_all()\n {\n $this->rewind();\n \n do {\n \n $obj = $this->current();\n\n if($obj != false)\n $obj->delete();\n \n } while ($this->next());\n }", "title": "" }, { "docid": "cf03f3ca45bfd511aa706265dfe0cac7", "score": "0.6343304", "text": "public function deleteAll()\n {\n $this->reset();\n session_destroy();\n }", "title": "" }, { "docid": "215d80b273d63f4bac5dd19fe175b9a2", "score": "0.63028425", "text": "function deleteCartItem(){\n $locale = getRequest(\"locale\");\n $lang['cart_empty'] = ($locale == \"vn\") ? \"Bạn không có sản phẩm nào trong giỏ hàng\" : \"Your cart is empty\";\n $lang['removed'] = ($locale == \"vn\") ? \"Đã xóa sản phẩm khỏi giỏ hàng\" : \"Product removed from cart\";\n \n if (isset($_SESSION['cart']) and !empty($_SESSION['cart'])) {\n $product_id = intval(getRequest('id'));\n if($product_id > 0){\n $cart = $_SESSION['cart'];\n $totalAmount = 0;\n foreach ($cart as $key => $product) {\n if($product['id'] == $product_id){\n unset($cart[$key]);\n }else{\n $totalAmount += $product['amount'];\n }\n }\n array_values($cart);\n $_SESSION['cart'] = $cart;\n\n Response(json_encode(array(\n 'status' => 'success',\n 'countCart' => count($cart),\n 'totalAmount' => number_format($totalAmount,0,',','.') . \" đ\",\n 'message' => $lang['removed'],\n )));\n }\n }else{\n Response(json_encode(array(\n 'status' => 'error',\n 'message' => $lang['cart_empty'],\n )));\n }\n exit();\n}", "title": "" }, { "docid": "04b4da29d3a11737cc440a726c5ec383", "score": "0.6284813", "text": "public function destroy(carts $carts)\n {\n //\n }", "title": "" }, { "docid": "b83f9164a5d1a6bcf3bb4b267940aade", "score": "0.6278077", "text": "function deleteCartItems() {\n //Instantiate the DB class\n $this->db = new DB();\n\n //Query the database\n $data = $this->db->deleteUserCartProducts($_SESSION['userID']);\n //Close the DB\n $this->db = null;\n\n //Make sure some records were affected to ensure it emptied successfully\n if($data > 0){\n return \"<div class='alert alert-success alert-dismissible fade show' role='alert'>\\n\n You have successfully emptied the items in your cart. <a href='index.php' class='alert-link'>Continue Shopping!</a>\\n\n <button type='button' class='close' data-dismiss='alert' aria-label='Close'>\\n\n <span aria-hidden='true'>&times;</span>\\n\n </button>\\n\n </div>\";\n } else {\n //If no records were affected, then there was an error\n return \"<div class='alert alert-danger alert-dismissible fade show' role='alert'>\\n\n There was an error when emptying your cart, please try again.\\n\n <button type='button' class='close' data-dismiss='alert' aria-label='Close'>\\n\n <span aria-hidden='true'>&times;</span>\\n\n </button>\\n\n </div>\";\n }\n }", "title": "" }, { "docid": "930f6975db6261daa7bf234b61b5b31f", "score": "0.62449026", "text": "public function clearCart()\n\t{\n\t\tse_db_query('DELETE LOW_PRIORITY QUICK FROM shop_stat_cart WHERE id_session = ' . $this->id_stat);\n\t}", "title": "" }, { "docid": "00bf0376adee20d52325d504224687c5", "score": "0.6239257", "text": "function remove_all($is_include_not_checked = true) {\n global $db, $messageStack;\n\n $this->notify('NOTIFIER_CART_REMOVE_ALL_START');\n $is_checked_where = \"\";\n if($is_include_not_checked == false) {\n $is_checked_where .= \" and is_checked = 1\";\n }\n if (isset($_SESSION['customer_id'])){\n// \t$messageStack->add_session('header', 'Delete the product at remove_all in sp', 'caution');\n $sql = \"delete from \" . TABLE_CUSTOMERS_BASKET . \"\n \t\t\t where customers_id = \" . $_SESSION['customer_id'] . $is_checked_where;\n $db->Execute($sql);\n\n $sql = \"delete from \" . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . \"\n \t\t\t where customers_id = \" . $_SESSION['customer_id'];\n $db->Execute($sql);\n } else {\n// \t$messageStack->add_session('header', 'Delete the product at remove_all2 in sp', 'caution');\n $sql = \"delete from \" . TABLE_CUSTOMERS_BASKET . \"\n \t\t\t where cookie_id = '\" . $_SESSION['cookie_cart_id'] . \"'\n \t\t\t and customers_id = 0\" . $is_checked_where;\n $db->Execute($sql);\n\n $sql = \"delete from \" . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . \"\n \t\t\t where cookie_id = '\" . $_SESSION['cookie_cart_id'] . \"'\n \t\t\t and customers_id = 0\";\n $db->Execute($sql);\n }\n $_SESSION['count_cart'] = $this->get_products_items();\n $this->notify('NOTIFIER_CART_REMOVE_ALL_END');\n }", "title": "" }, { "docid": "7598b2da1d04bad28d51672fd7fffa77", "score": "0.6231668", "text": "public function remove(Request $request) {\n $id = $request->input(\"id\");\n $forceAll = $request->input(\"deleteAll\");\n\n $cart = $request->getSession()->get(\"cart\");\n\n $found = false;\n foreach ($cart as $index => &$product) {\n if ($product[\"id\"] == $id) {\n if ($product[\"quantity\"] > 1 && $forceAll !== \"true\") {\n $product[\"quantity\"]--;\n }\n else {\n unset($cart[$index]);\n }\n $found = true;\n }\n }\n\n if (!$found) {\n return json_encode([\"error\", \"That product does not exist.\"]);\n }\n\n $request->session()->put(\"cart\", $cart);\n return $this->returnCartWithSuccess($request);\n }", "title": "" }, { "docid": "4f87f6a492c23191f2ee5deb94156e1b", "score": "0.6229683", "text": "function delete()\n {\n $id = $this->uri->rsegment('3');\n $id = intval($id);\n // truowngf hợp xóa 1 sản phẩm nào đó trong giỏ hang\n if($id >0 )\n {\n // thong tin gio hang\n $carts = $this->cart->contents();\n\n foreach ($carts as $key => $item)\n {\n//\n if($item['id'] == $id)\n {\n //lấy ra tổng số lượng sản phẩm\n $data = array();\n $data['rowid'] = $key;\n $data['qty'] = 0;\n $this->cart->update($data);\n }\n\n\n }\n\n }else{\n // xóa toàn bộ giỏ hàng\n $this->cart->destroy();\n }\n\n // chuyen sang trang danh sach san pham trong gio hang\n redirect(base_url('gio-hang.html'));\n }", "title": "" }, { "docid": "14f614916edcc74b66ba228c6a84e66d", "score": "0.62073433", "text": "public function destroy() {\n $this->cart_contents = array('cart_total' => 0, 'total_items' => 0);\n unset($_SESSION['cart_contents']);\n }", "title": "" }, { "docid": "303f8260c47c170abad716d52e0ad98a", "score": "0.6193859", "text": "public function DeleteCart() {\n Cart::clear();\n Session::flash('success_msg', 'Cart Deleted');\n return redirect('/');\n }", "title": "" }, { "docid": "ef7d881be3a9606e81bab9eb90857bce", "score": "0.61905986", "text": "public function testDeleteItems()\n {\n $quoteId = 1;\n $quoteItemId = 2;\n $productId = 3;\n $sku = 'sku';\n $quoteItem = $this->getMockBuilder(\\Magento\\Quote\\Model\\Quote\\Item::class)\n ->disableOriginalConstructor()\n ->setMethods(['getProductId', 'getOrigData', 'getItemId', 'getSku'])\n ->getMock();\n $quoteItem->expects($this->atLeastOnce())->method('getOrigData')->with('quote_id')->willReturn($quoteId);\n $quoteItem->expects($this->once())->method('getItemId')->willReturn($quoteItemId);\n $quoteItem->expects($this->atLeastOnce())->method('getProductId')->willReturn($productId);\n $quoteItem->expects($this->atLeastOnce())->method('getSku')->willReturn($sku);\n $this->quoteItemRepository->expects($this->once())->method('deleteById')->with($quoteId, $quoteItemId);\n $this->itemRemove->expects($this->once())->method('setNotificationRemove')->with($quoteId, $productId, [$sku]);\n\n $this->itemDelete->deleteItems([$quoteItem]);\n }", "title": "" }, { "docid": "e0da1b382d89bf6f2ebd09c9f72c20af", "score": "0.61815184", "text": "public function deleteAll()\n {\n foreach ($this as $model) {\n $model->delete();\n }\n }", "title": "" }, { "docid": "e31652e6b70b018b06717b19055f08a4", "score": "0.61784726", "text": "public function destroy(){\n CartModel::where('user_id', $_POST['user_id'])->delete();\n return Redirect::back()->withErrors([\"All Cart Items Deleted Successfully\"]);\n }", "title": "" }, { "docid": "c235c8d957d5695558203a6a1e4c3361", "score": "0.61744654", "text": "public static function cartApiDelete()\r\n {\r\n return array();\r\n\r\n\r\n }", "title": "" }, { "docid": "b3fd0ecd2f4b0a75299e0fa9c3042546", "score": "0.6169176", "text": "public function empty()\n {\n session()->forget('cart');\n }", "title": "" }, { "docid": "d79f98c9dff4d112877439cefd087186", "score": "0.61606896", "text": "function delete_all()\n {\n $this->load->model('Product_model');\n if ($this->input->post('checkbox_value')) {\n $id = $this->input->post('checkbox_value');\n for ($count = 0; $count < count($id); $count++) {\n $this->Product_model->deleteProduct($id[$count]);\n }\n }\n }", "title": "" }, { "docid": "d303806409f1ff3552fde1c4a43e34dd", "score": "0.6157606", "text": "public function clear()\n {\n if ($this->order->Items()->exists()) {\n $this->order->Items()->removeAll();\n\n $this->code = 'success';\n $this->message = _t('SHOP_API_MESSAGES.CartCleared', 'Cart cleared');\n $this->cart_updated = true;\n } else {\n $this->code = 'error';\n $this->message = _t('SHOP_API_MESSAGES.CartAlreadyEmpty', 'Cart already empty');\n $this->cart_updated = false;\n }\n\n return $this->getActionResponse();\n }", "title": "" }, { "docid": "59034db003aa650435cd8db30eeb101a", "score": "0.61478513", "text": "public function removeQuoteItems(): void\n {\n //todo-sg: does not clear quote correctly between tests\n /** @var Quote $quote */\n $quote = Bootstrap::getObjectManager()->get('Magento\\Quote\\Model\\Quote');\n $quote->removeAllItems();\n $quote->isDeleted(false);\n $quote->isObjectNew(true);\n $quote->setId(null);\n }", "title": "" }, { "docid": "c35b6efe5d8e427084b5d925a2b4c95d", "score": "0.6143089", "text": "public function removeCart()\n {\n $this->session->remove('cart');\n }", "title": "" }, { "docid": "c5847e20943ba33eff678245f997b8b8", "score": "0.61413133", "text": "public function removecart($id)\n {\n $cart[] = session('dishes');\n $i=0;\n foreach ($cart as $index => $product) {\n if ($product[$i] == $id) {\n unset($cart[$i]);\n }\n }\n // reset the correct values for the cart without the removed items\n session(['dishes' => $cart]);\n\n return redirect('/cart');\n }", "title": "" }, { "docid": "16102a7c8bf07bd1d2adee112caaf398", "score": "0.6129435", "text": "public function actionClear() {\r\n\t\t// $id = isset ( $_REQUEST ['id'] ) ? $_REQUEST ['id'] : null;\r\n\t\t$vip = $_SESSION [SaleConstants::$session_vip];\r\n\t\t$deletedCount = ShoppingCart::deleteAll ( 'vip_id=:vip_id', [ \r\n\t\t\t\t':vip_id' => $vip->id \r\n\t\t] );\r\n\t\t// TODO:should return delete status\r\n\t\t$json = new JsonObj ( 1, '删除成功。', $deletedCount );\r\n\t\techo (Json::encode ( $json ));\r\n\t\treturn;\r\n\t}", "title": "" }, { "docid": "1c4b936400a642a7f7a174ecdbbe7815", "score": "0.6129377", "text": "function delete_item()\n {\n $data = array(\n 'rowid' => $this->input->post('row_id'),\n 'qty' => 0,\n );\n $this->cart->update($data);\n echo $this->showItemList();\n }", "title": "" }, { "docid": "54e2113777442e645fd49e214264f8c1", "score": "0.61240274", "text": "public function delete($id)\n {\n if($id=='all'){\n Cart::destroy();\n }else{\n Cart::remove($id);\n }\n \n return back();\n }", "title": "" }, { "docid": "88f29c2913415682e9afcf51ee73a690", "score": "0.6122583", "text": "public function DeleteAllActionItemses() {\n\t\t\tif ((is_null($this->intId)))\n\t\t\t\tthrow new QUndefinedPrimaryKeyException('Unable to call UnassociateActionItems on this unsaved Strategy.');\n\n\t\t\t// Get the Database Object for this Class\n\t\t\t$objDatabase = Strategy::GetDatabase();\n\n\t\t\t// Journaling\n\t\t\tif ($objDatabase->JournalingDatabase) {\n\t\t\t\tforeach (ActionItems::LoadArrayByStrategyId($this->intId) as $objActionItems) {\n\t\t\t\t\t$objActionItems->Journal('DELETE');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Perform the SQL Query\n\t\t\t$objDatabase->NonQuery('\n\t\t\t\tDELETE FROM\n\t\t\t\t\t`action_items`\n\t\t\t\tWHERE\n\t\t\t\t\t`strategy_id` = ' . $objDatabase->SqlVariable($this->intId) . '\n\t\t\t');\n\t\t}", "title": "" }, { "docid": "a7d1f55f59b5fcb76cd37f9853774522", "score": "0.610942", "text": "function cleanup() {\n global $db, $messageStack;\n\n $this->notify('NOTIFIER_CART_CLEANUP_START');\n if (isset($_SESSION['customer_id'])){\n $sql = \"delete from \" . TABLE_CUSTOMERS_BASKET . \"\n \t\t where customers_id = \" . $_SESSION['customer_id'] . \"\n \t\t and customers_basket_quantity <= 0\";\n } else {\n $sql = \"delete from \" . TABLE_CUSTOMERS_BASKET . \"\n \t\t where cookie_id = '\" . $_SESSION['cookie_cart_id'] . \"'\n \t\t and customers_id <> 0\n \t\t and customers_basket_quantity <= 0\";\n }\n $db->Execute($sql);\n $this->notify('NOTIFIER_CART_CLEANUP_END');\n\n// $products = $this->customers_basket();\n// while (!$products->EOF) {\n// \t$key = $products->fields['products_id'];\n// if ($products->fields['customers_basket_quantity'] <= 0) {\n// if (isset($_SESSION['customer_id'])){\n// $sql = \"delete from \" . TABLE_CUSTOMERS_BASKET . \"\n// where customers_id = '\" . (int)$_SESSION['customer_id'] . \"'\n// and products_id = '\" . $key . \"'\";\n// $db->Execute($sql);\n//\n// $sql = \"delete from \" . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . \"\n// where customers_id = '\" . (int)$_SESSION['customer_id'] . \"'\n// and products_id = '\" . $key . \"'\";\n// $db->Execute($sql);\n// } else {\n// \t$sql = \"delete from \" . TABLE_CUSTOMERS_BASKET . \"\n// where cookie_id = '\" . $_SESSION['cookie_cart_id'] . \"'\n// and customers_id = 0\n// and products_id = '\" . $key . \"'\";\n// $db->Execute($sql);\n//\n// $sql = \"delete from \" . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . \"\n// where cookie_id = '\" . $_SESSION['cookie_cart_id'] . \"'\n// and customers_id = 0\n// and products_id = '\" . $key . \"'\";\n// $db->Execute($sql);\n// }\n// }\n// $products->MoveNext();\n// }\n }", "title": "" }, { "docid": "d740f4d1e14cf019fad9f202eb41a282", "score": "0.61052734", "text": "public function destroy()\n\t{\n\t\t$this->_cart_contents = array('cart_total' => 0, 'total_items' => 0);\n\t\t$this->CI->session->unset_userdata('cart_contents');\n\t}", "title": "" }, { "docid": "63ea368d661fb22bfefc179250ce7b40", "score": "0.60831654", "text": "public function deleteAll()\n {\n $this->fixtureCollection->reset($this->db);\n }", "title": "" }, { "docid": "6fbc4388de64886a48dfd7aedd402f43", "score": "0.6066603", "text": "public function buyItems()\n {\n $cart = Session::get('cart');\n $cart = new Cart($cart);\n foreach ($cart->items as $item) {\n $product = Product::find($item['item']['id']);\n $sizes = explode('|', $item['sizes']);\n\n foreach ($sizes as $size) {\n if ($size == 'small') {\n $product->sizeS--;\n\n } else if ($size == 'medium') {\n $product->sizeM--;\n\n } else if ($size == 'large') {\n $product->sizeL--;\n }\n }\n\n $product->save();\n }\n\n }", "title": "" }, { "docid": "286c41df3dca0afdffc8df1a607b6be5", "score": "0.60654867", "text": "function deleteCart()\n {\n unset($_SESSION['cart']);\n }", "title": "" }, { "docid": "b9e3cbfcb24c1566548a3926214b6c66", "score": "0.6064042", "text": "public function clear()\n {\n foreach ($this->getItems() as $item) {\n \\XLite\\Core\\Database::getEM()->remove($item);\n }\n\n $this->getItems()->clear();\n }", "title": "" }, { "docid": "c0a35b8ab2ed226ea1cd6efe20aee592", "score": "0.6059083", "text": "public function destroy(Cart $cart)\n {\n//\n }", "title": "" }, { "docid": "caee256f6bab93c7cd896902f726570f", "score": "0.6054974", "text": "public function del_cart_item($item_id) {\n\n\t\t$this->db->where('id',$item_id);\n\t\t$this->db->delete(self::TABLE);\n\t}", "title": "" }, { "docid": "7dcee4b774765e1b56c12d2b066b2d39", "score": "0.60531825", "text": "public function destroy(Cart $cart)\n {\n //\n }", "title": "" }, { "docid": "7dcee4b774765e1b56c12d2b066b2d39", "score": "0.60531825", "text": "public function destroy(Cart $cart)\n {\n //\n }", "title": "" }, { "docid": "7dcee4b774765e1b56c12d2b066b2d39", "score": "0.60531825", "text": "public function destroy(Cart $cart)\n {\n //\n }", "title": "" }, { "docid": "7dcee4b774765e1b56c12d2b066b2d39", "score": "0.60531825", "text": "public function destroy(Cart $cart)\n {\n //\n }", "title": "" }, { "docid": "2ce09b31eed1a95ef1b7ee63b0b0aaeb", "score": "0.6051939", "text": "public function delAll()\n\t{\n\t\t$this->DB->eq('s.statusLock', 1); // Unlocked only\n\t\t$this->DB->build();\n\n\t\t// Delete stores\n\t\t$sql = \"SELECT id FROM stores s \";\n\n\t\tif (!empty($this->DB->where_result))\n\t\t{\n\t\t\t$sql .= \"WHERE \" . $this->DB->where_result;\n\t\t}\n\n\t\t$result = $this->DB->query($sql);\n\n\t\tif ($result->numrows == 0)\n\t\t{\n\t\t\t$this->response['error'] = 'No store records selected.';\n\t\t\t$this->ajaxReturn($this->output);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$Store = new \\Models\\Store($this->config, $this->settings, $this->DB);\n\n\t\t\twhile($row = $this->DB->fetch($result))\n\t\t\t{\n\t\t\t\t$Store->delete($row['id']);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6c752f5f918840215b47e3e328e49cdb", "score": "0.6042542", "text": "public static function resetCartSessions()\n {\n $_SESSION['cart']->reset(true);\n unset($_SESSION['sendto']);\n unset($_SESSION['billto']);\n unset($_SESSION['shipping']);\n unset($_SESSION['payment']);\n unset($_SESSION['comments']);\n }", "title": "" }, { "docid": "a1c390705a1f2278d7f073fde3587a4a", "score": "0.6028112", "text": "public function reset()\n {\n session()->forget('cart');\n }", "title": "" }, { "docid": "b2007ef9ff74e6649c0edf8d8c1cfaa2", "score": "0.6025834", "text": "function _clearShoppingCart(){\n\t\tunset($_SESSION['market_place_cart_product']);\n\t\tunset($_SESSION['market_place_cart_price']);\n\t\tunset($_SESSION['market_place_cart_qty']);\t\n\t\theader(\"Location:cart.php\");\n\t}", "title": "" }, { "docid": "7cc4477b07172d6831a2b21b0905707c", "score": "0.60124713", "text": "public function removeAllItems()\n {\n return $this->wishlist->items()->delete();\n }", "title": "" }, { "docid": "cae72c9a833fd59d303bf3d60b4abd07", "score": "0.6003889", "text": "function emptyCart($userInfo){\n $cartRepository = new CartRepository();\n $productRepository = new ProductRepository();\n $deleteProducts = $cartRepository->emptyCart($userInfo);\n if(is_array($deleteProducts)){\n //Update the product quantity for each product in the array\n foreach($deleteProducts as $productId => $quantity){\n $productRepository->updateProductQuantity($productId, $quantity, true);\n }\n echo json_encode(array('message'=> 'Cart empty', 'error' =>''));\n }\n else{\n echo json_encode(array('message'=> '', 'error'=>'Error description'));\n }\n }", "title": "" }, { "docid": "18dc6ac292139f89cc05151c607592d0", "score": "0.6003007", "text": "private function deleteAll()\n {\n foreach (Finder::findFiles('*.jpg', '*.png', '*.pdf')->from($this->uploadDir) as $file) {\n unlink( $file->getRealPath() );\n }\n }", "title": "" }, { "docid": "c560b298b038e99d4b01335e6d73040c", "score": "0.59915465", "text": "public function delete_cart()\n {\n $rowid = $this->input->post('row_id');\n $result = $this->cart->remove($rowid);\n if ($result) {\n echo \"1\";\n }\n }", "title": "" }, { "docid": "7c75afd849a10495b0c775751776380a", "score": "0.5988325", "text": "public function clearCart($cartId) {\n // DELETE PANIER\n // FROM PANIER\n // WHERE id_commande = NULL\n // AND id_user = id;\n // TODO\n }", "title": "" }, { "docid": "b3bbd1aa0d0b7a05f9682187342393c6", "score": "0.59856486", "text": "function delete()\n\t{\n\t\t$row_id = $this->uri->segment(3,FALSE);\n\t\t$data = array('rowid'=>$row_id,\n\t\t\t\t\t 'qty' => 0);\n\t\t$this->cart->update($data);\n\t\t\n\t\tredirect('cart/view_cart');\n\t}", "title": "" }, { "docid": "e39c036e9296da53e871327e56b30301", "score": "0.598481", "text": "public function clearCart(Request $request)\n {\n $cart = new ShoppingCart($request);\n $cart->forgetCart($request);\n return redirect('cart');\n }", "title": "" }, { "docid": "a31372bba6326ac8270ddbb1093efb50", "score": "0.5983976", "text": "public function unsetCart(): void\n {\n rex_request::setSession('cart', null);\n }", "title": "" }, { "docid": "3951e2e4f9b93ec3d60bb44670ed145b", "score": "0.59818715", "text": "public function destroy(){\n\t\t\t// goi ham cartDestroy tu model\n\t\t\t$this->cartDestroy();\n\t\t\t// di chuyen den trang gioi hang\n\t\t\theader(\"location:index.php?controller=cart\");\n\t\t}", "title": "" }, { "docid": "8b819f9a603addd45afe68138284a386", "score": "0.5979124", "text": "public function purchaseItems()\n {\n $products = Cart::content();\n\n $user = Auth::user();\n\n $order = new Order();\n\n $order->customer_id = $user->id;\n $order->totalCost = Cart::total();\n $order->save();\n\n foreach($products as $product)\n {\n $productOrder = new ProductOrder;\n $productOrder->order_id = $order->id;\n $productOrder->product_id = $product->id;\n $productOrder->quantity = $product->qty;\n\n \n DB::table('products')\n ->where('id', $product->id )\n ->decrement('quantity', $product->qty);\n\n $productOrder ->save();\n }\n \n\n Cart::destroy();\n return redirect('accountdetails')->withSuccessMessage('Your Order has been Processed');\n\n }", "title": "" } ]
9a086d6b64ce2573a9a173092ef0d9b3
Given an array of "initial" values, returns an array of the different values on this row.
[ { "docid": "1685f414377821a5c712c9706a427aa6", "score": "0.6075703", "text": "public function getArrayDiff(array $init) : array\n {\n $diff = $this->getArrayCopy();\n foreach ($diff as $col => $val) {\n $same = array_key_exists($col, $init)\n && $this->isEquivalent($init[$col], $diff[$col]);\n if ($same) {\n unset($diff[$col]);\n }\n }\n return $diff;\n }", "title": "" } ]
[ { "docid": "08f0991082a454ccfc5daa6950abfd2e", "score": "0.5172468", "text": "static function array_values_changed($original, $comparison) {\n\t\t$fields_changed = array();\n\t\tforeach ($original as $key => $val) {\n\t\t\tif (isset($comparison[$key]) && $val != $comparison[$key]) {\n\t\t\t\t$fields_changed[] = $key;\n\t\t\t}\n\t\t}\n\t\treturn !empty($fields_changed) ? $fields_changed: false;\n\t}", "title": "" }, { "docid": "40f7fd4636b8ec4c88de0ecb672c89a6", "score": "0.5119082", "text": "public static function x(array $array): array\n {\n $na = [];\n\n foreach ($array as $k => $v)\n $na[$k] = null;\n\n return $na;\n }", "title": "" }, { "docid": "33ac5c49c90df984522eb2c012e54c97", "score": "0.51076156", "text": "public function valuesFilter(array $array)\n {\n return array_values($array);\n }", "title": "" }, { "docid": "e1fce8b39fecbc95337acd4f50b77ac2", "score": "0.5073429", "text": "function initial_values()\n {\n return array();\n }", "title": "" }, { "docid": "6f3bd4797123b85741bb08654d43c573", "score": "0.5049581", "text": "public function soloValores($array)\n {\n $arr = array();\n $valores = array_values($array);\n foreach ($valores as $value) {\n if (is_array($value)) {\n array_push($arr, ...$this->soloValores($value));\n } else {\n array_push($arr, $value);\n }\n }\n return $arr;\n }", "title": "" }, { "docid": "b492b9f5ea5b7c6045c27954e4260278", "score": "0.5006239", "text": "public static function pureValues() : array\n {\n return array_values(static::values());\n }", "title": "" }, { "docid": "41fe00ee58c2a73bbac627187710d88d", "score": "0.5005479", "text": "function array_appereances($values) {\n\n\t$appereances = array();\n\n for($i = 0; $i <= max($values); $i++)\n $appereances[] = 0;\n\n foreach ($values as $key => $val)\n $appereances[$val]++;\n\n return $appereances;\n}", "title": "" }, { "docid": "d94c238a9e098ff53cef77dc5ba8a5cf", "score": "0.5003053", "text": "public static function values(): array;", "title": "" }, { "docid": "cc71460fc3bc9f740ca96e41d1ba95b2", "score": "0.49315518", "text": "function set(array $array): array {\n $answer = [];\n foreach ($array as $value) $answer[$value] = 1;\n return $answer;\n }", "title": "" }, { "docid": "939bc0cb72e74e138205b1fb35c1e9ca", "score": "0.49252546", "text": "public static function getValues($array) {\n\t\treturn array_values($array);\n\t}", "title": "" }, { "docid": "9574746834124d376dd7ddbe45df1ec3", "score": "0.4924325", "text": "public static function values(array $array)\r\n {\r\n $result = [];\r\n foreach ($array as $value) {\r\n if (is_array($value) == false) {\r\n $result[] = $value;\r\n } elseif (static::isMulti($value)) {\r\n $result = array_merge($result, static::values($value));\r\n } else {\r\n $result = array_merge($result, array_values($value));\r\n }\r\n }\r\n return $result;\r\n }", "title": "" }, { "docid": "88a6f8917281baec4b63e73776698f05", "score": "0.4906811", "text": "private function _equal_arrays( $array1, $array2 ){\n if( count( $array1 ) > count( $array2 ) ){\n $first = $array1; \n $second = $array2;\n }\n else{\n $first = $array2; \n $second = array1; \n }\n for( $i = 0; $i < count( $first ); $i++ ){\n if( !array_key_exists( $i, $second ) ){\n $second[ $i ] = 0;\n } \n }\n \n return $second;\n }", "title": "" }, { "docid": "005ef53b1ca994c61b4e01b60bedafc4", "score": "0.4906423", "text": "public function getTestSymDiffData()\n {\n return [\n // Case #0: no difference.\n [\n ['a' => 4, 'b' => 6],\n ['a' => 4, 'b' => 6],\n [],\n ],\n // Case #1: basic difference.\n [\n ['a' => 4, 'b' => 6, 'c' => 10],\n ['a' => 4, 'b' => 6],\n ['c' => 10],\n ],\n // Case #2: second array is different.\n [\n ['a' => 4, 'b' => 6],\n ['a' => 4, 'b' => 6, 'c' => 10],\n ['c' => 10],\n ],\n // Case #3: both arrays are missing data.\n [\n ['a' => 4, 'b' => 6],\n ['a' => 4, 'c' => 10],\n ['b' => 6, 'c' => 10],\n ],\n // Case #4: multi level difference.\n [\n [\n 'a' => 4,\n 'b' => 6,\n 'd' => [\n 'f' => 9,\n 'g' => 18,\n 'h' => ['p' => 78, 'foo'],\n ],\n ],\n [\n 'a' => 4,\n 'd' => [\n 'f' => 9,\n 'g' => 19,\n 'r' => 7,\n 'h' => ['y' => 78],\n ],\n ],\n [\n 'b' => 6,\n 'd' => [\n 'g' => 19,\n 'r' => 7,\n 'h' => ['p' => 78, 'y' => 78, 'foo'],\n ],\n ],\n ],\n ];\n }", "title": "" }, { "docid": "9bf49c20673d6e5865c840c6e3e38c32", "score": "0.48678768", "text": "static public function getNeverEqualDataset()\n {\n $retval = [];\n $versionNumbers = self::getVersionNumberDataset();\n for ($i = 0; $i < count($versionNumbers) - 1; $i++) {\n $retval[] = [ $versionNumbers[$i][0], $versionNumbers[$i+1][0] ];\n }\n\n // TODO: add in valid semantic version numbers\n\n return $retval;\n }", "title": "" }, { "docid": "cde13ea90f3bbace26987f9c96cbaaad", "score": "0.47993636", "text": "function diff($old, $new)\n{\n\t$maxlen = 0;\n\tforeach($old as $oindex => $ovalue)\n\t{\n\t\t$nkeys = array_keys($new, $ovalue);\n\t\tforeach($nkeys as $nindex)\n\t\t{\n\t\t\t$matrix[$oindex][$nindex] = isset($matrix[$oindex - 1][$nindex - 1]) ? $matrix[$oindex - 1][$nindex - 1] + 1 : 1;\n\t\t\tif ($matrix[$oindex][$nindex] > $maxlen)\n\t\t\t{\n\t\t\t\t$maxlen = $matrix[$oindex][$nindex];\n\t\t\t\t$omax = $oindex + 1 - $maxlen;\n\t\t\t\t$nmax = $nindex + 1 - $maxlen;\n\t\t\t}\n\t\t}\n\t}\n\n\tif ($maxlen == 0) return array(array('d'=>$old, 'i'=>$new));\n\n\treturn array_merge(\n\t\tdiff(array_slice($old, 0, $omax), array_slice($new, 0, $nmax)),\n\t\tarray_slice($new, $nmax, $maxlen),\n\t\tdiff(array_slice($old, $omax + $maxlen), array_slice($new, $nmax + $maxlen))\n\t);\n}", "title": "" }, { "docid": "bcfa2dd93b7b3087809337db5a1d4a57", "score": "0.4785483", "text": "function getSameParity($data)\n{\n if (empty($data)) {\n return [];\n }\n $first = $data[0] % 2;\n $filtered = array_filter($data, function ($value) use ($first) {\n return abs($value) % 2 === abs($first);\n });\n return array_values($filtered);\n}", "title": "" }, { "docid": "8351a8f02488f337657216c46410533e", "score": "0.4781768", "text": "static public function getAlwaysEqualDataset()\n {\n $retval = [];\n foreach (self::getVersionNumberDataset() as $dataset) {\n $retval[] = [ $dataset[0], $dataset[0] ];\n }\n\n return $retval;\n }", "title": "" }, { "docid": "9ddb39d03069c9b67a07b40892196325", "score": "0.4744321", "text": "public static function keysSameAsValues(array $values): array\n {\n $ret = [];\n foreach ($values as $value) {\n $ret[$value] = $value;\n }\n return $ret;\n }", "title": "" }, { "docid": "38dd1f8cde76e6e3cf2864d59da24b31", "score": "0.47250885", "text": "public function inputForMultipleNumbers()\n {\n return array(\n array('2,3', 5),\n array('4,5,6', 15),\n array('2,3,4,5', 14),\n array('4,7,3,4,7,3,5,6,7,4,3,2,5,7,5,3,4,6,7,8,9,5,5,5,4,3,2', 133),\n array('2,3,4,5', 14),\n );\n }", "title": "" }, { "docid": "a3532c6c0f101ff4b0eadf4a2f58d69f", "score": "0.47191033", "text": "function arrayDiffCount($data) {\n return count(array_diff($data, ['green']));\n}", "title": "" }, { "docid": "4b6c850be4dada79bfa5c08823757667", "score": "0.47117066", "text": "function akeeba_array_divide($array)\n\t{\n\t\treturn array(array_keys($array), array_values($array));\n\t}", "title": "" }, { "docid": "8b87b9614a6768f6b3f0b07f1de42562", "score": "0.469564", "text": "public static function linearDifference($array) {\n\n $difference = current($array) - end($array);\n return $difference;\n }", "title": "" }, { "docid": "05fe0cb3520f101707e0becc9b3d3b9a", "score": "0.46877474", "text": "public function pctChangeArray(array $values)\n {\n $pcts = array();\n $keys = array_keys($values);\n $vals = array_values($values);\n foreach ($vals as $i => $value) {\n if (0 !== $i) {\n $prev = $vals[$i-1];\n if (0 == $prev) {\n $pcts[$i] = '0';\n } else {\n $pcts[$i] = strval(($value-$prev)/$prev);\n }\n }\n }\n array_shift($keys);\n return array_combine($keys, $pcts);\n }", "title": "" }, { "docid": "fc71b6d78de89b280057164c3ba721a7", "score": "0.46841606", "text": "public function getScenarios()\n {\n return [\n // Empty arrays\n ['tril', np::ar([]), [[]] ],\n ['tril', np::ar([[]]), [[]], [-1] ],\n\n // PHP arrays\n ['tril', np::linspace(1, 9, 9)->reshape(3, 3)->data,\n [[1, 0, 0],\n [4, 5, 0],\n [7, 8, 9]],\n ],\n\n // square arrays\n ['tril', np::linspace(1, 9, 9)->reshape(3, 3),\n [[1, 0, 0],\n [4, 5, 0],\n [7, 8, 9]],\n ],\n\n // square arrays, positive offset\n ['tril', np::linspace(1, 9, 9)->reshape(3, 3),\n [[1, 2, 0],\n [4, 5, 6],\n [7, 8, 9]],\n [1]\n ],\n ['tril', np::linspace(1, 9, 9)->reshape(3, 3),\n [[1, 2, 3],\n [4, 5, 6],\n [7, 8, 9]],\n [2]\n ],\n\n // square arrays, negative offset\n ['tril', np::linspace(1, 9, 9)->reshape(3, 3),\n [[0, 0, 0],\n [4, 0, 0],\n [7, 8, 0]],\n [-1]\n ],\n ['tril', np::linspace(1, 9, 9)->reshape(3, 3),\n [[0, 0, 0],\n [0, 0, 0],\n [7, 0, 0]],\n [-2]\n ],\n\n // non square arrays, default offset\n ['tril', np::linspace(1, 8, 8)->reshape(4, 2),\n [[1, 0],\n [3, 4],\n [5, 6],\n [7, 8]],\n ],\n ['tril', np::linspace(1, 8, 8)->reshape(2, 4),\n [[1, 0, 0, 0],\n [5, 6, 0, 0]],\n ],\n\n // non square arrays, positive offset\n ['tril', np::linspace(1, 8, 8)->reshape(4, 2),\n [[1, 2],\n [3, 4],\n [5, 6],\n [7, 8]],\n [1]\n ],\n ['tril', np::linspace(1, 8, 8)->reshape(2, 4),\n [[1, 2, 0, 0],\n [5, 6, 7, 0]],\n [1]\n ],\n ['tril', np::linspace(1, 8, 8)->reshape(2, 4),\n [[1, 2, 3, 0],\n [5, 6, 7, 8]],\n [2]\n ],\n\n // non square arrays, negative offset\n ['tril', np::linspace(1, 8, 8)->reshape(4, 2),\n [[0, 0],\n [3, 0],\n [5, 6],\n [7, 8]],\n [-1]\n ],\n ['tril', np::linspace(1, 8, 8)->reshape(4, 2),\n [[0, 0],\n [0, 0],\n [5, 0],\n [7, 8]],\n [-2]\n ],\n ['tril', np::linspace(1, 8, 8)->reshape(2, 4),\n [[0, 0, 0, 0],\n [5, 0, 0, 0]],\n [-1]\n ],\n ['tril', np::linspace(1, 8, 8)->reshape(2, 4),\n [[0, 0, 0, 0],\n [0, 0, 0, 0]],\n [-2]\n ],\n\n # \\InvalidArgumentException\n ['tril', 'hello', \\InvalidArgumentException::class],\n ['tril', [1, 2, 3],\\InvalidArgumentException::class, ['hello']],\n ['tril', [1, 2, 3],\\InvalidArgumentException::class, [0.5]],\n ];\n }", "title": "" }, { "docid": "6f6b032cbfa74a8955f0ebfb11d8b842", "score": "0.4674959", "text": "public function difference(array $one, array $another)\n {\n return \\array_values(\\array_diff($one, $another));\n }", "title": "" }, { "docid": "7b321a37f4d5d86e25c89f535c431f01", "score": "0.46687958", "text": "private function reduceTriggerList(array $values): array {\n $result = [];\n foreach ($values as $value) {\n if ($value !== 0) {\n $result[] = $value;\n }\n }\n return $result;\n }", "title": "" }, { "docid": "4d96b9843babfb7a5c8724e36956f912", "score": "0.4639544", "text": "public function getValuesAsArray(): array;", "title": "" }, { "docid": "edd644c5781bdc83b6df61a759057ec3", "score": "0.4623016", "text": "function array_cartesian_product($arrays) {\n $result = array();\n $arrays = array_values($arrays);\n $sizeIn = sizeof($arrays);\n $size = $sizeIn > 0 ? 1 : 0;\n foreach ($arrays as $array)\n $size = $size * sizeof($array);\n for ($i = 0; $i < $size; $i ++) {\n $result[$i] = array();\n for ($j = 0; $j < $sizeIn; $j ++)\n array_push($result[$i], current($arrays[$j]));\n for ($j = ($sizeIn - 1); $j >= 0; $j --) {\n if (next($arrays[$j]))\n break;\n elseif (isset($arrays[$j]))\n reset($arrays[$j]);\n }\n }\n return $result;\n }", "title": "" }, { "docid": "e19c6e7c18e543a902bd0657d4ab5f14", "score": "0.46187136", "text": "function diff($arr1, $arr2)\n{\n $res = array();\n $r = 0;\n foreach ($arr1 as $av) {\n if (!in_array($av, $arr2)) {\n $res[$r] = $av;\n $r++;\n }\n }\n\n return $res;\n}", "title": "" }, { "docid": "14b06e612986df6e12bed53285d6496a", "score": "0.4613372", "text": "public static function getRequiredValues():array {\n\n # Set result\n $result = self::REQUIRED_VALUES;\n\n # Return result\n return $result;\n\n }", "title": "" }, { "docid": "7f620dc4d9868de405b36c0966dd64e3", "score": "0.46074164", "text": "public function array_diff() {\n echo '<h1>array difference demo </h1>';\n $array2 = array(\"a\" => \"one\", \"two\", \"five\"); \n $array3 = array(\"b\" => \"one\" , \"four\", \"three\");\n $result = array_diff($array2, $array3);\n print_r($result);\n echo '<hr>';\n }", "title": "" }, { "docid": "54d39f71023b91dfd76aed47321a905c", "score": "0.46057925", "text": "public static function divide($array) {\n return array(array_keys($array), array_values($array));\n }", "title": "" }, { "docid": "f3b9437e5a6841710cfb2666873cf3e4", "score": "0.46028668", "text": "function diff($old, $new){\n foreach($old as $oindex => $ovalue){\n $nkeys = array_keys($new, $ovalue);\n foreach($nkeys as $nindex){\n $matrix[$oindex][$nindex] = isset($matrix[$oindex - 1][$nindex - 1]) ?\n $matrix[$oindex - 1][$nindex - 1] + 1 : 1;\n if($matrix[$oindex][$nindex] > $maxlen){\n $maxlen = $matrix[$oindex][$nindex];\n $omax = $oindex + 1 - $maxlen;\n $nmax = $nindex + 1 - $maxlen;\n }\n } \n }\n if($maxlen == 0) return array(array('d'=>$old, 'i'=>$new));\n return array_merge(\n diff(array_slice($old, 0, $omax), array_slice($new, 0, $nmax)),\n array_slice($new, $nmax, $maxlen),\n diff(array_slice($old, $omax + $maxlen), array_slice($new, $nmax + $maxlen)));\n}", "title": "" }, { "docid": "17d3231a22b3af092fdcdd4560d42fcf", "score": "0.46024293", "text": "private function equalize($arr) {\n\n $r = array();\n $arr = DataLatte::escape($arr);\n\n foreach ($arr as $key => $value) {\n if ($value == \"NULL\") {\n $r[] = sprintf(\" `%s` = %s\", $key, $value);\n } else {\n $r[] = sprintf(\" `%s` = '%s'\", $key, $value);\n }\n }\n\n return $r;\n }", "title": "" }, { "docid": "e58f1d196cfe6488d1d2bf94ebaa3ed9", "score": "0.45941818", "text": "private function _get_duplicates($array)\r\n\t{\r\n\t\treturn array_unique(array_diff_assoc($array, array_unique($array)));\r\n\t}", "title": "" }, { "docid": "f0ad9cc7d42896b9fdc7ca89068073d4", "score": "0.45836926", "text": "public function arrayValues()\n {\n return [\n [[], []],\n [[1, 2, 3], [1, 2, 3]],\n // Unwrap has to be recursive\n [[new Context('Foo')], ['Foo']],\n [['arr' => [new Context('Foo')]], ['arr' => ['Foo']]]\n ];\n }", "title": "" }, { "docid": "88dc5448d848302f939b9e680dee7829", "score": "0.4581353", "text": "function compareArrays($dbArray=array(), $csvArray=array()){\n\t\t\t//this function will take two arrays passed as variables, compare, and return matching, left non-matching and right non-matching lists.\n\t\t\t//Validate:\n\t\t\tif(!is_array($dbArray) || !is_array($csvArray)){return false;};\n\t\t\t\t$dbArray=array_unique($dbArray);\n\t\t\t\t$csvArray=array_unique($csvArray);\n\t\t\t\t$identical=array_intersect($dbArray, $csvArray);\n\t\t\t\t\n\t\t\treturn array('identical'=>$identical,'added'=>array_diff($csvArray, $dbArray),'discarded'=>array_diff($dbArray, $identical)\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "e6316e991de52554e07c518064fd82cc", "score": "0.4580377", "text": "public function values()\n {\n $values = array($this->one->getValue(), $this->two->getValue(), $this->three->getValue());\n return $values;\n }", "title": "" }, { "docid": "101772e9d2cda776bb389432df17ff9f", "score": "0.45790735", "text": "function array_divide($array)\n {\n\n return array(array_keys($array), array_values($array));\n }", "title": "" }, { "docid": "b74344a0e4871d30f972e9f0eea1715f", "score": "0.45663974", "text": "protected function extractWhereValuesFromArray($array)\n {\n return [\n isset($array[0]) ? $array[0] : null,\n isset($array[1]) ? $array[1] : null,\n isset($array[2]) ? $array[2] : null,\n ];\n }", "title": "" }, { "docid": "1fd06f267c1d151d6c1c0a64b5ef0faa", "score": "0.45628396", "text": "public static function values()\n {\n return array_values(static::toArray());\n }", "title": "" }, { "docid": "34691fd19ac9f807b6f825098f64e48c", "score": "0.45371437", "text": "public static function divide(array $array): array\n {\n return [array_keys($array), array_values($array)];\n }", "title": "" }, { "docid": "34691fd19ac9f807b6f825098f64e48c", "score": "0.45371437", "text": "public static function divide(array $array): array\n {\n return [array_keys($array), array_values($array)];\n }", "title": "" }, { "docid": "34691fd19ac9f807b6f825098f64e48c", "score": "0.45371437", "text": "public static function divide(array $array): array\n {\n return [array_keys($array), array_values($array)];\n }", "title": "" }, { "docid": "a6322bd0687b67fff3c8dc5f15a0e3fd", "score": "0.45294023", "text": "public function values(array $values);", "title": "" }, { "docid": "cb1e23d02266097979386369b433b47f", "score": "0.45271572", "text": "public static function getUserSelectableValues()\n {\n return array_diff(self::getConstants(), [self::TWO]);\n }", "title": "" }, { "docid": "827dc955760e0e15da2de4f91d95c963", "score": "0.4524976", "text": "public function getInitials()\n {\n return $this->Initials;\n }", "title": "" }, { "docid": "61326115d05067258e40818868e5b27f", "score": "0.45222798", "text": "private function getAttrsUneven() : array\n {\n // Algorithm below does not save right structure of a source \n // array: new attrs is added to tail of the array.\n \n // get attrs of the first row\n $first_row = current($this->source);\n $attrs = array_keys($first_row);\n \n // compare each attr of every source array row with first row attrs\n $current_row = next($this->source);\n while ($current_row !== false) {\n $keys = array_keys($current_row);\n foreach ($keys as &$key) {\n if(!in_array($key, $attrs)) {\n array_push($attrs, $key);\n }\n }\n $current_row = next($this->source);\n }\n \n // return result\n return $attrs;\n }", "title": "" }, { "docid": "4b4ca9f7cc5d8993582f625a62bdb884", "score": "0.45134106", "text": "function notUnique($array)\n{\n // definisemo novi niz\n $same = array();\n\n // sortira niz prirodno\n natcasesort($array);\n reset ($array);\n\n $oldKey = NULL;\n $oldValue = NULL;\n\n // za svaki element niza\n foreach ($array as $key => $value){\n\n // ako je vrednost elementa = NULL nastavi dalje\n if ($value === NULL){\n\n continue;\n }\n\n // ako je stara vrednost elementa = vrednosti elementa\n if ($oldValue == $value){\n\n $same[$oldKey] = $oldValue;\n $same[$key] = $value;\n }\n $oldValue = $value;\n $oldKey = $key;\n }\n return $same;\n}", "title": "" }, { "docid": "6a126c157102a490314edab6388a71bc", "score": "0.45070782", "text": "public function testArrayEqualityComparison() : void {\n $expected = [ 1, 2, 3 ];\n $this->assertTrue([ 1, 2, 3 ] === $expected);\n $this->assertFalse([ 3, 2, 1 ] === $expected);\n $this->assertFalse([ 2, 1 ] === $expected);\n $this->assertFalse([ ] === $expected);\n $this->assertFalse('123' === $expected);\n }", "title": "" }, { "docid": "71ec89c10ef16bfdf60cc62a627dbf39", "score": "0.45022994", "text": "function remaining(): array { // [min => max]\n if (!$this->subs)\n return [$this->min => $this->max];\n ksort($this->subs);\n $remaining = []; // [min => max]\n $precmax = $this->min;\n foreach ($this->subs as $min => $max) {\n if ($min <> $precmax)\n $remaining[$precmax] = $min;\n $precmax = $max;\n }\n if ($precmax <> $this->max)\n $remaining[$precmax] = $this->max;\n return $remaining;\n }", "title": "" }, { "docid": "bbade03eb651107f93c831332ff7bece", "score": "0.44988063", "text": "function ary_diff( $ary_1, $ary_2 ) {\n // get differences that in ary_1 but not in ary_2\n // get difference that in ary_2 but not in ary_1\n // return the unique difference between value of 2 array\n $diff = array();\n\n // get differences that in ary_1 but not in ary_2\n foreach ( $ary_1 as $v1 ) {\n $flag = 0;\n foreach ( $ary_2 as $v2 ) {\n $flag |= ( $v1 == $v2 );\n if ( $flag ) break;\n }\n if ( !$flag ) array_push( $diff, $v1 );\n }\n\n // get difference that in ary_2 but not in ary_1\n foreach ( $ary_2 as $v2 ) {\n $flag = 0;\n foreach ( $ary_1 as $v1 ) {\n $flag |= ( $v1 == $v2 );\n if ( $flag ) break;\n }\n if ( !$flag && !in_array( $v2, $diff ) ) array_push( $diff, $v2 );\n }\n\n return $diff;\n }", "title": "" }, { "docid": "af2bfcba83977fa41b1ae6a9977abfcd", "score": "0.44808426", "text": "public static function resetIntKeys(array $array): array\n {\n $onlyKeys = Arr::getValuesUsingIntKeys($array);\n $keysWithValues = Arr::getValuesUsingStringKeys($array);\n\n return $onlyKeys + $keysWithValues;\n }", "title": "" }, { "docid": "9ab1f91f374184cd8f6a2c0655b558c8", "score": "0.44734007", "text": "private function correlationsArray() {\n\t\t$correlations = array (\n\t\t\t'vetemjöl' => array (\n\t\t\t\t'21' => 60,\n\t\t\t\t'26' => 1 \n\t\t\t), \n\t\t\t'strösocker' => array (\n\t\t\t\t'26' => 1,\n\t\t\t\t'21' => 85\n\t\t\t),\n\t\t\t'bacon' => array (\n\t\t\t\t'26' => 1,\n\t\t\t\t'21' => 34\n\t\t\t), \n\t\t\t'bakpulver' => array (\n\t\t\t\t'26' => 1,\n\t\t\t\t'21' => 5\n\t\t\t), \n\t\t\t'basmat ris' => array (\n\t\t\t\t'26' => 1,\n\t\t\t\t'21' => 85\n\t\t\t), \n\t\t\t'pasta' => array (\n\t\t\t\t'26' => 8,\n\t\t\t\t'21' => 280\n\t\t\t)\n\t\t\t\n\t\t);\n\t\t\n\t\treturn $correlations;\n\t}", "title": "" }, { "docid": "0ccfe3e806eba0e602a1fd2baf0d62da", "score": "0.4473034", "text": "public function getAlternates();", "title": "" }, { "docid": "ac3de13845fc2a33b59b7b8322e75fa8", "score": "0.44719732", "text": "public static function every(array $array, int $step, int $offset = 0): array\n {\n $new = [];\n\n $position = 0;\n\n foreach ($array as $key => $item) {\n if ($position % $step === $offset) {\n $new[] = $item;\n }\n\n ++$position;\n }\n\n return $new;\n }", "title": "" }, { "docid": "4562b6e12b6b755c680f414406886b01", "score": "0.44713625", "text": "function array_divide($array) {\n\treturn array(array_keys($array), array_values($array));\n}", "title": "" }, { "docid": "d460c3ad774092f5dc4ff58e537e948f", "score": "0.44671276", "text": "function initArray()\n{\n $arr = [];\n for ($i = 0; $i < 6; $i++) {\n $aa = array();\n for ($j = 0; $j < 7; $j++) {\n $aa[$j] = -10;\n }\n array_push($arr, $aa);\n }\n return $arr;\n}", "title": "" }, { "docid": "efc3ef7b798c7fa9760f040c8b37fbcd", "score": "0.44669035", "text": "public static function extractAsSet(array $rows, string $columnName): array\n {\n return array_values(array_unique(self::extractAsArray($rows, $columnName)));\n }", "title": "" }, { "docid": "3066437ece7cc9534e72efbc5ee28884", "score": "0.44664562", "text": "function arr_diff($a1, $a2) {\n\t\n\t$ar = array ();\n\t\n\tforeach ( $a2 as $k => $v ) {\n\t\t\n\t\tif (! is_array ( $v )) {\n\t\t\t\n\t\t\tif ($v !== $a1 [$k])\n\t\t\t\t\n\t\t\t\t$ar [$k] = $v;\n\t\t\n\t\t} else {\n\t\t\t\n\t\t\tif ($arr = arr_diff ( $a1 [$k], $a2 [$k] ))\n\t\t\t\t\n\t\t\t\t$ar [$k] = $arr;\n\t\t\n\t\t}\n\t\n\t}\n\t\n\treturn $ar;\n\n}", "title": "" }, { "docid": "98938f472e6be12025c757a052c567b9", "score": "0.4463398", "text": "static public function normaliseValues($array) {\n\t\t$array=self::arrayize($array);\n\t\tif (!$array) return $array;\n\t\t$minValue=min($array);\n\t\t$maxValue=max($array);\n\t\tif ($maxValue==$minValue) {\n\t\t\t$minValue-=1;\n\t\t}\n\t\tforeach($array as $index=>$value) {\n\t\t\t$array[$index]=($value-$minValue)/($maxValue-$minValue);\n\t\t}\n\t\treturn $array;\n\t}", "title": "" }, { "docid": "4a4cddce170193da2ff94ca215100091", "score": "0.44596675", "text": "function arr_diff($a1, $a2) {\n foreach ($a1 as $k => $v) {\n unset($dv);\n if (is_int($k)) {\n // Compare values\n if (array_search($v, $a2) === false)\n $dv = $v;\n else if (is_array($v))\n $dv = arr_diff($v, $a2[$k]);\n if ($dv)\n $diff[] = $dv;\n }else {\n // Compare noninteger keys\n if (!$a2[$k])\n $dv = $v;\n else if (is_array($v))\n $dv = arr_diff($v, $a2[$k]);\n if ($dv)\n $diff[$k] = $dv;\n }\n }\n return $diff;\n}", "title": "" }, { "docid": "a396e5ee03a4c8f8a919ae1e847d24e4", "score": "0.44542047", "text": "function returnMultipleValues(){\n\t\t\t\t$x = array(1,2,3,4,5);\n\t\t\t\treturn $x;\n\t\t\t}", "title": "" }, { "docid": "d1f0f55cde4cc58aa7fea785a15bb2fb", "score": "0.44504628", "text": "public function getResult()\n\t{\n\t\t$result['less'] = $this->_less;\n\t\tfor($i = 0; $i < $this->_nbins; ++$i)\n\t\t{\n\t\t\t$result[(string)$this->_bins[$i]] = $this->_result[$i];\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "62361c04b92a5cf9d9f8eab217c3167f", "score": "0.44498187", "text": "#[Pure]\nfunction array_diff(array $array, #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] $arrays, array ...$arrays): array {}", "title": "" }, { "docid": "e9074f7acf5c50bd2fd3d0fdcd8bd3f6", "score": "0.44464266", "text": "public static function interval(Array $array) {\n foreach($array as $key => $value) {\n if(isset($lastkey)) {\n $intervals[$lastkey] = $value - $array[$lastkey];\n }\n $lastkey = $key;\n }\n return $intervals;\n }", "title": "" }, { "docid": "c39e242e19c0b1da2a513be836e27392", "score": "0.4442409", "text": "static function RemoveEmptyArrayValues(array $array) : array\n\t{\n\t\treturn array_filter($array, function($value){return !empty($value) || $value === \"0\";});\n\t}", "title": "" }, { "docid": "b7ac76010a0e36e32fdd11b9fff2050e", "score": "0.44413555", "text": "public static function createPairsFromArray($array)\n {\n $pairs = [];\n\n for ($i = 0; $i < count($array) - 1; ++$i) {\n for ($j = $i + 1; $j < count($array); ++$j) {\n $pairs[] = [$array[$i], $array[$j]];\n }\n }\n\n return $pairs;\n }", "title": "" }, { "docid": "b94dcc2a1470164d07987cd4a2c06d4d", "score": "0.44339982", "text": "protected function getValueArray()\n {\n return explode(',', $this->value);\n }", "title": "" }, { "docid": "1fe917d92ce3739cce478f4b49a5d7df", "score": "0.443372", "text": "public function calcArray(array $array)\n {\n\n }", "title": "" }, { "docid": "0d3b59a863fd41935241e75b82ed2576", "score": "0.4431177", "text": "public function getExpectedResult(): array\n {\n return [\n 'mixed' => null,\n 'nullableMixed' => null,\n 'bool' => true,\n 'boolean' => false,\n 'nullableBool' => null,\n 'int' => 123,\n 'integer' => -12345,\n 'nullableInt' => null,\n 'float' => 123.45,\n 'nullableFloat' => null,\n 'double' => -12345.67,\n 'nullableDouble' => null,\n 'string' => 'abc',\n 'nullableString' => null,\n ];\n }", "title": "" }, { "docid": "1b36c42e5b55a020cd021b072eebd1b3", "score": "0.44307724", "text": "public function values(): self\n {\n return new self(array_values($this->arr));\n }", "title": "" }, { "docid": "8952f28dcc3efaa18af8966c3ced9ff9", "score": "0.44270134", "text": "public function getValues(): array\n {\n return [\n 'min' => $this->min,\n 'max' => $this->max,\n 'current' => $this->current,\n ];\n }", "title": "" }, { "docid": "e232497b3f988b0ad48049510e55c333", "score": "0.44199595", "text": "function array_patch(...$array)\n {\n $args = func_get_args();\n $count = func_num_args();\n\n $resultArray = [];\n\n for ($i = 0; $i < $count; ++$i) {\n if (is_array($args[$i])) {\n foreach ($args[$i] as $key => $val) {\n\n if (empty($val)) {\n continue;\n }\n\n $resultArray[$key] = $val;\n }\n $result = $resultArray;\n } else {\n trigger_error(\n __FUNCTION__ . '(): Argument #' . ($i+1) . ' is not an array',\n E_USER_ERROR\n );\n $result = null;\n }\n }\n return $result;\n }", "title": "" }, { "docid": "fef60b7439942ef19e8e60f952613cf2", "score": "0.4418258", "text": "static function field_values($array1)\n\t{\n\t\tforeach (array_slice(func_get_args(), 1) as $array2)\n\t\t{\n\t\t\tforeach ($array2 as $key => $value)\n\t\t\t{\n\t\t\t\tif (array_key_exists($key, $array1))\n\t\t\t\t{\n\t\t\t\t\t$array1[$key]['value'] = $value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $array1;\n\t}", "title": "" }, { "docid": "5d47356424c8612afcd544012db3c00f", "score": "0.44178092", "text": "function _getNumericEntries($array) {\n if ($array != null) {\n\t$res = array();\n $i = 0;\n foreach($array as $value) {\n $res[$i++] = $value;\n }\n }\n return $res;\n}", "title": "" }, { "docid": "eca332a00543bfcf67062af1e1fb3619", "score": "0.4415144", "text": "public static function prepareFactorArray($arr) {\n $out = array();\n if (empty($arr)) {\n return $out;\n }\n foreach ($arr as $value) {\n $newvalue = strtolower(trim($value));\n if (!empty($newvalue)) {\n $out[] = trim($newvalue);\n }\n }\n sort($out);\n return array_unique($out);\n }", "title": "" }, { "docid": "583323f298b39af8cb6a97f0f56b0fe7", "score": "0.44129702", "text": "function mgModifyArrayFields($values, $before = false, $after = false) {\n\t\t// initialize\n\t\t$result = Array();\n\t\t// cycle\n\t\tforeach($values as $field=>$value) {\n\t\t\t$result[sprintf(\"%s%s%s\", $before?$before:\"\", $field, $after?$after:\"\")] = $value;\n\t\t}\n\t\t// return\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "bea5747c0b7069863dad245afd6ab98f", "score": "0.44095233", "text": "public function diff(array $newSchema, array $oldSchema): array\n {\n $upSql = [];\n $downSql = [];\n\n $checkTables = $this->checkTables($newSchema, $oldSchema);\n $checkColumns = $this->checkColumns($newSchema, $oldSchema);\n $checkIndexes = $this->checkIndexes($newSchema, $oldSchema);\n $checkConstraints = $this->checkConstraints($newSchema, $oldSchema);\n\n $upSql[] = $checkTables['up'];\n $upSql[] = $checkConstraints['up'];\n $upSql[] = $checkIndexes['up'];\n $upSql[] = $checkColumns['up'];\n\n $downSql[] = $checkTables['down'];\n $downSql[] = $checkColumns['down'];\n $downSql[] = $checkIndexes['down'];\n $downSql[] = $checkConstraints['down'];\n\n return [\n 'up' => implode(\"\\n\", $upSql),\n 'down' => implode(\"\\n\", $downSql),\n ];\n }", "title": "" }, { "docid": "8a96ca152124c3261f180ba5f8111fd3", "score": "0.44024882", "text": "public function getValues(): array;", "title": "" }, { "docid": "57cf9971dc084552721e9fe18c53fc1b", "score": "0.44011107", "text": "#[Pure]\nfunction array_values(array $array): array {}", "title": "" }, { "docid": "b04331a72aa177bf4ad1a57c0ab1357d", "score": "0.4400634", "text": "function column_into_keys(array $array): array {\r\n $key = key($array[0]);\r\n\r\n foreach($array as $row) {\r\n\r\n // pop the new key off the top of the array\r\n $id = array_shift($row);\r\n\r\n // is there only one item left in the array?\r\n if (count($row) == 1)\r\n // get the first value\r\n $result[$id] = current($row);\r\n else\r\n // get all of the values\r\n $result[$id] = $row;\r\n }\r\n\r\n return $result;\r\n}", "title": "" }, { "docid": "9bf0875f3c46fe3c178359287cc42183", "score": "0.43987963", "text": "public function getChanges(): array\n\t{\n\t\t$changes = [];\n\t\tforeach($this->current_data as $id => $value)\n\t\t{\n\t\t\tif(!array_key_exists($id, $this->data) || $value !== $this->data[$id])\n\t\t\t{\n\t\t\t\t$changes[$id] = $value;\n\t\t\t}\n\t\t}\n\n\t\treturn $changes;\n\t}", "title": "" }, { "docid": "d97d483b403fe215010afd2c84907e23", "score": "0.4394042", "text": "function initialValue()\n {\n if(!is_array($this->m_initialValue))\n {\n return array();\n }\n return $this->m_initialValue;\n }", "title": "" }, { "docid": "4430b3c94cb07e7955e7ad32447fa07e", "score": "0.43851587", "text": "public function values()\n {\n return array_values($this->data);\n }", "title": "" }, { "docid": "81163c2811586335652cbe2f3f35160f", "score": "0.43752927", "text": "public function values()\n {\n return array_values($this->selections());\n }", "title": "" }, { "docid": "a2585e266aa394a3008cee19c49c64ba", "score": "0.43729782", "text": "protected static function inLineArray(array $data)\n {\n return call_user_func_array('array_merge', array_map('array_values', $data));\n }", "title": "" }, { "docid": "f9431e2c91d96408e96336e839ed76fd", "score": "0.43709645", "text": "public static function organizeValuesWithNumbers (array $arrayToTrate) :array {\n\n return array_values ($arrayToTrate);\n\n }", "title": "" }, { "docid": "88f32aeecc43dea862782d81e0d2e561", "score": "0.43705446", "text": "function array_transpose($array)\n{\n\tif ( ! is_array($array)) {\n\t\tthrow new MyException(__FUNCTION__.': Data given was not an array');\n\t}\n\n\t$return = [];\n\tforeach ($array as $key1 => $value1) {\n\t\tif ( ! is_array($value1)) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tforeach ($value1 as $key2 => $value2) {\n\t\t\t$return[$key2][$key1] = $value2;\n\t\t}\n\t}\n\n\tif (0 == count($return)) {\n\t\treturn false;\n\t}\n\n\treturn $return;\n}", "title": "" }, { "docid": "f4621ee42289c90b1833bd42cb77d123", "score": "0.43674392", "text": "private function getArraysOfCombinations($array)\n {\n if ($array) {\n $combinations = [[]];\n\n foreach ($array as $element) {\n foreach ($combinations as $combination) {\n array_push($combinations, array_merge(array($element), $combination));\n }\n }\n\n unset($combinations[0]);\n $combinations = array_values($combinations);\n\n return $combinations;\n }\n\n return false;\n }", "title": "" }, { "docid": "339ea24d6c22218d25ac441fa3dae668", "score": "0.4364654", "text": "public function testUniqueMulti()\n {\n // Arrange\n $input = [\n 'a' => ['aa' => 'aaa'],\n 'b' => ['aa' => 'aaa'],\n 'c' => ['aa' => 'aaa']\n ];\n\n $expected = ['aa' => 'aaa'];\n\n // Act\n $actual = \\Bobel\\Helpers\\Enumerable::uniqueMulti($input, 'aa');\n $arraysAreSimilar = $this->arraysAreSimilar($actual[0], $expected);\n\n // Assert\n $this->assertTrue($arraysAreSimilar);\n }", "title": "" }, { "docid": "acd75884481b8f7b61dda41e7e5d1ae7", "score": "0.43577322", "text": "public function provideInvalidSizeAsArray()\n {\n yield [\n [\n 10,\n -1,\n ],\n ];\n\n yield [\n [\n -1,\n 10,\n ],\n ];\n\n yield [\n [\n -1,\n -1,\n ],\n ];\n }", "title": "" }, { "docid": "df72866684a1f1ef1a1cab5331e87cd7", "score": "0.43571013", "text": "private function prepareExpectedResult(): array\n {\n return [\n 'test1' => ['param_one' => 'some_value'],\n 'test2' => ['param_one' => 'some_value', 'param_two' => 'no_value'],\n 'test3' => [\n 'param_one' => 'some_value',\n 'param_two' => 'extra_value',\n 'param_five' => ['empty_value', 'this_value'],\n ],\n ];\n }", "title": "" }, { "docid": "96d0a875187cdcd86079351c8cdecfbc", "score": "0.43552056", "text": "public function getDiff() {\n $diff = [];\n foreach (static::$vars as $k => $v) {\n if ($this->vals[$k] !== $this->DBvals[$k]) {\n $diff[$k] = $this->vals[$k];\n }\n }\n\n return $diff;\n }", "title": "" }, { "docid": "47569732e293380178d753c0051e3b71", "score": "0.43511313", "text": "public function arrayGetValues()\n {\n return [\n [[], 'foo', null],\n [['foo' => 'bar'], 'foo', 'bar'],\n [[1, 2, 3], '1', 2],\n [['foo' => ['bar' => 'baz']], 'foo', ['bar' => 'baz']],\n [new \\ArrayObject(['foo' => 'bar']), 'foo', 'bar']\n ];\n }", "title": "" }, { "docid": "0af26d55356626389aeaeb24fb4bdcd9", "score": "0.43498328", "text": "function a_t($array)\r\n{\r\n $r=array();\r\n foreach($array as $k1=>$ia) {\r\n foreach($ia as $k2=>$v) {\r\n $r[$k2][$k1]=$v;\r\n }\r\n }\r\n return $r;\r\n}", "title": "" }, { "docid": "eb6036c6e16d88941df934609e6ef7ea", "score": "0.43485647", "text": "private function where_and_result() {\n $r = [];\n\n // Loop through the db rows. Ge the index and row\n foreach ($this->content as $index => $row) {\n\n // Make sure its array data type\n $row = (array) $row;\n\n\n //check if the row = where['col'=>'val', 'col2'=>'val2']\n if (!array_diff($this->where, $row)) {\n $r[] = $row;\n // Append also each row array key\n $this->last_indexes[] = $index;\n } else {\n continue;\n }\n }\n return $r;\n }", "title": "" }, { "docid": "6a45267d96433103f469152d17264008", "score": "0.43444732", "text": "protected function calcDeleted(iterable $related, iterable $original): array\n {\n $related = $this->extract($related);\n $original = $this->extract($original);\n return array_udiff(\n $original ?? [],\n $related,\n // static fn(object $a, object $b): int => strcmp(spl_object_hash($a), spl_object_hash($b))\n static fn (object $a, object $b): int => (int)($a === $b) - 1\n );\n }", "title": "" }, { "docid": "c33044d3ae629dc170c20023110b9b40", "score": "0.43435216", "text": "function diverse_array($vector) {\n $result = array();\n foreach($vector as $key1 => $value1)\n foreach($value1 as $key2 => $value2)\n $result[$key2][$key1] = $value2;\n return $result;\n }", "title": "" }, { "docid": "aae61863acc9f9e930f291158f9c2b91", "score": "0.43409398", "text": "public function numberLost(){\n $newSelected = $this->flattensArray(); \n \n $checkGetLetter = $this->getLetterArray();\n \n $differnece = array_diff($newSelected, $checkGetLetter);\n \n return $differnece;\n }", "title": "" } ]
efbae2e4923220bd2d9aac08eff2853e
The ISO 31661 (ISO 31661 alpha2) or ISO 31662 code, the place, or the GeoShape for the geopolitical region(s) for which the offer or delivery charge specification is valid. See also [[ineligibleRegion]].
[ { "docid": "855727794b8e0d53c7de3ff0fc62b770", "score": "0.0", "text": "public function eligibleRegion($eligibleRegion)\n {\n return $this->setProperty('eligibleRegion', $eligibleRegion);\n }", "title": "" } ]
[ { "docid": "095af18de9219158326464a48025de93", "score": "0.56110656", "text": "public function hasRegionCode()\n {\n return true;\n }", "title": "" }, { "docid": "cf172695c054a7e93573df7e922141fe", "score": "0.5429758", "text": "public function testCheckInvalidAreaCode(){\n\t\t$sv = new \\Dhalsted\\SMS\\SMSValidator();\n\t\t$sv->validatePhoneNumber(\"(123) 444-3333\", \"US\");\n\t}", "title": "" }, { "docid": "261fd8b1e7ea9dc18a0312ec0bf207ba", "score": "0.53481853", "text": "public function getCountryISOAlpha3() {\n\t\t\treturn $this->country['CountryAlpha3'];\n\t\t}", "title": "" }, { "docid": "0708b05a65f417400d30e1ff9703ac20", "score": "0.5209653", "text": "public function iso3116a3(): string;", "title": "" }, { "docid": "c76ff5041cd5b4a2694c1f50700ac2d1", "score": "0.51901966", "text": "public function getCountryCodeA3()\n {\n return $this->countryCodeA3;\n }", "title": "" }, { "docid": "0e1725acadceb6716f9e9d04898b8ffb", "score": "0.5124326", "text": "public function getIsoAlpha2Code() {\n\t\treturn $this->getAsString('zn_country_iso_2');\n\t}", "title": "" }, { "docid": "821ac3dac0df80a220765ba217794355", "score": "0.51189166", "text": "public function checkRegionRequired()\n {\n $storeId = Mage::app()->getRequest()->getParam('store');\n $allowSpecific = Mage::getStoreConfig('buckaroo/buckaroo3extended_paypal/allowspecific', $storeId);\n \n $regionRequiredCountries = array(\n 'AR', //argentina\n 'BR', //brazil\n 'CA', //canada\n 'CN', //china\n 'ID', //indonesia\n 'JP', //japan\n 'MX', //mexico\n 'TH', //thailand\n 'US', //usa\n );\n \n if ($allowSpecific) {\n $allowedCountries = explode(\n ',', Mage::getStoreConfig('buckaroo/buckaroo3extended_paypal/specificcountry', $storeId)\n );\n } else {\n $allowedCountriesOptions = Mage::getModel('directory/country')->getResourceCollection()\n ->loadByStore($storeId)\n ->toOptionArray(true);\n \n $allowedCountries = array();\n foreach ($allowedCountriesOptions as $options) {\n $allowedCountries[] = $options['value'];\n }\n }\n \n //if one of the allowed countries in the required-region array exists\n //then the region must be required, if none exists then the message cannot be shown\n foreach ($regionRequiredCountries as $country) {\n if (in_array($country, $allowedCountries)) {\n return true;\n }\n }\n \n return false;\n }", "title": "" }, { "docid": "5ef57bb9f12a15443000413905421559", "score": "0.51004046", "text": "function isoCode();", "title": "" }, { "docid": "1a6f94c181d1583a3660513884e61c64", "score": "0.508971", "text": "public function validate()\n {\n if ($this->allowanceChargeReasonCode !== null) {\n $this->chargeIndicator\n ? UNCL7161::verify($this->allowanceChargeReasonCode)\n : UNCL5189::verify($this->allowanceChargeReasonCode);\n }\n }", "title": "" }, { "docid": "a36fcabfaa88b2c312b228f77256beab", "score": "0.50652707", "text": "public function testEmptyCountryCode()\n {\n $request = ['postal_code' => '75008'];\n $rules = ['postal_code' => 'postal_code'];\n $validator = $this->factory->make($request, $rules);\n\n $this->assertTrue($validator->fails());\n }", "title": "" }, { "docid": "73e297b31e3e84bcdd02f8d0db9e3bdb", "score": "0.5043122", "text": "public function getCountryISOAlpha2() {\n\t\t\treturn $this->country['CountryAlpha2'];\n\t\t}", "title": "" }, { "docid": "c8ab70c40688c5fa6ac3b2aad41b8644", "score": "0.50164884", "text": "final function applicableForQuoteByCountry(string $opt):bool {return $this->m()->canUseForCountryP(\n\t\tdf_oq_country_sb(df_quote()), $opt\n\t);}", "title": "" }, { "docid": "cfde190e58751d84ebcec18454059d6a", "score": "0.4980012", "text": "public function validateData($geofenceData){\n }", "title": "" }, { "docid": "f0f22fc2786f27dd02ae9563d881da59", "score": "0.49447766", "text": "public function getIso31661Code(): ?ISO31661Code\n {\n return $this->iso31661Code;\n }", "title": "" }, { "docid": "bee44bdc11f9ac5f2b62c652b29b844a", "score": "0.49305883", "text": "final public function inUsa()\n {\n return strtoupper($this->countryCode()) === 'US';\n }", "title": "" }, { "docid": "996aea2f7d0dcfdc5a9884bb77e79e40", "score": "0.4908103", "text": "public function testInvalidCountryCode()\n {\n $exception = null;\n $request = ['postal_code' => '75008'];\n $rules = ['postal_code' => 'postal_code:FOO'];\n $validator = $this->factory->make($request, $rules);\n\n try {\n $validator->fails();\n } catch (Exception $exception) {\n # Do nothing here..\n }\n\n # Manually assert exception to maintain BC with older versions of PHPUnit\n $this->assertInstanceOf(InvalidArgumentException::class, $exception);\n }", "title": "" }, { "docid": "e5eb026b5b1ffb5cfd84a47cffb845c5", "score": "0.48770544", "text": "private function isValidCountry($params)\n {\n if(!array_key_exists('shipment_id',$params)) {\n return false;\n }\n\n $countryId = Mage::getModel('sales/order_shipment')->load($params['shipment_id'])->getShippingAddress()->getCountryId();\n\n if($countryId != 'GB') {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "e0366483767b79db0ea14f7293614774", "score": "0.4867417", "text": "protected function getCountryCode() \n {\n $url = 'https://restcountries.eu/rest/v2/name/'.$this->country;\n $response = $this->client->request('GET',$url);\n\n if ( $response->getStatusCode() === 200 ) {\n $content = $response->toArray();\n return $content[0]['alpha2Code'];\n } \n\n return false;\n }", "title": "" }, { "docid": "60a1e75fbf4287dedf4166d796cff1cc", "score": "0.48569307", "text": "public function validatePostalCode()\n {\n }", "title": "" }, { "docid": "c550c7b1b4f9ec4cc4e43ecf1ba3ed0f", "score": "0.48280656", "text": "public function testCheckInvalidRegion(){\n\n\t\t$sv = new \\Dhalsted\\SMS\\SMSValidator();\n\t\t$sv->validatePhoneNumber(\"773 555 1212\", \"xx\");\n\t}", "title": "" }, { "docid": "0454e110c064a9264591319e05e4d6dd", "score": "0.48269704", "text": "public function iso3116a2(): string;", "title": "" }, { "docid": "0697c975d8923a14d8ccd4d5d6e9da3b", "score": "0.4822791", "text": "public function getAmazonCountryCode()\n {\n if ($this->_amazon_country_code === null)\n throw new Exception('No Amazon country code set');\n return $this->_amazon_country_code;\n }", "title": "" }, { "docid": "c8de7402c05e18e2543151e98ec7cfee", "score": "0.4819113", "text": "private function TestCityNOK(){\r\n\t\t\t$this->Address->setCity(\"*\");\r\n\t\t\t\r\n\t\t\tif($this->Address->getCity() == \"*\"){\r\n\t\t\t\t$this->AddMessageFailed(\"Address::City can be set to just special characters\");\r\n\t\t\t} else {\r\n\t\t\t\t$this->AddMessageSuccess(\"Address::City can't be set to just special characters\");\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "62c4853b27ab0cc32937d157b07fecc1", "score": "0.4809167", "text": "public function validateCountry($country)\n\t{\n\t\tif (array_search($country, self::$countries) === false)\n\t\t\tthrow new AmazonCountryNotAllowedException($country);\n\t}", "title": "" }, { "docid": "5a1372185686e4e71e90114ed84416c1", "score": "0.48051554", "text": "function valida($phone, $region){\n $phone_only = substr($phone, 2);\n if ($phone_only == '000000000' || \n $phone_only == '111111111' || \n $phone_only == '222222222' || \n $phone_only == '333333333' || \n $phone_only == '444444444' || \n $phone_only == '555555555' || \n $phone_only == '666666666' || \n $phone_only == '777777777' || \n $phone_only == '888888888' || \n $phone_only == '999999999') {\n \n return false;\n }\n\n $phoneUtil = \\libphonenumber\\PhoneNumberUtil::getInstance();\n\n try {\n $phoneNumberObject = $phoneUtil->parse($phone, $region);\n\n return $phoneUtil->isValidNumberForRegion($phoneNumberObject, $region);\n\n } catch (\\libphonenumber\\NumberParseException $e) {\n var_dump($e);\n }\n }", "title": "" }, { "docid": "ca15d7a553db1f497d36418c0ef9360f", "score": "0.47819605", "text": "public function testCanParseDisclosedVendorsRanges()\n\t{\n\t\t$cs = Decoder::decode(\"COrEAV4OrXx94ACABBENAHCIAD-AAAAAAACAAxAAAAgAIAwgAgAAAAEAgQAAAAAEAYQAQAAAACAAAABAAA.Iu4QCAALgAlgBeAGAANQAggBiAECF3A\");\n\t\t$this->assertSame([23, 37, 47, 48, 53, 65, 98, 129, 6000], $cs->getDisclosedVendors());\n\t}", "title": "" }, { "docid": "9fbd136f85301190d1397d9b5af4ad94", "score": "0.47754177", "text": "public function validate_envato_hosted_subscription_code() {\n\t\t$nonce = $this->_get_nonce( 'Avada' );\n\n\t\tif ( is_array( $nonce ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "e478bd7f8c63ea7f269bbd74950cb1dc", "score": "0.47752473", "text": "public function testCountryCodeFromRequest()\n {\n $request = ['country' => 'IT', 'postal_code' => '23100'];\n $rules = ['country' => 'string|size:2|required', 'postal_code' => 'postal_code:country'];\n $validator = $this->factory->make($request, $rules);\n\n $this->assertFalse($validator->fails());\n }", "title": "" }, { "docid": "6bc4690286696492c5bfd858a287d04d", "score": "0.47666225", "text": "public function testCanParseDisclosedVendorsBits()\n\t{\n\t\t$cs = Decoder::decode(\"COrEAV4OrXx94ACABBENAHCIAD-AAAAAAACAAxAAAAgAIAwgAgAAAAEAgQAAAAAEAYQAQAAAACAAAABAAA.IBAgAAAgAIAwgAgAAAAEAAAACA\");\n\t\t$this->assertSame([23, 37, 47, 48, 53, 65, 98, 129], $cs->getDisclosedVendors());\n\t}", "title": "" }, { "docid": "05b5da590bbdaa04493b3ae3f12334cd", "score": "0.47578993", "text": "public function testNationalId()\n {\n $pattern = '/^[VJGECP]-?\\d{8}-?\\d$/';\n $rif = $this->faker->taxpayerIdentificationNumber;\n $this->assertMatchesRegularExpression($pattern, $rif);\n\n $rif = $this->faker->taxpayerIdentificationNumber('-');\n $this->assertMatchesRegularExpression($pattern, $rif);\n }", "title": "" }, { "docid": "069d0a4d7055226ef00de05cce71278b", "score": "0.47442675", "text": "public function WSAuthorizeCodeValidate() {\n }", "title": "" }, { "docid": "d55d9f36fcbd1043366aeebb1b9d529d", "score": "0.47349843", "text": "public function getPhoneAreaOrCityCode()\n {\n return $this->phoneAreaOrCityCode;\n }", "title": "" }, { "docid": "623f669498baab5749fd6a445d852246", "score": "0.47305378", "text": "function phoneNumber($number, $requireAreaCode = true)\n {\n $servicePrefix = array(\"0800\", \"0900\", \"0508\");\n\n $areaCodes = array(\"024099\", // for the Scott Base in the Ross Dependency\n \"03\", // for the South Island and the Chatham Islands\n \"04\", // for the Wellington Region to Kapiti, but not the Wairarapa and Otaki\n \"06\", // for the he remaining southern and eastern North Island including Taranaki, Manawatu-Wanganui (excluding Taumarunui), Hawke's Bay, Gisborne, the Wairarapa, and Otaki\n \"07\", // for the Waikato, the Bay of Plenty and Taumarunui\n \"09\", // for Auckland and Northland\n );\n\n // Remove non-numeric characters that we still accept\n $number = str_replace(array(\"+\", \" \", \"(\", \")\", \"-\",), \"\", trim($number));\n\n // Sanity check\n if (!ctype_digit($number)) {\n return false;\n }\n\n // http://en.wikipedia.org/wiki/Telephone_numbers_in_New_Zealand#Mobile_Phones\n $mobilePrefix = array(\"orcon\" => \"020\", // Orcon\n \"vodafone\" => \"021\", // Vodafone; 6-8 digits\n \"2degrees\" => \"022\", // 2degrees; 7 digits; 2degrees was launched in August 2009.\n \"telstraClear_unused\" => \"023\", // Unused; Owned by TelstraClear\n \"expansion\" => \"024\", // Unused; Protected by Management Committee 30.01.09 to preserve the potential code expansion option.\n \"telecomNZ_deprecated\" => \"025\", // Was used by Telecom New Zealand until it was shut down on 31 March 2007. All numbers have now migrated to 027 (7-digit) and 0274 (6-digit).\n \"telecomNZ\" => \"027\", // Telecom New Zealand; 7 digits\n \"compass\" => \"0280\", // Compass Communications\n \"callPlus\" => \"028\", // CallPlus or BLACK + WHITE\n \"teletraders\" => \"0283\", // Teletraders MVNO\n \"m2\" => \"02885\", // M2 MVNO\n \"airnet\" => \"02896\", // Airnet NZ Ltd\n \"telstraClear\" => \"029\", // TelstraClear\n );\n\n // Is it a mobile number?\n foreach ($mobilePrefix as $provider => $prefix) {\n // Does it start with a recognised provider prefix?\n if (substr($number, 0, strlen($prefix)) != $prefix) {\n continue;\n }\n // Is it the Scott base / Ross Dependency?\n if (substr($number, 0, 6) == '024099') {\n continue;\n }\n\n switch ($provider) {\n // Vodafone; 6-8 digits\n case 'vodafone':\n if (preg_match('/^021[0-9]{6,8}$/', $number)) {\n return true;\n }\n break;\n // 2degress; 7 digits\n case '2degrees':\n if (preg_match('/^022[0-9]{7}$/', $number)) {\n return true;\n }\n break;\n\n // These providers offer numbers with 02, then 7-9 digits\n case 'orcon':\n case 'compass':\n case 'callPlus':\n case 'teletraders':\n case 'm2':\n case 'airnet':\n case 'telstraClear':\n case 'telecomNZ':\n if (preg_match('/^02[0,7,8,9][0-9]{6,8}$/', $number)) {\n return true;\n }\n break;\n\n // These providers aren't valid as of 1/03/2011\n case 'expansion':\n case 'telstraClear_unused':\n case 'telecomNZ_deprecated':\n break;\n }\n }\n\n // Is it a service number of some type?\n if (in_array(substr($number, 0, 4), $servicePrefix)) {\n // Is 0800,0900 or 0508 number\n if (preg_match(\"(^0(8|9|5)0(0|8)[0-9]{6}$)\", $number)) {\n return true;\n }\n }\n\n // Is 0800 with 7 digits?\n if (substr($number, 0, 4) == '0800') {\n if (preg_match(\"(^0800[0-9]{7}$)\", $number)) {\n return true;\n }\n }\n\n // Is it a general landline of some type?\n foreach ($areaCodes as $prefix) {\n // Does it start with a recognised area prefix?\n if (substr($number, 0, strlen($prefix) != $prefix)) {\n continue;\n }\n\n if (!$requireAreaCode) {\n // Is land line w/o area code\n if (preg_match(\"(^[0-9]{7}$)\", $number)) {\n return true;\n }\n } else {\n // Is land line with area code\n if (preg_match(\"(^0(3|4|6|7|9)[0-9]{7}$)\", $number)) {\n return true;\n }\n }\n }\n\n // Is land line with country code\n if (substr($number, 0, 3) == \"640\") {\n if (preg_match(\"(^640(3|4|6|7|9)[0-9]{7})\", $number)) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "c6ece805c543657afd81ebba23f7765e", "score": "0.470986", "text": "public function getIsoAlpha2ZoneCode() {\n\t\treturn $this->getAsString('zn_code');\n\t}", "title": "" }, { "docid": "fc3329a8565e21f93e137e93c81023a3", "score": "0.47044602", "text": "public function getISOCountryCode(): ?string;", "title": "" }, { "docid": "32cc4ccb09fa18a22151bca08fb9f70c", "score": "0.4700514", "text": "public function providerValidCeps()\n {\n return array(\n \tarray('01315-010'),\n array('01232-001'),\n array('04311-080'),\n );\n }", "title": "" }, { "docid": "6af031532474853fd6dbff2361bc13df", "score": "0.46925592", "text": "public function validate()\n {\n /*\n * calling parent validate function\n */\n parent::validate();\n\n $info = $this->getInfoInstance();\n $errorMsg = false;\n $availableTypes = explode(',',$this->getConfigData('cctypes'));\n\n $ccNumber = $info->getCcNumber();\n\n // remove credit card number delimiters such as \"-\" and space\n $ccNumber = preg_replace('/[\\-\\s]+/', '', $ccNumber);\n $info->setCcNumber($ccNumber);\n\n $ccType = '';\n\n if (in_array($info->getCcType(), $availableTypes)){\n if ($this->validateCcNum($ccNumber)\n // Other credit card type number validation\n || ($this->OtherCcType($info->getCcType()) && $this->validateCcNumOther($ccNumber))) {\n\n $ccType = 'OT';\n $discoverNetworkRegexp = '/^(30[0-5]\\d{13}|3095\\d{12}|35(2[8-9]\\d{12}|[3-8]\\d{13})|36\\d{12}'\n . '|3[8-9]\\d{14}|6011(0\\d{11}|[2-4]\\d{11}|74\\d{10}|7[7-9]\\d{10}|8[6-9]\\d{10}|9\\d{11})'\n . '|62(2(12[6-9]\\d{10}|1[3-9]\\d{11}|[2-8]\\d{12}|9[0-1]\\d{11}|92[0-5]\\d{10})|[4-6]\\d{13}'\n . '|8[2-8]\\d{12})|6(4[4-9]\\d{13}|5\\d{14}))$/';\n $ccTypeRegExpList = array(\n //Solo, Switch or Maestro. International safe\n /*\n // Maestro / Solo\n 'SS' => '/^((6759[0-9]{12})|(6334|6767[0-9]{12})|(6334|6767[0-9]{14,15})'\n . '|(5018|5020|5038|6304|6759|6761|6763[0-9]{12,19})|(49[013][1356][0-9]{12})'\n . '|(633[34][0-9]{12})|(633110[0-9]{10})|(564182[0-9]{10}))([0-9]{2,3})?$/',\n */\n // Solo only\n 'SO' => '/(^(6334)[5-9](\\d{11}$|\\d{13,14}$))|(^(6767)(\\d{12}$|\\d{14,15}$))/',\n // Visa\n 'VI' => '/^4[0-9]{12}([0-9]{3})?$/',\n // Master Card\n 'MC' => '/^(5[1-5][0-9]{14}|2(22[1-9][0-9]{12}|2[3-9][0-9]{13}|[3-6][0-9]{14}|7[0-1][0-9]{13}|720[0-9]{12}))$/',\n // American Express\n 'AE' => '/^3[47][0-9]{13}$/',\n // Discover Network\n 'DI' => $discoverNetworkRegexp,\n // Dinners Club (Belongs to Discover Network)\n 'DICL' => $discoverNetworkRegexp,\n // JCB (Belongs to Discover Network)\n 'JCB' => $discoverNetworkRegexp,\n\n // Maestro & Switch\n 'SM' => '/(^(5[0678])\\d{11,18}$)|(^(6[^05])\\d{11,18}$)|(^(601)[^1]\\d{9,16}$)|(^(6011)\\d{9,11}$)'\n . '|(^(6011)\\d{13,16}$)|(^(65)\\d{11,13}$)|(^(65)\\d{15,18}$)'\n . '|(^(49030)[2-9](\\d{10}$|\\d{12,13}$))|(^(49033)[5-9](\\d{10}$|\\d{12,13}$))'\n . '|(^(49110)[1-2](\\d{10}$|\\d{12,13}$))|(^(49117)[4-9](\\d{10}$|\\d{12,13}$))'\n . '|(^(49118)[0-2](\\d{10}$|\\d{12,13}$))|(^(4936)(\\d{12}$|\\d{14,15}$))/'\n );\n\n $specifiedCCType = $info->getCcType();\n if (array_key_exists($specifiedCCType, $ccTypeRegExpList)) {\n $ccTypeRegExp = $ccTypeRegExpList[$specifiedCCType];\n if (!preg_match($ccTypeRegExp, $ccNumber)) {\n $errorMsg = Mage::helper('payment')->__('Credit card number mismatch with credit card type.');\n }\n }\n }\n else {\n $errorMsg = Mage::helper('payment')->__('Invalid Credit Card Number');\n }\n\n }\n else {\n $errorMsg = Mage::helper('payment')->__('Credit card type is not allowed for this payment method.');\n }\n\n //validate credit card verification number\n if ($errorMsg === false && $this->hasVerification()) {\n $verifcationRegEx = $this->getVerificationRegEx();\n $regExp = isset($verifcationRegEx[$info->getCcType()]) ? $verifcationRegEx[$info->getCcType()] : '';\n if (!$info->getCcCid() || !$regExp || !preg_match($regExp ,$info->getCcCid())){\n $errorMsg = Mage::helper('payment')->__('Please enter a valid credit card verification number.');\n }\n }\n\n if ($ccType != 'SS' && !$this->_validateExpDate($info->getCcExpYear(), $info->getCcExpMonth())) {\n $errorMsg = Mage::helper('payment')->__('Incorrect credit card expiration date.');\n }\n\n if($errorMsg){\n Mage::throwException($errorMsg);\n }\n\n //This must be after all validation conditions\n if ($this->getIsCentinelValidationEnabled()) {\n $this->getCentinelValidator()->validate($this->getCentinelValidationData());\n }\n\n return $this;\n }", "title": "" }, { "docid": "77d20ece9c6403a6d34baa91f4848f6a", "score": "0.4691512", "text": "public function validate()\r\n {\r\n /*\r\n * calling parent validate function\r\n */\r\n //parent::validate();\r\n\r\n $info = $this->getInfoInstance();\r\n $errorMsg = false;\r\n $availableTypes = explode(',', $this->getConfigData('cctypes'));\r\n\r\n $ccNumber = $info->getCcNumber();\r\n\r\n // remove credit card number delimiters such as \"-\" and space\r\n $ccNumber = preg_replace('/[\\-\\s]+/', '', $ccNumber);\r\n $info->setCcNumber($ccNumber);\r\n\r\n $ccType = '';\r\n\r\n if (in_array($info->getCcType(), $availableTypes)) {\r\n if ($this->validateCcNum($ccNumber)\r\n // Other credit card type number validation\r\n || ($this->OtherCcType($info->getCcType()) && $this->validateCcNumOther($ccNumber))\r\n ) {\r\n\r\n $ccType = 'OT';\r\n $discoverNetworkRegexp = '/^(30[0-5]\\d{13}|3095\\d{12}|35(2[8-9]\\d{12}|[3-8]\\d{13})|36\\d{12}'\r\n . '|3[8-9]\\d{14}|6011(0\\d{11}|[2-4]\\d{11}|74\\d{10}|7[7-9]\\d{10}|8[6-9]\\d{10}|9\\d{11})'\r\n . '|62(2(12[6-9]\\d{10}|1[3-9]\\d{11}|[2-8]\\d{12}|9[0-1]\\d{11}|92[0-5]\\d{10})|[4-6]\\d{13}'\r\n . '|8[2-8]\\d{12})|6(4[4-9]\\d{13}|5\\d{14}))$/';\r\n $ccTypeRegExpList = array(\r\n //Solo, Switch or Maestro. International safe\r\n /*\r\n // Maestro / Solo\r\n 'SS' => '/^((6759[0-9]{12})|(6334|6767[0-9]{12})|(6334|6767[0-9]{14,15})'\r\n . '|(5018|5020|5038|6304|6759|6761|6763[0-9]{12,19})|(49[013][1356][0-9]{12})'\r\n . '|(633[34][0-9]{12})|(633110[0-9]{10})|(564182[0-9]{10}))([0-9]{2,3})?$/',\r\n */\r\n // Solo only\r\n 'SO' => '/(^(6334)[5-9](\\d{11}$|\\d{13,14}$))|(^(6767)(\\d{12}$|\\d{14,15}$))/',\r\n // Visa\r\n 'VI' => '/^4[0-9]{12}([0-9]{3})?$/',\r\n // Master Card\r\n 'MC' => '/^5[1-5][0-9]{14}$/',\r\n // American Express\r\n 'AE' => '/^3[47][0-9]{13}$/',\r\n // Discover Network\r\n 'DI' => $discoverNetworkRegexp,\r\n // Dinners Club (Belongs to Discover Network)\r\n 'DICL' => $discoverNetworkRegexp,\r\n // JCB (Belongs to Discover Network)\r\n 'JCB' => $discoverNetworkRegexp,\r\n\r\n // Maestro & Switch\r\n 'SM' => '/(^(5[0678])\\d{11,18}$)|(^(6[^05])\\d{11,18}$)|(^(601)[^1]\\d{9,16}$)|(^(6011)\\d{9,11}$)'\r\n . '|(^(6011)\\d{13,16}$)|(^(65)\\d{11,13}$)|(^(65)\\d{15,18}$)'\r\n . '|(^(49030)[2-9](\\d{10}$|\\d{12,13}$))|(^(49033)[5-9](\\d{10}$|\\d{12,13}$))'\r\n . '|(^(49110)[1-2](\\d{10}$|\\d{12,13}$))|(^(49117)[4-9](\\d{10}$|\\d{12,13}$))'\r\n . '|(^(49118)[0-2](\\d{10}$|\\d{12,13}$))|(^(4936)(\\d{12}$|\\d{14,15}$))/'\r\n );\r\n\r\n $specifiedCCType = $info->getCcType();\r\n if (array_key_exists($specifiedCCType, $ccTypeRegExpList)) {\r\n $ccTypeRegExp = $ccTypeRegExpList[$specifiedCCType];\r\n if (!preg_match($ccTypeRegExp, $ccNumber)) {\r\n $errorMsg = Mage::helper('payment')->__('Credit card number mismatch with credit card type.');\r\n }\r\n }\r\n } else {\r\n $errorMsg = Mage::helper('payment')->__('Invalid Credit Card Number');\r\n }\r\n\r\n } else {\r\n $errorMsg = Mage::helper('payment')->__('Credit card type is not allowed for this payment method.');\r\n }\r\n\r\n //validate credit card verification number\r\n if ($errorMsg === false && $this->hasVerification()) {\r\n $verifcationRegEx = $this->getVerificationRegEx();\r\n $regExp = isset($verifcationRegEx[$info->getCcType()]) ? $verifcationRegEx[$info->getCcType()] : '';\r\n if (!$info->getCcCid() || !$regExp || !preg_match($regExp, $info->getCcCid())) {\r\n //$errorMsg = '';\r\n }\r\n }\r\n\r\n if ($ccType != 'SS' && !$this->_validateExpDate($info->getCcExpYear(), $info->getCcExpMonth())) {\r\n $errorMsg = Mage::helper('payment')->__('Incorrect credit card expiration date.');\r\n }\r\n\r\n if ($errorMsg) {\r\n Mage::throwException($errorMsg);\r\n }\r\n\r\n //This must be after all validation conditions\r\n if ($this->getIsCentinelValidationEnabled()) {\r\n $this->getCentinelValidator()->validate($this->getCentinelValidationData());\r\n }\r\n\r\n return $this;\r\n }", "title": "" }, { "docid": "5a4d9eacf856b4b99b05d9a82762d912", "score": "0.46909633", "text": "public function getCountryCodeAllowableValues()\n {\n return [\n self::COUNTRY_CODE_JP,\n self::COUNTRY_CODE_ZZ,\n ];\n }", "title": "" }, { "docid": "3a5ea64a215c32a2eb5890e1e3f7314b", "score": "0.46896645", "text": "public function validate_region($region)\n {\n clearos_profile(__METHOD__, __LINE__);\n\n if (preg_match(\"/([:;\\/#!@])/\", $region))\n return lang('organization_region_invalid');\n }", "title": "" }, { "docid": "0f18d85a350d2a6447b4b760359fc8f6", "score": "0.46888056", "text": "function transactionCardCode()\n\t{\n\t\tif (isset($this->params['transactionCardCode']))\n\t\t{\n\t\t\tif (preg_match('/^[0-9]{3,4}$/', $this->params['transactionCardCode']))\n\t\t\t{\n\t\t\t\treturn \"<cardCode>\" . $this->params['transactionCardCode'] . \"</cardCode>\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->error_messages[] .= 'Transaction card code must be 3 to 4 digits';\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9b3e55a17e64f779ad5d5bf81a6f4933", "score": "0.4686298", "text": "public function testCountryCodeWithIncorrectCasing()\n {\n $request = ['postal_code' => '12345'];\n $rules = ['postal_code' => 'postal_code:de'];\n $validator = $this->factory->make($request, $rules);\n\n $this->assertFalse($validator->fails());\n }", "title": "" }, { "docid": "0f01baa360ee845f8b03b7a040877db3", "score": "0.4676961", "text": "private function getCountry()\n {\n return 'ES';\n }", "title": "" }, { "docid": "e38b8b2267934ad5903dd80aa76ae376", "score": "0.4668002", "text": "public function getRegionCode(): string\n {\n return $this->phoneNumberUtil->getRegionCodeForNumber($this->phoneNumberObject);\n }", "title": "" }, { "docid": "96288ba1f9adae56b7f362c01770cb52", "score": "0.46656555", "text": "public function is_valid_for_use() {\n\t\t// Skip currency check\n\t\treturn false;\n\t}", "title": "" }, { "docid": "b6193ffa7eb5562c7ba6822b9c05a8bc", "score": "0.465533", "text": "public function getCountryRegionAlphaCode($IsoCode)\n {\n if ($countryDatas = $this->getCountryInfos($IsoCode, true))\n return $countryDatas[self::REGION_ALPHA_CODE];\n return 'n/a';\n }", "title": "" }, { "docid": "abbe5797ca680832c35b8dc449683c73", "score": "0.46467784", "text": "public function validateProvince(){\n if($this->country != 'Argentina'){\n $this->province = null;\n $this->city = null;\n }\n }", "title": "" }, { "docid": "0af2f82bf2461143d9074ccb126956b0", "score": "0.46432105", "text": "public function getIsoCode()\n {\n return $this->iso_code;\n }", "title": "" }, { "docid": "f9d25db6f3816a271cae4ca514f6dd4b", "score": "0.46288237", "text": "public function iso()\n {\n return $this->iso6391();\n }", "title": "" }, { "docid": "f44d73301a0d94e780c0b74d12bcf864", "score": "0.46164867", "text": "public function testCanParseAllowedVendorsRanges()\n\t{\n\t\t$cs = Decoder::decode(\"COrEAV4OrXx94ACABBENAHCIAD-AAAAAAACAAxAAAAgAIAwgAgAAAAEAgQAAAAAEAYQAQAAAACAAAABAAA.Qu4QBQAGAAXABLAC8AMAu4A\");\n\t\t$this->assertSame([12, 23, 37, 47, 48, 6000], $cs->getAllowedVendors());\n\t}", "title": "" }, { "docid": "32d2934da939a8d848e4b713573726f1", "score": "0.46157014", "text": "public function getCountryCode();", "title": "" }, { "docid": "33d959010aa3e5bd49e231ae641c3e93", "score": "0.45886987", "text": "public function validate()\n {\n $paymentInfo = $this->getInfoInstance();\n if ($paymentInfo instanceof Mage_Sales_Model_Order_Payment) {\n $billingCountry = $paymentInfo->getOrder()->getBillingAddress()->getCountryId();\n } else {\n $billingCountry = $paymentInfo->getQuote()->getBillingAddress()->getCountryId();\n }\n if (!$this->canUseForCountry($billingCountry)) {\n Mage::throwException(Mage::helper('payment')->__('Selected payment type is not allowed for billing country.'));\n }\n return $this;\n }", "title": "" }, { "docid": "6742f9e6b79bc37554cf99c96bcb0dd9", "score": "0.45883605", "text": "public function getRegionCode(): string\n {\n return $this->getData('regionCode');\n }", "title": "" }, { "docid": "1c921a034a4ddb8f08e7caf75a7d66af", "score": "0.4583", "text": "function isValid($country, $city, $caption) {\n if($country != '' && $city != '' && $caption != '') {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "bb03d961a665f42bab425f13eb3101b7", "score": "0.45823953", "text": "public function isAddressValid()\n {\n //TODO: consider does it make sense to have a special validation by country? how does the app handle different country addresses ?\n $addressValid = trim($this->Streetname1) != '' && trim($this->PostalCode) != '' && trim($this->City) != '' && trim($this->Country) != '' ;\n\n if (!$addressValid) {\n $this->errors[] = 'Invalid Shipping Address';\n }\n\n return $addressValid;\n }", "title": "" }, { "docid": "576620a4e77e018c6ecd5e09af982fd1", "score": "0.457822", "text": "public function testValidPostalCode()\n {\n $request = ['postal_code' => '1000 AP'];\n $rules = ['postal_code' => 'postal_code:NL'];\n $validator = $this->factory->make($request, $rules);\n\n $this->assertFalse($validator->fails());\n }", "title": "" }, { "docid": "b6e1d5c962a3deaa9afafac11fbd88e5", "score": "0.4575024", "text": "function ValidateSSN($aSSN) {\n\n\tif ( ereg(\"^[0-9]{3}[-]{1}[0-9]{2}[-]{1}[0-9]{4}\",$aSSN ) ) {\n\t\t//Good Zip Code\n\t\treturn true;\n\n\t\t\t}else{\n\t\t//Bad Zip Code\n\t\treturn false;\n\t\n\t\t\t}\n\t}", "title": "" }, { "docid": "937758a061ea58e2eae37789d5e4ebd0", "score": "0.45568684", "text": "public function getCountryCode()\n {\n return isset($this->country_code) ? $this->country_code : '';\n }", "title": "" }, { "docid": "70d87a55f6a9556c139d2dc1c6fc4b24", "score": "0.45562643", "text": "public function testInvalidRegion()\n {\n $this->mockRegions(false);\n\n $isValid = $this->subject->isValid([\n Validate::PARAM_REGION => 1,\n Validate::PARAM_ACCESS_KEY => 'AccessKey',\n Validate::PARAM_SECRET_KEY => 'SecretKey'\n ]);\n\n $errors = $this->subject->getErrors();\n\n self::assertEquals(false, $isValid);\n self::assertEquals(['Invalid Region'], $errors);\n }", "title": "" }, { "docid": "a9ed2d4a511f3706ec6eff2e6c4e1ad9", "score": "0.4549734", "text": "function is_pincode($val, $country = 'us')\r\n {\r\n $patterns = array('at' => '^[0-9]{4,4}$', 'au' => '^[2-9][0-9]{2,3}$', 'ca' =>\r\n '^[a-zA-Z].[0-9].[a-zA-Z].\\s[0-9].[a-zA-Z].[0-9].', 'de' => '^[0-9]{5,5}$', 'ee' =>\r\n '^[0-9]{5,5}$', 'nl' => '^[0-9]{4,4}\\s[a-zA-Z]{2,2}$', 'it' => '^[0-9]{5,5}$',\r\n 'pt' => '^[0-9]{4,4}-[0-9]{3,3}$', 'se' => '^[0-9]{3,3}\\s[0-9]{2,2}$', 'uk' =>\r\n '^([A-Z]{1,2}[0-9]{1}[0-9A-Z]{0,1}) ?([0-9]{1}[A-Z]{1,2})$', 'us' =>\r\n '^[0-9]{5,5}[\\-]{0,1}[0-9]{4,4}$');\r\n if (!array_key_exists($country, $patterns))\r\n return false;\r\n return (bool)preg_match(\"/\" . $patterns[$country] . \"/\", $val);\r\n\r\n\r\n }", "title": "" }, { "docid": "7b25170955eb52e145a4ee8068a9fb1b", "score": "0.4547262", "text": "function is_valid_for_use()\n {\n // Skip currency check\n return true;\n }", "title": "" }, { "docid": "d204f8c7901ac945e60e9a256c01c709", "score": "0.4545771", "text": "function ValidateSupplierValues ($vars) {\n\tglobal $error, $msg;\n\n\t$DEBUG = false;\n\t$DEBUG && $msg .= __FUNCTION__.\": Vars\".ArrayToTable ($vars);\n\t\n\t$vars['Country'] = strtoupper(substr ($vars['Country'],0,2));\n\n\treturn $vars;\n}", "title": "" }, { "docid": "70b8b33edbf28da507ea3209ca21cf84", "score": "0.4544611", "text": "public function getRegionCode()\n {\n return $this->region_code;\n }", "title": "" }, { "docid": "484b51ff9f37ca73581f6202c4837f2c", "score": "0.4535232", "text": "public function getValidCard() {\n $card_data = parent::getValidCard();\n $card_data['cvv'] = rand(100,199);\n return $card_data;\n }", "title": "" }, { "docid": "b0491926776a5858ffc535021c0166fa", "score": "0.4518829", "text": "public function getCountryCode(): string\n {\n return $this->sCountryCode;\n }", "title": "" }, { "docid": "2931bc0a4fc83936d2b72cbc7de17f1c", "score": "0.45186976", "text": "public function getCountryAlpha3Code($IsoCode)\n {\n if ($countryDatas = $this->getCountryInfos($IsoCode, true))\n return $countryDatas[self::ALPHA3];\n return 'n/a';\n }", "title": "" }, { "docid": "450cafed68c1e315a8a5b2314302dbc4", "score": "0.4512972", "text": "public function is_valid_for_use()\n {\n return in_array(\n get_woocommerce_currency(),\n apply_filters(\n 'woocommerce_siru_supported_currencies',\n array( 'EUR' )\n ),\n true\n );\n }", "title": "" }, { "docid": "9b7ac029deef215f4a80c97ae975b10e", "score": "0.45127755", "text": "public function testCanParseAllowedVendorsBits()\n\t{\n\t\t$cs = Decoder::decode(\"COrEAV4OrXx94ACABBENAHCIAD-AAAAAAACAAxAAAAgAIAwgAgAAAAEAgQAAAAAEAYQAQAAAACAAAABAAA.QAagAQAgAIAwgA\");\n\t\t$this->assertSame([12, 23, 37, 47, 48, 53], $cs->getAllowedVendors());\n\t}", "title": "" }, { "docid": "b79276ba59c3240f4ed81c12cd6e3c85", "score": "0.45115116", "text": "public function testConstructExceptionCountryCodeInvalid()\n {\n try {\n $amazon = new Zend_Service_Amazon(constant('TESTS_ZEND_SERVICE_AMAZON_ONLINE_ACCESSKEYID'), 'oops');\n $this->fail('Expected Zend_Service_Exception not thrown');\n } catch (Zend_Service_Exception $e) {\n $this->assertContains('Unknown country code', $e->getMessage());\n }\n }", "title": "" }, { "docid": "40e542693f3a49d7543252c23b4f5b7f", "score": "0.45095623", "text": "public static function validatePriceCode()\n\t{\n\t\treturn array(\n\t\t\tnew Main\\Entity\\Validator\\Length(null, 255),\n\t\t);\n\t}", "title": "" }, { "docid": "5314a80b6a022ce79f44910bafbc16e7", "score": "0.450685", "text": "public function isUs()\n {\n return $this->country_code == 'US';\n }", "title": "" }, { "docid": "5f0b8a3b8d8e65c0e66356aee8deb5e8", "score": "0.45014268", "text": "public function isInEU()\n {\n return (bool) ($this->oxcountry__oxvatstatus->value == 1);\n }", "title": "" }, { "docid": "0640b525e0cda94fe384f193c23de5e2", "score": "0.44844592", "text": "function validateColoradoCoordinates($lat, $long) {\n\treturn ( is_numeric($lat) && is_numeric($long) ) && ( $lat >= 37 && $lat <= 41 ) && ( $long >= -109 && $long <= -102 );\n}", "title": "" }, { "docid": "64c862bf23d60276191adacddc0dc67e", "score": "0.4479798", "text": "public function getIsoAlpha3(): string\n {\n return $this->getAttribute('iso_alpha_3');\n }", "title": "" }, { "docid": "129eea0f643a59defe4515e9eab0894d", "score": "0.44795066", "text": "function is_valid_for_use() {\r\n\t\tif ( ! in_array( get_woocommerce_currency(), apply_filters( 'woocommerce_payneteasy_supported_currencies', array( 'AUD', 'BRL', 'CAD', 'MXN', 'NZD', 'HKD', 'SGD', 'USD', 'EUR', 'JPY', 'TRY', 'NOK', 'CZK', 'DKK', 'HUF', 'ILS', 'MYR', 'PHP', 'PLN', 'SEK', 'CHF', 'TWD', 'THB', 'GBP', 'RMB', 'RUB' ) ) ) ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "329216c4da6bae8bbdccea860b0f609a", "score": "0.4478782", "text": "public function getCountryCode()\n {\n return $this->getIsNi() === 'Y' ? self::COUNTRY_CODE_NI : self::COUNTRY_CODE_GB;\n }", "title": "" }, { "docid": "0a3e1ebcb8271bb9309e09ba03147343", "score": "0.44765776", "text": "public function getCountryCode(): string;", "title": "" }, { "docid": "e135dcddbff7dbe0a01c00476c314da4", "score": "0.4475541", "text": "private function set_geocoding_region() {\n\t require_once( SLPLUS_PLUGINDIR . 'include/module/i18n/SLP_Country_Manager.php' );\n\t\t$country = $this->slplus->Country_Manager->countries[ $this->slplus->options_nojs['default_country'] ];\n\t return $country->cctld;\n }", "title": "" }, { "docid": "7253cdcc1a377c010b98363cb8c39a58", "score": "0.44753948", "text": "function validate_region($config) {\n $region = strtolower($config[\"region\"]);\n\n switch ($region) {\n case \"us\":\n case \"ca\":\n case \"eu\":\n $config[\"region\"] = $region;\n break;\n default:\n $config[\"region\"] = \"\";\n break;\n }\n}", "title": "" }, { "docid": "14b69516c4daa8e4e4423c7dcab862c1", "score": "0.4472715", "text": "public function _validatePhoneCountry($country, $number) {\n $validCell=false;\n \n switch ($country) {\n case \"VEN\":\n if (preg_match('/^([4]{1})[0-9]{9}$/', $number))\n $validCell = true;\n break;\n case \"COL\":\n if (preg_match('/^([3]{1})[0-9]{9}$/', $number))\n $validCell = true;\n break;\n case \"CHL\":\n if (preg_match('/^([9]{1})[0-9]{8}$/', $number))\n $validCell = true;\n break;\n case \"CRI\":\n if (preg_match('/^([5678]{1})[0-9]{7}$/', $number))\n $validCell = true;\n break;\n case \"PER\":\n if (preg_match('/^([9]{1})[0-9]{8}$/', $number))\n $validCell = true;\n break;\n case \"PAN\":\n if (preg_match('/^([6]{1})[0-9]{7}$/', $number))\n $validCell = true;\n break;\n case \"DOM\":\n if (preg_match('/^[0-9]{10}$/', $number))\n $validCell = true;\n break;\n case \"HND\":\n if (preg_match('/^([3789]{1})[0-9]{7}$/', $number))\n $validCell = true;\n break;\n case \"GTM\":\n if (preg_match('/^[0-9]{8}$/', $number))\n $validCell = true;\n break;\n case \"ECU\":\n if (preg_match('/^([9]{1})[0-9]{8}$/', $number))\n $validCell = true;\n break;\n case \"NIC\":\n if (preg_match('/^([8]{1})[0-9]{7}$/', $number))\n $validCell = true;\n break;\n case \"BOL\":\n if (preg_match('/^([6,7]{1})[0-9]{7}$/', $number))\n $validCell = true;\n break;\n case \"URY\":\n if (preg_match('/^([9]{1})[0-9]{6,7}$/', $number))\n $validCell = true;\n break;\n case \"SLV\":\n if (preg_match('/^([7]{1})[0-9]{7}$/', $number))\n $validCell = true;\n break;\n case \"PRI\":\n if (preg_match('/^[0-9]{7}$/', $number))\n $validCell = true;\n break;\n case \"PRY\":\n if (preg_match('/^[0-9]{8,9}$/', $number))\n $validCell = true;\n break;\n\n default:\n if (preg_match('/^[0-9]+$/', $number))\n $validCell = true;\n break;\n }\n return $validCell;\n }", "title": "" }, { "docid": "d78500d45deef1d1a0da3227af2dcc3e", "score": "0.44570607", "text": "public static function getISO4217CurrencyFromCode($code) {\n foreach (CurrencyHelper::$currencies as $currency => $data) {\n if ($data[\"code\"] == $code) {\n return $currency;\n }\n }\n\n return null;\n }", "title": "" }, { "docid": "e8b596df5962200811e07c2805d30750", "score": "0.44556797", "text": "private function getCountryCode() : string\n {\n return substr($this->vin, 0, 2);\n }", "title": "" }, { "docid": "1ea8cc73941424a075041b9f6f864df6", "score": "0.44514325", "text": "public function getRegion()\n {\n return $this->host === self::HOST_EU ? 'eu' : 'us';\n }", "title": "" }, { "docid": "afda7e445124b719f94575ca698fa872", "score": "0.44509172", "text": "public function getCountryCode()\n {\n return isset($this->countryCode) ? $this->countryCode : null;\n }", "title": "" }, { "docid": "afda7e445124b719f94575ca698fa872", "score": "0.44509172", "text": "public function getCountryCode()\n {\n return isset($this->countryCode) ? $this->countryCode : null;\n }", "title": "" }, { "docid": "029329d112edd13656d1e4c8f7aafdfe", "score": "0.44352236", "text": "public function getCountryCode(): string\n {\n return $this->getData('countryCode');\n }", "title": "" }, { "docid": "bff8b9ed75617fb3167c09f4d91c9fa3", "score": "0.44352", "text": "public function countryCode()\n {\n return $this->resolve('country_code');\n }", "title": "" }, { "docid": "4cebd1cb268c1a191a52abdee0d5a9e6", "score": "0.44279584", "text": "public function getCountryCode()\n {\n return $this->CountryCode;\n }", "title": "" }, { "docid": "853b92efe146ea76733e15142663cdc5", "score": "0.4426572", "text": "public function getPreferredIsoCode()\n {\n return $this->preferredIsoCode;\n }", "title": "" }, { "docid": "b83b65d52612160805ce7c11d6f69038", "score": "0.442391", "text": "private function checkIfCountrySupportsCitizenData(string $countryCode): void\n {\n if (! isset(Countries::$extractors[$countryCode])) {\n $countryName = Locale::getDisplayRegion(\"-$countryCode\", 'en');\n\n throw new UnsupportedOperationException(\n \"$countryName does not support extracting citizen data from the ID.\"\n );\n }\n }", "title": "" }, { "docid": "a49235f7d5f7f6c679a053564c508347", "score": "0.44214827", "text": "public function setAmazonCountryCode($code)\n {\n $this->_amazon_country_code = $code;\n return true;\n }", "title": "" }, { "docid": "913b6c2549f0dee6d247db1d2ce2ed8f", "score": "0.44193342", "text": "public function test_it_can_create_a_new_coupon_with_valid_location_restrictions()\n {\n $coupon = [\n 'code' => 'KEN93',\n 'description' => $this->faker->paragraph,\n 'amount' => \"500\",\n 'lat' => $this->faker->latitude,\n 'lng' => $this->faker->longitude,\n 'radius' => 23,\n ];\n\n $res = $this->json('post', '/coupon', $coupon);\n $this->assertResponseOk();\n $res->seeInDatabase('coupons', $coupon);\n }", "title": "" }, { "docid": "f2d46af82fce95c59a90cc05b6ffe2ad", "score": "0.44177762", "text": "public function validateOnly($dataArr)\r\n {\r\n $errorMsg = false;\r\n $availableTypes = explode(',', $this->getConfigData('cctypes'));\r\n $ccNumber = $dataArr['cc_number'];\r\n $ccNumber = preg_replace('/[\\-\\s]+/', '', $ccNumber);\r\n $ccType = '';\r\n if (in_array($dataArr['cc_type'], $availableTypes)) {\r\n if ($this->validateCcNum($ccNumber)\r\n || ($this->OtherCcType($dataArr['cc_type']) && $this->validateCcNumOther($ccNumber))\r\n ) {\r\n\r\n $ccType = 'OT';\r\n $discoverNetworkRegexp = '/^(30[0-5]\\d{13}|3095\\d{12}|35(2[8-9]\\d{12}|[3-8]\\d{13})|36\\d{12}'\r\n . '|3[8-9]\\d{14}|6011(0\\d{11}|[2-4]\\d{11}|74\\d{10}|7[7-9]\\d{10}|8[6-9]\\d{10}|9\\d{11})'\r\n . '|62(2(12[6-9]\\d{10}|1[3-9]\\d{11}|[2-8]\\d{12}|9[0-1]\\d{11}|92[0-5]\\d{10})|[4-6]\\d{13}'\r\n . '|8[2-8]\\d{12})|6(4[4-9]\\d{13}|5\\d{14}))$/';\r\n $ccTypeRegExpList = array(\r\n // Solo only\r\n 'SO' => '/(^(6334)[5-9](\\d{11}$|\\d{13,14}$))|(^(6767)(\\d{12}$|\\d{14,15}$))/',\r\n // Visa\r\n 'VI' => '/^4[0-9]{12}([0-9]{3})?$/',\r\n // Master Card\r\n 'MC' => '/^5[1-5][0-9]{14}$/',\r\n // American Express\r\n 'AE' => '/^3[47][0-9]{13}$/',\r\n // Discover Network\r\n 'DI' => $discoverNetworkRegexp,\r\n // Dinners Club (Belongs to Discover Network)\r\n 'DICL' => $discoverNetworkRegexp,\r\n // JCB (Belongs to Discover Network)\r\n 'JCB' => $discoverNetworkRegexp,\r\n\r\n // Maestro & Switch\r\n 'SM' => '/(^(5[0678])\\d{11,18}$)|(^(6[^05])\\d{11,18}$)|(^(601)[^1]\\d{9,16}$)|(^(6011)\\d{9,11}$)'\r\n . '|(^(6011)\\d{13,16}$)|(^(65)\\d{11,13}$)|(^(65)\\d{15,18}$)'\r\n . '|(^(49030)[2-9](\\d{10}$|\\d{12,13}$))|(^(49033)[5-9](\\d{10}$|\\d{12,13}$))'\r\n . '|(^(49110)[1-2](\\d{10}$|\\d{12,13}$))|(^(49117)[4-9](\\d{10}$|\\d{12,13}$))'\r\n . '|(^(49118)[0-2](\\d{10}$|\\d{12,13}$))|(^(4936)(\\d{12}$|\\d{14,15}$))/'\r\n );\r\n\r\n $specifiedCCType = $dataArr['cc_type'];\r\n if (array_key_exists($specifiedCCType, $ccTypeRegExpList)) {\r\n $ccTypeRegExp = $ccTypeRegExpList[$specifiedCCType];\r\n if (!preg_match($ccTypeRegExp, $ccNumber)) {\r\n $errorMsg = Mage::helper('payment')->__('Credit card number mismatch with credit card type.');\r\n }\r\n }\r\n } else {\r\n $errorMsg = Mage::helper('payment')->__('Invalid Credit Card Number');\r\n }\r\n\r\n } else {\r\n $errorMsg = Mage::helper('payment')->__('Credit card type is not allowed for this payment method.');\r\n }\r\n\r\n //validate credit card verification number\r\n if ($errorMsg === false && $this->hasVerification()) {\r\n $verifcationRegEx = $this->getVerificationRegEx();\r\n $regExp = isset($verifcationRegEx[$dataArr['cc_type']]) ? $verifcationRegEx[$dataArr['cc_type']] : '';\r\n if (!$dataArr['cc_cvv'] || !$regExp || !preg_match($regExp, $dataArr['cc_cvv'])) {\r\n //$errorMsg = '';\r\n }\r\n }\r\n\r\n if ($ccType != 'SS' && !$this->_validateExpDate($dataArr['cc_exy'], $dataArr['cc_exm'])) {\r\n $errorMsg = Mage::helper('payment')->__('Incorrect credit card expiration date.');\r\n }\r\n\r\n if ($errorMsg) {\r\n Mage::throwException($errorMsg);\r\n }\r\n return $this;\r\n }", "title": "" }, { "docid": "5ebc3f9d98ed8df023568f45314ff77a", "score": "0.4415883", "text": "public static function getISO4217CurrencyFromCode($code) {\r\n\t\t\tforeach (ExpConnect2PayCurrencyHelper::$currencies as $currency => $data) {\r\n\t\t\t\tif ($data[\"code\"] == $code) {\r\n\t\t\t\t\treturn $currency;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn null;\r\n\t\t}", "title": "" }, { "docid": "f21309779dc20308af4f996721eed0e4", "score": "0.44138142", "text": "public function getCountryCode(): ?string\n {\n return $this->countryCode;\n }", "title": "" }, { "docid": "eb65658d23bd1b42d8a7421f6a1faab8", "score": "0.44087958", "text": "public function regionCode()\n {\n return $this->resolve('region_code');\n }", "title": "" }, { "docid": "9e0a83d28186fc138b8f330bfd63d896", "score": "0.44079062", "text": "public function getCountry()\n {\n $countryCodes = array(\n 'Billing' => '',\n 'Shipping' => '',\n );\n $code = null;\n if ($this->BillingAddressID) {\n $billingAddress = BillingAddress::get()->byID($this->BillingAddressID);\n if ($billingAddress) {\n if ($billingAddress->Country) {\n $countryCodes['Billing'] = $billingAddress->Country;\n }\n }\n }\n if ($this->ShippingAddressID && $this->UseShippingAddress) {\n $shippingAddress = ShippingAddress::get()->byID($this->ShippingAddressID);\n if ($shippingAddress) {\n if ($shippingAddress->ShippingCountry) {\n $countryCodes['Shipping'] = $shippingAddress->ShippingCountry;\n }\n }\n }\n if (\n (EcommerceConfig::get('OrderAddress', 'use_shipping_address_for_main_region_and_country') && $countryCodes['Shipping'])\n ||\n (!$countryCodes['Billing'] && $countryCodes['Shipping'])\n ) {\n $code = $countryCodes['Shipping'];\n } elseif ($countryCodes['Billing']) {\n $code = $countryCodes['Billing'];\n } else {\n $code = EcommerceCountry::get_country_from_ip();\n }\n return $code;\n\n }", "title": "" }, { "docid": "8533ff0c6145a133b162261f74896634", "score": "0.44071054", "text": "public static function validateCurrency()\n\t{\n\t\treturn array(\n\t\t\tnew Entity\\Validator\\Length(null, 3),\n\t\t);\n\t}", "title": "" }, { "docid": "4df6086324832af4e9d7ea4447d6908f", "score": "0.44070807", "text": "public function isStateProvinceRequired()\n {\n return true;\n }", "title": "" }, { "docid": "4df6086324832af4e9d7ea4447d6908f", "score": "0.44070807", "text": "public function isStateProvinceRequired()\n {\n return true;\n }", "title": "" }, { "docid": "5e9a4c5294b51e452b10b8c92bb5e355", "score": "0.44068077", "text": "public function testInvalidRegion()\n {\n $this->mockRegions(false);\n\n $isValid = $this->subject->isValid([\n Status::PARAM_ID => self::REQUEST_ID,\n Status::PARAM_REGION => 'error'\n ]);\n\n $errors = $this->subject->getErrors();\n\n $this->assertEquals(false, $isValid);\n $this->assertEquals(['Invalid Region'], $errors);\n }", "title": "" } ]
72c87b01c4f77c4ce7a9682a51d80493
Set the code chantier.
[ { "docid": "bbb2f8303988d17aaca60894afee97ed", "score": "0.0", "text": "public function setCodeChantier(?string $codeChantier): DevisLocalLignes {\n $this->codeChantier = $codeChantier;\n return $this;\n }", "title": "" } ]
[ { "docid": "1f9d92dc237f8fad82376f548a1b9c5b", "score": "0.73285156", "text": "function setCode($code);", "title": "" }, { "docid": "c24ac73666fb6cf31ae703426f2f1f76", "score": "0.6825656", "text": "public function setCode($code)\n {\n \n }", "title": "" }, { "docid": "a827febac926b992b8ec5530c4de5e4a", "score": "0.67632866", "text": "protected function setCode($code) {\n\t\t$this->code = $code;\n\t}", "title": "" }, { "docid": "47c66cfd477fde2c167b04ca0642df89", "score": "0.67532814", "text": "public function setCode($code);", "title": "" }, { "docid": "91b979c061f85163541783053b148c4d", "score": "0.666795", "text": "public function setCode(?string $code): void\n {\n $this->code = $code;\n }", "title": "" }, { "docid": "04e2bd151923abc72cafd626d790c7ff", "score": "0.66149276", "text": "public function setCode($value)\n {\n $this->code = $value;\n }", "title": "" }, { "docid": "04e2bd151923abc72cafd626d790c7ff", "score": "0.66149276", "text": "public function setCode($value)\n {\n $this->code = $value;\n }", "title": "" }, { "docid": "2381473ad62409e63c11f78ba4d4310b", "score": "0.64598936", "text": "public function setCode(string $code): self;", "title": "" }, { "docid": "35b04c2c60d30f9d50cd0cdfd61dfdd8", "score": "0.6453286", "text": "function code_writer()\r\n\t{\r\n\t\t$this->code = '';\r\n\t}", "title": "" }, { "docid": "ce1fdd513fa2ecba87205835cf1a9c42", "score": "0.6439295", "text": "public function testSetCodeChantier() {\n\n $obj = new ChantiersDescriptifLocaux();\n\n $obj->setCodeChantier(\"codeChantier\");\n $this->assertEquals(\"codeChantier\", $obj->getCodeChantier());\n }", "title": "" }, { "docid": "8479f739a984205a4ac212182f44d3a2", "score": "0.64325136", "text": "public function set($code) {\n\t\tif(!$this->code) {\n\t\t\t$this->code = $code;\n\t\t}\n\t}", "title": "" }, { "docid": "62f09411141e1763c8123eb90cd2a1fc", "score": "0.62861013", "text": "public function setCode($code)\n {\n $this->code = $code;\n }", "title": "" }, { "docid": "62f09411141e1763c8123eb90cd2a1fc", "score": "0.62861013", "text": "public function setCode($code)\n {\n $this->code = $code;\n }", "title": "" }, { "docid": "62f09411141e1763c8123eb90cd2a1fc", "score": "0.62861013", "text": "public function setCode($code)\n {\n $this->code = $code;\n }", "title": "" }, { "docid": "62f09411141e1763c8123eb90cd2a1fc", "score": "0.62861013", "text": "public function setCode($code)\n {\n $this->code = $code;\n }", "title": "" }, { "docid": "0c8a7b20c65313d45bc3db1919ad4119", "score": "0.62690616", "text": "public function setCode(CodeNode $node)\n {\n $this->code = $node;\n }", "title": "" }, { "docid": "ef1fb926bc973296823428cafeb826d1", "score": "0.62282646", "text": "public function setCodeChantier($codeChantier) {\n $this->codeChantier = $codeChantier;\n return $this;\n }", "title": "" }, { "docid": "ef1fb926bc973296823428cafeb826d1", "score": "0.62282646", "text": "public function setCodeChantier($codeChantier) {\n $this->codeChantier = $codeChantier;\n return $this;\n }", "title": "" }, { "docid": "b8f958172254879f51a46557a8610848", "score": "0.6166397", "text": "public function setCode(Choice $code)\n\t{\n\t\t$this->code=$code; \n\t\t$this->keyModified['code'] = 1; \n\n\t}", "title": "" }, { "docid": "8c63cc3b2e0848e18d38be5f961c49a1", "score": "0.6166078", "text": "public function setCode()\n {\n $alph = \"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n $code = substr(str_shuffle($alph), 0, rand(5,25));\n $this->code = $code;\n }", "title": "" }, { "docid": "999cee552550411bf5a4a014ecf2cce5", "score": "0.615779", "text": "private function setData($code, $value) {\n\t}", "title": "" }, { "docid": "d04cb977d383adae094fbaf6190161c6", "score": "0.6151612", "text": "public function code()\n {\n }", "title": "" }, { "docid": "11c2e0b552f1b8e7e3147633bb30ff7b", "score": "0.6145175", "text": "private function setCode($value)\n {\n $this->code = $value;\n\n return $this;\n }", "title": "" }, { "docid": "cb7a905a125c3d301a64b94539a4068b", "score": "0.6124896", "text": "public function setCode($code)\n {\n return $this->code = $code;\n }", "title": "" }, { "docid": "cfcafe78b3162baf5d206790c1c8c0f7", "score": "0.61094993", "text": "public function setCode(PHP_Depend_Code_NodeIterator $code)\n {\n $this->code = $code;\n }", "title": "" }, { "docid": "de05b6f4e236a933fd3b73213fc4f1a3", "score": "0.6094274", "text": "function setCode()\n\t{\n\t\tif($this->invalid) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t$_SESSION['IcmsCaptcha_sessioncode'] = strval( $this->code );\n\t\t$maxAttempts = intval( @$_SESSION['IcmsCaptcha_maxattempts'] );\n\t\t\n\t\t// Increase the attempt records on refresh\n\t\tif(!empty($maxAttempts)) {\n\t\t\t$_SESSION['IcmsCaptcha_attempt_'.$_SESSION['IcmsCaptcha_name']]++;\n\t\t\tif($_SESSION['IcmsCaptcha_attempt_'.$_SESSION['IcmsCaptcha_name']] > $maxAttempts) {\n\t\t\t\t$this->invalid = true;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "eb437694f285fefd6aa169c900cf8f47", "score": "0.6085829", "text": "public function setCode($value)\n {\n return $this->set(self::code, $value);\n }", "title": "" }, { "docid": "eb437694f285fefd6aa169c900cf8f47", "score": "0.6085829", "text": "public function setCode($value)\n {\n return $this->set(self::code, $value);\n }", "title": "" }, { "docid": "59b4fe6e62574375e6897903ee63aed7", "score": "0.607612", "text": "public function getCodeChantier() {\n return $this->codeChantier;\n }", "title": "" }, { "docid": "59b4fe6e62574375e6897903ee63aed7", "score": "0.607612", "text": "public function getCodeChantier() {\n return $this->codeChantier;\n }", "title": "" }, { "docid": "0892ecb95b1a52669af0015127cff946", "score": "0.6039445", "text": "public function setCode($val)\n {\n $this->code=$val;\n }", "title": "" }, { "docid": "7fffdcc8c7688ff6f00604788618d456", "score": "0.5996762", "text": "protected function setHtmlCode(string $code):void {\r\n\t\t$this->codHtml = $code;\r\n\t}", "title": "" }, { "docid": "a4272cb6a0a8c02c019ac8b924e4fe37", "score": "0.59749544", "text": "public function setCode(int $code)\n {\n $this->code = $code;\n }", "title": "" }, { "docid": "f49426e78f1a4d39536d5e3fffc263fe", "score": "0.59579164", "text": "public function setCode($cote)\n {\n $this->code = $code;\n\n return $this;\n }", "title": "" }, { "docid": "f0ee34afec129508489c0e80da78862d", "score": "0.5930597", "text": "public function applyCode($code);", "title": "" }, { "docid": "63a8f9afe22e3a0f7cb7b7466961b991", "score": "0.58902395", "text": "function _setCode ($langcode=NULL)\r\n {\r\n $this->Session->write(\"Lang.Code\", $langcode);\r\n }", "title": "" }, { "docid": "49e8a7404973607383ccc7d675fc8b5f", "score": "0.58878404", "text": "public function setBehaviour($code)\n\t{\n\t\t$this->behaviour = $code;\n\t}", "title": "" }, { "docid": "b80e832b3ea4421a83f07ab298237f63", "score": "0.58433515", "text": "public function setCode(string $code): self\n {\n $this->code = $code;\n\n return $this;\n }", "title": "" }, { "docid": "b55a635908d38628d4ee80e3990d4401", "score": "0.5820663", "text": "public function setCode($code)\n {\n if(in_array($code, $this->allowedCodes))\n {\n $this->code = $code;\n }\n\n return $this;\n }", "title": "" }, { "docid": "b4b8f16d11af62d42fa907a9bb27e3bb", "score": "0.5810933", "text": "abstract protected function setStationCode();", "title": "" }, { "docid": "54bdc51e980dbac77d10ceefd0ed5167", "score": "0.57960755", "text": "public function setCode($code) {\n$this->fields[\"code\"] = $code;\n\nreturn $this;\n\n }", "title": "" }, { "docid": "df984f2e0ad1d82f3b067885754bd710", "score": "0.5773359", "text": "public function cheatCode($value)\n {\n $this->setProperty('cheatCode', $value);\n return $this;\n }", "title": "" }, { "docid": "7ccea35eecc99f949e05a70bc3e2ec15", "score": "0.5767178", "text": "function setCode($inCode) {\n\t\tif ( $inCode !== $this->_Code ) {\n\t\t\t$this->_Code = $inCode;\n\t\t\t$this->setModified();\n\t\t}\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "54a570a8beb4dc3686c647fdd57a9662", "score": "0.5743656", "text": "public function setCode($code) {\n $this->code = $this->valid('code', $code);\n return $this;\n }", "title": "" }, { "docid": "595ce16afac816ecf2b728df77341e28", "score": "0.57311696", "text": "public function activate($code);", "title": "" }, { "docid": "f6a620777079475a7aff3e56c12d8504", "score": "0.57019895", "text": "public function Code($code)\n {\n $this->code = $code;\n return $this;\n }", "title": "" }, { "docid": "47ff2a95d455f94336abbb2e05b62538", "score": "0.5682091", "text": "public function setCode($str)\r\n {\r\n $str = strtolower($str);\r\n \r\n if ($str == 'soundex' || $str == 'phonix') {\r\n $this->code = $str;\r\n if ($str == 'phonix') {\r\n $this->map = $this->aphonixCode;\r\n } else {\r\n $this->map = $this->asoundexCode;\r\n }\r\n }\r\n \r\n return $this;\r\n }", "title": "" }, { "docid": "8daa25800d864aeca6176fe502cc91ce", "score": "0.56482565", "text": "public function setCode($code)\n {\n $this->json()->code = $code;\n }", "title": "" }, { "docid": "d22c20174e780061f07e54c5e24a0aaa", "score": "0.5640284", "text": "function CDMSet() {\n /** Set up variables to hold information about this code set\n */\n $this->initVar('meta',XOBJ_DTYPE_OTHER,null);\n $this->initVar('code',XOBJ_DTYPE_OTHER,null);\n $v = array();\n $this->assignVar('code',$v);\n }", "title": "" }, { "docid": "68fb0edc1152769f18a40fdb80d4a10c", "score": "0.5630952", "text": "public function setCode($code)\n {\n $this->code = is_int($code) && $code >= 0 ? $code : $this->code;\n\n return $this;\n }", "title": "" }, { "docid": "83852d83df4a97b37865ea655baa28b1", "score": "0.5622657", "text": "public function setCode($code)\n {\n $this->Code = $code;\n return $this;\n }", "title": "" }, { "docid": "fa2b4e8b6949bffa708a019c003c5e8e", "score": "0.5610637", "text": "public function setCode($code)\n {\n $this->code = $code;\n return $this;\n }", "title": "" }, { "docid": "fa2b4e8b6949bffa708a019c003c5e8e", "score": "0.5610637", "text": "public function setCode($code)\n {\n $this->code = $code;\n return $this;\n }", "title": "" }, { "docid": "fa2b4e8b6949bffa708a019c003c5e8e", "score": "0.5610637", "text": "public function setCode($code)\n {\n $this->code = $code;\n return $this;\n }", "title": "" }, { "docid": "fa2b4e8b6949bffa708a019c003c5e8e", "score": "0.5610637", "text": "public function setCode($code)\n {\n $this->code = $code;\n return $this;\n }", "title": "" }, { "docid": "fa2b4e8b6949bffa708a019c003c5e8e", "score": "0.5610637", "text": "public function setCode($code)\n {\n $this->code = $code;\n return $this;\n }", "title": "" }, { "docid": "f5ce117a0252334d96c4339a3f52c72c", "score": "0.55853254", "text": "public function testSetCodeModele() {\n\n $obj = new Etiquettes();\n\n $obj->setCodeModele(\"codeModele\");\n $this->assertEquals(\"codeModele\", $obj->getCodeModele());\n }", "title": "" }, { "docid": "ecefdb1364070f0dadd9ba5a29b7499f", "score": "0.5566279", "text": "public function testSetCodeCliFour() {\n\n $obj = new Etiquettes();\n\n $obj->setCodeCliFour(\"codeCliFour\");\n $this->assertEquals(\"codeCliFour\", $obj->getCodeCliFour());\n }", "title": "" }, { "docid": "f34fdb2c77500cb7a019d55d9587bf6d", "score": "0.55485636", "text": "public static function set($code) {\n\t\tself::$locale = $code;\n\t}", "title": "" }, { "docid": "e3a9077ae453ffcf06249a9cfbadc546", "score": "0.5533239", "text": "public function setCode(string $code) : bool {\n $trimmedCode = strtoupper(trim($code));\n\n if (strlen($trimmedCode) == 2 && $trimmedCode[0] >= 'A' && $trimmedCode[0] <= 'Z' && $trimmedCode[1] >= 'A' && $trimmedCode[1] <= 'Z') {\n $oldCode = $this->getCode();\n\n if ($this->isLoaded() && isset(self::$loadedLangs[$oldCode])) {\n unset(self::$loadedLangs[$oldCode]);\n }\n $this->languageVars['code'] = $trimmedCode;\n\n if ($this->isLoaded()) {\n self::$loadedLangs[$trimmedCode] = &$this;\n }\n\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "38674838be2b7a3ce4707d6f62320736", "score": "0.55038226", "text": "public function setCodeTache(?string $codeTache): TempsPasses {\n $this->codeTache = $codeTache;\n return $this;\n }", "title": "" }, { "docid": "5b5cedf99a4ef53258a222569470be38", "score": "0.5499759", "text": "final function setActivation_code($value) {\n\t\treturn $this->setActivationCode($value);\n\t}", "title": "" }, { "docid": "67ec9ee75a553202d9cd4c949442c5c3", "score": "0.54906386", "text": "public function setCode(int $code) : self\n {\n $this->_code = $code;\n\n return $this;\n }", "title": "" }, { "docid": "29ea6c6aaf17b1d74bc75e2ee4121d4e", "score": "0.5488561", "text": "public function set_code(int $id, string $code = null){\n return $this->db->update_ignore($this->class_cfg['table'], [\n $this->class_cfg['arch']['options']['code'] => $code ?: null\n ], [\n $this->class_cfg['arch']['options']['id'] => $id\n ]);\n }", "title": "" }, { "docid": "04d0cb7d05e902223f9adf65f126c667", "score": "0.5478201", "text": "public function __construct($code)\n {\n $this->code = $code;\n }", "title": "" }, { "docid": "04d0cb7d05e902223f9adf65f126c667", "score": "0.5478201", "text": "public function __construct($code)\n {\n $this->code = $code;\n }", "title": "" }, { "docid": "04d0cb7d05e902223f9adf65f126c667", "score": "0.5478201", "text": "public function __construct($code)\n {\n $this->code = $code;\n }", "title": "" }, { "docid": "5f707c3bf91bc21fdfa9639ec7fd686a", "score": "0.54764736", "text": "public function testSetCodeCritere1() {\n\n $obj = new ChantiersDescriptifLocaux();\n\n $obj->setCodeCritere1(\"codeCritere1\");\n $this->assertEquals(\"codeCritere1\", $obj->getCodeCritere1());\n }", "title": "" }, { "docid": "4f197886d16036695b2f6d9534eda9a3", "score": "0.54694927", "text": "public function setTwoFactorCode(): void\n {\n $this->twoFactorToken = '';\n for ($i = 0; $i < 6; ++$i) {\n $this->twoFactorToken .= random_int(0, 9);\n }\n }", "title": "" }, { "docid": "731067794264e5da5d98769bd3c854be", "score": "0.54618347", "text": "public function getCodeChantier(): ?string {\n return $this->codeChantier;\n }", "title": "" }, { "docid": "731067794264e5da5d98769bd3c854be", "score": "0.54618347", "text": "public function getCodeChantier(): ?string {\n return $this->codeChantier;\n }", "title": "" }, { "docid": "731067794264e5da5d98769bd3c854be", "score": "0.54618347", "text": "public function getCodeChantier(): ?string {\n return $this->codeChantier;\n }", "title": "" }, { "docid": "ca2d536941dcb21a1183036238a13773", "score": "0.5460132", "text": "public function testSetCodeAction() {\n\n $obj = new ActionsCoInvites();\n\n $obj->setCodeAction(\"codeAction\");\n $this->assertEquals(\"codeAction\", $obj->getCodeAction());\n }", "title": "" }, { "docid": "fdeaa4b53d4fc0b64cb67d8844c613d9", "score": "0.5459246", "text": "public function __construct($code)\n {\n $this->setCode($code);\n }", "title": "" }, { "docid": "b7d7d8930b57ec7f18e3cff86b318c41", "score": "0.5451176", "text": "public function setCode( string $code ) : \\Aimeos\\MShop\\Slider\\Item\\Iface;", "title": "" }, { "docid": "68252674a3a16d46dfd1aebee33131f0", "score": "0.54482895", "text": "protected function __construct($code)\n {\n $this->code = $code;\n }", "title": "" }, { "docid": "cc26875f7952f97c14e31da60e19dfb6", "score": "0.54249144", "text": "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "title": "" }, { "docid": "cc26875f7952f97c14e31da60e19dfb6", "score": "0.54249144", "text": "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "title": "" }, { "docid": "cc26875f7952f97c14e31da60e19dfb6", "score": "0.54249144", "text": "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "title": "" }, { "docid": "cc26875f7952f97c14e31da60e19dfb6", "score": "0.54249144", "text": "public function setCode($code)\n {\n $this->code = $code;\n\n return $this;\n }", "title": "" }, { "docid": "8751ee63e103a7a5cbef415becd1870e", "score": "0.54019266", "text": "public function setCentralDefenderBehaviour($code)\n\t{\n\t\t$this->centralDefenderBehaviour = $code;\n\t}", "title": "" }, { "docid": "3ac720119682f87b841e45ddf4e60f54", "score": "0.5395052", "text": "public function testCode(): void\n {\n $actual = $expected = 'code';\n\n self::assertSame($this->settings, $this->settings->setCode($actual));\n self::assertSame($expected, $this->settings->getCode());\n self::assertSame('settings.code', $this->settings->getLabel());\n }", "title": "" }, { "docid": "034d87c5929bb02089fca9482cc271b8", "score": "0.5388674", "text": "public function setCodeName($value)\n {\n\n if ('' === $this->codeName) {\n $this->codeName = $value;\n }\n }", "title": "" }, { "docid": "90bf5f14666c638ebfa195a454b39a20", "score": "0.53875047", "text": "public function __construct(string $code) {\n $this->code = $code;\n }", "title": "" }, { "docid": "5cc8afb79a520b71be4e4435481ff455", "score": "0.5362693", "text": "public function setCode($code, $username = NULL) {\n $this->code = $code;\n return $this;\n }", "title": "" }, { "docid": "3facd79ec3355cadae25c54cdf813041", "score": "0.5358546", "text": "public function testSetCodeAffaire() {\n\n $obj = new ChantiersDescriptifLocaux();\n\n $obj->setCodeAffaire(\"codeAffaire\");\n $this->assertEquals(\"codeAffaire\", $obj->getCodeAffaire());\n }", "title": "" }, { "docid": "f466662e3d15bf9be3db78700f9c98fb", "score": "0.535461", "text": "public function setHtmlCode($Code) {\n\t\t$this->HtmlCode = $Code;\n\t}", "title": "" }, { "docid": "6481920bfe3cdeb7281e88dec4ce34d2", "score": "0.5353933", "text": "public function testSetCodeClient() {\n\n $obj = new ChantiersDescriptifLocaux();\n\n $obj->setCodeClient(\"codeClient\");\n $this->assertEquals(\"codeClient\", $obj->getCodeClient());\n }", "title": "" }, { "docid": "7ea5eb42c693d259f799d9a3c4dbddbb", "score": "0.5351064", "text": "public function setCode($code)\n\t{\n\t\t$column = self::COL_CODE;\n\t\t$this->$column = $code;\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "5c1add6c7982a04dbced04fd6687e44d", "score": "0.5350154", "text": "public function leiCode($value)\n {\n $this->setProperty('leiCode', $value);\n return $this;\n }", "title": "" }, { "docid": "c0dde4462423d204ae3ddbcace22725c", "score": "0.53365004", "text": "public function f_Ch($code)\n {\n return chr($code);\n }", "title": "" }, { "docid": "cdec428b9845938cb23fb4dc1a60627b", "score": "0.53315353", "text": "public function codeValue($value)\n {\n $this->setProperty('codeValue', $value);\n return $this;\n }", "title": "" }, { "docid": "8cf2c42a5ed9bfb93b078b4cd060f7c4", "score": "0.531844", "text": "public function testSetCodeBarre() {\n\n $obj = new Etiquettes();\n\n $obj->setCodeBarre(\"codeBarre\");\n $this->assertEquals(\"codeBarre\", $obj->getCodeBarre());\n }", "title": "" }, { "docid": "b804933877014a32a84f5e538b6577a5", "score": "0.5283264", "text": "public function setCode($v)\n\t{\n\r\n\t\t// Since the native PHP type for this column is string,\r\n\t\t// we will cast the input to a string (if it is not).\r\n\t\tif ($v !== null && !is_string($v)) {\r\n\t\t\t$v = (string) $v; \r\n\t\t}\r\n\n\t\tif ($this->code !== $v) {\n\t\t\t$this->code = $v;\n\t\t\t$this->modifiedColumns[] = ProductPeer::CODE;\n\t\t}\n\n\t}", "title": "" }, { "docid": "87a93ea98ce4731b4a02f2fd5bc3622a", "score": "0.52798903", "text": "public function testSetCodeClient() {\n\n $obj = new CriteresLibres();\n\n $obj->setCodeClient(\"codeClient\");\n $this->assertEquals(\"codeClient\", $obj->getCodeClient());\n }", "title": "" }, { "docid": "fb90fbf361da5d9df753047248e0fb8b", "score": "0.5277186", "text": "public function setCode( $code )\n\t{\n\t\tif( (string) $code !== $this->getCode() )\n\t\t{\n\t\t\t$this->values['order.base.coupon.code'] = (string) $this->checkCode( $code );;\n\t\t\t$this->setModified();\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "2d9e170012e3a3aa2c1089ab8bc63c13", "score": "0.5277062", "text": "public function setCode(array $code)\n {\n $this->code = $code;\n return $this;\n }", "title": "" }, { "docid": "cd17fff4b82b21fe975b10f0bc77f242", "score": "0.52732474", "text": "public function setCode($code = null)\n {\n // validation for constraint: string\n if (!is_null($code) && !is_string($code)) {\n throw new \\InvalidArgumentException(sprintf('Invalid value, please provide a string, \"%s\" given', gettype($code)), __LINE__);\n }\n if (is_null($code) || (is_array($code) && empty($code))) {\n unset($this->Code);\n } else {\n $this->Code = $code;\n }\n return $this;\n }", "title": "" }, { "docid": "148fd73a220321ab39a2a1adf8e68442", "score": "0.52677053", "text": "public function setTypeCode(?string $typeCode): self\n {\n $this->initialized['typeCode'] = true;\n $this->typeCode = $typeCode;\n\n return $this;\n }", "title": "" }, { "docid": "148fd73a220321ab39a2a1adf8e68442", "score": "0.52677053", "text": "public function setTypeCode(?string $typeCode): self\n {\n $this->initialized['typeCode'] = true;\n $this->typeCode = $typeCode;\n\n return $this;\n }", "title": "" }, { "docid": "03adf52dfebac823894a2ef62b1c9b61", "score": "0.52505934", "text": "public function code($code = null)\n {\n if ($code === null) {\n return $this->code;\n }\n\n $this->code = $code;\n\n return $this;\n }", "title": "" } ]
5058a2795f6a6bef619c388d0b5a6c38
This callback function is triggered at the very beginning of the dispatch process and allows us to register additional events on the fly.
[ { "docid": "bef7a95099abfbb7bfac7cbe59035121", "score": "0.5757736", "text": "public function onStartDispatch(Enlight_Event_EventArgs $args)\n {\n $path = $this->Path();\n\n $shop = $args->getShop();\n $config = $this->collection->getConfig($this->name, $shop);\n\n $subscribers = [\n new ControllerPath($path),\n new Resources($config),\n new Stock(),\n new Ordering()\n ];\n\n /** @var $subject \\Enlight_Controller_Action */\n $subject = $args->get('subject');\n $request = $subject->Request();\n\n if ($request->getModuleName() === 'backend') {\n $subscribers[] = new Backend($path);\n }\n\n foreach ($subscribers as $subscriber) {\n $this->Application()->Events()->addSubscriber($subscriber);\n }\n }", "title": "" } ]
[ { "docid": "af2004e3d6389932a13c4a57a9436b0e", "score": "0.7172139", "text": "private function dispatchEvents()\n {\n if (!$this->dispatcher->isDispatching()) {\n $this->dispatchListeners();\n }\n }", "title": "" }, { "docid": "a31a06bbeb42fdad1cd39bc15fb3c0d3", "score": "0.70552844", "text": "public function onDispatch()\n {\n }", "title": "" }, { "docid": "5c1980995c06c04e3f9d47de1abb32ab", "score": "0.6875682", "text": "private function createEvents()\n {\n $this->subscribeEvent('Enlight_Controller_Front_DispatchLoopStartup', 'onStartDispatch');\n }", "title": "" }, { "docid": "fa4646979e2e05046590cf3810e3fecd", "score": "0.67848426", "text": "protected function event()\n {\n if ($this->events) {\n call_user_func_array(\n [$this->events, 'dispatch'],\n func_get_args()\n );\n }\n }", "title": "" }, { "docid": "583172cb03cccdc4584410670ea50d23", "score": "0.677415", "text": "function event_initiated()\n{\n\n}", "title": "" }, { "docid": "481adb3d92188771808e250ab73bc666", "score": "0.671759", "text": "public function registerEvents();", "title": "" }, { "docid": "3c5600b900297f6cd9fd3efa22c99d4a", "score": "0.6491916", "text": "protected function preDispatch()\n {\n }", "title": "" }, { "docid": "8df30cc23dc798dbd9a604596f47ab48", "score": "0.64437973", "text": "public function forwardedEvents();", "title": "" }, { "docid": "699b414797fe5d1be5f9e111b63b8819", "score": "0.63921607", "text": "public function preDispatch(){\t\t\t\t\t\n\t\t\tparent::preDispatch();\t\n\t\t\t\n\t\t}", "title": "" }, { "docid": "5facc46ff6a3d9523db2849b22074072", "score": "0.6390743", "text": "public function registerEvents()\n {\n }", "title": "" }, { "docid": "a87f4ded59f3ead1bd34dcc5090e8a1d", "score": "0.63775057", "text": "protected function preDispatch()\n {\n }", "title": "" }, { "docid": "26bc7dcdbd53195908c2c9f4a9d6869e", "score": "0.6313072", "text": "public function onStartDispatch(Enlight_Event_EventArgs $args)\n {\n $this->registerMyComponents();\n \n $subscribers = array(\n new \\Shopware\\SitionSooqr\\Subscriber\\Frontend()\n );\n\n foreach ($subscribers as $subscriber) {\n $this->Application()->Events()->addSubscriber($subscriber);\n }\n }", "title": "" }, { "docid": "cf1ac4505db09058bbd0e930fd9cc1b2", "score": "0.6294909", "text": "public function getEventDispatch();", "title": "" }, { "docid": "ae8a6e11a6d61e620a994a56efc14fca", "score": "0.6276267", "text": "protected function _postDispatch()\n {\n // Not yet implemented\n }", "title": "" }, { "docid": "8d20f49e9fb7d4c33f4bc196def9f32c", "score": "0.6232987", "text": "public function init()\n {\n if (!$this->Collection()) {\n return;\n }\n $event = new Enlight_Event_Handler_Default(\n 'Enlight_Controller_Front_DispatchLoopStartup',\n array($this, 'onDispatchLoopStartup'),\n 400\n );\n $this->Application()->Events()->registerListener($event);\n $event = new Enlight_Event_Handler_Default(\n 'Enlight_Controller_Action_PostDispatch',\n array($this, 'onPostDispatch'),\n 400\n );\n $this->Application()->Events()->registerListener($event);\n $event = new Enlight_Event_Handler_Default(\n 'Enlight_Controller_Action_PreDispatch',\n array($this, 'onPreDispatch'),\n 400\n );\n $this->Application()->Events()->registerListener($event);\n $event = new Enlight_Event_Handler_Default(\n 'Enlight_Controller_Action_Init',\n array($this, 'onActionInit'),\n 400\n );\n $this->Application()->Events()->registerListener($event);\n }", "title": "" }, { "docid": "6ef8925a9e90deb90ce4a4c26e768397", "score": "0.61906284", "text": "protected function __initEvents()\n {\n $this->_events = [];\n }", "title": "" }, { "docid": "f435903de2095f382b66e0c3a2a767ee", "score": "0.61010915", "text": "public function setEventDispatch(\\Montage\\Event\\Dispatch $dispatch){ $this->dispatch = $dispatch; }", "title": "" }, { "docid": "50128ab12cffd3c7ccf9b8ad3913cf71", "score": "0.60683864", "text": "public function loadPreDispatchingHook() {\n // Debug : echo 'predispatchinghook';\n }", "title": "" }, { "docid": "f5483524af354103eca93cbf13150a40", "score": "0.60579634", "text": "public function postDispatch()\n {\n parent::postDispatch();\n }", "title": "" }, { "docid": "f7e2821797452783562730b0e731205c", "score": "0.60451484", "text": "function onAfterInitialise() {\r\n \r\n $app = &JFactory::getApplication('administrator');\r\n \r\n $triggers = $GLOBALS['JWFGlobals']['Triggers'];\r\n \r\n $registeredEvents = array();\r\n \r\n foreach($triggers as $t) {\r\n \r\n list($name,$component,$category) = explode('-', $t);\r\n \r\n if( in_array($name,$registeredEvents))continue;\r\n \r\n $registeredEvents[] = $name;\r\n \r\n $app->registerEvent( $name, 'plgJWFGlobalHandler' );\r\n \r\n }\r\n \r\n }", "title": "" }, { "docid": "9e943bdfb64d3be296f8743bd9491775", "score": "0.60381335", "text": "public function subscribeEvents()\n\t\t{\n\t\t}", "title": "" }, { "docid": "aecaec791a23f96d677275a73404864d", "score": "0.60246783", "text": "protected function postDispatch()\n {\n }", "title": "" }, { "docid": "270cd1883fea665c9cf75141c5a6cb3b", "score": "0.6003094", "text": "protected function _setupEvents() {\n\t\t$this->_checkForNoActiveConnectionsEvent();\n\t}", "title": "" }, { "docid": "988414ad17dc8d198ae8cc67b4dcd49c", "score": "0.59978914", "text": "abstract protected function register_hook_callbacks();", "title": "" }, { "docid": "b16db2120f423af3f41196ccd870118e", "score": "0.5996558", "text": "private function eventsDo()\n {\n }", "title": "" }, { "docid": "f7565736f1684a9552a723f7120f777a", "score": "0.5993062", "text": "public function dispatchLoopStartup($request, $response){}", "title": "" }, { "docid": "6ba5f2d0b1b5ad8774658891ce8f25a4", "score": "0.5953446", "text": "public function registerKernelEvents() {\r\n \r\n if(!is_null(self::$route_events)){\r\n \r\n foreach(self::$events as $event){ \r\n\r\n if(count($event) == 3){\r\n $this->_addEventByKey($event[2], $event);\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "2ccf056059bea49f1012aaf1c38aa065", "score": "0.5947403", "text": "public function loadPostDispatchingHook() {\n // Debug : echo 'postdispatchinghook';\n }", "title": "" }, { "docid": "c4ecdda05e924b889ebd32416067360d", "score": "0.59473586", "text": "protected function registerMyEvents()\n\t{\n\t\t// Backend events.\n\t\t$this->subscribeEvent(\n\t\t\t'Enlight_Controller_Action_PostDispatch_Backend_Index',\n\t\t\t'onPostDispatchBackendIndex'\n\t\t);\n\t\t$this->subscribeEvent(\n\t\t\t'Enlight_Controller_Dispatcher_ControllerPath_Backend_NostoTagging',\n\t\t\t'onControllerPathBackend'\n\t\t);\n\t\t$this->subscribeEvent(\n\t\t\t'Shopware\\Models\\Article\\Article::postPersist',\n\t\t\t'onPostPersistArticle'\n\t\t);\n\t\t$this->subscribeEvent(\n\t\t\t'Shopware\\Models\\Article\\Article::postUpdate',\n\t\t\t'onPostUpdateArticle'\n\t\t);\n\t\t$this->subscribeEvent(\n\t\t\t'Shopware\\Models\\Article\\Article::postRemove',\n\t\t\t'onPostRemoveArticle'\n\t\t);\n\t\t$this->subscribeEvent(\n\t\t\t'Shopware\\Models\\Order\\Order::postUpdate',\n\t\t\t'onPostUpdateOrder'\n\t\t);\n\t\t// Frontend events.\n\t\t$this->subscribeEvent(\n\t\t\t'Enlight_Controller_Dispatcher_ControllerPath_Frontend_NostoTagging',\n\t\t\t'onControllerPathFrontend'\n\t\t);\n\t\t$this->subscribeEvent(\n\t\t\t'Enlight_Controller_Action_PostDispatch',\n\t\t\t'onPostDispatchFrontend'\n\t\t);\n\t\t$this->subscribeEvent(\n\t\t\t'Enlight_Controller_Action_PostDispatch_Frontend_Index',\n\t\t\t'onPostDispatchFrontendIndex'\n\t\t);\n\t\t$this->subscribeEvent(\n\t\t\t'Enlight_Controller_Action_PostDispatch_Frontend_Detail',\n\t\t\t'onPostDispatchFrontendDetail'\n\t\t);\n\t\t$this->subscribeEvent(\n\t\t\t'Enlight_Controller_Action_PostDispatch_Frontend_Listing',\n\t\t\t'onPostDispatchFrontendListing'\n\t\t);\n\t\t$this->subscribeEvent(\n\t\t\t'Enlight_Controller_Action_PostDispatch_Frontend_Checkout',\n\t\t\t'onPostDispatchFrontendCheckout'\n\t\t);\n\t\t$this->subscribeEvent(\n\t\t\t'Enlight_Controller_Action_PostDispatch_Frontend_Search',\n\t\t\t'onPostDispatchFrontendSearch'\n\t\t);\n\t\t$this->subscribeEvent(\n\t\t\t'sOrder::sSaveOrder::after',\n\t\t\t'onOrderSSaveOrderAfter'\n\t\t);\n\t\t$this->subscribeEvent(\n\t\t\t'Enlight_Controller_Action_Frontend_Error_GenericError',\n\t\t\t'onFrontEndErrorGenericError'\n\t\t);\n\t}", "title": "" }, { "docid": "3162bd07f1a1f862d1d0958f9c30605c", "score": "0.5942666", "text": "private function initListeners()\r\n {\r\n $this->eventDispatcher->registerByConfig($this->config, $this->runId);\r\n }", "title": "" }, { "docid": "297236beee501f7a7d2e2b4e2dda97b0", "score": "0.59354997", "text": "private function initEventHandlers()\n {\n //init global event handlers\n craft()->on('i18n.onAddLocale', array(craft()->commerce_productTypes, 'addLocaleHandler'));\n\n if (!craft()->isConsole()) {\n craft()->on('users.onSaveUser', array(craft()->commerce_customers, 'saveUserHandler'));\n craft()->on('userSession.onLogin', array(craft()->commerce_customers, 'loginHandler'));\n craft()->on('userSession.onLogout', array(craft()->commerce_customers, 'logoutHandler'));\n }\n }", "title": "" }, { "docid": "617e3f86dca3f0ddbe74933641436abc", "score": "0.59326935", "text": "public function dispatchEvent(BaseEvent $event);", "title": "" }, { "docid": "c9bc325b35db419e0e30df586a51a5a0", "score": "0.59295356", "text": "public function dispatch(){}", "title": "" }, { "docid": "a62ea13c7b67b0237a61a922b91c96a0", "score": "0.59282255", "text": "public function __construct() {\r\n\t\tparent::__construct ( 'dispatch' );\r\n\t}", "title": "" }, { "docid": "954185d012b6c7d8b46b8f9502ad303e", "score": "0.59271985", "text": "public function process(){\r\n \r\n if(!is_null(self::$route_events)){\r\n foreach(self::$events as $eventid => $listener){ \r\n self::add($eventid, $listener[0], $listener[1]);\r\n }\r\n }\r\n return self::$dispatch;\r\n }", "title": "" }, { "docid": "d784dffbd3bc0ba7ae3dd2bf42884179", "score": "0.5897283", "text": "public function on_init_own()\n {\n // Set up action hooks\n $this->set_up_action_hooks();\n }", "title": "" }, { "docid": "834b007b6692b9b35a247f46e4055906", "score": "0.58892053", "text": "public function attachEvents()\n {\n $actions = $this->getAll();\n\n foreach ($actions as $action) {\n $listener = $this->load($action['action_name'], $action['project_id'], $action['event_name']);\n\n foreach ($action['params'] as $param) {\n $listener->setParam($param['name'], $param['value']);\n }\n\n $this->container['dispatcher']->addListener($action['event_name'], array($listener, 'execute'));\n }\n }", "title": "" }, { "docid": "25284f870d4d36fb07a6214c16637951", "score": "0.588828", "text": "protected function ensure_events_registered () {\n\t\tif (!$this->callbacks_cache) {\n\t\t\t$this->register_events();\n\t\t\t$this->callbacks_cache = $this->callbacks;\n\t\t} elseif (!$this->callbacks) {\n\t\t\t$this->callbacks = $this->callbacks_cache;\n\t\t}\n\t}", "title": "" }, { "docid": "d95ad8fdede5b1e70ac46843e5e4af70", "score": "0.58700776", "text": "public function dispatch();", "title": "" }, { "docid": "d95ad8fdede5b1e70ac46843e5e4af70", "score": "0.58700776", "text": "public function dispatch();", "title": "" }, { "docid": "348b55630a875f0892a0355267517ab5", "score": "0.5858399", "text": "public function notifyPreDispatch()\n {\n foreach ($this as $helper) {\n $helper->preDispatch();\n }\n }", "title": "" }, { "docid": "7cb763ba1b66f519a228288af7fc0290", "score": "0.5854763", "text": "public function dispatchLoopStartup(Zend_Controller_Request_Abstract $request)\n {\n }", "title": "" }, { "docid": "1202aff363870f8d5a1ba82049e03f17", "score": "0.58503526", "text": "public function listenToEarlyEvents()\n {\n $this->timeline->event('Total execution time')->begin();\n $this->timeline->event('Application booting')->begin();\n\n $this->container['flarum']->booted(function () {\n $this->timeline->event('Application booting')->end();\n $this->timeline->event('Application running')->color('green')->begin();\n });\n\n $this->count = [];\n\n $this->container['events']->listen('*', function ($event) {\n $str = is_string($event) ? $event : get_class($event);\n $this->count[$str] = Arr::get($this->count, $str) ?? 0;\n $this->count[$str]++;\n });\n\n AbstractSerializeController::addSerializationPreparationCallback(AbstractSerializeController::class, function () {\n $this->timeline->event('Controller logic')->end();\n $this->timeline->event('Data serialization')->color('purple')->begin();\n });\n }", "title": "" }, { "docid": "0642dfd322af5aed245a9fa0c522a713", "score": "0.5841505", "text": "public function preDispatch(Zend_Controller_Request_Abstract $request) {\n\t\t$this->_callPlugins(self::PREDISPATCH_METHOD);\n\t}", "title": "" }, { "docid": "064a0958e169cdc77fa674dd903e125a", "score": "0.5834061", "text": "public function connectEvents()\n {\n $this->dispatcher->connect('admin.save_object', array('uvmcSolrEventListener', 'listenToAdminSaveObject'));\n $this->dispatcher->connect('admin.delete_object', array('uvmcSolrEventListener', 'listenToAdminDeleteObject'));\n $this->dispatcher->connect('uvmc_solr.search', array('uvmcSolrEventListener', 'listenToSearch'));\n $this->dispatcher->connect('uvmc_solr.commit', array('uvmcSolrEventListener', 'listenToCommit'));\n $this->dispatcher->connect('uvmc_solr.add_document', array('uvmcSolrEventListener', 'listenToAddDocument'));\n $this->dispatcher->connect('uvmc_solr.update_document', array('uvmcSolrEventListener', 'listenToAddDocument'));\n $this->dispatcher->connect('uvmc_solr.delete_document', array('uvmcSolrEventListener', 'listenToDeleteDocument'));\n $this->dispatcher->connect('uvmc_solr.add_document_to_collection', array('uvmcSolrEventListener', 'listenToAddDocumentToCollection'));\n $this->dispatcher->connect('uvmc_solr.add_collection', array('uvmcSolrEventListener', 'listenToAddCollection'));\n }", "title": "" }, { "docid": "289d0533c80fc2ed2c2d32bb3296795d", "score": "0.58131444", "text": "function __construct()\n\t{\n\t\t$this->events[\"BeforeAdd\"]=true;\n\n\n//\tonscreen events\n\n\t}", "title": "" }, { "docid": "41b85246a0edf64ae05d5d4248d96932", "score": "0.57903403", "text": "public function testDispatchPrioritized() {\n\t\t$manager = new CakeEventManager ();\n\t\t$listener = new CakeEventTestListener ();\n\t\t$manager->attach ( array (\n\t\t\t\t$listener,\n\t\t\t\t'listenerFunction' \n\t\t), 'fake.event' );\n\t\t$manager->attach ( array (\n\t\t\t\t$listener,\n\t\t\t\t'secondListenerFunction' \n\t\t), 'fake.event', array (\n\t\t\t\t'priority' => 5 \n\t\t) );\n\t\t$event = new CakeEvent ( 'fake.event' );\n\t\t$manager->dispatch ( $event );\n\t\t\n\t\t$expected = array (\n\t\t\t\t'secondListenerFunction',\n\t\t\t\t'listenerFunction' \n\t\t);\n\t\t$this->assertEquals ( $expected, $listener->callStack );\n\t}", "title": "" }, { "docid": "2ad7beeb1c8872b64726ec858228ae81", "score": "0.57766134", "text": "private function _dispatchEvent($event) : void\n {\n if (function_exists('event')) {\n event($event);\n } else {\n $this->events->dispatch($event);\n }\n }", "title": "" }, { "docid": "657e10ff64932b4b30f07fd6c2a83a50", "score": "0.57734245", "text": "public function onAfterDispatch()\n\t{\n\t\tif ($this->input->get('format', 'html') != 'html')\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tif (!function_exists('akeebaBackupOnAfterRenderToFixBrokenCloudFlareRocketLoader'))\n\t\t{\n\t\t\trequire_once __DIR__ . '/after_render.php';\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\tJFactory::getApplication()->registerEvent('onAfterRender', 'akeebaBackupOnAfterRenderToFixBrokenCloudFlareRocketLoader');\n\t\t}\n\t\tcatch (\\Exception $e)\n\t\t{\n\t\t\t// Ooops. JFactory died on us. Bye-bye!\n\t\t}\n\t}", "title": "" }, { "docid": "35edbc871cdc2163e989146c149cb66e", "score": "0.5767847", "text": "public function registerHookCallbacks(){}", "title": "" }, { "docid": "2767abcfe00e7908921455777fa42878", "score": "0.57656634", "text": "public function fireEvents()\n {\n }", "title": "" }, { "docid": "8870c61bb0be6ad338a1e75c56b5038d", "score": "0.57444185", "text": "function idies_events_hook_exec() {\r\n\tidies_order_events();\r\n}", "title": "" }, { "docid": "f1c483f8de8c465ead9817272846ab4f", "score": "0.57286835", "text": "public function register(Doku_Event_Handler $controller) {\n $controller->register_hook('ACTION_ACT_PREPROCESS', 'BEFORE', $this, '_hookdo');\n }", "title": "" }, { "docid": "62d7932b2f53e37c5455e3df8c21ff06", "score": "0.5710269", "text": "public function dispatchEvent($event = null)\n {\n self::setEvent($event);\n $this->dispatch();\n }", "title": "" }, { "docid": "398342760ea7ef6055f625c83e66529a", "score": "0.5706412", "text": "public function getEventDispatcher();", "title": "" }, { "docid": "398342760ea7ef6055f625c83e66529a", "score": "0.5706412", "text": "public function getEventDispatcher();", "title": "" }, { "docid": "1a5d21511f186997b706c9e658853f44", "score": "0.5694526", "text": "public function onRegistered() {\n\t\t$this->classes =& $this->registeredClasses;\n\t\t$this->header();\n\t\t$this->registrationForm();\n\t\t$this->footer();\n\t}", "title": "" }, { "docid": "0b8b71bcdaa59d145a92845ab08b9984", "score": "0.5689354", "text": "public function preDispatch()\n {\n if (Mage::app()->getRequest()->getActionName() == self::RECEIVE_AUTH_ACTION) {\n Mage::app()->getRequest()->setParam('action', self::RECEIVE_AUTH_ACTION);\n }\n\n $this->setFlag('', self::FLAG_NO_DISPATCH, true);\n $this->_run();\n }", "title": "" }, { "docid": "1c95ada8644b23159b2ac788ca6bc607", "score": "0.5685584", "text": "protected function _preDispatch($action)\n\t{\n\t}", "title": "" }, { "docid": "1c81210f680699e242dfe15ac99f50a3", "score": "0.5684721", "text": "public function on($event_name, $callback){}", "title": "" }, { "docid": "1c81210f680699e242dfe15ac99f50a3", "score": "0.5684721", "text": "public function on($event_name, $callback){}", "title": "" }, { "docid": "1c81210f680699e242dfe15ac99f50a3", "score": "0.5684721", "text": "public function on($event_name, $callback){}", "title": "" }, { "docid": "1c81210f680699e242dfe15ac99f50a3", "score": "0.5684721", "text": "public function on($event_name, $callback){}", "title": "" }, { "docid": "1c81210f680699e242dfe15ac99f50a3", "score": "0.5684721", "text": "public function on($event_name, $callback){}", "title": "" }, { "docid": "1c81210f680699e242dfe15ac99f50a3", "score": "0.5684721", "text": "public function on($event_name, $callback){}", "title": "" }, { "docid": "67a008435692128c1f72e52743f37a8f", "score": "0.5678708", "text": "public function register_hook_callbacks() {\n }", "title": "" }, { "docid": "e6af29a5a51b5c2daa301c01b682b197", "score": "0.56550866", "text": "public function dispatchLoopStartup(Zend_Controller_Request_Abstract $request)\n {\n //$this->_logger->log(__METHOD__ . ' End', Zend_Log::DEBUG);\n }", "title": "" }, { "docid": "628459fdfc7165ec39c5fe0417f09368", "score": "0.5651297", "text": "function pre()\r\n\t{\r\n\t\t// Capture the values which will be lost during processing.\r\n\t\t$userEmail = $this->event->get('user_email');\r\n\t\t$timestamp = $this->event->get('timestamp');\r\n\t\t$pageTitle = $this->event->get('page_title');\r\n\t\tif (!$pageTitle || $pageTitle = '(Not Set)')\r\n\t\t{\r\n\t\t\t$this->event->set('page_title', $this->event->get('page_url'));\r\n\t\t}\r\n\t\t\r\n\t\t$contentSection = $this->event->get('eco_cs');\r\n\t\t$pageType = $this->event->get('page_type');\r\n\t\tif ($contentSection && (!$pageType || $pageType == '(Not Set)'))\r\n\t\t{\r\n\t\t\t$this->event->set('page_type', 'Content');\r\n\t\t}\r\n\t\t\r\n\t\tparent::pre();\r\n\t\t\r\n\t\t// Re-include the removed values.\r\n\t\tif ($this->event->get('event_type') == 'track.action' && $this->event->get('soa_c') == 1)\r\n\t\t{\r\n\t\t\t// Core OWA filters the email address from all track.action events\r\n\t\t\t// If this is an offline click, we need to preserve the email address.\r\n\t\t\t// Add it back to the event.\r\n\t\t\t$this->event->set('user_email', $userEmail);\r\n\t\t}\r\n\t\t\r\n\t\t$this->event->set('original_timestamp', $timestamp);\r\n\t}", "title": "" }, { "docid": "50f8a26c6d00b74878b4bfdc5cb7fcb6", "score": "0.5651196", "text": "public function preDispatch()\n {\n parent::preDispatch();\n \n if (!Mage::helper('cp_reviewreminder')->isExtensionEnabled()) {\n $this->setFlag('', 'no-dispatch', true);\n $this->_redirect('noRoute');\n } \n }", "title": "" }, { "docid": "b148851abc0a9837e8fab64bf6a4e949", "score": "0.56327", "text": "public function preDispatch(Zend_Controller_Request_Abstract $request) {\n }", "title": "" }, { "docid": "fc71e0239fc7a04e99106588c8aca445", "score": "0.5622546", "text": "public function register(Doku_Event_Handler $controller) {\n\n $controller->register_hook('AJAX_CALL_UNKNOWN', 'BEFORE', $this, 'handle_ajax_call_unknown');\n\n }", "title": "" }, { "docid": "024f2c6a9cab93bdf5c06cd4a02b50c3", "score": "0.56187654", "text": "protected function initThemeEvents()\n {\n $this->setupThemeEvents();\n }", "title": "" }, { "docid": "6455643a180a3ecee073863e078e34e6", "score": "0.5606631", "text": "public function init()\n {\n parent::init();\n \n // attach the event handler to the onBeginRequest event\n Yii::app()->attachEventHandler('onBeginRequest', array($this, 'runOnBeginRequest'));\n \n // attach the event handler to the onEndRequest event\n Yii::app()->attachEventHandler('onEndRequest', array($this, 'runOnEndRequest'));\n }", "title": "" }, { "docid": "b84fdb5de37c9246d4b210975c304159", "score": "0.56043315", "text": "private static function _register_default_hooks() {\n\t\t\t\t\t\t\t\t\t\n\t\t\tself::register_callback(self::TEMPLATE_HEADER_NOTIFICATION, array(\"Template\", \"write_header_meta\"));\n\t\t\tself::register_callback(self::TEMPLATE_HEADER_NOTIFICATION, array(\"Template\", \"write_css\"));\n\t\t\tself::register_callback(self::TEMPLATE_HEADER_NOTIFICATION, array(\"Template\", \"write_js\"));\n\t\t\t\n\t\t\tself::register_callback(self::CORE_CLASSES_LOADED_NOTIFICATION, array(\"Application\", \"pre_bootstrap\"));\t\t\t\n\t\t\t\n\t\t\tself::register_callback(self::SYSTEM_SHORT_INIT_COMPLETE_NOTIFICATION, array(\"Modules\", \"init\"));\n\t\t\t\t\t\t\n\t\t\tself::register_callback(self::MODULES_POST_LOADED_NOTIFICATION, array(\"Application\", \"load_application_files\"));\n\t\t\t\n\t\t\tself::register_callback(self::APPLICATION_CORE_LOADED_NOTIFICATION, array(\"Application\", \"bootstrap\"));\n\t\t\t\n\t\t}", "title": "" }, { "docid": "aa1a35cf048ecb6543ffb46c36178f92", "score": "0.5603733", "text": "function action_announceEvent()\r\n\t{\r\n\t\t$this->auto_render = FALSE;\r\n\t\tif(strlen($_REQUEST['event']))\r\n\t\t{\r\n\t\t\tEvents::announceEvent($_REQUEST['event']);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9665ea0f5a0e62017590f2f1da112374", "score": "0.560251", "text": "function forceReloadOfEvents();", "title": "" }, { "docid": "4adc0b331c7e4b9c081aaaeb8dc0dea5", "score": "0.5600725", "text": "public function HookEvents() {\n\t\tadd_action( 'add_post_meta', array( $this, 'EventPostMetaCreated' ), 10, 3 );\n\t\tadd_action( 'update_post_meta', array( $this, 'EventPostMetaUpdating' ), 10, 3 );\n\t\tadd_action( 'updated_post_meta', array( $this, 'EventPostMetaUpdated' ), 10, 4 );\n\t\tadd_action( 'deleted_post_meta', array( $this, 'EventPostMetaDeleted' ), 10, 4 );\n\t\tadd_action( 'save_post', array( $this, 'reset_null_meta_counter' ), 10 );\n\t\tadd_action( 'add_user_meta', array( $this, 'event_user_meta_created' ), 10, 3 );\n\t\tadd_action( 'update_user_meta', array( $this, 'event_user_meta_updating' ), 10, 3 );\n\t\tadd_action( 'updated_user_meta', array( $this, 'event_user_meta_updated' ), 10, 4 );\n\t\tadd_action( 'user_register', array( $this, 'reset_null_meta_counter' ), 10 );\n\t}", "title": "" }, { "docid": "7181cd985c2114089db4e146c178656e", "score": "0.5598149", "text": "public function dispatch(AbstractEvent $event): void;", "title": "" }, { "docid": "54cbeab720aae0b6423c229ce3f31a70", "score": "0.55922914", "text": "public function dispatch($data) \n {\n\n $event = new \\Moxy\\Event($this->_name, $data);\n\n foreach($this->_listeners as $listener) {\n $listener->call($event);\n }\n\n }", "title": "" }, { "docid": "e17d685e829dd9a9a882a0c5465ad852", "score": "0.5573126", "text": "protected abstract function _trigger();", "title": "" }, { "docid": "feca6d14ad1569b4f2b2d6ed2d1219fa", "score": "0.55642086", "text": "function __construct()\r\n\t{\r\n\t\t$this->events[\"BeforeShowSearch\"]=true;\r\n\r\n\t\t$this->events[\"BeforeShowView\"]=true;\r\n\r\n\r\n\r\n\r\n//\tonscreen events\r\n\r\n\t}", "title": "" }, { "docid": "c83d9df58c94fcf0fd43d2ac7a9a20fc", "score": "0.55596757", "text": "public static function initialize() {\n\t\t$hooks = static::$_hooks;\n\t\t$class = get_called_class();\n\t\t$notifyMethod = $class .\"::notify_plugins\";\n\n\t\tforeach ($hooks as $hook) {\n\t\t\tResque_Event::listen($hook, function() use ($notifyMethod, $hook) {\n\t\t\t\t$payload = func_get_args();\n\t\t\t\tarray_unshift($payload, $hook);\n\n\t\t\t\tcall_user_func_array($notifyMethod, $payload);\n\t\t\t});\n\t\t}\n\t}", "title": "" }, { "docid": "bc7bd5a8eadbaac7f501c0ab9492fcde", "score": "0.5548702", "text": "protected function event($event)\n {\n $this->events?->dispatch($event);\n }", "title": "" }, { "docid": "5e3f5b9df514c54ec239964b9c193a01", "score": "0.553806", "text": "public static function init_handlers() {\n foreach ( self::$ajax_event_table as $ajax_event => $nopriv ) {\n add_action( 'wp_ajax_wccs_' . $ajax_event, __CLASS__ . '::' . $ajax_event );\n\n if ( $nopriv ) {\n add_action( 'wp_ajax_nopriv_wccs_' . $ajax_event, __CLASS__ . '::' . $ajax_event );\n }\n }\n }", "title": "" }, { "docid": "fa50581e42e240b4e94913ab7f0e169c", "score": "0.5536893", "text": "public function init()\n {\n parent::init();\n\n if (($this->module === null) || ($this->match === false)) {\n return;\n }\n\n $this->module->on(\n Module::EVENT_BEFORE_ACTION,\n function (ActionEvent $event) {\n $this->beforeAction($event);\n }\n );\n\n $this->module->on(\n Module::EVENT_AFTER_ACTION,\n function (ActionEvent $event) {\n $this->afterAction($event);\n }\n );\n\n $this->module->on(\n Module::EVENT_PROCESS_FILE,\n function ($event) {\n $this->onProcessFile($event);\n }\n );\n }", "title": "" }, { "docid": "624e002dadf198879f3089b104fa6f2a", "score": "0.5536835", "text": "public function setEventDispatch(Dispatch $dispatch);", "title": "" }, { "docid": "86c9735cf3663c60eb5554fa29a7ca2e", "score": "0.55361843", "text": "public function on($event_name, $callback) {}", "title": "" }, { "docid": "dfd3dbc2b21688ac4890ca4aa400f45e", "score": "0.5532802", "text": "public function __onready()\n {\n\n }", "title": "" }, { "docid": "d7d7e185738b5f8777f655068ef45050", "score": "0.5525216", "text": "public function dispatch(): void;", "title": "" }, { "docid": "154e6b2e499537bcaadab462bdab74e2", "score": "0.55243737", "text": "private function registerPressEvent()\n {\n //Do it like this so it can be hidden from userspace\n $press_event = $this->active_high ? Pin::EVENT_LEVEL_HIGH : Pin::EVENT_LEVEL_LOW;\n $this->pin->once($press_event, function () {\n $this->onPinPressEvent();\n\n //Re-add the press event after the debounce period\n $this->pin->getBoard()->getLoop()->addTimer($this->debounce_period, function () {\n $this->registerPressEvent();\n });\n });\n\n }", "title": "" }, { "docid": "54b2d97f3e45e4103088a48435bf04ea", "score": "0.55235136", "text": "public function dispatch() {\r\n\t\ttry {\r\n\t\t\t$this->setup();\r\n\t\t\t$this->run();\r\n\t\t\t$this->shutdown();\n\t\t} catch( Zend_Log_Exception $zle ) {\n\t\t\techo \"[INIT ERROR] \";\n\t\t\techo $zle->getMessage();\r\n\t\t} catch( Exception $e ) {\r\n\t\t\tif( self::$DEBUG ) {\r\n\t\t\t\tGecko_Utils::Error( $e->getMessage() . \"<br />Trace: \" . $e->getTraceAsString(), \"Uncaught Exception\", $e->getMessage() . \"\\nTrace\\n\" . $e->getTraceAsString() );\r\n\t\t\t} else {\r\n\t\t\t\tGecko_Log::getInstance()->log( $e->getMessage() . \"\\nTrace:\\n\" . $e->getTraceAsString(), Zend_Log::DEBUG );\r\n\t\t\t\tGecko_Utils::Error( \"Internal Server Error\", \"Internal Server Error\" );\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2164dc6db297e27d2578f35914d2ef4d", "score": "0.5522839", "text": "protected function beforeDispatch($event) {\n foreach ($this->managedClasses as $class => $shouldBegin) {\n if (NamedParameters::apply($shouldBegin, $event)) {\n $this->addSagaToCache($this->instantiate($class));\n }\n }\n }", "title": "" }, { "docid": "fc1797471aaac65fe31a1a26e4c0886c", "score": "0.5516481", "text": "public function dispatch()\n {\n $request = Zeed_Controller_Request::instance();\n $router = $this->getRouter();\n $router->route($request);\n \n $this->getDispatcher()->dispatch($request);\n }", "title": "" }, { "docid": "2210c29d375ff87e828298f35d4aeae7", "score": "0.5513668", "text": "public function HookEvents() {\n\t\tadd_action( 'profile_update', array( $this, 'event_user_updated' ), 10, 2 );\n\t\tadd_action( 'set_user_role', array( $this, 'event_user_role_changed' ), 10, 3 );\n\t\tadd_action( 'delete_user', array( $this, 'event_user_deleted' ) );\n\t\tadd_action( 'wpmu_delete_user', array( $this, 'event_user_deleted' ) );\n\t\tadd_action( 'edit_user_profile', array( $this, 'event_open_profile' ), 10, 1 );\n\t\tadd_action( 'grant_super_admin', array( $this, 'get_super_admins' ) );\n\t\tadd_action( 'revoke_super_admin', array( $this, 'get_super_admins' ) );\n\t\tadd_action( 'granted_super_admin', array( $this, 'event_super_access_granted' ), 10, 1 );\n\t\tadd_action( 'revoked_super_admin', array( $this, 'event_super_access_revoked' ), 10, 1 );\n\t\tadd_action( 'update_user_meta', array( $this, 'event_application_password_added' ), 10, 4 );\n\t\tadd_action( 'retrieve_password', array( $this, 'event_password_reset_link_sent' ), 10, 1 );\n\n\t}", "title": "" }, { "docid": "493c0105f152b8876b723323074a689c", "score": "0.5508272", "text": "public function HookEvents() {\n\t\tif ( current_user_can( 'edit_theme_options' ) ) {\n\t\t\tadd_action( 'admin_init', array( $this, 'EventWidgetMove' ) );\n\t\t\tadd_action( 'admin_init', array( $this, 'EventWidgetPostMove' ) );\n\t\t}\n\t\tadd_action( 'sidebar_admin_setup', array( $this, 'EventWidgetActivity' ) );\n\t}", "title": "" }, { "docid": "86e9d889a9233e60983dc9f4446f60cc", "score": "0.5494644", "text": "private function dispatch() {\n\t\tif ( empty( $this -> _path ) ) {\n\n\t\t\t// home\n\n\t\t} else {\n\n\t\t\t/**\n\t\t\t * $_pathの0番目要素を取り出す\n\t\t\t */\n\t\t\t$topPath = array_shift( $this -> _path );\n\n\t\t\tif ( 'wp-admin' === $topPath ) {\n\n\t\t\t\t/**\n\t\t\t\t * wp-admin\n\t\t\t\t */\n\t\t\t\t$this -> _is_admin = true;\n\t\t\t\t$this -> adminDispatch();\n\n\t\t\t} else if ( $topPath ) {\n\n\t\t\t\t/**\n\t\t\t\t * frontend\n\t\t\t\t */\n\t\t\t\t$this -> _ns = $topPath;\n\n\t\t\t}\n\n\t\t}\n\t\tif ( '' === $this -> _hook ) {\n\t\t\t$this -> _hook = 'wp_loaded';\n\t\t}\n\t}", "title": "" }, { "docid": "7fc7285a3c3ef6b5e88a5b00431acb4a", "score": "0.54925555", "text": "function swoole_event_defer($callback){}", "title": "" }, { "docid": "cd1d06db5f298d5b71f9153a6e8afa79", "score": "0.5488789", "text": "public function dispatch($eventName, array $context = array());", "title": "" }, { "docid": "3b6e1b52a598eb121d54d3fbe273f289", "score": "0.5487538", "text": "protected function loadEventsDispatchRoute()\n {\n $path = self::EVENTS_PATH;\n $controller = self::EVENTS_CONTROLLER_SERVICE . ':dispatchAction';\n $defaults = ['_controller' => $controller];\n $requirements = ['_method' => 'POST'];\n\n $routeName = 'event_queue.dispatch_event';\n $route = new Route($path, $defaults, $requirements);\n $this->routes->add($routeName, $route);\n }", "title": "" }, { "docid": "393d2da5afd58e1486796948af518f47", "score": "0.54836905", "text": "public function registerEventHandler()\n {\n $registry = Application::getInstance()->getDiContainer()->getEventHandlerRegistry();\n $registry->add(Event::APPLICATION_CONTROLLER_BEFORE_RUN, $this);\n $registry->add(Event::APPLICATION_CONTROLLER_FINISHED, $this);\n }", "title": "" } ]
c916c4f60f9bd9b1257032bc961e24ac
use this method to create an object $item = new Item(); $item>name='foo'; $item>create()
[ { "docid": "ce49ba7c0004bc311c7ce35d7bedc4bb", "score": "0.0", "text": "public function create() {\n\t\t$attributes = $this->attributes();\n\t\t$sql = \"INSERT INTO \" . static::$table_name . \" (\";\n\t\t$sql .= join( \", \", array_keys( $attributes ) );\n\t\t$sql .= \") VALUES (:\";\n\t\t$sql .= join( \", :\", array_keys( $attributes ) );\n\t\t$sql .= \")\";\n\t\t$this->db_object->query( $sql );\n\t\tforeach ( $attributes as $key => $value ) {\n\t\t\t$this->db_object->bind( \":{$key}\", $value );\n\t\t}\n\t\tif ( $this->db_object->execute() ) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "91f4b0612e91c78a6f3fb6311b4e1cc3", "score": "0.778477", "text": "public function createItem(){\n\n }", "title": "" }, { "docid": "44b4b2b8cdea236718ef16d6eb2a0c08", "score": "0.70617425", "text": "public function Create()\n\t{\n\t\ttry\n\t\t{\n\t\t\t\t\t\t\n\t\t\t$json = json_decode(RequestUtil::GetBody());\n\n\t\t\tif (!$json)\n\t\t\t{\n\t\t\t\tthrow new Exception('The request body does not contain valid JSON');\n\t\t\t}\n\n\t\t\t$item = new Item($this->Phreezer);\n\n\t\t\t// TODO: any fields that should not be inserted by the user should be commented out\n\r\n\t\t\t// this is an auto-increment. uncomment if updating is allowed\n\t\t\t// $item->Iditem = $this->SafeGetVal($json, 'iditem');\n\n\t\t\t$item->Holder = $this->SafeGetVal($json, 'holder');\n\t\t\t$item->Level = $this->SafeGetVal($json, 'level');\n\t\t\t$item->Institution = $this->SafeGetVal($json, 'institution');\n\t\t\t$item->Inventoryid = $this->SafeGetVal($json, 'inventoryid');\n\t\t\t$item->Uritype = $this->SafeGetVal($json, 'uritype');\n\t\t\t$item->Uri = $this->SafeGetVal($json, 'uri');\n\t\t\t$item->Keywords = $this->SafeGetVal($json, 'keywords');\n\t\t\t$item->Description = $this->SafeGetVal($json, 'description');\n\t\t\t$item->Uidtype = $this->SafeGetVal($json, 'uidtype');\n\t\t\t$item->Uid = $this->SafeGetVal($json, 'uid');\n\t\t\t$item->Class = $this->SafeGetVal($json, 'class');\n\t\t\t$item->Type = $this->SafeGetVal($json, 'type');\n\t\t\t$item->Iseletronic = $this->SafeGetVal($json, 'iseletronic');\n\t\t\t$item->Creationdate = $this->SafeGetVal($json, 'creationdate');\n\t\t\t$item->Acquisitiondate = $this->SafeGetVal($json, 'acquisitiondate');\n\t\t\t$item->Scopecontent = $this->SafeGetVal($json, 'scopecontent');\n\t\t\t$item->Originalexistence = $this->SafeGetVal($json, 'originalexistence');\n\t\t\t$item->Originallocation = $this->SafeGetVal($json, 'originallocation');\n\t\t\t$item->Repositorycode = $this->SafeGetVal($json, 'repositorycode');\n\t\t\t$item->Copyexistence = $this->SafeGetVal($json, 'copyexistence');\n\t\t\t$item->Copylocation = $this->SafeGetVal($json, 'copylocation');\n\t\t\t$item->Legalaccess = $this->SafeGetVal($json, 'legalaccess');\n\t\t\t$item->Accesscondition = $this->SafeGetVal($json, 'accesscondition');\n\t\t\t$item->Reproductionrights = $this->SafeGetVal($json, 'reproductionrights');\n\t\t\t$item->Reproductionrightsdescription = $this->SafeGetVal($json, 'reproductionrightsdescription');\n\t\t\t$item->Itemdate = $this->SafeGetVal($json, 'itemdate');\n\t\t\t$item->Publishdate = $this->SafeGetVal($json, 'publishdate');\n\t\t\t$item->Publisher = $this->SafeGetVal($json, 'publisher');\n\t\t\t$item->Itematributes = $this->SafeGetVal($json, 'itematributes');\n\t\t\t$item->Ispublic = $this->SafeGetVal($json, 'ispublic');\n\t\t\t$item->Preliminaryrule = $this->SafeGetVal($json, 'preliminaryrule');\n\t\t\t$item->Punctuation = $this->SafeGetVal($json, 'punctuation');\n\t\t\t$item->Notes = $this->SafeGetVal($json, 'notes');\n\t\t\t$item->Otherinformation = $this->SafeGetVal($json, 'otherinformation');\n\t\t\t$item->Idfather = $this->SafeGetVal($json, 'idfather');\n\t\t\t$item->Titledefault = $this->SafeGetVal($json, 'titledefault');\n\t\t\t$item->Subitem = $this->SafeGetVal($json, 'subitem');\n\t\t\t$item->Deletecomfirm = $this->SafeGetVal($json, 'deletecomfirm');\n\t\t\t$item->Typeitem = $this->SafeGetVal($json, 'typeitem');\n\t\t\t$item->Edition = $this->SafeGetVal($json, 'edition');\n\t\t\t$item->Isexposed = $this->SafeGetVal($json, 'isexposed');\n\t\t\t$item->Isoriginal = $this->SafeGetVal($json, 'isoriginal');\n\t\t\t$item->Ispart = $this->SafeGetVal($json, 'ispart');\n\t\t\t$item->Haspart = $this->SafeGetVal($json, 'haspart');\n\t\t\t$item->Ispartof = $this->SafeGetVal($json, 'ispartof');\n\t\t\t$item->Numberofcopies = $this->SafeGetVal($json, 'numberofcopies');\n\t\t\t$item->Tobepublicin = date('Y-m-d H:i:s',strtotime($this->SafeGetVal($json, 'tobepublicin')));\n\t\t\t$item->Creationdateattributed = $this->SafeGetVal($json, 'creationdateattributed');\n\t\t\t$item->Itemdateattributed = $this->SafeGetVal($json, 'itemdateattributed');\n\t\t\t$item->Publishdateattributed = $this->SafeGetVal($json, 'publishdateattributed');\n\t\t\t$item->Serachdump = $this->SafeGetVal($json, 'serachdump');\n\t\t\t$item->Itemmediadir = $this->SafeGetVal($json, 'itemmediadir');\n\n\t\t\t$item->Validate();\r\n\t\t\t$errors = $item->GetValidationErrors();\n\n\t\t\tif (count($errors) > 0)\r\n\t\t\t{\n\t\t\t\t$this->RenderErrorJSON('Please check the form for errors',$errors);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$item->Save();\n\t\t\t\t$this->RenderJSON($item, $this->JSONPCallback(), true, $this->SimpleObjectParams());\n\t\t\t}\n\n\t\t}\n\t\tcatch (Exception $ex)\n\t\t{\n\t\t\t$this->RenderExceptionJSON($ex);\n\t\t}\n\t}", "title": "" }, { "docid": "f5f874fe38c9001786952d24cd36e60b", "score": "0.7049757", "text": "public function created(Item $item)\n {\n $id = $item->id;\n $data = new Item();\n $data->id = $id;\n }", "title": "" }, { "docid": "cacaff35b11ba05084e53d99763e7a13", "score": "0.7041609", "text": "public function create(array $params): Item;", "title": "" }, { "docid": "881a6b66fe05c9fc6f5083c42c07a0ce", "score": "0.69897527", "text": "public function creating(ItemOpnameSession $item)\n {\n //\n }", "title": "" }, { "docid": "c6b83f8be253d0fe7a20be08b36c37e8", "score": "0.6952448", "text": "public function actionCreate()\n\t{\n\t\t$class = $this->getItemClassName();\n\t\t$model=new $class('create');\n\n\t\tif(isset($_POST[$class]))\n\t\t{\n\t\t\t$model->attributes=$_POST[$class];\n\t\t\t$model->item->content=$_POST[$class]['item']['content'];\n\t\t\tif($model->save())\t\n\t\t\t\t$this->afterCreate($model);\n\t\t}\n\n\t\t$this->render('/item/create',array(\n\t\t\t'model' => $model,\n\t\t));\n\t}", "title": "" }, { "docid": "ed09d0af632821cd08029e88bd4a09e2", "score": "0.6847455", "text": "public function create()\r\r\n {\r\r\n //\r\r\n }", "title": "" }, { "docid": "1a14dcfcc0f2dc817b9d1bf4924487e1", "score": "0.68358576", "text": "public function create()\n\t{\n\t //\n\t}", "title": "" }, { "docid": "1bcd4dff2c5a4d1764329a3a1f12ec4a", "score": "0.6826343", "text": "public function create()\n\t {\n\t //\n\t }", "title": "" }, { "docid": "15b816473babd22e8cac3532352faee9", "score": "0.680064", "text": "public function create ($obj) {\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "524feea734f41584a0f4db6da6ab2c56", "score": "0.6796956", "text": "public static function createObject(){\n\t\t \n\t}", "title": "" }, { "docid": "c15d006242a87f98993ac2bc3b2533ae", "score": "0.6793859", "text": "public function create()\n\t{\n\t\t //\n\t\t \n\t\t\n\t}", "title": "" }, { "docid": "633d2405dcb70eee05e5807dfab93448", "score": "0.6793228", "text": "public function create()\n\t{\n //\n\t}", "title": "" }, { "docid": "633d2405dcb70eee05e5807dfab93448", "score": "0.6793228", "text": "public function create()\n\t{\n //\n\t}", "title": "" }, { "docid": "633d2405dcb70eee05e5807dfab93448", "score": "0.6793228", "text": "public function create()\n\t{\n //\n\t}", "title": "" }, { "docid": "633d2405dcb70eee05e5807dfab93448", "score": "0.6793228", "text": "public function create()\n\t{\n //\n\t}", "title": "" }, { "docid": "b93c63e9b4f65f24d1475d4f78038758", "score": "0.67872286", "text": "public function create()\n\t{\n\t\t// \n\t}", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.6779802", "text": "public function create(){}", "title": "" }, { "docid": "c212aa53b49b0e519a301d21563d1ee1", "score": "0.6775796", "text": "function create()\n\t{\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.67741644", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" } ]
334eef14fb80a0ed46c55a9d33639882
Register the parser class.
[ { "docid": "1d8ab22c761d3cb05208fe679941208b", "score": "0.77566683", "text": "protected function registerParser()\n {\n $this->app->singleton(GistParser::class, function () { return new GistParser(); });\n $this->app->singleton(CodepenParser::class, function () { return new CodepenParser(); });\n $this->app->singleton(YouTubeParser::class, function () { return new YouTubeParser(); });\n $this->app->singleton(SoundCloudParser::class, function () { return new SoundCloudParser(); });\n $this->app->singleton(Block\\Parser\\ColorParser::class, function () { return new Block\\Parser\\ColorParser(); });\n $this->app->singleton(Inline\\Parser\\OpenColorParser::class, function () { return new Inline\\Parser\\OpenColorParser(); });\n $this->app->singleton(Inline\\Parser\\CloseColorParser::class, function () { return new Inline\\Parser\\CloseColorParser(); });\n }", "title": "" } ]
[ { "docid": "c17cd8043ecf8fd29e92016d0f299742", "score": "0.69951224", "text": "public function register()\n {\n $this->registerParser();\n }", "title": "" }, { "docid": "cc87a1cbbec1e7c52671ab92e30e6d5f", "score": "0.6926823", "text": "public function registerParser($name, $parser)\r\r\n {\r\r\n $this->instances[$name] = $parser;\r\r\n }", "title": "" }, { "docid": "6cf374a1d41ad73be709ed828c32d9f3", "score": "0.69092375", "text": "public function registerRequestParser($class)\n\t{\n\t\t$this->registerClass('RequestParser', $class);\n\t}", "title": "" }, { "docid": "a8f5db5a1c9c43ead5cb47666c3940fb", "score": "0.6703996", "text": "public function registerResponseParser($class)\n\t{\n\t\t$this->registerClass('ResponseParser', $class);\n\t}", "title": "" }, { "docid": "6a225288e408094cf6414cd7760b03dc", "score": "0.6427687", "text": "private function registerParsers()\n {\n //Register parsers\n Request::registerParser(FormUrlEncodedParser::class);\n Request::registerParser(MultipartFormDataParser::class);\n Request::registerParser(JsonParser::class);\n }", "title": "" }, { "docid": "c588586a47e885da0618633e6f849996", "score": "0.6422157", "text": "private function registerParserFactory()\n\t{\n\t\t$factory = 'Cerbero\\Affiliate\\Parsers\\XmlStringStreamerParserFactory';\n\n\t\t$this->app->bind('Cerbero\\Affiliate\\Parsers\\ParserFactoryInterface', $factory);\n\t}", "title": "" }, { "docid": "4d07854a27fe5756121251d202e76573", "score": "0.6411571", "text": "public function registerParser(InvoiceParser $parser)\n {\n $this->parsers[] = $parser;\n }", "title": "" }, { "docid": "00a2fda1fa41a6b70783f7f449885262", "score": "0.6235141", "text": "public function registerParser($mimeType, $parser)\n {\n $this->registered[$mimeType] = $parser;\n\n return $this;\n }", "title": "" }, { "docid": "48443bacb8bb8585fe7ace37df79d465", "score": "0.6038145", "text": "public static function setParser($parser) {\n\t\t$this->parser = $parser;\n }", "title": "" }, { "docid": "78057acf77862080b4761a73cd619dd7", "score": "0.5957941", "text": "public function setParser($parser)\n {\n $this->parser = $parser;\n }", "title": "" }, { "docid": "07cfd45cd8729a3af7b1b0112cf5f1fc", "score": "0.5911046", "text": "protected function registerTokenParser()\n {\n $this->app->singleton('tymon.jwt.parser', function ($app) {\n $parser = new Parser(\n $app['request'],\n [new AuthHeaders, new Cookies]\n );\n\n $app->refresh('request', $parser, 'setRequest');\n\n return $parser;\n });\n }", "title": "" }, { "docid": "e742b3d0388f2987377e8fb29dfae75e", "score": "0.57912856", "text": "public function __construct(\\Parsedown $parser)\n {\n $this->parser = $parser;\n }", "title": "" }, { "docid": "2e858d83e0c2828379f522a8a49a38c3", "score": "0.57889825", "text": "public function __construct(Parsedown $parser)\n {\n $this->parser = $parser;\n }", "title": "" }, { "docid": "b703c39ec5da40793ae27429f53b4d8a", "score": "0.57748884", "text": "public function __construct(Parser $parser)\n {\n parent::__construct();\n $this->parser = $parser;\n }", "title": "" }, { "docid": "0fcb53e1e5331272d8ee974cd397aca7", "score": "0.5773882", "text": "public function __construct(Iparser $parser)\n {\n parent::__construct();\n $this->parser = $parser;\n }", "title": "" }, { "docid": "40be572199f0067c5be1dc4c0b163d7a", "score": "0.5741619", "text": "protected function registerRequest()\n {\n $this['parser'] = function () {\n return new Parser\\Parser();\n };\n return $this;\n }", "title": "" }, { "docid": "8e90ef7572dbc81a18e78454887a8c74", "score": "0.57378733", "text": "public function __construct(Parser $parser)\n\t{\n\t\t$this->engine = $parser;\n\t}", "title": "" }, { "docid": "24de7ac728876eea63dac6b771684a1d", "score": "0.5660055", "text": "public function setParser(Parser $parser)\n {\n $this->_parser = $parser;\n }", "title": "" }, { "docid": "5d08ea387ea77bc5f026371d39ac8a9b", "score": "0.5556874", "text": "public function register()\n {\n App::bind('poparser', function()\n {\n return new \\EricLagarda\\LaravelPoParser\\ClassPoParser;\n });\n }", "title": "" }, { "docid": "47ac47d0228d11b2652abb3b40cbaad4", "score": "0.5555073", "text": "function setNewParser($flag = true)\n\t {\n\t \t$this->my_parser = $flag;\n\t }", "title": "" }, { "docid": "3067fcc8712498d5c8d8dbd1254f8aad", "score": "0.55169076", "text": "public function __construct()\n {\n $this->parse();\n }", "title": "" }, { "docid": "3067fcc8712498d5c8d8dbd1254f8aad", "score": "0.55169076", "text": "public function __construct()\n {\n $this->parse();\n }", "title": "" }, { "docid": "8a109dd5a9aa6a55e023a95f62a31337", "score": "0.5509213", "text": "public function registerParser($contentType, callable $parser)\n {\n if ($parser instanceof Closure) {\n $parser = $parser->bindTo($this);\n }\n $this->parsers[strtolower((string)$contentType)] = $parser;\n }", "title": "" }, { "docid": "cd54f4258411cf64471f89cf92619867", "score": "0.5508136", "text": "public function setParser($parser)\n {\n $this->parser = $parser;\n\n return $this;\n }", "title": "" }, { "docid": "ec2e1d2506680dc14c0f617abd264726", "score": "0.5483848", "text": "function __initParser() {\n\t\tif (empty($this->__parser)) {\n\t\t\t$this->__parser = xml_parser_create();\n\t\t\txml_set_object($this->__parser, $this);\n\t\t\txml_parser_set_option($this->__parser, XML_OPTION_CASE_FOLDING, 0);\n\t\t\txml_parser_set_option($this->__parser, XML_OPTION_SKIP_WHITE, 1);\n\t\t}\n\t}", "title": "" }, { "docid": "d768d03b6bb69a8219cef580f9d5702c", "score": "0.54394305", "text": "public function register()\n {\n AliasLoader::getInstance()->alias('DLTemplate', Parser::class);\n\n $this->app->bind('DLTemplate', function ($modx) {\n /**\n * Hack :-)\n * Don't use Parser. We need load DLTemplate alias\n */\n return \\DLTemplate::getInstance($modx);\n });\n\n $this->app->setEvolutionProperty('DLTemplate', 'tpl');\n }", "title": "" }, { "docid": "793baec9da2c58ec591d401fe65b3fd4", "score": "0.5433594", "text": "public function setParser(Apishka_Templater_Parser $parser);", "title": "" }, { "docid": "bcefeb76a012db086da40e5f57396feb", "score": "0.5425243", "text": "public function register()\n {\n /*\n * The parsers *MUST* be registered before\n * evaluating the request.\n */\n $this->registerParsers();\n\n //Register request in the container\n $this->container()->set(Request::class, Request::current());\n }", "title": "" }, { "docid": "bd585fd0cb32818142472d397f7a06d7", "score": "0.5403056", "text": "public function register()\n {\n $this->app->singleton('parsedown', function () {\n return Parsedown::instance();\n });\n }", "title": "" }, { "docid": "5dfea1b5ee92e06dd3f960d0a785cdb4", "score": "0.5374837", "text": "public function register($name, $class);", "title": "" }, { "docid": "283d6de53e4f130e5a5247149e570ebb", "score": "0.5340168", "text": "public function parser()\n {\n return $this->parser;\n }", "title": "" }, { "docid": "a104e8a188e47461d1a3fbec02281827", "score": "0.5329105", "text": "public function setValidator(Validator $validator): ParserInterface;", "title": "" }, { "docid": "45520f7021f4a88fc5bf24c83c3762b2", "score": "0.5325156", "text": "public function __construct(Engine $parser)\n {\n $this->parser = $parser;\n }", "title": "" }, { "docid": "2c6e1b653337d94ef034dcc29a69d2b3", "score": "0.5309983", "text": "public function __construct() {\n $this->registry = new Registry($this);\n $this->tokenizer = new Tokenizer($this->registry);\n }", "title": "" }, { "docid": "25eefa4f3b91565d89610803de800692", "score": "0.5297373", "text": "public function register()\n {\n $this->app->bind(PhoneParserInterface::class, function () {\n return new PhoneParser;\n });\n }", "title": "" }, { "docid": "fa88c57eab01f44aef9416a7f1528f96", "score": "0.5284326", "text": "public function addParser(FragmentParserInterface $parser)\n {\n $this->parsers[$parser->getId()] = $parser;\n }", "title": "" }, { "docid": "a375cc83b6ce12ebe9c56bf72df18d5a", "score": "0.5281039", "text": "public function addParser(ParserInterface $parser)\n {\n $this->parsers = [(string) $parser => $parser] + $this->parsers;\n\n return $this;\n }", "title": "" }, { "docid": "53ddfcdaac8f18220913e081fdeecd82", "score": "0.5273951", "text": "public function __construct(ConllExporter $parser)\n {\n $this->parser = $parser;\n }", "title": "" }, { "docid": "0fa44c9c8edad8d58b40485d8b5021b4", "score": "0.5227147", "text": "public function testCreateParser() {\n $factory = new Factory();\n $this->assertInstanceOf(Parser::class, $factory->createParser());\n }", "title": "" }, { "docid": "b18151e05c0e11cc49570b2f253d701d", "score": "0.52219206", "text": "public function __construct(TwitterParser $parser)\n {\n $this->parser = $parser;\n }", "title": "" }, { "docid": "60c99c43294fc5bfdd0e4250e6cb386b", "score": "0.5211557", "text": "function bcompiler_parse_class($class, $callback){}", "title": "" }, { "docid": "32f2526904d63798101e9394e2d2b905", "score": "0.5167848", "text": "public function register()\n {\n $this->container['giml.reader'] = new Reader;\n }", "title": "" }, { "docid": "232baebe1a159470a23b6cdf23a14321", "score": "0.5166038", "text": "public function registerTag($tag, $class) {\r\n\t\tif (substr($tag, 0, 1) == '/') {\r\n\t\t\t$tag = substr($tag, 1);\r\n\t\t} else {\r\n\t\t\t$tag = ($this->_nsPrefix ? \"{$this->_nsPrefix}:\" : '') . $tag;\r\n\t\t}\r\n\t\t$this->_tagRegistry[$tag] = $class;\r\n\t}", "title": "" }, { "docid": "4e2d249927484161477b1a81e8ea7b2c", "score": "0.5115469", "text": "public function register()\n {\n $this->registerCompiler();\n $this->registerCommand();\n }", "title": "" }, { "docid": "6a73b48b4e622b3d7dbdccae7ba710ad", "score": "0.50782305", "text": "public function build($path)\n\t{\n\t\t$parts = pathinfo($path);\n\t\t$className = '\\\\MySearchEngine\\\\' . ucfirst($parts['extension']) . 'Parser';\n\n\t\tif (class_exists($className))\n\t\t{\n\t\t\treturn new $className;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new \\Exception('Parser for \"' . $parts['extension'] . '\" type is not defined');\n\t\t}\n\t}", "title": "" }, { "docid": "bf079c79f687cfe14d04e463ab268ca8", "score": "0.50663483", "text": "public static function init() {\r\n // -- autoloader\r\n spl_autoload_register(array(\"self\", \"scanner_autoload\"));\r\n include(dirname(__FILE__).'/initialisation/function_replacements/functions.php');\r\n \r\n // -- parser\r\n self::$parser = new PHPParser_Parser(new PHPParser_Lexer);\r\n self::$printer = new PHPParser_PrettyPrinter_Zend;\r\n self::$dumper = new PHPParser_NodeDumper;\r\n \r\n $traverser = new PHPParser_NodeTraverser;\r\n $traverser->addVisitor(new NodeVisitor_FileAttributeSetter);\r\n $traverser->addVisitor(new NodeVisitor_QualifiedNameResolver);\r\n $traverser->addVisitor(new NodeVisitor_LanguageConstructFunctionRenamer());\r\n \r\n //$traverser->addVisitor(new NodeVisitor_Scope);\r\n //$traverser->addVisitor(new NodeVisitor_Include);\r\n //$traverser->addVisitor(new NodeVisitor_Function);\r\n //$traverser->addVisitor(new NodeVisitor_FuncCall);\r\n $traverser->addVisitor(new NodeVisitor_ActionChooser);\r\n //$traverser->addVisitor(new NodeVisitor_Exit);\r\n //$traverser->addVisitor(new NodeVisitor_Assignments);\r\n //$traverser->addVisitor(new NodeVisitor_ControlStructure);\r\n \r\n \r\n self::$traverser = $traverser;\r\n \r\n self::registerSubscribers();\r\n \r\n // initialise scan information\r\n ScanInfo::init();\r\n }", "title": "" }, { "docid": "270b167a7b2865952918ee8d0fbad984", "score": "0.5051289", "text": "function initiateParser(){\r\n\r\n\t\t$this->depth = 0;\r\n\t\t$this->parser = xml_parser_create();\r\n\t\txml_parser_set_option($this->parser, XML_OPTION_CASE_FOLDING,false);\r\n\t\txml_set_object($this->parser, $this);\r\n\t\txml_set_element_handler($this->parser,'openTag','closeTag');\r\n\t\txml_set_character_data_handler($this->parser,'readData');\r\n\t\r\n\t}", "title": "" }, { "docid": "b3859711b7f77bb77e172c00560f34dd", "score": "0.50400794", "text": "public static function registerTagHandlers()\n {\n static $isRegistered;\n\n if (!$isRegistered) {\n $mapping = [\n 'query' => '\\pahanini\\restdoc\\tags\\QueryTag',\n 'field' => '\\phpDocumentor\\Reflection\\DocBlock\\Tag\\ParamTag',\n 'link' => '\\phpDocumentor\\Reflection\\DocBlock\\Tag\\ParamTag',\n 'label' => '\\phpDocumentor\\Reflection\\DocBlock\\Tag',\n 'extraField' => '\\phpDocumentor\\Reflection\\DocBlock\\Tag\\ParamTag',\n 'extraLink' => '\\phpDocumentor\\Reflection\\DocBlock\\Tag\\ParamTag',\n 'ignore' => '\\phpDocumentor\\Reflection\\DocBlock\\Tag\\ParamTag',\n ];\n foreach ($mapping as $suffix => $class) {\n $tagName = Doc::TAG_PREFIX . $suffix;\n Tag::registerTagHandler($tagName, $class);\n }\n }\n }", "title": "" }, { "docid": "074e72a3d7e2dcb10983cd78f2aa5fb5", "score": "0.503027", "text": "public function getParser()\n {\n return $this->parser;\n }", "title": "" }, { "docid": "074e72a3d7e2dcb10983cd78f2aa5fb5", "score": "0.503027", "text": "public function getParser()\n {\n return $this->parser;\n }", "title": "" }, { "docid": "932caa520f9bdee596a5a39be90e7c21", "score": "0.50280374", "text": "public function register(){}", "title": "" }, { "docid": "932caa520f9bdee596a5a39be90e7c21", "score": "0.50280374", "text": "public function register(){}", "title": "" }, { "docid": "216faa3579f6975cfd1bf49c1f2d0e22", "score": "0.5021415", "text": "public function register()\n {\n foreach ($this->types as $type) {\n if (!class_exists($type)) {\n trigger_error('Missing post type class: ' . $type . '.');\n continue;\n }\n $typeInstance = with(new $type)->init();\n $this->resolvedAlias[$type] = $this->resolvedTypes[$typeInstance->id] = $typeInstance;\n }\n }", "title": "" }, { "docid": "85dace37c74ab5ddd427f108c1414ca7", "score": "0.5016221", "text": "public function register()\n\t{\n\t\t$this->registerDisplayers();\n\n\t\t$this->registerHandler();\n\t}", "title": "" }, { "docid": "56de396300e9b19333ebc6920986623e", "score": "0.50092775", "text": "public function setProcessor(ProcessorInterface $processor): ParserInterface;", "title": "" }, { "docid": "e0aea80c2c13d4e94ddc5b166b07e040", "score": "0.49794918", "text": "public static function register() : self;", "title": "" }, { "docid": "e23bc81baff82b42a8fdd61f855396ef", "score": "0.49617758", "text": "protected function registerExtractor()\n {\n $this->app->singleton('tactician.extractor', function($app) {\n return $app->make($this->config('extractor'));\n });\n }", "title": "" }, { "docid": "02a5f6d3bdc616491028c8f4433ffd7d", "score": "0.49533007", "text": "public static function _register()\n {\n self::assignElements([\n 'CallName' => [],\n 'CountsTowardAggregate' => ['type' => 'bool'],\n 'DailyHardLimit' => ['type' => 'int'],\n 'DailySoftLimit' => ['type' => 'int'],\n 'DailyUsage' => ['type' => 'int'],\n 'HourlyHardLimit' => ['type' => 'int'],\n 'HourlySoftLimit' => ['type' => 'int'],\n 'HourlyUsage' => ['type' => 'int'],\n 'Period' => ['type' => 'int'],\n 'PeriodicHardLimit' => ['type' => 'int'],\n 'PeriodicSoftLimit' => ['type' => 'int'],\n 'PeriodicUsage' => ['type' => 'int'],\n 'PeriodicStartDate' => [],\n 'ModTime' => [],\n 'RuleCurrentStatus' => ['type' => 'AccessRuleCurrentStatusCodeType', 'enum' => true, 'xmlns' => self::XMLNS],\n 'RuleStatus' => ['type' => 'AccessRuleStatusCodeType', 'enum' => true, 'xmlns' => self::XMLNS]\n ], parent::NAME);\n\n self::assignAttributes([]);\n }", "title": "" }, { "docid": "629ec9837124968dd2ed5196bbce17a3", "score": "0.49403158", "text": "public static function register() {}", "title": "" }, { "docid": "405c979a36854f0cfa44b03fdd37bed0", "score": "0.49392003", "text": "public function __construct(Parser $parser, TranslatorInterface $translator, Finder $exampleFinder)\n {\n $this->parser = $parser;\n $this->translator = $translator;\n $this->exampleFinder = $exampleFinder;\n\n parent::__construct('project:parse');\n }", "title": "" }, { "docid": "bd2750fdc162152e9c74a283143319b2", "score": "0.49155033", "text": "public function register()\n {\n $this->mergeConfigFrom(__DIR__ . '/../config/config.php', 'translations-parser');\n\n App::bind('translations-parser', function () {\n return new Parser();\n });\n\n $this->commands(TranslationsParseCommand::class);\n }", "title": "" }, { "docid": "e91463cb772f1a10419eae89eceb8d18", "score": "0.4915435", "text": "abstract function doParser();", "title": "" }, { "docid": "bd6f46a8dd2fecb3d6a9f7fd79b7d3e3", "score": "0.49030083", "text": "public function setPdfParserClass($pdfParserClass)\n {\n $this->pdfParserClass = $pdfParserClass;\n }", "title": "" }, { "docid": "95bd0bcb55056d00e0f53826e2cffd5b", "score": "0.49017966", "text": "public function register()\n {\n parent::register();\n }", "title": "" }, { "docid": "d29d53a3a2460ede7b17a5e5193d5955", "score": "0.48881066", "text": "public function register();", "title": "" }, { "docid": "d29d53a3a2460ede7b17a5e5193d5955", "score": "0.48881066", "text": "public function register();", "title": "" }, { "docid": "d29d53a3a2460ede7b17a5e5193d5955", "score": "0.48881066", "text": "public function register();", "title": "" }, { "docid": "d29d53a3a2460ede7b17a5e5193d5955", "score": "0.48881066", "text": "public function register();", "title": "" }, { "docid": "d29d53a3a2460ede7b17a5e5193d5955", "score": "0.48881066", "text": "public function register();", "title": "" }, { "docid": "d29d53a3a2460ede7b17a5e5193d5955", "score": "0.48881066", "text": "public function register();", "title": "" }, { "docid": "d29d53a3a2460ede7b17a5e5193d5955", "score": "0.48881066", "text": "public function register();", "title": "" }, { "docid": "48c0a55cb1f112dfee8a537ad21e0b04", "score": "0.48792866", "text": "protected function newParser($name)\n {\n $config = $this->getConfig($name);\n\n $parser = $this->{'new'.$name}();\n\n // Remove trailing 'extra'.\n $name = rtrim($name, 'extra');\n\n // Check if parser's configurations are set.\n if (isset($config['config'])) {\n $this->{'set'.$name.'Config'}($parser, $config['config']);\n }\n\n // Check if parser's extensions exists.\n if (! empty($config['extensions'])) {\n $this->{'add'.$name.'Extensions'}($parser, $config['extensions']);\n }\n\n // The CommonMark Converter requires an instance of CommonaMark Environment\n // which needs to be configured and extended prior to initializing which\n // is the current variable \"$parser\". After we now have to initialize\n // a CommonMark Converter with the current CommonMark Environment.\n if ($name == 'commonmark') {\n return $this->newCommonMarkConverter($parser);\n }\n\n return $parser;\n }", "title": "" }, { "docid": "48cd0fe1f93c5383ab95fc51390d1a44", "score": "0.48781246", "text": "protected function register()\n {\n }", "title": "" }, { "docid": "dfa103732a8c2f65773fc7a79ef96624", "score": "0.4875496", "text": "public static function _register()\n {\n self::assignElements([\n 'Search' => ['type' => 'SellingManagerSearchType', 'xmlns' => self::XMLNS],\n 'StoreCategoryID' => ['type' => 'int'],\n 'Filter' => ['type' => 'SellingManagerSoldListingsPropertyTypeCodeType', 'enum' => true, 'xmlns' => self::XMLNS, 'cardinality' => '0..*'],\n 'Archived' => ['type' => 'bool'],\n 'Sort' => ['type' => 'SellingManagerSoldListingsSortTypeCodeType', 'enum' => true, 'xmlns' => self::XMLNS],\n 'SortOrder' => ['type' => 'SortOrderCodeType', 'enum' => true, 'xmlns' => self::XMLNS],\n 'Pagination' => ['type' => 'PaginationType', 'xmlns' => self::XMLNS],\n 'SaleDateRange' => ['type' => 'TimeRangeType', 'xmlns' => self::XMLNS]\n ], parent::NAME);\n\n self::assignAttributes([]);\n }", "title": "" }, { "docid": "70029a6174f2bc20197fae8b9423f860", "score": "0.48735517", "text": "public function add(FmParserInterface $parser, $format = null)\n {\n if (null === $format) {\n $format = $parser->getFormat();\n }\n\n $this->parsers[$format] = $parser;\n\n return $this;\n }", "title": "" }, { "docid": "a5326499379ade00acd569db34cf598d", "score": "0.48709756", "text": "public function register() {\n\t\t$this->registerPostType();\n\t\t$this->registerTax();\n\t\t$this->registerTagTax();\n\t}", "title": "" }, { "docid": "61adcaaeaee5b678237cced0987e637b", "score": "0.48645818", "text": "function bcompiler_parse_class($class, $callback)\n{\n}", "title": "" }, { "docid": "3c09e5df2a29fa875b7b171dadc0fcb3", "score": "0.48471618", "text": "public function register()\n {\n $this->mergeConfigFrom($this->configPath(), 'graphql');\n $this->registerCommands();\n $this->registerManager();\n $this->registerTypeRegistry();\n\n $this->app->singleton(AbstractSchema::class, function ($app) {\n return $app->make(GraphQLManager::class)->schema();\n });\n\n $this->app->singleton(Processor::class, function ($app) {\n return new Processor($app->make(AbstractSchema::class));\n });\n }", "title": "" }, { "docid": "aeb50a2c58e9343495170823be8f7ab8", "score": "0.48468044", "text": "public function register() {}", "title": "" }, { "docid": "aeb50a2c58e9343495170823be8f7ab8", "score": "0.48468044", "text": "public function register() {}", "title": "" }, { "docid": "aeb50a2c58e9343495170823be8f7ab8", "score": "0.48468044", "text": "public function register() {}", "title": "" }, { "docid": "7da106c451c04d4726c3fd42ace6b2b2", "score": "0.48399138", "text": "public static function getClassParser() {\n\n\t\treturn new ClassParser(\n\t\t\tnew MethodParser(),\n\t\t\tnew PropertyParser(),\n\t\t\tnew ConstantParser(),\n\t\t\tnew ParameterParser()\n\t\t);\n\t}", "title": "" }, { "docid": "a988ae76e0b56b307298fcfc0cdfd1bb", "score": "0.4836391", "text": "public function register() { }", "title": "" }, { "docid": "0416d0f2d4fb40956827f4ea0ead8e34", "score": "0.48319355", "text": "public static function register()\n {\n spl_autoload_register(function ($className) {\n // Split the CamelCase class name by capital letters\n $fileName = $className.'.php';\n $nameParts = preg_split('/(?=[A-Z])/', $className);\n if (count($nameParts) == 2) {\n $path = ['Core'];\n } else { \n // only one an array usage in this case so we dosen't\n // worry about a pointer\n $directory = end($nameParts).'s';\n $path = [$directory]; \n }\n array_push($path, $fileName);\n $file = implode(DIRECTORY_SEPARATOR, $path);\n if (file_exists($file)) {\n require $file;\n return true;\n } else {\n header($_SERVER[\"SERVER_PROTOCOL\"].\" 404 Not Found\", true, 404);\n echo file_get_contents('404.html');\n die();\n }\n return false;\n });\n }", "title": "" }, { "docid": "45daec3d045c6544e0d9048e3095e4a1", "score": "0.48306727", "text": "public function register()\n {\n //\n $this->registerLaravay();\n $this->registerCommands();\n }", "title": "" }, { "docid": "39e3f9d9c70fa4b0628878b8f68ec08b", "score": "0.48268813", "text": "public function register()\n {\n //\n parent::register();\n }", "title": "" }, { "docid": "0871b95f132ec6a64888e9e1b7feb0c2", "score": "0.48258376", "text": "public function register()\n {\n\t $this->registerSingletonClasses();\n }", "title": "" }, { "docid": "68f564da5ed63624d1fac2cd037050ab", "score": "0.48252985", "text": "public static function _register()\n {\n self::assignElements([\n 'ValidationRules' => ['type' => 'GroupValidationRulesType', 'xmlns' => self::XMLNS],\n 'NameRecommendation' => ['type' => 'NameRecommendationType', 'xmlns' => self::XMLNS, 'cardinality' => '0..*']\n ], parent::NAME);\n\n self::assignAttributes([]);\n }", "title": "" }, { "docid": "1532c70721b9490c16a9436e3fe8b1b7", "score": "0.4810686", "text": "function SAXY_Parser_Base() {\n\t\t$this->charContainer = '';\n\t}", "title": "" }, { "docid": "aabfa3ea233b7ae268135b131d75d1f1", "score": "0.4810662", "text": "public function register()\n {\n $this->core->bind(\n PageFetcherInterface::class,\n function () {\n $http = new Client();\n return new RemoteFetcher($http);\n }\n );\n }", "title": "" }, { "docid": "2ce7838a6f537ecd55974b35c1dcf8b5", "score": "0.4806205", "text": "private static function init() {\n if (self::$tokenizers === false) {\n self::$tokenizers = array();\n $classes = self::get_tokenizer_classes();\n foreach ($classes as $class) {\n self::register_tokenizer($class, new $class());\n }\n }\n }", "title": "" }, { "docid": "457a8cc70045e38142feba046d836633", "score": "0.4804875", "text": "public function register()\n\t{\n\t\tspl_autoload_register(array($this, 'loadClass'));\n\t}", "title": "" }, { "docid": "86091e88b84f5d79106b26b83a623fc7", "score": "0.48042196", "text": "public static function register() {\n\t\tspl_autoload_register( 'Nano_Autoloader::autoLoad' );\n\t\tNano_Autoloader::registerNamespace( 'Nano', dirname(__FILE__) );\n\t}", "title": "" }, { "docid": "55cd38ab36feaa190f67273feabfa8c5", "score": "0.48019803", "text": "public function __construct(PHPParser_Lexer $lexer) {\n $this->lexer = $lexer;\n }", "title": "" }, { "docid": "b6c0a453bac865fb70b26ad953f97c7b", "score": "0.48010537", "text": "public function __construct()\n {\n parent::__construct();\n\n $this->register('php', new ArrayDumper);\n $this->register('json', new JsonDumper);\n }", "title": "" }, { "docid": "7f43a4178a1a3815bd2338ff961a2504", "score": "0.47848576", "text": "public function register()\r\n\t{\t\t\r\n\t\t//\r\n $this->registerSingletons();\r\n\t}", "title": "" }, { "docid": "4efa9f9721bb88148f8be62c5b0c117e", "score": "0.4784436", "text": "public function register()\n {\n spl_autoload_register(array($this, 'loadClass'));\n }", "title": "" }, { "docid": "4efa9f9721bb88148f8be62c5b0c117e", "score": "0.4784436", "text": "public function register()\n {\n spl_autoload_register(array($this, 'loadClass'));\n }", "title": "" }, { "docid": "4efa9f9721bb88148f8be62c5b0c117e", "score": "0.4784436", "text": "public function register()\n {\n spl_autoload_register(array($this, 'loadClass'));\n }", "title": "" }, { "docid": "4efa9f9721bb88148f8be62c5b0c117e", "score": "0.4784436", "text": "public function register()\n {\n spl_autoload_register(array($this, 'loadClass'));\n }", "title": "" } ]
0243fdc46ce712958f5a3456142a4d34
Created for parity with JLinked/SourceCoast library nullForDefault If the avatar is the default image for the social network, return null instead Prevents the default avatars from being imported
[ { "docid": "0b5fd5b8b64401489cb3502f9f1787b9", "score": "0.6644488", "text": "function getAvatarUrl($providerUserId, $nullForDefault = false, $params = null)\n {\n $avatarUrl = JFBCFactory::cache()->get('twitter.avatar.' . $providerUserId);\n if ($avatarUrl === false)\n {\n $profile = $this->fetchProfile($providerUserId, array('profile_image_url', 'default_profile_image'));\n if (!$profile->get('default_profile_image', true))\n $avatarUrl = $profile->get('profile_image_url', null);\n else\n $avatarUrl = null;\n\n JFBCFactory::cache()->store($avatarUrl, 'twitter.avatar.' . $providerUserId);\n }\n\n return $avatarUrl;\n }", "title": "" } ]
[ { "docid": "fd12620d3db62afb79f1e0e57cce00b4", "score": "0.7371735", "text": "function defaultAvatar($avatar)\n{\n if (empty($avatar)) {\n return '/no-avatar.png';\n }\n\n return $avatar;\n}", "title": "" }, { "docid": "67aaff4e807f20cd0db08aa321963fb4", "score": "0.72884834", "text": "public function getDefaultAvatar()\n {\n return asset('assets/images/avatar/user.png');\n }", "title": "" }, { "docid": "3ca0824b28928a282e7b4f533c5e3efc", "score": "0.716951", "text": "public function getAvatar()\n {\n if ($this->_avatar != null) {\n return self::AVATAR_PATH . $this->_avatar;\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "68896e0462aad02f65efc021e761ce58", "score": "0.7163233", "text": "public function getAvatarUrl(): ?string\n {\n return $this->avatar ? self::UPLOAD_PATH . $this->id . '/' . $this->avatar : null;\n }", "title": "" }, { "docid": "3a58bb18b61188ab14775f0dbe55cca4", "score": "0.71079123", "text": "function bp_groups_default_avatar( $avatar, $params ) {\n\t\tif ( isset( $params['object'] ) && 'group' === $params['object'] ) {\n\t\t\tif ( isset( $params['type'] ) && 'thumb' === $params['type'] ) {\n\t\t\t\t$file = 'cc-default-group-avatar-50.png';\n\t\t\t} else {\n\t\t\t\t$file = 'cc-default-group-avatar.png';\n\t\t\t}\n\n\t\t\t$avatar = cc_monogram_plugin_base_uri() . \"public/img/$file\";\n\t\t}\n\n\t\treturn $avatar;\n\t}", "title": "" }, { "docid": "12ce72b85f1c88fd00be205997a0114c", "score": "0.70513374", "text": "public function getAvatar()\n {\n }", "title": "" }, { "docid": "2673f1d7ef6fd96eacb1cfe47f9b7ccd", "score": "0.7033617", "text": "function get_avatar() {}", "title": "" }, { "docid": "4746a9290c1d8399c64287a925e2da98", "score": "0.702647", "text": "function avatar()\n {\n $user = sentinel()->getUser();\n if(is_null($user)) {\n return null;\n }\n\n if(! is_null($user->avatar)) {\n return $user->avatar;\n }\n\n return gravatar()->get($user->email);\n }", "title": "" }, { "docid": "2e5ec666cca93992ed974256cb81ece2", "score": "0.6972578", "text": "public function getAvatarName(){\n return $this->avatar ? $this->avatar : self::DEFAULT_AVATAR;\n }", "title": "" }, { "docid": "b48d26b29d81fba903e028ef260bdb11", "score": "0.69159234", "text": "public function getAvatarURL()\n\t{\n\t}", "title": "" }, { "docid": "021a5b4a7c28889e5b7ed2638506aa9e", "score": "0.6900775", "text": "function social_auth_wordpress_get_avatar($avatar, $id_or_email, $size, $default, $alt){\n\t$user_id = get_current_user_id();\n\t$provider = get_user_meta( $user_id, 'ha_login_provider', true );\n\t$profilePicSource = get_option('SocialAuth_WP_profile_picture_source');\n\n\tif ($user_id != 0 && !empty($provider) && !empty($profilePicSource) && $profilePicSource == \"authenticatingProvider\")\n\t{\n\t\t$profileImageUrl = get_user_meta( $user_id, 'profile_image_url', true );\n\t\tif(!empty($profileImageUrl))\n\t\t{\n\t\t\t$avatar = \"<img class='avatar avatar-64 photo' src='\".$profileImageUrl.\"' alt='\".$alt.\"' height='\".$size.\"' width='\".$size.\"' style='width:\". $size .\"px;' />\";\n\t\t}\n\t}\n\treturn $avatar;\n}", "title": "" }, { "docid": "2344641f4b1f4a001b2ee46038ecf03c", "score": "0.68494064", "text": "public function getAvatarUrl()\n {\n if ($this->getAvatar()) {\n $url = sprintf('http://assets.trailburning.com/images/profile/%s/%s', $this->getName(), $this->getAvatar());\n } elseif ($this->getAvatarFacebook()) {\n $url = $this->getAvatarFacebook();\n } elseif ($this->getAvatarGravatar()) {\n $url = $this->getAvatarGravatar();\n } elseif ($this instanceof \\TB\\Bundle\\FrontendBundle\\Entity\\BrandProfile) {\n $url = null;\n } else {\n if ($this->getGender() === User::GENDER_FEMALE) {\n $url = 'http://assets.trailburning.com/images/icons/avatars/avatar_woman.jpg';\n } else {\n $url = 'http://assets.trailburning.com/images/icons/avatars/avatar_man.jpg';\n }\n }\n \n return $url;\n }", "title": "" }, { "docid": "83c564cee6dea752238fc298dc01854e", "score": "0.682182", "text": "function ht_dms_fallback_avatar() {\n\t$fallback = HT_DMS_ROOT_URL .'ht_dms/ui/img/gus.jpg';\n\t/**\n\t * Fallback avatar for users without one set.\n\t *\n\t * @param $fallback url of fallback image.\n\t *\n\t * @since 0.0.1\n\t */\n\t$fallback = apply_filters( 'ht_dms_fallback_avatar', $fallback );\n\n\treturn $fallback;\n\n}", "title": "" }, { "docid": "398f8dd7d8226f2bf9542950e5670ffc", "score": "0.679846", "text": "public function getDefaultAvatarStatus()\n {\n return $this->defaultAvatarStatus;\n }", "title": "" }, { "docid": "e43f41b54175a76d60d25998ce5a241b", "score": "0.67899287", "text": "public function image(): ?string\n {\n $hash = md5(strtolower(trim($this->entity->email)));\n\n $default = urlencode('https://raw.githubusercontent.com/orchidsoftware/.github/main/web/avatars/gravatar.png');\n\n return \"https://www.gravatar.com/avatar/$hash?d=$default\";\n }", "title": "" }, { "docid": "2af2ad3c092fcada3dfb9590c85f10a7", "score": "0.6770137", "text": "public function getAvatar()\r\n {\r\n if ( $this->Avatar === null ) {\r\n $select = $this->_db->select();\r\n $select->from('zanby_users__avatars', '*')\r\n ->where('user_id = ?', ($this->id) ? $this->id : new Zend_Db_Expr('NULL'))\r\n ->where('bydefault = ?', 1);\r\n $res = $this->_db->fetchRow($select);\r\n $res = ($res === false)?0:$res;\r\n $this->Avatar = new Warecorp_User_Avatar($res);\r\n $this->Avatar->setByDefault(1);\r\n } \r\n return $this->Avatar;\r\n }", "title": "" }, { "docid": "2679c06f26378c8469bd82a75c38e479", "score": "0.67689747", "text": "function getAvatarUrl($providerId, $nullForDefault = true, $params = null)\n {\n $avatarUrl = JFBCFactory::cache()->get('linkedin.avatar.' . $providerId);\n if ($avatarUrl === false)\n {\n $data = $this->fetchProfile($providerId, 'picture-urls::(original)');\n $avatarUrl = $data->get('picture-urls.values.0');\n if ($avatarUrl == \"\")\n $avatarUrl = null;\n JFBCFactory::cache()->store($avatarUrl, 'linkedin.avatar.' . $providerId);\n }\n return $avatarUrl;\n }", "title": "" }, { "docid": "50c85931eab48c518d2195cea087859d", "score": "0.6755328", "text": "public function getAvatarUrl()\n {\n return !empty($this->user['avatar_url']) ? $this->user['avatar_url'] : '';\n }", "title": "" }, { "docid": "10fe4bc69ca1488f2079fad776c7c569", "score": "0.6731212", "text": "public function getAvatar() {\n return $this->avatar == 'g-avatar' ? Gravatar::src($this->email, 200) : Storage::url($this->avatar);\n }", "title": "" }, { "docid": "4b9bdfb7113533b3a138fadda39d4c05", "score": "0.6728778", "text": "public function getAvatarSource(): AvatarInterface\n {\n return $this->avatar;\n }", "title": "" }, { "docid": "ad37b5c11022adf70b6ada8ff76bc16e", "score": "0.6652918", "text": "public function getAvatar() {\n\t\tif ($this->avatar === null) {\n\t\t\tif (!$this->disableAvatar) {\n\t\t\t\tif ($this->avatarID) {\n\t\t\t\t\tif (!$this->fileHash) {\n\t\t\t\t\t\t// load storage data\n\t\t\t\t\t\tUserStorageHandler::getInstance()->loadStorage(array($this->userID));\n\t\t\t\t\t\t$data = UserStorageHandler::getInstance()->getStorage(array($this->userID), 'avatar');\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ($data[$this->userID] === null) {\n\t\t\t\t\t\t\t$this->avatar = new UserAvatar($this->avatarID);\n\t\t\t\t\t\t\tUserStorageHandler::getInstance()->update($this->userID, 'avatar', serialize($this->avatar));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t$this->avatar = unserialize($data[$this->userID]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$this->avatar = new UserAvatar(null, $this->getDecoratedObject()->data);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (MODULE_GRAVATAR && $this->enableGravatar) {\n\t\t\t\t\t$this->avatar = new Gravatar($this->userID, $this->email);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// use default avatar\n\t\t\tif ($this->avatar === null) {\n\t\t\t\t$this->avatar = new DefaultAvatar();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $this->avatar;\n\t}", "title": "" }, { "docid": "5133fd207e5d47b3040bfcbcb2845a4e", "score": "0.6634617", "text": "function avatar_reader($default = TRUE) {\n\techo get_avatar_reader($default);\n}", "title": "" }, { "docid": "fcff263b774e1d419361a6eedb65cd20", "score": "0.6619619", "text": "function rovoko_default_avatar( $avatar_defaults ) {\n\t$ef5_avatar = get_template_directory_uri() . '/assets/images/avatar.png';\n\t$avatar_defaults[$ef5_avatar] = esc_html__('EF5Frame Avatar','rovoko');\n\treturn $avatar_defaults;\n}", "title": "" }, { "docid": "8b1b63ae5c6ad98cc5deed1a6f98caf1", "score": "0.6606009", "text": "function get_avatar( $id_or_email, $size = '96', $default = '', $alt = false ) {\n\t//debug('get_avatar(\\''.$id_or_email.'\\',\\''.$size.'\\',\\''.$default.'\\',\\''.$alt.'\\')');\n\t// first try to get from Arena, if not use Homer Simpson avatar\n\t$useHomer = false;\n\tif ( is_numeric($id_or_email) ) {\n\t\t$id = (int) $id_or_email;\n\t\t$user = get_userdata($id);\n\t\tif ( $user )\n\t\t\t$email = $user->user_email;\n\t\telse \n\t\t\t$useHomer = true;\n\t} else {\n\t\t$email = $id_or_email;\n\t}\n\tif (!$useHomer) {\n\t\ttry {\n\t\t\t$xml = call_arena(\"get\", \"person/list\", array(\"email\" => $email, \"fields\" => \"BlobLink\") );\n\t\t\t$imgUrl = (string)$xml->Persons->Person[0]->BlobLink;\n\t\t\tif ($imgUrl) { ?>\n\t<img src=\"<?php echo $imgUrl; ?>\" class=\"avatar avatar-<?php echo $size; ?> photo\" alt=\"<?php echo ($alt ? $alt : \"nada\"); ?>\" />\t\t\t\n\t\t<?php\t}\n\t\t} catch (Exception $e) {\n\t\t\techo \"<!-- exception getting avatar: \".$e->getMessage().\" -->\";\n\t\t\t$useHomer = true;\n\t\t}\t\n\t}\n\tif ($useHomer) {\n?>\n\t<img src=\"http://avatar.hq-picture.com/avatars/img36/homer_simpson_avatar_picture_49656.gif\" class=\"avatar avatar-<?php echo $size; ?> photo\" alt=\"Homer\" />\n<?php\n\t} \n}", "title": "" }, { "docid": "a7833f0c7c3b139880fbdb24585c67ab", "score": "0.6578409", "text": "function my_custom_avatar( $avatar, $id_or_email, $size, $default, $alt ) {\n\t\tif ( isset( $id_or_email->comment_author_email ) ) {\n\n\n\t\t\t$user = get_user_by( 'email', $id_or_email->comment_author_email );\n\t\t\tif (empty($user->ID)) {\n\t\t\t\t$url = get_avatar_url($id_or_email->comment_author_email);\n\t\t\t\treturn \"<img alt='{$alt}' src='{$url}' class='avatar avatar-{$size} photo' height='{$size}' width='{$size}' />\";\n\t\t\t}\n\t\t\t$image = get_user_option( 'the_leader_author_profile_image', $user->ID );\n\t\t\tif (!$image) {\n\t\t\t\t$image = get_template_directory_uri() . '/assets/images/default-avatar.png';\n\t\t\t}\n\t\t\tif (!is_numeric($image)) {\n\t\t\t\t$url = $image;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$url = wp_get_attachment_url( $image );\n\t\t\t}\n\n\t\t\tif ($image) {\n\t\t\t\treturn \"<img alt='{$alt}' src='{$url}' class='avatar avatar-{$size} photo' height='{$size}' width='{$size}' />\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$url = get_avatar_url($id_or_email->comment_author_email);\n\t\t\t\t\n\t\t\t\treturn \"<img alt='{$alt}' src='{$url}' class='avatar avatar-{$size} photo' height='{$size}' width='{$size}' />\";\n\t\t\t}\n\t\t}\n\n\t\t$image = get_user_option( 'the_leader_author_profile_image', $id_or_email );\n\t\tif (!$image) {\n\t\t\t$image = get_template_directory_uri() . '/assets/images/default-avatar.png';\n\t\t}\n\t\tif (!is_numeric($image)) {\n\t\t\t\t$url = $image;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$url = wp_get_attachment_url( $image );\n\t\t\t}\n\t\treturn \"<img alt='{$alt}' src='{$url}' class='avatar avatar-{$size} photo' height='{$size}' width='{$size}' />\";\n\t}", "title": "" }, { "docid": "42e441cccdc2cda49c642ec4bc8737d1", "score": "0.65732235", "text": "public function getAvatar()\n {\n return $this->avatar;\n }", "title": "" }, { "docid": "42e441cccdc2cda49c642ec4bc8737d1", "score": "0.65732235", "text": "public function getAvatar()\n {\n return $this->avatar;\n }", "title": "" }, { "docid": "42e441cccdc2cda49c642ec4bc8737d1", "score": "0.65732235", "text": "public function getAvatar()\n {\n return $this->avatar;\n }", "title": "" }, { "docid": "42e441cccdc2cda49c642ec4bc8737d1", "score": "0.65732235", "text": "public function getAvatar()\n {\n return $this->avatar;\n }", "title": "" }, { "docid": "42e441cccdc2cda49c642ec4bc8737d1", "score": "0.65732235", "text": "public function getAvatar()\n {\n return $this->avatar;\n }", "title": "" }, { "docid": "42e441cccdc2cda49c642ec4bc8737d1", "score": "0.65732235", "text": "public function getAvatar()\n {\n return $this->avatar;\n }", "title": "" }, { "docid": "42e441cccdc2cda49c642ec4bc8737d1", "score": "0.65732235", "text": "public function getAvatar()\n {\n return $this->avatar;\n }", "title": "" }, { "docid": "42e441cccdc2cda49c642ec4bc8737d1", "score": "0.65732235", "text": "public function getAvatar()\n {\n return $this->avatar;\n }", "title": "" }, { "docid": "77f0e3e5dac28eb32f54dc690347674e", "score": "0.65662956", "text": "public function avatar()\n {\n return $this->morphOne(Media::class, 'model')->where('collection_name', 'avatar');\n }", "title": "" }, { "docid": "743d29c0b65f269488e8bbb5a2b61079", "score": "0.65569186", "text": "public function test_return_found_avatar_when_not_forcing_default() {\n\n\t\t$avatar = 'some-avatar-here';\n\n\t\t$this->assertSame( $avatar, ( new Testee() )->filter_avatar( $avatar, null, null, Testee::NAME, null, [\n\t\t\t'force_default' => false,\n\t\t\t'found_avatar' => true,\n\t\t] ) );\n\t}", "title": "" }, { "docid": "dce22f85170bebdf2af926c002044092", "score": "0.6556347", "text": "public function avatar_default() {\n\n\t\t// Get default avatar option.\n\t\t$default = get_option( 'avatar_default' );\n\t\t$fresh = get_option( 'fresh_site' );\n\n\t\t// Gravatar options to update/override.\n\t\t$gravatar = [\n\t\t\t'mystery',\n\t\t\t'mm',\n\t\t\t'blank',\n\t\t\t'gravatar_default',\n\t\t\t'identicon',\n\t\t\t'wavatar',\n\t\t\t'monsterid',\n\t\t\t'retro'\n\t\t];\n\n\t\t// Local avatars for option update.\n\t\t$mystery = esc_url( UAP_URL . 'assets/images/mystery.png' );\n\t\t$blank = esc_url( UAP_URL . 'assets/images/blank.png' );\n\n\t\t/**\n\t\t * If this is a fresh site, if no default is set, or if mystery Gravatar\n\t\t * is set then update to the local mystery person avatar.\n\t\t */\n\t\tif ( true == $fresh || ! $default || 'mystery' == $default ) {\n\t\t\tupdate_option( 'avatar_default', $mystery );\n\n\t\t// If the blank Gravatar is set then update to the local blank avatar.\n\t\t} elseif ( 'blank' == $default ) {\n\t\t\tupdate_option( 'avatar_default', $blank );\n\n\t\t// If any Gravatar is set then update to the local mystery person avatar.\n\t\t} elseif ( in_array( $default, $gravatar ) ) {\n\t\t\tupdate_option( 'avatar_default', $mystery );\n\t\t}\n\t}", "title": "" }, { "docid": "bb9ab27bd95d444f524a28615d0f7f9f", "score": "0.6555214", "text": "public function getImguse(){\n $userAvatars=$this->hasOne(UserAvatars::className(), ['uid' => 'id'])->one();\n\n\n if(!$userAvatars){\n\n $userAvatars=new UserAvatars();\n $userAvatars->avatar=ConstantsHelper::DEFAULT_USER_AVATAR_IMAGE;\n yii::error($userAvatars->avatar);\n }\n\n return $userAvatars;\n\n }", "title": "" }, { "docid": "e0816178495b2039de0de56cc0155f83", "score": "0.6550513", "text": "public function getAvatar($format=true)\n {\n // If there's no avatar tag...\n if (empty($this->avatar)) {\n // if there's a FileCabinet number listed...\n if ($this->avatar_id) {\n // Retrieve & save a new avatar tag\n $this->setAvatar((int) $this->avatar_id);\n $this->saveUser();\n } else {\n return null;\n }\n }\n if ($format) {\n return sprintf('<img src=\"%s\" />', $this->avatar);\n } else {\n return $this->avatar;\n }\n }", "title": "" }, { "docid": "69997448b9fd015e38f1f29e48bb296a", "score": "0.6547572", "text": "public function getAvatar() {\n $randomInteger = $this->id % 36 + 1;\n return 'https://s.gravatar.com/avatar/'\n .md5($this->email)\n .'?s=200'\n .'&d=https://s3.amazonaws.com/laracasts/images/forum/avatars/default-avatar-'\n .$randomInteger\n .'.png';\n }", "title": "" }, { "docid": "debf3b6ab9cf190e5dd99ab94e572c75", "score": "0.6545476", "text": "public function filter_avatar($avatar, $id_or_email, $size, $default, $alt, $return_source = false)\n {\n if( 0 === intval(PeepSo::get_option('avatars_peepso_only', 0))) {\n return $avatar;\n }\n\n // https://github.com/jomsocial/peepso/issues/735\n // http://wordpress.stackexchange.com/questions/125692/how-to-know-if-admin-is-in-edit-page-or-post\n if (function_exists('get_current_screen')) {\n $screen = get_current_screen();\n if (is_object($screen) && $screen->parent_base == 'edit') {\n return ($avatar);\n }\n }\n\n // if id_or email is an object, it's a Wordpress default, try getting an email address from it\n if (is_object($id_or_email) && property_exists($id_or_email, 'comment_author_email')) {\n\n // if the email exists\n if (strlen($id_or_email->comment_author_email) && get_user_by('email', $id_or_email->comment_author_email)){\n $id_or_email = $id_or_email->comment_author_email;\n } else {\n $id_or_email = $id_or_email->user_id;\n }\n }\n\n // numeric id\n if (is_numeric($id_or_email)) {\n $user_id = intval($id_or_email);\n } else if (is_object($id_or_email)) {\n // if it's an object then it's a wp_comments avatar; just return what's already there\n return ($avatar);\n } else {\n if ($user = get_user_by('email', $id_or_email)) {\n $user_id = $user->ID;\n } else {\n return ($avatar); // if we can't lookup by email just return what's already found\n }\n }\n\n if (intval($user_id) === 0) {\n return ($avatar);\n }\n\n $user = PeepSoUser::get_instance($user_id);\n $img = $user->get_avatar();\n if ($return_source) {\n $avatar = $img;\n } else {\n $avatar = '<img alt=\"' . esc_attr(trim(strip_tags($user->get_fullname()))) . ' avatar\" src=\"' . $img . '\" class=\"avatar avatar-' . $size . \" photo\\\" width=\\\"{$size}\\\" height=\\\"{$size}\\\" />\";\n }\n return ($avatar);\n }", "title": "" }, { "docid": "5baf7378c48a4e83df425b2572b47598", "score": "0.65382284", "text": "function nexus_gravatar_filter($avatar, $id_or_email, $size, $default, $alt) {\n\t$custom_avatar = get_the_author_meta('nexus_custom_avatar');\n\tif ($custom_avatar) \n\t\t$return = '<img src=\"'.$custom_avatar.'\" width=\"'.$size.'\" height=\"'.$size.'\" alt=\"'.$alt.'\" />';\n\telseif ($avatar) \n\t\t$return = $avatar;\n\telse \n\t\t$return = '<img src=\"'.$default.'\" width=\"'.$size.'\" height=\"'.$size.'\" alt=\"'.$alt.'\" />';\n\n\treturn $return;\n}", "title": "" }, { "docid": "654b50e3b81b50f8192827a39625efdc", "score": "0.65171856", "text": "function ef5frame_default_avatar( $avatar_defaults ) {\r\n\t$ef5_avatar = get_template_directory_uri() . '/assets/images/avatar.png';\r\n\t$avatar_defaults[$ef5_avatar] = esc_html__('EF5Frame Avatar','ef5-frame');\r\n\treturn $avatar_defaults;\r\n}", "title": "" }, { "docid": "702bca15ab56d3d7d6f32ff51440f8c9", "score": "0.650719", "text": "function buddyboss_default_group_avatar( $avatar ) {\n\tglobal $bp, $groups_template;\n\tif ( strpos( $avatar, 'group-avatars' ) ) {\n\t\treturn $avatar;\n\t} else {\n\t\t$custom_avatar\t = get_stylesheet_directory_uri() . '/images/avatar-group.jpg';\n\t\t$alt\t\t\t = 'group avatar';\n\n\t\tif ( $groups_template && !empty( $groups_template->group->name ) ) {\n\t\t\t$alt = esc_attr( $groups_template->group->name );\n\t\t}\n\n\t\t$group_id = !empty( $bp->groups->current_group->id ) ? $bp->groups->current_group->id : 0;\n\t\tif ( $bp->current_action == \"\" ) {\n\t\t\treturn '<img width=\"' . BP_AVATAR_THUMB_WIDTH . '\" height=\"' . BP_AVATAR_THUMB_HEIGHT . '\" src=\"' . $custom_avatar . '\" class=\"avatar group-' . $group_id . '-avatar\" alt=\"' . $alt . '\" />';\n\t\t} else {\n\t\t\treturn '<img width=\"' . BP_AVATAR_FULL_WIDTH . '\" height=\"' . BP_AVATAR_FULL_HEIGHT . '\" src=\"' . $custom_avatar . '\" class=\"avatar group-' . $group_id . '-avatar\" alt=\"' . $alt . '\" />';\n\t\t}\n\t}\n}", "title": "" }, { "docid": "c13237cb666a12a0a6b6d1d21ef9700c", "score": "0.65043813", "text": "public function setDefaultImage(){\n \tif (!$this->image){\n \t\t$mediaRepository = $this->getDoctrine()\n \t\t->getRepository('ApplicationSonataMediaBundle:Media');\n \t\t$this->image = $mediaRepository->findOneByName('default-user-image');\n \t}\n }", "title": "" }, { "docid": "12126d155c56c1356b3f3d789007d22a", "score": "0.6501687", "text": "protected function defaultProfilePhotoUrl()\n {\n return 'https://ui-avatars.com/api/?name='.urlencode($this->first_name.' '.$this->last_name).'&color=7F9CF5&background=EBF4FF';\n }", "title": "" }, { "docid": "8ddd25185e31e0e97d5343f9bbbbe356", "score": "0.6501264", "text": "private function _getSocialFallback ()\n\t{\n\t\t$image = null;\n\n\t\t$assets = \\Craft::$app->assets;\n\n\t\t$fieldFallback = $this->_fieldSettings['socialImage'];\n\n\t\tif (!empty($fieldFallback))\n\t\t\t$image = $assets->getAssetById((int)$fieldFallback[0]);\n\n\t\telse {\n\t\t\t$seoFallback = $this->_seoSettings['socialImage'];\n\n\t\t\tif (!empty($seoFallback))\n\t\t\t\t$image = $assets->getAssetById((int)$seoFallback[0]);\n\t\t}\n\n\t\treturn [\n\t\t\t'title' => $this->title,\n\t\t\t'description' => $this->description,\n\t\t\t'image' => $image,\n\t\t];\n\t}", "title": "" }, { "docid": "6f5df9ec919ecfab4661a1e45ab3baa5", "score": "0.64960545", "text": "public function getImageUrl() \n {\n // return a default image placeholder if your source avatar is not found\n $avatar = isset($this->ArchivoAdjunto) ? $this->ArchivoAdjunto : 'default_user.jpg';\n return Yii::$app->params['uploadUrl'] . $avatar;\n }", "title": "" }, { "docid": "1d3bf0151f4d15e7bef3a01ab9ee3bda", "score": "0.64931405", "text": "function get_avatar() {\n\t\tif ( $this->user_id > 0 ) {\n\t\t\t$avatar\t= bp_core_fetch_avatar( $args = array (\n\t\t\t\t'item_id' \t\t=> $this->user_id,\n\t\t\t\t'type'\t\t\t=> $this->type,\n\t\t\t\t'height'\t\t=> $this->size,\n\t\t\t\t'width'\t\t\t=> $this->size,\n\t\t\t\t'no_grav'\t\t=> true,\n\t\t\t\t));\n\t\t\t\t\n\t\t\t// If the user has not uploaded an avatar, get the default\n\t\t\tif ( strrpos( $avatar , BP_AVATAR_DEFAULT ) || strpos( $avatar , BP_AVATAR_DEFAULT_THUMB ) ) {\n\t\t\t\t$avatar = $this->guest_avatar();\n\t\t\t}\n\t\t}\n\t\telse \n\t\t\t$avatar = $this->guest_avatar();\n\t\t\t\n\t\t// Wrap the avatar in a profile link?\n\t\tif ( true == $this->link && $this->user_id > 0 ) \n\t\t\t$avatar\t= '<a class=\"member-avatar\" href=\"' . $this->url . '\" title=\"View User Profile\">' . $avatar . '</a>';\n\t\t\n\t\t// Set the avatar to the class object\n\t\t$this->avatar = $avatar;\t\n\t}", "title": "" }, { "docid": "2f61d3fd0808141b36e8d8ccd221a9e5", "score": "0.6492983", "text": "public function defaultPhoto()\n {\n if ($this->photos()->count()) {\n return $this->photos->first()->image;\n }\n\n return '';\n }", "title": "" }, { "docid": "a0885eee349e7c677f5337e8ceb359d7", "score": "0.64915293", "text": "public function getOppoAvatar()\r\n {\r\n return $this->get(self::_OPPO_AVATAR);\r\n }", "title": "" }, { "docid": "a0885eee349e7c677f5337e8ceb359d7", "score": "0.64915293", "text": "public function getOppoAvatar()\r\n {\r\n return $this->get(self::_OPPO_AVATAR);\r\n }", "title": "" }, { "docid": "a0885eee349e7c677f5337e8ceb359d7", "score": "0.64915293", "text": "public function getOppoAvatar()\r\n {\r\n return $this->get(self::_OPPO_AVATAR);\r\n }", "title": "" }, { "docid": "78a88357f12365e7b036c94b1c0935eb", "score": "0.6488584", "text": "public function getImageUrl()\n {\n // return a default image placeholder if your source avatar is not found\n $avatar = isset($this->avatar) ? $this->avatar : 'default_user.jpg';\n return Yii::$app->params['uploadUrl'] . $avatar;\n }", "title": "" }, { "docid": "a1de1979dafd5725fa673fe1b9b7e11e", "score": "0.6482599", "text": "public function getAvatar()\n {\n return $this->avatar;\n }", "title": "" }, { "docid": "fd555aafb92efbb2c766062dc679ac72", "score": "0.6482541", "text": "public static function defaultUrl()\n {\n return url('assets/images/default-avatar.png');\n }", "title": "" }, { "docid": "aa52145c4f028f0829f7eafac13625ac", "score": "0.6455656", "text": "public function getUserPicture()\n {\n $userProfile = $this->getUserProfile();\n if (!empty($userProfile) && array_key_exists('picture', $userProfile)) {\n return $userProfile['picture'];\n }\n return null;\n }", "title": "" }, { "docid": "8b85637ede92354d46a04b2909f26b5c", "score": "0.6455277", "text": "function unamuno_gravatar_filter_all($avatar, $id_or_email, $size, $default, $alt) {\n // display unamuno_custom_avatar\n $custom_avatar = get_the_author_meta('unamuno_custom_avatar');\n if ( !is_singular( 'post' ) && ($custom_avatar)) {\n $return = '<img src=\"'.$custom_avatar.'\" width=\"'.$size.'\" height=\"'.$size.'\" alt=\"author avatar\" class=\"avatar\">';\n }\n elseif ($avatar) {\n $return = $avatar;\n }\n else {\n $return = '<img src=\"'.$default.'\" width=\"'.$size.'\" height=\"'.$size.'\" alt=\"'.$alt.'\">';\n }\n return $return;\n }", "title": "" }, { "docid": "586fd4f7d4a2e6bcc26351f45d1bf2e3", "score": "0.64497864", "text": "public function entityPicture()\r\n {\r\n return $this->getAvatar();\r\n }", "title": "" }, { "docid": "a98da9a272134a722019f52a5be9e014", "score": "0.644462", "text": "public function avatar()\n {\n return $this->morphOne(FeaturedPhoto::class, 'photoable')->withDefault();\n }", "title": "" }, { "docid": "3a3d352811e89b8afb10d10bb1d3f62e", "score": "0.64317375", "text": "function _getPlayerAvatar($steamid){\n $info = _getPlayerSummaries(_getSteamID64($steamid));\n return (\n $info == null ?\n 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/fe/fef49e7fa7e1997310d705b2a6158ff8dc1cdfeb_full.jpg':\n $info->avatarfull\n );\n}", "title": "" }, { "docid": "d2e8f33dd00eb84e126da311023c7517", "score": "0.64243984", "text": "public function getAvatar()\r\n {\r\n return $this->get(self::_AVATAR);\r\n }", "title": "" }, { "docid": "d2e8f33dd00eb84e126da311023c7517", "score": "0.64243984", "text": "public function getAvatar()\r\n {\r\n return $this->get(self::_AVATAR);\r\n }", "title": "" }, { "docid": "d2e8f33dd00eb84e126da311023c7517", "score": "0.64243984", "text": "public function getAvatar()\r\n {\r\n return $this->get(self::_AVATAR);\r\n }", "title": "" }, { "docid": "d2e8f33dd00eb84e126da311023c7517", "score": "0.64243984", "text": "public function getAvatar()\r\n {\r\n return $this->get(self::_AVATAR);\r\n }", "title": "" }, { "docid": "d2e8f33dd00eb84e126da311023c7517", "score": "0.64243984", "text": "public function getAvatar()\r\n {\r\n return $this->get(self::_AVATAR);\r\n }", "title": "" }, { "docid": "7e16b1e327f16fb2e569056a6896d777", "score": "0.6420621", "text": "public function getGroupAvatar(){\n return($this->groupAvatar);\n }", "title": "" }, { "docid": "6a89b43f308e312a26c8a6a79642dd8c", "score": "0.6419167", "text": "public function image()\n {\n $data = \\unserialize($this->entry->unfurl_data);\n\n if (!$data) {\n return false;\n }\n\n $image_url = $this->entry->image ?? $data['providers']['open_graph']['image'] ?? $data['providers']['twitter']['image:src'] ?? false;\n\n if ($image_url) {\n return new \\Podlove\\Template\\Image((new \\Podlove\\Model\\Image($image_url, $this->entry->title))->setWidth(1024));\n }\n\n return null;\n }", "title": "" }, { "docid": "b47568638872089abe38143737297103", "score": "0.6407619", "text": "function get_avatar($userID, $fulltag = FALSE) \r\n{\r\n\t$CI =& get_instance();\r\n\t$avatar = $CI->ion_auth->user($userID)->row();\r\n\r\n\tif(!$fulltag)\r\n\t{\r\n\t\tif(!empty($avatar->avatar) && file_exists('./uploads/users/'.$avatar->avatar)) return $avatar->avatar;\r\n\t\treturn 'noavatar.jpg';\r\n\t}\r\n\r\n\tif(!empty($avatar->avatar) && file_exists('./uploads/users/'.$avatar->avatar))\r\n\t{\r\n\t\treturn '<img src=\"'.base_url().'uploads/users/'.$avatar->avatar.'\" alt=\"avatar\" />';\r\n\t}\r\n\r\n\treturn '<img src=\"'.base_url().'uploads/users/noavatar.jpg\" alt=\"avatar\" />';\r\n}", "title": "" }, { "docid": "d4d9160064fe0ec9ca2317f06d1a7bd9", "score": "0.64059967", "text": "public function getAvatarURL()\n {\n switch ($this->avatar_type) {\n case \"github\":\n {\n return $this->avatar_github;\n }\n case \"upload\":\n {\n return $this->avatar_upload;\n }\n case \"gravatar\":\n default:\n {\n return \"https://www.gravatar.com/avatar/\"\n .md5(strtolower(trim($this->email)))\n .\"?d=\".urlencode(\"identicon\");\n }\n }\n }", "title": "" }, { "docid": "0eccbb8b714e2e3d9302c6e8f6b7744e", "score": "0.63942784", "text": "public function user_avatar()\n\t{\n\t\tif ( com_is_logged() ) {\n\t\t\t$u = self::$config['db_users'];\n\t\t\t$rows = $u['id'].','.$u['name'].','.$u['email'] . ( !empty($u['avatar']) ? ','.$u['avatar'] : '' );\n\t\t\t$user_id = com_get_user_id();\n\t\t\t$db = new Database();\n\t\t\tif ($db->select($u['table'], $rows, $u['id'].\" = $user_id \", null, 1)) {\n\t\t\t\t$user = $db->getResult(); $user = $user[1];\n\t\t\t\tif ( !empty($u['avatar']) )\n\t\t\t\t\treturn $user['avatar'];\n\t\t\t\telse if ( function_exists('com_get_user_avatar') )\n\t\t\t\t\treturn com_get_user_avatar( $user_id );\n\t\t\t\telse return $this->gravatar( $user['email'] );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7b53aff0e5cff71a15287501053350b4", "score": "0.6388658", "text": "public function getAvatar()\n {\n return Arr::get($this->user, 'picture');\n }", "title": "" }, { "docid": "d9de69b896aef1d3531eb5f03fdf5bb8", "score": "0.63860226", "text": "public function test_return_passed_avatar_for_wrong_default() {\n\n\t\t$avatar = 'some-avatar-here';\n\n\t\t$this->assertSame( $avatar, ( new Testee() )->filter_avatar( $avatar, null, null, null, null, [] ) );\n\t}", "title": "" }, { "docid": "86518a17f5749f40de1a56fe90961dba", "score": "0.6378713", "text": "function unamuno_gravatar_filter($avatar, $id_or_email, $size, $default, $alt) {\n // display unamuno_custom_avatar\n $custom_avatar = get_the_author_meta('unamuno_custom_avatar');\n if ( is_singular( 'post' ) && ($custom_avatar)) {\n $return = '<amp-img src=\"'.$custom_avatar.'\" width=\"'.$size.'\" height=\"'.$size.'\" alt=\"author avatar\" class=\"avatar\"></amp-img>';\n }\n elseif ($avatar) {\n $return = $avatar;\n }\n else {\n $return = '<amp-img src=\"'.$default.'\" width=\"'.$size.'\" height=\"'.$size.'\" alt=\"'.$alt.'\"></amp-img>';\n }\n return $return;\n}", "title": "" }, { "docid": "ab9d224c777ab547b5de362b01bd3faa", "score": "0.63730353", "text": "function custom_avatar( $avatar, $id_or_email, $size, $default, $alt ) {\n $user = false;\n if ( is_numeric( $id_or_email ) ) {\n $id = (int) $id_or_email;\n $user = get_user_by( 'id' , $id );\n } elseif ( is_object( $id_or_email ) ) {\n if ( ! empty( $id_or_email->user_id ) ) {\n $id = (int) $id_or_email->user_id;\n $user = get_user_by( 'id' , $id );\n }\n } else {\n $user = get_user_by( 'email', $id_or_email );\t\n }\n if ( $user && is_object( $user ) ) {\n $ava = get_user_meta($user->data->ID, 'user_avatar', true);\n\t if( $ava ) {\n\t\t$url = parse_url($ava);\n $site_url = parse_url(site_url());\n if( $url['host'] == $site_url['host'] ) {\n\t\t $src_info = pathinfo( $ava );\n $ava_resized = $src_info['dirname'].'/'.$src_info['filename'].\"_152X152.\".$src_info['extension'];\n\t\t $ava = file_url_exists( $ava_resized ) ? $ava_resized : $ava;\n\t }\n\t\t$avatar = \"<img alt='{$alt}' src='{$ava}' class='avatar avatar-{$size} photo' height='{$size}' width='{$size}' />\";\n\t }\n }\n return $avatar;\n }", "title": "" }, { "docid": "a5220b14402c223932ddc96822aba46e", "score": "0.6369593", "text": "public function getDefaultImage()\n {\n foreach($this->images as $image) {\n if ($image->isDefault())\n return $image;\n }\n }", "title": "" }, { "docid": "76a3eb3fb6e4dd51dbdfcfcc3e65d78f", "score": "0.63536555", "text": "public function getAvatarUrlAttribute()\n {\n if ($this->avatar){\n return Storage::url($avatar);\n }\n\n return $this->social_avatar;\n }", "title": "" }, { "docid": "06871018806530db88d685e75bc57220", "score": "0.63500094", "text": "function um_get_user_avatar_data( $user_id = '', $size = '96' ) {\r\n if( empty( $user_id ) ) {\r\n\t $user_id = um_user( 'ID' );\r\n } else {\r\n um_fetch_user( $user_id );\r\n }\r\n\r\n $data = array(\r\n 'user_id' => $user_id,\r\n 'default' => um_get_default_avatar_uri(),\r\n 'class' => 'gravatar avatar avatar-' . $size . ' um-avatar',\r\n 'size' => $size\r\n );\r\n\r\n\tif ( $profile_photo = um_profile( 'profile_photo' ) ) {\r\n\t\t$data['url'] = um_get_avatar_uri( $profile_photo, $size );\r\n\t $data['type'] = 'upload';\r\n\t $data['class'] .= ' um-avatar-uploaded';\r\n\t} else if( $synced_profile_photo = um_user( 'synced_profile_photo' ) ) {\r\n $data['url'] = $synced_profile_photo;\r\n $data['type'] = 'sync';\r\n $data['class'] .= ' um-avatar-default';\r\n } else if( UM()->options()->get( 'use_gravatars' ) ) {\r\n\t $avatar_hash_id = get_user_meta( $user_id, 'synced_gravatar_hashed_id', true );\r\n $data['url'] = set_url_scheme( '//gravatar.com/avatar/' . $avatar_hash_id );\r\n $data['url'] = add_query_arg( 's', 400, $data['url'] );\r\n $rating = get_option('avatar_rating');\r\n\t\tif ( !empty( $rating ) ) {\r\n\t\t\t$data['url'] = add_query_arg( 'r', $rating, $data['url'] );\r\n\t\t}\r\n $gravatar_type = UM()->options()->get( 'use_um_gravatar_default_builtin_image' );\r\n if ( $gravatar_type == 'default' ) {\r\n if ( UM()->options()->get( 'use_um_gravatar_default_image' ) ) {\r\n $data['url'] = add_query_arg( 'd', $data['default'], $data['url'] );\r\n }\r\n } else {\r\n $default = get_option( 'avatar_default', 'mystery' );\r\n if ( $default == 'gravatar_default' ) {\r\n $default = '';\r\n }\r\n $data['url'] = add_query_arg( 'd', $default, $data['url'] );\r\n }\r\n $data['type'] = 'gravatar';\r\n $data['class'] .= ' um-avatar-gravatar';\r\n } else {\r\n $data['url'] = $data['default'];\r\n $data['type'] = 'default';\r\n $data['class'] .= ' um-avatar-default';\r\n }\r\n\r\n /**\r\n * UM hook\r\n *\r\n * @type filter\r\n * @title um_user_avatar_url_filter\r\n * @description Change user avatar URL\r\n * @input_vars\r\n * [{\"var\":\"$avatar_uri\",\"type\":\"string\",\"desc\":\"Avatar URL\"},\r\n * {\"var\":\"$user_id\",\"type\":\"int\",\"desc\":\"User ID\"}]\r\n * @change_log\r\n * [\"Since: 2.0\"]\r\n * @usage add_filter( 'um_user_avatar_url_filter', 'function_name', 10, 2 );\r\n * @example\r\n * <?php\r\n * add_filter( 'um_user_avatar_url_filter', 'my_user_avatar_url', 10, 2 );\r\n * function my_user_avatar_url( $avatar_uri ) {\r\n * // your code here\r\n * return $avatar_uri;\r\n * }\r\n * ?>\r\n */\r\n $data['url'] = apply_filters( 'um_user_avatar_url_filter', $data['url'], $user_id, $data );\r\n /**\r\n * UM hook\r\n *\r\n * @type filter\r\n * @title um_avatar_image_alternate_text\r\n * @description Change user display name on um_user function profile photo\r\n * @input_vars\r\n * [{\"var\":\"$display_name\",\"type\":\"string\",\"desc\":\"User Display Name\"}]\r\n * @change_log\r\n * [\"Since: 2.0\"]\r\n * @usage add_filter( 'um_avatar_image_alternate_text', 'function_name', 10, 1 );\r\n * @example\r\n * <?php\r\n * add_filter( 'um_avatar_image_alternate_text', 'my_avatar_image_alternate_text', 10, 1 );\r\n * function my_avatar_image_alternate_text( $display_name ) {\r\n * // your code here\r\n * return $display_name;\r\n * }\r\n * ?>\r\n */\r\n $data['alt'] = apply_filters( \"um_avatar_image_alternate_text\", um_user( \"display_name\" ), $data );\r\n\r\n\treturn $data;\r\n}", "title": "" }, { "docid": "caee20340bc4b4ce21be58fe94066769", "score": "0.6349068", "text": "public function getAvatarAttribute()\n {\n $avatar = $this->images()->wherePivot('type', self::AVATAR_IMAGE_FILE_TYPE)->first();\n return $avatar ? $avatar->url : null;\n }", "title": "" }, { "docid": "6d3cb8cb82254e70281705564535b753", "score": "0.6335711", "text": "public function avatar()\n {\n if (! $this->avatar ) {\n return asset('images/noimage.png');\n }\n\n return url('img-file/users/'.$this->avatar);\n }", "title": "" }, { "docid": "72948aae9e0948a5b35010c507424e43", "score": "0.63264066", "text": "public function getProfilePicUrl()\n {\n return NULL;\n }", "title": "" }, { "docid": "f50ea9d4cad506f945100e35de392377", "score": "0.6303091", "text": "function getAvatarPhoto($uid)\n\t{\n\n\t\tstatic $ci = null;\n \n\t if(is_null($ci)) {\n\t $ci =& get_instance();\n\t }\n\n\t $ci->load->model(\"query\");\n\t $array[\"registration_id\"] = $uid;\n\t $array[\"type\"] = \"main\";\n\n\t $filename = $ci->query->get(\"member_photo\",array('where'=>$array,'order'=>\"id desc\"));\n\t\t\n\t if(!empty($filename)){\n\t \tif($filename[0]->avatar==\"1\"){\n\t \t\t// $photo = base_url(\"public\").\"/assets/img/avatar/\".$filename[0]->filename;\t \n\t \t\t$photo = $filename[0]->filename;\t \n\t \t}else{\n\t \t\t// $photo = base_url(\"public\").\"/upload/img/thumb/\".$filename[0]->filename_thumb;\n\t \t\t$photo = $filename[0]->filename_thumb;\t \n\t \t}\n\t \t\n\t } else {\n\t \t// check at facebook\n\t \t$user = $ci->query->get(\"member\",array(\"where\"=>array(\"id\"=>$uid)));\n\t \tif($user[0]->login_with == \"facebook\"){\n\t \t\t$photo = \"http://graph.facebook.com/\".$user[0]->social_id.\"/picture\";\t \t\t\n\t \t} \t \t\n\t }\n\n\t if(empty($photo)){\n\t \t$photo = \"http://placehold.it/138x138&text=noimage\";\n\t }\n\t return $photo;\n\t\t\n\t}", "title": "" }, { "docid": "ed60449028c243ac9706b14f1c86c107", "score": "0.6300147", "text": "function mod_user_avatar_apply_avatar_to_user($profile)\n{\n global $PHORUM;\n\n // Setup the default avatar image as a starting point.\n $url = $PHORUM['mod_user_avatar']['default_avatar'];\n $profile['MOD_USER_AVATAR'] = $url;\n\n // Check if we have an avatar for this user.\n if (empty($profile[\"mod_user_avatar\"][\"avatar\"]) ||\n $profile[\"mod_user_avatar\"][\"avatar\"] == -1) {\n return $profile;\n }\n\n // Add a Gravatar to the profile data.\n if ($profile[\"mod_user_avatar\"][\"avatar\"] == -2) {\n $profile[\"MOD_USER_AVATAR\"] =\n mod_user_avatar_get_gravatar_url($profile);\n return $profile;\n }\n\n // Add a standard avatar to the profile data.\n $file_id = $profile['mod_user_avatar'][\"avatar\"];\n $profile[\"MOD_USER_AVATAR\"] = phorum_get_url(\n PHORUM_FILE_URL,\n \"file=$file_id\"\n );\n\n return $profile;\n}", "title": "" }, { "docid": "aea61f04ab81badc4e0c4711fd96e22c", "score": "0.62949747", "text": "public function getAvatar()\n {\n if (!empty($this->response['pictureUrl'])) {\n return $this->response['pictureUrl'];\n }\n }", "title": "" }, { "docid": "186905b8488d620aab7574db53b9b08f", "score": "0.62872195", "text": "function tsm_acf_profile_avatar( $avatar, $id_or_email, $size, $default, $alt ) {\n\n if ( is_numeric( $id_or_email ) ) {\n\n\n\n $id = (int) $id_or_email;\n\n $user = get_user_by( 'id' , $id );\n\n\n\n } elseif ( is_object( $id_or_email ) ) {\n\n\n\n if ( ! empty( $id_or_email->user_id ) ) {\n\n $id = (int) $id_or_email->user_id;\n\n $user = get_user_by( 'id' , $id );\n\n }\n\n\n\n } else {\n\n $user = get_user_by( 'email', $id_or_email );\n\n }\n\n\n\n if ( ! $user ) {\n\n return $avatar;\n\n }\n\n\n\n // Get the user id\n\n $user_id = $user->ID;\n\n\n\n // Get the file id\n\n $image_id = get_user_meta($user_id, 'global_profile_image', true); // CHANGE TO YOUR FIELD NAME\n\n\n\n // Bail if we don't have a local avatar\n\n if ( ! $image_id ) {\n\n return $avatar;\n\n }\n\n\n\n // Get the file size\n\n $image_url = wp_get_attachment_image_src( $image_id, 'thumbnail' ); // Set image size by name\n\n // Get the file url\n\n $avatar_url = $image_url[0];\n\n // Get the img markup\n\n $avatar = '<img alt=\"' . $alt . '\" src=\"' . $avatar_url . '\" class=\"avatar avatar-' . $size . '\" height=\"' . $size . '\" width=\"' . $size . '\"/>';\n\n\n\n // Return our new avatar\n\n return $avatar;\n\n}", "title": "" }, { "docid": "4620dea3e1fecc8c5ee06b4e32b5efd9", "score": "0.6287126", "text": "public function getAvatarUrl()\n {\n return $this->avatar_url;\n }", "title": "" }, { "docid": "07843910bc07584c02c19e24912102a1", "score": "0.62587494", "text": "public function pre_get_avatar_filter( $avatar = '', $id_or_email, $args=null ) {\r\n $avatar=\"\";\r\n\t\t\t// Determine if we recive an ID or string\r\n\t\tif ( is_numeric( $id_or_email ) )\r\n\t\t\t$user_id = (int) $id_or_email;\r\n\t\telseif ( is_string( $id_or_email ) && ( $user = get_user_by( 'email', $id_or_email ) ) )\r\n\t\t\t$user_id = $user->ID;\r\n\t\telseif ( is_object( $id_or_email ) && ! empty( $id_or_email->user_id ) )\r\n\t\t\t$user_id = (int) $id_or_email->user_id;\r\n\r\n\t\tif ( empty( $user_id ) )\r\n\t\t\treturn $avatar;\r\n//echo $id_or_email;\r\n\t\t$local_avatars = get_user_meta( $user_id, 'min_user_avatar', true );\r\n\t\t//print(\"<pre>\");\r\n\t\t//print_r($local_avatars);\r\n\t\t//print(\"</pre>\");\r\n\t\tif ( empty( $local_avatars ) || empty( $local_avatars['full'] ) )\r\n {\r\n return $avatar;\r\n }\r\n\r\n $defaults = array(\r\n // get_avatar_data() args.\r\n 'size' => 96,\r\n 'height' => null,\r\n 'width' => null,\r\n 'default' => get_option( 'avatar_default', 'mystery' ),\r\n 'force_default' => false,\r\n 'rating' => get_option( 'avatar_rating' ),\r\n 'scheme' => null,\r\n 'alt' => '',\r\n 'class' => null,\r\n 'force_display' => false,\r\n 'extra_attr' => '',\r\n\t );\r\n\r\n if(empty($args)){$args = array();}\r\n // $args['size'] = (int) $size;\r\n\t // $args['default'] = $default;\r\n\t // $args['alt'] = $alt;\r\n $args = wp_parse_args( $args, $defaults );\r\n\t\r\n\t if (empty( $args['height'])) {\r\n\t $args['height'] = $args['size'];\r\n\t }\r\n\t if ( empty( $args['width'] ) ) {\r\n\t $args['width'] = $args['size'];\r\n\t }\r\n\r\n\r\n\t\t$sizewidth = (int) $args['width'];\r\n\t\t$sizeheight = (int) $args['height'];\r\n\t\t$sizename=$sizewidth.'x'.$sizeheight;\r\n\t\tif ( empty( $alt ) )\r\n\t\t\t{$alt = get_the_author_meta( 'display_name', $user_id );}\r\n\r\n\t\t// Generate a new size\r\n\t\tif (empty( $local_avatars[$sizename] ) ) {\r\n\r\n\t\t\t$avatar_full_path = str_replace( self::$options['upload_path']['baseurl'], self::$options['upload_path']['basedir'], $local_avatars['full'] );\r\n\r\n\t\t\t$image= wp_get_image_editor( $avatar_full_path );\r\n\r\n\t\t\tif ( ! is_wp_error( $image ) ) {\r\n\t\t\t\t$image->resize( $sizewidth, $sizeheight, true );\r\n\t\t\t\t$image_sized = $image->save();\r\n\t\t\t}else\r\n\t\t\t{echo \"error at resize\";}\r\n\r\n\t\t\t// Deal with original being >= to original image (or lack of sizing ability)\r\n\t\t\t$local_avatars[$sizename] = is_wp_error( $image_sized ) ? $local_avatars[$size] = $local_avatars['full'] : str_replace( self::$options['upload_path']['basedir'], self::$options['upload_path']['baseurl'], $image_sized['path'] );\r\n\r\n\t\t\t// Save updated avatar sizes\r\n\t\t\tupdate_user_meta( $user_id, 'min_user_avatar', $local_avatars );\r\n\r\n\t\t} elseif ( substr( $local_avatars[$sizename], 0, 4 ) != 'http' ) {\r\n\t\t\t$local_avatars[$sizename] = home_url( $local_avatars[$sizename] );\r\n\t\t}\r\n\t\t\r\n\r\n\t\t$author_class = is_author( $user_id ) ? ' current-author' : '' ;\r\n\t\t$avatar = \"<img alt='\" . esc_attr( $alt ) . \"' src='\" . $local_avatars[$sizename] . \"' class='avatar avatar-{$sizename}{$author_class} photo' height='{$sizeheight}' width='{$sizewidth}' />\";\r\n\t\treturn $avatar;\r\n}", "title": "" }, { "docid": "d211966fa889c75044815e17604e0bb1", "score": "0.62465715", "text": "function get_activity_user_profile_pic($id){\n\t$profile_pic = apply_filters( 'activity_user_profile_pic', $id );\n \n\tif($profile_pic == $id || $profile_pic==\"\"){\n\t\t$profile_pic = activitynotifications()->plugin_url. \"interface/img/non-avatar.jpg\";\n\t}\n\treturn $profile_pic;\n}", "title": "" }, { "docid": "0064ddcf7b1a06eebb973752f9366041", "score": "0.6243391", "text": "public function profileImage($width = null)\n {\n if (isset($this->entity->avatar)) {\n\n if(filter_var($this->entity->avatar, FILTER_VALIDATE_URL)){\n return $this->entity->avatar;\n }\n\n if (!is_null($width)) {\n $width = \"?w=\" . $width;\n }\n\n return config('upload_paths.avatars') . $this->entity->avatar . $width;\n }\n\n return Gravatar::src($this->entity->email, $width);\n }", "title": "" }, { "docid": "bba00efcd182d3c7e0c64625910a71bb", "score": "0.62393373", "text": "public function getAvatarFotoAttribute()\n {\n if ($this->is_client) {\n return '/images/clientes.png';\n }\n return '/images/support.png';\n }", "title": "" }, { "docid": "f59def073d4c53aae83d8ae60f8c646d", "score": "0.62362415", "text": "function avatar_poster($default = TRUE) {\n\techo get_avatar_poster($default);\n}", "title": "" }, { "docid": "e8645d78d1c424dad2e6b8ffe2ed0bca", "score": "0.62350917", "text": "public function getAvatarAttribute()\n {\n $avatar = $this->getSetting('avatar');\n return $avatar ? asset($avatar) : $this->getDefaultAvatar();\n }", "title": "" }, { "docid": "9a39c3585b2b46d173c48af8e85b63c9", "score": "0.622841", "text": "function rovoko_update_avatar(){\n\t$ef5_avatar = get_template_directory_uri() . '/assets/images/avatar.png';\n\tif (get_option($ef5_avatar, '') != $ef5_avatar)\n\t\tupdate_option( 'avatar_default' , $ef5_avatar );\n}", "title": "" }, { "docid": "de7d46db8c3fefb05fa7fa2dee33d125", "score": "0.6220377", "text": "private function set_default_profile_picture() {\n // check if the gender is valid before proceeding\n if( !$this->valid_gender ) return;\n\n if( $this->gender === \"male\" ) {\n $this->profile_picture = Constant::default_profile_picture_male;\n } else if( $this->gender === \"female\" ) {\n $this->profile_picture = Constant::default_profile_picture_female;\n } else {\n // just in case (should never happen, though)\n return;\n }\n }", "title": "" }, { "docid": "de1ef8f3881b1c24f050a0f15ae1e783", "score": "0.62122023", "text": "function affable_get_avatar_image_url()\n{\n $email = trim(strval(get_theme_mod('affable_gravatar_email')));\n if (!empty($email)) {\n // https://en.gravatar.com/site/implement/hash/\n $hash = md5(strtolower($email));\n return \"http://secure.gravatar.com/avatar/{$hash}?s=150\";\n }\n\n return get_theme_mod('affable_avatar_image_url');\n}", "title": "" }, { "docid": "25f5a0d261ca102d9a74644b4c8ac778", "score": "0.6200913", "text": "public function getAvatarAbsolutePath()\n {\n return null === $this->avatar\n ? null\n : $this->getAvatarAbsoluteDir().'/'.$this->avatar;\n }", "title": "" }, { "docid": "dcd4a97318260316ae64e7068bc5ca7d", "score": "0.61994386", "text": "public function image_placeholder(){\n return ($this->photo == \"\" || !file_exists(public_path() . $this->photo->path)) ? $this->uploads . $this->placeholder : $this->photo->path;\n // return public_path() . $this->photo->path;\n /* ternary statement for displaying the photo for the user */\n // {{$user->photo ? $user->photo->path : 'https://via.placeholder.com/150?text=Dummy+Photo'}}\n }", "title": "" }, { "docid": "cba79b46b3a3c1c8faec6b347cb39992", "score": "0.6198202", "text": "public function url()\n\t{\n\t\treturn URL::site('media/image/avatars/default.png', NULL, FALSE);\n\t}", "title": "" }, { "docid": "46bb6000627a4dcab160e4c6e0126071", "score": "0.6197154", "text": "public function getAvatar()\n {\n if ($this->author->hasMethod('getAvatar')) {\n return $this->author->getAvatar();\n }\n\n return 'http://www.gravatar.com/avatar?d=mm&f=y&s=50';\n }", "title": "" }, { "docid": "d874c9f33f1d9165f4d30192307ceab7", "score": "0.61949366", "text": "public function isCustomAvatar(): bool;", "title": "" }, { "docid": "a6ddc9ec033641088134f0c2ae1c78bc", "score": "0.6193193", "text": "public function getDefaultOGImage()\n {\n $owner = $this->owner;\n if ($owner->OGImageCustomID) {\n return $owner->OGImageCustom();\n }\n\n if ($owner->MetaImageCustomID) {\n return $owner->MetaImageCustom();\n }\n\n return false;\n }", "title": "" } ]
9a32cbf1e1ba30ab6d1821d9669bc472
Adds exceptions to the group restriction (coursemodules in which you have accessallgroups permission, usually).
[ { "docid": "aa6ea7f50556f5ea64f22c80ca78a36b", "score": "0.6319485", "text": "public function set_group_exceptions($cmarray) {\n $this->groupexceptions = $cmarray;\n }", "title": "" } ]
[ { "docid": "7b3f05623fcfd8a2f0a8ae92a5d92327", "score": "0.62827086", "text": "public function testAddGroupFailsIfLackingPermissions(): void\n {\n $this->expectException(\\Exception::class);\n $this->slimStub->shouldReceive('halt')->times(1)->with(403, '{\"status\":403,\"message\":\"Access Denied\",\"title\":\"You do not have the permission: manage_groups\"}')->andThrow(new \\Exception);\n\n $this->userController->_add_group();\n }", "title": "" }, { "docid": "6c99744b7b560da8164dcfcba7a132cd", "score": "0.6241784", "text": "public function testAddGroupPermissionFailsIfLackingPermissions(): void\n {\n $this->expectException(\\Exception::class);\n $this->slimStub->shouldReceive('halt')->times(1)->with(403, '{\"status\":403,\"message\":\"Access Denied\",\"title\":\"You do not have the permission: manage_groups\"}')->andThrow(new \\Exception);\n\n $this->userController->_add_group_permission();\n }", "title": "" }, { "docid": "c9a26885cc53561183b6dc2a2864d51a", "score": "0.5979851", "text": "public static function get_group_exceptions($courseid) {\n global $DB;\n\n $year = year_tables::get_year_for_tables(get_course($courseid));\n $docstable = year_tables::get_docs_table($year);\n\n // Get all CMs that have a document.\n $possible = $DB->get_records_sql(\"\n SELECT DISTINCT cm.id AS cmid, cm.course AS cmcourse, cm.groupmode AS cmgroupmode, x.*\n FROM {\" . $docstable . \"} bod\n JOIN {course_modules} cm ON bod.coursemoduleid = cm.id\n JOIN {context} x ON x.instanceid = cm.id AND x.contextlevel = \" . CONTEXT_MODULE . \"\n WHERE bod.courseid = ?\", array($courseid));\n\n // Check accessallgroups on each one.\n $results = array();\n foreach ($possible as $record) {\n if ($record->cmgroupmode == VISIBLEGROUPS ||\n has_capability('moodle/site:accessallgroups', context_course::instance($record->cmcourse))) {\n $results[] = (object)array(\n 'id' => $record->cmid, 'course' => $record->cmcourse);\n }\n }\n return $results;\n }", "title": "" }, { "docid": "75c13e719f16230f5a916b70207d06c5", "score": "0.5898555", "text": "public function testAddGroupUserFailsIfLackingUsers(): void\n {\n $this->expectException(\\Exception::class);\n $this->slimStub->shouldReceive('halt')->times(1)->with(403, '{\"status\":403,\"message\":\"Access Denied\",\"title\":\"You do not have the permission: manage_groups\"}')->andThrow(new \\Exception);\n\n $this->userController->_add_group_user();\n }", "title": "" }, { "docid": "98f70a8613b2da0e2524fb80596cd286", "score": "0.5846876", "text": "public function elevatePremissions() {\n\t\tif($user->group == 'USR'){\n\t\t\t$user->group = \"ROOT\";\n\t\t}\n\t\telse{\n\t\t\tthrow new Exception('This user group cannot elevate permissions');\n\t\t}\n\t}", "title": "" }, { "docid": "3d7760470f1bebb2b56cf2edec9b863c", "score": "0.5795581", "text": "public function usergroupConditionDoesNotMatchDefaulUserGroupIds() {}", "title": "" }, { "docid": "63286520669e417c53ce56da21f17cd2", "score": "0.57461506", "text": "public function testUpdateGroupFailsIfLackingPermissions(): void\n {\n $this->expectException(\\Exception::class);\n $this->slimStub->shouldReceive('halt')->times(1)->with(403, '{\"status\":403,\"message\":\"Access Denied\",\"title\":\"You do not have the permission: manage_groups\"}')->andThrow(new \\Exception);\n\n $this->userController->_update_group();\n }", "title": "" }, { "docid": "a913e87aec0005af1c4ceefe67f881d2", "score": "0.5693203", "text": "private function grouping_group_assigned($event) {\n global $DB;\n $groupid = $event->other['groupid'];\n $members = groups_get_members($groupid, 'userid');\n $group = groups_get_group($groupid, 'courseid');\n $courseid = $group->courseid;\n $course = $DB->get_record('course', array('id' => $courseid), 'visible');\n $coursecontext = context_course::instance($courseid);\n $coursemodinfo = get_fast_modinfo($courseid, -1);\n $cms = $coursemodinfo->get_cms();\n\n $insertcalls = array();\n $deletecalls = array();\n\n foreach ($cms as $cm) {\n $cmid = $cm->id;\n $cmcontext = context_module::instance($cmid);\n $fileids = $this->get_fileids($cmid);\n if ($fileids) {\n foreach ($fileids as $fileid) {\n foreach ($members as $member) {\n $gmail = $this->get_google_authenticated_users_gmail($member->userid);\n if (has_capability('moodle/course:view', $coursecontext, $member->userid)) {\n // Manager; do nothing.\n } elseif (is_enrolled($coursecontext, $member->userid, null, true) && has_capability('moodle/course:manageactivities', $cmcontext, $member->userid)) {\n // Teacher (enrolled) (active); do nothing.\n } elseif (is_enrolled($coursecontext, $member->userid, null, true)) {\n // Student (enrolled) (active); continue checks.\n if ($course->visible == 1) {\n // Course is visible, continue checks.\n rebuild_course_cache($courseid, true);\n $modinfo = get_fast_modinfo($courseid, $member->userid);\n $cminfo = $modinfo->get_cm($cmid);\n $sectionnumber = $this->get_cm_sectionnum($cmid);\n $secinfo = $modinfo->get_section_info($sectionnumber);\n if ($cminfo->uservisible && $secinfo->available && is_enrolled($coursecontext, $member->userid, '', true)) {\n // Course module and section are visible and available.\n // Insert reader permission.\n $call = new stdClass();\n $call->fileid = $fileid;\n $call->gmail = $gmail;\n $call->role = 'reader';\n $insertcalls[] = $call;\n if (count($insertcalls) == 1000) {\n $this->batch_insert_permissions($insertcalls);\n $insertcalls = array();\n }\n } else {\n // User cannot access course module; delete permission.\n try {\n $permissionid = $this->service->permissions->getIdForEmail($gmail);\n $permission = $this->service->permissions->get($fileid, $permissionid->id);\n if ($permission->role != 'owner') {\n $call = new stdClass();\n $call->fileid = $fileid;\n $call->permissionid = $permissionid->id;\n $deletecalls[] = $call;\n if (count($deletecalls) == 1000) {\n $this->batch_delete_permissions($deletecalls);\n $deletecalls = array();\n }\n }\n } catch (Exception $e) {\n debugging($e);\n }\n }\n }\n // Course is not visible; do nothing.\n }\n // User is not enrolled in course; do nothing.\n }\n }\n }\n }\n\n // Call any remaining batch requests.\n if (count($insertcalls) > 0) {\n $this->batch_insert_permissions($insertcalls);\n }\n\n if (count($deletecalls) > 0) {\n $this->batch_delete_permissions($deletecalls);\n }\n }", "title": "" }, { "docid": "4031e866884729d6a0d9f49bec7841b0", "score": "0.54782116", "text": "public function addFilters()\n {\n foreach (func_get_args() as $filter) {\n if (is_a($filter, 'Rhubarb\\Stem\\Filters\\Filter')) {\n $this->filters[] = $filter;\n } else {\n throw new \\Exception('Non filter object added to Group filter');\n }\n }\n }", "title": "" }, { "docid": "6ebc750edd0b5cd3ccdb3f1160e1c7bd", "score": "0.5411317", "text": "public function testRemoveGroupPermissionFailsIfLackingPermissions(): void\n {\n $this->expectException(\\Exception::class);\n $this->slimStub->shouldReceive('halt')->times(1)->with(403, '{\"status\":403,\"message\":\"Access Denied\",\"title\":\"You do not have the permission: manage_groups\"}')->andThrow(new \\Exception);\n\n $this->userController->_remove_group_permission();\n }", "title": "" }, { "docid": "18437fc4d82cca7decb91bd96ecac04a", "score": "0.54003596", "text": "public function testSetInvalidRestrictAccessValue() {\n $permission = new GroupPermission();\n $permission->set('restrict access', 'invalid value');\n }", "title": "" }, { "docid": "7398bd238976396965794ed80618dd0f", "score": "0.5400321", "text": "public function setGroup($value) {\n$allowed = ['house', 'school', 'work', 'family'];\nif (!in_array($value, $allowed))\n throw new Exception('Please choose one of the valid groups');\n$this->group = $value;\nreturn $this;\n}", "title": "" }, { "docid": "3e15976f15c2e1eb399fadb0205b7ae8", "score": "0.5270557", "text": "public function test_get_messages_limited_with_group_restriction_support() {\n global $COURSE, $SESSION;\n\n $this->setUser($this->user->id);\n $COURSE->id = $this->course->id;\n // Create the generator object.\n $generator = $this->getDataGenerator()->get_plugin_generator('block_news');\n\n // Create news blocks.\n $nblock = $generator->create_instance(array(), array('courseid' => $this->course->id));\n\n // Create 2 news messages in news blocks. Add message to group.\n $message1 = new stdClass();\n $message1id = $generator->create_block_new_message($nblock, $message1, [$this->group1->id]);\n $message2 = new stdClass();\n $message2id = $generator->create_block_new_message($nblock, $message2, [$this->group2->id]);\n\n // Enable group support and call get_messages_limited function.\n $bns = system::get_block_settings($nblock->id);\n $bns->set_groupingsupport(2);\n $msgs = $bns->get_messages_limited(3);\n\n // When group restriction support is enabled. Return 1 the messages with correct groupid.\n $this->assertEquals(1, count($msgs));\n $this->assertTrue(in_array($this->group1->id, $msgs[0]->get_groupids()));\n\n // When user is removed from groups check restriction works.\n groups_remove_member($this->group1, $this->user);\n groups_remove_member($this->group2, $this->user);\n unset($SESSION->block_news_user_groups);\n $msgs = $bns->get_messages_limited(3);\n $this->assertEmpty($msgs);\n }", "title": "" }, { "docid": "f055e4d1f7b3ffb11b3244d88fe0d201", "score": "0.51724136", "text": "public function test_get_messages_all_with_group_restriction_support() {\n global $COURSE, $SESSION;\n\n $this->setUser($this->user->id);\n $COURSE->id = $this->course->id;\n\n // Create the generator object.\n $generator = $this->getDataGenerator()->get_plugin_generator('block_news');\n\n // Create news blocks.\n $nblock = $generator->create_instance(array(), array('courseid' => $this->course->id));\n\n // Create 2 news messages in news blocks. Add message to group.\n $message1 = new stdClass();\n $message1id = $generator->create_block_new_message($nblock, $message1, [$this->group1->id]);\n $message2 = new stdClass();\n $message2id = $generator->create_block_new_message($nblock, $message2, [$this->group2->id]);\n\n // Enable group support and call get_messages_all function.\n $bns = system::get_block_settings($nblock->id);\n $bns->set_groupingsupport(2);\n $msgs = $bns->get_messages_all(1);\n\n // When group restriction support is enabled. Return 1 the messages with correct groupid.\n $this->assertEquals(1, count($msgs));\n $this->assertTrue(in_array($this->group1->id, $msgs[0]->get_groupids()));\n\n // When user is removed from groups check restriction works.\n groups_remove_member($this->group1, $this->user);\n groups_remove_member($this->group2, $this->user);\n unset($SESSION->block_news_user_groups);\n $msgs = $bns->get_messages_all(1);\n $this->assertEmpty($msgs);\n }", "title": "" }, { "docid": "a57f38d02f6a500787409e816a93747a", "score": "0.5170696", "text": "public function testAllowInvalidPermission()\n {\n $this->expectException(\\Exception::class);\n $this->Acl->allow('Micheal', 'tpsReports', 'derp');\n }", "title": "" }, { "docid": "c108999b4ad4ca0abb872db6613ae2f6", "score": "0.51475614", "text": "function egsr_add_group_site_roles()\n{\n // Exit if script is run from other than Admin\n if ( !current_user_can('administrator') ) {\n return;\n }\n $group_site_roles = egsr_custom_site_roles();\n foreach ($group_site_roles as $key => $value) {\n $role = get_role($key);\n // Check if Role doesn't exist already\n if(!isset($role->name) == $key){\n // Add role + capabilities\n add_role(\n $key,\n $value['label'],\n $value['caps']\n );\n }\n }\n}", "title": "" }, { "docid": "cb6699f86da6cdc25ed7bc5a4e59b27a", "score": "0.51309335", "text": "public function create_group(Group $group_to_be_created) {\r\n\t\tthrow new PemissionException('You do not have permission as an anonymous user to attempt this action');\r\n\t}", "title": "" }, { "docid": "52c08d80ebfa8842ec76b32a0b8e9d74", "score": "0.51243335", "text": "function build_settings_form_error($mform, $exception){\n //$msg = html_writer::span($e->getMessage(), 'error');\n $msg = html_writer::tag('span', $exception->getMessage(), $this->classattribute);\n $mform->addElement(\n 'static',\n 'assignsubmission_babelium_servererror',\n get_string('babeliumAvailableRecordableExercises', 'assignsubmission_babelium'),\n $msg\n );\n\n //This is a dirty hack, but it should avoid enabling Babelium submissions when server auth\n //goes wrong for some reason.\n $mform->addElement(\n 'hidden',\n 'noexerciseavailable',\n 1\n );\n }", "title": "" }, { "docid": "1a8bab7c85cfd08d33da87f8e3205739", "score": "0.5093171", "text": "public function testRemoveGroupUserFailsIfLackingUsers(): void\n {\n $this->expectException(\\Exception::class);\n $this->slimStub->shouldReceive('halt')->times(1)->with(403, '{\"status\":403,\"message\":\"Access Denied\",\"title\":\"You do not have the permission: manage_groups\"}')->andThrow(new \\Exception);\n\n $this->userController->_remove_group_user();\n }", "title": "" }, { "docid": "280ffb0a36a9375953f6847c57d59b57", "score": "0.50631285", "text": "public function add() {\n\t\t$data = array (\n\t\t\t'be_users_uid' => $this['beUserUid'],\n\t\t\t'group_uid' => $this['groupUid'],\n\t\t\t'rights' => $this['rights']\n\t\t);\n\t\t$res = $GLOBALS['TYPO3_DB']->exec_INSERTquery(\n\t\t\t'tx_passwordmgr_group_be_users_mm',\n\t\t\t$data\n\t\t);\n\t\tif ( $res ) {\n\t\t\ttx_passwordmgr_helper::addLogEntry(1, 'addMembership', 'Added user '.$data['be_users_uid'].' to group '.$data['group_uid']);\n\t\t} else {\n\t\t\tthrow new Exception ('Error adding user. user / group: ' . $data['be_users_uid'] . ' ' . $data['group_uid']);\n\t\t}\n\t}", "title": "" }, { "docid": "acac32bae083f9dd1452d894b868c4dd", "score": "0.5029007", "text": "protected function handleGroupTransactionFailed()\n {\n try {\n $this->cancelOrder(\n $this->postData['brq_invoicenumber']\n );\n $this->groupTransaction->setGroupTransactionsStatus(\n $this->postData['brq_transactions'],\n $this->postData['brq_statuscode']\n );\n } catch (\\Throwable $th) {\n $this->logging->addDebug(__METHOD__ . '|'.(string)$th);\n }\n }", "title": "" }, { "docid": "dca5e70de70dcb90c5de389f3186d34c", "score": "0.50266206", "text": "public function beforeFilter() {\n parent::beforeFilter();\n $this->set('group', 'compounds');\n //$this->Auth->deny('addCompound', 'editCompound'); //deny access from addCompound and editCompound by default\n }", "title": "" }, { "docid": "a8d6920abb87d272a9644f690e52252a", "score": "0.50227684", "text": "public function useOnlyGroup ($groupName) {\n if (is_array ($groupName)) {\n $Fields = array();\n foreach ($groupName as $groupNameOne) {\n if (empty ($this->__Groups[$groupNameOne]))\n throw new Exception(\"There is no group $groupNameOne in \" . get_class($this) . \"!\");\n $Fields = array_merge($Fields, $this->__Groups[$groupNameOne]);\n }\n $this->useOnlyFields($Fields);\n return;\n }\n if (empty ($this->__Groups[$groupName]))\n throw new Exception(\"There is no group $groupName in $this!\");\n $this->useOnlyFields ($this->__Groups[$groupName]);\n }", "title": "" }, { "docid": "d2209a0777c538c0ffb2a0bacee99ced", "score": "0.49591818", "text": "function addGroup($group)\n {\n return PEAR::raiseError(_(\"Unsupported\"));\n }", "title": "" }, { "docid": "627570e390ad036562d8408c03d9a5d9", "score": "0.49580094", "text": "private function internal_get_restrictions() {\n global $DB;\n $where = '';\n $wherearray = array();\n if ($this->courseid) {\n $where .= \"\\nAND d.courseid = ?\";\n $wherearray[] = $this->courseid;\n }\n if ($this->plugin) {\n $where .= \"\\nAND d.plugin = ?\";\n $wherearray[] = $this->plugin;\n }\n $cmrestrictions = false;\n if ($this->coursemoduleid) {\n $where .= \"\\nAND d.coursemoduleid = ?\";\n $wherearray[] = $this->coursemoduleid;\n $cmrestrictions = array($this->coursemoduleid => true);\n }\n if ($this->cmarray) {\n // The courses restriction is technically unnecessary except\n // that we don't have index on coursemoduleid alone, so\n // it is probably better to use course.\n $uniquecourses = array();\n $cmrestrictions = array();\n foreach ($this->cmarray as $cm) {\n $cmrestrictions[$cm->id] = true;\n $uniquecourses[$cm->course] = true;\n }\n list ($cmwhere, $cmwherearray) =\n $DB->get_in_or_equal(array_keys($cmrestrictions));\n list ($coursewhere, $coursewherearray) =\n $DB->get_in_or_equal(array_keys($uniquecourses));\n $where .= \"\\nAND d.coursemoduleid \" . $cmwhere .\n \"\\nAND d.courseid \" . $coursewhere;\n $wherearray = array_merge($wherearray, $cmwherearray, $coursewherearray);\n }\n if (is_array($this->groupids)) {\n if ($this->groupids === self::NONE) {\n $where .= \"\\nAND d.groupid IS NULL\";\n } else {\n $where .= \"\\nAND\";\n if ($this->groupexceptions) {\n $gxcourses = array();\n $gxcms = array();\n foreach ($this->groupexceptions as $cm) {\n // If we are restricting to CMs, don't bother including\n // group exceptions for CMs that are not in that list.\n if ($cmrestrictions) {\n if (!array_key_exists($cm->id, $cmrestrictions)) {\n continue;\n }\n }\n $gxcms[$cm->id] = true;\n $gxcourses[$cm->course] = true;\n }\n if (!empty($gxcms)) {\n list ($cmwhere, $cmwherearray) =\n $DB->get_in_or_equal(array_keys($gxcms));\n list ($coursewhere, $coursewherearray) =\n $DB->get_in_or_equal(array_keys($gxcourses));\n\n $where .= \"\\n(\\n (\\n d.coursemoduleid \" . $cmwhere .\n \"\\n AND d.courseid \" . $coursewhere .\n \"\\n )\\n OR\";\n $wherearray = array_merge($wherearray, $cmwherearray, $coursewherearray);\n }\n }\n if (count($this->groupids) == 0) {\n $where .= \"\\n (\\n FALSE\";\n } else {\n list ($groupwhere, $groupwherearray) =\n $DB->get_in_or_equal($this->groupids);\n $where .= \"\\n (\\n d.groupid \" . $groupwhere;\n $wherearray = array_merge($wherearray, $groupwherearray);\n }\n if ($this->allownogroup) {\n $where .= ' OR d.groupid IS NULL';\n }\n if ($this->groupexceptions && !empty($gxcms)) {\n $where .= \"\\n )\\n)\";\n } else {\n $where .= \"\\n)\";\n }\n }\n }\n if (is_array($this->userids) && !empty($this->userids)) {\n if (reset($this->userids) == self::NONE) {\n $where .= \"\\nAND d.userid IS NULL\";\n } else {\n list ($userwhere, $userwherearray) = $DB->get_in_or_equal($this->userids);\n $where .= \"\\nAND (d.userid \" . $userwhere;\n $wherearray = array_merge($wherearray, $userwherearray);\n if ($this->allownouser) {\n $where .= ' OR d.userid IS NULL';\n }\n $where .= ')';\n }\n }\n return array($where, $wherearray);\n }", "title": "" }, { "docid": "bac8da69c2ab328fdfb134439efa7674", "score": "0.49276915", "text": "public function testGetLanguageGroupListException() {\n try {\n\n $this->localizationDao = $this->getMock('LocalizationDao');\n $this->localizationDao->expects($this->once())\n ->method('getDataList')\n ->will($this->throwException(New DaoException()));\n\n $this->locaizationService->setLocalizationDao($this->localizationDao);\n\n $result = $this->locaizationService->getLanguageGroupList();\n } catch (Exception $ex) {\n return;\n }\n\n $this->fail('An expected exception has not been raised.');\n }", "title": "" }, { "docid": "e9374d25e82104f0c111415dfdb5b1ba", "score": "0.49207678", "text": "public function add(EntityInterface $group)\n {\n if (!is_a($group, self::ACCESS_ENTITY_TYPE)) {\n throw new Exception('The given entity (' . get_class($group) . ') is not compatible with this data source (' . self::class . '.');\n }\n \n // If the name of the group already is used we cannot add a new group\n if ($this->accessControlManager->hasAccessEntityForName(self::ACCESS_ENTITY_TYPE, $group->getName())) {\n throw new Exception('Cannot add the group. The name of the group is already in use.');\n }\n \n // Add the access entity\n $uuid = $this->accessControlManager->addAccessEntity($group);\n \n if ($uuid === false) {\n throw new Exception('Cannot add the group. Internal software error.');\n }\n \n return $group;\n }", "title": "" }, { "docid": "a82d6147c98c872f64b4532996957574", "score": "0.49151376", "text": "function hook_roomify_rights_group_alter(&$permissions) {\n // Remove permission 'add member' for group_manager users.\n unset($permissions['group_manager']['add member']);\n}", "title": "" }, { "docid": "b9be89aea581c090dbde5b074fe31add", "score": "0.4914154", "text": "public function enroll_user_to_group(){\n\t\t $users = array();\n\t\t\t$all_checked_request = $_REQUEST['request_id'];\n\t\t\t$group_id = $_REQUEST['group_id'];\n\t\t\t$group_user_limit = get_post_meta($group_id, 'wdm_group_users_limit_'.$group_id, true);\n\t\t\tif($group_user_limit > 0){\n\t\t\t\tforeach($all_checked_request as $request_id){\n\t\t\t\t\t$request_id = (int)$request_id;\n\t\t\t\t\t$request_info = $this->course_request_by_id($request_id);\n\t\t\t\t\t$user_id = (int)$request_info[0]->user_id;\n\t\t\t\t\tld_update_group_access($user_id, $group_id);\n\t\t\t\t\tupdate_user_meta( $user_id, 'learndash_group_users_'.$group_id.'', $group_id );\n\t\t\t\t\t$this->update_course_request($request_id);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "afa9ef97a23a2e0118d9f965581b8b0f", "score": "0.490557", "text": "public function testModerationByCompanyException(): void\n {\n static::expectException(UnauthorizedModerationAction::class);\n $this->moderationService->moderateByCompany(1, 'wrong');\n }", "title": "" }, { "docid": "c407bb292d08dedfdbd788fc87769f20", "score": "0.48805222", "text": "function add_warning_if_franchisee_in_group_with_fulltime_course () {\n global $pagenow;\n\n if ( $pagenow == 'post.php' && get_post_type() == 'groups' ) {\n\n $group_id = get_the_id();\n $group_enrolled_courses = learndash_group_enrolled_courses ( $group_id );\n \n foreach ( $group_enrolled_courses as $course ) {\n if ( in_category( 'Full Time', $course) )\n \n $group_user_ids = learndash_get_groups_user_ids ( $group_id );\n \n foreach ( $group_user_ids as $user ) {\n if ( user_can ( $user , 'subscriber' ) ) {\n \n ?>\n <div class=\"update-nag notice\">\n <p><?php _e( '<strong>WARNING: </strong>You have enrolled a full time course in a group that contains franchisees. Please ensure you mean to do this as full time courses contain content that is not geared toward franchisees.', 'my_plugin_textdomain' );?></p>\n </div>\n <?php \n\n return;\n }\n }\n }\n \n }\n}", "title": "" }, { "docid": "c8d004a43225f6e28cc4d4bba9b4d275", "score": "0.48761234", "text": "private function group_member_added($event) {\n global $DB;\n $groupid = $event->objectid;\n $userid = $event->relateduserid;\n $gmail = $this->get_google_authenticated_users_gmail($userid);\n\n $group = groups_get_group($groupid, 'courseid');\n $courseid = $group->courseid;\n $course = $DB->get_record('course', array('id' => $courseid), 'visible');\n $coursecontext = context_course::instance($courseid);\n\n $coursemodinfo = get_fast_modinfo($courseid, -1);\n $cms = $coursemodinfo->get_cms();\n\n $insertcalls = array();\n $deletecalls = array();\n\n foreach ($cms as $cm) {\n $cmid = $cm->id;\n $cmcontext = context_module::instance($cmid);\n $fileids = $this->get_fileids($cmid);\n if ($fileids) {\n foreach ($fileids as $fileid) {\n if (has_capability('moodle/course:view', $coursecontext, $userid)) {\n // Manager; do nothing.\n } elseif (is_enrolled($coursecontext, $userid, null, true) && has_capability('moodle/course:manageactivities', $cmcontext, $userid)) {\n // Teacher (enrolled) (active); do nothing.\n } elseif (is_enrolled($coursecontext, $userid, null, true)) {\n // Student (enrolled) (active); continue checks.\n if ($course->visible == 1) {\n // Course is visible; continue checks.\n rebuild_course_cache($courseid, true);\n $modinfo = get_fast_modinfo($courseid, $userid);\n $cminfo = $modinfo->get_cm($cmid);\n $sectionnumber = $this->get_cm_sectionnum($cmid);\n $secinfo = $modinfo->get_section_info($sectionnumber);\n if ($cminfo->uservisible && $secinfo->available && is_enrolled($coursecontext, $userid, '', true)) {\n // Course module and section are visible and available.\n // Insert reader permission.\n $call = new stdClass();\n $call->fileid = $fileid;\n $call->gmail = $gmail;\n $call->role = 'reader';\n $insertcalls[] = $call;\n if (count($insertcalls) == 1000) {\n $this->batch_insert_permissions($insertcalls);\n $insertcalls = array();\n }\n } else {\n // User cannot access course module; delete permission.\n try {\n $permissionid = $this->service->permissions->getIdForEmail($gmail);\n $permission = $this->service->permissions->get($fileid, $permissionid->id);\n if ($permission->role != 'owner') {\n $call = new stdClass();\n $call->fileid = $fileid;\n $call->permissionid = $permissionid->id;\n $deletecalls[] = $call;\n if (count($deletecalls) == 1000) {\n $this->batch_delete_permissions($deletecalls);\n $deletecalls = array();\n }\n }\n } catch (Exception $e) {\n debugging($e);\n }\n }\n }\n } else {\n // Unenrolled user; do nothing.\n }\n }\n }\n }\n\n // Call any remaining batch requests.\n if (count($insertcalls) > 0) {\n $this->batch_insert_permissions($insertcalls);\n }\n\n if (count($deletecalls) > 0) {\n $this->batch_delete_permissions($deletecalls);\n }\n }", "title": "" }, { "docid": "4072fcfde11e2a1957e2043b7e18703e", "score": "0.48636934", "text": "public function testAddPermissionFailsIfLackingPermissions(): void\n {\n $this->expectException(\\Exception::class);\n $this->slimStub->shouldReceive('halt')->times(1)->with(403, '{\"status\":403,\"message\":\"Access Denied\",\"title\":\"You do not have the permission: manage_perms\"}')->andThrow(new \\Exception);\n\n $this->userController->_add_permission();\n }", "title": "" }, { "docid": "5246719c72dd18ae88ff5306136696e9", "score": "0.48617974", "text": "public function shouldRaiseNoGroupExceptionBecausNoConfig()\n {\n $groups = array(\n 0 => array(\n 'name' => 'Reiche Schnösel',\n 'score' => '5000',\n 'methods' => array('foo', 'bar')\n ),\n 1 => array(\n 'name' => 'Arme Tropfe',\n 'score' => 'ABCD',\n 'methods' => array('foo')\n )\n );\n $this->config->set('solvency-groups', array(\n 'solvency-groups' => serialize(array())\n ));\n try {\n $this->config->getDefaultSolvencyGroup();\n } catch (Exception $e) {\n $this->assertEquals(\n 'No proper default group selected, please contact merchant!',\n $e->getMessage(),\n 'Exception has not expected message.'\n );\n return;\n }\n $this->fail('An expected exception has not been raised.');\n }", "title": "" }, { "docid": "98104874de65c998f40f45633a961406", "score": "0.48402655", "text": "public function addGroup($permissions) {\n\n $errors = $this->checkIsValidForAdd($permissions);\n if($errors === false){\n $sql = \"INSERT INTO `SM_GROUP` (sm_nameGroup, sm_descripGroup) VALUES ('$this->nameGroup', '$this->descripGroup')\";\n if (!($resultado = $this->mysqli->query($sql))) {\n return 'Error in the query on the database';\n } else {\n $idGroup = $this->mysqli->insert_id;\n if($this->addPermission($idGroup, $permissions) === true){\n return true;\n } else {\n return 'Error in the query on the database';\n }\n }\n return 'Error in the query on the database';\n } else{\n return $errors;\n }\n }", "title": "" }, { "docid": "e383adf6fed1013e8e83f7c36a39dc3a", "score": "0.4808005", "text": "protected function set_initial_groups()\n {\n $this->_groups = apply_filters('ngg_admin_requirements_manager_groups', array('phpext' => __('NextGen Gallery requires the following PHP extensions to function correctly. Please contact your hosting provider or systems admin and ask them for assistance:', 'nggallery'), 'phpver' => __('NextGen Gallery has degraded functionality because of your PHP version. Please contact your hosting provider or systems admin and ask them for assistance:', 'nggallery'), 'dirperms' => __('NextGen Gallery has found an issue trying to access the following files or directories. Please ensure the following locations have the correct permissions:', 'nggallery')));\n }", "title": "" }, { "docid": "bfccbdb762b114bbd644c161b9c40625", "score": "0.48071635", "text": "public function testUpdateLanguageGroupException() {\n try {\n $langGroup = new LanguageGroup ();\n\n $this->localizationDao = $this->getMock('LocalizationDao');\n $this->localizationDao->expects($this->once())\n ->method('updateLanguageGroup')\n ->will($this->throwException(New DaoException()));\n\n $this->locaizationService->setLocalizationDao($this->localizationDao);\n\n $result = $this->locaizationService->updateLanguageGroup($langGroup);\n } catch (Exception $ex) {\n return;\n }\n\n $this->fail('An expected exception has not been raised.');\n }", "title": "" }, { "docid": "81af677dbd0c59b6077a635e4c1ea328", "score": "0.48008633", "text": "function getGroups() {\n die ('unimplemented: '.__CLASS__.'::'.__FUNCTION__.' ('.__LINE__.':'.__FILE__.')');\n }", "title": "" }, { "docid": "48bce80e99cfaa6601e19c1aed68f074", "score": "0.47881013", "text": "function check_module_visibilityANDavailability($DB, $module_infos, $visibility_allowhiddenmodules, $availability_ignoreavailabilityrestrictions){\n\n //Controlled in Moodle Gui: under 'availability (under \"Common module settings\")'\n $module_restrictions= new stdClass();\n try {\n\n $module_section_infos= $DB->get_record('course_sections', array('id' =>$module_infos->section));\n $module_section_availability = $module_section_infos->availability;\n\n //Get all module/section availability restrictions in array format: including those on complexe set of restrictions.\n $module_section_access_restrictions= get_availability_restelements_fromavfield( $module_section_availability);\n $module_access_restrictions= get_availability_restelements_fromavfield( $module_infos->availability );\n\n //Module visisbility: \"module visibility\" AND \"section visibility\"\n $module_restrictions->mod_visibility = $module_infos->visible;\n $module_restrictions->mod_accrestrictions = $module_access_restrictions;\n $module_restrictions->mod_section_accrestrictions = $module_section_access_restrictions;\n\n\n } catch (\\Exception $e) {\n //$module_infos->course_gen_infos = 'Resource not existant. Verify your request or contact Univ-Nantes Admin.';\n return $e;\n echo \"Exception occurred\";\n }\n\n return array($module_restrictions,decide_about_modVisibilityANDAvailability( $module_restrictions, $visibility_allowhiddenmodules, $availability_ignoreavailabilityrestrictions ));\n\n }", "title": "" }, { "docid": "4cdd3687de36e9b52917b8b7e72a83a0", "score": "0.47812486", "text": "public function shouldRaiseNoGroupExceptionBecauseWrongConfig()\n {\n $this->config->set('solvency-groups', array(\n 'default-group' => 1,\n 'solvency-groups' => serialize(array())\n ));\n try {\n $this->config->getDefaultSolvencyGroup();\n } catch (Exception $e) {\n $this->assertEquals(\n 'No proper default group selected, please contact merchant!',\n $e->getMessage(),\n 'Exception has not expected message.'\n );\n return;\n }\n $this->fail('An expected exception has not been raised.');\n }", "title": "" }, { "docid": "132c8e5fca72104660ce1adef666693d", "score": "0.47794956", "text": "public function forbiddenError() {\n sfContext::getInstance()->getController()->redirect('errores/forbidden');\n\t}", "title": "" }, { "docid": "690bea662a33ded4b1b49e6f488021a1", "score": "0.4776551", "text": "public function expelFromGroup($group_id_array){\n global $USER; \n checkCapabilities('user:expelFromGroup', $USER->role_id);\n $groups = new Group();\n foreach ($group_id_array as $group_id) {\n $db = DB::prepare('SELECT COUNT(id) FROM groups_enrolments WHERE group_id = ? AND user_id = ?');\n $db->execute(array($group_id, $this->id));\n if($db->fetchColumn() >= 1) {\n $db = DB::prepare('UPDATE groups_enrolments SET status = 0, expel_time = NOW() WHERE group_id = ? AND user_id =? '); // Status 0 expelled\n if ($db->execute(array($group_id, $this->id))){\n $groups->load('id', $group_id);\n $_SESSION['PAGE']->message[] = array('message' => '<strong>'.$this->username.'</strong> erfolgreich aus <strong>'.$groups->group.'</strong> ausgeschrieben.', 'icon' => 'fa-user text-success');\n }\n }\n }\n }", "title": "" }, { "docid": "7bf1b7f425b446014ed32d27bb52210f", "score": "0.47706988", "text": "function unilabel_get_extra_capabilities() {\n return ['moodle/site:accessallgroups'];\n}", "title": "" }, { "docid": "1f2fc5047263868324794cc4a2770744", "score": "0.4755935", "text": "public function addGroup($group) {}", "title": "" }, { "docid": "e300a92816f4f816321c5b9169eaa78a", "score": "0.47550085", "text": "public function UserIsMemberOfGroupAdminOrDie() {\n\t\t\n\t\t// User must be member of group adm or die\n\t\tif($_SESSION['groupMemberUser'] != 'adm') \n\t\t\tdie('You do not have the authourity to access this page');\n\t}", "title": "" }, { "docid": "39939999e354d127731258cddd0e1792", "score": "0.47493526", "text": "function alterGroup($groupinfo) {\n // make sure user is authorized to do this\n die ('unimplemented: '.__CLASS__.'::'.__FUNCTION__.' ('.__LINE__.':'.__FILE__.')');\n }", "title": "" }, { "docid": "70c0d91ea5fe1c3d12bf2e8a22b566f0", "score": "0.47430748", "text": "public function allowInside($group, $inside)\n {\n if (!isset($this->_groups[$group])) {\n throw new Exception\\InvalidArgumentException(\"There is no group with the name '$group'.\");\n }\n if (!isset($this->_groups[$inside])) {\n throw new Exception\\InvalidArgumentException(\"There is no group with the name '$inside'.\");\n }\n\n $this->_groups[$inside][] = $group;\n\n return $this;\n }", "title": "" }, { "docid": "9c7105646dea0d3b27966c7a9cea42bb", "score": "0.47362825", "text": "public function setFieldsetValidationGroup()\n {\n $this->setValidationGroup(array(\n 'userFieldset' => array(\n 'firstname',\n 'surname',\n 'password'\n )\n ));\n }", "title": "" }, { "docid": "b734ba35c398a807653dcdfc23e784b6", "score": "0.47260612", "text": "public function testSaveLanguageGroupMethodException() {\n try {\n $this->localizationDao = $this->getMock('LocalizationDao');\n $langGroup = new LanguageGroup ();\n $this->localizationDao->expects($this->once())\n ->method('addLanguageGroup')\n ->will($this->throwException(New DaoException()));\n\n $this->locaizationService->setLocalizationDao($this->localizationDao);\n\n $result = $this->locaizationService->saveLanguageGroup($langGroup);\n } catch (Exception $ex) {\n return;\n }\n\n $this->fail('An expected exception has not been raised.');\n }", "title": "" }, { "docid": "cb20e2ac413b7f539be5f8b0100d8ed7", "score": "0.47217262", "text": "final public function addItemGroupWithoutSupervisor() {\n\n if (!empty($this->target_object)) {\n foreach ($this->target_object as $val) {\n if ($val->fields['groups_id'] > 0) {\n $this->addForGroup(2, $val->fields['groups_id']);\n }\n }\n }\n }", "title": "" }, { "docid": "eba38ea7b99f9a9044a8a8f7b2498be1", "score": "0.47091362", "text": "public function addGroup( Group $g ) : Asset\n {\n if( $g == NULL )\n {\n throw new e\\NullAssetException( S_SPAN . c\\M::NULL_GROUP . E_SPAN );\n }\n \n $group_name = $g->getName();\n \n if( isset( $this->getProperty()->applicableGroups ) )\n $group_string = $this->getProperty()->applicableGroups;\n else\n $group_string = \"\";\n \n $group_array = explode( ';', $group_string );\n \n if( !in_array( $group_name, $group_array ) )\n {\n $group_array[] = $group_name;\n }\n \n $group_string = implode( ';', $group_array );\n $this->getProperty()->applicableGroups = $group_string;\n return $this;\n }", "title": "" }, { "docid": "ba284f0574583682d758c16a4cb25bb9", "score": "0.47071135", "text": "public function enable_signaled_exceptions()\n {\n $this->_engine_exceptions = true;\n $this->_register_exception_handler();\n }", "title": "" }, { "docid": "fbbc4c3d3fc99742bb780c58fecdef09", "score": "0.47023854", "text": "function dllc_add_instance(stdClass $dllc, mod_dllc_mod_form $mform = null) {\n global $DB,$COURSE;\n $courseid = $COURSE->id;\n\n $data = new stdClass();\n $data->courseid = $courseid;\n $data->name = 'Participants '.$mform->get_data()->dateheuredebut;\n $data->description = 'Groupe pour les etudiants inscirts à l\\'atelier ';\n $data->descriptionformat = FORMAT_HTML;\n try {\n $newgroupid = groups_create_group($data);\n } catch (moodle_exception $e) {\n echo $e;\n }\n $dllc->timecreated = time();\n $dllc->salle = $mform->get_data()->salle;\n $dllc->grade = '';\n $dllc->c_atelier = $mform->get_data()->c_atelier;\n $dllc->niveau = $mform->get_data()->niveau;\n $dllc->ateliers = $mform->get_data()->ateliers;\n $dllc->dateheuredebut = $mform->get_data()->dateheuredebut;\n $dllc->dateheurefin = $mform->get_data()->dateheurefin;\n $dllc->nbplacedispo = $mform->get_data()->nbplacedispo;\n $dllc->idgroup = $newgroupid ;\n\n try {\n $dllc->id = $DB->insert_record('dllc', $dllc);\n } catch (dml_exception $e) {\n echo $e;\n }\n dllc_grade_item_update($dllc);\n\n return $dllc->id;\n\n\n\n}", "title": "" }, { "docid": "f224f046d66388fc6ee8a4a8d46a1166", "score": "0.47", "text": "public function testMissingResourcesAreNotAllowed(): void\n {\n $items = Category::factory()->count(1)->create();\n\n Livewire::actingAs(User::factory()->admin()->create())\n ->test(CategoriesTable::class, ['items' => $items])\n ->emit('edit', $items[0]->id)\n ->set('editValues.groups', [100])\n ->emit('save')\n ->assertHasErrors(['editValues.groups.*'])\n ->assertDispatchedBrowserEvent('notify', function ($name, $data) {\n return data_get($data, 'level') === 'error';\n });\n\n $this->assertEquals(0, $items[0]->groups()->count());\n }", "title": "" }, { "docid": "e32031ca64114cef1a116336f255fefb", "score": "0.46961352", "text": "public function checkPermissionToModule()\n\t{\n\t\tif (!$this->controller->request->isEmpty('module') && !Module::checkModuleAccess($this->controller->request->get('module'))) {\n\t\t\tthrow new \\Api\\Core\\Exception('No permissions for module', 403);\n\t\t}\n\t}", "title": "" }, { "docid": "48e4704957c4e1a167a574a16154011a", "score": "0.4695986", "text": "function braincert_get_extra_capabilities() {\n return array('moodle/site:accessallgroups');\n}", "title": "" }, { "docid": "4da4bf3862f71b39db9ab8b2d962133a", "score": "0.469505", "text": "public function assignGroup($values){\n\t\t\t$LoginID=$values['LoginID'];\t\n\t\t\tif(!empty($values)){\n\t\t\t\tinclude($_SERVER['DOCUMENT_ROOT'].'/_php/config.php');\n\t\t\t\t// -- Check that user is faculty\n\t\t\t\t$checkrole = \"SELECT Role From login WHERE LoginID = '$LoginID'\";\t\t\t\n\t\t\t\t$getRole = mysqli_query($con, $checkrole);\n\t\t\t\tif (mysqli_num_rows($getRole) > 0){\n\t\t\t\t\twhile($row = mysqli_fetch_array($getRole)){\n\t\t\t\t\t\t$myRole = $row['Role'];\n\t\t\t\t\t\tif ($myRole == 'Faculty'){\n\t\t\t\t\t\t\t// -- Create New Class Assignment\n\t\t\t\t\t\t\t$sql = \"INSERT INTO group_assign(GroupID, LoginID) VALUES (?,?);\";\n\t\t\t\t\t\t\t\t$stmt = $con->prepare($sql);\n\t\t\t\t\t\t\t\t$stmt->bind_param(\"si\", $values['GroupID'], $values['Subj']);\n\t\t\t\t\t\t\t\t$stmt->execute();\n\t\t\t\t\t\t\t\t$stmt->close();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{ \n\t\t\t\t\t\t\techo \"Only faculty can add people to groups. <br/> Please Login.\"; \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\telse{ \n\t\t\t\techo \"Only faculty can add people to groups. <br/> Please Login.\"; \n\t\t\t}\n\t\t}", "title": "" }, { "docid": "28a21973fced5b09413eb85e6ae54e9f", "score": "0.46883637", "text": "private function setGroup() {\n if (Request::has(\"include-group-read\") && Request::input(\"include-group-read\") === \"true\") { $permissionRead = 4; } else { $permissionRead = 0; }\n if (Request::has(\"include-group-write\") && Request::input(\"include-group-write\") === \"true\") { $permissionWrite = 2; } else { $permissionWrite = 0; }\n if (Request::has(\"include-group-execute\") && Request::input(\"include-group-execute\") === \"true\") { $permissionExecute = 1; } else { $permissionExecute = 0; }\n return $permissionRead + $permissionWrite + $permissionExecute;\n }", "title": "" }, { "docid": "e83b396a351cc82a37336a677d150ce5", "score": "0.46791857", "text": "public function addGroup( Group $g ) : Asset\n {\n if( $g == NULL )\n {\n throw new e\\NullAssetException( \n S_SPAN . c\\M::NULL_GROUP . E_SPAN );\n }\n \n $group_name = $g->getName();\n \n if( isset( $this->getProperty()->applicableGroups ) )\n $group_string = $this->getProperty()->applicableGroups;\n else\n $group_string = \"\";\n \n $group_array = explode( ';', $group_string );\n \n if( !in_array( $group_name, $group_array ) )\n {\n $group_array[] = $group_name;\n }\n \n $group_string = implode( ';', $group_array );\n $this->getProperty()->applicableGroups = $group_string;\n return $this;\n }", "title": "" }, { "docid": "19b7f6b7cd92f1802e0d4072ad0a5106", "score": "0.46705827", "text": "public function throwForbidden()\n {\n throw new Exception\\ForbiddenException('Forbidden', 1449130939);\n }", "title": "" }, { "docid": "a593957bf846a975f34265f8b713a6ad", "score": "0.4661293", "text": "protected function applyGroup(XsdGroup $group)\n {\n // It provides for naming a model group for use by reference in the XML representation of complex type \n // definitions and model groups. The correspondences between the properties of the information item and \n // properties of the component it corresponds to are as follows:\n \n // <group\n // id = ID\n // maxOccurs = (nonNegativeInteger | unbounded) : 1\n // minOccurs = nonNegativeInteger : 1\n // name = NCName\n // ref = QName\n // {any attributes with non-schema namespace . . .}>\n // Content: (annotation?, (all | choice | sequence)?)\n // </group>\n \n // Мать вашу, какому идиоту понадобилось использовать группы???\n throw new Exception('Мать вашу, какому идиоту понадобилось использовать группы???');\n }", "title": "" }, { "docid": "ca79f45eb034ab444036858382722570", "score": "0.46579963", "text": "public function groupPermissionProvider() {\n return [\n [\n [\n 'name' => 'edit own article content',\n 'title' => $this->t('Article: Edit own content'),\n 'description' => $this->t('Allows to update own article content'),\n 'default roles' => [OgRoleInterface::ADMINISTRATOR],\n 'restrict access' => FALSE,\n 'roles' => [OgRoleInterface::ADMINISTRATOR],\n ],\n ],\n ];\n }", "title": "" }, { "docid": "cbcb2b1fd9739d77ad05c92458a3d955", "score": "0.4656524", "text": "public function getExceptions();", "title": "" }, { "docid": "1e2e6bdbb412b2833396f9f08d4e8577", "score": "0.4636977", "text": "final public function addItemGroupSupervisor() {\n if (!empty($this->target_object)) {\n foreach ($this->target_object as $val) {\n if ($val->fields['groups_id'] > 0) {\n $this->addForGroup(1, $val->fields['groups_id']);\n }\n }\n }\n }", "title": "" }, { "docid": "b16ebe3f8bd55c4ebe4297e6514865f8", "score": "0.46357414", "text": "function virustotalscan_check_permissions($groups_comma)\r\n{\r\n global $mybb;\r\n // daca nu a fost trimis niciun grup ca si parametru\r\n if ($groups_comma == '') return false;\r\n // se verifica posibilitatea ca nu cumva sa fie mai multe grupuri trimise ca parametru\r\n $groups = explode(\",\", $groups_comma);\r\n // se creaza vectori cu acestee grupuri\r\n $add_groups = explode(\",\", $mybb->user['additionalgroups']);\r\n // se fac teste de apartenenta\r\n if (!in_array($mybb->user['usergroup'], $groups)) { \r\n // in grupul primar nu este\r\n // verificam mai departe daca este in cel aditional, secundar\r\n if ($add_groups) {\r\n if (count(array_intersect($add_groups, $groups)) == 0)\r\n return false;\r\n else\r\n return true;\r\n }\r\n else \r\n return false;\r\n }\r\n else\r\n return true;\r\n}", "title": "" }, { "docid": "1a2df679459051c149e0bcd797f05958", "score": "0.46323484", "text": "function new_groups()\n {\n \n }", "title": "" }, { "docid": "b084125efae6016a5d82101ede78f0c6", "score": "0.46300527", "text": "function eio_grp_add($grp, $req)\n{\n}", "title": "" }, { "docid": "a6f62faec989f0f6a1adf546782ae91d", "score": "0.46281323", "text": "function au_subgroups_group_invite($hook, $type, $return, $params) {\n $user_guid = get_input('user_guid');\n $group_guid = get_input('group_guid');\n $group = get_entity($group_guid);\n \n $parent = au_subgroups_get_parent_group($group);\n \n // if $parent, then this is a subgroup they're being invited to\n // make sure they're a member of the parent\n if ($parent) {\n if (!is_array($user_guid)) {\n $user_guid = array($user_guid);\n }\n \n $invalid_users = array();\n foreach($user_guid as $guid) {\n $user = get_user($guid);\n if ($user && !$parent->isMember($user)) {\n $invalid_users[] = $user;\n }\n }\n \n if (count($invalid_users)) {\n $error_suffix = \"<ul>\";\n foreach($invalid_users as $user) {\n $error_suffix .= \"<li>{$user->name}</li>\";\n }\n $error_suffix .= \"</ul>\";\n \n register_error(elgg_echo('au_subgroups:error:invite') . $error_suffix);\n return false;\n }\n }\n}", "title": "" }, { "docid": "7b4ac69dcd412c0bcdbaeb50d51afde2", "score": "0.46267965", "text": "public function createnewgroupAction()\n {\n $appraisal_id = $this->_getParam('appraisal_id',null);\n $manager_id = $this->_getParam('manager_id',null);\n $flag = $this->_getParam('flag',null);\n $group_id = $this->_getParam('group_id',null);\n \n $auth = Zend_Auth::getInstance();\n \tif($auth->hasIdentity())\n { \n $loginuserRole = $auth->getStorage()->read()->emprole;\n $loginuserGroup = $auth->getStorage()->read()->group_id;\n }\n \n try\n {\n if($appraisal_id != '' && $manager_id != '')\n {\n $appraisal_id = sapp_Global::_decrypt($appraisal_id);\n $manager_id = sapp_Global::_decrypt($manager_id);\n if($flag == 'edit')\n $group_id = sapp_Global::_decrypt($group_id);\n \n $app_manager_model = new Default_Model_Appraisalmanager();\n $appraisal_init_model = new Default_Model_Appraisalinit();\n $appraisal_qs_model = new Default_Model_Appraisalquestions();\n $check_array = array();\n $tablename = 'main_pa_questions_privileges';\n $manager_emp = $app_manager_model->getmanager_emp($appraisal_id, $manager_id,'');\n \n if(empty($manager_emp) && $flag == 'add')\n $this->view->ermsg = 'No employees to add.';\n \n $appraisaldata = $appraisal_init_model->getConfigData($appraisal_id);\n $appraisaldata = $appraisaldata[0];\n \n $questionPrivileges = $appraisal_qs_model->gethrquestionprivileges($appraisal_id,$tablename,''); \n \n $questionsArr = $appraisal_qs_model->getQuestionsByCategory($appraisaldata['category_id'],'');\n \n \tif(!empty($questionPrivileges))\n\t\t\t \t{\n\t\t\t \t\tif(isset($questionPrivileges['manager_qs']) && isset($questionPrivileges['manager_qs_privileges']))\n\t\t\t \t\t{\n\t\t\t \t\t\tif($questionPrivileges['manager_qs'] !='' && $questionPrivileges['manager_qs_privileges'] !='')\n\t\t\t \t\t\t{\n\t\t\t\t\t \t\t$hr_qs_Arr = explode(',',$questionPrivileges['manager_qs']);\n\t\t\t\t\t \t\t$hr_qs_privileges = json_decode($questionPrivileges['manager_qs_privileges'],true);\n\t\t\t\t\t\t \tforeach($hr_qs_privileges as $key => $val)\n\t\t\t\t\t\t \t{\n\t\t\t\t\t\t \t\t//$val = explode(',',substr($val, 1, -1));\n\t\t\t\t\t\t \t\t$check_array[$key] = $val;\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\n if(sapp_Global::_checkprivileges(APPRAISALQUESTIONS,$loginuserGroup,$loginuserRole,'edit') == 'Yes')\n {\n $appraisaldata['poppermission'] = 'yes';\n }\n $appraisaldata['poppermission'] = 'yes';\n $manager_emp_selected = array();\n $group_name = \"\";\n if($flag == 'edit')\n {\n $app_group_model = new Default_Model_Appraisalgroups();\n $group_details = $app_group_model->getAppraisalGroupsDatabyID($group_id);\n if(!empty($group_details))\n\t\t\t\t\t{\n $group_details = $group_details[0];\n\t\t\t\t\t\t$group_name = $group_details['group_name'];\n\t\t\t\t\t\t$manager_emp_selected = $app_manager_model->getmanager_emp($appraisal_id, $manager_id,$group_id);\n\t\t\t\t\t\t$manager_qs_privileges = json_decode($manager_emp_selected[0]['manager_qs_privileges'],true);\n\t\t\t\t\t\tforeach($manager_qs_privileges as $key => $val)\n\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t$check_array[$key] = $val;\n\t\t\t\t\t\t}\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$this->view->ermsg = 'No data found.';\n\t\t\t\t\t}\t\t\t\t\t\n }\n \n $view = $this->view;\n $view->appraisal_id = $appraisal_id;\n $view->manager_id = $manager_id;\n $view->manager_emp = $manager_emp;\n $view->questionsArr = $questionsArr;\n $view->checkArr = $check_array;\n $view->appraisaldata = $appraisaldata;\n $view->checkArr = $check_array;\n $view->flag = $flag;\n $view->group_name = $group_name;\n $view->group_id = $group_id;\n $view->selected_emp = $manager_emp_selected;\n }\n else\n {\n $this->view->ermsg = 'No data found.';\n }\n } \n catch (Exception $ex) \n {\n $this->view->ermsg = 'No data found.';\n }\n }", "title": "" }, { "docid": "2e73658258060999d92f508017ea46d7", "score": "0.46265838", "text": "public function testSaveThrowExceptionIfCannotSaveGroup()\n {\n $attributeSetId = 42;\n $groupId = 20;\n $groupMock = $this->createMock(\\Magento\\Eav\\Model\\Entity\\Attribute\\Group::class);\n $existingGroupMock = $this->createMock(\\Magento\\Eav\\Model\\Entity\\Attribute\\Group::class);\n $attributeSetMock = $this->createMock(\\Magento\\Eav\\Api\\Data\\AttributeSetInterface::class);\n $groupMock->expects($this->any())->method('getAttributeSetId')->willReturn($attributeSetId);\n $groupMock->expects($this->any())->method('getAttributeGroupId')->willReturn($groupId);\n $attributeSetMock->expects($this->any())->method('getAttributeSetId')->willReturn(10);\n $this->setRepositoryMock->expects($this->once())->method('get')->with($attributeSetId)\n ->willReturn($attributeSetMock);\n $this->groupFactoryMock->expects($this->once())->method('create')->willReturn($existingGroupMock);\n $this->groupResourceMock->expects($this->once())->method('load')->with($existingGroupMock, $groupId);\n $existingGroupMock->expects($this->any())->method('getId')->willReturn($groupId);\n $existingGroupMock->expects($this->once())->method('getAttributeSetId')->willReturn($attributeSetId);\n $this->groupResourceMock->expects($this->once())\n ->method('save')\n ->will($this->throwException(new \\Exception()));\n $this->model->save($groupMock);\n }", "title": "" }, { "docid": "5e15b9a28664ee0a4ca3b85dea9517f4", "score": "0.46239823", "text": "public function modify()\r\n\t{\r\n\t\tthrow new Exception('modify() has been disabled');\r\n\t}", "title": "" }, { "docid": "e0bff4444f6eb4501f6721069260122e", "score": "0.46236563", "text": "public function testGroupingThrows(): void\n {\n try {\n new Grouping([], ['property1']);\n $this->fail('InvalidArgumentException not thrown');\n } catch (InvalidArgumentException $ex) {\n $this->assertStringContainsString(sprintf('expected %s', Property::class), $ex->getMessage());\n }\n }", "title": "" }, { "docid": "c438b0ba2209aabefc3abd855067857a", "score": "0.46193442", "text": "public function maxExceptions();", "title": "" }, { "docid": "bf7710f090dc4bb2d42ac49ebb50a61b", "score": "0.4615486", "text": "public function modifyGroupRights($aScene) {\n\t\t//remove existing permissions\n\t\t$this->removeGroupPermissions($aScene->group_id);\n\t\t\n\t\t//add new permissions\n\t\t$theRightsList = array();\n\t\t$theRightGroups = $aScene->getPermissionRes('namespace');\n\t\tforeach ($theRightGroups as $ns => $nsInfo) {\n\t\t\t$nsInfo; //no-op to avoid warning of not using var\n\t\t\tforeach ($aScene->getPermissionRes($ns) as $theRight => $theRightInfo) {\n\t\t\t\t$theRightInfo; //no-op to avoid warning of not using var\n\t\t\t\t$varName = $ns.'__'.$theRight;\n\t\t\t\t$theAssignment = $aScene->$varName;\n\t\t\t\t//$this->debugLog($varName.'='.$theAssignment);\n\t\t\t\tif ($theAssignment==self::FORM_VALUE_Allow) {\n\t\t\t\t\tarray_push($theRightsList, array('ns'=>$ns, 'perm'=>$theRight, 'group_id'=>$aScene->group_id, 'value'=>self::VALUE_Allow) );\n\t\t\t\t} else if ($theAssignment==self::FORM_VALUE_Deny) {\n\t\t\t\t\tarray_push($theRightsList, array('ns'=>$ns, 'perm'=>$theRight, 'group_id'=>$aScene->group_id, 'value'=>self::VALUE_Deny) );\n\t\t\t\t}\n\t\t\t}//end foreach\n\t\t}//end foreach\n\t\tif (!empty($theRightsList)) {\n\t\t\t$theSql = SqlBuilder::withModel($this)->obtainParamsFrom($aScene);\n\t\t\t$theSql->startWith('INSERT INTO')->add($this->tnPermissions);\n\t\t\t$theSql->add('(namespace, permission, group_id, value) VALUES (:ns, :perm, :group_id, :value)');\n\t\t\t$theSql->execMultiDML($theRightsList);\n\t\t}\n\t}", "title": "" }, { "docid": "654156cdc51d3e0bc22a64ae3f9ef8e0", "score": "0.46064606", "text": "public function addException(\\DateTime $datetime) {\n $this->exrules[] = $datetime;\n }", "title": "" }, { "docid": "77d4e32655e731ee3c977ffc169788e9", "score": "0.46064028", "text": "function groups_create_from_children($course, $roles = 5) {\n\n // only run when course is a meta course\n if (record_exists(\"course_meta\", \"parent_course\", $course->id)) {\n\n // get all child courses for current meta\n $child_courses = get_courses_in_metacourse($course->id);\n\n // delete all members of current \"autocreate\" groups, leave manual groups alone\n // \"autocreate\" = if group exists with same name as child course, remove members from these groups only\n $del_group_ids = array();\n foreach ($child_courses as $child) {\n\t\t\t// nkowald - 2012-02-28 - Escape single quotes\n $mdl_group = get_record_select('groups', \"courseid = \".$course->id.\" AND name = '\".addslashes($child->fullname).\"' \" );\n if (is_object($mdl_group)) {\n $del_group_ids[] = $mdl_group->id;\n }\n }\n // if autocreate groups found\n if (count($del_group_ids) > 0) {\n $del_group_ids_csv = implode(',',$del_group_ids);\n // Group ids to exclude from member deletion\n groups_delete_group_members($course->id, 0, false, $del_group_ids_csv);\n }\n\n foreach ($child_courses as $child) {\n // Check if groups exist with these names in this course?\n\t\t\t// nkowald - 2012-02-28 - Escape single quotes\n $mdl_group = get_record_select('groups', \"courseid = \".$course->id.\" AND name = '\".addslashes($child->fullname).\"' \" );\n\n // If group does not exist, create it\n if (!is_object($mdl_group)) {\n $mdl_group = new StdClass;\n\t\t\t\t// nkowald - 2012-02-28 - Escape single quotes\n $mdl_group->name = addslashes($child->fullname);\n $mdl_group->description = '';\n $mdl_group->courseid = $course->id;\n\n $group_id = groups_create_group($mdl_group);\n\n if (!$mdl_group = get_record('groups', 'id', $group_id)){\n $error_creating_group = 'Creating group '.$child->fullname.' failed';\n error_log($error_creating_group);\n debugging($error_creating_group);\n continue;\n }\n }\n\n $context = get_context_instance(CONTEXT_COURSE, $child->id);\n // If user of given role type exist in child course add them to new group - sort by firstname\n if ($users_of_role = get_role_users($roles, $context, false, '', 'u.firstname ASC')) {\n foreach ($users_of_role as $user) {\n groups_add_member($mdl_group->id, $user->id);\n }\n }\n\n } //foreach child course\n return true;\n\n } else {\n $not_a_meta_course = 'Course given is not a meta course';\n error_log($not_a_meta_course);\n debugging($not_a_meta_course);\n return false;\n }\n}", "title": "" }, { "docid": "086d4ab1a2f736e9c2c69a8b60cc059e", "score": "0.4605093", "text": "public function enroleToGroup($group_id_array){\n global $USER; \n checkCapabilities('user:enroleToGroup', $USER->role_id);\n $groups = new Group();\n \n foreach ($group_id_array as $group_id) {\n $groups->id = $group_id; \n $groups->load();\n $db = DB::prepare('SELECT count(id) FROM groups_enrolments WHERE group_id = ? AND user_id = ?');\n $db->execute(array($group_id, $this->id));\n if($db->fetchColumn() > 0) {\n $db = DB::prepare('UPDATE groups_enrolments SET status = 1 WHERE group_id = ? AND user_id = ?');//Status 1 == enroled\n if ($db->execute(array($group_id, $this->id))){\n $_SESSION['PAGE']->message[] = array('message' => 'Nutzereinschreibung (<strong>'.$this->username.'</strong>) in <strong>'.$groups->group.'</strong> aktualisiert.', 'icon' => 'fa-user text-success');\n }\n } else { \n $db = DB::prepare('INSERT INTO groups_enrolments (status,group_id,user_id,creator_id) VALUES (1,?,?,?)'); //Status 1 == enroled\n if ($db->execute(array($group_id, $this->id, $USER->id))){\n \n $_SESSION['PAGE']->message[] = array('message' => '<strong>'.$this->username.'</strong> in <strong>'.$groups->group.'</strong> eingeschrieben.', 'icon' => 'fa-user text-success');\n }\n } \n }\n }", "title": "" }, { "docid": "cf8555dbd305f048425430215ca0e751", "score": "0.4601521", "text": "function addGroup($modulo) {\n\t\t\t$this->modulo *= $modulo; \n\t\t\t$this->count = ceil($this->count / $this->modulo) * $this->modulo;\n\t\t}", "title": "" }, { "docid": "5cb4d4668c357418a3f38f6aa0ea4260", "score": "0.45955867", "text": "function dragdrop_get_extra_capabilities() {\n return array(\n 'moodle/site:accessallgroups',\n );\n}", "title": "" }, { "docid": "9ecb258c9ab0b5ee70420ccb0ab2efc4", "score": "0.45858887", "text": "function tab_get_extra_capabilities() {\n return array('moodle/site:accessallgroups');\n}", "title": "" }, { "docid": "0611e04df024388eaeb429b0a121c99e", "score": "0.45768002", "text": "public function testAddUserFailsIfLackingPermissions(): void\n {\n $this->expectException(\\Exception::class);\n $this->slimStub->shouldReceive('halt')->times(1)->with(403, '{\"status\":403,\"message\":\"Access Denied\",\"title\":\"You do not have the permission: manage_users\"}')->andThrow(new \\Exception);\n\n $this->userController->_add_user();\n }", "title": "" }, { "docid": "37a8a8f76284d88a73afd8eefe4c5e18", "score": "0.45732418", "text": "public function checkTooManyFailedAttempts()\n {\n if (! RateLimiter::tooManyAttempts($this->throttleKey(), 10)) {\n return;\n }\n\n throw new Exception(__('controller.auth.login_attempts'), 401);\n }", "title": "" }, { "docid": "2fe9d22346e9d39d776ccb7be93cdcca", "score": "0.4572349", "text": "public function test_get_messages_limited_with_no_group_restriction_support() {\n // Create the generator object.\n $generator = $this->getDataGenerator()->get_plugin_generator('block_news');\n\n // Create news blocks.\n $nblock = $generator->create_instance(array(), array('courseid' => $this->course->id));\n\n // Create 2 news messages in news blocks.\n $message1 = new stdClass();\n $message1id = $generator->create_block_new_message($nblock, $message1);\n $message2 = new stdClass();\n $message2id = $generator->create_block_new_message($nblock, $message2);\n\n $bns = system::get_block_settings($nblock->id);\n $msgs = $bns->get_messages_limited(3);\n\n // When group restriction support is not enabled. Return 2 the messages.\n $this->assertEquals(2, count($msgs));\n }", "title": "" }, { "docid": "b8ffd6ade394d64205c21a2f172f8176", "score": "0.45615214", "text": "public function add_global_groups($groups)\n {\n }", "title": "" }, { "docid": "2dd7b7cc79e1dbd72f51f1b0573fd416", "score": "0.45544562", "text": "protected function registerExceptions($module, $id_hook, $id_shop, $excepts)\n {\n foreach ($excepts as $except) {\n if (!$except) {\n continue;\n }\n\n $sql = 'SELECT * FROM '. _DB_PREFIX_ .'hook_module_exceptions\n WHERE `id_shop` = '.(int)$id_shop.'\n AND `id_module` = '.(int)$module->id.'\n AND `id_hook` = '.(int)$id_hook.'\n AND `file_name` = \"'.pSQL($except).'\"';\n\n if (!Db::getInstance()->executeS($sql)) {\n $insert_exception = array(\n 'id_module' => (int)$module->id,\n 'id_hook' => (int)$id_hook,\n 'id_shop' => (int)$id_shop,\n 'file_name' => pSQL($except),\n );\n if (Db::getInstance()->insert('hook_module_exceptions', $insert_exception)) {\n $insert_exception = array(\n 'id_exceptions' => (int)Db::getInstance()->Insert_ID(),\n );\n\n if (!Db::getInstance()->insert('tmmegalayout_hook_module_exceptions', $insert_exception)) {\n return false;\n }\n }\n }\n }\n return true;\n }", "title": "" }, { "docid": "65dbf4ee820fd85646484b30d0103051", "score": "0.45501447", "text": "function createAnEvent($group)\n{\n $dataerror = false; //no error\n if ($group != null) {\n //If the required informations exist and if they are valid:\n if (isset($group['name'], $group['password'], $group['visibility']) && chkLength($group['name'], 50) && $group['visibility'] > 0 && $group['visibility'] < 13) {\n if (isset($group['context'])) {\n if (chkLength($group['context'], 200) == false) {\n $dataerror = true;\n }\n }\n if (isset($group['description'])) {\n if (chkLength($group['description'], 200) == false) {\n $dataerror = true;\n }\n }\n $group['restrict_access'] = chkToTinyint($group['restrict_access']);\n\n //Check password for important action\n if (checkUserPassword($_SESSION['user']['id'], $group['password'])) {\n\n unset($group['password']); //unset for not include it in the creation of the group\n $group['status'] = \"Créé le \" . date(\"d M y\");\n $group['creator_id'] = $_SESSION['user']['id'];\n $group['creation_date'] = timeToDT(time());\n\n createGroup($group);\n flshmsg(16); //\"group well created\" msg\n groups(); //back to groups page\n } else {\n flshmsg(15); //password error for action\n $dataerror = false; //unset error to protect the flshmsg of password error\n require_once \"view/createAGroup.php\";\n }\n displaydebug($group);\n } else {\n $dataerror = true;\n }\n if ($dataerror) {\n flshmsg(14);\n require_once \"view/createAGroup.php\";\n }\n displaydebug($dataerror);\n displaydebug($_SESSION);\n } else {\n require_once \"view/createAGroup.php\";\n }\n}", "title": "" }, { "docid": "49173b6f5aba5b5a4c11c8d009b5bef6", "score": "0.4547566", "text": "function groups_with_module_access()\n {\n \tif ( ! isset($this->cache['member_groups_with_access'] ))\n\t\t{\n\t\t\t$r = array();\n\n\t\t\tee()->db->select( 'modules.module_id, module_member_groups.group_id' );\n\t\t\tee()->db->where( 'LOWER('.ee()->db->dbprefix.'modules.module_name)', TAXONOMY_SHORT_NAME );\n\t\t\tee()->db->join( 'module_member_groups', 'module_member_groups.module_id = modules.module_id' );\n\t\t\t$groups = ee()->db->get('modules')->result_array();\n\n\t\t\tforeach ($groups as $group)\n\t\t\t{\n\t\t\t\t$r[] = $group['group_id'];\n\t\t\t}\n\n\t\t\t$this->cache['member_groups_with_access'] = $r;\n\n\t\t}\n\n\t\treturn $this->cache['member_groups_with_access'];\n }", "title": "" }, { "docid": "c93e5fbb9c2c775e41b009936c7d5d53", "score": "0.45475328", "text": "public function addAccessGroup($name)\n\t{\n\t\t//check, if the group already exists\n\t\tif($this->entityManager->find(\"yourCMDB:CmdbAccessGroup\", $name) != null)\n\t\t{\n\t\t\tthrow new CmdbAccessGroupAlreadyExistsException(\"An access group with that name already exists.\");\n\t\t}\n\n\t\t//create the group\n\t\t$group = new CmdbAccessGroup($name);\n\t\t$this->entityManager->persist($group);\n\t\t$this->entityManager->flush();\n\n\t\t//return the group object\n\t\treturn $group;\n\t}", "title": "" }, { "docid": "e657842d7f9f9ce8e9dad06e881e6e31", "score": "0.45395613", "text": "public function addGroupPermissions($groups){\n // automatically add permissions less than or equal to this permission\n foreach(User::TYPES() as $label => $value){\n if($value && $value <= \\Auth::getUserLevel()) $groups[] = $value;\n }\n\n // add relationship\n foreach($this->groups()->getResults() as $row){\n $row->delete();\n }\n\n // now add relationships\n $newRows = [];\n foreach($groups as $groupid){\n $newRows[] = [\n \"pageid\" => $this->id,\n \"groupid\" => $groupid\n ];\n }\n $this->groups()->createMany($newRows);\n }", "title": "" }, { "docid": "7b8e466c56e92b015e617bec4df021e8", "score": "0.45389262", "text": "public function setGroupID($id)\n {\n if(is_int($id) === false || (integer) $id < 0) {\n throw new LedgerException(sprintf('AccountGroupID must be an integer > 0'));\n }\n \n $this->__set(self::FIELD_GROUP_ID,$id);\n }", "title": "" }, { "docid": "62464424cddcd42d09372c00db897293", "score": "0.45299014", "text": "function addGroup($groupname){\n $file=fopen($this->fHtgroup,\"a\");\n fclose($file);\n }", "title": "" }, { "docid": "62464424cddcd42d09372c00db897293", "score": "0.45299014", "text": "function addGroup($groupname){\n $file=fopen($this->fHtgroup,\"a\");\n fclose($file);\n }", "title": "" }, { "docid": "1ceaa648e8d2d681f0cda271ff2af7c8", "score": "0.45277226", "text": "function customcert_get_conditional_issues_sql($cm, $groupmode) {\n global $CFG, $DB;\n\n // Get all users that can manage this customcert to exclude them from the report.\n $context = context_module::instance($cm->id);\n $conditionssql = '';\n $conditionsparams = array();\n if ($certmanagers = array_keys(get_users_by_capability($context, 'mod/customcert:manage', 'u.id'))) {\n list($sql, $params) = $DB->get_in_or_equal($certmanagers, SQL_PARAMS_NAMED, 'cert');\n $conditionssql .= \"AND NOT u.id $sql \\n\";\n $conditionsparams += $params;\n }\n\n $restricttogroup = false;\n if ($groupmode) {\n $currentgroup = groups_get_activity_group($cm);\n if ($currentgroup) {\n $restricttogroup = true;\n $groupusers = array_keys(groups_get_members($currentgroup, 'u.*'));\n if (empty($groupusers)) {\n return array();\n }\n }\n }\n\n $restricttogrouping = false;\n\n // If groupmembersonly used, remove users who are not in any group.\n if (!empty($CFG->enablegroupings) and $cm->groupmembersonly) {\n if ($groupingusers = groups_get_grouping_members($cm->groupingid, 'u.id', 'u.id')) {\n $restricttogrouping = true;\n } else {\n return array();\n }\n }\n\n if ($restricttogroup || $restricttogrouping) {\n if ($restricttogroup) {\n $allowedusers = $groupusers;\n } else if ($restricttogroup && $restricttogrouping) {\n $allowedusers = array_intersect($groupusers, $groupingusers);\n } else {\n $allowedusers = $groupingusers;\n }\n\n list($sql, $params) = $DB->get_in_or_equal($allowedusers, SQL_PARAMS_NAMED, 'grp');\n $conditionssql .= \"AND u.id $sql \\n\";\n $conditionsparams += $params;\n }\n\n return array($conditionssql, $conditionsparams);\n}", "title": "" }, { "docid": "2b70812c38a772fa7835b3bf083fe838", "score": "0.4526649", "text": "protected function failedAuthorization()\n {\n if ($this->container['request'] instanceof Request) {\n throw new HttpException(403);\n }\n\n parent::failedAuthorization();\n }", "title": "" }, { "docid": "ddb419ef1a18526bffedce60f5fc903d", "score": "0.45144677", "text": "public function forbidden() {\n\t\treturn [\n\t\t\t'errors' => [\n\t\t\t\t[\n\t\t\t\t\t'message' => \"You don't have permission to access this.\",\n\t\t\t\t\t'extensions' => [ 'code' => 'FORBIDDEN' ],\n\t\t\t\t],\n\t\t\t]\n\t\t];\n\t}", "title": "" }, { "docid": "eb09d7455677d1761068b9a87ec0e290", "score": "0.45106995", "text": "public function addAction() {\n list(, $groups) = Admin_Service_Group::getAllGroup();\n $this->assign('groups', $groups);\n $this->assign(\"meunOn\", \"sys_user\");\n }", "title": "" }, { "docid": "6aaeb60581e13e4e5c2a6810c8338590", "score": "0.45051023", "text": "function bigbluebuttonbn_get_extra_capabilities() {\n return array('moodle/site:accessallgroups');\n}", "title": "" }, { "docid": "edc3f12bb54c9868ce6a5e5920981496", "score": "0.45034316", "text": "protected function throwInaccessibleException() {}", "title": "" }, { "docid": "4faf92eefefea742a675ae494a89ef8e", "score": "0.45013678", "text": "function addGroup($groupname){\r\n\t\t$file=fopen($this->fHtgroup,\"a\");\r\n\t\tfclose($file);\r\n\t}", "title": "" }, { "docid": "35aa7870cd1b897db46d979e2b4e7ef7", "score": "0.44938105", "text": "public function getPageAccessFailureReasons() {}", "title": "" } ]
c256855639263a4907efb64600b8577a
This cron job will run every thirty minutes
[ { "docid": "61c9a03de9309556d0975e24c1d65e7c", "score": "0.6341077", "text": "public function thirty_minutes() {}", "title": "" } ]
[ { "docid": "906ce76f43db2a3687b5e306fa90493c", "score": "0.71712947", "text": "static function cron() {\n }", "title": "" }, { "docid": "1e3767f72c6d7d323762c9eded1fbe8b", "score": "0.7097519", "text": "function drush_file_cron() {\n set_time_limit(0);\n file_cron();\n drush_print(dt('A cron run has been completed.'));\n}", "title": "" }, { "docid": "fee16ec54ecd7297f389a70988708de4", "score": "0.70243776", "text": "public function cronAction()\n {\n Mage::getModel('signifyd_connect/cron')->retry();\n }", "title": "" }, { "docid": "63f51ddaa57bd4b5bafee90815a013fe", "score": "0.700214", "text": "public function cron_jobs() {\n \n }", "title": "" }, { "docid": "63f51ddaa57bd4b5bafee90815a013fe", "score": "0.700214", "text": "public function cron_jobs() {\n \n }", "title": "" }, { "docid": "63f51ddaa57bd4b5bafee90815a013fe", "score": "0.700214", "text": "public function cron_jobs() {\n \n }", "title": "" }, { "docid": "7a22c4d95489b16ec5ef3c9fc6a84674", "score": "0.6974936", "text": "public function executeCron()\n {\n $this->logger->info(\"Executing PMSE scheduled tasks\");\n $this->wakeUpSleepingFlows();\n }", "title": "" }, { "docid": "415fdbb9f9bc05e69e1f688ee94cb11d", "score": "0.6946251", "text": "function cron()\n{\n\t$CronTimes = GetCronTimes();\n\t\n}", "title": "" }, { "docid": "2d34fce6bf85aa68b28dd11149f5b311", "score": "0.6917488", "text": "function UpdateCronTimes()\n{\n\t\n}", "title": "" }, { "docid": "dfee10832daf79775c8478efab3ea4d8", "score": "0.6820869", "text": "public function run()\n\t{\n\t\tDB::table('core_cron')->delete();\n\t\t$config = array(\n\t\t\t'access_key_id' => 'AKIAJZI5EXGOZV22NQJQ',\n\t\t\t'secret_access_key' => '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',\n\t\t\t'application_name' => 'BetterStuff LowerPrice',\n\t\t\t'application_version' => '2010-10-01',\n\t\t\t'merchant_id' => 'A2KV19AYUKS3X0',\n\t\t\t'service_url' => 'https://mws.amazonservices.com');\n\t\t$config = json_encode($config);\n\n Cron::create(array(\n \t'channel_id' => 1,\n \t'platform' => 'amazon',\n \t'config' => $config,\n \t'interval' => 60,\n \t'last' => time(),\n \t'next' => time()+(60*60)));\n\t}", "title": "" }, { "docid": "a5e973c9286bca00e1b7452798f3c556", "score": "0.68010706", "text": "function _crons()\n {\n\t\n\t}", "title": "" }, { "docid": "95c22fe89fa5acb894e356cd619b9466", "score": "0.6764174", "text": "function pearson_cron () {\n return true;\n}", "title": "" }, { "docid": "b4e92c64259198da97c798cba5d348ed", "score": "0.6757053", "text": "function do_cj_custom_cron() {\r\n}", "title": "" }, { "docid": "f90b8b09c173d6be1d5ba1d366b42cb3", "score": "0.6714677", "text": "private static function create_cron_jobs()\n {\n }", "title": "" }, { "docid": "f955a1cfc72c71c287b79e1f9b03394c", "score": "0.67084426", "text": "function cron_job_registration() {\n\t\twp_schedule_event( time(), 'twicedaily', 'spri_naver_cron_job' );\n\t}", "title": "" }, { "docid": "65c2a907e8e96bbc917cb101b4f5c90a", "score": "0.6684271", "text": "public function getRunOnNextCronJob() {}", "title": "" }, { "docid": "658e8f3d2b660a57244ab27a24faba60", "score": "0.6675002", "text": "public function every10Minutes()\n {\n $this->schedule = 'every_10_minutes';\n $this->schedule();\n }", "title": "" }, { "docid": "04acd76a02f6f12c3599d6bae4e6ec40", "score": "0.6670856", "text": "function simplelesson_cron () {\n return true;\n}", "title": "" }, { "docid": "016b2e2f7fee25050d07f9c84b5e7d79", "score": "0.66494477", "text": "function easyyoutube_schedule_cron() {\n\t\t\tif ( !wp_next_scheduled( 'easyyoutube_cron_import' ) ) {\n\t\t\t\twp_schedule_event( time(), 'weekly', 'easyyoutube_cron_import' );\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "b8bd4e1b97794b3ef9a91f94b0c87813", "score": "0.66449904", "text": "public function runCron()\n {\n if( ! Mage::getStoreConfigFlag('system/mongo_queue/enabled')) {\n return;\n }\n $limit = (int) Mage::getStoreConfig('system/mongo_queue/limit');\n $time = (int) Mage::getStoreConfig('system/mongo_queue/time');\n Mage::helper('mongo/queue')->runQueue($limit, $time);\n }", "title": "" }, { "docid": "e8223a0bdf71f81537d70e9ec4b3bbeb", "score": "0.6635788", "text": "public function cron()\n\t\t{ \n\t\t\t$paymentResend = $this->Payment->find('all', array(\n\t\t\t\t'recursive' => -1,\n\t\t\t\t'conditions' => array(\n\t\t\t\t\t'send_game_status = ' => 0,\n\t\t\t\t\t'cron =' => 1\n\t\t\t\t),\n\t\t\t));\n\t\t\t$count = 0;\n\t\t\t$response = array();\n\t\t\tif ($paymentResend) {\n\t\t\t\tforeach ($paymentResend as $payment) {\n\t\t\t\t\t$log = $this->Billing->sendPaymentToGame($payment, 1);\n\t\t\t\t\t$count ++;\n\t\t\t\t\tarray_push($response, $log);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->set(array(\n\t\t\t\t'status' => 'Have '.$count. ' tasks run.',\n\t\t\t\t'log' => $response,\n\t\t\t\t'_serialize' => array('status', 'log')\n\t\t\t));\n\t\t}", "title": "" }, { "docid": "14633cfd0781ada8fa3aa0c1f8dcefb1", "score": "0.66326594", "text": "function chemillustrator_cron() {\n return true;\n}", "title": "" }, { "docid": "3ba0f4329ed0d63e07be03b3ec6fbd2d", "score": "0.6581943", "text": "public function schedule_cron_jobs() {\n\t\tif ( ! wp_next_scheduled( 'event_callback' ) ) {\n\t\t\twp_schedule_single_event( time(), 'event_callback' );\n\t\t}\n\t}", "title": "" }, { "docid": "6f243315da75a6f2036007e9e59947b7", "score": "0.6581434", "text": "public function cron($timeLimit = self::CRON_EXEC_TIME, $workerID = self::WORKER_ID);", "title": "" }, { "docid": "3bde832d130b4382317d90162d2a1188", "score": "0.657664", "text": "public function execute() {\n if (self::configUpdatedMoreRecentlyThanCron()) {\n CronManager::updateCron($this->jobs);\n }\n }", "title": "" }, { "docid": "13cc32739e44192288876fb4d7657fc3", "score": "0.6572804", "text": "function runCron()\r\n {\r\n $this->processAll();\r\n }", "title": "" }, { "docid": "0b9161473217fcf5f474c639bc2c4ffb", "score": "0.65477705", "text": "public static function customCron()\r\n {\r\n $eva = Eva::getInstance();\r\n\r\n // Yearly reset\r\n $lastReset = $eva->getSetting('last_reset');\r\n if (empty($lastReset) || time() - strtotime($lastReset) > 365 * 24 * 60 * 60) {\r\n $eva->query('UPDATE users SET form = NULL, teacherTag = NULL WHERE accessLevel < 2');\r\n $eva->setSetting('last_reset', date(\"Y\").Config::NEW_YEAR_DATE); // Set to current year\r\n }\r\n }", "title": "" }, { "docid": "15a5fe86517114a0d77f88ef3c0e836a", "score": "0.6513275", "text": "function icecream_cron () {\n return true;\n}", "title": "" }, { "docid": "ab762582e8c2e225e803481af06e7017", "score": "0.6509372", "text": "function bii_cron() {\n wp_clear_scheduled_hook('bii_4daily_event');\n\tif (!wp_next_scheduled('bii_4daily_event')) {\n\t\twp_schedule_event(time(), '4timesaday', 'bii_4daily_event');\n\t}\n}", "title": "" }, { "docid": "e2a92d301d39876c6b5660dbb46a84aa", "score": "0.6500368", "text": "function aiowps_daily_cron_event_handler()\r\n {\r\n }", "title": "" }, { "docid": "1ec5756dd228cd0efb08d451ce038c5d", "score": "0.64783996", "text": "public function cron()\n {\n if(! wp_next_scheduled('sync-' . $this->postType)){\n wp_schedule_event(\n strtotime('01:00:00'),\n 'hourly',\n 'sync-' . $this->postType\n );\n }\n\n add_action('sync-' . $this->postType, [$this,'getRemote']);\n }", "title": "" }, { "docid": "87bd265efe0f9a4011c18a895d01ad7b", "score": "0.6476567", "text": "function wcmps_renovacao_cron () {\n\t\tglobal $wpdb;\n\t\t$meta = get_option('woocommerce_woo-mercado-pago-split-basic_settings');\n\t\tif ( $meta['checkout_credential_prod'] == 'no' ) {\n\t\t\t$token = $meta['_mp_access_token_test'];\n\t\t} else {\n\t\t\t$token = $meta['_mp_access_token_prod'];\n\t\t}\n\t\t$hoje = date( 'Ymd' );\n\t\t$limite = date( 'Ymd', strtotime( date('Y-m-d H:i:s').\" - 1 month\" ) );\n\t\t$res = $wpdb->get_results( 'select user_id from '.$wpdb->prefix.'usermeta where meta_key = \"wcmps_refreshed\" and meta_value <= '.$limite, ARRAY_A );\n\t\tfor ( $i=0; $i<count($res); $i++ ) {\n\t\t\twcmps_renovacao( $res[$i]['user_id'], $meta, $token );\n\t\t}\n\t}", "title": "" }, { "docid": "50169fdcee2615348b394bcd411ad0be", "score": "0.6470173", "text": "protected function register_cron_jobs()\n\t\t{ \n\t\t\tif( wp_next_scheduled( self::PREFIX . 'cron_import_meetup_events' ) === false )\n\t\t\t{\n\t\t\t\twp_schedule_event(\n\t\t\t\t\tcurrent_time( 'timestamp' ),\n\t\t\t\t\tself::PREFIX . 'debug', // TODO: set to 'hourly' when done testing\n\t\t\t\t\tself::PREFIX . 'cron_import_meetup_events'\n\t\t\t\t);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "d675c00a62c68a8420680531c3a8ecc6", "score": "0.64667153", "text": "public function do_cron_job() {\n\t\tglobal $wpdb;\n\n\t\t//Get list of querys\n\t\t$query_list = $this->get_query_list();\n\n\t\t// for each query, get new articles\n\t\tforeach ( $query_list as $query ) {\n\t\t\t$this->maintenance_crawl( $query );\n\t\t}\n\n\t}", "title": "" }, { "docid": "18884c537a1002eb6932fbead15f0bac", "score": "0.6461589", "text": "public function cron()\n {\n if (Settings::get(\"lock_inactive_users/enable\")) {\n // Use better_cron if installed to run the cronjob in a regular interval\n if (class_exists(\"BetterCron\")) {\n BetterCron::days(\n \"lock_inactive_users/cron\",\n 1,\n function () {\n $this->deleteExpiredUsers();\n }\n );\n } else {\n // if better_cron is not installed run the cronjob on every page load\n // this may have a negative effect on site performance\n $this->deleteExpiredUsers();\n }\n }\n }", "title": "" }, { "docid": "9c22e2089e3609f6d9f092e1a52ddec7", "score": "0.64374936", "text": "public function everyMinute()\n {\n $this->schedule = 'every_minute';\n $this->schedule();\n }", "title": "" }, { "docid": "1d2655a8d009328573f3b93326d0abe4", "score": "0.6426708", "text": "function installCrontab($pathToXmltvFolder)\n{\n\t// The exact minutes are random so that the load on the server \n\t// is spread out evenly among all users.\n\t$minutes = \"\";\n\t$earlierMinutes = array();\n\t$selectedMinutes = array();\n\t$i = 0;\n\twhile($i < 3)\n\t{\n\t\t$randomMinute = rand(0,59);\n\t\tif($earlierMinutes[$randomMinute] !== true)\n\t\t{\n\t\t\t$earlierMinutes[$randomMinute] = true;\n\t\t\tarray_push($selectedMinutes,$randomMinute);\n\t\t\t$i++;\n\t\t}\n\t}\n\t\n\tsort($selectedMinutes);\n\t\n\t//$minutes = $selectedMinutes[0].\",\".$selectedMinutes[1].\",\".$selectedMinutes[2];\n\t\n\t//$tab = \"$minutes * * * * /usr/bin/php $pathToXmltvFolder/grabber/epg.downloader.php >/dev/null 2>&1\\n\"; \n\t//$tab = \"* * * * * /usr/bin/php $pathToXmltvFolder/grabber/epg.downloader.php > logger\\n\";\n\t$pathToLaunchAgents = fixPath(\"\\$HOME/Library/LaunchAgents\");\n if(file_exists($pathToLaunchAgents) === false)\n {\n system(\"/bin/mkdir $pathToLaunchAgents\");\n }\n if(file_exists(\"se.bizo.epgwidget.grabber.plist\"))\n {\n \t$plistContents = utf8_decode(file_get_contents(\"se.bizo.epgwidget.grabber.plist\")); // Open template plist\n $plistContents = utf8_encode(str_replace('$PATHTOGRABBER$', $pathToXmltvFolder . \"/grabber\", $plistContents)); // replace PATHTOGRABBER with real path to grabber \n if(!file_exists($pathToLaunchAgents . \"/se.bizo.epgwidget.grabber.plist\"))\n {\n $launchAgentPlist = fopen($pathToLaunchAgents . \"/se.bizo.epgwidget.grabber.plist\", \"w+\"); // create launchAgent plist file\n if(fwrite($launchAgentPlist, $plistContents) === FALSE)\n {\n \t // could not write to file :-(\n }\n fclose($launchAgentPlist);\n }\n }\n //$answer = exec(\"/bin/cp se.bizo.epgwidget.grabber.plist $pathToLaunchAgents\");\n\t/*$epgCrontab = fopen(\"$pathToXmltvFolder/grabber/epg.crontab\",\"w+\");\n\tfwrite($epgCrontab,utf8_encode($tab));\n\tfclose($epgCrontab);\n\t$answer = exec(\"/usr/bin/crontab $pathToXmltvFolder/grabber/epg.crontab\");*/\n}", "title": "" }, { "docid": "b8c07f7850fc7e1aa2ca03a610c56d42", "score": "0.6401918", "text": "public function ActionTestCron()\n\t{\n\t\t$model = $this->getModelFromCache('PiratesNewsFeed_Model_PiratesNewsFeed');\n\t\t$blogs = $model->runCron();\n\n\t\tdie(\"response..\".print_r($blogs,1));\n\n\t}", "title": "" }, { "docid": "9fcea06188fef5be79f3d16c98228101", "score": "0.6395227", "text": "function drupal_cron_run() {\n // If not in 'safe mode', increase the maximum execution time:\n if (!ini_get('safe_mode')) {\n set_time_limit(240);\n }\n\n // Fetch the cron semaphore\n $semaphore = variable_get('cron_semaphore', FALSE);\n\n if ($semaphore) {\n if (time() - $semaphore > 3600) {\n // Either cron has been running for more than an hour or the semaphore\n // was not reset due to a database error.\n watchdog('cron', t('Cron has been running for more than an hour and is most likely stuck.'), WATCHDOG_ERROR);\n\n // Release cron semaphore\n variable_del('cron_semaphore');\n }\n else {\n // Cron is still running normally.\n watchdog('cron', t('Attempting to re-run cron while it is already running.'), WATCHDOG_WARNING);\n }\n }\n else {\n // Register shutdown callback\n register_shutdown_function('drupal_cron_cleanup');\n\n // Lock cron semaphore\n variable_set('cron_semaphore', time());\n\n // Iterate through the modules calling their cron handlers (if any):\n module_invoke_all('cron');\n\n // Record cron time\n variable_set('cron_last', time());\n watchdog('cron', t('Cron run completed.'), WATCHDOG_NOTICE);\n\n // Release cron semaphore\n variable_del('cron_semaphore');\n\n // Return TRUE so other functions can check if it did run successfully\n return TRUE;\n }\n}", "title": "" }, { "docid": "ea21e8d0edcbf691a7b3ca1499cfa635", "score": "0.6387468", "text": "function cron() {\n foreach ($this->get_items('cron') as $item) {\n if ($item->is_active()) {\n $item->cron();\n }\n }\n }", "title": "" }, { "docid": "1b65ab5b369c0906fce4a15beb2659c4", "score": "0.6380716", "text": "function do_this_hourly() {\r\n}", "title": "" }, { "docid": "d00f6b569df51c1cea1eadbd79c26aff", "score": "0.6369097", "text": "public function run() {\n\n\t\t// echo \"Running cron at \" . $this->now->format('Y-m-d H:i:s') . \"\\n\";\n\n // On the hour\n if ($this->timediff->m == 0)\n {\n // hour 0 - midnight\n if ($this->timediff->h == 0)\n {\n // Daily Job\n\t\t\t\t// echo \" - Running daily jobs\\n\";\n if (is_callable([$this, 'day'])) $this->day();\n }\n\n // Hourly job\n\t\t\t// echo \" - Running hourly jobs\\n\";\n if (is_callable([$this, 'hour'])) $this->hour();\n }\n\n // Minutely job\n\t\t// echo \" - Running minutely jobs\\n\";\n if (is_callable([$this, 'minute'])) $this->minute();\n\n }", "title": "" }, { "docid": "9d804df6aa0a21672c0e39863813fd7d", "score": "0.6365555", "text": "function aiowps_hourly_cron_event_handler()\r\n {\r\n do_action('aiowps_perform_scheduled_backup_tasks');\r\n do_action('aiowps_perform_fcd_scan_tasks');\r\n do_action('aiowps_perform_db_cleanup_tasks');\r\n }", "title": "" }, { "docid": "cd6d8f603e184f4813021a6625acd1ae", "score": "0.6332406", "text": "function tracker_cron () {\n\n return true;\n}", "title": "" }, { "docid": "df94e2fda7202037383fbae6955e97e1", "score": "0.6307962", "text": "function neurok_cron () {\n return false;\n}", "title": "" }, { "docid": "80545526dbd91838a8eb123981deced1", "score": "0.6301419", "text": "function wp_doing_cron()\n{\n}", "title": "" }, { "docid": "1adabe90136276564173ea1c114595bf", "score": "0.6300647", "text": "public static function check_cron()\n {\n // Get next scheduled event timestamp\n $scheduled = wp_next_scheduled('woochimp_process_scheduled_events');\n\n // Get current timestamp\n $timestamp = time();\n\n // Cron is set and is valid\n if ($scheduled && $scheduled <= ($timestamp + 600)) {\n return;\n }\n\n // Remove all cron entries by key\n wp_clear_scheduled_hook('woochimp_process_scheduled_events');\n\n // Add new cron entry\n wp_schedule_event(time(), 'woochimp_five_minutes', 'woochimp_process_scheduled_events');\n }", "title": "" }, { "docid": "ea8a2b7bf939ec3548667dcb508fff67", "score": "0.62900794", "text": "public function set_renewFeedTransients_cron() {\n\t\twp_schedule_single_event( time(), 'renewFeedTransients' );\n\t}", "title": "" }, { "docid": "8fc365a95ece4a329b2a684b229e7c06", "score": "0.6286412", "text": "function cron_add_minute( $schedules ) {\n\t!empty(get_option('cron_mint'))?$inter=(get_option('cron_mint')*60):$inter=7200;\n $schedules['everyminute'] = array(\n\t 'interval' => $inter,\n\t 'display' => __( 'Actualizar Stock' )\n );\n return $schedules;\n}", "title": "" }, { "docid": "dcb4935099d77d54bb2d211dbe815ee1", "score": "0.6284679", "text": "function _runCron()\n\t{\n\t if(!defined('IN_CRON'))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t \n\t\t$load = $this->CI->functions->getServerLoad(0);\n\t\tif($load > 100)\n\t\t{\n\t\t $load = 100;\n\t\t}\n\n\t\t$free_space = disk_free_space(dirname('filestore/'));\n\t\t$total_space = disk_total_space(dirname('filestore/'));\n\t\t\n\t\t$data = array(\n\t\t\t'free_space' => $free_space,\n\t\t\t'total_space' => $total_space,\n\t\t\t'used_space' => ($total_space - $free_space),\n\t\t\t'num_files' => $this->CI->db->get_where('files', array('server' => base_url()))->num_rows()\n\t\t);\n\t\t\n\t\t$this->CI->db->where('url', base_url());\n\t\t$this->CI->db->update('servers', $data);\n\t}", "title": "" }, { "docid": "5ff6d6f940c8c311d9cdcf5e5698b0ca", "score": "0.62833023", "text": "public static function run()\n\t{\n $time_start = microtime(true);\n\t\t//get active crons and due to execute now or next execute is NULL\n $crontab = new Cron();\n $crontab = $crontab->where('active','=',1)\n ->where_open()\n //->or_where('date_next','<=',Date::unix2mysql())\n ->or_where('date_next','<=',date(\"Y-m-d H:i:s\"))\n ->or_where('date_next','IS',NULL)\n ->where_close()\n ->find_all();\n var_dump(\"running....\");\n $crons_executed = 0;\n foreach ($crontab as $cron) \n {\n //check if cron is running, if running but passed treshold, lets launch it again...\n if ($cron->running == 0 OR ( $cron->running == 1 AND ( time() - \n //Date::mysql2unix($cron->date_started)) >= self::TRESHOLD \n strtotime($cron->date_started) >= self::TRESHOLD ) ))\n {\n $cron->execute();\n $crons_executed++;\n }\n }\n\n $seconds = microtime(true) - $time_start;\n \n return sprintf('Executed %d cronjobs in %d seconds',$crons_executed,$seconds);\n\t}", "title": "" }, { "docid": "75cd39a8ce8d9fb3a20ccc40780fa12f", "score": "0.62800825", "text": "public function cron() {\n global $DB;\n\n $timenow = time();\n $rununtil = $timenow + (($this->duration > 0) ? $this->duration : USERACT_TIME_LIMIT);\n\n // Block other ETL cron tasks.\n $this->set_etl_task_blocked($timenow + ETL_BLOCKED_MAX_TIME);\n\n if (!isset($this->state['last_processed_time']) || (time() - $this->state['last_processed_time']) >= DAYSECS) {\n $this->state['recs_last_processed'] = 0;\n $this->state['last_processed_time'] = time();\n $this->state['log_entries_per_day'] = (float)$DB->count_records_select('log', 'time >= ? AND time < ?',\n array($this->state['last_processed_time'] - 10 * DAYSECS, $this->state['last_processed_time'])) / 10.0;\n }\n do {\n list($completed, $total) = $this->user_activity_task_process();\n $this->state['recs_last_processed'] += $completed;\n } while (time() < $rununtil && $completed < $total);\n\n if ($completed < $total) {\n $this->user_activity_task_save();\n } else {\n $this->user_activity_task_finish();\n }\n\n // Clear blocking.\n $this->set_etl_task_blocked(0);\n }", "title": "" }, { "docid": "009e35cfcbf56c9350bc7aab6fc56e2d", "score": "0.6279582", "text": "public function trigger_fake_cron() {\n $t_id = 'wpu_temp_user_last_cron';\n if (get_transient($t_id)) {\n return;\n }\n set_transient($t_id, '1', 3600);\n $this->delete_old_users();\n }", "title": "" }, { "docid": "6a2cd06efd200e54eced3f9e14d00c3b", "score": "0.6274693", "text": "function check_cron() {\n \tif (!wp_next_scheduled('eventification_cron')) {\n \t\twp_schedule_event(time(), 'hourly', 'eventification_cron');\n \t}\n }", "title": "" }, { "docid": "bb3e718e3d5f7854a78d6e4dad5081e4", "score": "0.62644345", "text": "public function every15Minutes()\n {\n $this->schedule = 'every_15_minutes';\n $this->schedule();\n }", "title": "" }, { "docid": "a5bd19a6ae4339756e2a2a944efc67c8", "score": "0.6264001", "text": "public function actionCron()\n {\n $u_id = Yii::app()->user->id;\n $isAdmin = array_key_exists($u_id, $this->admin);\n \n if (($_SERVER['SERVER_ADDR'] == $_SERVER['REMOTE_ADDR']) || $isAdmin) {\n \n $time = date(\"H:i\",time());\n $dayMonth = date(\"d-m\", time());\n \n if ( $time=='00:00' || $time=='02:00' || $time=='04:00' || $time=='06:00' || $time=='08:00' || $time=='10:00'\n || $time=='12:00' || $time=='14:00' || $time=='16:00' || $time=='18:00' || $time=='20:00' || $time=='22:00'\n ) {\n $this->actionGetxml();\n }\n else if ($time=='00:00')\n {\n $this->actionCalculatewin();\n }\n else if (($dayMonth=='31.01' && $time=='23:59') || ($dayMonth=='28.02' && $time=='23:59') || ($dayMonth=='31.03' && $time=='23:59') || ($dayMonth=='30.04' && $time=='23:59') \n || ($dayMonth=='31.05' && $time=='23:59') || ($dayMonth=='30.06' && $time=='23:59') || ($dayMonth=='31.07' && $time=='23:59') || ($dayMonth=='31.08' && $time=='23:59')\n || ($dayMonth=='30.09' && $time=='23:59') || ($dayMonth=='31.10' && $time=='23:59') || ($dayMonth=='30.11' && $time=='23:59') || ($dayMonth=='31.12' && $time=='23:59')\n ) {\n $this->actionNewmonth();\n }\n \n } else {\n die('Access forbidden!');\n }\n \n exit();\n }", "title": "" }, { "docid": "760a3bbd1de81e90a50fc641e181dc1a", "score": "0.6254681", "text": "public function set_cron_jobs()\n {\n\n do_action('wpbs_wc_set_cron_jobs');\n\n }", "title": "" }, { "docid": "c95d00de4d4976e6573fa8caa2871cd7", "score": "0.6252228", "text": "public static function cron() {\n $extensions = AAM_Core_API::getOption('aam-extensions', null, 'site');\n\n if (!empty($extensions) && AAM_Core_Config::get('core.settings.cron', true)) {\n //grab the server extension list\n AAM_Core_API::updateOption(\n 'aam-check', AAM_Core_Server::check(), 'site'\n );\n }\n }", "title": "" }, { "docid": "72a18757c7a1d5cc0310783c7831cf44", "score": "0.6226999", "text": "public function dummyCronJob()\n {\n $this->setState('dummy cron job last run', time());\n }", "title": "" }, { "docid": "78ce0093a9684eb9f35ad966060e6908", "score": "0.62242496", "text": "public function cronjob()\n {\n \n // $lines = file_get_contents($request->rss);\n $crontime = DB::table('cronjobs')->where('id', 1)->first();\n $t_now = (int) date('H');\n $m_now = (int) date('i');\n // dd( (int)$crontime->time );\n\n if($t_now == (int) $crontime->time && $m_now == (int)$crontime->minute) {\n $urlrssx = RssUrl::all();\n $arrContextOptions=array(\n \"ssl\"=>array(\n \"verify_peer\"=>false,\n \"verify_peer_name\"=>false,\n ),\n ); \n foreach ($urlrssx as $key => $urlrss) {\n \tif($urlrss->url == 'http://160.16.183.94:8080/') continue;\n $doc = new DOMDocument();\n\t\t @$doc->load($urlrss->url);\n\t\t $items = $doc->getElementsByTagName( \"item\");\n\n\t\t if($items->length == 0){\n\t\t $items = $doc->getElementsByTagName( \"entry\");\n\t\t }\n\t\t if(!count($items)) {\n\t\t \t$response = file_get_contents($urlrss->url, false, stream_context_create($arrContextOptions));\n\t\t \t@$doc->loadXML($response);\n\t\t \t$items = $doc->getElementsByTagName( \"item\");\n\n\t\t\t if($items->length == 0){\n\t\t\t $items = $doc->getElementsByTagName( \"entry\");\n\t\t\t }\n\t\t }\n foreach ($items as $key => $item) {\n $tagtitle = $item->getElementsByTagName( \"title\" );\n if(count($tagtitle)) {\n $title = $tagtitle->item(0)->nodeValue;\n }\n\n $taglink = $item->getElementsByTagName( \"link\" );\n if(count($taglink)) {\n $link = $taglink->item(0)->nodeValue;\n }\n if($link==\"\"){\n $link = $taglink->item(0)->getAttribute('href');\n }\n \n $tagpubDate = $item->getElementsByTagName( \"pubDate\" );\n if($tagpubDate->length == 0){\n $tagpubDate = $item->getElementsByTagName( \"published\");\n }\n $date = '0000-00-00 00:00:00';\n if(count($tagpubDate)) {\n $pubDate = $tagpubDate->item(0)->nodeValue;\n $date = date('Y-m-d H:i:s', strtotime($pubDate));\n }\n if(@$link) {\n $checks = Rss::where('url', @$link)->where('block', 1)->first();\n if(!$checks){\n $ck = ['url'=>@$link];\n $dl = [\n 'title' => @$title,\n 'category_id'=>$urlrss->category_id,\n // 'url'=>$link,\n 'date' => @$date,\n ];\n // dd($dl);\n \n $rs = Rss::updateOrCreate($ck, $dl);\n }\n }\n }\n }\n Rss::where('created_at', '>', date('Y-m-d'))\n ->where('created_at', '<=', date('Y-m-d').' 23:59:59')\n ->update(['publish'=> 1]);\n $rss_ctl = Rss::where('created_at', '>', date('Y-m-d'))\n ->where('created_at', '<=', date('Y-m-d').' 23:59:59')\n ->groupBy('category_id')\n ->get();\n if(count($rss_ctl)) {\n foreach ($rss_ctl as $key => $value) {\n $title = '学会からのお知らせが更新されました';\n $push_data = [\n 'title' => $title,\n 'body' => \"\",\n 'type' => 1,\n 'association_id' => $value->category_id\n ];\n $users = User::with(['devices'])\n ->whereHas('association', function($qr)use($value){\n $qr->where('category_id', $value->category_id);\n })\n ->has('devices')\n ->get();\n if(count($users)) {\n foreach ($users as $keyp => $valuep) {\n if($valuep->rss) {\n $rss_p = json_decode($valuep->rss);\n }else{\n $rss_p = [];\n }\n $rss_p[] = $value->id;\n $datarss = ['rss'=>json_encode(array_merge($rss_p))];\n User::where('id', $valuep->id)->update($datarss);\n if(@$valuep->devices) {\n foreach ($valuep->devices as $keyd => $valued) {\n notification_push($valued->token, $title, $push_data);\n }\n }\n \n }\n }\n }\n }\n }\n }", "title": "" }, { "docid": "94c7e38f2d1a6f646b19cab13a72c2e6", "score": "0.62202215", "text": "function pt_add() {\n\t\t$this->_clean_cron_array();\n\t\twp_schedule_event( time(), 'every_50', $this->_hook, array() );\n\t}", "title": "" }, { "docid": "ef18e4b67d3054c3c20f51735d24754f", "score": "0.6194312", "text": "public static function executeCron(){\n $manager = new AlertCron();\n $manager ->run();\n }", "title": "" }, { "docid": "6f103ba4c3c2865c2e85f087a48f13a5", "score": "0.61931884", "text": "function remarmoodle_cron () {\n return true;\n}", "title": "" }, { "docid": "c7b7bab56a235d5d78a6850ecf11cfd7", "score": "0.61709887", "text": "public function actionEveryMinute() {\n\n return self::EXIT_CODE_NORMAL;\n }", "title": "" }, { "docid": "e2f524a4da4fa77da38d7da12b10f161", "score": "0.61631554", "text": "function periodic_daily() {\n\n\trequire_once(\"certs.inc\");\n\tcert_notify_expiring();\n\n\t/* Allow packages to define and execute daily tasks */\n\tpkg_call_plugins('plugin_periodic', array('event' => 'daily'));\n\n}", "title": "" }, { "docid": "995212183d7a5242edceb6882b75be9a", "score": "0.61594975", "text": "public function cron() {\r\n //echo 'started';die;\r\n error_reporting(0);\r\n $mails = $this->getLatestMails();\r\n print_r($mails);\r\n if (count($mails)) {\r\n foreach ($mails as $mail) {\r\n $pattern = '/^.*\\[complaint\\-(?P<id>\\d+)\\].*$/';\r\n if (preg_match($pattern, $mail['subject'], $matches)) {\r\n $ticketId = $matches['id'];\r\n $ticket = Ticket::find($ticketId);\r\n try {\r\n $user = Sentry::findUserByLogin($mail['from']);\r\n TicketThread::create(array('ticket_id' => $ticketId,\r\n 'comment' => Ticket::removeOldMessage($mail['message']), 'commented_by_id' => $user->id));\r\n \r\n //Ticket\r\n //Ticket::sendDiscussionMail($ticket['assigned_to_id'], $ticketId);\r\n $eventArr = ['ticket_id' => $ticketId, 'created_by_id' => $user->id, 'message' => $user->first_name . ' ' . $user->last_name . ' has commented on complaint ' . Ticket::hyperlink($ticketId) . ' through mail'];\r\n TicketEventLog::create($eventArr);\r\n } catch (UserNotFoundException $ex) {\r\n echo $mailArr['from'] . ' not foud';\r\n }\r\n } else {\r\n $res = $this->createNewComplaint($mail);\r\n }\r\n }\r\n }\r\n die;\r\n }", "title": "" }, { "docid": "d1c6d503c8b2869ff7b4b40a4b12e543", "score": "0.61525434", "text": "function spawn_cron($gmt_time = 0)\n{\n}", "title": "" }, { "docid": "506ced97dd4c73fa9fa7a50dbc6c8d8a", "score": "0.61479014", "text": "function intellipaat_course_access_report_cron_job() {\r\n\t//echo date('Y-m-d H:i:s'); \r\n//\techo date('Y-m-d H:i:s', time()+(60*60*5)+1800 );\r\n//\tdie;\r\n\t\r\n\t$next_day = strtotime(date('Y-m-d 03:30:00', strtotime('+1 day')));\r\n\t\r\n\t//wp_clear_scheduled_hook('intellipaat_daily_course_access_report');\r\n\tif ( ! wp_next_scheduled( 'intellipaat_daily_course_access_report' ) ) {\r\n\t\twp_schedule_event( $next_day, 'daily', 'intellipaat_daily_course_access_report' );\r\n\t}\r\n}", "title": "" }, { "docid": "919e267bf908ac4510a83d549e6ad6f7", "score": "0.6138703", "text": "function smartcom_cron () {\n return true;\n}", "title": "" }, { "docid": "8a5a47051f9b7f6b355fe44c98e95a98", "score": "0.61385393", "text": "public static function onCronHourlyRun($event)\n {\n if (static::getModule()->enableMailSummaries) {\n Yii::$app->queue->push(new SendMailSummary(['interval' => MailSummary::INTERVAL_HOURLY]));\n }\n }", "title": "" }, { "docid": "1b73a40cff05a9181b14510b2b9e5dc8", "score": "0.6132496", "text": "public function every5Minutes()\n {\n $this->schedule = 'every_5_minutes';\n $this->schedule();\n }", "title": "" }, { "docid": "4ebd7d51043ab322080325f82e9fa480", "score": "0.6123806", "text": "function periodic_monthly() {\n\n\t/* Allow packages to define and execute monthly tasks */\n\tpkg_call_plugins('plugin_periodic', array('event' => 'monthly'));\n\n}", "title": "" }, { "docid": "13bd3cb998ea0598cb6df2f37ad613bc", "score": "0.6114916", "text": "public static function cronjobs_v0_1_78(Model_Node $node)\n\t{\n\t\t//Sown::process_cron_jobs();\t\t\n\t\tstatic::send_shell_script(\"return 0\");\n\t}", "title": "" }, { "docid": "bd2a0e3ba4c493f9ed8cfddf2343e6f2", "score": "0.61109215", "text": "public function everyHour()\n {\n $this->schedule = 'hourly';\n $this->schedule();\n }", "title": "" }, { "docid": "694b6451b2a337c5c7cff775da52ba82", "score": "0.61042464", "text": "protected function schedulePruning()\n {\n $schedule = $this->app->make(Schedule::class);\n $schedule->call(new PruneStaleWysiwygFiles)->daily();\n }", "title": "" }, { "docid": "3942471490218778826cafe1616301e0", "score": "0.61032504", "text": "public static function cron15() {\r\n\t\tlog::add('publiemeteo', 'debug', 'Appel a cron15');\r\n\t\tif (config::byKey('wunderground_id', 'publiemeteo') != '') {\r\n\t\t\tlog::add('publiemeteo', 'debug', 'Envoie des donnees vers wunderground');\r\n\t\t\t/*\r\n\t\t\thttp://weatherstation.wunderground.com/weatherstation/updateweatherstation.php\r\n\t\t\thttp://wiki.wunderground.com/index.php/PWS_-_Upload_Protocol\r\n\t\t\t*/\r\n\t\t\tlog::add('publiemeteo', 'debug', 'Prepare les entêtes');\r\n\t\t\t$post['action'] = 'updateraw';\r\n\t\t\t$post['ID'] = config::byKey('wunderground_id', 'publiemeteo');\r\n\t\t\t$post['PASSWORD'] = config::byKey('wunderground_password', 'publiemeteo');\r\n\t\t\t$OldTZ = date_default_timezone_get();\r\n\t\t\tdate_default_timezone_set('UTC');\r\n\t\t\t$post['dateutc'] = date('Y-m-d H:i:s');\r\n\t\t\tdate_default_timezone_set($OldTZ);\r\n\t\t\t// Get Plugin info\r\n\t\t\t$data_to_send = false;\r\n\t\t\t$post['softwaretype'] = 'Jeedom publiemeteo';\r\n\t\t\tlog::add('publiemeteo', 'debug', 'Prepare les données');\r\n\t\t\tforeach (array(\r\n\t\t\t\t\"tempf temp 1.8 32\",\r\n\t\t\t\t\"baromin pression 0.000295299 0\",\r\n\t\t\t\t\"humidity humidite 1 0\",\r\n\t\t\t\t\"dailyrainin pluie 1 0\",\r\n\t\t\t\t\"rainin pluieheure 1 0\",\r\n\t\t\t\t\"dewptf pointrosee 1.8 32\",\r\n\t\t\t\t\"windspeedmph vent 0.6213711 0\",\r\n\t\t\t\t\"windgustmph rafalevent 0.6213711 0\",\r\n\t\t\t\t\"winddir dirvent 1 0\"\r\n\t\t\t) as $element) {\r\n\t\t\t\tlist($key, $indice, $coef, $add) = explode(' ', $element);\r\n\t\t\t\tlog::add('publiemeteo', 'debug', 'Prepare information ' . $key);\r\n\t\t\t\t$cmd_id = config::byKey($indice, 'publiemeteo');\r\n\t\t\t\tif ($cmd_id != \"\") {\r\n\t\t\t\t\t$cmd = cmd::byId($cmd_id);\r\n\t\t\t\t\tif (is_object($cmd)) {\r\n\t\t\t\t\t\t$cmd->execCmd();\r\n\t\t\t\t\t\tif (time() - strtotime($cmd->getCollectDate()) < 900) {\r\n\t\t\t\t\t\t\t$data_to_send = true;\r\n\t\t\t\t\t\t\tif ($indice == \"vent\") {\r\n\t\t\t\t\t\t\t\t$data = $cmd->getStatistique(date('Y-m-d H:i:s', time() - 600), date('Y-m-d H:i:s'));\r\n\t\t\t\t\t\t\t\t$value = $data[\"avg\"];\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t$value = $cmd->execCmd();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t$post[$key] = $value * $coef + $add;\r\n\t\t\t\t\t\t\tlog::add('publiemeteo', 'debug', $key . ' : ' . $value . ' => ' . $post[$key]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif ($data_to_send) {\r\n\t\t\t\t$url = 'http://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?' . http_build_query($post);\r\n\t\t\t\tlog::add('publiemeteo', 'debug', 'Envoie des donnees via ' . preg_replace(\"/PASSWORD=[^&]*&/\", \"PASSWORD=XXXXX&\", $url));\r\n\t\t\t\t$content = @file_get_contents($url);\r\n\t\t\t\tif ($content != \"success\\n\") {\r\n\t\t\t\t\t$content = @file_get_contents($url);\r\n\t\t\t\t\tif ($content != \"success\\n\") {\r\n\t\t\t\t\t\t$content = @file_get_contents($url);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif ($content != \"success\\n\") {\r\n\t\t\t\t\tlog::add('publiemeteo', 'error', __('Impossible d\\'envoyer les données au serveur wunderground.com.', __FILE__) . \" Message #\" . $content . \"#\");\r\n\t\t\t\t\tthrow new Exception(__('Impossible d\\'envoyer les données au serveur wunderground.com.', __FILE__));\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tlog::add('publiemeteo', 'debug', 'Aucune donnée récente a envoyer');\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f80430c1b573b3fdbe67737734e8256f", "score": "0.6101103", "text": "public function cs_run_cron_import() {\n\t\t// Run the download and import process.\n\t\t$this->import_articles();\n\t}", "title": "" }, { "docid": "4e4e8c5b95c516405ffc3d9c6dd8c9c7", "score": "0.609997", "text": "function daily_jobs()\n{\n /**\n * Cleaning reservation orphan uploaded files older than 1 hour\n */\n tbkg()->bus->dispatch(new CleanFiles(3600));\n\n /**\n * Removing old reservations from db\n */\n if (tbkg()->settings->reservation_records_lifecycle() > 0) {\n tbkg()->bus->dispatch(new DeletePastReservations(tbkg()->settings->reservation_records_lifecycle()));\n }\n}", "title": "" }, { "docid": "6d606f773354b7e1f5fab45531029d6f", "score": "0.60911757", "text": "public function crontab($mod)\n {\n print_r($mod);\n\n $time_sleep = (int)$mod[1];\n $time_live = (int)$mod[2];\n $time_sleep = $time_sleep <= 1 ? 1 : $time_sleep;\n $time_live = $time_live <= 60 ? 60 : $time_live;\n\n $time_curr = time();\n $time_past = 0;\n $times = 0;\n\n $task_manage = new \\task\\manage($this->_db_zrun);\n $task_manage->init();\n do{\n $run_time = 0-microtime(true);\n $task_manage->run_all();\n $run_time += microtime(true);\n echo \"-------exec:\".str_pad(round($run_time,4).'s', 8).\" \".\n \"sleep:\".str_pad($time_sleep, 5).\" \\$times:\".str_pad($times, 5).\" \".\n \"PastTime:\".str_pad($time_past, 5).\" \\$live:\".str_pad($time_live, 5).\"\\n\";\n sleep($time_sleep);\n $times++;\n $time_past = time() - $time_curr;\n }while($time_past <= $time_live);\n }", "title": "" }, { "docid": "b9961351a312feabdc83096f6c71b86c", "score": "0.6088999", "text": "function hourly_jobs()\n{\n}", "title": "" }, { "docid": "4a48d4398e211b500ed488fc1932d884", "score": "0.6079784", "text": "function cron_stop() {\n $cronjobs=(int)shell_exec('crontab -l|grep gdcbox_ |wc -l');\n echo \"<p>Currently $cronjobs device\" . ($cronjobs!=1?'s are':'is') . ' running</p>';\n $tmpfile='/tmp/gdcbox.' . getmypid();\n shell_exec('crontab -l|grep -v gdcbox_ > ' . $tmpfile);\n shell_exec('crontab ' . $tmpfile);\n unlink($tmpfile);\n }", "title": "" }, { "docid": "65b0f3ec85e224df5b892d9c94e0e343", "score": "0.60762966", "text": "public function cron_process() {\n // Pass on a time out condition, that will be based on 'max_execution_time'\n $limit['timeout'] = variable_get('cron_semaphore', 0) + ini_get('max_execution_time') - self::TIME_MARGIN;\n $this->queue_process($limit);\n self::queue_expire_messages();\n self::queue_expire_logs();\n }", "title": "" }, { "docid": "8b8f8447e233f0af58b36a1383f264ff", "score": "0.607504", "text": "function workshop_cron () {\n return true;\n}", "title": "" }, { "docid": "674e9b6efb039e59e389824632b28345", "score": "0.60695267", "text": "function runGiftCardMail() {\n $this->runGiftCardCron();\n }", "title": "" }, { "docid": "28c783b8afb17da110950f38cd6d2db9", "score": "0.6052877", "text": "function wp_cron_activation()\n{\n if (!wp_next_scheduled('motivation_init_randomization_all_event')) {\n wp_schedule_event(time(), 'minute', 'motivation_init_randomization_all_event');\n }\n}", "title": "" }, { "docid": "0107e8b05ad080ce272b66f97577f6c1", "score": "0.6042511", "text": "function buildCommand($id){\n\t$comm = '*/2 * * * * /usr/bin/wget -O - -q \"'. lethe_root_url .'chronos/\" > /dev/null 2>&1';\n}", "title": "" }, { "docid": "f7944cc65b0e7d51ee32e7521f5ae3b9", "score": "0.6042338", "text": "function cron() {\n global $CFG, $DB; \n\n /*\n $lastcron = $DB->get_field('block', 'lastcron', \n array('name'=>$this->title));\n \n $numemails = 0;\n $sql = 'SELECT DISTINCT courseid from '.$CFG->prefix.\n 'block_timetracker_timesheet WHERE supervisorsignature=0';\n \n $courseids = $DB->get_records_sql($sql);\n foreach($courseids as $course){\n $numemails += send_timesheet_reminders_to_supervisors($course->courseid); \n }\n\n mtrace('Number of emails sent: '.$numemails.'<br />');\n\n $DB->set_field('block', 'lastcron', time(),\n array('name'=>$this->title));\n */\n\n\n /*\n\n global $CFG, $DB;\n\n $days = 7;\n $now = time();\n $limit = $now - (7 * 60 * 60 * 24);\n $thistime = usergetdate($now);\n $monthinfo = get_month_info ($thistime['month'], $thistime['year']);\n \n $sql = 'SELECT DISTINCT courseid from mdl_block_timetracker_alertunits '.\n 'WHERE alerttime < '.$limit.\n ' AND alerttime between '.$monthinfo['firstdaytimestamp'] .' AND '.\n $now.' ORDER BY courseid, alerttime ASC';\n \n $courses = $DB->get_records_sql($sql);\n\n $emails = 0;\n \n foreach($courses as $course){\n \n $id = $course->courseid;\n $courseinfo = $DB->get_record('course', array('id'=>$id));\n $context = get_context_instance(CONTEXT_COURSE, $id);\n $teachers = get_users_by_capability($context, 'block/timetracker:manageworkers');\n //print_object($teachers);\n \n $coursealerts = $DB->get_records('block_timetracker_alertunits', array(\n 'courseid'=>$id));\n \n \n $num = sizeof($coursealerts);\n mtrace($num.' alerts for course '.$courseinfo->shortname);\n \n if($num == 1){\n $body = \"Hello!\\n\\nYou have $num work unit alert \".\n \"that requires your attention for $courseinfo->shortname.\\n\\n\";\n $subj = $num.' Work Unit Alerts for '.$courseinfo->shortname;\n } else {\n $body = \"Hello!\\n\\nYou have $num work unit alerts \".\n \"that require your attention for $courseinfo->shortname.\\n\\n\";\n $subj = $num.' Work Unit Alert(s) for '.$courseinfo->shortname;\n }\n\n $body.= \"To visit the TimeTracker Alerts page, either click the below \".\n \"link or copy/paste it into your browser window.\\n\\n\".\n $CFG->wwwroot.'/blocks/timetracker/managealerts.php?id='.$id. \n \"\\n\\n\".\n \"Thanks for your timely attention to this matter\";\n \n $body_html = format_text($body);\n $body = format_text_email($body_html, 'FORMAT_HTML');\n \n foreach($coursealerts as $alert){\n \n $alertcoms = $DB->get_records('block_timetracker_alert_com', array(\n 'alertid'=>$alert->id));\n foreach($alertcoms as $com){\n if(array_key_exists($com->mdluserid, $teachers)){\n $user = $DB->get_record('user', array('id'=>$com->mdluserid));\n email_to_user($user, $user, $subj, $body, $body_html);\n //email_to_user($user, $user, $subj, $body);\n $emails++;\n }\n }\n \n }\n }\n mtrace($emails.' reminder emails sent');\n */\n }", "title": "" }, { "docid": "de997099cafb6bdf6de66a540e0c7e74", "score": "0.60416394", "text": "function UpdateNextCron()\n{\n\t$CronTimes = GetCronTimes();\n\t\n\tforeach($CronTimes as $cronTime)\n\t{\n\t\t$Frequency = $x;\n\t\tif($cronTime < date())\n\t\t{\n\t\t\tswitch ($Frequency)\n\t\t\t{\n\t\t\t\tcase CronFrequency::Never:\n\t\t\t\t\tbreak;\n\t\t\t\tcase CronFrequency::Daily:\n\t\t\t\t\tbreak;\n\t\t\t\tcase CronFrequency::Weekly:\n\t\t\t\t\tbreak;\n\t\t\t\tcase CronFrequency::BiWeekly:\n\t\t\t\t\tbreak;\n\t\t\t\tcase CronFrequency::Monthly:\n\t\t\t\t\tbreak;\n\t\t\t\tcase CronFrequency::BiMonthly :\n\t\t\t\t\tbreak;\n\t\t\t\tcase CronFrequency::BiAnnually:\n\t\t\t\t\tbreak;\n\t\t\t\tcase CronFrequency::Annually :\n\t\t\t\t\tbreak;\n\t\t\t\tcase CronFrequency::StartTerm:\n\t\t\t\t\tbreak;\n\t\t\t\tcase CronFrequency::EndTerm:\n\t\t\t\t\tbreak;\n\t\t\t\tcase CronFrequency::StartHalfTerm:\n\t\t\t\t\tbreak;\n\t\t\t\tcase CronFrequency::EndHalfTerm:\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :\n\t\t\t\t\tLogger(\"Cron Frequency $Frequency does not exist\", LogTypes::Error);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tDB_UpdateNextCron($Frequency, $Date);\n\t\t}\n\t}\n}", "title": "" }, { "docid": "21cc9d76ccae64cd05620c371430761e", "score": "0.60408944", "text": "function Cron(){\r\n\t//$this->type = \"Catalog Rack File Transfer\";\r\n\t//$this->func_ftp();\r\n\t$this->backup_home();\r\n\t\r\n\r\n}", "title": "" }, { "docid": "d72648964762c6f53b81871b0ea99e2b", "score": "0.6038527", "text": "public function run()\n {\n $arr_data = [\n\t [\n\t \t'command' => 'check:tunnel',\n\t 'cron_expression' => '* * * * *',\n\t ]\n\t ];\n\n\t foreach($arr_data as $data){\n\t Scheduler::create([\n\t \t'command' => $data['command'],\n\t 'cron_expression' => $data['cron_expression'],\n\t ]);\n\t }\n }", "title": "" }, { "docid": "85536d06d738a104e4af39c8585b2706", "score": "0.602823", "text": "public function startInviteCron() {\n $this->emDebug(\"Starting Invite Cron\");\n\n $enabled = ExternalModules::getEnabledProjects($this->PREFIX);\n\n //get the noAuth api endpoint for Cron job.\n $url = $this->getUrl('startInviteCron.php', true, true);\n\n $current_hour = date('H');\n\n //while ($proj = db_fetch_assoc($enabled)) {\n while($proj = $enabled->fetch_assoc()){\n $pid = $proj['project_id'];\n $this->emDebug(\"STARTING PID: \".$pid);\n\n //For each project, see if the invite has been enabled\n $enabled_invite = $this->getProjectSetting('portal-invite-send', $pid);\n\n\n if ($enabled_invite == true) {\n\n //check if it is the right time to send\n $invite_time = $this->getProjectSetting('portal-invite-time', $pid);\n\n //$this->emDebug(\"checking $invite_time\");\n\n //if the right hour, start the check\n if ($invite_time == $current_hour) {\n\n $this->emDebug(\"Starting $invite_time\");\n $this_url = $url . '&pid=' . $pid;\n $resp = http_get($this_url);\n }\n\n }\n\n }\n\n }", "title": "" }, { "docid": "77fedd24e2b06ac56c07d69c258adcb5", "score": "0.6023075", "text": "function howtoEveryminute($event,$minutes,$is2min,$is5min){\n\tglobal $_debug;\n\tif($_debug>0){\n\t\t//console(\"howto.Event[$event]($minutes,$is2min,$is5min)\");\n\t\tif(($minutes%8)==0) console(\"howtoEveryminute - every 8 minutes\");\n\t}\n}", "title": "" }, { "docid": "d0f2566e2c674718849f5cb6a6792134", "score": "0.5967326", "text": "public function main() {\n $lastmtime = null;\n $this->log(\"Refreshing every \" . $this->refresh/1000000 . \" seconds.\\n\", Project::MSG_INFO);\n while(1) {\n $mtimes = $this->rlist();\n if(count($mtimes) > 0 && max($mtimes) > $lastmtime) {\n passthru($this->cmd);\n $lastmtime = max($mtimes); \n $this->log(date(DATE_RFC822) . \" waiting...\", Project::MSG_INFO);\n }\n usleep($this->refresh);\n }\n }", "title": "" }, { "docid": "898242e9e85e1ad9356906aa15429ef8", "score": "0.596276", "text": "function heatmap_cron () {\n return true;\n}", "title": "" }, { "docid": "5b346b2bdddc4795033d73d433e2d333", "score": "0.59599966", "text": "public function action_register_cron() {\n\t\t// if the service isn't active, don't do anything\n\t\tif ( ! tribe( 'events-aggregator.main' )->is_service_active() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// If we have an cron scheduled we bail\n\t\tif ( wp_next_scheduled( self::$action ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Fetch the initial Date and Hour\n\t\t$date = date( 'Y-m-d H' );\n\n\t\t// Based on the Minutes construct a Cron\n\t\t$minutes = (int) date( 'i' );\n\t\tif ( $minutes < 15 ) {\n\t\t\t$date .= ':00';\n\t\t} elseif ( $minutes >= 15 && $minutes < 30 ) {\n\t\t\t$date .= ':15';\n\t\t}elseif ( $minutes >= 30 && $minutes < 45 ) {\n\t\t\t$date .= ':30';\n\t\t} else {\n\t\t\t$date .= ':45';\n\t\t}\n\t\t$date .= ':00';\n\n\t\t// Fetch the last half hour as a timestamp\n\t\t$start_timestamp = strtotime( $date );\n\n\t\t// randomize the time by plus/minus 0-5 minutes\n\t\t$random_minutes = ( mt_rand( -5, 5 ) * 60 );\n\t\t$start_timestamp += $random_minutes;\n\n\t\t$current_time = time();\n\n\t\t// if the start timestamp is older than RIGHT NOW, set it for 5 minutes from now\n\t\tif ( $current_time > $start_timestamp ) {\n\t\t\t$start_timestamp = $current_time + absint( $random_minutes );\n\t\t}\n\n\t\t// Now add an action twice hourly\n\t\twp_schedule_event( $start_timestamp, 'tribe-every15mins', self::$action );\n\t}", "title": "" }, { "docid": "1821adf6e7e31214e2f63977ea1b2817", "score": "0.5944741", "text": "public function bot_cron() {\n \n // Get a random user_id\n $user_id = $this->botis->check_random_user();\n \n if ( !is_numeric($user_id) ) {\n \n exit();\n \n }\n \n // Require the Boots interface\n require_once APPPATH . 'interfaces/Boots.php';\n \n // List all available bots\n foreach ( glob(APPPATH . 'bots/*.php') as $filename ) {\n \n // Require the bots file\n require_once $filename;\n \n // Set the class name file\n $className = str_replace([APPPATH . 'bots/', '.php'], '', $filename);\n \n // Call the class\n $get = new $className;\n \n // Load the cron methods\n $get->load_cron($user_id);\n \n }\n \n }", "title": "" }, { "docid": "57c94b0be2434a723ff23e8c85141e77", "score": "0.5936367", "text": "public function onTick()\n {\n JobRunner::getInstance()->proccess();\n }", "title": "" }, { "docid": "b5c6d71bc54bdce5909e85f88e09f394", "score": "0.592796", "text": "function sf_cron_activation() {\n if ( !wp_next_scheduled( 'socialfollowers_hourly_event' ) ) {\n wp_schedule_event( current_time( 'timestamp' ), 'twicedaily', 'socialfollowers_hourly_event');\n }\n}", "title": "" }, { "docid": "bf9d7e34ec00da353c62b2db2cbdb496", "score": "0.5925611", "text": "private function call_hourly_jobs() {\r\n if ($this->_is_hourly_job_runnable()) {\r\n\r\n\r\n try {\r\n $this->create_recurring_forecasts();\r\n } catch (Exception $e) {\r\n echo $e;\r\n }\r\n\r\n try {\r\n $this->create_recurring_actuals();\r\n } catch (Exception $e) {\r\n echo $e;\r\n }\r\n\r\n try {\r\n $this->send_forecast_due_pre_reminder();\r\n } catch (Exception $e) {\r\n echo $e;\r\n }\r\n\r\n\r\n try {\r\n $this->send_forecast_due_after_reminder();\r\n } catch (Exception $e) {\r\n echo $e;\r\n }\r\n\r\n\r\n try {\r\n $this->send_recurring_forecast_creation_reminder();\r\n } catch (Exception $e) {\r\n echo $e;\r\n }\r\n\r\n\r\n try {\r\n $this->create_recurring_tasks();\r\n } catch (Exception $e) {\r\n echo $e;\r\n }\r\n\r\n try {\r\n $this->send_task_reminder_notifications();\r\n } catch (Exception $e) {\r\n echo $e;\r\n }\r\n\r\n $this->ci->Settings_model->save_setting(\"last_hourly_job_time\", $this->current_time);\r\n }\r\n }", "title": "" }, { "docid": "f160c02dce338bcade8dc6f3daf81a3c", "score": "0.5913783", "text": "protected function execute() {\n $this->log( \"Hello Cron World\");\n }", "title": "" } ]
ba8700f109740c81a760ac2588283408
Si el directorio existe
[ { "docid": "88fcb4ef193f1f96560c0881f324f7f6", "score": "0.0", "text": "private function downloadFile($dir, $file, $extensions=[])\n {\n if (is_dir($dir))\n {\n //Ruta absoluta del archivo\n $path = $dir.$file;\n\n //Si el archivo existe\n if (is_file($path))\n {\n //Obtener información del archivo\n $file_info = pathinfo($path);\n //Obtener la extensión del archivo\n $extension = $file_info[\"extension\"];\n\n if (is_array($extensions))\n {\n //Si el argumento $extensions es un array\n //Comprobar las extensiones permitidas\n foreach($extensions as $e)\n {\n //Si la extension es correcta\n if ($e === $extension)\n {\n //Procedemos a descargar el archivo\n // Definir headers\n $size = filesize($path);\n header(\"Content-Type: application/force-download\");\n header(\"Content-Disposition: attachment; filename=$file\");\n header(\"Content-Transfer-Encoding: binary\");\n header(\"Content-Length: \" . $size);\n // Descargar archivo\n readfile($path);\n //Correcto\n return true;\n }\n }\n }\n\n }\n }\n //Ha ocurrido un error al descargar el archivo\n return false;\n }", "title": "" } ]
[ { "docid": "d1c82f765f8a75254bcec15234409304", "score": "0.748544", "text": "private function _isExist()\n\t{\n\t\tif(!file_exists($this->_archivoDestino->getPath())){\n\t\t\t$this->_error .= 'El directorio \"'.$this->_archivoDestino->getPath().'\" no existe.';\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "7754159920a3b5c758391704a4604f32", "score": "0.691059", "text": "private function createDirIfAbsent ()\n {\n $path = $this->basePath;\n if (!file_exists ($path)) {\n if (!@mkdir ($path, 0777, true))\n // Check if the directory was created meanwhile by a concurrent process.\n if (!file_exists ($path))\n // If it wasn't, it is not possible to create a directory at the given path.\n return $this->error (\"Can't create directory $path\");\n }\n else return false;\n return true;\n }", "title": "" }, { "docid": "f96b868d625fcb2a5183538b282c2a69", "score": "0.68874043", "text": "private function checkDirectory()\r\n {\r\n $directory = dirname($this->url);\r\n\r\n if (strpos($directory, '://') !== false) {\r\n if (strtolower(substr($directory, 0, 7)) == 'file://') {\r\n $directory = substr($directory, 7);\r\n } else {\r\n $directory = null;\r\n }\r\n }\r\n\r\n if (!empty($directory) && !is_dir($directory)) {\r\n if (!mkdir($directory, 0777, true)) {\r\n throw new \\RuntimeException('Couldn\\'t create the directory \"' . $directory . '\".');\r\n }\r\n }\r\n }", "title": "" }, { "docid": "ad40271a3f443caf54545a53c3a9e063", "score": "0.6863138", "text": "function CrearDirectorio()\n\t{\n\t\t//echo $this->_directory;\n\t\tif(!is_dir($this->_directory))\n\t\t{\n\t\t\tif(mkdir($this->_directory))\n\t\t\t{\n\t\t\t\t$this->_msj = \"dirCreado\";\t\t\t\n\t\t\t\tchmod($this->_directory,0777);\n\t\t\t\treturn true;\n\t\t\t}else{\t\t\t\n\t\t\t\t$this->_msj = \"errDirCrea\";\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "bd64253447d8a166249a987104e1cf89", "score": "0.6856323", "text": "function create_dir($name) {\n if (!empty($name) && !is_dir($name)) {\n if (create_dir(dirname($name))) {\n return mkdir($name);\n echo 'Le répertoire '.$name.' vient d\\'être créé!'; \n } else {\n return false;\n echo 'erreur de création';\n }\n } else {\n return true;\n echo 'Le répertoire existe déjà!'; \n }\n}", "title": "" }, { "docid": "2f7cecbd99cfb8ae998e2298e3382b65", "score": "0.67267597", "text": "static function existe($file=\"\"){\n if(empty($file))$file=self::$directorio;\n \n if(file_exists($file)){\n return true;\n }else{return false;};\n }", "title": "" }, { "docid": "98acc5e1e24aab99bc0de965891ddb42", "score": "0.658102", "text": "private function ensureDirectoryExists()\n\t{\n\t\t//create directory if it doesn't exits\n\t\tif(!file_exists($this->getDirectory())){\n\t\t\tmkdir($this->getDirectory(), 0777, true);\n\t\t}\n\t}", "title": "" }, { "docid": "9576bf545aa932959b42a5f4c4991cd7", "score": "0.65634185", "text": "public function allowsCreateDir();", "title": "" }, { "docid": "5fc9309828746a602e6ddad239519504", "score": "0.65301615", "text": "function checkDirectory($directory)\n{\n try {\n if (!file_exists(public_path('uploads/' . $directory))) {\n mkdir(public_path('uploads/' . $directory));\n\n chmod(public_path('uploads/' . $directory), 0777);\n }\n } catch (\\Exception $e) {\n die($e->getMessage());\n }\n}", "title": "" }, { "docid": "14e4b6304eefdff882696e6c24405185", "score": "0.6478358", "text": "function testaArquivoExiste($arquivo){\r\n \r\n //a variavel $_SERVER['DOCUMENT_ROOT'] refere-se a C:/VertrigoServ/www \r\n $caminhoParaTeste=$_SERVER['DOCUMENT_ROOT'].'/EmailSender/app/webroot/files/'.$arquivo; \r\n if(file_exists($caminhoParaTeste)){\r\n return true;\r\n }\r\n else{\r\n echo \"O arquivo $caminhoParaTeste não existe no diretorio </br>\";\r\n \r\n } \r\n return false;\r\n \r\n \r\n }", "title": "" }, { "docid": "57f3ed7237ee077bd4a398453f9e68bf", "score": "0.64753926", "text": "public function directory_exists($path){\n if(is_dir($path)){\n return true;\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "ba3fd42f7a7425720508d3f48066a9ec", "score": "0.64344966", "text": "function _create_directory()\r\r\n {\r\r\n try {\r\r\n if (!is_dir($this->file_write_path)) {\r\r\n mkdir($this->file_write_path, 0777, true);\r\r\n }\r\r\n } catch (Exception $exception) {\r\r\n echo $exception->getMessage();\r\r\n }\r\r\n }", "title": "" }, { "docid": "a43263c63197b230f1425e13a4252669", "score": "0.64232135", "text": "public static function dirCreateOrExist($dir)\r\n {\r\n if(!is_dir($dir)) {\r\n if(!mkdir($dir, 0777, true)) {\r\n throw new Exception(\"Dir not created\", 1);\r\n }\r\n }\r\n}", "title": "" }, { "docid": "bd13e5597cdc860bd59db8f30f572277", "score": "0.6380642", "text": "protected function isDirectory() {}", "title": "" }, { "docid": "1624cb362cdad28eab3ed5d1fce6767f", "score": "0.63539374", "text": "public function testHas_Dir()\n {\n \tmkdir(\"{$this->file}/\" . basename($this->file) . '.x');\n $this->assertTrue($this->Fs_Node->has(basename($this->file) . '.x'));\n }", "title": "" }, { "docid": "0b0d1a8f908e07679ce897ca2b6c4a6b", "score": "0.633612", "text": "public function exists() {\r\n\t\treturn is_dir((string) $this->path);\t\r\n\t}", "title": "" }, { "docid": "810bc2e71a04166bf725f0f164f635f6", "score": "0.6325937", "text": "private function existDir($customDir) {\n if (is_dir($customDir)) {\n // si el directorio existe asigna la ruta a la variable path\n // para almacenar los pdfs\n $this->path = $customDir;\n }\n }", "title": "" }, { "docid": "3c360cfc4e7401a5b2c1b9ea278be453", "score": "0.6298271", "text": "function folderExists($path)\n\t{\n\t\t//not applicable\n\t}", "title": "" }, { "docid": "14e165f19f0f87508f7665cc6e7cd304", "score": "0.62960243", "text": "public function dirExists($key);", "title": "" }, { "docid": "61c1eea3992a5f543e92ba97f63d503f", "score": "0.6287746", "text": "public function isDirectory();", "title": "" }, { "docid": "7399d2efe88e7fc945b158a01630deb3", "score": "0.6281592", "text": "abstract public function isDirectory();", "title": "" }, { "docid": "91f5c4e33fca5e7fe5dabf39d355f52b", "score": "0.6281341", "text": "function checkUploadDir($category, $systemName)\n\t{\n\n\t\t$mainUploadPath = $_SESSION['Cfg']['Default']['WebsiteSettings']['MainUploadPath'];\n\n\t\t// Prüfung ob Haupt-Upload-Verzeichnis existiert\n\t\tif (!is_dir($mainUploadPath)) {\n\n\t\t\t// Fehler brauche mindestens den Main - Upload Pfade. ... Gebe Information an User weiter\n\t\t\t$explain = 'Der Haupt-Upload Pfad konnte nicht geöffnet werden, bitte wenden Sie sich an den zuständingen Administrator.<br>Gesuchter Pfad: ' . $mainUploadPath;\n\t\t\t$this->addMessage('Fehler bei Datei Upload!', 'Die gewünschte Datei konnte nicht auf den Server hochgeladen werden.', 'Fehler', 'File Upload', $explain);\n\n\t\t\treturn false;\n\t\t}\n\n\n\t\t// Prüfung Kategorie-Verzeichnis vorhanden?\n\t\t$curPath = $mainUploadPath . '/' . $category;\n\t\tIf (!$this->checkCreatePath($curPath))\n\t\t\treturn false;\n\n\n\t\t// Prüfung System-Verzeichnis vorhanden?\n\t\t$curPath = $curPath . '/' . $systemName;\n\t\tIf (!$this->checkCreatePath($curPath))\n\t\t\treturn false;\n\n\n\t\t// Prüfung auf Jahres-Verzeichnis vorhanden?\n\t\t$curPath = $curPath . '/' . date('Y');\n\t\tIf (!$this->checkCreatePath($curPath))\n\t\t\treturn false;\n\n\n\t\t// Prüfung auf Monats-Verzeichnis vorhanden?\n\t\t$curPath = $curPath . '/' . date('m');\n\t\tIf (!$this->checkCreatePath($curPath))\n\t\t\treturn false;\n\n\n\t\t// Prüfung auf Tages-Verzeichnis vorhanden?\n\t\t$curPath = $curPath . '/' . date('d');\n\t\tIf (!$this->checkCreatePath($curPath))\n\t\t\treturn false;\n\n\n\t\treturn $curPath;\n\n\t}", "title": "" }, { "docid": "c53c46036691dd9880168f5da2b2ac88", "score": "0.6262222", "text": "public function fix_path($idUser){\n $path = '../public/images/' . $idUser . '/';\n if(file_exists($path)){\n //echo \"la ruta ya existe.\";\n return $path;\n } else {\n if(!mkdir($path,0755,TRUE)){\n echo \"Fallo al crear la ruta\";\n }else{\n return $path;\n }\n }\n }", "title": "" }, { "docid": "2c8b096ced47536d164d69a334e1c47d", "score": "0.62492645", "text": "function nouveauDossier($repertoire){\n\treturn mkdir ( $repertoire, 775);\n}", "title": "" }, { "docid": "8d0ba698f6e36df8665e9b785d113c25", "score": "0.62472475", "text": "function auto_create_folder($dir){ \n return is_dir($dir) or (auto_create_folder(dirname($dir)) and mkdir($dir, 0777)); \n}", "title": "" }, { "docid": "b9c3ab526f3c758d99efc8b1a2b00ebf", "score": "0.6234546", "text": "public function testCreate_Exists()\n {\n \tif (function_exists('posix_getuid') && posix_getuid() == 0) $this->markTestSkipped(\"Won't test this as root for safety reasons.\");\n \t\n \t$this->setExpectedException(\"Q\\Fs_Exception\", \"Unable to create directory '{$this->file}': File already exists\");\n $this->Fs_Node->create();\n }", "title": "" }, { "docid": "ffcdbda0f561208084e80886f9c32394", "score": "0.62259686", "text": "function ensure_path_exists ( $path ) {\n\t\t// Check Exists\n\t\tif ( file_exists($path) ) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// Ensure Parent Directory Exists\n\t\t$parent = dirname($path);\n\t\twhile ( !is_dir($parent) ) {\n\t\t\t`mkdir -p $parent`;\n\t\t}\n\t\t\n\t\t// Check Above Worked\n\t\tif ( !is_dir($parent) ) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Ensure File Exists\n\t\tif ( strstr($path,'.')\t) {\n\t\t\t$result = touch($path);\n\t\t\treturn $result;\n\t\t}\n\t\telse {\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "a215e14b3168cbf7eef93a831ae862cc", "score": "0.62151027", "text": "private function check_dir($dir)\n\t{\n\t\tif(file_exists($dir))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(@mkdir($dir))\n\t\t\t{\n\t\t\t\t//echo \"<h1>SUCCESS New Folder</h1>\";\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//echo \"<h1>FAIL New Folder</h1>\";\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d8a75a299b7b51920a9a760379e46022", "score": "0.62090915", "text": "public function isDir();", "title": "" }, { "docid": "52671c14969a6334da792be356fa8c22", "score": "0.620806", "text": "public function exists()\n\t{\n\t\treturn is_dir($this->db->getRootPath().$this->path);\n\t}", "title": "" }, { "docid": "1c8694aa9e5557fffb5596ef84008a17", "score": "0.62039214", "text": "private function createVideoDownloadsDirIfNotExists() {\n\t\t\t$videoDownloadPath = realpath(dirname(__FILE__));\n\t\t\t$videoDownloadPath .= \"/../video_downloads\";\n\n\t\t\tif(!file_exists($videoDownloadPath)) {\n\t\t\t\tmkdir($videoDownloadPath, 0777);\n\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "9574f469cec1cf88b91ff4ef9255420f", "score": "0.6201558", "text": "function mkdir_if_not_exists($dir)\n{\n\tif (!file_exists($dir))\n\t\tmkdir($dir, 0777, TRUE);\n}", "title": "" }, { "docid": "1d25f92a01bd7185997eaab440564d55", "score": "0.6192332", "text": "public function exists(): bool\n {\n return is_dir($this->root()) === true;\n }", "title": "" }, { "docid": "34ee6ed9a965ba7ac1c7eab345c2b9e7", "score": "0.61582124", "text": "function folder_exist($folder)\n{\n $path = realpath($folder);\n\n // If it exist, check if it's a directory\n return ($path !== false AND is_dir($path)) ? $path : false;\n}", "title": "" }, { "docid": "564570977c07a03504c29fa33db815ec", "score": "0.61485845", "text": "public function isDir(): bool;", "title": "" }, { "docid": "5a67871bcb3e985a2cf1bb49955049a9", "score": "0.61394304", "text": "function exponent_files_canCreate($dest) {\n\tif (substr($dest,0,1) == '/') $dest = str_replace(BASE,'',$dest);\n\t$parts = explode('/',$dest);\n\t$working = BASE;\n\tfor ($i = 0; $i < count($parts); $i++) {\n\t\tif ($parts[$i] != '') {\n\t\t\tif (!file_exists($working.$parts[$i])) {\n\t\t\t\treturn (is_really_writable($working) ? SYS_FILES_SUCCESS : SYS_FILES_NOTWRITABLE);\n\t\t\t}\n\t\t\t$working .= $parts[$i].'/';\n\t\t}\n\t}\n\t// If we got this far, then the file we are asking about already exists.\n\t// Check to see if we can overrwrite this file.\n\t// First however, we need to strip off the '/' that was added a few lines up as the last part of the for loop.\n\t$working = substr($working,0,-1);\n\t\n\tif (!is_really_writable($working)) {\n\t\treturn SYS_FILES_NOTWRITABLE;\n\t} else {\n\t\tif (is_file($working)) {\n\t\t\treturn SYS_FILES_FOUNDFILE;\n\t\t} else {\n\t\t\treturn SYS_FILES_FOUNDDIR;\n\t\t}\n\t}\n}", "title": "" }, { "docid": "af7e66f6668c5630cc40352ae0995084", "score": "0.61390674", "text": "private function __checked_target_path() {\r\n\t\t$dir_exist = true;\r\n\t\tif (!is_dir($this->target_path)) {\r\n\t\t\t$dir_check = (!@mkdir($this->target_path)) ? false : true;\r\n\t\t}\r\n\t\treturn $dir_exist;\r\n\t}", "title": "" }, { "docid": "eb0c912caccd9f26ca235baf44aaab60", "score": "0.61310637", "text": "function make_path($path)\n{\n if (is_dir($path) || file_exists($path)) return;\n //no, create it\n mkdir($path, 0777, true);\n }", "title": "" }, { "docid": "1551b299c7701591becbdc3d3ae051c6", "score": "0.61073124", "text": "function check_dir($dir, $path = false) {\n\n if (is_dir($path.$dir))\n {\n $return_dir = (substr($dir, -1) == \"/\") ? $dir : $dir.\"/\";\n return $return_dir;\n\n } else {\n\n if(mkdir($path.$dir))\n {\n @chmod($path.$dir, 0777);\n $return_dir = (substr($dir, -1) == \"/\") ? $dir : $dir.\"/\";\n return $return_dir;\n\n } else {\n\n $this->error_msg($path.$dir.\" папка не существует.\");\n $this->init = 0;\n return false;\n\n }\n\n }\n\n }", "title": "" }, { "docid": "d751da350c4c33c1423f24357142e058", "score": "0.6085671", "text": "protected function ensure_directory_exists($path)\n\t{\n\t\t$path = dirname($this->root_path . $this->get_path($path) . $this->get_filename($path));\n\t\t$path = filesystem_helper::make_path_relative($path, $this->root_path);\n\n\t\tif (!$this->exists($path))\n\t\t{\n\t\t\t$this->create_dir($path);\n\t\t}\n\t}", "title": "" }, { "docid": "48d46e5457ec0ebb7c565c3a448db764", "score": "0.6084635", "text": "public function exists()\n {\n return $this->adapter->isDir($this->path);\n }", "title": "" }, { "docid": "72bec87a26b5e79274fb19644259d835", "score": "0.6076412", "text": "public function isDirectory(){\n\t\treturn true;\n\t}", "title": "" }, { "docid": "758f050649f054a0fe6d81adf2416765", "score": "0.6066657", "text": "function smartpartner_admin_mkdir($target)\r\n{\r\n\t// http://www.php.net/manual/en/function.mkdir.php\r\n\t// saint at corenova.com\r\n\t// bart at cdasites dot com\r\n\tif (is_dir($target)||empty($target)) return true; // best case check first\r\n\tif (file_exists($target) && !is_dir($target)) return false;\r\n\tif (smartpartner_admin_mkdir(substr($target,0,strrpos($target,'/'))))\r\n\t if (!file_exists($target)) return mkdir($target); // crawl back up & create dir tree\r\n\treturn true;\r\n}", "title": "" }, { "docid": "ca28b9e9627ead1233c941166fd53498", "score": "0.60665596", "text": "function _os2dagsorden_os2web_convertion_dir_validate($element, &$form_state) {\n $value = $element['#value'];\n if (file_exists($value)) {\n if (!is_writable($value)) {\n form_error($element, t(\"Could not writte to directory. Please check permissions\"));\n }\n }\n else {\n form_error($element, t(\"Directory !value does nor exist\", array('!value' => $value)));\n }\n}", "title": "" }, { "docid": "4ec82b0fb8c87ddf486759f38212631c", "score": "0.6050786", "text": "protected function hasDirectory(): bool\n {\n return Tools::file_exists_cache($this->getDirectory());\n }", "title": "" }, { "docid": "4c3553b19293b8bcab7cd7618ddb16df", "score": "0.60064685", "text": "protected function createDir()\n {\n\n if ($this->config['createDir']) {\n return (Dir::is($this->config['path'])) ? true : Dir::make(\n $this->config['path'],\n $this->config['dirChmod'],\n $this->config['recursive']\n );\n }\n\n return true;\n\n }", "title": "" }, { "docid": "5ed4654e15a56fbd293be35b9f0e032a", "score": "0.6003335", "text": "public function checkDirExists($value)\n {\n $success = Val::stringable($value)\n && File::info($value)->isDir;\n\n return new Result($success, '{name} must be the name of an existing directory');\n }", "title": "" }, { "docid": "6d534e6194398291040574a710dcb3bc", "score": "0.60010403", "text": "public function create_dir_skpd($nrk){\n\t\t//$uploads_dir = 'assets/file_permohonan/'.$post['nrk'].'/'.$remove_white_spaces;\n $uploads_dir = 'assets/file_permohonan/'.$nrk;\n\t\tif(file_exists($uploads_dir)){\n\t\t\treturn false;\n\t\t\texit;\n\t\t}else{\n\t\t\tmkdir($uploads_dir, 0777);\n return $uploads_dir;\n\t\t}\n\t}", "title": "" }, { "docid": "857cd2d744842554ea8be39045e3a05e", "score": "0.59985906", "text": "private function checkPath($path)\n\t{\t\n\t\tif(!is_dir($path))\n\t\t\tmkdir($path);\n\t}", "title": "" }, { "docid": "2ed032d011940e9e950f350b91ad3bc0", "score": "0.59903944", "text": "function check_dir_status($dir) {\n if(file_exists($dir) && is_dir($dir)) {\n if(is_writable($dir)) {\n return true;\n }\n $this->error($dir.\" Directory is not writable \", E_USER_ERROR);\n return false;\n }\n if(mkdir($dir)) {\n return true;\n } \n else {\n $this->error($dir.\" Directory is not writable \", E_USER_ERROR);\n return false;\n }\n }", "title": "" }, { "docid": "5f2daa4f79c5887df64fd4b6d4e35566", "score": "0.59902865", "text": "protected function ensureDirectoriesExist()\n {\n if (! is_dir($directory = $this->getViewPath('layouts'))) {\n mkdir($directory, 0755, true);\n }\n\n if (! is_dir($directory = $this->getViewPath('auth/passwords'))) {\n mkdir($directory, 0755, true);\n }\n }", "title": "" }, { "docid": "1e1ee6a8b6b50bb1b8638e8ebf6a1a41", "score": "0.5986311", "text": "private function directorioLectura($directorio = false) {\r\n\t\t\t$abrir = opendir($directorio);\r\n\t\t\twhile ($archivo = readdir($abrir)):\r\n\t\t\t\tif($archivo != '.' AND $archivo != '..'):\r\n\t\t\t\t\t$this->directorioSeleccion($directorio, $archivo);\r\n\t\t\t\tendif;\r\n\t\t\tendwhile;\r\n\t\t\tclosedir($abrir);\r\n\t\t\tunset($abrir, $directorio, $archivo);\r\n\t\t}", "title": "" }, { "docid": "07468276e04bff4f6cc151a505b70b06", "score": "0.5977781", "text": "function checkDirectory($dir, $pearDB)\n {\n global $dirCreated;\n $DBRESULT = $pearDB->query(\n \"SELECT dir_id FROM view_img_dir WHERE dir_alias = '\" . $dir . \"'\"\n );\n if (!$DBRESULT->rowCount()) {\n $DBRESULT = $pearDB->query(\n \"INSERT INTO view_img_dir (`dir_name`, `dir_alias`) VALUES ('\" . $dir . \"', '\" . $dir . \"')\"\n );\n @mkdir(\"./img/media/$dir\");\n $DBRESULT = $pearDB->query(\"SELECT dir_id FROM view_img_dir WHERE dir_alias = '\" . $dir . \"'\");\n $data = $DBRESULT->fetchRow();\n $dirCreated++;\n return $data[\"dir_id\"];\n } else {\n $data = $DBRESULT->fetchRow();\n return $data[\"dir_id\"];\n }\n }", "title": "" }, { "docid": "fa0cf2a1e733f2a7d034608032e3d717", "score": "0.5976633", "text": "function createdir($dir, $hash)\n\t\t{\n\t\t\treturn true;\n\t\t}", "title": "" }, { "docid": "df5ad331b8d70bcd2e5572f20a7f2cd9", "score": "0.5964147", "text": "function wfdownloads_admin_mkdir($target)\r\n{\r\n\t// http://www.php.net/manual/en/function.mkdir.php\r\n\t// saint at corenova.com\r\n\t// bart at cdasites dot com\r\n\tif (is_dir($target)||empty($target)) return true; // best case check first\r\n\tif (file_exists($target) && !is_dir($target)) return false;\r\n\tif (wfdownloads_admin_mkdir(substr($target,0,strrpos($target,'/'))))\r\n\t if (!file_exists($target)) return mkdir($target); // crawl back up & create dir tree\r\n\treturn true;\r\n}", "title": "" }, { "docid": "6a84ab14924e857723acc4c0f31e715e", "score": "0.5961997", "text": "function _themefeature_files_directory_exists($dir) {\n // Check our cache directory exists\n if (!is_dir($dir)) {\n if (!mkdir($dir)) {\n drupal_set_message(\"Cannot create temporary directory for theme features.\");\n return FALSE;\n }\n }\n return TRUE;\n}", "title": "" }, { "docid": "7f9020397e9d690d65eb0d7ca60c6d8d", "score": "0.5959991", "text": "public static function guaranteePathExist($path) {\r\n\t\tif (!file_exists($path)) mkdir($path);\r\n\t}", "title": "" }, { "docid": "962f1eb5042edcca5e92bc47c1ef98a2", "score": "0.5952048", "text": "public function testRename_Exists()\n {\n \tif (function_exists('posix_getuid') && posix_getuid() == 0) $this->markTestSkipped(\"Won't test this as root for safety reasons.\");\n \t\n \tfile_put_contents(\"{$this->file}.x\", \"Another file\");\n $this->setExpectedException(\"Q\\Fs_Exception\", \"Unable to rename '{$this->file}' to '{$this->file}.x': Target already exists\");\n $this->Fs_Node->rename(\"{$this->file}.x\");\n\n $this->assertTrue(is_dir(\"{$this->file}.x\"));\n $this->assertTrue(file_exists(\"{$this->file}.x/\" . basename($this->file)));\n $this->assertEquals('Test case for Fs_Dir', file_get_contents(\"{$this->file}.x/\" . basename($this->file)));\n \n $this->assertFalse(file_exists($this->file));\n }", "title": "" }, { "docid": "073ab70ab0e3587f6ba60e036abf85f1", "score": "0.5949738", "text": "function renameDir()\n {\n if( ! claro_rename_file($this->scormDir . $this->uploadPath.'/', $this->scormDir . 'path_'.$this->path->getId().'/') )\n {\n $this->backlog->failure(get_lang('Cannot rename tmp folder.'));\n return false;\n }\n\n return true;\n\n }", "title": "" }, { "docid": "755a16f16f96a36e3006581a8550623f", "score": "0.5948662", "text": "public function doesPathExist() {\n\t\treturn is_file( $this->getPath() );\n\t}", "title": "" }, { "docid": "32e3e5b057cc5fb01270b9bead2df7a4", "score": "0.59428066", "text": "public static function checkDeployement() {\n if(file_exists('deployement/php') && file_exists('deployement/nginx')) {\n return true;\n }\n else {\n mkdir('deployement/php', 0777, true);\n mkdir('deployement/nginx', 0777, true);\n return true;\n }\n }", "title": "" }, { "docid": "57dd0859e4ea01c2354f7e9ca26a5487", "score": "0.5940105", "text": "public function testCreate () {\n // wrong directory name\n static::assertFalse(Directory::create(''));\n\n if (is_dir(self::DIR)) {\n Directory::delete(self::DIR);\n }\n static::assertTrue(Directory::create(self::DIR));\n static::assertTrue(is_dir(self::DIR));\n\n static::assertTrue(rmdir(self::DIR));\n }", "title": "" }, { "docid": "61b428bfe6d8381eb1afc435fcadc116", "score": "0.5936278", "text": "private function directorioAppSrc() {\r\n\t\t\t$directorio = implode(DIRECTORY_SEPARATOR, func_get_args());\r\n\t\t\tif(is_dir($directorio) == false):\r\n\t\t\t\tmkdir($directorio);\r\n\t\t\tendif;\r\n\t\t\tunset($directorio);\r\n\t\t}", "title": "" }, { "docid": "e13af16379517551ec19b1847f928493", "score": "0.5932214", "text": "public static function checkWritableDir()\n {\n }", "title": "" }, { "docid": "55f7b5837c8f3f4a9e1cf58ef35d7149", "score": "0.5932164", "text": "function fileExists($name){\n\t\t$filename = $this->homeDir . $name;\n\t\t$rc = file_exists($filename);\n\t\treturn $rc;\n\t}", "title": "" }, { "docid": "9757b45e3cedddb001b118ff6124ab97", "score": "0.59216666", "text": "function iiif_static_mkdir($path) {\n // make a directory at the given path\n if (!is_dir($path)) {\n if (mkdir($path, 0775, TRUE) === FALSE) {\n throw new Exception(\"Can't create directory : $path\", 1);\n }\n }\n}", "title": "" }, { "docid": "7964ff7e1f9f163984c3f9d475f255eb", "score": "0.59204555", "text": "function dir(string $path): bool\n{\n return writable($path) && (is_dir($path) || mkdir($path, 0755, true));\n}", "title": "" }, { "docid": "3a2e1b93dc9ae7d71ba4bf1d446343ce", "score": "0.59194463", "text": "public static function dir_exists($filename, $create = TRUE, $mode = 0777)\n {\n if (file_exists($filename)) {\n return TRUE;\n } else if ($create) {\n mkdir($filename, $mode, TRUE);\n return TRUE;\n } else {\n return FALSE;\n }\n }", "title": "" }, { "docid": "5513f45b421191012b0f115b848fb8a3", "score": "0.59110963", "text": "public function exists()\n\t{\n\t\treturn is_dir($this->root);\n\t}", "title": "" }, { "docid": "6a4cd15c6cf6058aa63a4703075ebe46", "score": "0.5907504", "text": "function makeFolder($path)\n{\n $result = true;\n if (!File::exists($path)) {\n umask(0);\n $result = File::makeDirectory($path, 0777, true);\n }\n return $result;\n}", "title": "" }, { "docid": "220fac1157956f392f5c16e07b301b7f", "score": "0.59073186", "text": "function pollingItemjawaban_CreateDirektori( \n\t \t$tanggalhariini\n\t){\n \t\t$direktoribuat = \"jawabanmodul/polling/\" . \"jawabanattachement/\" . $tanggalhariini . \"/\";\n\t \tif (is_dir( $direktoribuat )) \n\t \t{ }\n\t \telse\n\t \t{\n\t\t\t mkdir( $direktoribuat,'0777',true); \n\t\t\t chmod( $direktoribuat, 0777);\n\t \t}\n\t\treturn $direktoribuat;\n\t}", "title": "" }, { "docid": "f1ec0ee43dc1572cd61b0b7391149059", "score": "0.59042025", "text": "public function testCopy_DirExists()\n {\n \tif (function_exists('posix_getuid') && posix_getuid() == 0) $this->markTestSkipped(\"Won't test this as root for safety reasons.\");\n \t\n \tmkdir(\"{$this->file}.x\");\n $this->setExpectedException(\"Q\\Fs_Exception\", \"Unable to copy '{$this->file}' to '{$this->file}.x': Target already exists\");\n $this->Fs_Node->copy(\"{$this->file}.x\");\n\n $this->assertTrue(is_dir(\"{$this->file}.x\"));\n $this->assertFalse(file_exists(\"{$this->file}.x/\" . basename($this->file)));\n \n $this->assertTrue(is_dir($this->file));\n $this->assertTrue(file_exists(\"{$this->file}/\" . basename($this->file)));\n }", "title": "" }, { "docid": "c20fcdf93f56fa5cb037cf22b15fe3ed", "score": "0.59034264", "text": "public function isDirectory() {\n return FALSE;\n }", "title": "" }, { "docid": "5192d3af6afd460bb8ae13109c71ed1a", "score": "0.59017855", "text": "function create_dir($dir) {\n if (!is_dir($dir)) {\n return mkdir($dir);\n }\n return true;\n}", "title": "" }, { "docid": "a19edf6a23cf1168e3e0aa7006b12680", "score": "0.589809", "text": "public function existeArchivo($fileName){\n file_exists($this->getPathBase() . $fileName);\n }", "title": "" }, { "docid": "7a6e1278c207b123bb2ecd5f47e3a810", "score": "0.58951694", "text": "private function actionMakeFolder()\n {\n mkdir($_SERVER['DOCUMENT_ROOT'].'/storage/', 0777);\n /* if (!is_dir($_SERVER['DOCUMENT_ROOT'].'/storage/'))\n {\n mkdir($_SERVER['DOCUMENT_ROOT'].'/storage/', 0777);\n };\n //$file = $_SERVER['DOCUMENT_ROOT'].$model->id.'/images/'.$fileName;\n\n if (!is_dir($_SERVER['DOCUMENT_ROOT'].'/storage/'.$model->id.'/images/')) \n {\n $_SERVER['DOCUMENT_ROOT'].'/storage/'.$model->id.'/images/';\n }*/\n }", "title": "" }, { "docid": "2e11373f03eaa9aea1e011232539ea2e", "score": "0.588197", "text": "function checktmpsubdir() {\n $tmp = INDEXMENU_IMG_ABSDIR.\"/tmp\";\n if(!io_mkdir_p($tmp)) {\n msg($this->getLang('dir_err').\": $tmp\", -1);\n return false;\n }\n return INDEXMENU_IMG_ABSDIR;\n }", "title": "" }, { "docid": "3ebf54b59f867cf0e19f1c11258e39f6", "score": "0.58811957", "text": "private function riddleFileExists()\n {\n\n if( FileSystem::fileExists( Settings::getSetting('syscrack_riddle_location') ) == false )\n {\n\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "6858572ff94fb0350caa1ed492c35eca", "score": "0.58767617", "text": "function directory_usable($dir, $chmod='0777') {\n\n\t//If it doesn't exist - make it!\n\tif(!is_dir($dir)) {\n\t\tif(!mkdir($dir, $chmod, TRUE)) {\n\t\t\ttrigger_error('Could not create the directory: <b>'. $dir. '</b>', E_USER_WARNING);\n\t\t\treturn;\n\t\t}\n\t}\n\n\t//Make it writable\n\tif(!is_writable($dir)) {\n\t\tif(!chmod($dir, $chmod)) {\n\t\t\ttrigger_error('Could not CHMOD 0777 the directory: <b>'. $dir. '</b>', E_USER_WARNING);\n\t\t\treturn;\n\t\t}\n\t}\n\n\treturn TRUE;\n}", "title": "" }, { "docid": "21c94e70d0b3e1af55187bf324b8572b", "score": "0.5867266", "text": "function listar_directorio($ruta){\n\t\t\t\t\t if (is_dir($ruta)) { \n\t\t\t\t\t\t\tif ($dh = opendir($ruta)) { \n\t\t\t\t\t\t\t\twhile (($file = readdir($dh)) !== false) { \n\t\t\t\t\t\t\t\t\tif (!is_dir($ruta . $file) ){ \n\t\t\t\t\t\t\t\t\t\t$imagenes[] = $ruta . $file;\n\t\t\t\t\t\t\t\t\t\techo \"<img class='materialboxed' src= 'uploads/$file' width='100' height='100'>\";\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\tclosedir($dh); \n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t}else echo \"<br>No es ruta valida\"; \n\t\t\t\t\t}", "title": "" }, { "docid": "33b704f1c1634cf6ddb4988c1f045ab5", "score": "0.5864299", "text": "function sftp_ensure_dirs($path) {\n $dirs = dirname($path);\n if(!file_exists($dirs)) {\n mkdir($dirs,0777,true);\n }\n }", "title": "" }, { "docid": "de16ab00871e9434806e9c676dec2c56", "score": "0.5863018", "text": "public function testAssertDirectoryExists() {\n\t\t$path = __DIR__ . \\DIRECTORY_SEPARATOR . 'Fixtures' . \\DIRECTORY_SEPARATOR;\n\t\t$this->assertDirectoryExists( $path );\n\t}", "title": "" }, { "docid": "cb0cb920b3e1f8007a7fc5e840016eba", "score": "0.585933", "text": "public function testAssertDirectoryNotExists() {\n\t\t$path = __DIR__ . \\DIRECTORY_SEPARATOR . 'NotExisting' . \\DIRECTORY_SEPARATOR;\n\t\tstatic::assertDirectoryNotExists( $path );\n\t}", "title": "" }, { "docid": "e95f931f83cfc7ad42ea17732777b886", "score": "0.58587354", "text": "private static function createCacheDirectoryIfItDoesNotExist()\n {\n if (!file_exists(DIRECTORY_CACHE)) {\n // Give 777 permissions so that developer can overwrite\n // files created by web server user\n mkdir(DIRECTORY_CACHE);\n chmod(DIRECTORY_CACHE, 0777);\n }\n }", "title": "" }, { "docid": "86ddc6e90f585e3543b7d771ba3f14f4", "score": "0.5854935", "text": "function exponent_files_uploadDestinationFileExists($dir,$name) {\n\treturn (file_exists(BASE.$dir.\"/\".exponent_files_fixName($_FILES[$name]['name'])));\n}", "title": "" }, { "docid": "23765b53e78261978ed89934ace8a11e", "score": "0.58478886", "text": "public function createDirInRepo(){\n\t\t$pathInRepo = explode(DIRECTORY_SEPARATOR, dirname($this->localPath()));\n\t\t$len = count($pathInRepo);\n\t\tfor($i=0; $i < $len; $i++){\n\t\t\t$dirName = $this->repoDir().implode(DIRECTORY_SEPARATOR, array_slice($pathInRepo, 0, $i+1));\n\t\t\tif(is_dir($dirName)){continue;}\n\t\t\ttry{\n\t\t\t\tmkdir($dirName);\n\t\t\t}\n\t\t\tcatch(Exception $e){\n\t\t\t\t$traceInfo = debug_backtrace();\n\t\t\t\t$callerFile = $traceInfo[0]['file'];\n\t\t\t\t$lineNumber = $traceInfo[0]['line'];\n\t\t\t\t$this->log($e->getMessage().\"\\nfirst call from file: $callerFile, line: $lineNumber\\n\");\n\t\t\t\treturn false;\n\t\t\t};\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "5095ddbbc300f47c2bcb70f62ed1c630", "score": "0.58395183", "text": "function verify_dir($path) {\n // see if directory or file already exists with a given path.\n if (!file_exists($path)) {\n mkdir($path, 0755, true);\n }\n // verify that the path is a directory.\n if (!is_dir($path)) {\n syslog(LOG_INFO, \"$path is not a directory.\");\n return false;\n }\n // verify that the directory is writable.\n if (!is_writeable($path)) {\n syslog(LOG_INFO, \"Could not write to $path.\");\n return false;\n }\n // if we have made it to the end without an error, return true.\n return true;\n }", "title": "" }, { "docid": "ea08bae80ee2885290b505761d3fcd45", "score": "0.5839024", "text": "function test_file($path)\n{\n if (!file_exists($path))\n {\n echo \"cd: {$path}: No such file or directory\\n\";\n return (0);\n }\n if (!is_dir($path))\n {\n echo \"cd: {$path}: Is not a directory\\n\";\n return (0);\n }\n if (!is_readable($path))\n {\n echo \"cd: {$path}: Permission denied\\n\";\n return (0);\n }\n return ($path);\n}", "title": "" }, { "docid": "bc2893048a2c0a4b5d95afa02411ffd1", "score": "0.583398", "text": "function createdir($dir){\n\tif(mkdir($dir, 0777,true )){\n\t\treturn $dir;\n\t}else{\n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "6ff7352a51f169ec276d5a32ebf5f8de", "score": "0.5832623", "text": "function myhome_create_dir( $directory='' )\n{\n$thePath = $directory;\n\n\tif(@is_writable($thePath)){\n\t\tmyhome_chmod($thePath, $mode = 0777);\n Return $thePath;\n\t} elseif(!@is_dir($thePath)) {\n \t myhome_mkdir($thePath);\n Return $thePath;\n\t} else {\n Return 0;\n }\n}", "title": "" }, { "docid": "c68b038d77865f5bdf14656a0cb73cef", "score": "0.58279586", "text": "protected function checkPath($path)\r\n {\r\n $ds = DIRECTORY_SEPARATOR;\r\n $this->path = rtrim(strtr($path, '/\\\\', $ds . $ds), $ds);\r\n\r\n\r\n if (is_dir($this->path)) {\r\n if (is_writeable($this->path)) {\r\n return true;\r\n }\r\n } elseif (mkdir($this->path, 0775)) {\r\n return true;\r\n }\r\n throw new \\Exception('Directory not exist or not writable');\r\n }", "title": "" }, { "docid": "77ec7a110ff8ab175403b2662aec1606", "score": "0.5823272", "text": "static public function checkDirectory( $folder = '' ) \n {\n $application = JFactory::getApplication() ;\n if( $folder == '' ) {\n $folder = COM_SIMPLELISTS_BASE;\n }\n\n jimport('joomla.filesystem.folder');\n if (JFolder::exists($folder)) {\n return true ;\n } else {\n if( JFolder::create( $folder )) {\n $application->enqueueMessage( JText::sprintf( 'Created image directory', $folder ) , 'notice' ) ;\n return true ;\n } else {\n $application->enqueueMessage( JText::sprintf( 'Failed to create directory', $folder ), 'error' ) ;\n return false ;\n }\n }\n }", "title": "" }, { "docid": "1275cd360854fbe14d49b6109a4a4a03", "score": "0.581724", "text": "function check_welcome($dir) {\n\n global $config;\n\n $filename=\".welcome\";\n $fullpath=ereg_replace(\"//\",\"/\",$config['pictures_dir'].\"/\".$dir.\"/\".$filename);\n\n if (!is_file($fullpath) && !is_writable(dirname($fullpath))) {\n echo \"<div class=\\\"errormsg\\\"><b>Aborting</b>, phpGraphy doesn't have enough rights to create a file in this directory, please check the file/directory permissions and reload this page when done</div>\";\n return false;\n }\n\n if (is_readable($fullpath) && !is_writable($fullpath)) {\n echo \"<div class=\\\"errormsg\\\"><b>Aborting</b>, phpGraphy doesn't have enough rights to modify the .welcome file, please check its permissions and reload this page when done</div>\";\n return false;\n }\n\nreturn true;\n\n}", "title": "" }, { "docid": "162ba8bd7666b4361f11b103c8bb84c5", "score": "0.5813926", "text": "public function testFilesDoExist() {\n\t\t$this->loginWithPermission('ADMIN');\n\t\t$folder1 = $this->objFromFixture('Folder', 'folder1');\n\t\t$folder2 = $this->objFromFixture('Folder', 'folder2');\n\n\t\t// Check that sub-folder non-file isn't found\n\t\t$responseRoot = $this->mockFileExists('FirstFile', 'file1.txt', $folder1->ID);\n\t\t$responseRootData = json_decode($responseRoot->getBody());\n\t\t$this->assertFalse($responseRoot->isError());\n\t\t$this->assertTrue($responseRootData->exists);\n\t\t$this->assertEquals(FolderDropdownField::get_last_folder(), $folder1->ID);\n\n\t\t// Check that second level sub-folder non-file isn't found\n\t\t$responseRoot = $this->mockFileExists('FirstFile', 'file2.txt', $folder2->ID);\n\t\t$responseRootData = json_decode($responseRoot->getBody());\n\t\t$this->assertFalse($responseRoot->isError());\n\t\t$this->assertTrue($responseRootData->exists);\n\t\t$this->assertEquals(FolderDropdownField::get_last_folder(), $folder2->ID);\n\t}", "title": "" }, { "docid": "3e795f9898fdfb797f2c288910738336", "score": "0.58064604", "text": "function galleryKategori_CreateDirektori( \n\t \t$tanggalhariini\n\t){\n \t\t$direktoribuat = \"filemodul/gallery/\" . \"kategoriimage/\" . $tanggalhariini . \"/\";\n\t \tif (is_dir( $direktoribuat )) \n\t \t{ }\n\t \telse\n\t \t{\n\t\t\t mkdir( $direktoribuat,'0777',true); \n\t\t\t chmod( $direktoribuat, 0777);\n\t \t}\n\t\treturn $direktoribuat;\n\t}", "title": "" }, { "docid": "71ebdd09a32f27fcdeca25d9c691fb9d", "score": "0.58039373", "text": "function renameDir($oldname, $newname)\n{\n if (file_exists(dirname($oldname))) {\n return rename($oldname, $newname);\n } else {\n return false;\n }\n}", "title": "" }, { "docid": "a5d759a40510b36f9b1fa12f80748eff", "score": "0.5795946", "text": "function _os2dagsorden_plupload_upload_dir_validate($element, &$form_state) {\n $value = $element['#value'];\n if (file_exists($value)) {\n if (!is_writable($value)) {\n form_error($element, t(\"Could not writte to directory. Please check permissions\"));\n }\n }\n else {\n form_error($element, t(\"Directory !value does nor exist\", array('!value' => $value)));\n }\n}", "title": "" }, { "docid": "ac28d4f5d39dd5ed78e6049d2cac79ad", "score": "0.57911855", "text": "function createDirectory($path) {\n\t\t\tif (!$this->_exec(\"MKD $path\") || !$this->_checkCode()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "title": "" }, { "docid": "4e3a6e427c872458b5d921299f82fd8a", "score": "0.57868", "text": "public function getCreateDirectory();", "title": "" }, { "docid": "33acff17e2b0e9b0607922323612194e", "score": "0.5785244", "text": "function check_cache_directory() {\r\n\r\n\t\t\tif (is_dir(YAPB_CACHE_ROOT_DIR_PARENT)) {\r\n\r\n\t\t\t\tif (is_dir(YAPB_CACHE_ROOT_DIR)) {\r\n\r\n\t\t\t\t\tif (!is_writable(YAPB_CACHE_ROOT_DIR)) {\r\n\r\n\t\t\t\t\t\t$this->add_notice(sprintf(__('<strong>YAPB Cache dir not writeable.</strong><br/> Please make sure that %s is writeable.', 'yapb'), YAPB_CACHE_ROOT_DIR));\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t\t// No YAPB cache dir\r\n\t\t\t\t\t// We try to create it\r\n\t\t\t\t\t\r\n\t\t\t\t\t$success = @mkdir(YAPB_CACHE_ROOT_DIR, 0777);\r\n\r\n\t\t\t\t\tif ($success) {\r\n\r\n\t\t\t\t\t\t// Success notice on the admin backend\r\n\t\t\t\t\t\t$this->add_notice(sprintf(__('<strong>YAPB thumbnail cache directory created</strong><br/>YAPB successfully created the directory %s for the internal thumbnail cache.', 'yapb'), YAPB_CACHE_ROOT_DIR));\r\n\r\n\t\t\t\t\t\tif (!is_writeable(YAPB_CACHE_ROOT_DIR)) {\r\n\t\t\t\t\t\t\t$this->add_notice(sprintf(__('<strong>Could not set sufficient directory permission</strong><br/> Please make sure that the directory %s is writeable.', 'yapb'), YAPB_CACHE_ROOT_DIR));\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\t// Warning notice on the admin backend\r\n\t\t\t\t\t\t$this->add_notice(sprintf(__('<strong>Could not create YAPB Cache directory automatically.</strong><br/>Please create %s manually. Don\\'t forget to set the according directory permissions to 777 or 775.', 'yapb'), YAPB_CACHE_ROOT_DIR));\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\t$this->add_notice(sprintf(__('<strong>Configured WordPress upload directory doesn\\'t exist</strong><br/> Please make sure that the directory %s exists and is writeable.', 'yapb'), YAPB_CACHE_ROOT_DIR_PARENT));\r\n\r\n\t\t\t}\r\n\r\n\t\t}", "title": "" }, { "docid": "c0caedd111eb8e1fdc556f4f84e2bbc6", "score": "0.57813865", "text": "public function createmediadir(){\n\t\t$itemsmediadir=$this->getmediadir();\n\t\tif(empty($itemsmediadir)){\n\t\t\treturn false;\n\t\t\t}\n\t\tif(!is_dir($itemsmediadir)){\n\t\t\tmkdir($itemsmediadir,0777, true);\n\t\t\t}\n\t\treturn true;\n\t\t}", "title": "" } ]
91fdf512ff6bd14c00f70b4899e1422a
Fetch a single record based on the primary key. Returns an object.
[ { "docid": "bae0ee1d77bd5ff6745e87c98e5f5b68", "score": "0.0", "text": "function IsValidSessionID($uniqueKey) {\n $this->db->select($this->primary_key);\n $this->db->from($this->_table);\n $this->db->limit('1');\n $this->db->where(\"SessionID\", $uniqueKey);\n $query = $this->db->get();\n $result = $query->result_array();\n if (empty($result)) {\n return true;\n }\n return false;\n }", "title": "" } ]
[ { "docid": "01c51326de5c738f69a4534e67d12b42", "score": "0.72864324", "text": "public function getOneRecord();", "title": "" }, { "docid": "acbf422c2f91f28ce50fce73c19ba660", "score": "0.72018415", "text": "public function fetchSingle(){\n\t\t$this->execute();\n\t\treturn $this->stmt->fetch(PDO::FETCH_OBJ);\n\t}", "title": "" }, { "docid": "25e6621c192500878de1414a18941b62", "score": "0.71768916", "text": "public function fetchOne($key): EntityInterface;", "title": "" }, { "docid": "a08015ae403166068a643c470bdc9147", "score": "0.71760035", "text": "static function __fetch_record() {\n\t\t$keys = self::__pk();\n\t\t$table = self::__table();\n\t\t$arguments = func_get_args();\n\n\t\tif(sizeof($arguments) != sizeof($keys)) {\n\t\t\tthrow new D_Core_Exception(\"Fetching with wrong keys number!\");\n\t\t}\n\n\t\t$request = array();\n\t\t$query = array();\n\n\t\tfor($x = 0; $x < sizeof($keys); $x++) {\n\t\t\t$name = $keys[$x];\n\t\t\t$value = $arguments[$x];\n\t\t\t$query[] = \"{$name} = :{$name}\";\n\t\t\t$request[$name] = $value;\n\t\t}\n\t\treturn D::$db->fetchobject(\"SELECT * FROM {$table} WHERE \".implode(' AND ',$query).\" LIMIT 1\", get_called_class(), $request);\n\t}", "title": "" }, { "docid": "8bedb39a57d126c38dad202aa637a8ac", "score": "0.71683633", "text": "public function single() {\n\t\t$this->execute();\n\t\treturn $this->stmt->fetch(PDO::FETCH_OBJ);\n\t}", "title": "" }, { "docid": "1f40ed448f6e6b17f6a4588c8d73263c", "score": "0.7124858", "text": "static function retrieveByPK($the_pk) {\n\t\treturn Article::retrieveByPKs($the_pk);\n\t}", "title": "" }, { "docid": "8f61baab69712415c281dbc1721c1801", "score": "0.712482", "text": "public function single() {\n\t\t\t$this->execute();\n\t\t\treturn $this->stmt->fetch(PDO::FETCH_OBJ);\n\t\t}", "title": "" }, { "docid": "892fd9b68c255f9ef615db10a9f658a0", "score": "0.71152186", "text": "public function fetchOne();", "title": "" }, { "docid": "2e7cbf5d37771ac06fb81a4a1c20053c", "score": "0.7082781", "text": "function & getRecord($pk = null)\n\t{\n\t\tif ($this->_loadRecord($pk))\n\t\t{\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->_initRecord();\n\t\t}\n\n\t\treturn $this->_record;\n\t}", "title": "" }, { "docid": "8f17f8054c90327c265ab3ce8f820ab7", "score": "0.70777345", "text": "public function fetchSingleById($id);", "title": "" }, { "docid": "e6d7c13e1b022817b26ff82f1b7a8283", "score": "0.7069606", "text": "public function single()\n {\n $this->execute();\n return $this->statement->fetch(PDO::FETCH_OBJ);\n }", "title": "" }, { "docid": "cde3c013f4e7b9b125768166ce764359", "score": "0.7049427", "text": "public function single() {\n $this->execute();\n return $this->stmt->fetch(PDO::FETCH_OBJ);\n }", "title": "" }, { "docid": "0ab6d32e3d65f13304217248d5ea82df", "score": "0.7043647", "text": "static function retrieveByPK($id) {\n\t\treturn static::retrieveByPKs($id);\n\t}", "title": "" }, { "docid": "0ab6d32e3d65f13304217248d5ea82df", "score": "0.7043647", "text": "static function retrieveByPK($id) {\n\t\treturn static::retrieveByPKs($id);\n\t}", "title": "" }, { "docid": "6439c07f2733a942e66e6f501b629636", "score": "0.7019401", "text": "public function single()\n {\n $this->execute();\n return $this->statement->fetch(PDO::FETCH_OBJ);\n }", "title": "" }, { "docid": "ee3dcc13627255afc2996ef4304feee9", "score": "0.7019062", "text": "public function getSingleRecord($table, $pri_key, $id) {\n \t$pre_stmt = $this->con->prepare(\"SELECT * FROM \".$table.\" WHERE \".$pri_key.\"= ? LIMIT 1\");\n \t$pre_stmt->bind_param(\"i\", $id);\n \t$pre_stmt->execute() or die($this->con->error);\n \t$result = $pre_stmt->get_result();\n\n \tif ($result->num_rows == 1) {\n \t\t$row = $result->fetch_assoc();\n \t}\n \treturn $row;\n\n }", "title": "" }, { "docid": "fb7eda26067948f4ffad4aaa61d33caa", "score": "0.70082337", "text": "public function retrieveById($identifier) {\n $result = $this->createModel()->newQuery()->getQuery()\n ->r()->get($identifier)->run();\n\n $result = $this->hydrate($result);\n\n if( $result )\n $result = $result->first();\n\n return $result;\n }", "title": "" }, { "docid": "9916f46cc52c4740eb5dfe560d258f65", "score": "0.7003263", "text": "function get_by_id($id)\n {\n //$result = $this->get('*', array($this->primary_key => $id), null, 1); // Get * from table where primary_key = ? limit 1\n $result = $this->get(array(\n 'fields' => '*',\n 'where' => array($this->primary_key => $id),\n 'limit' => 1\n ));\n if(count($result)) {\n return $result[0];\n }\n else {\n return false;\n }\n }", "title": "" }, { "docid": "ea623f9677e8f3015cb874fe6dcb84ad", "score": "0.69986546", "text": "function GetRecordByPrimaryKey($unirecid)\n {\n return $this->GetRecordByPk($unirecid);\n }", "title": "" }, { "docid": "52f7ab19c1ea0dc70f48cf3f6860641c", "score": "0.6996172", "text": "public static function get($pk) {\n return self::getPdoOne()->select('*')\n ->from(self::TABLE)\n ->where(self::PK, $pk)\n ->first();\n }", "title": "" }, { "docid": "81683c8849b3d1d182d7420df0f71f08", "score": "0.6995083", "text": "public function single(){\n\t\t\t$this->execute();\n\t\t\treturn $this->statement->fetch(PDO::FETCH_OBJ);\n\t\t}", "title": "" }, { "docid": "c8785d112ed29fcfa8dc871ea8a12d6e", "score": "0.6980864", "text": "public function single() {\n\n $this->execute();\n\n return $this->statement->fetch(PDO::FETCH_OBJ);\n\n }", "title": "" }, { "docid": "3c027a9a7c8d6b66fd4f18954d1951e0", "score": "0.69803625", "text": "public function single() {\n $this->excute();\n return $this->stmt->fetch(PDO::FETCH_OBJ);\n }", "title": "" }, { "docid": "b84e7d3eb29304a3d2121668aa608361", "score": "0.69706935", "text": "public function findOne(){\n try {\n $this->execute();\n return $this->stmt->fetch(PDO::FETCH_OBJ);\n } catch (PDOException $e){return null; }\n }", "title": "" }, { "docid": "d3794412f23531af6ba27ce633d23eee", "score": "0.6961223", "text": "public function fetchOne()\n {\n return $this->fetch('one');\n }", "title": "" }, { "docid": "c5fb19c86e4cc7fe5a0e62fa15907db4", "score": "0.6960917", "text": "public function fetchRecord()\n {\n $args = func_get_args();\n $stmt = $this->pdo->prepare(array_shift($args));\n $stmt->execute($args);\n return $stmt->fetch(PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "d7cca5e304c717ceffe3e8263099f4d6", "score": "0.6920026", "text": "public function get($pk){\r\n\t\t\r\n\t\t// If the Primary Key is an Array\r\n\t\tif(is_array($pk)){\r\n\t\t\t// Call the parent's find method with dynamic amount of parameters\r\n\t\t\treturn call_user_func_array(array($this,'find'), $pk)->current();\r\n\t\t}\r\n\t\t// The primary Key Is a single column\r\n\t\treturn parent::find($pk)->current();\r\n\t}", "title": "" }, { "docid": "ace79e5f8b520cd57e70d909ff84db09", "score": "0.68780357", "text": "public function retrieveById( $identifier );", "title": "" }, { "docid": "f8dc7a2d7982721da2cf8ef3d1b90df4", "score": "0.68760127", "text": "public function single(){\n $this->execute();\n return $this->stmt->fetch(PDO::FETCH_OBJ);\n }", "title": "" }, { "docid": "f5c77a9c6df9e39f079f01627a925054", "score": "0.684289", "text": "public function fetchOne()\n\t{\n\t\treturn $this->connection->fetchOne($this->buildSelect());\n\t}", "title": "" }, { "docid": "ae6ac4540b9657f7d704fc4ab502800a", "score": "0.68271863", "text": "public function loadOne($key) {\n\t\t$record = $this->dba->get($this->tableName, $key);\n\t\tif (isset($record)) {\n\t\t\t$model = $this->mapRowToModel($record);\n\t\t}\n\t\treturn isset($model) ? $model : null;\n\t}", "title": "" }, { "docid": "27f5f213eedbfbd8246323f5aff92908", "score": "0.68246055", "text": "public function getObjectByPk($pk) {\n // Fetch the object\n $results = $this->allObjectsWithQuery(\"WHERE {$this->tablePrimaryKeyField} = :pk\", array(\"pk\" => $pk));\n if(count($results) == 0) return false;\n else return $results[0];\n }", "title": "" }, { "docid": "7b5f2631c7c453819dce7e4acfb6e8f2", "score": "0.68165416", "text": "public function getById(string $value)\n {\n // This is the primary key, so try and get from cache:\n $cacheResult = $this->cacheGet($value);\n\n if (!empty($cacheResult)) {\n return $cacheResult;\n }\n\n $rtn = $this->where('id', $value)->first();\n $this->cacheSet($value, $rtn);\n\n return $rtn;\n }", "title": "" }, { "docid": "7b5f2631c7c453819dce7e4acfb6e8f2", "score": "0.68165416", "text": "public function getById(string $value)\n {\n // This is the primary key, so try and get from cache:\n $cacheResult = $this->cacheGet($value);\n\n if (!empty($cacheResult)) {\n return $cacheResult;\n }\n\n $rtn = $this->where('id', $value)->first();\n $this->cacheSet($value, $rtn);\n\n return $rtn;\n }", "title": "" }, { "docid": "466d2701e57c62e89d7f53a0d0d8e2c9", "score": "0.6815247", "text": "public function by_primary_key( $primary_key ) {\n\t\treturn $this->by( $this->primary_key, $primary_key )->first();\n\t}", "title": "" }, { "docid": "e03bac0b3cda59f9b5eec617290e2058", "score": "0.68077946", "text": "public function fetchOne($primary = null)\n {\n // If id was passed, add to where clause\n if (null !== $primary) { $this->wherePrimary($primary); }\n\n // Run the query, fetch a row\n $row = $this->limit(1)->read()->fetchRow();\n\n // If we got results, return populated self, or hyrdated new instance\n return (null !== $row) ? $this->data($row) : null;\n }", "title": "" }, { "docid": "5989f1a33bfc3e311c425413e8531602", "score": "0.6773397", "text": "public function getRecord( $id ){}", "title": "" }, { "docid": "3710182ce41b422feb6590f22333097a", "score": "0.67617035", "text": "public function getOne($id);", "title": "" }, { "docid": "3710182ce41b422feb6590f22333097a", "score": "0.67617035", "text": "public function getOne($id);", "title": "" }, { "docid": "9af04819153c937f9ed26e4a7b553e3d", "score": "0.67441016", "text": "public function retrieveById($identifier)\n {\n $model = $this->createModel();\n\n $key = $model->getAuthIdentifierName();\n if ($key &&\n is_array($key)\n ) {\n $key = $key[0];\n }\n\n return $this->newModelQuery($model)\n ->where($key, $identifier)\n ->first();\n }", "title": "" }, { "docid": "5ada2644ef574ec9fb8c1de241b44cd6", "score": "0.6738194", "text": "public static function getOneRecord($id)\r\n {\r\n $db = dbConn::getConnection();\r\n $tableName = get_called_class();\r\n $sql = \"SELECT * from \" . $tableName . \" WHERE id = $id\";\r\n $statement = $db->prepare($sql);\r\n $statement->execute();\r\n $class = static::$modelName;\r\n $statement->setFetchMode(PDO::FETCH_CLASS, $class);\r\n $record = $statement->fetchAll();\r\n return $record;\r\n }", "title": "" }, { "docid": "dce0a81318d209b1251bf6430f4dd4f4", "score": "0.6735138", "text": "public function fetchOne($id)\n {\n return $this->getEntityRepository()->findOneBy(array('id' => $id));\n }", "title": "" }, { "docid": "d81bdbc9b9ae8e77eb7eb376b3cae134", "score": "0.6734296", "text": "public function getRecord() {\n\n \t$args = func_get_args();\n\n\ttry\n\t{\n\t\t$result = $this->executeQuery($args);\n\t}\n\tcatch (Exception $e)\n\t{\n\t\t$this->logError($args,$e);\n\t}\n\n\tif (!is_object($e)) {\n\n\t\t$row = mysqli_fetch_object($result);\n\n\t\t// free the memory\n\t\tmysqli_free_result($result);\n\n\t\treturn $row;\n\t}\n }", "title": "" }, { "docid": "c2a0787fb7230f73848c8e2b0d68ca6f", "score": "0.67311215", "text": "public function retrieveById($identifier);", "title": "" }, { "docid": "c2a0787fb7230f73848c8e2b0d68ca6f", "score": "0.67311215", "text": "public function retrieveById($identifier);", "title": "" }, { "docid": "b1759fe32c13ffa15fe218d0a29de128", "score": "0.6718752", "text": "static public function byPK( $id ) {\n\t\tif ( $object = static::_fromCache($id) ) {\n\t\t\treturn $object;\n\t\t}\n\n\t\t$query = static::$_table . '.' . static::$_pk . ' = ?';\n\t\treturn static::findOne($query, $id);\n\t}", "title": "" }, { "docid": "9d1f2e2c8846c4abf80efe290437ef33", "score": "0.6703921", "text": "private function getRecordFromDb(){\n \n if(!$this->primaryKey >0){\n $this->lastErrorMessage = \"getRecordFromDb: primaryKey not set\";\n return false;\n }\n \n $sql = \"SELECT * FROM $this->table WHERE $this->primaryKeyName = 294\";\n \n $stmt = $this->db->prepare($sql);\n $stmt->execute();\n $rst = $stmt->fetch(PDO::FETCH_ASSOC);\n\n if($rst){\n //** set properties **//\n $this->year = $rst['year'];\n }else{\n $this->lastErrorMessage = \"getRecordFromDb: No record returned\";\n return false;\n }\n \n \n }", "title": "" }, { "docid": "a08416c01aa1f5d71f4e8582118ade98", "score": "0.67002493", "text": "public function find($pk) {\n $stmt = $this->pdo->prepare(\"SELECT * FROM \".$this->table.\" WHERE \".$this->primaryKey.\" = ?\");\n $stmt->execute([$pk]);\n $result = $stmt->fetch(\\PDO::FETCH_ASSOC);\n if ($result) {\n $object = new $this->model();\n $object->set($result);\n return $object;\n }\n else {\n return null;\n }\n }", "title": "" }, { "docid": "42f8ad231a69ce05b83b1dd4dd59a199", "score": "0.6676572", "text": "public function fetchById($id);", "title": "" }, { "docid": "42f8ad231a69ce05b83b1dd4dd59a199", "score": "0.6676572", "text": "public function fetchById($id);", "title": "" }, { "docid": "42f8ad231a69ce05b83b1dd4dd59a199", "score": "0.6676572", "text": "public function fetchById($id);", "title": "" }, { "docid": "42f8ad231a69ce05b83b1dd4dd59a199", "score": "0.6676572", "text": "public function fetchById($id);", "title": "" }, { "docid": "42f8ad231a69ce05b83b1dd4dd59a199", "score": "0.6676572", "text": "public function fetchById($id);", "title": "" }, { "docid": "42f8ad231a69ce05b83b1dd4dd59a199", "score": "0.6676572", "text": "public function fetchById($id);", "title": "" }, { "docid": "42f8ad231a69ce05b83b1dd4dd59a199", "score": "0.6676572", "text": "public function fetchById($id);", "title": "" }, { "docid": "42f8ad231a69ce05b83b1dd4dd59a199", "score": "0.6676572", "text": "public function fetchById($id);", "title": "" }, { "docid": "645226f05b6d8fc56cce842efb7ca42b", "score": "0.6675255", "text": "public function single(){\r\n // Execute method\r\n $this->execute();\r\n // Fetch method\r\n return $this->stmt->fetch(PDO::FETCH_ASSOC);\r\n }", "title": "" }, { "docid": "3af270527e54194823e3bc47c0d134d4", "score": "0.6671101", "text": "abstract public function retrieve($id);", "title": "" }, { "docid": "f77598a3897ad19ed6ee67b0c6b71b79", "score": "0.66601807", "text": "public function retrieveById($identifier)\n {\n $driverName = Config::get('roycedb.driver.name');\n\n if ($driverName == \"adldap\") {\n return $this->fallback->retrieveById($identifier);\n }\n\n $model = $this->createModel();\n\n return $model->newQuery()\n ->where($model->getAuthIdentifierName(), $identifier)\n ->first();\n \n }", "title": "" }, { "docid": "30a40cb8c500ca91c97c89cdc40c3f98", "score": "0.665938", "text": "public function retrieveById($identifier) {\n \t$m = $this->modelName;\n \treturn $m::findForAuth($identifier);\n }", "title": "" }, { "docid": "272e466b9773321dbccac5c477eff683", "score": "0.66550374", "text": "public function get($row_id)\n {\n global $wpdb;\n\n return $wpdb->get_row($wpdb->prepare(\n \"SELECT * FROM $this->tableName WHERE $this->primary_key = %s LIMIT 1;\", $row_id\n ));\n }", "title": "" }, { "docid": "63c7cb024e935bca3eec6e4ecd9994c0", "score": "0.66519034", "text": "static public function retrieveByIdentifier($identifier, PropelPDO $con = null)\n {\n $criteria = new Criteria();\n\n $criteria->add(self::IDENTIFIER, $identifier);\n\n return self::doSelectOne($criteria, $con);\n }", "title": "" }, { "docid": "f1776b9efadd839e6a30de2666a2f399", "score": "0.66492075", "text": "public function fetchEntry($id)\n\t{\n\t\treturn $this->getTable()->find($id);\n\t}", "title": "" }, { "docid": "109a25828489c9fcc91618532725fa3a", "score": "0.66464174", "text": "public function singleRow(){\n $this->execute();\n return $this->statement->fetch(PDO::FETCH_OBJ);\n }", "title": "" }, { "docid": "8a361c8585480b6117c3bd20787627a0", "score": "0.66456044", "text": "abstract function get_record($id, $assoc=false);", "title": "" }, { "docid": "c0a15bcb94bbe88e2c16f7ee3b84c315", "score": "0.66251034", "text": "public function fetch($keyId);", "title": "" }, { "docid": "727c0fb079b27bdbc4a149d3ced61311", "score": "0.6617491", "text": "public function single()\n {\n $this->execute();\n return $this->stmt->fetch(PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "727c0fb079b27bdbc4a149d3ced61311", "score": "0.6617491", "text": "public function single()\n {\n $this->execute();\n return $this->stmt->fetch(PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "86aba1fdde2f34634901c0d1abefaea7", "score": "0.6614858", "text": "function get_by_id ($id) {\n\t \n\t\treturn $this->db->query(\"SELECT *\\n\".\n \"FROM `{$this->_table_name}`\\n\".\n \"WHERE `{$this->_primary_key}`=?\\n\".\n \"LIMIT 1;\", $id)->row();\n\t}", "title": "" }, { "docid": "f971e43aec58ad86956a72f05ca3b5f5", "score": "0.66137767", "text": "public function fetch_object() {\n if (!is_null($this->result))\n return mysql_fetch_object($this->result);\n }", "title": "" }, { "docid": "53c494b8da7a7ec5563645fd680520c3", "score": "0.6600632", "text": "public function get(string $rowId);", "title": "" }, { "docid": "7a4d9aee62334d037ae4503e2e03133b", "score": "0.6598703", "text": "public function fetch() {\n $class = get_class($this);\n $table = str_replace('skf\\dao_', '', $class);\n $pk = (string) $this->primary_key;\n $pk = $this->$pk;\n $sql = \"SELECT * FROM $table WHERE $this->primary_key = $pk\";\n $stmt = $this->db->query($sql);\n return $stmt->fetchALL(\\PDO::FETCH_CLASS, $class, array($this->db));\n }", "title": "" }, { "docid": "146ee34e1bf91b2c8011278c24928993", "score": "0.65978175", "text": "public static function get($primaryKey): ?self\n\t{\n\t\t$cache = static::connection()->getCache();\n\n\t\tif ($cache->has($primaryKey, static::class))\n\t\t\treturn $cache->get($primaryKey, static::class);\n\n\t\tif (is_int($primaryKey))\n\t\t\t$primaryKey = literal($primaryKey);\n\n\t\treturn static::where(static::column(static::$primaryKey), $primaryKey)\n\t\t\t->single();\n\t}", "title": "" }, { "docid": "36fcd7e12f4d63552808303d46bfc399", "score": "0.6586202", "text": "public function getOne(){\n //hacemos la consulta y lo guardamos en una variable\n $producto=$this->db->query(\"SELECT * FROM productos where id={$this->getId()};\");\n //devolvemos un valor en especifico y lo comvertimos a un objeto completamente usable.\n return $producto->fetch_object();\n }", "title": "" }, { "docid": "270618b6c391f72b705294c43e992906", "score": "0.6584633", "text": "public function retrieveById($identifier)\n {\n $model = $this->createModel();\n\n return $this->newModelQuery($model)\n ->where($model->getAuthIdentifierName(), $identifier)\n ->first();\n }", "title": "" }, { "docid": "8f2672ad8d8fb7cf3d9da31793acb84e", "score": "0.65822864", "text": "function get($idvalue) {\n // Quick string convert if it is a valid integer\n if ( is_string($idvalue) ) {\n $ival = intval($idvalue);\n if ( $ival > 0 ) $idvalue = $ival;\n }\n\n if ( ! is_int($idvalue) ) {\n DPRT(\"get() \".$this->modelname().\" requires an integer primary key\");\n return false;\n }\n $where = \"id = \" . $idvalue;\n return $this->load_one_object($where);\n }", "title": "" }, { "docid": "ef0dde4a2e80c6c73458c415a0da287a", "score": "0.65809244", "text": "static function getByPrimaryKey($value)\n {\n $condition = array();\n $condition[static::$primaryKey] = $value;\n return self::getOne($condition);\n }", "title": "" }, { "docid": "a862f67e54bef7ee0e8050dff719175c", "score": "0.6574345", "text": "public function retrieveByID( $identifier )\n\t{\n\t\treturn $this->_getMapper()->findById( $identifier );\n\t}", "title": "" }, { "docid": "0f79401adc83535dce95c3270f3963c4", "score": "0.65732116", "text": "public function load($primary_value)\n {\n $obj = $this->find_one(array($this->primary_key => $primary_value));\n if ($obj)\n {\n $this->data = $obj->data; // We already call after_db func in $this->find_one, so we do not need to call it again\n $this->dirty = array(); // Clear dirty array, we all loaded from db.\n }\n return $obj;\n }", "title": "" }, { "docid": "250729e1ed8e9bfee71d72ce96308a61", "score": "0.65707916", "text": "public function single() { \n $this->execute(); \n return $this->stmt->fetch(PDO::FETCH_ASSOC); \n }", "title": "" }, { "docid": "1b87ad85aa661381321e014beb03a28b", "score": "0.6570151", "text": "public function retrieve($id);", "title": "" }, { "docid": "1b87ad85aa661381321e014beb03a28b", "score": "0.6570151", "text": "public function retrieve($id);", "title": "" }, { "docid": "81967bce6b408153e951fb7c7a60e3f5", "score": "0.6566453", "text": "function fetchOne($arParams) {\n $arResult = $this->db->fetch1(\n $this->generateFetchQuery($arParams)\n );\n return $arResult;\n }", "title": "" }, { "docid": "fb48e1f836af3b9f72c5465b3d859e71", "score": "0.6565499", "text": "public function fetch() {\r\n $table = $this->getTable();\r\n $result = $table->find($this->_id);\r\n //Zend_Debug::dump($result);die;\r\n if ($result) {\r\n $result = $result->toArray();\r\n }\r\n return $result['0'];\r\n }", "title": "" }, { "docid": "3ba84315b3d492fda170eed2d5f8d508", "score": "0.6556915", "text": "public function fetchOne(){\n $this->execute();\n return $this->stmt->fetch(PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "c7a9a7dc8bb30a2a42d36ab639d9aa15", "score": "0.6555985", "text": "public function getSingleData(){\n $this->execute();\n\n return $this->statement->fetch(PDO::FETCH_OBJ);\n }", "title": "" }, { "docid": "f1970736b9c74e7a539e9b02e0578313", "score": "0.65558547", "text": "public function fetchById($id)\r\n {\r\n return $this->findByPk($id);\r\n }", "title": "" }, { "docid": "d3dcd69035c69ba6b1a778b398e8dc7f", "score": "0.65536076", "text": "public function GetSingleRecord($id) {\n // TODO: Write definition of this method\n }", "title": "" }, { "docid": "c041a992b6776f6069c39698da2c896d", "score": "0.6545332", "text": "public function find($primary_key_value)\n\t{\n\t\t$query = \"SELECT * FROM {$this->getTableName()} WHERE {$this->getPrimaryKeyName()} = :primary_key ORDER BY id DESC LIMIT 1\";\n\t\t$statement = $this->db->connection->prepare($query);\n\t\t$statement->execute([':primary_key' => $primary_key_value]);\n\n\t\t$result = $statement->fetch($this->db->connection::FETCH_ASSOC);\n\n\t\treturn $this->hydrate($this, $result);\n\t}", "title": "" }, { "docid": "ce71e21f23b413c33803737ea436d493", "score": "0.65334", "text": "public function get($id){\n $sql = \"SELECT * FROM \" . $this->_table . \" WHERE \" . $this->_key . \" = ?;\";\n $query = $this->db->query($sql,$id);\n return $query->row();\n }", "title": "" }, { "docid": "3cbfd195c3af4fc2545ad7b15b7ff7c6", "score": "0.6502436", "text": "public function retrieveById($identifier){\n\t\t$user = $this->model->where('id', '=', $identifier)->first();\n\t\treturn $user;\n\t}", "title": "" }, { "docid": "e023e6e55cdbba3a077624042efbb652", "score": "0.6495857", "text": "public function get($rowId);", "title": "" }, { "docid": "d977c1ec7868b45674b68447ce772c4c", "score": "0.64915", "text": "static public function __fetch() {\n\t\treturn call_user_func_array(array(get_called_class(),'__fetch_record'), func_get_args());\n\t}", "title": "" }, { "docid": "f4acbccc96d9bfade104612c08374ba4", "score": "0.64879996", "text": "public function find($primaryKey) {\n\t\t$table = $this->getTable();\n\t\t$table->wherePrimary($primaryKey);\n\t\treturn $table->fetch();\n\t}", "title": "" }, { "docid": "67e7d892c9b518a71e390122420c0ba1", "score": "0.64865756", "text": "public function getOneById(int $id);", "title": "" }, { "docid": "bdb279277346704cd69ce4efa17fc0c3", "score": "0.6483838", "text": "public function fetch($id);", "title": "" }, { "docid": "bdb279277346704cd69ce4efa17fc0c3", "score": "0.6483838", "text": "public function fetch($id);", "title": "" }, { "docid": "bdb279277346704cd69ce4efa17fc0c3", "score": "0.6483838", "text": "public function fetch($id);", "title": "" }, { "docid": "09d0b132ed47fb03b9f0398ae5232bb6", "score": "0.6482728", "text": "function fetch_row($query_id = -1)\n {\n if ($query_id != -1)\n $this->query_id = $query_id;\n $this->record = @mysql_fetch_row($this->query_id);\n return $this->record;\n }", "title": "" }, { "docid": "8e3a8ce44ceb4c32004ac56c404ca6cd", "score": "0.6479561", "text": "public function getOneById($id)\n {\n return DB::load($this->table, $id);\n }", "title": "" }, { "docid": "9f709360d4581ba0b92d868e4f2f283a", "score": "0.6478102", "text": "public function fetchOne()\n {\n }", "title": "" } ]
1270b0825db69f8fff6dee8e77efab89
return the total cont columns
[ { "docid": "505e560a87ad256b5cf2171dd1e69904", "score": "0.67864347", "text": "public function countColumns()\n {\n return count($this->columns);\n }", "title": "" } ]
[ { "docid": "f67d166bd7fba7421f61bca47c07483b", "score": "0.748962", "text": "abstract public function getColumnsCount();", "title": "" }, { "docid": "a50b734d6ba5cfff001f8631c31c9e90", "score": "0.7409936", "text": "public function columnCount();", "title": "" }, { "docid": "d1cda2542f81923d3431f40548c6820b", "score": "0.6982299", "text": "public function getNumColumns() {\n\t\treturn $this->_num_cols;\n\t}", "title": "" }, { "docid": "707ee17fc25a8d3bdf5ef3dde8f71a7d", "score": "0.69704777", "text": "function numCols() {\n }", "title": "" }, { "docid": "ffaae359b2536d1f1b16edb948d147ac", "score": "0.67335945", "text": "public function numberCols() {\n $valueReturn = 0;\n if (isset($this->_result))\n $valueReturn = pg_fetch_all_columns($this->_result);\n return $valueReturn;\n }", "title": "" }, { "docid": "d24f1e9e31b6972feb47c9acb67da0d7", "score": "0.67278236", "text": "public function getColsNum();", "title": "" }, { "docid": "4cc8673e4cf5006663e9f010cf6240e1", "score": "0.6722496", "text": "public function columnCount()\n {\n }", "title": "" }, { "docid": "acd0f552135bee720a9f1203d0d40731", "score": "0.66747147", "text": "function NumCols() {}", "title": "" }, { "docid": "05fdd10bd1903c70b3beb7ade2032939", "score": "0.6627014", "text": "public function summaryColumns();", "title": "" }, { "docid": "94e4555d4a2499d8e2ff6d62d3758ed2", "score": "0.66055024", "text": "public function get_column_count()\n {\n }", "title": "" }, { "docid": "87b085e41f23d7f45edbe243a94c850b", "score": "0.6588896", "text": "public function ColCount() {\n return $this->_coln;\n }", "title": "" }, { "docid": "2238ff93a1354c3ef80d94fd64f3cc2b", "score": "0.65399235", "text": "public function numColumns() : int\n {\n return count($this->samples[0] ?? []);\n }", "title": "" }, { "docid": "a48e3cb38b21cde793bffc8ee70b9503", "score": "0.649912", "text": "public function columns();", "title": "" }, { "docid": "32c369cb7bab0d61da5e153500e94c96", "score": "0.64947665", "text": "public function getColsNum()\n\t{\n\t\tif(isset($this->table[0])) {\n\t\t\treturn count($this->table[0]);\n\t\t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "f7630d0db91ec8279a4315714ebf9c0c", "score": "0.6453256", "text": "protected function calculateRowsAndColumns() {}", "title": "" }, { "docid": "4f92192b8c4d418e651838b7e5647108", "score": "0.6452873", "text": "public function getColumns();", "title": "" }, { "docid": "4f92192b8c4d418e651838b7e5647108", "score": "0.6452873", "text": "public function getColumns();", "title": "" }, { "docid": "4f92192b8c4d418e651838b7e5647108", "score": "0.6452873", "text": "public function getColumns();", "title": "" }, { "docid": "4f92192b8c4d418e651838b7e5647108", "score": "0.6452873", "text": "public function getColumns();", "title": "" }, { "docid": "4f92192b8c4d418e651838b7e5647108", "score": "0.6452873", "text": "public function getColumns();", "title": "" }, { "docid": "4f92192b8c4d418e651838b7e5647108", "score": "0.6452873", "text": "public function getColumns();", "title": "" }, { "docid": "282821d89856a0b9585cc2b141114caf", "score": "0.6446082", "text": "protected function calculateColumnsWidth()\r\n {\r\n if ($this->_columns > 0)\r\n return ($this->Width / $this->_columns);\r\n else\r\n return 1;\r\n }", "title": "" }, { "docid": "ce636826f789c73068565a79cc83b95c", "score": "0.6385257", "text": "public function getCols();", "title": "" }, { "docid": "020067a80d24c6e862b97628760d1675", "score": "0.6381072", "text": "public function getCols() {\n\t\treturn count( $this->matrix[0] );\n\t}", "title": "" }, { "docid": "5304a26c94a389b42dd7607e411ff135", "score": "0.6359015", "text": "function numCols($result)\n {\n $this->getRows();\n return(count(array_keys($this->_record)));\n }", "title": "" }, { "docid": "17dcae2e2e5cfe09221ed45960fb1d06", "score": "0.6327636", "text": "private function countCol() {\n\t\t\t$line1 = fgets( $this->handle );\n\t\t\t$out = explode(';',$line1);\n\t\t\treturn count($out);\n\t\t}", "title": "" }, { "docid": "6963a4feb73cdca100ebfb6815f5ad0b", "score": "0.6325861", "text": "public abstract function getColumnsCount($result_set);", "title": "" }, { "docid": "af00c5fcfa7f4d40ef1971863ee0d4bd", "score": "0.6306573", "text": "public function getNumberCols() {\n\t\treturn $this->_numbercols;\n\t}", "title": "" }, { "docid": "1abd7080ea0d12e87b4ee2543a3f8ee7", "score": "0.6295251", "text": "public function columnCount() {\n\t\tif( !$this->_result ) return 0;\n\t\treturn mssql_num_fields($this->_result);\n\t}", "title": "" }, { "docid": "4151d192749bb204e8305ffed341c548", "score": "0.62320936", "text": "public function getNumberOfColumns() {\n return count($this->columns);\n }", "title": "" }, { "docid": "f1fefc5a56a71e0824687da2c41b698b", "score": "0.619794", "text": "public function getSumColumn();", "title": "" }, { "docid": "72a92e83b4544565456baae968be526a", "score": "0.61782473", "text": "public function Size() {\n return $this->RowCount() * $this->_coln;\n }", "title": "" }, { "docid": "d2e82c0e41554114258c29f8aa2d825a", "score": "0.6173452", "text": "public function getColumns()\n\t{\n\t\t\n $result = $this->fetchingData(array(\n 'query' => \"SHOW FULL COLUMNS FROM `$this->table`\"\n ));\n\n return $result;\n\t}", "title": "" }, { "docid": "70f130e0bd31af85a1f8c4921ed0f0d8", "score": "0.61621827", "text": "public function getTotal(){\n\t\t\t$sql = \"SELECT COUNT(*) as c FROM clientes\";\n\t\t\t$sql = $this->db->query($sql);\n\t\t\t$sql = $sql->fetch();\n\t\n\t\t\treturn $sql['c'];\n\t\t}", "title": "" }, { "docid": "7da682f0b9c876839044391d20f9c822", "score": "0.6160132", "text": "public function GetColCount() {\n\t\treturn $this->colCount;\n\t}", "title": "" }, { "docid": "91e22fc55e887e27f5e5b78e31398016", "score": "0.6131888", "text": "public function getCols() : int\n {\n return $this->y;\n }", "title": "" }, { "docid": "456a30b69fcf07e471f8a6b83257a244", "score": "0.61138576", "text": "function getNCols() \n {\n if($this->rsQry)\n {\n return true;\n }\n else\n {\n\t\t\t return mysql_num_fields($this->rsQry);\n }\n\t\t}", "title": "" }, { "docid": "96416cdd8ac72689a4dfbfad88251794", "score": "0.60566944", "text": "public function total_number_of_cells()\n\t\t{\t\t\t\n\t\t\t$cells = $this->mdl_cells->all();\n\t\t\techo $cells->num_rows();\n\t\t}", "title": "" }, { "docid": "03aef8f790ab29772ae39042916f2259", "score": "0.603139", "text": "final public function cols()\n {\n return $this->doCols();\n }", "title": "" }, { "docid": "a5b61e93010a3417d8a449ddb921efbb", "score": "0.60192573", "text": "public function getCols()\n {\n return $this->cols;\n }", "title": "" }, { "docid": "2daa0cccb6fd1f5d5bf95a5fbe55eeaf", "score": "0.6019162", "text": "protected function calculateItemsPerColumn()\r\n {\r\n $numItems = count($this->items);\r\n if ($this->_columns > 0)\r\n return ceil($numItems / $this->_columns);\r\n else\r\n return 1;\r\n\r\n }", "title": "" }, { "docid": "8dd7eaf45e59c8f40cd49ca7a3980159", "score": "0.59973145", "text": "public function columnCount()\n {\n return sasql_num_fields($this->connection);\n }", "title": "" }, { "docid": "f719eca9ce356f2417ad30e587b8c7ac", "score": "0.59852356", "text": "public function getColumnCount()\n {\n if (empty($this->_columnCount)) {\n $this->_columnCount = $this->_helper()->getColumnCount();\n }\n return $this->_columnCount;\n }", "title": "" }, { "docid": "62dbcbee9aa83c07e779ba8badba94fc", "score": "0.5979625", "text": "public function getCustomFieldsNumberOfColumns()\n {\n return $this->customFieldsNumberOfColumns;\n }", "title": "" }, { "docid": "d430a9a8fd5da0a5b7d59947d002adba", "score": "0.5967228", "text": "public function getCols()\n\t{\n\t\treturn $this->_cols;\n\t}", "title": "" }, { "docid": "29a6e7ecbc5f26bf7f3cdba1cb16a613", "score": "0.5964084", "text": "public function getWidth() {\n\t\t$total = 0;\n\n\t\tforeach ($this->columns as $index => $column) {\n\t\t\t$total += $this->getColumnWidth($index);\n\t\t}\n\n\t\tif (empty($this->rows)) {\n\t\t\t$total = max($total, $this->getTextWidth($this->noResultsText));\n\t\t}\n\n\t\treturn $total;\n\t}", "title": "" }, { "docid": "287ef830034202377256d913046cfd5e", "score": "0.59637994", "text": "function get_all_alumnos_count()\n {\n $this->db->from('alumnos');\n return $this->db->count_all_results();\n }", "title": "" }, { "docid": "867a1640c3972525e36728d2ab6bd674", "score": "0.5917537", "text": "public function getTotalDeclaradoPrestacaoConta() {\n\n $nValorTotalNota = 0;\n $aItemPrestacaoConta = $this->getItens();\n foreach ($aItemPrestacaoConta as $oStdItem) {\n $nValorTotalNota += $oStdItem->e46_valor;\n }\n return $nValorTotalNota;\n }", "title": "" }, { "docid": "dd9692959d24ff6f29311ea465b53831", "score": "0.5917373", "text": "public static function count($columns = '*')\n {\n }", "title": "" }, { "docid": "e9a5b17a8f02e5453493c83d438a4a58", "score": "0.5909299", "text": "function TotalDados(){\r\n\t\t\treturn $this->obj->rowCount();\r\n\t\t}", "title": "" }, { "docid": "39cceb228b00eeec1261fbd88b16a251", "score": "0.5902242", "text": "public function get_columns()\n {\n }", "title": "" }, { "docid": "39cceb228b00eeec1261fbd88b16a251", "score": "0.5902242", "text": "public function get_columns()\n {\n }", "title": "" }, { "docid": "39cceb228b00eeec1261fbd88b16a251", "score": "0.5902242", "text": "public function get_columns()\n {\n }", "title": "" }, { "docid": "39cceb228b00eeec1261fbd88b16a251", "score": "0.5902242", "text": "public function get_columns()\n {\n }", "title": "" }, { "docid": "39cceb228b00eeec1261fbd88b16a251", "score": "0.5900488", "text": "public function get_columns()\n {\n }", "title": "" }, { "docid": "39cceb228b00eeec1261fbd88b16a251", "score": "0.5900488", "text": "public function get_columns()\n {\n }", "title": "" }, { "docid": "39cceb228b00eeec1261fbd88b16a251", "score": "0.5899307", "text": "public function get_columns()\n {\n }", "title": "" }, { "docid": "254d7999dfa41c9c19885225ac4c1a28", "score": "0.5891453", "text": "public function getTableColumns()\n\t{\n\t}", "title": "" }, { "docid": "70333845287b4a61e539f3a48d98f23a", "score": "0.5887996", "text": "public function getColumns() { return $this->a_columns; }", "title": "" }, { "docid": "ce37de1bd271e34857da078ac936e45f", "score": "0.5866148", "text": "abstract protected function doCols();", "title": "" }, { "docid": "948ba9793735691eaf12dfbb296c2cb6", "score": "0.5833176", "text": "public function getChTotal()\n\t{\n\t\treturn $this->ch_total;\n\t}", "title": "" }, { "docid": "9d57850ed7556f379d1639ba26495e35", "score": "0.58302414", "text": "public function getColumns() {\n return $this->aColumns;\n }", "title": "" }, { "docid": "0417168b72d1ee275b17a986d6c8999b", "score": "0.5829951", "text": "public function length(){\n return $this->cont;\n }", "title": "" }, { "docid": "5df9581c7eb0ffa89fff8269a3c5087b", "score": "0.58250153", "text": "function get_main_column_width($n_columns, $n_hidden=0)\n{\n global $row_labels_both_sides, $first_last_width, $column_hidden_width;\n \n // Calculate the percentage width of each of the main columns. We use number_format\n // because in some locales you would get a comma for the decimal point which\n // would break the CSS\n $column_width = 100 - $first_last_width;\n if (!empty($row_labels_both_sides))\n {\n $column_width = $column_width - $first_last_width;\n }\n // Subtract the hidden columns (unless they are all hidden)\n if ($n_hidden < $n_columns)\n {\n $column_width = $column_width - ($n_hidden * $column_hidden_width);\n $column_width = number_format($column_width/($n_columns - $n_hidden), 6);\n }\n \n return $column_width;\n}", "title": "" }, { "docid": "2e50cffc193361dd939baaa31e1ec024", "score": "0.581151", "text": "public function totalColecao(){\r\n\t\t$oSicasAtendimentoBD = new SicasAtendimentoBD();\r\n\t\treturn $oSicasAtendimentoBD->totalColecao();\r\n\t}", "title": "" }, { "docid": "ba7ef853d7f5616c2e7a46378e1ae079", "score": "0.58110785", "text": "function countColumns($name){\n\n global $conn;\n $count = 0;\n\n $sql = \"SHOW columns FROM `$name`\";\n\n $result = $conn->query($sql);\n\n if ($result->num_rows > 0) {\n\n while($row = $result->fetch_assoc()) {\n\n $count++;\n }\n }\n\n return $count-1;\n}", "title": "" }, { "docid": "03e16de63760b1759c383bee934464b2", "score": "0.58094376", "text": "public function total()\n\t{\n\t\treturn $this->rows;\n\t}", "title": "" }, { "docid": "7dd39691ffb086e31a9844da82b9693c", "score": "0.580827", "text": "public function colSize(): int\n {\n if (!empty($this->width)) {\n return $this->width;\n }\n return ($this->widget == self::WIDGET_PREVIEW ||\n ($this->widget == self::WIDGET_RECENT && $this->conf('singular')))\n ? 4 : 6;\n }", "title": "" }, { "docid": "55c47ea03c8ec0622df3d223b100b888", "score": "0.5800092", "text": "public function getColumns()\n {\n return $this->columns;\n }", "title": "" }, { "docid": "405615376d1e63498d7c95fd9867b900", "score": "0.5797585", "text": "public function form_columns($form_id){\n $columns = 0;\n \treturn $columns;\n\n }", "title": "" }, { "docid": "381d95c4b481768b1760ffdd48ad0e44", "score": "0.579003", "text": "private function getColumnLength($index){\n \t\treturn $this->columnbase[$index];\n \t}", "title": "" }, { "docid": "7516ebe86e663f03647f2c140a1c07a7", "score": "0.5781709", "text": "public function get_sum_columns() {\n\t\treturn array(\n\t\t\t'order_total_sum' => '%d',\n\t\t);\n\t}", "title": "" }, { "docid": "3fa755d724024ba9ecadde795fc98c4f", "score": "0.5775556", "text": "public function columns()\n {\n return $this->columns;\n }", "title": "" }, { "docid": "82e23826218159a69ddae779660c4a19", "score": "0.57679844", "text": "function numRows()\n\t\t{\n\t\t}", "title": "" }, { "docid": "c0c9d244af31f77e65407c3aa89bf74f", "score": "0.5752729", "text": "public function getColumns()\n {\n return $this->columns();\n }", "title": "" }, { "docid": "f4701140b06ecf7320c3f5bd218f7fb2", "score": "0.5749786", "text": "function numRows() {\n }", "title": "" }, { "docid": "4faa435d64c0c3a5f367521eb913152f", "score": "0.57457834", "text": "public function getBatchColumns();", "title": "" }, { "docid": "6e35ae6d258b35fed76923d478d182ec", "score": "0.5743563", "text": "public function getColumnWidth() : int {\n $cols = $this->getParam(self::COLUMNS);\n if($cols<=0) {\n # try 'tput cols', although this does not work on all platforms\n $out = exec('tput cols',$output,$stat);\n if($stat==0) {\n $cols=(int) $out;\n } else {\n // @codeCoverageIgnoreStart\n // Code ignore because tput always works on my linux.\n $cols = self::DEFAULT_COLS;\n // @codeCoverageIgnoreEnd\n }\n $this->setParam(self::COLUMNS,$cols);\n }\n return $cols;\n }", "title": "" }, { "docid": "1c764405327437b15223b8db2c1e7f7b", "score": "0.5736924", "text": "public function getTotalRecords() {\n\t\t$sheet = $this->getFileActiveSheet();\n\t\t$highestColumn = $sheet->getHighestDataRow();\n\n\t\treturn $highestColumn - 1;\n\t}", "title": "" }, { "docid": "984e264c66309cb83ed713e6e0d8249e", "score": "0.57245165", "text": "public function getColumns()\n {\n return $this->Columns;\n }", "title": "" }, { "docid": "bd05be0c2512a782fdb39f041f677afb", "score": "0.57066125", "text": "public function nombreTotalTableau(){\n $req = $this->db->query(\"SELECT COUNT(*) AS nb FROM tableau\");\n $sortie = $req->fetch(PDO::FETCH_OBJ);\n return $sortie->nb;\n }", "title": "" }, { "docid": "28744e1c69ad7fb1b78a61384a387c46", "score": "0.5704026", "text": "public function getColumns()\n {\n return $this->columns;\n }", "title": "" }, { "docid": "28744e1c69ad7fb1b78a61384a387c46", "score": "0.5704026", "text": "public function getColumns()\n {\n return $this->columns;\n }", "title": "" }, { "docid": "28744e1c69ad7fb1b78a61384a387c46", "score": "0.5704026", "text": "public function getColumns()\n {\n return $this->columns;\n }", "title": "" }, { "docid": "28744e1c69ad7fb1b78a61384a387c46", "score": "0.5704026", "text": "public function getColumns()\n {\n return $this->columns;\n }", "title": "" }, { "docid": "28744e1c69ad7fb1b78a61384a387c46", "score": "0.5704026", "text": "public function getColumns()\n {\n return $this->columns;\n }", "title": "" }, { "docid": "28744e1c69ad7fb1b78a61384a387c46", "score": "0.5704026", "text": "public function getColumns()\n {\n return $this->columns;\n }", "title": "" }, { "docid": "f7869962032d59275c3f909420165763", "score": "0.569962", "text": "public function getColumns()\n {\n return $this->_columns;\n }", "title": "" }, { "docid": "353131cddcb0199540319c536d8af665", "score": "0.5695582", "text": "function getColumns() {return $this->_columns;}", "title": "" }, { "docid": "03b9c68142e9590900440d6f856c460c", "score": "0.5690058", "text": "public function countEtat_compte(){\n\t\t\t\t\t $this->db->setTablename($this->tablename);\n return $this->db->getRows(array(\"return_type\"=>\"count\"));\n\t\t\t\t\t }", "title": "" }, { "docid": "f13e6b4e59d5edd39af29b4367c03fa9", "score": "0.5673942", "text": "public function cirugias_tatalCirugias(){ \t\n\n\t\t\t$resultado = array();\n\t\t\t\n\t\t\t$query = \"Select count(idCirugia) as cantidadCirugias from tb_cirugias \";\n\t\t\t\n\t\t\t$conexion = parent::conexionCliente();\n\t\t\t\n\t\t\tif($res = $conexion->query($query)){\n\t \n\t /* obtener un array asociativo */\n\t while ($filas = $res->fetch_assoc()) {\n\t $resultado = $filas;\n\t }\n\t \n\t /* liberar el conjunto de resultados */\n\t $res->free();\n\t \n\t }\n\t\n\t return $resultado['cantidadCirugias'];\t\t\t\n\t\t\t\n\t\t\t\n }", "title": "" }, { "docid": "2ce99ced92b2562689641f4ba2adf7b3", "score": "0.56696963", "text": "public function getColumns() {\n return sizeof($this->columns) ? $this->columns : $this->csvColumns;\n }", "title": "" }, { "docid": "8fad151d0b8661aa483a0f2bf5f7b2d0", "score": "0.5668968", "text": "public abstract function getDataColumns();", "title": "" }, { "docid": "f6f82fc37548ab3f85ad096bb69ebacc", "score": "0.56683475", "text": "function conf__columna_corte($form)\n\t{\n\t\t$indice = 0;\n\t\t$ids_visitados = array();\n\t\t$filas = array();\n\t\t$busqueda = $this->get_entidad()->tabla('columna_total_cc')->nueva_busqueda();\n\t\t$busqueda->set_padre('columnas', $this->s__seleccion_columna_anterior);\n\t\t//Inicializo con los cortes de control existentes para cuando no existe carga previa o cuando se agregan cortes.\n\t\tforeach ($this->s__cortes_control as $corte) {\n\t\t\t$filas[$indice] = array('identificador' => $corte, 'total' => 0);\n\t\t\t$ids_visitados[$corte] = $indice;\n\t\t\t$indice++;\n\t\t}\n\t\t//Obtengo las asociaciones entre columnas y cortes de control\n\t\t$resultado_busqueda = $busqueda->buscar_ids();\n\t\tforeach ($resultado_busqueda as $id_fila) {\n\t\t\t$col_asoc = $this->get_entidad()->tabla('columna_total_cc')->get_fila($id_fila);\n\t\t\tif (isset($ids_visitados[$col_asoc['identificador']])) {\n\t\t\t\t$id_tmp = $ids_visitados[$col_asoc['identificador']];\n\t\t\t} else {\n\t\t\t\t$id_tmp = $indice;\n\t\t\t\t$ids_visitados[$col_asoc['identificador']] = $indice;\n\t\t\t\t$indice++;\n\t\t\t}\n\t\t\t$filas[$id_tmp] = array('identificador' => $col_asoc['identificador'], 'total' => $col_asoc['total']);\n\t\t}\n\t\t$form->set_datos($filas);\n\t}", "title": "" }, { "docid": "75b7b9c3b3328cf4dafbc48bc140352e", "score": "0.5667635", "text": "public function getRowsSize();", "title": "" }, { "docid": "d5dedf9b65099b84549489aa3c635b87", "score": "0.56525075", "text": "public function getColsWidth() : array\n {\n\n return $this->colsWidth;\n }", "title": "" }, { "docid": "d826c10d0d64f3717e4f7c8a06162b92", "score": "0.5649684", "text": "public function TotalNoticias(){\n\t\t\t$query = \"select count(*) as total from noticia\";\n parent::Conectar();\n\t\t\t$result = mysql_query($query)\n or die(\"Error en la consulta SQL\");\n\t\t\t\n\t\t\tif ($reg = mysql_fetch_array($result)) {\n\t\t\t\t$this->tNot = $reg[\"total\"];\n\t\t\t}\n\t\t\t\n\t\t\treturn $this->tNot;\n\t\t}", "title": "" }, { "docid": "cac1b49fffca87ca25527266c437e331", "score": "0.56473", "text": "public function contarAlumnosController(){\n\t\t$stmt = Conexion::conectar()->prepare(\"SELECT COUNT(*) FROM sesion_cai WHERE fecha = CURDATE() AND hora >= DATE_FORMAT(NOW(), '%k:00:00') AND hora <= DATE_FORMAT(NOW(), '%k:59:59') AND asistencia=0\"); //se prepara la conexion\n\t\t//definicion de parametros\n\t\t$stmt->execute(); //ejecucion mediante pdo\n\t\treturn $stmt->fetch()[0]; //se retorna lo asociado a la consulta\n\t\t$stmt->close();\n\t}", "title": "" }, { "docid": "ea7a7c45d24a4140826e9104f317909a", "score": "0.5642924", "text": "protected function getcolspan(){\r\n\t\t$x_points=$this->GTemp->struct->XPoints;\r\n\t\treturn array_search($this->x2, $x_points)-array_search($this->x1, $x_points);\r\n\t}", "title": "" }, { "docid": "6ff41a439cb41eaa1a65d368203267c4", "score": "0.5633658", "text": "public function loop_columns() {\n\t\treturn apply_filters( 'setwood_loop_columns', 3 ); // 3 products per row\n\t}", "title": "" } ]
371da0e5abfa52fcfc015cd5052bd10a
Adds a configuration item to currently loaded configuration.
[ { "docid": "274596199b3904841829266e5115e935", "score": "0.63428456", "text": "public static function addItem($index,$value) {\n\t\tif(self::$_config == null) {\n\t\t\tself::load(self::$_configFilePath);\n\t\t}\n\t\tif(!empty($index)) {\n\t\t\tif(!isset(self::$_config[$index])) {\n\t\t\t\tself::$_config[$index] = $value;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" } ]
[ { "docid": "51b50370f88c987b95b49e0f07566664", "score": "0.6285911", "text": "public function addChild(ConfigurationInterface $configuration);", "title": "" }, { "docid": "6320746b9869dcd4577765b0216ad34e", "score": "0.60987663", "text": "public function add($item)\n {\n $this->append($item);\n }", "title": "" }, { "docid": "7b92e554c6c69e627f295b505fee67bd", "score": "0.6067324", "text": "public function addConfiguration(string $key, ConfigurationInterface $configuration) : void;", "title": "" }, { "docid": "bf3f734ce560243cd6a683043ccc425e", "score": "0.6031182", "text": "function set_item($item, $value)\n\t{\n\t\t$this->config[$item] = $value;\n\t}", "title": "" }, { "docid": "44784a3934928ae3ed81960b05531d46", "score": "0.6019886", "text": "public function addToConfig($config): void\n {\n }", "title": "" }, { "docid": "10ad1df161582be8c9102ab877451f01", "score": "0.59250045", "text": "public function add($item);", "title": "" }, { "docid": "78128c97e80f679637ad8b4a3305bdd4", "score": "0.5830916", "text": "public function addItem(Item $item);", "title": "" }, { "docid": "36aeaa669274e6c719cfe5e86fcfb9fe", "score": "0.58176893", "text": "public function add($alias, array $configuration);", "title": "" }, { "docid": "2a88847181e0e7432257aafe2cebcedf", "score": "0.5791341", "text": "public function add($item)\n {\n $hash = $this->generateHash($item);\n $this->items[$hash] = $item;\n }", "title": "" }, { "docid": "5673386dc89e4a09aeda7e6f1088d8bc", "score": "0.57578146", "text": "function add($item) {\n $this->items[] = $item;\n }", "title": "" }, { "docid": "808509955cf8dd583690477a6d41ee5b", "score": "0.575442", "text": "public function set_item( $item, $value )\r\n {\r\n $this->config[ $item ] = $value ;\r\n }", "title": "" }, { "docid": "0c177cdd0a69166ad27477e1917df2f2", "score": "0.57473856", "text": "public function setConfigItem($key, $value);", "title": "" }, { "docid": "e02acd299a5175c9f6afcf19fab2db91", "score": "0.5736064", "text": "public function add($item, $key = null);", "title": "" }, { "docid": "3c5630e77cc7209beb2b5d275958fa2f", "score": "0.57321995", "text": "public function addConfig($config)\n {\n }", "title": "" }, { "docid": "06c570a428b566a4ee361e68747b6188", "score": "0.56833", "text": "public function add($item) : void;", "title": "" }, { "docid": "66c76c243c716357b9b23186ac002d65", "score": "0.56360006", "text": "function add($config, $configKey = null)\n {\n if ($configKey !== null) {\n if ($this->exists($configKey) && is_array($config)) {\n $this->_config[$configKey] = array_replace_recursive($this->_config[$configKey], $config);\n } else {\n $this->_config[$configKey] = $config;\n }\n } else {\n $this->_config = array_replace_recursive($this->_config, $config);\n }\n }", "title": "" }, { "docid": "60f0b87d0f79f50d0d7e1fad206fd7a5", "score": "0.56229603", "text": "public function addItem($item){\n if(array_key_exists($item->name,$this->items)){\n $this->items[$item->name] = $item;\n } else {\n $this->items[$item->name] = $item;\n }\n }", "title": "" }, { "docid": "296ec3f13d1687bbbbdc38b515415040", "score": "0.5612963", "text": "function addItem($item) {\n\t\t$this->_items[] = $item;\n\t}", "title": "" }, { "docid": "08e51eb205c3ed8ab6923591bf686f8e", "score": "0.5607485", "text": "function addcfg($key, $value, $type = CFGTEXT)\n{\n\tglobal $CONFIG_;\n\t$CONFIG_[$key] = $value;\n\t$CONFIG_[$key . \"type\"] = $type;\n}", "title": "" }, { "docid": "be31bfdd83b9ce0c5e6fa869d73a47f1", "score": "0.55933654", "text": "public function addConfig($config)\n {\n foreach (Register::getRegister() as $key => $configuration) {\n $config['items'][] = [\n $configuration['title'],\n $key,\n ];\n }\n return $config;\n }", "title": "" }, { "docid": "cdbf0bf77451394bcc66c68836e1688a", "score": "0.55584204", "text": "public function addItem($item) {\n array_push($this->items, $item);\n }", "title": "" }, { "docid": "6d3c5100d54d0e73abe508ec455847df", "score": "0.55468625", "text": "public function add($item)\n {\n $this->generateBitCode('set', $item);\n }", "title": "" }, { "docid": "f170ba674aee42363ff6e406b87b711e", "score": "0.5501263", "text": "public function add($key,$value)\r\n\t{\r\n\t\t$this->_config[$key] = $value;\r\n\t\t\r\n\t\treturn $this;\r\n\t}", "title": "" }, { "docid": "3c71e70ffaf241f151887b7220a67583", "score": "0.5497077", "text": "public function addItem( $item ) {\n\t\t$this->items[] = $item;\n\t}", "title": "" }, { "docid": "768fa68444c6c67ca1a8d86c12a7b777", "score": "0.53823286", "text": "public function addToConfig(string $key, $value): TilesListGenerator\n {\n $this->itemsCollection->addToConfig($key, $value);\n\n return $this;\n }", "title": "" }, { "docid": "54cb128c9c8bd7b6a72cc3260752ba40", "score": "0.53693897", "text": "public function addItems($config) {\n // allowed answer-Types\n $allowedTypes = array('Checkbox','Radiobutton');\n // get data\n $data = array();\n $questions = $this->getQuestions($config['row']['pid']);\n \n foreach ($questions as $question){\n $item = array();\n $item['title'] = $question->getTitle();\n foreach ($question->getAnswers() as $answer){\n if (in_array($answer->getShortType(), $allowedTypes)){\n $item['uid'] = $answer->getUid();\n $item['subtitle'] = $answer->getTitle();\n $data[] = $item;\n }\n }\n }\n \n // create option list\n $optionList = array();\n \n foreach($data as $item){ \n $label = '[' . $item['uid'] .'] ' . $item['title'] .' - ' . $item['subtitle'];\n $value = $item['uid'];\n \n $optionList[] = array(0 => $label, 1 => $value);\n }\n \n // return config\n $config['items'] = array_merge($config['items'], $optionList);\n return $config; \n\t}", "title": "" }, { "docid": "a01e513d0270940ba2507032796aa090", "score": "0.5350899", "text": "function AddItem($item) {\r\n\t\t$this->ItemData[] = $item;\r\n\t}", "title": "" }, { "docid": "15f1ba47bdb270f3706044e78eabb73b", "score": "0.5350493", "text": "function add($item);", "title": "" }, { "docid": "4c0ba6e94e7c2eb68855e262393623a0", "score": "0.53450155", "text": "public function addConfig(string $name, $value): void\n {\n $this->_quillConfiguration[$name] = $value;\n }", "title": "" }, { "docid": "68d131d5414f220542e5ad3a8c2962f4", "score": "0.53418887", "text": "public function addConfigExtra(ConfigExtraInterface $extra);", "title": "" }, { "docid": "3521d883494d75b853c48431ab67cd95", "score": "0.53303105", "text": "public function add_item() {\n\t\tglobal $wp_customize;\n\n\t\t$args = array(\n\t\t\t'default' => $this->default,\n\t\t\t'type' => 'option',\n\t\t\t'capability' => 'edit_theme_options',\n\t\t\t'transport' => $this->get_transport(),\n\t\t);\n\n\t\t$wp_customize->add_setting( $this->setting, $args );\n\n\t\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, Styles_Helpers::get_control_id( $this->id ), array(\n\t\t\t'label' => __( $this->label, 'styles' ),\n\t\t\t'section' => $this->group,\n\t\t\t'settings' => $this->setting,\n\t\t\t'priority' => $this->priority . $this->group_priority,\n\t\t) ) );\n\t}", "title": "" }, { "docid": "53209ab64ddc2b5308c9e5033edea77e", "score": "0.5329969", "text": "public function add($item) {\n\t\tif(isset($this->items[$item->route_id])) {\n\t\t\tif(serialize($this->items[$item->route_id]) != serialize($item)) {\n\t\t\t\tthrow new \\Exception(\"Route ID {$item->route_id} already exists and the new route has different properties\");\n\t\t\t}\n\t\t}\n\t\t$this->items[$item->route_id] = $item;\n\t\tksort($this->items);\n\t}", "title": "" }, { "docid": "d48699fcf312884e84c9a7f66fb75343", "score": "0.53191143", "text": "public function addConfigName($name);", "title": "" }, { "docid": "92a330c0948f1dcc5948632faf5a66f4", "score": "0.53132564", "text": "public function addItem($key, $data);", "title": "" }, { "docid": "02463525403ccf0f05793a83a0711cc7", "score": "0.5280898", "text": "public function addItem($item) {\n\n\t\t// We store the item NAME, not the item itself.\n\t\t// This is because we cannot serialise the item callback.\n\t\t$this->items[] = $item->name;\n\t}", "title": "" }, { "docid": "8d341c15e0a024c5a7d13520bd95d5d5", "score": "0.5263977", "text": "public function addItem(AlboPretorioItem $item)\n {\n $this->items[] = $item;\n }", "title": "" }, { "docid": "d8865b322d256895d9c976ba2fb632c3", "score": "0.5227901", "text": "public function set_config($item, $value = NULL, $module = 'fuel')\n\t{\n\t\t$fuel_config = $this->CI->config->item($module);\n\t\tif (is_array($item))\n\t\t{\n\t\t\tforeach($item as $key => $val)\n\t\t\t{\n\t\t\t\t$fuel_config[$key] = $val;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$fuel_config[$item] = $value;\n\t\t}\n\t\t$this->_config[$item] = $value;\n\t\t$this->CI->config->set_item($module, $fuel_config);\n\t}", "title": "" }, { "docid": "dd9aca558cc5711fac3f1aeb50792acf", "score": "0.5218726", "text": "public function addConfiguration(NodeDefinition $builder);", "title": "" }, { "docid": "7dfda6d69dea3748a87ac95ea64a0084", "score": "0.5210078", "text": "protected function addLinguistItem($item) {\r\n if (!array_key_exists(TaskCatalogService::BASE_LINGUIST_BRANCH, $this->taskArray)) {\r\n $this->taskArray += [TaskCatalogService::BASE_LINGUIST_BRANCH => array()];\r\n }\r\n\r\n if (!array_key_exists($item->getSourceLang(), $this->taskArray[TaskCatalogService::BASE_LINGUIST_BRANCH])) {\r\n $this->taskArray[TaskCatalogService::BASE_LINGUIST_BRANCH] += [$item->getSourceLang() => array()];\r\n }\r\n\r\n if (!array_key_exists($item->getTargetLang(), $this->taskArray[TaskCatalogService::BASE_LINGUIST_BRANCH][$item->getSourceLang()])) {\r\n $this->taskArray[TaskCatalogService::BASE_LINGUIST_BRANCH][$item->getSourceLang()] += [$item->getTargetLang() => array()];\r\n }\r\n\r\n// if(!array_key_exists($item->getCategory(),$this->taskArray[TaskCatalogService::BASE_LINGUIST_BRANCH][$item->getSourceLang()][$item->getTargetLang()])){\r\n// $this->taskArray[TaskCatalogService::BASE_LINGUIST_BRANCH][$item->getSourceLang()][$item->getTargetLang()] += [$item->getCategory() => array()];\r\n// }\r\n //now put it...\r\n array_push($this->taskArray[TaskCatalogService::BASE_LINGUIST_BRANCH][$item->getSourceLang()][$item->getTargetLang()], $item);\r\n }", "title": "" }, { "docid": "ad47e543103935edccddf6f5050069b5", "score": "0.52091575", "text": "public function addItem (Item $item){\n\t\t\t\tarray_push($this->items,$item);\n\t\t}", "title": "" }, { "docid": "34b8bb6547c64bd19a72d3267c27a1bc", "score": "0.5190372", "text": "public function addProduct(IsotopeProduct $objProduct, $intQuantity, array $arrConfig = array());", "title": "" }, { "docid": "fc6cf8ba3ff5e6d8c32b50d68b75250d", "score": "0.51891226", "text": "public function addItem(string $item): void {\n\t\t$this->m_items[] = $item;\n\t}", "title": "" }, { "docid": "9464c2bdbe504adeffa294493e04a02c", "score": "0.5181119", "text": "public function add_item( $value, $key = NULL ): bool {\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "91a27f1cf2709f2f020c93cc49492f95", "score": "0.5168598", "text": "public function addConfiguration(VenueConfig $config){\n $config->setVenue($this);\n $this->configurations->add($config);\n }", "title": "" }, { "docid": "17bc1c8dfa1b9d82346b2faf578e7fc2", "score": "0.51425457", "text": "function forum_config_add($name, $value)\n{\n\tglobal $forum_db, $forum_config;\n\n\tif (!empty($name) && !isset($forum_config[$name]))\n\t{\n\t\t$query = array(\n\t\t\t'INSERT'\t=> 'conf_name, conf_value',\n\t\t\t'INTO'\t\t=> 'config',\n\t\t\t'VALUES'\t=> '\\''.$name.'\\', \\''.$value.'\\''\n\t\t);\n\t\t$forum_db->query_build($query) or error(__FILE__, __LINE__);\n\t}\n}", "title": "" }, { "docid": "7b341fdaf28b0b90a5645137fcfb7b65", "score": "0.5134157", "text": "public function addItem(CartItemInterface $item);", "title": "" }, { "docid": "ccf189b9cf1d47f971d7ef0b4261ba0f", "score": "0.5129835", "text": "public function add($section, $key, $value);", "title": "" }, { "docid": "81eb0dcdb3f161472589565336e3a576", "score": "0.5128717", "text": "public function add($item): bool\n {\n if ($this->redis->rPush($this->name, $this->serialize($item)) === false) {\n return false;\n }\n $this->clearState();\n\n return true;\n }", "title": "" }, { "docid": "c64ea64ce7c9b1fa870f724ab22ec177", "score": "0.5127523", "text": "public function additem($item){\n\t\t$this->todos .= $item;\n\t}", "title": "" }, { "docid": "8c6d62bf438f58ca3587f1d486b834e2", "score": "0.51009667", "text": "public function push($item)\n {\n $this->list->append($item);\n }", "title": "" }, { "docid": "48c1d85e4f034a978fc87154f52f018d", "score": "0.5094065", "text": "function config_item($name, $item) {\n\n static $config_item = array();\n\n if (!isset($config_item[$item])) {\n\n $config = config_load($name);\n\n if (!isset($config[$item]))\n return FALSE;\n\n $config_item[$item] = $config[$item];\n\n }\n\n return $config_item[$item];\n\n}", "title": "" }, { "docid": "4e5d97a099957df06f1a1f043da6fa7f", "score": "0.50892854", "text": "public function addItem($item) {\n\t\treturn $this->addItems(array($item));\n\t}", "title": "" }, { "docid": "d7549b29f8e37a2cba8c61fd8dffcbc8", "score": "0.5085683", "text": "public function add(\\FeedIo\\Feed\\ItemInterface $item)\r\n {\r\n }", "title": "" }, { "docid": "126e125567ecd277827fd0bf89b1a078", "score": "0.50827026", "text": "public function add_item(Item $item){\r\n\t\t\t$this->items[] = $item;\r\n\t\t\t$this->calculate_dimensions($item);\r\n\t\t}", "title": "" }, { "docid": "de3cd8b2e7f273941aded8b050c4c570", "score": "0.5079629", "text": "public function addConfiguration($data)\n {\n $this->resetConfiguration();\n\n return $this->configuration()->create($data);\n }", "title": "" }, { "docid": "36e745279856d3e918be851622b88d3a", "score": "0.50433147", "text": "public function addToCart($item)\n {\n array_push($this->items, $item);\n }", "title": "" }, { "docid": "5834581742ead2ac36deb71ffa6b57ec", "score": "0.5041117", "text": "public function addItem(ItemInterface $item): void\r\n {\r\n $location = $this->getPlayerLocation();\r\n $location->getContainer()->addItem($item);\r\n }", "title": "" }, { "docid": "d9d3fee7797b3587ac6dfc3b205a23a4", "score": "0.50353396", "text": "private function _addAdditionalOptionToItem($item, $option)\n {\n $options = $item->getProductOptions();\n $additionalOptions = $item->getProductOptionByCode('additional_options');\n if (is_array($additionalOptions)) {\n $additionalOptions[] = $option;\n } else {\n $additionalOptions = array($option);\n }\n $options['additional_options'] = $additionalOptions;\n $item->setProductOptions($options);\n }", "title": "" }, { "docid": "718ee17ec8c50f91124b01fad98c0699", "score": "0.50336283", "text": "public function addItem($oItem) {\n $this->aItens[] = $oItem;\n }", "title": "" }, { "docid": "81a8ef42210532c3fe803465988aa3f5", "score": "0.50304157", "text": "public function add($key, $value);", "title": "" }, { "docid": "56b2d05f55243af5907ccbd8a1e70cc4", "score": "0.5009694", "text": "public function addItem(Item $item) {\n\n array_push($this->items, $item);\n }", "title": "" }, { "docid": "35a0deb57f7362257246a5c1eb8b4d4c", "score": "0.50094914", "text": "public function addConfiguration(ArrayNodeDefinition $rootNode)\n {\n }", "title": "" }, { "docid": "31be769758ff92ee33b27efc5b332490", "score": "0.49761924", "text": "public function addConfig( string $moduleId, string $name, string $type, string $value, string $values, string $mandatory, string $protected, ?string $title = NULL )\n\t{\n\t\t$xml\t\t= $this->loadModuleXml( $moduleId );\t\t\t\t\t\t\t\t\t\t\t// load module XML\n\t\t$link\t\t= $xml->addChild( 'config', $value );\t\t\t\t\t\t\t\t\t\t\t// add pair node\n\t\t$link->addAttribute( 'name', $name );\t\t\t\t\t\t\t\t\t\t\t\t\t\t// set name attribute\n\t\tif( strlen( trim( $type ) ) )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// type attribute is given\n\t\t\t$link->addAttribute( 'type', trim( $type ) );\t\t\t\t\t\t\t\t\t\t\t// set type attribute\n\t\tif( strlen( trim( $values ) ) )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// values attribute is given\n\t\t\t$link->addAttribute( 'values', trim( $values ) );\t\t\t\t\t\t\t\t\t\t// set values attribute\n\t\tif( strlen( trim( $mandatory ) ) )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// mandatory attribute is given\n\t\t\t$link->addAttribute( 'mandatory', trim( $mandatory ) );\t\t\t\t\t\t\t\t\t// set mandatory attribute\n\t\tif( strlen( trim( $protected ) ) )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// protected attribute is given\n\t\t\t$link->addAttribute( 'protected', trim( $protected ) );\t\t\t\t\t\t\t\t\t// set protected attribute\n\t\tif( strlen( trim( $title ) ) )\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// title attribute is given\n\t\t\t$link->addAttribute( 'title', trim( addslashes( $title ) ) );\t\t\t\t\t\t\t// set title attribute\n\t\t$this->saveModuleXml( $moduleId, $xml );\t\t\t\t\t\t\t\t\t\t\t\t\t// save modified module XML\n\t}", "title": "" }, { "docid": "94787e8c37cf3a7ca3570b0d2d42e1bf", "score": "0.49750137", "text": "public function addItem(RelatedItem $relatedItem);", "title": "" }, { "docid": "e91cab3f6f71bcaf2bb4282ecad17380", "score": "0.49710214", "text": "public function add($item)\n {\n $this->addArray('items', $item, '\\XModule\\Toolbar\\MenuItem');\n }", "title": "" }, { "docid": "a7586272760f81d6de7d1e782556e5c9", "score": "0.4969093", "text": "public function add($LineupItem){\n\t\tarray_push($this->LineupItems,$LineupItem);\n\t}", "title": "" }, { "docid": "3ac274d7d4aeeb107def63da1012487f", "score": "0.4949238", "text": "public function addConfigParams(JsConfigInterface $params)\n {\n $this->pool = array_merge($this->pool, array($params->getName() => $params->getParameters()));\n }", "title": "" }, { "docid": "6dec06ee16b081bce13c5dbdb3044710", "score": "0.49481887", "text": "public function addItem(Item $item)\n {\n $this->items[] = $item;\n }", "title": "" }, { "docid": "a32d078c82eb122789908e530d714594", "score": "0.4928836", "text": "public static function addConfigValue(string $route, $value): void\n {\n // TODO make typed versions and remove this one\n Conf::$appConfig[$route] = [\n $value\n ];\n }", "title": "" }, { "docid": "598ff2d2fd5595e40392ff947f342e07", "score": "0.49280778", "text": "public function addDataFromConfig($path)\n {\n $config = Mage::getStoreConfig($path);\n if (is_array($config)) {\n $this->addData($config);\n }\n return $this;\n }", "title": "" }, { "docid": "e67c3db15687ee0447ded2dae901d19a", "score": "0.49260485", "text": "public function append(string $item): void\n {\n if (isset($this->cache[$item])) {\n return;\n }\n\n $this->list[] = $item;\n $this->cache[$item] = true;\n ++$this->length;\n }", "title": "" }, { "docid": "a93e349c43ad5c3b523db52e9c97043a", "score": "0.4924983", "text": "public function appendTo(ItemInterface $item);", "title": "" }, { "docid": "aa95d3e354e3bd4fceba1d41d739f55e", "score": "0.4923718", "text": "public function addItem($item){\n\t\tif(is_array($item)){\n\t\t\t// items given as array\n\t\t\tforeach($item as $val){\n\t\t\t\t$this->item[] = $val;\n\t\t\t}\n\t\t}else{\n\t\t\t// only one item is given\n\t\t\t$this->item[] = $item;\n\t\t}\n\t}", "title": "" }, { "docid": "0da261e8b43793444aa9416573d749de", "score": "0.4914103", "text": "public function addItem($item)\n {\n $item->Level = $this->Level;\n $this->Items[] = $item;\n }", "title": "" }, { "docid": "7655455930cdd4c618c688fcc5c01a12", "score": "0.49136016", "text": "public function addItem($item)\n {\n // Retourne le tableau de produits présent en session OU un tableau\n // vide\n $products = $this->session->get('products', []);\n $products[$item->getId()] = $item; // L'index évite les doublons\n $this->session->set('products', $products);\n }", "title": "" }, { "docid": "3ae66ef40bcdf068d0e0df6d033d0684", "score": "0.4910361", "text": "public function addItem($item)\n\t{\n\t\t$item->Level = $this->Level;\n\t\t$this->Items[] = $item;\n\t}", "title": "" }, { "docid": "1e585bd18b0b3372b3b21bb09cfb68e1", "score": "0.49091423", "text": "public function addToPictureURL($item)\n {\n // validation for constraint: itemType\n if (!is_string($item)) {\n throw new \\InvalidArgumentException(sprintf('The PictureURL property can only contain items of type anyURI, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);\n }\n // validation for constraint: maxOccurs(6)\n if (is_array($this->PictureURL) && count($this->PictureURL) >= 6) {\n throw new \\InvalidArgumentException(sprintf('You can\\'t add anymore element to this property that already contains %s elements, the number of elements contained by the property must be less than or equal to 6', count($this->PictureURL)), __LINE__);\n }\n $this->PictureURL[] = $item;\n return $this;\n }", "title": "" }, { "docid": "d7c4b15f75f535507cd9b63adfb9026d", "score": "0.4907546", "text": "public function add($item)\n {\n $this->addArray('polyline', $item, '\\XModule\\GoogleMaps\\Point');\n }", "title": "" }, { "docid": "71a3bd19f5d9a8ece92fa90e037e460a", "score": "0.4902663", "text": "public function AddOrUpdateCatalogItem($item) {\n if ($this->DoesFieldExistInTable(\"id\", $item->GetID(), \"CatalogItems\")) {\n // update\n return $this->UpdateCatalogItem($item);\n }\n else {\n // add\n return $this->AddCatalogItem($item);\n }\n }", "title": "" }, { "docid": "493988c2fe1736e83e3d39a03c59ae45", "score": "0.4901091", "text": "public function put($key, $value)\n {\n if (!isset($this->config->$key))\n $this->config->$key = $value;\n\n $this->config = json_encode($this->config, JSON_FORCE_OBJECT | JSON_PRETTY_PRINT);\n $saved = file_put_contents($this->config_file, $this->config);\n\n if ($saved != false)\n $this->load();\n else\n throw new ConfigurationException(\"Can't write the configuration\");\n\n return $saved != false;\n }", "title": "" }, { "docid": "e242e3a12b4e8503fd514e5389fb352e", "score": "0.48944753", "text": "public function add($key, $value)\n {\n }", "title": "" }, { "docid": "a85d4b647377ea7f3084387e58245ac6", "score": "0.48932928", "text": "public function addOption($option){\n\t\t$this->options[] = $option;\n\t}", "title": "" }, { "docid": "bbd384e3e45581be65820e2dd8b621fe", "score": "0.4888509", "text": "public function addConfig(PermissionConfigInterface $config): void;", "title": "" }, { "docid": "5e91c06430f4fc11e8aaa02a4663d903", "score": "0.48837963", "text": "public function add($item, $key = null)\n {\n if ($item === null) {\n throw new \\InvalidArgumentException(\"The given item is null\");\n }\n if ($key == null) {\n $this->items[] = $item;\n } else {\n $this->items[$key] = $item;\n }\n }", "title": "" }, { "docid": "7ed41c383cd5fef55d160e2f38ef81dc", "score": "0.48823792", "text": "public function addConfiguration(NodeDefinition $builder)\n {\n }", "title": "" }, { "docid": "c8b36d0a108d0fa3547b278ffb6386c4", "score": "0.48563036", "text": "public function setItem($item, $value)\n {\n $item = sql_escape($item);\n $value = sql_escape($value);\n $sql =\n \"INSERT INTO {$this->tables['config']} (item, value)\n VALUES('$item', '$value')\n ON DUPLICATE KEY UPDATE value = '$value'\";\n\n return $this->dbCommand->queryAffectedRows($sql);\n }", "title": "" }, { "docid": "b44c9fdb15c2a743fcdb8dc58c28f088", "score": "0.48427853", "text": "public function addItem(AdminMenuItem $item);", "title": "" }, { "docid": "fb722ca1c5236ab2056e295b8c21bd58", "score": "0.48251778", "text": "public function addConfigPath(string $path): self\n {\n $paths = $this->configPaths();\n $paths[] = StringUtils::replaceTilde($path, $this->homeDir());\n return $this->set(self::CONFIG_PATH, $paths);\n }", "title": "" }, { "docid": "bed6b557f0026b5982e6f8b400fca121", "score": "0.4824872", "text": "public static function setItem($index,$value) {\n\t\tif(self::$_config == null) {\n\t\t\tself::load(self::$_configFilePath);\n\t\t}\n\t\tif(isset(self::$_config[$index])) {\n\t\t\tself::$_config[$index] = (string)$value;\n\t\t}\n\t}", "title": "" }, { "docid": "0802984e1499ff6a30c251d088c9bef5", "score": "0.48153254", "text": "public function add($item): void\n {\n $this->gridField->setRecord($item);\n }", "title": "" }, { "docid": "d642ef4856659f85d3b4f83a4203318e", "score": "0.48124304", "text": "public static function setRunningConfig($item, $value)\n {\n Config::instance()->running_config[$item] = $value;\n $_SESSION['running_config'][$item] = $value;\n }", "title": "" }, { "docid": "e54c1787c4332c95e0b140bc4873134a", "score": "0.4810574", "text": "public function addBlock($link_id, $block_id, $configuration);", "title": "" }, { "docid": "6b936aaa8e6a4c417cae6f255f440be9", "score": "0.47941032", "text": "function addOption($option, $value) {\n $this->_options[$option] = $value;\n }", "title": "" }, { "docid": "1b4c86cebe5bf7298c4156fc7755e3f3", "score": "0.4791506", "text": "public function set($item,$value = false) {\r\n\t\tglobal $_ADMIN;\r\n\t\tif ($value !== false) {\r\n\t\t\t$_ADMIN['config'][$item] = $value;\r\n\t\t} else {\r\n\t\t\tunset($_ADMIN['config'][$item]);\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "58e62add0c68b4d950145f408f75666d", "score": "0.47907707", "text": "public function set_item($name, $value, $override = true)\n {\n // Is there already a config item of the same name?\n if (array_key_exists($name, $this->_config))\n {\n // If we can overwrite, overwrite it\n if ($override === true)\n {\n $this->_config[$name] = $value;\n }\n // You're not touchin' a thing boy.\n else\n {\n return false;\n }\n }\n }", "title": "" }, { "docid": "21073eda404d6f75530a90a45167c360", "score": "0.47879925", "text": "public function addCfg(array $cfgConfig, $append = false)\n {\n $count = count($this->_cfgs);\n $iteration = $append ? $count + 1000 : $count;\n $this->_cfgs[$iteration] = (new BlockCfg($cfgConfig))->toArray();\n }", "title": "" }, { "docid": "966a0eda2eeadcec520fe7633b0a789c", "score": "0.4782268", "text": "public function add($item, $section = 'left')\r\n {\r\n // Check access.\r\n if (empty($item->url) || app::get_user()->has_access_to($item->controller.'/'.$item->action)) {\r\n $this->menu[$section][] = $item;\r\n }\r\n }", "title": "" }, { "docid": "7d3451b541345eb65ff0de81ef1934bd", "score": "0.4781825", "text": "public function addRuleItem(RuleItem $item);", "title": "" }, { "docid": "fd6bc77f7ab16b7e2da2698262d3a3da", "score": "0.47678655", "text": "function addItem(feedItem $inItem) {\n\t\treturn $this->_setValue($inItem);\n\t}", "title": "" }, { "docid": "7ad3e26b5ac4f8ef2629f1821f58f74a", "score": "0.47585285", "text": "public function add(string $key, $value);", "title": "" } ]
a6822b9be682f4cea78854f87b3149c8
retrieve message target chat
[ { "docid": "15e6fbe90c0526a81479c2da80f5a416", "score": "0.0", "text": "public function chat() {\n return $this->belongsTo('App\\Models\\Social\\Chat');\n }", "title": "" } ]
[ { "docid": "4d57ed09ccd02dd48170f4f482fb25ee", "score": "0.65246266", "text": "public function target()\n {\n switch ($this->command) {\n case 'PRIVMSG':\n case 'NOTICE':\n case 'JOIN':\n case 'PART':\n if ($this->params[0] !== '*') {\n return $this->params[0];\n }\n break;\n\n default:\n if ($this->isNumeric()) {\n return $this->params[0];\n }\n return null;\n break;\n }\n }", "title": "" }, { "docid": "9c9c73955560eba15e91070575a2fcda", "score": "0.635693", "text": "public function sendMessage () {\n Chat::addUpdate(request()->all());\n $ch = request('from');\n $id = request('to');\n return Chat::getChatDetails($ch, $id);\n }", "title": "" }, { "docid": "aa93101026d3ea79a8d81e63475374b0", "score": "0.6336755", "text": "public function getUserMessage();", "title": "" }, { "docid": "aa93101026d3ea79a8d81e63475374b0", "score": "0.6336755", "text": "public function getUserMessage();", "title": "" }, { "docid": "747505aa0b0c8dcd03290474d0967619", "score": "0.63037103", "text": "public function FromChatID()\n {\n return $this->data['message']['forward_from_chat']['id'];\n }", "title": "" }, { "docid": "950a9903b1a94bf7f34d6b46601efb08", "score": "0.62983376", "text": "public function actionRecentChat() {\n\n if(!isset($_GET['target_type']) || !isset($_GET['target_id'])){\n $return_data = array('success'=>false, 'error_id'=>1, 'error_msg'=>'data not set');\n $this->renderJSON($return_data);\n return;\n }\n\n $target_id = $_GET['target_id'];\n $target_type = $_GET['target_type'];\n\n\n\t\t$user = $this->get_current_user($_GET);\n if(!$user){\n $return_data = array('success'=>false, 'error_id'=>2, 'error_msg'=>'user is not logged in');\n $this->renderJSON($return_data);\n return;\n }\n\n\n $messages = array();\n if($target_type == 'user'){\n $messages = Message::model()->findAllBySql('SELECT * FROM `message` WHERE (user_id = ' . $user->user_id . ' AND target_type = \"user\" AND target_id = ' . $target_id . ') OR (user_id = ' . $target_id . ' AND target_type = \"user\" AND target_id = ' . $user->user_id . ') ORDER BY id DESC LIMIT 50');\n $messages = array_reverse($messages);\n }elseif($target_type == 'custom'){\n\n $message_group = MessageGroup::model()->find('id=:id', array(':id'=>$target_id));\n if(!$message_group){\n $return_data = array('success'=>false, 'error_id'=>3, 'error_msg'=>'message group doesnt exist');\n $this->renderJSON($return_data);\n return;\n }\n\n //Make sure this user is a member of this group\n $message_group_user = MessageGroupUser::model()->find('user_id=:user_id and message_group_id=:message_group_id', array(':user_id'=>$user->user_id, ':message_group_id'=>$message_group->id));\n if(!$message_group_user){\n $return_data = array('success'=>false, 'error_id'=>4, 'error_msg'=>'user is not a member of this group');\n $this->renderJSON($return_data);\n return;\n }\n\n\n // $messages = Message::model()->findAllBySql(\"SELECT * FROM `message` WHERE (target_type = 'group' AND target_id = '1') ORDER BY id LIMIT 50\");\n\n //$messages = Message::model()->findAllBySql('SELECT * FROM `message` WHERE (target_type = \"' . $target_type . '\" AND target_id = ' . $target_id . ') ORDER BY id LIMIT 50');\n $messages = Message::model()->findAllBySql('SELECT * FROM `message` WHERE (target_type = \"' . $target_type . '\" AND target_id = ' . $target_id . ') ORDER BY id DESC LIMIT 50');\n $messages = array_reverse($messages);\n }elseif($target_type == 'group' || $target_type == 'club'){\n $group = Group::model()->find('group_id=:id', array(':id'=>$target_id));\n\n if(!$group){\n $return_data = array('success'=>false, 'error_id'=>5, 'error_msg'=>'user is not a member of this group');\n $this->renderJSON($return_data);\n return;\n }\n\n $messages = Message::model()->findAllBySql('SELECT * FROM `message` WHERE (target_type = \"' . $target_type . '\" AND target_id = ' . $target_id . ') ORDER BY id DESC LIMIT 50');\n $messages = array_reverse($messages);\n }elseif($target_type == 'class'){\n $class = ClassModel::model()->find('class_id=:id', array(':id'=>$target_id));\n\n if(!$class){\n $return_data = array('success'=>false, 'error_id'=>5, 'error_msg'=>'user is not a member of this class');\n $this->renderJSON($return_data);\n return;\n }\n\n $messages = Message::model()->findAllBySql('SELECT * FROM `message` WHERE (target_type = \"' . $target_type . '\" AND target_id = ' . $target_id . ') ORDER BY id DESC LIMIT 50');\n $messages = array_reverse($messages);\n }elseif($target_type == 'department'){\n $department = Department::model()->find('department_id=:id', array(':id'=>$target_id));\n\n if(!$department){\n $return_data = array('success'=>false, 'error_id'=>5, 'error_msg'=>'user is not a member of this department');\n $this->renderJSON($return_data);\n return;\n }\n\n $messages = Message::model()->findAllBySql('SELECT * FROM `message` WHERE (target_type = \"' . $target_type . '\" AND target_id = ' . $target_id . ') ORDER BY id DESC LIMIT 50');\n $messages = array_reverse($messages);\n }else{\n $return_data = array('success'=>false, 'error_id'=>6, 'error_msg'=>'invalid target type', '$_POST'=>$_POST);\n $this->renderJSON($return_data);\n return;\n }\n\n\n\n\n\n\n\n $return_data = array('success'=>true, 'messages'=>$this->get_messages_data($messages), 'last_update'=>date('Y-m-d H:i:s'), 'target_type'=>$target_type);\n $this->renderJSON($return_data);\n return;\n\n\t}", "title": "" }, { "docid": "4656c5b973a75deb1ca4f96ce42f1551", "score": "0.6297424", "text": "function get_telegram_chat_id() {\n return $this->message->chat_id;\n }", "title": "" }, { "docid": "6e1f08c9972134cee976ed1505655ae2", "score": "0.62959087", "text": "public function getMesssageDetails () {\n $ch = request('ch');\n $id = request('id');\n\n return Chat::getChatDetails($ch, $id);\n }", "title": "" }, { "docid": "49464e274955cae897f64020083d530d", "score": "0.628099", "text": "function GetLatestMessageFromWholeMessageTable( $conn, $target_member ) {\n $latest_msg_id = GetNumberOfMessageEntriesTotal( $conn );\n return AccessMessages( $conn, 'Message_ID', $latest_msg_id, $target_member );\n}", "title": "" }, { "docid": "7f7aa031eaefc59da5a187a73a116020", "score": "0.6225043", "text": "public function getChat($p, $msg){\n\t\t$idx=$this->getPlyrPerm($p);\n\t\t// console(\"[DEBUG] $p index $idx\");\n\t\t$name=$this->getRankName($idx);\n\t\treturn $this->parseCfgStrStable($this->config->get(\"chat-override\"), array(\"rank\", \"message\", \"msg\", \"world\"), array($name, $msg, $msg, $p->entity->level->getName()));\n\t}", "title": "" }, { "docid": "23cf6803e2b98b7f02107e6557590d92", "score": "0.6167255", "text": "public function getTelegramChatId();", "title": "" }, { "docid": "d8f903c0a79dcfb6cbae054663aa9e8b", "score": "0.61489046", "text": "public function get_message();", "title": "" }, { "docid": "d8f903c0a79dcfb6cbae054663aa9e8b", "score": "0.61489046", "text": "public function get_message();", "title": "" }, { "docid": "ca008a6136b74cb7935a00191618fd43", "score": "0.6115172", "text": "public function getChatAction()\n {\n $messageArr = Messages::getMessagesByGroupName($_SESSION['groupNameToDisplay']);\n \n View::renderTemplate('Group/chat.html', [\n 'user' => $this->user,\n 'messageArr' => $messageArr]);\n \n }", "title": "" }, { "docid": "9b99de7dc0559be5ea4ac0e3356be089", "score": "0.60976905", "text": "public function Chat()\n {\n $type = $this->getUpdateType();\n if ($type == self::CALLBACK_QUERY) {\n return @$this->data['callback_query']['message']['chat'];\n }\n if ($type == self::CHANNEL_POST) {\n return @$this->data['channel_post']['chat'];\n }\n if ($type == self::EDITED_MESSAGE) {\n return @$this->data['edited_message']['chat'];\n }\n if ($type == self::INLINE_QUERY) {\n return @$this->data['inline_query']['from'];\n }\n if ($type == self::MY_CHAT_MEMBER) {\n return @$this->data['my_chat_member']['chat'];\n }\n\n return $this->data['message']['chat'];\n }", "title": "" }, { "docid": "8c98f85bd8abe6c23a88ffec92c4ec1d", "score": "0.6087715", "text": "public function getSender();", "title": "" }, { "docid": "0776df9dd0e050ecc4e108f88fecd857", "score": "0.6087136", "text": "public function getTextMessage(){\n $paths = [\n $this->jsonObj[\"entry\"][0][\"messaging\"][0][\"message\"][\"text\"], //normal messages and quick replies\n $this->jsonObj[\"entry\"][0][\"messaging\"][0][\"postback\"][\"title\"] //message with button(s)\n ];\n $hit = null;\n for($i=0;$i<count($paths);$i++){\n $hit = $paths[$i];\n if($hit)\n break;\n }\n return $hit;\n }", "title": "" }, { "docid": "b6384182533175a53608ce663e3c7081", "score": "0.6064823", "text": "public function getChatDetails () {\n $ch = request('ch');\n $id = request('id');\n\n return Chat::getChatDetails($ch, $id);\n }", "title": "" }, { "docid": "f95628af05ce3cea51cb818780c1518c", "score": "0.6042502", "text": "public static function ajax_chat($id){\r\n $query = DB::$conn->prepare('select * from messages where (from_user=? and to_user=?) or (from_user=? and to_user=?) order by date_and_time desc');\r\n $query->execute([$_COOKIE['id'],$id,$id,$_COOKIE['id']]);\r\n $parents = $query->fetchAll(PDO::FETCH_ASSOC);\r\n return $parents;\r\n \r\n }", "title": "" }, { "docid": "6a997bb88facaf9e4fc55461d95693ab", "score": "0.6035318", "text": "public static function getGetLastChatMessageEdit($chat_id, $user_id)\n {\n $db = ezcDbInstance::get();\n $stmt = $db->prepare('SELECT lh_msg.* FROM lh_msg INNER JOIN ( SELECT id FROM lh_msg WHERE chat_id = :chat_id AND user_id = :user_id ORDER BY id DESC LIMIT 1 OFFSET 0) AS items ON lh_msg.id = items.id');\n $stmt->bindValue( ':chat_id',$chat_id,PDO::PARAM_INT);\n $stmt->bindValue( ':user_id',$user_id,PDO::PARAM_INT);\n $stmt->setFetchMode(PDO::FETCH_ASSOC);\n $stmt->execute();\n $row = $stmt->fetch();\n\n return $row;\n }", "title": "" }, { "docid": "3c2bab3f9cbd75e0faf3341eb245982d", "score": "0.60238904", "text": "public function getTelegramMessage(): string;", "title": "" }, { "docid": "aea9a0b88604d0441a3314449a6f2fa1", "score": "0.6017124", "text": "public function getLatestMessage();", "title": "" }, { "docid": "9f9d2c065d30d21db04c8d01b75c0ac1", "score": "0.5973559", "text": "public static function getGetLastChatMessage($chat_id)\n {\n $db = ezcDbInstance::get();\n $stmt = $db->prepare('SELECT lh_msg.* FROM lh_msg INNER JOIN ( SELECT id FROM lh_msg WHERE chat_id = :chat_id ORDER BY id DESC LIMIT 1 OFFSET 0) AS items ON lh_msg.id = items.id');\n $stmt->bindValue( ':chat_id',$chat_id,PDO::PARAM_INT);\n $stmt->setFetchMode(PDO::FETCH_ASSOC);\n $stmt->execute();\n $row = $stmt->fetch();\n\n return $row;\n }", "title": "" }, { "docid": "e7e54122f6d2a3dc756d8d38d33ca222", "score": "0.5971561", "text": "function get_msg_thread($conversation_id) {\r\n\r\n\t\tif($this->session->userdata('stud_id') == FALSE ) {\r\n\t\t\tredirect('students','refresh');\r\n\t\t}\r\n\t\theader('Content-Type: application/json'); \r\n\t\t// GET all the conversation where the conversation_id = $conversation_id\r\n\t\t// ::$conversation_id above is appended using JS from its AJAX Request\r\n\t\t$data['msgs'] = $this->crud->get_specified('msg', ['conversation_id'=> $conversation_id]);\r\n\r\n\t\t$json = json_encode($data['msgs']);\t\r\n\t\t/*GET THE CONV ID*/\r\n\t\techo $json;\r\n\r\n\t}", "title": "" }, { "docid": "8eb619fa8f6d0f031709006632483dea", "score": "0.59707606", "text": "public function getFriendSendMessage() {\n $viewer_id = Engine_Api::_()->user()->getViewer()->getIdentity();\n $getFriednArray = array();\n $messageTable = Engine_Api::_()->getItemTable('messages_message');\n $messageTableName = $messageTable->info('name');\n\n $recipientTable = Engine_Api::_()->getDbtable('recipients', 'messages');\n $recipientTableName = $recipientTable->info('name');\n\n $membershipTable = Engine_Api::_()->getDbtable('membership', 'user');\n $membershipTableName = $membershipTable->info('name');\n\n $select = $recipientTable->select()\n ->setIntegrityCheck(false)\n ->from($recipientTableName, array('user_id'))\n ->joinInner($messageTableName, \"$recipientTableName . conversation_id = $messageTableName . conversation_id\", null)\n ->joinInner($membershipTableName, \"$membershipTableName . resource_id = $recipientTableName . user_id\", null)\n ->where($membershipTableName . '.user_id = ?', $viewer_id);\n\n $fetch = $select->query()->fetchAll();\n foreach ($fetch as $id) {\n $getFriednArray[] = $id['user_id'];\n }\n return $getFriednArray;\n }", "title": "" }, { "docid": "4d8728abc6a79318c09542b0e73ec7d7", "score": "0.5865161", "text": "function getChatMember() {\n\tglobal $telegrambot,$telegramchatid,$userid;\n\t$url='https://api.telegram.org/bot'.$telegrambot.'/getChatMember';\n\t$data=array('chat_id'=>$telegramchatid,'user_id'=>$userid);\n\t$options=array('http'=>array('method'=>'POST','header'=>\"Content-Type:application/x-www-form-urlencoded\\r\\n\",'content'=>http_build_query($data),),);\n\t$context=stream_context_create($options);\n\t$result=file_get_contents($url,false,$context);\n\t$result=json_decode($result);\n\treturn ($result->ok) ? $result->result : False;\n}", "title": "" }, { "docid": "fc1bc30e6ad223d8af3d724d6387e280", "score": "0.5855186", "text": "public function get_one_message($message_id) \r\n\t{\r\n\t\tglobal $wpdb, $xoouserultra;\r\n\t\t\r\n\t\t$logged_user_id = get_current_user_id();\r\n\t\t\r\n\t\t\r\n\t\tif(current_user_can( 'administrator' ))\r\n\t\t{\r\n\t\t\t$sql = 'SELECT * FROM ' . $wpdb->prefix . 'usersultra_wall WHERE `comment_id` = ' . $message_id . ' ' ;\r\n\t\t\r\n\t\t}else{\r\n\t\t\t\r\n\t\t\t$sql = 'SELECT * FROM ' . $wpdb->prefix . 'usersultra_wall WHERE `comment_id` = ' . $message_id . ' AND `comment_wall_user_id` = ' . $logged_user_id . ' ' ;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\r\n\t\t$messages = $wpdb->get_results($sql );\r\n\t\t\r\n\r\n\t\tforeach ( $messages as $message )\r\n\t\t{\r\n\t\t\treturn $message;\r\n\t\t\t\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\r\n\t}", "title": "" }, { "docid": "475ce46d7847566efd1ca629bebed7f1", "score": "0.58003503", "text": "public function getTelepon();", "title": "" }, { "docid": "e0fc5a4b79a8e81c9220f29e21cb4fce", "score": "0.57978034", "text": "function get_last_message_for($for_user) {\r\n\r\n\t$sql = \"SELECT * FROM messages WHERE to_user = $for_user ORDER BY date_sent DESC LIMIT 1\";\r\n\t$result = mysql_query($sql) or die(mysql_error());\r\n\t$message = mysql_fetch_assoc($result);\r\n\treturn $message;\r\n\r\n}", "title": "" }, { "docid": "a210c2e04f2e75d5f9e5e0f513995bc8", "score": "0.57942694", "text": "public function Callback_ChatID()\n {\n return $this->data['callback_query']['message']['chat']['id'];\n }", "title": "" }, { "docid": "4612e463b93a7ff2aac9c2cf77760a26", "score": "0.5793029", "text": "public function getChatroom()\n\t\t{\n\t\t\treturn $this->_b2dbLazyload('_chatroom_id');\n\t\t}", "title": "" }, { "docid": "f19670a0d938d01d94dd14339b63bd38", "score": "0.5750212", "text": "public function ReplyToMessageFromUserID()\n {\n return $this->data['message']['reply_to_message']['forward_from']['id'];\n }", "title": "" }, { "docid": "f9c5af66c539810f1e413703394d7302", "score": "0.5737219", "text": "public function lastMessageByUserId($user_id,$cantMess){\r\n $q = Doctrine_Query::create()\r\n ->from(\"Message m , m.Conversation \")\r\n ->leftJoin(\"m.Conversation c\")\r\n ->where(\"(c.user_to_id = $user_id OR c.user_from_id = $user_id)\")\r\n ->andWhere(\"m.user_id <> $user_id\")\r\n ->andWhere(\"(c.user_to_id=$user_id AND m.looking_user_to=1) OR (c.user_from_id=$user_id AND m.looking_user_from=1)\")\r\n ->orderBy(\"m.date desc\")\r\n ->limit($cantMess);\r\n return $q->execute();\r\n }", "title": "" }, { "docid": "e68362136fe4a3284e68faa1f54817fa", "score": "0.57335466", "text": "function get_telegram_user_id() {\n return $this->message->from_id;\n }", "title": "" }, { "docid": "4319c680df8759f99dc2dfcd34a58f91", "score": "0.5724825", "text": "function message_receiver($message_id)\n {\n $receipants = DB::table('message_organization')\n ->select(DB::raw('organizations.id , organizations.name as name'))\n ->join('organizations', 'organizations.id', '=', 'message_organization.organization_id')\n ->where('message_organization.message_id', $message_id)\n ->get();\n\n return ($receipants[0]->name);\n\n }", "title": "" }, { "docid": "bcb3031e9fda509204de54359c8f7149", "score": "0.5719176", "text": "function getMessage($cb_id)\n\t{\n\t\t$db = e107::getDb('nodejs_chatbox');\n\t\t$template = e107::getTemplate('nodejs_chatbox');\n\t\t$sc = e107::getScBatch('nodejs_chatbox', true);\n\t\t$tp = e107::getParser();\n\n\t\t$query = 'SELECT c.*, u.user_id, u.user_name, u.user_image FROM #nodejs_chatbox AS c ';\n\t\t$query .= 'LEFT JOIN #user AS u ON SUBSTRING_INDEX(c.ncb_nick,\".\",1) = u.user_id ';\n\t\t$query .= 'WHERE c.ncb_id=' . (int) $cb_id;\n\t\t$db->gen($query);\n\n\t\t$message = array();\n\t\twhile($row = $db->fetch())\n\t\t{\n\t\t\t$message = $row;\n\t\t\t// If the author is not a registered user, we have to get the nickname.\n\t\t\tif((int) $row['user_id'] === 0)\n\t\t\t{\n\t\t\t\tlist($cb_uid, $cb_nick) = explode(\".\", $row['ncb_nick'], 2);\n\t\t\t\t$message['user_name'] = $cb_nick;\n\t\t\t\t$message['user_image'] = '';\n\t\t\t}\n\t\t}\n\n\t\t$sc->setVars($message);\n\t\t$html = $tp->parseTemplate($template['menu_item'], true, $sc);\n\n\t\treturn $html;\n\t}", "title": "" }, { "docid": "2835671e740799d54e94dc03e949d14e", "score": "0.5717818", "text": "public function getTlgrmUser()\n {\n return self::$updates['message']['from'];\n }", "title": "" }, { "docid": "aa50eebfd0e7ee929a2b0088d92ddd43", "score": "0.57145965", "text": "public function projectMSG()\n {\n $user = JFactory::getUser();\n if (!isset($user->id) || $user->id == 0) \n {\n $mainframe = JFactory::getApplication();\n $link = JRoute::_('index.php?option=com_users&view=login&return='.base64_encode(JRoute::_('index.php?option=com_pfprojects&task=projectMSG')));\n $mainframe->redirect($link, \"You need to log in first\");\n }\n $db =& JFactory::getDBO();\n $query = \"SELECT * FROM #__community_msg_recepient WHERE to = $user->id\";\n }", "title": "" }, { "docid": "a85be783584239e9770d371b5412f105", "score": "0.56630087", "text": "function RAS_getChatUser()\n{\n\treturn(RMV_get4IP(\"accountName\", \"m23RemoteAdministrationService\"));\n}", "title": "" }, { "docid": "a2dc3461da0b27c2eaa0d25cf78d2695", "score": "0.5650547", "text": "function fetch_user_chat_history() {\n $last_history_chat = $this->db->query(\"\n select * from (SELECT DBMS_LOB.SUBSTR(dit.message,4000), dit.fecha_creacion, dit.from_user_id, dit.chatblchat_pk_chat FROM MODULCHAT.chatblmessage dit\n WHERE (dit.from_user_id = \" . $this->session->userdata['usuario']['PK_ENT_CODIGO'] . \"\n AND dit.to_user_id = \" . $this->session->userdata['dataChat']['SAC_USER_ID'] . \")\n OR (dit.from_user_id = \" . $this->session->userdata['dataChat']['SAC_USER_ID'] . \"\n AND dit.to_user_id = \" . $this->session->userdata['usuario']['PK_ENT_CODIGO'] . \") \n ORDER BY dit.fecha_creacion asc) even where even.chatblchat_pk_chat =\" . $this->session->userdata['PK_CHAT'] . \"\");\n $last_history_chat = $last_history_chat->result_array;\n $output = '';\n for ($i = 0; $i < count($last_history_chat); $i++) {\n $user_name = '';\n $fromMessage = $this->session->userdata['usuario']['PK_ENT_CODIGO'];\n $nameFromMessage = $this->session->userdata['usuario']['NOMBRE'];\n if ($last_history_chat[$i][\"FROM_USER_ID\"] == $fromMessage) {\n $user_name = '<b class=\"text-success\">Tu</b>';\n } else {\n $user_name = '<b class=\"text-danger\">' . $nameFromMessage . '</b>';\n }\n $message = $last_history_chat[$i][\"DBMS_LOB.SUBSTR(DIT.MESSAGE,4000)\"];\n if ($last_history_chat[$i]['FROM_USER_ID'] === $this->session->userdata['usuario']['PK_ENT_CODIGO']) {\n $output .= '<li>\n <div class=\"msj-rta macro-rta\">\n <div class=\"text text-r\">\n <p>' . urldecode($message) . '</p>\n <p><small>' . $last_history_chat[$i]['FECHA_CREACION'] . '</small></p> \n </div>\n </div>\n </li>\n ';\n } else {\n $output .= '<li>\n <div class=\"msj macro\">\n <div class=\"text text-r\">\n <p>' . urldecode($message) . '</p>\n <p><small>' . $last_history_chat[$i]['FECHA_CREACION'] . '</small></p> \n </div>\n </div>\n </li>\n ';\n }\n }\n $sql = \"BEGIN MODULCHAT.CHATPKGACTUALIZACION.prcupdatestatusmessage(\n parfromuserid=>:parfromuserid,\n partouserid=>:partouserid,\n parrespuesta=>:parrespuesta);\n END;\";\n $conn = $this->db->conn_id;\n $stmt = oci_parse($conn, $sql);\n $parfromuserid = $this->session->userdata['usuario']['PK_ENT_CODIGO'];\n $partouserid = $this->session->userdata['dataChat']['SAC_USER_ID'];\n oci_bind_by_name($stmt, ':parfromuserid', $parfromuserid, 32);\n oci_bind_by_name($stmt, ':partouserid', $partouserid, 32);\n oci_bind_by_name($stmt, ':parrespuesta', $parrespuesta, 32);\n if (!@oci_execute($stmt)) {\n $e = oci_error($stmt);\n var_dump($e);\n }\n if ($parrespuesta == 1) {\n $this->output->set_content_type('text/css');\n $this->output->set_output($output);\n }\n }", "title": "" }, { "docid": "1c4d9b0834f3fbc7c15846d6349dcf4d", "score": "0.5649965", "text": "static function show_received_message($id_user){\n if(!is_int($id_user))\n return false;\n $query = self::$PDO->prepare(\"SELECT t1.*,concat(t2.fname,' ',t2.name) as recipient_name,concat(t3.fname,' ',t3.name) as sender_name from \".self::$prefix.\"messages t1,\".self::$prefix.\"users t2, \".self::$prefix.\"users t3 where id_recipient = :id_user and t1.id_recipient = t2.ID AND t1.id_sender = t3.ID and (deleted IS NULL OR deleted=0)\");\n $query->execute(array(':id_user'=>$id_user));\n return $query->fetchAll();\n }", "title": "" }, { "docid": "8db71a348419b8b89402d70765e1a03d", "score": "0.564968", "text": "public function get_sender_line();", "title": "" }, { "docid": "a0c8bf6ba28b4b43fc2052c662835cfc", "score": "0.5649493", "text": "public function viewchatforclient($userid, $username){ \r\n $this->db->select('tblchat.message, DATE_FORMAT(tblchat.seton, \"%Y-%m-%d %r\") as seton, tblclient.firstname, tblclient.clientID, tblclient.lastname, tblclient.emailaddress, tblclient.contact, tblbranch.branchname, tbllocation.locationname')->from('tblchat')\r\n ->join('tblclient', 'tblchat.clientID=tblclient.clientID', 'inner')->join('tbllocation', 'tblclient.locationID=tbllocation.locationID', 'inner')\r\n ->join('tblbranch', 'tblclient.branchID=tblbranch.branchID', 'inner')\r\n ->where('tblchat.userID', $userid)->where('tblchat.chatID IN (SELECT MAX(chatID) from tblchat WHERE sendername!=\"admin\" GROUP BY clientID ORDER BY chatID DESC)');\r\n $query=$this->db->get();\r\n return $query->result_array();\r\n $db->close();\r\n }", "title": "" }, { "docid": "31de63f351080b68e6219f93a1f0fa6c", "score": "0.5645471", "text": "function getMessageDetails() {\n\t\t# query active user details using email\n\t\t$q = Doctrine_Query::create()->from('MessageRecipient r')->where('r.messageid = ?', $this->getID());\n\t\t// debugMessage($q->fetchOne()->toArray());\n\t\treturn $q->fetchOne();\n\t}", "title": "" }, { "docid": "da9dfb2a953c85fc61173495158e6185", "score": "0.5637359", "text": "function viewchat()\n{\n require_once 'model/model.php'; //ajouter les données\n $data = getChatText(); //le contenu brut du fichier texte.\n\n //Traiter les données:\n $lastposition = 0;\n //Compter le nombres de lignes dans $data:\n $nblignes = substr_count($data, \"[\"); //on compte le nombre de msgs (chaque ligne de msg commence par '[')\n for ($i = 1; $i <= $nblignes; $i++) { //pour toutes les lignes\n if ($i != $nblignes) {\n $ligne = substr($data, $lastposition, stripos($data, \"[\", $lastposition + 1) - $lastposition); //extrait la chaine entre les deux '['\n } else { //si c'est la dernière ligne\n $ligne = substr($data, $lastposition); //extrait la chaine entre le dernier '[' et jusqu'à la fin,.\n }\n $lastposition = stripos($data, \"[\", $lastposition + 1); //lastposition prend la position suivante\n //Séparer les données de la ligne:\n $time = substr($ligne, 1, 17); //pour avoir le contenu entre [ et ] --> \"01.12.19 09:37:48\"\n $posstartauthor = 19 + 1; //position départ de author\n $posstartmsg = stripos($ligne, \":\", 19) + 2;\n $author = substr($ligne, $posstartauthor, $posstartmsg - $posstartauthor - 2); //auteur du msg\n $msg = substr($ligne, $posstartmsg); //pos début du msg jusqu'à fin de la ligne. //contenu du msg\n //Définir le type:\n if (stripos($msg, \"Les messages que vous envoyez dans ce groupe sont protégés avec le chiffrement de bout en bout. Cliquez pour plus d'informations.\") != -1) {\n $type = \"SystemJaune\";\n }\n if (stripos($msg, \" intégré le groupe via un lien d'invitation\") != -1) {\n $type = \"SystemBleu\";\n }\n if (stripos($msg, \"+41 ** *** ** ** a ajouté +41 ** *** ** **\") != -1 && count_chars($msg) == 42) {\n $type = \"SystemBleu\";\n }\n $filename = \"\";\n if (stripos($msg, \"< pièce jointe : \") == 1 && stripos($msg, count_chars($msg) - 1) == \">\") {\n $type = \"file\";\n $posfilename = stripos($msg, \":\", $posstartmsg);\n $filename = substr($posfilename, stripos($msg, \" \", $posfilename) - $posfilename);\n\n $filename .= \":\" . getFilesTypewithext($filename);var_dump($filename);\n }\n\n //On enregistre les valeurs dans le tableau\n $chatdata[$i - 1]['time'] = $time;\n $chatdata[$i - 1]['author'] = $author;\n $chatdata[$i - 1]['msg'] = $msg;\n $chatdata[$i - 1]['type'] = $type;\n\n }\n\n//Afficher les données:\n require_once 'view/viewchat.php';\n}", "title": "" }, { "docid": "098874c08c83057ce9206e92ac44faab", "score": "0.5629517", "text": "function chatNotes_get($id = null) {\n\t\t//print_r($id);\n\t\t$id = $this->get('uid');\n\t\t$this->load->model('Chats_model');\n\n\t\t$chats = $this->Chats_model->get_myMessage();\n\n\t\tif ($chats) {\n\t\t\t$this->response($chats, 200); // 200 being the HTTP response code\n\t\t} else {\n\t\t\t$this->response(array('error' => 'Couldn\\'t find any users!'), 404);\n\t\t}\n\t}", "title": "" }, { "docid": "ef835ca5f8e85a540e8f647031033109", "score": "0.5624487", "text": "public function get_recipient_line();", "title": "" }, { "docid": "a81e70bff33402baf2993439a16488ef", "score": "0.5607141", "text": "protected function _findMessage()\n\t{\n\t\t$msgID = ( $this->request['msgID'] == '__firstUnread__' ) ? '__firstUnread__' : intval( $this->request['msgID'] );\n\t\t$topicID = intval( $this->request['topicID'] );\n\t\t\n\t\t/* Fetch topic data */\n\t\t$topicData = $this->messengerFunctions->fetchTopicData( $topicID );\n\t\t\n\t\t/* Figure out the MSG id */\n\t\tif ( $msgID == '__firstUnread__' )\n\t\t{\n\t\t\t/* Grab mah 'pants */\n\t\t\t$participants = $this->messengerFunctions->fetchTopicParticipants( $topicID );\n\t\t\t\n\t\t\tif ( $participants[ $this->memberData['member_id'] ] )\n\t\t\t{\n\t\t\t\t$_msgID = $this->DB->buildAndFetch( array( 'select' => 'msg_id',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'from' => 'message_posts',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'where' => 'msg_topic_id=' . $topicID . ' AND msg_date > ' . intval( $participants[ $this->memberData['member_id'] ]['map_read_time'] ),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'order' => 'msg_date ASC',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'limit' => array( 0, 1 ) ) );\n\t\n\t\t\t\t$msgID = $_msgID['msg_id'];\n\t\t\t}\n\t\t}\n\t\t\n\t\t$msgID = ( $msgID ) ? $msgID : $topicData['mt_last_msg_id'];\n\t\t\n\t\t/* Figure it out */\n\t\t$replies = $topicData['mt_replies'] + 1;\n\t\t$perPage = $this->messengerFunctions->messagesPerPage;\n\t\t$page = 0;\n\t\t\n\t\t$_count = $this->DB->buildAndFetch( array( 'select' => 'COUNT(*) as count',\n\t\t\t\t\t\t\t\t\t\t\t\t 'from' => 'message_posts',\n\t\t\t\t\t\t\t\t\t\t\t\t 'where' => \"msg_topic_id=\" . $topicID . \" AND msg_id <=\" . intval( $msgID ) ) );\t\t\t\t\t\t\t\t\t\t\n\t\t\n\t\t\n\t\tif ( (($_count['count']) % $perPage) == 0 )\n\t\t{\n\t\t\t$pages = ($_count['count']) / $perPage;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$pages = ceil( ( ( $_count['count'] ) / $perPage ) );\n\t\t}\n\t\t\n\t\t$st = ($pages - 1) * $perPage;\n\t\t\n\t\t$this->registry->getClass('output')->silentRedirect( $this->settings['base_url'] . 'app=members&amp;module=messaging&amp;section=view&amp;do=showConversation&amp;topicID=' . $topicID . '&amp;st=' . $st . '#msg' . $msgID );\n\t}", "title": "" }, { "docid": "7cbe4066a0be393b24155fd7c2b7cc25", "score": "0.5599941", "text": "public function getReplyTo() {}", "title": "" }, { "docid": "7cbe4066a0be393b24155fd7c2b7cc25", "score": "0.5599941", "text": "public function getReplyTo() {}", "title": "" }, { "docid": "f07d953c2c2ad27821418105e0460fa2", "score": "0.5593836", "text": "public function getReplyTo();", "title": "" }, { "docid": "7bc20eb8b5062b979121a86265494c4a", "score": "0.55891496", "text": "function bp_get_message_thread_content() {\n\t\tglobal $messages_template;\n\n\t\treturn apply_filters( 'bp_get_message_thread_content', $messages_template->thread->last_message_content );\n\t}", "title": "" }, { "docid": "9229602b645cf34606a0468bfa92b6ae", "score": "0.5587882", "text": "public function get_top_chat($my_id){\n\n //max last_modify chat\n $sql = \"SELECT chat.chat_id,chat.chat_type,last_modify\n from chat,chat_management \n WHERE chat.chat_id = chat_management.chat_id\n AND chat_management.user_id = '$my_id'\n order by last_modify desc LIMIT 1\";\n\n\n $result = $this->conn->query($sql);\n\n if($result == TRUE){\n\n $row = $result->fetch_assoc();\n\n //if:0 ->group / 1 -> private\n if($row['chat_type'] == 0){\n\n $group_id = $row['chat_id'];\n $group_sql = \"SELECT chat_id,chat_name FROM group_namings WHERE chat_id = '$group_id'\";\n $group_result = $this->conn->query($group_sql);\n\n if($group_result == TRUE){\n\n $group_row = $group_result->fetch_assoc();\n $return_container = $group_row;\n }\n\n }else if($row['chat_type'] == 1){\n\n $private_id = $row['chat_id'];\n $private_sql = \"SELECT chat_id,chat_name FROM namings WHERE chat_id = '$private_id' AND user_id = '$my_id'\";\n $private_result = $this->conn->query($private_sql);\n\n if($private_result == TRUE){\n\n $private_row = $private_result->fetch_assoc();\n $return_container = $private_row;\n }\n }\n\n return $return_container;\n\n }else {\n return \"nothing\";\n }\n }", "title": "" }, { "docid": "44361247c30e1fd8eaa088dc21e4f98c", "score": "0.5573069", "text": "function chat_messages_get()\n{\n $user_guid = elgg_get_logged_in_user_guid();\n\n $list = elgg_get_entities_from_relationship(array(\n 'type' => 'object',\n 'subtype' => 'chat_message',\n 'count' => false,\n 'relationship' => 'unread',\n 'relationship_guid' => $user_guid,\n 'inverse_relationship' => true,\n ));\n\n if ($list) {\n foreach ($list as $message) {\n //Get an array of fields which can be exported.\n $object_entries = $message->getExportableValues();\n\n //save standard object_entries into array\n foreach ($object_entries as $value) {\n $m[$value] = $message->$value;\n }\n\n //save object url\n $m[\"url\"] = $message->getURL() . \"chat/view/\" . $message->container_guid . \"/\";\n\n $return[] = $m;\n }\n\n return $return;\n\n }\n}", "title": "" }, { "docid": "0ecccaa455446a46b6b963838614dfa6", "score": "0.55549014", "text": "public function getRestrictionChat()\n {\n return $this->restrictionChat;\n }", "title": "" }, { "docid": "73b8d0cab008e72a357fb3686c8bbc82", "score": "0.5542685", "text": "function getRecipient() {\n\t\treturn $this->getMessageDetails()->getRecipient();\n\t}", "title": "" }, { "docid": "b333af0184110f8f8629dfd2d1ece569", "score": "0.55406135", "text": "public function getRecipient();", "title": "" }, { "docid": "7dad2ae2b17c49985d7a2967109744d7", "score": "0.5536609", "text": "public function getAllMessagesFromUser($conn, $username, $recipient)\n {\n $query = \"SELECT * FROM explicafeup.chat \n WHERE (userfrom='\".$username.\"' and userTo ='\".$recipient.\"') or (userto='\".$username.\"' and userfrom='\".$recipient.\"') \n ORDER BY id\";\n $result = pg_exec($conn, $query);\n return $result;\n }", "title": "" }, { "docid": "830aa26aa3a7559bce76aaee9f277963", "score": "0.5529786", "text": "protected function mapChatRelative()\n {\n return $this->get('chat.title', false) ? GroupChat::class : User::class;\n }", "title": "" }, { "docid": "fc207a028ac6fe2e45564f4739e83cae", "score": "0.55294263", "text": "public function get_messages($chat_id, $last_message_id){\n\n $this->db->select(['id','to_user','from_user','content','created'])\n ->where('chat_id',$chat_id)\n ->where('id>',$last_message_id)\n ->order_by('created','DESC');\n //offset for loading of messages will be added soon\n $messages = $this->db->get('messages',15)->result();\n $messages = array_reverse($messages);\n //find id of a user on the otherside\n $otherside_user = new stdClass();\n $otherside_user->chat_id = $chat_id;\n foreach ($messages as $field => $value) {\n if($value->to_user == $this->session->customer_id){\n $otherside_user->id = $value->from_user;\n break;\n } else {\n $otherside_user->id = $value->to_user;\n break;\n }\n}\n//get information about a user on the other side\nif(!empty($otherside_user->id)){\n $this->db->select(['id','first_name','last_name','image'])\n ->from('customers')\n ->where('id',$otherside_user->id);\n $otherside_user = $this->db->get()->result();\n}\n//send messages and otherside user info to a view\n$chat_data['messages'] = $messages;\n$chat_data['otherside_user'] = $otherside_user ? $otherside_user : '';\n\nreturn $chat_data;\n}", "title": "" }, { "docid": "0260d79c203e9aa2738b0350a4b1be22", "score": "0.5529407", "text": "function getLastMessageTime($chat_id){\n\t\t$last_message = $this->sql->ExecuteSQL(\"SELECT datetime FROM chathistory WHERE chat_id={$chat_id} ORDER BY datetime desc LIMIT 1\");\n\t\treturn $last_message[\"datetime\"];\n\t}", "title": "" }, { "docid": "f5924c524a697a103e072f6b21c616fe", "score": "0.5522031", "text": "function displayMessageThread($to_id, $from_id ,$conn)\n{\n include_once \"include.php\";\n $rec = 0;\n $subj = '';\n\n $user_id = $_SESSION['glbl_user']->user_id;\n $username = $_SESSION['glbl_user']->username;\n\n $sql = \"SELECT Message.*, toUser.username as toUser, fromUser.username as fromUser, toUser.user_id as toUserId FROM Message\n INNER JOIN user toUser on Message.created_by=toUser.user_id INNER JOIN user fromUser on Message.from=fromUser.user_id WHERE (Message.created_by=$to_id AND Message.from = $from_id) OR (Message.created_by=$from_id AND Message.from=$to_id)\nORDER BY Message.timestamp\";\n\n\n $flag = 0;\n if ($resultData = mysqli_query($conn, $sql)) {\n while ($rowData = mysqli_fetch_assoc($resultData)) {\n $to = $rowData['toUser'];\n $from = $rowData['fromUser'];\n $to_id = $rowData['toUserId'];\n $message = $rowData['message'];\n $subj = $rowData['subject'];\n\n if ($to == $username) {\n $rec = $from;\n $color = \"cornflowerblue\";\n } else {\n $rec = $to;\n $color = \"darkgray\";\n }\n\n if ($flag == 0) {\n //display subject and From\n $flag = 1;\n echo '<div class=\"w-container\">\n <h3 class=\"heading-8\">Messages between you and ' . $rec . '</h3>\n </div> ';\n }\n //display body\n echo '<label for=\"replyTxt-1\" style=\"font-weight: normal;\n font-size: 12px;\n margin-bottom: 0;\n margin-left: -450px;\">' . $from . '</label>\n\n <textarea class=\"message-box textarea-2 w-input\" data-name=\"Reply Txt 3\" id=\"replyTxt-1\" maxlength=\"5000\" name=\"replyTxt-1\" readonly style=\"background-color: ' . $color . '\">' . $message . '</textarea>\n <label for=\"replyTxt-1\" style=\"font-weight: normal;\n font-size: 12px;\n margin-bottom: 0;\n margin-left: 450px;\">' . date('m/d/y', strtotime($rowData['timestamp'])) . '</label>';\n\n\n $read_ind = $rowData['read_ind'];\n $id = $rowData['message_id'];\n if ($read_ind == 0 && $user_id == $to_id) {\n $sql = \"UPDATE Message SET read_ind='1' WHERE message_id = '$id'\";\n if ($result = mysqli_query($conn, $sql)) {\n } else {\n dieWithError(8);\n\n }\n }\n }\n } else {\n dieWithError(8);\n\n }\n return array($rec, $subj);\n}", "title": "" }, { "docid": "1867366b8f085f6975389145f682ed40", "score": "0.55165666", "text": "public function getChatId () :string\n {\n if ($this->getUpdateType () == 'edited_message'){\n $chat_id = $this->content ['edited_message']['chat']['id'];\n }\n if ($this->getUpdateType () == 'channel_post'){\n $chat_id = $this->content ['channel_post']['chat']['id'];\n }\n if ($this->getUpdateType () == 'edited_channel_post'){\n $chat_id = $this->content ['edited_channel_post']['chat']['id'];\n }\n if ($this->getUpdateType () == 'callback_query'){\n $chat_id = $this->content ['callback_query']['message']['chat']['id'];\n }\n if ($this->getUpdateType () == 'my_chat_member'){\n $chat_id = $this->content ['my_chat_member']['chat']['id'];\n }\n if ($this->getUpdateType () == 'chat_member'){\n $chat_id = $this->content ['chat_member']['chat']['id'];\n }\n if ($this->getUpdateType () == 'chat_join_request'){\n $chat_id = $this->content ['chat_join_request']['chat']['id'];\n }\n return $chat_id ?? $this->content ['message']['chat']['id'];\n }", "title": "" }, { "docid": "da91db8b46622224eb154f2b9b0629e5", "score": "0.5516551", "text": "function reply() {\n\t\t$this->success = null;\n\t\t\n\t\t$msg = new Message($this->POD,array('targetUserId'=>$this->fromId,'message'=>$message));\n\t\t$msg->save();\n\t\tif ($msg->success()) { \n\t\t\t$this->MESSAGES->exists();\n\t\t\t$this->MESSAGES->add($msg);\n\t\t\t$this->success = true;\n\t\t\treturn $msg;\t\t\n\t\t} else {\n\t\t\t$this->throwError($msg->error());\n\t\t\t$this->error_code = $msg->errorCode();\n\t\t\treturn null;\n\t\t}\t\n\t}", "title": "" }, { "docid": "69ca99e62016f981c15f4150ed1a4140", "score": "0.55041623", "text": "function messageReadByRecipient($messageUid, $recipientUser='') {\n\t\t\n\t\t// check given user or check current user if not set\n\t\t$recipient = $recipientUser ? $recipientUser : $GLOBALS['TSFE']->fe_user->user['uid'];\n\t\t\n\t\t#debug($recipient);\n\t\t\n\t\t$fields = '*';\n\t\t$table = 'tx_keinsitemailbox_log';\n\t\t$where = 'message=\"'.intval($messageUid).'\" AND recipient=\"'.intval($recipient).'\" AND action=\"read\" ';\n\t\t$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery($fields,$table,$where,$groupBy='',$orderBy='',$limit='');\n\t\t$anz = $GLOBALS['TYPO3_DB']->sql_num_rows($res);\n\t\treturn $anz ? true : false;\n\t}", "title": "" }, { "docid": "a3977a0c1c9ac0c4ca840171f6c3329f", "score": "0.5500554", "text": "function say() {\n\tglobal $db,$chatTable,$typingServ;\n\t//$msgCleaned=htmlspecialchars_decode($msgCleaned);\n\t\n\t$query=\"INSERT INTO `$chatTable` (`sender_id`,`reciever_id`,`text`,`ts`) values('{$this->id}','{$this->ref}','{$this->msg4DbClean}','{$this->msgDate}')\"; //insert the msg in the DB\n\t$res=$db->query($query);\n\tif($res){ // if the chat message was inserted then\n\t\t$this->msg=$this->smiley($this->msg);\n\t\t$_SESSION['chatOldMsg']=$this->msg4DbClean;\n\t\tif($this->lastChatter==$this->me || $this->lastChatter=='me'){\n\t\t\t\t//i was the last who sent a msg (dont creat a new msg header)\n\t\t\t\t$msgLayout=array('m',$this->msg.'<br />'); // m => me\n\n\t\t\t}else{\n\t\t\t\t$meTitle=$this->shorten($this->me);\n\t\t\t\t//i wasn't me the last chatter (creat a new msg header)\n\t\t\t\t// \"n\" below means \"NOT ME\"\n\t\t\t\t\t$msgLayout=array('n','<div class=\"me chatMsg\"><div class=\"msgHeader\">(a###)a href=\"#\" class=\"chatAvatar\" >(img###)img src=\"'.$this->imgSrc.'\" title=\"Me\" />(a##)a><span class=\"chatName\">(a###)a href=\"#\" title=\"'.$this->me.'\">'.$meTitle.'(a##)a></span><span class=\"msgTime\">'.$this->sDate.'</span></div><div class=\"msgBody\">'.$this->msg.'<br /></div></div>');\n\t\t\t}\n\t\t//treating the user chat msg (to not do a non allowed action <script>,<h1>...)\n\t\t$msgLayout[1]=$this->decode($msgLayout[1]);\n\t\t$msgLayout=json_encode($msgLayout);\n\t\t// if the typing service is enabled\n\t\tif ($typingServ) {\n\t\t\t//remove any indicator shown to the reciever that i'm typing !\n\t\t\tif (isset($_SESSION['typingID'])) {\n\t\t\t\t$id=$_SESSION['typingID'];\n\t\t\t}else{\n\t\t\t\t$id='';\n\t\t\t}\n\t\t\tif (!empty($id)) {\n\t\t\t\t$query=\"DELETE FROM `$chatTable` WHERE `id`='$id'\";\n\t\t\t\t$res=$db->query($query);\n\t\t\t\t$_SESSION['typingID']=\"\";\n\t\t\t}\n\t\t}\n\t\techo $msgLayout;\n\t}else{echo'f';}\n}", "title": "" }, { "docid": "7a1a98f8eeeb754c1c1c365b9cd638dc", "score": "0.5497519", "text": "public function getChatDetailsalready() {\n $id = request('id');\n return Chat::getChatDetailsAll($id);\n }", "title": "" }, { "docid": "05faa4cd32a5d5e02018c95e111aa967", "score": "0.54943764", "text": "public function get_recieved(){\n\t\t\tglobal $db;\n\n\n\t\t\t$user_id = $_SESSION['logged_admin_id'];\n\n\t\t\t\n\t\t\t$sql = \"SELECT * FROM message \";\n\t\t\t$sql .= \" WHERE reciever_id = {$user_id} \";\n\t\t\t$sql .= \" ORDER BY stamp DESC \";\n\n\t\t\t$messages = $db->query($sql);\n\n\t\t\tconfirm($messages);\n\n\t\t\treturn $messages;\n\t\t}", "title": "" }, { "docid": "3cc4b32fe3a2d0bd7cd86621b4d91c3b", "score": "0.5491534", "text": "public function getMessage(){\n\t\treturn @$this->_message[$this->_position];\n\t}", "title": "" }, { "docid": "409ce89280f14d2d3ef7938be32093ae", "score": "0.5490145", "text": "function processMessage($message) {\n $message_id = $message['message_id'];\n $chat_id = $message['chat']['id'];\n if (isset($message['text'])) {\n \n $text = $message['text'];//texto recebido na mensagem\n\n if (strpos($text, \"/start\") === 0) {\n //envia a mensagem ao usuário\n sendMessage(\"sendMessage\", array('chat_id' => $chat_id, \"text\" => 'Olá, '. $message['from']['first_name'].\n '! Eu sou um bot que informa a previsão do tempo', 'reply_markup' => array(\n 'keyboard' => array(array('Previsão')),\n 'one_time_keyboard' => true)));\n } else if ($text === \"Previsão\") {\n sendMessage(\"sendMessage\", array('chat_id' => $chat_id, \"text\" => 'Escolha de qual cidade você deseja receber a previsão.', \n 'reply_markup' => array(\n 'keyboard' => array(array('Ponta Grossa', 'Castro', 'Carambeí', 'Jaguariaíva'), \n array('Tibagi', 'Telêmaco Borba', 'Reserva', 'Irati'),\n array('Ipiranga', 'Prudentópolis', 'Ivaí', 'Todas')),\n 'one_time_keyboard' => true)));\n\n } else if ($text === \"Ponta Grossa\") {\n sendMessage(\"sendMessage\", array('chat_id' => $chat_id, \"text\" => getCity('6401'),\n 'reply_markup' => array(\n 'keyboard' => array(array('Ponta Grossa', 'Castro', 'Carambeí', 'Jaguariaíva'), \n array('Tibagi', 'Telêmaco Borba', 'Reserva', 'Irati'),\n array('Ipiranga', 'Prudentópolis', 'Ivaí', 'Todas')),\n 'one_time_keyboard' => true)));\n } else if ($text === \"Castro\") {\n sendMessage(\"sendMessage\", array('chat_id' => $chat_id, \"text\" => getCity('3357'),\n 'reply_markup' => array(\n 'keyboard' => array(array('Ponta Grossa', 'Castro', 'Carambeí', 'Jaguariaíva'), \n array('Tibagi', 'Telêmaco Borba', 'Reserva', 'Irati'),\n array('Ipiranga', 'Prudentópolis', 'Ivaí', 'Todas')),\n 'one_time_keyboard' => true)));\n } else if ($text === \"Carambeí\") {\n sendMessage(\"sendMessage\", array('chat_id' => $chat_id, \"text\" => getCity('6711'),\n 'reply_markup' => array(\n 'keyboard' => array(array('Ponta Grossa', 'Castro', 'Carambeí', 'Jaguariaíva'), \n array('Tibagi', 'Telêmaco Borba', 'Reserva', 'Irati'),\n array('Ipiranga', 'Prudentópolis', 'Ivaí', 'Todas')),\n 'one_time_keyboard' => true)));\n } else if ($text === \"Jaguariaíva\") {\n sendMessage(\"sendMessage\", array('chat_id' => $chat_id, \"text\" => getCity('6589'),\n 'reply_markup' => array(\n 'keyboard' => array(array('Ponta Grossa', 'Castro', 'Carambeí', 'Jaguariaíva'), \n array('Tibagi', 'Telêmaco Borba', 'Reserva', 'Irati'),\n array('Ipiranga', 'Prudentópolis', 'Ivaí', 'Todas')),\n 'one_time_keyboard' => true)));\n } else if ($text === \"Tibagi\") {\n sendMessage(\"sendMessage\", array('chat_id' => $chat_id, \"text\" => getCity('6249'),\n 'reply_markup' => array(\n 'keyboard' => array(array('Ponta Grossa', 'Castro', 'Carambeí', 'Jaguariaíva'), \n array('Tibagi', 'Telêmaco Borba', 'Reserva', 'Irati'),\n array('Ipiranga', 'Prudentópolis', 'Ivaí', 'Todas')),\n 'one_time_keyboard' => true)));\n } else if ($text === \"Telêmaco Borba\") {\n sendMessage(\"sendMessage\", array('chat_id' => $chat_id, \"text\" => getCity('6224'),\n 'reply_markup' => array(\n 'keyboard' => array(array('Ponta Grossa', 'Castro', 'Carambeí', 'Jaguariaíva'), \n array('Tibagi', 'Telêmaco Borba', 'Reserva', 'Irati'),\n array('Ipiranga', 'Prudentópolis', 'Ivaí', 'Todas')),\n 'one_time_keyboard' => true)));\n } else if ($text === \"Reserva\") {\n sendMessage(\"sendMessage\", array('chat_id' => $chat_id, \"text\" => getCity('6472'),\n 'reply_markup' => array(\n 'keyboard' => array(array('Ponta Grossa', 'Castro', 'Carambeí', 'Jaguariaíva'), \n array('Tibagi', 'Telêmaco Borba', 'Reserva', 'Irati'),\n array('Ipiranga', 'Prudentópolis', 'Ivaí', 'Todas')),\n 'one_time_keyboard' => true)));\n } else if ($text === \"Irati\") {\n sendMessage(\"sendMessage\", array('chat_id' => $chat_id, \"text\" => getCity('6994'),\n 'reply_markup' => array(\n 'keyboard' => array(array('Ponta Grossa', 'Castro', 'Carambeí', 'Jaguariaíva'), \n array('Tibagi', 'Telêmaco Borba', 'Reserva', 'Irati'),\n array('Ipiranga', 'Prudentópolis', 'Ivaí', 'Todas')),\n 'one_time_keyboard' => true)));\n } else if ($text === \"Ipiranga\") {\n sendMessage(\"sendMessage\", array('chat_id' => $chat_id, \"text\" => getCity('6573'),\n 'reply_markup' => array(\n 'keyboard' => array(array('Ponta Grossa', 'Castro', 'Carambeí', 'Jaguariaíva'), \n array('Tibagi', 'Telêmaco Borba', 'Reserva', 'Irati'),\n array('Ipiranga', 'Prudentópolis', 'Ivaí', 'Todas')),\n 'one_time_keyboard' => true)));\n } else if ($text === \"Prudentópolis\") {\n sendMessage(\"sendMessage\", array('chat_id' => $chat_id, \"text\" => getCity('5615'),\n 'reply_markup' => array(\n 'keyboard' => array(array('Ponta Grossa', 'Castro', 'Carambeí', 'Jaguariaíva'), \n array('Tibagi', 'Telêmaco Borba', 'Reserva', 'Irati'),\n array('Ipiranga', 'Prudentópolis', 'Ivaí', 'Todas')),\n 'one_time_keyboard' => true)));\n } else if ($text === \"Ivaí\") {\n sendMessage(\"sendMessage\", array('chat_id' => $chat_id, \"text\" => getCity('6584'),\n 'reply_markup' => array(\n 'keyboard' => array(array('Ponta Grossa', 'Castro', 'Carambeí', 'Jaguariaíva'), \n array('Tibagi', 'Telêmaco Borba', 'Reserva', 'Irati'),\n array('Ipiranga', 'Prudentópolis', 'Ivaí', 'Todas')),\n 'one_time_keyboard' => true)));\n } else {\n sendMessage(\"sendMessage\", array('chat_id' => $chat_id, \"text\" => 'Desculpe, não entendi o que disse (a opção Todas não está funcionando).'));\n }\n\n } else {\n sendMessage(\"sendMessage\", array('chat_id' => $chat_id, \"text\" => 'Desculpe, mas só compreendo mensagens em texto'));\n }\n }", "title": "" }, { "docid": "2ed8ea56a75072c008d595911ac73662", "score": "0.5487145", "text": "public function getThread()\n {\n return $this->replyModel->getThread();\n }", "title": "" }, { "docid": "cf7c708ca8d09da9185474557cdfd78b", "score": "0.5480625", "text": "function get_message() {\n return $this->message;\n }", "title": "" }, { "docid": "921385c90742a40fa474d6bb8401967e", "score": "0.54793775", "text": "public function ReplyToMessageID()\n {\n return $this->data['message']['reply_to_message']['message_id'];\n }", "title": "" }, { "docid": "1e898aa0b76f464e43697ca81be1cf67", "score": "0.5474637", "text": "function get_message() {\n if ($_SESSION['message']) {\n foreach ($_SESSION['message'] as $type => $messages) {\n $message .= $this->create_message(implode('<br>', $messages), $type);\n }\n $_SESSION['message'] = null;\n }\n\n return $message;\n }", "title": "" }, { "docid": "ceca82eef0e393d636bef8dededc96d1", "score": "0.5463206", "text": "public function getUserMessage() {\n\treturn $this->userMessage;\n}", "title": "" }, { "docid": "2fffc6236fd5eaf895a654ffea0c7a11", "score": "0.5459463", "text": "function fetch_user_chat_history_sac($idCliente, $pkchat) {\n\n $last_history_chat = $this->db->query(\"\n select * from (SELECT DBMS_LOB.SUBSTR(dit.message,4000), dit.fecha_creacion, dit.from_user_id, dit.chatblchat_pk_chat FROM MODULCHAT.chatblmessage dit\n WHERE (dit.from_user_id = \" . $this->session->userdata['PK_ENT_CODIGO'] . \"\n AND dit.to_user_id = \" . $idCliente . \")\n OR (dit.from_user_id = \" . $idCliente . \"\n AND dit.to_user_id = \" . $this->session->userdata['PK_ENT_CODIGO'] . \") \n ORDER BY dit.fecha_creacion asc) even where even.chatblchat_pk_chat =\" . $pkchat . \"\");\n $last_history_chat = $last_history_chat->result_array;\n $output = '';\n for ($i = 0; $i < count($last_history_chat); $i++) {\n $user_name = '';\n $fromMessage = $this->session->userdata['PK_ENT_CODIGO'];\n $nameFromMessage = $this->session->userdata['NOMBRE'];\n if ($last_history_chat[$i][\"FROM_USER_ID\"] == $fromMessage) {\n $user_name = '<b class=\"text-success\">Tu</b>';\n } else {\n $user_name = '<b class=\"text-danger\">' . $nameFromMessage . '</b>';\n }\n $message = $last_history_chat[$i][\"DBMS_LOB.SUBSTR(DIT.MESSAGE,4000)\"];\n if ($last_history_chat[$i]['FROM_USER_ID'] === $this->session->userdata['PK_ENT_CODIGO']) {\n $output .= '<li style=\"list-style-type: none;\">\n <div class=\"msj-rta macro-rta\">\n <div class=\"text text-r\">\n <p>' . urldecode($message) . '</p>\n <p><small>' . $last_history_chat[$i]['FECHA_CREACION'] . '</small></p> \n </div>\n </div>\n </li>\n ';\n } else {\n $output .= '<li style=\"list-style-type: none;\">\n <div class=\"msj macro\">\n <div class=\"text text-r\">\n <p>' . urldecode($message) . '</p>\n <p><small>' . $last_history_chat[$i]['FECHA_CREACION'] . '</small></p> \n </div>\n </div>\n </li>\n ';\n }\n }\n\n $sql = \"BEGIN MODULCHAT.CHATPKGACTUALIZACION.prcupdatestatusmessage(\n parfromuserid=>:parfromuserid,\n partouserid=>:partouserid,\n parrespuesta=>:parrespuesta);\n END;\";\n $conn = $this->db->conn_id;\n $stmt = oci_parse($conn, $sql);\n $parfromuserid = $this->session->userdata['usuario']['PK_ENT_CODIGO'];\n $partouserid = $this->session->userdata['dataChat']['SAC_USER_ID'];\n oci_bind_by_name($stmt, ':parfromuserid', $parfromuserid, 32);\n oci_bind_by_name($stmt, ':partouserid', $partouserid, 32);\n oci_bind_by_name($stmt, ':parrespuesta', $parrespuesta, 32);\n if (!@oci_execute($stmt)) {\n $e = oci_error($stmt);\n var_dump($e);\n }\n if ($parrespuesta == 1) {\n $this->output->set_content_type('text/css');\n $this->output->set_output($output);\n return $output;\n }\n }", "title": "" }, { "docid": "89c562495fbc2596a4d42cb93fd4d774", "score": "0.5454793", "text": "public function getChatId()\n {\n if (array_key_exists(\"chatId\", $this->_propDict)) {\n return $this->_propDict[\"chatId\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "dca96fa4ecfea7376c7d91b9e0a5ac41", "score": "0.54486746", "text": "function getMessages($post, $user, $db) {\r\n\t\t//if((preg_match('!#!', $message) !== FALSE) || (preg_match(':&:', $message) !== FALSE)) {\r\n\t\t// Format sent to client:\r\n\t\t// Friend!#!Message:&:Friend!#!Message ... Message\r\n\t\t$thisUser = $user['Login'];\r\n\t\t$query = \"SELECT * FROM Messages WHERE `To`='$thisUser' ORDER BY Time DESC LIMIT 50\";\r\n\t\t$res = $db->squery($query);\r\n\t\t$list = '';\r\n\t\tif($res->num_rows == 0) {\r\n\t\t\tdie(\"MSG: No Messages\");\r\n\t\t}\r\n\t\twhile($row = $res->fetch_assoc()) {\r\n\t\t\t$list .= $row['From'].'!#!'.$row['Message'].':&:';\r\n\t\t}\r\n\t\t$list = substr($list, 0, -3);\r\n\t\treturn $list;\r\n\t}", "title": "" }, { "docid": "3cc769ed80d76394dd2a658a4862d522", "score": "0.544525", "text": "public function replyTo()\n {\n return $this->reply_to;\n }", "title": "" }, { "docid": "8127718357a17f5dd41d2e4cf4deac25", "score": "0.5438244", "text": "function sendMsg($message,$bot_id){ \n $telegram = new Telegram($bot_id);\n $chat_id = -1001137971754;\n $content = array('chat_id' => $chat_id, 'text' => $message);\n $telegram->sendMessage($content);\n}", "title": "" }, { "docid": "7bbc89f1b1c8ea5aaaea0fafd0a488ac", "score": "0.54304755", "text": "public static function getFirstUserMessage($chat_id)\n {\n\t \t$db = ezcDbInstance::get();\n\t \t$stmt = $db->prepare('SELECT lh_msg.msg,lh_msg.user_id FROM lh_msg INNER JOIN ( SELECT id FROM lh_msg WHERE chat_id = :chat_id AND (user_id = 0 OR user_id = -2) ORDER BY id ASC LIMIT 10) AS items ON lh_msg.id = items.id');\n\t \t$stmt->bindValue( ':chat_id',$chat_id,PDO::PARAM_INT);\n\t \t$stmt->setFetchMode(PDO::FETCH_ASSOC);\n\t \t$stmt->execute();\n\n\t \t$rows = $stmt->fetchAll(PDO::FETCH_ASSOC);\n\n\t \t$responseRows = [];\n\t \tforeach ($rows as $row) {\n $responseRows[] = ($row['user_id'] == 0 ? erTranslationClassLhTranslation::getInstance()->getTranslation('chat/startchat','You') : erTranslationClassLhTranslation::getInstance()->getTranslation('chat/startchat','Us')) . ': ' . $row['msg'];\n }\n\n\t \tif (empty($responseRows)) {\n\t \t return '';\n }\n\n\t \treturn erTranslationClassLhTranslation::getInstance()->getTranslation('chat/startchat','Summary') . \":\\n\".implode(\"\\n\",$responseRows);\n }", "title": "" }, { "docid": "3a654aa96554bde005dbf8f0c5f8364f", "score": "0.5418871", "text": "public function getFullMessage();", "title": "" }, { "docid": "3a654aa96554bde005dbf8f0c5f8364f", "score": "0.5418871", "text": "public function getFullMessage();", "title": "" }, { "docid": "4b77a61586e95b44a6ad43ecd8a4009f", "score": "0.5418814", "text": "function message($id) {\r\n\r\n\t\tif($this->session->userdata('stud_id') == FALSE ) {\r\n\t\t\tredirect('students','refresh');\r\n\t\t}\r\n\r\n\t\r\n\t\t/*USERS*/\r\n\t\t$user1 = $this->session->userdata('stud_id'); //the student\r\n\t\t$user2 = $id; //ID of teh professor\r\n\r\n\t\t// GET all the conversation/s where user_1 and user_2 (vice-versa) exist\r\n\t\t$conversation_id = $this->crud->get_single('conversation',\"(user_1 = $user1 AND user_2 = $user2) OR (user_1= $user2 AND user_2 = $user1)\");\r\n\r\n\t\t// IF there is existing conversation_id\r\n\t\tif( $conversation_id ) { \r\n\t\t\t// SET it to another variable.\r\n\t\t\t$data['conversation_data'] = $conversation_id;\r\n\r\n\t\t// IF the conversation_id does not exist, create an ID for them.\r\n\t\t} else {\r\n\t\t\t$data = [\r\n\t\t\t\t'user_1' => $this->session->userdata('stud_id'),\r\n\t\t\t\t'user_2' => $id \r\n\t\t\t];\r\n\t\t\t/*ADD new conversation*/\r\n\t\t\t$new_conversation = $this->crud->add('conversation', $data);\r\n\t\t}\r\n\r\n\t\treturn $this->current_message($id);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "8156c1f53e73d73beaa31a6e50211d7e", "score": "0.54176235", "text": "function processMessage($message) {\n $message_id = $message['message_id'];\n $chat_id = $message['chat']['id'];\n if (isset($message['text'])) {\n \n $text = $message['text'];//texto recebido na mensagem\n\n if (strpos($text, \"/start\") === 0) {\n\t\t//envia a mensagem ao usuário\n sendMessage(\"sendMessage\", array('chat_id' => $chat_id, \"text\" => 'Olá, '. $message['from']['first_name'].\n\t\t'! Eu sou um bot que informa o resultado do último sorteio da Mega Sena. Será que você ganhou dessa vez? Para começar, escolha qual loteria você deseja ver o resultado', 'reply_markup' => array(\n 'keyboard' => array(array('Mega-Sena', 'Quina'),array('Lotofácil','Lotomania')),\n 'one_time_keyboard' => true)));\n } else if ($text === \"Mega-Sena\") {\n sendMessage(\"sendMessage\", array('chat_id' => $chat_id, \"text\" => getResult('megasena', $text)));\n } else if ($text === \"Quina\") {\n sendMessage(\"sendMessage\", array('chat_id' => $chat_id, \"text\" => getResult('quina', $text)));\n } else if ($text === \"Lotomania\") {\n sendMessage(\"sendMessage\", array('chat_id' => $chat_id, \"text\" => getResult('lotomania', $text)));\n } else if ($text === \"Lotofácil\") {\n sendMessage(\"sendMessage\", array('chat_id' => $chat_id, \"text\" => getResult('lotofacil', $text)));\n } else if ($text === \"g1\") {\n sendMessage(\"sendMessage\", array('chat_id' => $chat_id, \"text\" => 'Olá, '. $message['from']['first_name'].\n\t\t'! Escolha um dos jogos abaixo para ver o resultado diretamente no site do G1.', \n\t\t'reply_markup' => array('inline_keyboard' => array(\n //linha 1\n array(\n array('text'=>'Mega-Sena','url'=>'http://g1.globo.com/loterias/megasena.html'), //botão 1\n array('text'=>'Quina','url'=>'http://g1.globo.com/loterias/quina.html')//botão 2\n ),\n //linha 2\n array(\n array('text'=>'Lotofácil','url'=>'http://g1.globo.com/loterias/lotofacil.html'), //botão 3\n array('text'=>'Lotomania','url'=>'http://g1.globo.com/loterias/lotomania.html')//botão 4\n )\n )\n )));\n } else {\n sendMessage(\"sendMessage\", array('chat_id' => $chat_id, \"text\" => 'Desculpe, mas não entendi essa mensagem. :('));\n }\n } else if (isset($message['photo'])) { //checa se existe imagem na mensagem\n\t $photo = $message['photo'][count($message['photo'])-1]; //obtém a imagem no tamanho original\n\t //envia a imagem recebida com a legenda\n\t sendMessage(\"sendPhoto\", array('chat_id' => $chat_id, \"photo\" => $photo[\"file_id\"], \"caption\" => \"A legenda da foto foi: \".$$message[\"caption\"]));\n } else {\n sendMessage(\"sendMessage\", array('chat_id' => $chat_id, \"text\" => 'Desculpe, mas só compreendo mensagens em texto'));\n }\n}", "title": "" }, { "docid": "4406042654e070b606562ed7f97c8c70", "score": "0.5402208", "text": "function getmessage($message) {\r\n $sql = \"SELECT * FROM messages WHERE `id` = '\".$message.\"' && (`from` = '\".$this->userid.\"' || `to` = '\".$this->userid.\"') LIMIT 1\";\r\n $result = mysql_query($sql);\r\n if(mysql_num_rows($result)) {\r\n // reset the array\r\n $this->messages = array();\r\n // fetch the data\r\n $row = mysql_fetch_assoc($result);\r\n $this->messages[0]['id'] = $row['id'];\r\n $this->messages[0]['title'] = $row['title'];\r\n $this->messages[0]['message'] = $row['message'];\r\n $this->messages[0]['fromid'] = $row['from'];\r\n $this->messages[0]['toid'] = $row['to'];\r\n $this->messages[0]['from'] = $this->getusername($row['from']);\r\n $this->messages[0]['to'] = $this->getusername($row['to']);\r\n $this->messages[0]['from_viewed'] = $row['from_viewed'];\r\n $this->messages[0]['to_viewed'] = $row['to_viewed'];\r\n $this->messages[0]['from_deleted'] = $row['from_deleted'];\r\n $this->messages[0]['to_deleted'] = $row['to_deleted'];\r\n $this->messages[0]['from_vdate'] = date($this->dateformat, strtotime($row['from_vdate']));\r\n $this->messages[0]['to_vdate'] = date($this->dateformat, strtotime($row['to_vdate']));\r\n $this->messages[0]['from_ddate'] = date($this->dateformat, strtotime($row['from_ddate']));\r\n $this->messages[0]['to_ddate'] = date($this->dateformat, strtotime($row['to_ddate']));\r\n $this->messages[0]['created'] = date($this->dateformat, strtotime($row['created']));\r\n } else {\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "34242553813cfd116b196364fc661938", "score": "0.5400896", "text": "function get_messages_for($for_user) {\r\n\r\n\t$sql = \"SELECT * FROM messages WHERE to_user = $for_user\";\r\n\t$result = mysql_query($sql) or die(mysql_error());\r\n\t$messages = array();\r\n\twhile ($message = mysql_fetch_assoc($result)){\r\n\t\tarray_push($messages,$message);\r\n\t}\r\n\treturn $messages;\r\n\r\n}", "title": "" }, { "docid": "595141e0281a711bcab2c9025a03cd26", "score": "0.5392737", "text": "public function current()\n {\n $msgId = $this->ids === null\n ? $this->iterationPos\n : $this->ids[$this->iterationPos];\n\n return $this->imap->getMessage($msgId);\n }", "title": "" }, { "docid": "1ed8a7e85b6cdd62254fcb4aa33238a0", "score": "0.53864986", "text": "function getForumChatMessages($connection,$sendBy,$sendTo,$chatWithRole){\n if ($chatWithRole == 'student'){\n $chatMessages = \"SELECT fc.*,fs.student_name as person_name,fs.student_profile AS person_profile FROM forum_chat fc LEFT JOIN forum_student fs\n ON fc.send_by=fs.user_id WHERE (fc.send_by='$sendBy' AND fc.send_to='$sendTo') OR (fc.send_by='$sendTo' AND fc.send_to='$sendBy') \n GROUP BY fc.id ORDER BY fc.chat_time\";\n }\n else if ($chatWithRole == 'faculty'){\n $chatMessages = \"SELECT fc.*,ff.name as person_name,ff.profile AS person_profile FROM forum_chat fc LEFT JOIN forum_faculty ff\n ON fc.send_by=ff.user_id WHERE (fc.send_by='$sendBy' AND fc.send_to='$sendTo') OR (fc.send_by='$sendTo' AND fc.send_to='$sendBy') \n GROUP BY fc.id ORDER BY fc.chat_time\";\n }\n // echo $chatMessages; die();\n $result = $connection->query($chatMessages);\n return $result;\n }", "title": "" }, { "docid": "ec9f4430de870dc338f315ecd185da7d", "score": "0.5379926", "text": "function getMessages();", "title": "" }, { "docid": "9dddd3c6c6d00daa87dcf388138ed72b", "score": "0.53792524", "text": "public function message($id) {\n\t\t$res = $this->zap->request($this->zap->base . 'core/view/message/', array('id' => $id));\n\t\treturn reset($res);\n\t}", "title": "" }, { "docid": "82e580a09f2f531fd20fa84ba48bf01d", "score": "0.5370393", "text": "public function chat()\n {\n $user = Auth::user();\n $messages = Message::where('from', $user->id)->orderBy('created_at', 'desc')->get()->unique('to');\n $chatList = Message::orWhere('from', $user->id)->orWhere('to', $user->id)->orderBy('created_at', 'asc')->get();\n return view('chat', ['messages' => $messages, 'chatList' => $chatList]);\n }", "title": "" }, { "docid": "a4ccc630abc7692f9a53a09a35902e70", "score": "0.5368821", "text": "public function lastFrom($lastMessage)\n {\n return response()->json(Chat::with('User')->where('id', '>', $lastMessage)->get()->toArray());\n }", "title": "" }, { "docid": "f8f035b6e9d5150113e208897390cf86", "score": "0.53624105", "text": "function AccessMessages( $conn, $member, $member_key, $target_member ) {\n $sql = \"SELECT * FROM Messages WHERE $member = '$member_key' \";\n $result = mysqli_query( $conn, $sql );\n\n if( $result === false )\n echo \"Error: <\" . $sql . \"> | \" . mysqli_error( $conn ) . \"\\n\";\n \n if( mysqli_num_rows( $result ) > 0 ) {\n $row = mysqli_fetch_assoc( $result );\n echo \"Message Accessed. \\n\";\n return $row[$target_member];\n }\n else {\n echo \"Message Not Found. \\n\";\n return false; \n } \n}", "title": "" }, { "docid": "ca98e1009cd9a0e675827edbb834cbf7", "score": "0.5362034", "text": "function fetch_group_chat_history($connect)\r\n {\r\n $query = \"\r\n SELECT * FROM chat_message \r\n WHERE to_user_id = '0' \r\n ORDER BY timestamp DESC\r\n \";\r\n // make query for execution\r\n $statement = $connect->prepare($query);\r\n // execute query\r\n $statement->execute();\r\n // save returned result\r\n $result = $statement->fetchAll();\r\n // unordered list with list-unstyled bootstrap class \r\n $output = '<ul class=\"list-unstyled\">';\r\n // loop through each line\r\n foreach ($result as $row) {\r\n // append sender's username\r\n $user_name = '';\r\n // store dinamic chat message to chack if deleted or not\r\n $chat_message = '';\r\n $dynamic_background = '';\r\n // if sender is the user logged in, name = 'you' othervise get username from table\r\n if ($row[\"from_user_id\"] == $_SESSION[\"user_id\"]) {\r\n // if message was deleted\r\n if ($row[\"status\"] == '2') {\r\n $chat_message = '<em>This message has been removed</em>';\r\n $user_name = '<b class=\"text-success\">You</b>';\r\n // if message wasn't deleted\r\n } else {\r\n $chat_message = $row['chat_message'];\r\n // dinamic chat remove button\r\n $user_name = '<button type=\"button\" class=\"btn btn-danger btn-xs remove_chat\" id=\"' . $row['chat_message_id'] . '\">x</button>&nbsp;<b class=\"text-success\">You</b>';\r\n }\r\n $dynamic_background = 'background-color:#ffe6e6;';\r\n // other than user, who wrote the message\r\n } else {\r\n if ($row[\"status\"] == '2') {\r\n $chat_message = '<em>This message has been removed</em>';\r\n } else {\r\n $chat_message = $row['chat_message'];\r\n }\r\n $user_name = '<b class=\"text-danger\">' . get_user_name($row['from_user_id'], $connect) . '</b>';\r\n $dynamic_background = 'background-color:#ffffe6;';\r\n }\r\n // create message to be output on website\r\n // 1. sender name, message\r\n // 2. timestamp\r\n $output .= '\r\n <li style=\"border-bottom:1px dotted #ccc;padding-top:8px; padding-left:8px; padding-right:8px;' . $dynamic_background . '\">\r\n <p>' . $user_name . ' - ' . $chat_message . '\r\n <div align=\"right\">\r\n - <small><em>' . $row['timestamp'] . '</em></small>\r\n </div>\r\n </p>\r\n </li>\r\n ';\r\n }\r\n $output .= '</ul>';\r\n // return history of groupchat messaging between all users\r\n return $output;\r\n }", "title": "" }, { "docid": "60909678956918c6778cb0b91e486749", "score": "0.53583163", "text": "function GetLastMessage() \n\t\t{\n\t\t\treturn $this->currentDB->GetLastMessage();\n\t\t}", "title": "" }, { "docid": "5b62e7e17bf5deff77880bf82723a72b", "score": "0.53555405", "text": "public function get_message($id)\n {\n $this->db->select(\"*\");\n $this->db->from('tbl_messages');\n $this->db->where('id', $id);\n\t\t$query = $this->db->get();\n $result = $query->row();\n return $result;\n }", "title": "" }, { "docid": "73dae2790bd31230064181b791741efa", "score": "0.53547806", "text": "function showSender($arrArgs = array()) {\r\n\t\tif (! empty ( $arrArgs )) {\r\n\t\t\t$id=$arrArgs['id'];\r\n\t\t\t$sql = \"SELECT m.friend_id as id, m.message_time,\r\n\t\t\tfirst_name,last_name,path,m.seen\r\n\t\tFROM (\r\n\t\t\tSELECT friend_id, message_time,first_name,last_name,path,seen\r\n\t\t\tFROM message\r\n \t\tJOIN personal_profile\r\n \t\ton\r\n \t\t\tmessage.friend_id=personal_profile.user_id\r\n \t\tJOIN photo\r\n \t\ton\r\n \t\t\tpersonal_profile.profile_pic_id=photo.id\r\n\t\t\tWHERE \r\n\t\t\t\t( message.user_id ='$id' OR message.friend_id='$id' )\r\n\t\t\tORDER BY `message_time` DESC\r\n \t\t)\r\n\t\tas m\r\n\t\tgroup by m.friend_id\r\n\t\tORDER BY `message_time` DESC \";\r\n\t\t\t$result = $this->executeSQLP ( $sql );\r\n\t\t\tif ($result) {\r\n\t\t\t\twhile ( $row [] = $result->fetch ( PDO::FETCH_ASSOC ) ) {\r\n\t\t\t\t}\r\n\t\t\t\tif (! empty ( $row )) {\r\n\t\t\t\t\treturn $row;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d5ca4683d86d213d477bdb876872286a", "score": "0.5354577", "text": "public function onChat(&$data){\n\t\t$data[\"message\"]=$this->getChat($data[\"player\"], $data[\"message\"]);\n\t}", "title": "" }, { "docid": "338c03b8f1e5aaa51954b22bf33307f0", "score": "0.53425884", "text": "function myMessages($email)\n{\n\n $htmlCodeToReturn = \"\";\n\n if (isset($_SESSION[\"idChat\"]) && !empty($_SESSION[\"idChat\"])) {\n\n $connection = db_connection();\n $idChat = $_SESSION['idChat'];\n\n //$query = \"SELECT user_from, user_to, text FROM chat WHERE ((user_from='$email' AND user_to='$otherUser')\n // OR (user_from='$otherUser' AND user_to='$email')) ORDER BY timestamp ASC\";\n\n $query = \"SELECT userFrom, text FROM messages WHERE idChat = $idChat ORDER BY timestamp ASC\";\n\n $result = mysqli_query($connection, $query);\n\n while ($row = mysqli_fetch_array($result)) {\n\n if ($row['userFrom'] == $email)\n $htmlCodeToReturn .= '<div class=\"sentMessage\">';\n else\n $htmlCodeToReturn .= '<div class=\"receivedMessage\">';\n\n $htmlCodeToReturn .= \"<p><b>\" . $row['userFrom'] . \"</b>:<br>\" . $row['text'];\n $htmlCodeToReturn .= \"</p></div><br>\";\n }\n\n mysqli_close($connection);\n }\n return $htmlCodeToReturn;\n}", "title": "" }, { "docid": "bbef80ad4ac6cfe6e4b605882cfef111", "score": "0.5341118", "text": "public function readMessage($userid, $messageid){\n\t\tglobal $dblink;\n\n\t\t$v = $dblink->prepare(\"SELECT * FROM message WHERE (msg_to=? OR msg_from=?) AND id=?\");\n\t\t$v->bind_param(\"iii\", $userid, $userid, $messageid);\n\t\t$v->execute();\n\t\t\t$result = get_result($v);\n\t\n\t\tforeach($result as $row) {\n\t\t\treturn $row;\n\t\t}\n\t}", "title": "" } ]
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "a89581414c16a84f1bed2fa2b38c0e09", "score": "0.0", "text": "public function run()\n {\n\n // membuat sample admin\n $administrator = new \\App\\User;\n\t\t$administrator->username = \"Admin\";\n\t\t$administrator->name = \"Admin\";\n\t\t$administrator->address = \"Bandung,Jawa Barat\";\n\t\t$administrator->phone = \"086909258955\";\n\t\t$administrator->avatar = \"N/A\";\t\t\n\t\t$administrator->email = \"[email protected]\";\n\t\t$administrator->roles = json_encode([\"ADMIN\"]);\n\t\t$administrator->password = \\Hash::make(\"admin\");\n\t\t\n\t\t$administrator->save();\n\n\t\t$this->command->info(\"User Admin berhasil diinsert\");\n\n // membuat sample member\n $sample = new \\App\\User;\n\t\t$sample->username = \"Member\";\n\t\t$sample->name = \"Member\";\n\t\t$sample->address = \"Bandung,Jawa Barat\";\n\t\t$sample->phone = \"086909258955\";\n\t\t$sample->avatar = \"N/A\";\t\t\n\t\t$sample->email = \"[email protected]\";\n\t\t$sample->roles = json_encode([\"MEMBER\"]);\n\t\t$sample->password = \\Hash::make(\"rahasia\");\n\t\t\n\t\t$sample->save();\n\n\t\t$this->command->info(\"User Member berhasil diinsert\");\n }", "title": "" } ]
[ { "docid": "74adb703f4d2ee8eeea828c6234b41f3", "score": "0.81044954", "text": "public function run()\n {\n Eloquent::unguard();\n\n $this->seed('Categories');\n\n // Illustration\n $this->seed('Supports');\n $this->seed('Illustrations');\n\n // Photography\n $this->seed('Photosets');\n $this->seed('Collections');\n $this->seed('Photos');\n\n $this->seed('Articles');\n $this->seed('Repositories');\n $this->seed('Services');\n $this->seed('Stories');\n $this->seed('Tableaux');\n $this->seed('Tracks');\n }", "title": "" }, { "docid": "1dcddd9fc4f2fbc62e484166f7f3332c", "score": "0.802869", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n DB::table('users')->truncate();\n DB::table('posts')->truncate();\n DB::table('roles')->truncate();\n DB::table('role_user')->truncate();\n\n // SEEDS\n $this->call(RolesTableSeeder::class);\n\n // FACTORIES\n /*\n factory(App\\User::class, 10)->create()->each(function ($user) {\n $user->posts()->save(factory(App\\Post:class)->make());\n });*/\n\n //$roles = factory(App\\Role::class, 3)->create();\n\n $users = factory(User::class, 10)->create()->each(function ($user) {\n $user->posts()->save(factory(Post::class)->make());\n $user->roles()->attach(Role::findOrFail(rand(1, 3)));\n });\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n\n }", "title": "" }, { "docid": "0874a499bef2a647494554309f6aa0cd", "score": "0.80049884", "text": "public function run()\n {\n /**\n * Dummy seeds\n */\n DB::table('ouse')->truncate();\n $faker = Faker::create();\n\n for ($i=0; $i < 10; $i++) { \n DB::table('ouse')->insert([\n 'id_rel' => $faker->randomNumber(),\n 'titulo' => $faker->sentence,\n 'descricao' => $faker->paragraph,\n 'fonte' => $faker->sentence,\n 'layout' => 'content-'.$i,\n 'indicadores' => json_encode([$i]),\n 'regras' => json_encode([$faker->words(3)]),\n 'types' => json_encode([$faker->words(2)]),\n 'categorias' => json_encode([$faker->words(4)]),\n 'tags' => json_encode([$faker->words(5)]),\n 'active' => true,\n 'status' => true,\n ]);\n }\n\n\n }", "title": "" }, { "docid": "6d65d81db98c4e3d10f6aa402d6393d9", "score": "0.79774004", "text": "public function run()\n {\n if (App::environment() == 'production') {\n exit(\"You shouldn't run seeds on production databases\");\n }\n\n DB::table('roles')->truncate();\n\n Role::create([\n 'id' => 3,\n 'name' => 'Root',\n 'description' => 'God user. Access to everything.'\n ]);\n\n Role::create([\n 'id' => 2,\n 'name' => 'Administrator',\n 'description' => 'Administrator user. Many privileges.'\n ]);\n\n Role::create([\n 'id' => 1,\n 'name' => 'Guest',\n 'description' => 'Basic user.'\n ]);\n\n }", "title": "" }, { "docid": "17a49f970cd10e5cfdebd0f59e100f60", "score": "0.79215413", "text": "public function run()\n {\n User::create([\n 'first_name' => 'Administrator',\n 'last_name' => 'One',\n 'email' => '[email protected]',\n 'role_id' => 81,\n 'password' => bcrypt('mmmm')\n ]);\n User::create([\n 'first_name' => 'User',\n 'last_name' => 'One',\n 'email' => '[email protected]',\n 'role_id' => 3,\n 'password' => bcrypt('mmmm')\n ]);\n\n Role::create(\n ['name' => 'Contributor', 'id' => 3]\n );\n Role::create(\n ['name' => 'Administrator', 'id' => 81]\n );\n\n factory(User::class, 5)->create()->each(function ($user) {\n $user->posts()->saveMany(factory(Post::class, rand(2, 3))->make());\n });\n }", "title": "" }, { "docid": "6fd37af4061bceb7c3ed860b1db5b07b", "score": "0.7916311", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 1)->create([\n 'role' => 'admin'\n ]);\n factory(App\\Question::class, 1)->create(['user_id' => 1])->each(function ($question) {\n $question->hashtags()->save(factory(App\\Hashtag::class)->make());\n });\n factory(App\\Comment::class, 1)->create([\n 'question_id' => 1\n ]);\n }", "title": "" }, { "docid": "2806867c15ca7bd71920629767c01dd4", "score": "0.7899936", "text": "public function run()\n {\n Model::unguard();\n\n $faker=Faker\\Factory::create();\n App\\category::create(['title'=>'Public']);\n App\\category::create(['title'=>'Private']);\n App\\category::create(['title'=>'Family']);\n\n\n\n // $this->call(UserTableSeeder::class);\n foreach(range(1,100) as $index) {\n App\\Post::create([\n 'title'=>$faker->realText(30,2),\n 'content'=>$faker->realText(200,2),\n 'category_id'=>App\\category::all()->random()->id\n\n ]);\n }\n Model::reguard();\n }", "title": "" }, { "docid": "96081f5559e3c4bb80f4e56c33d545f5", "score": "0.7897222", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n Type::insert(array(\n ['type' => 'Checkbox'], \n ['type' => 'Rango'], \n ['type' => 'Radio'], \n ['type' => 'Select']\n ));\n factory(App\\Survey::class, 5)->create()->each(function ($u){\n for ($i=0; $i <rand(1,10) ; $i++) { \n $u->questions()->save(factory(App\\Question::class)->make());\n }\n });\n }", "title": "" }, { "docid": "b993bdb17f6322a43f700f6d1f5b1006", "score": "0.7882899", "text": "public function run()\n {\n // Trunkate the databse so we don;t repeat the seed\n DB::table('roles')->delete();\n\n Role::create(['name' => 'root']);\n Role::create(['name' => 'admin']);\n Role::create(['name' => 'supervisor']);\n Role::create(['name' => 'officer']);\n Role::create(['name' => 'user']);\n }", "title": "" }, { "docid": "71daf483f301960f0f88e0c893f58c36", "score": "0.7881348", "text": "public function run()\n {\n $this->call(UserSeeder::class);\n \n\n factory(App\\Article::class,50)\n ->create();\n \n factory(App\\Comment::class,50)\n ->create();\n\n factory(App\\Reply::class,50)\n ->create();\n\n factory(App\\Like::class,50)\n ->create();\n \n $articles = App\\Article::all();\n\n factory(App\\Tag::class,5)->create()\n ->each(function($tag) use ($articles){\n $tag->articles()->attach(\n $articles->random(6,1)->pluck('id')->toArray()\n );\n });\n }", "title": "" }, { "docid": "0b109c2cad785f4ff36ecf7d46b132de", "score": "0.78785", "text": "public function run()\n\t{\n\t\tModel::unguard();\n\n\t\t// $this->call('UserTableSeeder');\n\n Ruta::create([\n 'descripcion'=>'Cochan',\n 'observacion'=>'-'\n ]);\n Anexo::create([\n 'descripcion'=>'Santa Aurelia',\n 'observacion'=>'-',\n 'ruta_id'=>1\n ]);\n\n Proveedor::create([\n 'name'=>'Evhanz',\n 'apellidoP'=>'Hernandez',\n 'apellidoM'=>'Salazar',\n 'dni'=>'47085011',\n 'celular'=>'990212662',\n 'estado'=>true,\n 'anexo_id'=>1\n ]);\n\n Recurso::create([\n 'descripcion'=>'casa toro',\n 'tipo'=>'interno'\n ]);\n\n\n\n\n\n\n\n\t}", "title": "" }, { "docid": "3c219ba37518a110e693986f93eb9e5e", "score": "0.7877671", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n DB::table('roles')->insert([\n 'name' => 'prof',\n 'display_name' => 'professor',\n 'description' => 'Perfil professor',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ]);\n\n DB::table('users')->insert([\n 'name' => 'Marcos André',\n 'email' => '[email protected]',\n 'password' => bcrypt('marcos123'),\n 'first_login' => 0,\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ]);\n\n DB::table('professores')->insert([\n 'nome' => 'Marcos André',\n 'matricula' => '12.3456-7',\n 'data_nascimento' => '1969-11-30',\n 'user_id' => 1,\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ]);\n\n DB::table('role_user')->insert([\n 'user_id' => 1,\n 'role_id' => 1,\n ]);\n }", "title": "" }, { "docid": "0c456002637a63e2342e712744fc57f7", "score": "0.78721434", "text": "public function run()\n {\n \n // $categories = factory(Category::class, 10)->create();\n // $categories->each( function($category) {\n // $category->categories()->saveMany( \n // factory(Category::class, rand(0,5))->make()\n // );\n // });\n\n // $categories->each( function($category) {\n // $category->posts()->saveMany(\n // factory(Post::class, rand(0, 4) )->make()\n // );\n // });\n $this->call(LaratrustSeeder::class);\n }", "title": "" }, { "docid": "ace435808d0bbff7fbf10bb7260d46e1", "score": "0.78685874", "text": "public function run()\n {\n // factory(Author::class, 50)->create();\n Author::factory()->count(50)->create();\n\n // for ($i=0; $i<50; $i++) {\n\n // $name = \"Vardenis\".($i+1);\n // $surname = \"Pavardenis\".($i+1);\n // $username = \"Slapyvardis\".($i+1);\n\n // DB::table(\"authors\")->insert([\n // 'name'=> $name ,\n // 'surname'=> $surname ,\n // 'username'=> $username ,\n // ]);\n // }\n\n // DB::table(\"authors\")->insert([\n\n // 'name'=> 'Vardenis' ,\n // 'surname'=> 'Pavardenis',\n // 'username'=> 'Slapyvardis',\n // ]);\n }", "title": "" }, { "docid": "d7bb625a9812b9cb6a9362070a5950ee", "score": "0.7852421", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // Add Company\n $company = Company::create([\n 'name' => 'IAPP',\n 'employee_count' => 100,\n 'size' => 'Large'\n ]);\n\n $secondCompany = Company::create([\n 'name' => 'ABC',\n 'employee_count' => 20,\n 'size' => 'Small'\n ]);\n\n // Add user\n $general_user = User::create([\n 'name' => 'Shayna Sylvia',\n 'email' => '[email protected]',\n 'password' => Hash::make('12345678'),\n 'street' => '9 Mill Pond Rd',\n 'city' => 'Northwood',\n 'state' => 'NH',\n 'zip' => '03261',\n 'company_id' => $company->id,\n 'type' => 'admin'\n ]);\n\n // Add Challenge\n $challenge = Challenge::create([\n 'name' => 'Conquer the Cold 2018',\n 'slug' => 'conquer',\n 'start_date' => '2018-11-01',\n 'end_date' => '2018-12-31',\n 'type' => 'Individual',\n 'image_url' => '/images/conquer-the-cold-banner.png'\n ]);\n }", "title": "" }, { "docid": "62d26c53627928e22ea575cc46bf775a", "score": "0.7849954", "text": "public function run()\n {\n Category::create([\n 'name' => 'Belleza',\n 'status' => 'A'\n ]);\n\n SubCategory::create([\n 'category_id' => 1,\n 'name' => 'Shampoo'\n ]);\n\n SubCategory::create([\n 'category_id' => 1,\n 'name' => 'Acondicionador'\n ]);\n\n SubCategory::create([\n 'category_id' => 1,\n 'name' => 'Maquillaje'\n ]);\n\n // $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "b33aa01f2832813762ccbfb3d2d3532d", "score": "0.7846495", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n // \\App\\Models\\Category::factory(5)->create();\n $this->call(MenuCategoryTableSeeder::class);\n $this->call(AttributeTableSeeder::class);\n $this->call(CategoryTableSeeder::class);\n \\App\\Models\\Product::factory(50)->create();\n \\App\\Models\\AttributeProduct::factory(500)->create();\n \n // Circles\n $this->call(CircleTableSeeder::class);\n\n // Top Products\n $this->call(TopProductTableSeeder::class);\n\n // Random Products\n $this->call(RandomProductTableSeeder::class);\n }", "title": "" }, { "docid": "a07071a752d8cf92db253078ae570196", "score": "0.7844956", "text": "public function run()\n {\n $this->call(SuperuserSeeder::class);\n //$this->call(UserSeeder::class);\n\n Article::truncate();\n Category::truncate();\n User::truncate(); \n\n $basica = Category::factory()->create([ \n 'name' => 'Matemática Básica',\n 'slug' => 'matematica_basica',\n ]);\n $equacoes = Category::factory()->create([ \n 'name' => 'Equações',\n 'slug' => 'equacoes',\n ]);\n $funcoes = Category::factory()->create([ \n 'name' => 'Funções',\n 'slug' => 'funcoes',\n ]);\n\n $user = User::factory()->create([\n 'name' => 'Thiago Ryo',\n ]);\n\n Article::factory(10)->for($basica)->create([\n 'user_id' => $user->id,\n ]);\n\n Article::factory(7)->for($equacoes)->create([\n 'user_id' => $user->id,\n ]);\n Article::factory(15)->for($funcoes)->create([\n 'user_id' => $user->id,\n ]);\n }", "title": "" }, { "docid": "177d3ebe2b223afa4e9bd6a908d0f913", "score": "0.7839857", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //factory(App\\Article::class,5)->create();\n //factory(App\\Topic::class,20)->create();\n //factory(App\\Test::class,50)->create();\n //factory(App\\Question::class,60)->create();\n factory(App\\ArticleTest::class,5)->create();\n factory(App\\SubjectTest::class,1)->create();\n }", "title": "" }, { "docid": "a2a4fa12a5d7340c77994a01f5fd0004", "score": "0.7832346", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('cursos')->insert([\n 'cod_curso' => '123456',\n 'nome_curso' => 'Curso de pedagogia',\n 'instituicao_ensino' => 'Faculdade alguma coisa'\n ]);\n DB::table('alunos')->insert([\n 'nome_aluno' => '123456',\n 'curso' => 1,\n 'numero_maricula' => 'Faculdade alguma coisa',\n 'semestre' => 'Faculdade alguma coisa',\n 'status' => 'matriculado'\n ]);\n }", "title": "" }, { "docid": "b6032e82ff7748213ddc30ee53d1f11b", "score": "0.7830752", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('roles')->insert(\n [\n [\n 'title' => 'Директор',\n 'name' => 'Director',\n 'parent_id' => '0'\n ],\n [\n 'title' => 'Зам директор',\n 'name' => 'Deputy director',\n 'parent_id' => '1'\n ],\n [\n 'title' => 'Начальник',\n 'name' => 'Director',\n 'parent_id' => '2'\n ],\n [\n 'title' => 'ЗАм начальник',\n 'name' => 'Deputy сhief',\n 'parent_id' => '3'\n ],\n [\n 'title' => 'Работник',\n 'name' => 'Employee',\n 'parent_id' => '4'\n ]\n ]);\n\n\n $this->call(departmentsTableSeeder::class);\n $this->call(employeesTableSeeder::class);\n }", "title": "" }, { "docid": "b250412ac4bb97281cc75b73e99d5169", "score": "0.7827436", "text": "public function run()\n {\n factory(App\\User::class, 10)->create();\n factory(App\\Category::class, 5)->create();\n factory(App\\Question::class, 20)->create();\n factory(App\\Reply::class, 50)->create()->each(function ($reply) {\n $reply->favorite()->save(factory(App\\Favorite::class)->make());\n });\n // $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "f72b073f1562b517a5cbd8caadf6f8b1", "score": "0.78215635", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = \\Faker\\Factory::create();\n\n foreach (range(1, 50) as $index) {\n\n Category::create([\n 'title' => $faker->jobTitle,\n ]);\n }\n }", "title": "" }, { "docid": "2bfba5dc2d1c3f62eb529c4f407a8fcd", "score": "0.7818739", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker\\Factory::create();\n\n DB::table('articles')->insert([\n 'name' => $faker->title,\n 'description' => $faker->text,\n 'created_at' => new \\DateTime(),\n 'updated_at' => new \\DateTime(),\n ]);\n }", "title": "" }, { "docid": "7e80466dc8005ac35863dfc3e5c7c169", "score": "0.7817918", "text": "public function run()\n {\n User::create([\n 'name' => 'Administrator',\n 'email' => '[email protected]',\n 'password' => Hash::make('adminadmin'),\n ]);\n\n Genre::factory(5)->create();\n Classification::factory(5)->create();\n Actor::factory()->count(50)->create();\n Director::factory(20)->create();\n Movie::factory(30)->create()->each(function ($movie) {\n $movie->actors(['actorable_id' => rand(30, 50)])->attach($this->array(rand(1, 50)));\n });\n Serie::factory(10)->create();\n Season::factory(20)->create();\n Episode::factory(200)->create()->each(function ($episode) {\n $episode->actors(['actorable_id' => rand(15, 30)])->attach($this->array(rand(1, 50)));\n });\n }", "title": "" }, { "docid": "c621382a9007bb3f312489ab7da81f56", "score": "0.7814175", "text": "public function run()\n {\n // Uncomment the below to wipe the table clean before populating\n // DB::table('user_roles')->delete();\n\n $roles = [\n ['id' => 1, 'name' => 'Director'],\n ['id' => 2, 'name' => 'Chair'],\n ['id' => 3, 'name' => 'Secretary'],\n ['id' => 4, 'name' => 'Faculty'],\n ];\n\n // Uncomment the below to run the seeder\n DB::table('user_roles')->insert($roles);\n }", "title": "" }, { "docid": "41d5d9d0667abadecd972a5a32ed0a4b", "score": "0.7810804", "text": "public function run()\n {\n\n DB::table('authors')->delete();\n\n $gender = Array('Male', 'Female', 'Other');\n $faker = Faker::create();\n foreach (range(1, 100) as $index) {\n $author = new Author();\n $author->name = $faker->name;\n $author->gender = $gender[rand(0,2)];\n $author->dateOfBirth = $faker->dateTimeBetween($startDate = '-90 years', $endDate = '-25 years', $timezone = date_default_timezone_get())->format('Y-m-d');\n $author->shortBio = $faker->sentence(6, true);\n $author->country = $faker->country;\n $author->email = $faker->safeEmail;\n $author->twitter = $faker->userName;\n $author->website = 'http://www.'.$faker->domainName;\n $author->save();\n }\n\n }", "title": "" }, { "docid": "40a0e12ed745bd76bf6ddbc9fe97e1a8", "score": "0.78103507", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n // DB::table('roles')->insert([\n // 'name' => 'employee',\n // 'guard_name' => 'web',\n // ]);\n\n // DB::table('roles')->insert([\n // 'name' => 'admin',\n // 'guard_name' => 'web',\n // ]);\n\n // DB::table('units')->insert([\n // 'name' => 'kg',\n // ]);\n // DB::table('units')->insert([\n // 'name' => 'litre',\n // ]);\n // DB::table('units')->insert([\n // 'name' => 'dozen',\n // ]);\n }", "title": "" }, { "docid": "aa0eccb2055398458b2a6272fcb8936f", "score": "0.78012705", "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 Order::truncate();\n\n $faker = \\Faker\\Factory::create();\n $customers = \\App\\Models\\Customer::all()->pluck('id')->toArray();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 100; $i++) {\n $alphabet = 'abcdefghijklmnopqrstuvwxyz';\n $numbers = '0123456789';\n $value = '';\n for ($j = 0; $j < 3; $j++) {\n $value .= substr($alphabet, rand(0, strlen($alphabet) - 1), 1);\n }\n Order::create([\n 'customerId' => $faker->randomElement($customers),\n 'totalPrice' => $faker->randomFloat(2, 1, 5000),\n 'isPaid' => $faker->boolean($chanceOfGettingTrue = 50),\n 'extraInfo' => $faker->boolean($chanceOfGettingTrue = 50)\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "48fe7d1d0d33106e3241378b6668a775", "score": "0.7796966", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(User::class, 50)->create();\n factory(Post::class, 500)->create();\n factory(Category::class, 10)->create();\n factory(Tag::class, 150)->create();\n factory(Image::class, 1500)->create();\n factory(Video::class, 500)->create();\n factory(Comment::class, 1500)->create();\n }", "title": "" }, { "docid": "86dd297f311dc339eb33e3e6509e604e", "score": "0.77966315", "text": "public function run()\n {\n $this->seeds([\n Poliklinik::class => ['fasilitas/polikliniks.csv', 35],\n Ruangan::class => ['fasilitas/ruangans.csv', 15],\n Kamar::class => ['fasilitas/kamars.csv', 43],\n Ranjang::class => ['fasilitas/ranjang.csv', 187],\n ]);\n }", "title": "" }, { "docid": "368508f66336ac53d1be3d6743e70422", "score": "0.7792271", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //Desactivamos la revision de las llaves foraneas.\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n //trunco las tablas para poder meter datos nuevos\n articulos::truncate();\n clientes::truncate();\n impuestos::truncate();\n imp_art::truncate();\n empresa::truncate();\n\n $cantidadArticulos = 20;\n $cantidadClientes = 20;\n $cantidadImpuestos = 4;\n $cantidadImp_Arts = 10;\n $cantidadEmpresas = 10;\n\n factory(articulos::class, $cantidadArticulos)->create();\n factory(clientes::class, $cantidadClientes)->create();\n factory(impuestos::class, $cantidadImpuestos)->create();\n factory(imp_art::class, $cantidadImp_Arts)->create();\n factory(empresa::class, $cantidadEmpresas)->create();\n\n }", "title": "" }, { "docid": "0a5fb8cc194091e39e8322105883b61f", "score": "0.77910054", "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('jobs')->truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n $faker = \\Faker\\Factory::create();\n\n $ranks = Rank::all();\n $users = User::all();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 5; $i++) {\n Job::create([\n 'user_id' => $users[rand(0, $users->count() - 1)]->id,\n 'title' => $faker->sentence($nbWords = 2, $variableNbWords = true),\n 'description' => $faker->sentence($nbWords = 10, $variableNbWords = true),\n 'departure' => $faker->lexify('????'),\n 'arrival' => $faker->lexify('????'),\n 'category' => $faker->sentence,\n 'limitations' => $faker->sentence,\n 'required_rank_id' => $ranks[rand(0, $ranks->count() - 1)]->id\n ]);\n }\n }", "title": "" }, { "docid": "d82dd297f054671ec046bcf0b882a63f", "score": "0.7790729", "text": "public function run()\n {\n $this->call([\n AdminSeeder::class,\n // TrackSeeder::class,\n ]);\n\n \\App\\Models\\Track::factory(10)->create();\n \\App\\Models\\Location::factory(10)->create();\n \\App\\Models\\Event::factory(20)->create();\n }", "title": "" }, { "docid": "845dcb98a7e8e0d45a3cf018b23c6ecd", "score": "0.77882665", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(App\\Product::class, 100)->create()->each(function($products){\n $products->save();\n });\n \n factory(App\\Client::class, 100)->create()->each(function($clients){\n $clients->save();\n });\n \n factory(App\\Sale::class, 100)->create()->each(function($sales){\n $sales->save();\n });\n \n }", "title": "" }, { "docid": "de60f0a26beec0ef156f5bbeb41b9ee7", "score": "0.7785993", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n DB::table('users')->truncate();\n DB::table('password_resets')->truncate();\n DB::table('projects')->truncate();\n DB::table('payments')->truncate();\n DB::table('tags')->truncate();\n DB::table('taggables')->truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n \n $this->call(UsersTableSeeder::class);\n \n $tags = factory(\\App\\Models\\Tag::class, 10)->create();\n factory(App\\Models\\User::class, 10)->create()->each(function ($user) use ($tags) {\n $projects = factory(\\App\\Models\\Project::class, 5)->create(['user_id' => $user->id]);\n foreach ($projects as $project) {\n $project->tags()->attach($tags->random(1));\n factory(\\App\\Models\\Payment::class, random_int(10, 30))\n ->create(['project_id' => $project->id])->each(function (\\App\\Models\\Payment $payment) use ($tags) {\n $payment->tags()->attach($tags->random(1)); \n });\n }\n });\n }", "title": "" }, { "docid": "d807dce754ed136319cb37b9a9be6494", "score": "0.77856374", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(Localizacao::class, 5)->create();\n factory(Estado::class, 2)->create();\n factory(Tamanho::class, 4)->create();\n factory(Cacifo::class, 20)->create();\n factory(Cliente::class, 10)->create();\n factory(UserType::class, 2)->create();\n factory(User::class, 8)->create();\n factory(Encomenda::class, 25)->create();\n factory(LogCacifo::class, 20)->create();\n\n foreach (Encomenda::all() as $encomenda) {\n $user = User::all()->random();\n DB::table('encomenda_user')->insert(\n [\n 'user_id' => $user->id,\n 'encomenda_id' => $encomenda->id,\n 'user_type' => $user->tipo_id,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now()\n ]\n );\n }\n\n }", "title": "" }, { "docid": "4a8a5f2d0bf57a648aa039d994ba098c", "score": "0.7780426", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $spec = [\n [\n 'name'=>'Dokter Umum',\n 'title_start'=> 'dr.',\n \"title_end\"=>null,\n ],[\n 'name'=>\"Spesialis Kebidanan Kandungan\",\n 'title_start'=>\"dr.\",\n 'title_end'=>\"Sp.OG\",\n ],[\n \"name\"=>\"Spesialis Anak\",\n \"title_start\"=>\"dr.\",\n \"title_end\"=>\"Sp.A\",\n ],[\n \"name\"=>\"Spesialis penyakit mulut\",\n \"title_start\"=>\"drg.\",\n \"title_end\"=>\"Sp.PM\"\n ],[\n \"name\"=>\"Dokter Gigi\",\n \"title_start\"=>\"drg.\",\n \"title_end\"=>null,\n ]\n ];\n\n DB::table(\"specializations\")->insert($spec);\n\n \n factory(User::class, 10)->create([\n 'type'=>\"doctor\",\n ]);\n factory(User::class, 10)->create([\n 'type'=>\"user\",\n ]);\n factory(Message::class, 100)->create();\n }", "title": "" }, { "docid": "ee06eccc68d87dcb640a4d5639c88ab8", "score": "0.77800995", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n\t\t$tags = factory( \\App\\Tag :: class, 10 ) -> create();\n\t\t\n\t\t$articles = factory( \\App\\Article :: class, 20 ) -> create();\n\t\t\n\t\t$tags_id = $tags -> pluck( 'id' );\n\t\t\n\t\t$articles ->each( function( $article ) use( $tags_id ){\n\t\t\t$article -> tags() -> attach( $tags_id -> random( 3 ) );\n\t\t\tfactory( \\App\\Comment :: class, 3 ) -> create( [\n\t\t\t\t'article_id' => $article -> id\n\t\t\t] );\n\t\t\t\n\t\t\tfactory( \\App\\State :: class, 1 ) -> create( [\n\t\t\t\t'article_id' => $article -> id\n\t\t\t] );\n\t\t} );\n\t\t\n }", "title": "" }, { "docid": "4a49e16a546df16655fd9740de7ae5c5", "score": "0.77780515", "text": "public function run()\n {\n $faker = Faker\\Factory::create();\n\n DB::table('users')->insert([\n \t[\n \t\t'username' => 'johan',\n \t\t'email' => '[email protected]',\n \t\t'password' => bcrypt('wachtwoord1'),\n \t],\n \t[\n \t\t'username' => 'vamidi',\n \t\t'email' => '[email protected]',\n \t\t'password' => bcrypt('wachtwoord1'),\n \t]\n ]);\n\n DB::table('profiles')->insert([\n \t[\n \t\t'user_id' => 1,\n \t],\n \t[\n \t\t'user_id' => 2,\n \t]\n ]);\n\n DB::table('teams')->insert(\n \t[\n \t\t'name' => 'VaMiDi Games',\n \t\t'url_name' => 'vamidi-games',\n \t]\n );\n }", "title": "" }, { "docid": "b32c8e0e5988bd2cbc8f9b3c1069084f", "score": "0.7775103", "text": "public function run()\n {\n //這邊用到集合 pluck() 將全部User id取出並轉為陣列,如 [1,2,3,4,5]\n $user_ids = User::all()->pluck('id')->toArray();\n\n //同上\n $topic_id = Topic::all()->pluck('id')->toArray();\n\n //取Faker 實例化\n $faker = app(Faker\\Generator::class);\n\n //生成100筆假數據\n $posts = factory(Post::class)->times(100)\n ->make()->each(function ($post,$index) use ($user_ids,$topic_id,$faker)\n {\n //用User id隨機取一個並賦值\n $post->user_id = $faker->randomElement($user_ids);\n //用Topic id隨機取一個並賦值\n $post->topic_id = $faker->randomElement($topic_id);\n });\n //將數據轉為陣列在插入資料庫\n Post::insert($posts->toArray());\n }", "title": "" }, { "docid": "0ac3bd79ccafd183f64a83daa8e8b734", "score": "0.77742934", "text": "public function run()\n {\n //\n DB::table('users')->insert([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'level' => 'admin',\n 'password' => Hash::make('12345678'),\n ]);\n\n factory(App\\User::class, 9)->create([\n 'password' => Hash::make('12345678')\n ]);\n\n factory(App\\Author::class, 10)->create();\n\n factory(App\\Book::class, 10)->create();\n\n $author = App\\Author::all();\n\n App\\Book::all()->each(function ($book) use ($author) { \n $book->author()->attach(\n $author->random(rand(1, 3))->pluck('id')->toArray()\n ); \n });\n \n }", "title": "" }, { "docid": "8cce7ad451e41e0616427ac1279b46cd", "score": "0.77644897", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n// factory(\\App\\User::class, 50)->create();\n //students seeding\n $schoolsClasses = \\App\\SchoolClass::all();\n foreach ($schoolsClasses as $schoolsClass){\n $schoolsClass->student()->createMany(\n factory(\\App\\Student::class, 20)->make()->toArray()\n );\n }\n }", "title": "" }, { "docid": "120274b83b13efad13e4d0a22631a7e2", "score": "0.7763531", "text": "public function run()\n {\n\n $this->seedersPath = database_path('seeds').'/';\n $this->seed('MessagesTableSeeder');\n\n $this->seed('WishesTableSeeder');\n $this->seed('PresentsTableSeeder');\n\n $this->seed('InstitutionsTableSeeder');\n $this->seed('LocationsTableSeeder');\n $this->seed('OpeningHoursTableSeeder');\n\n $this->seed('FaqsTableSeeder');\n\n //$this->seed('PermissionRoleTableSeeder');\n }", "title": "" }, { "docid": "edb6c4e5c696e79c6cb87775bdf73c85", "score": "0.77605385", "text": "public function run()\n {\n factory(App\\Models\\User::class, 200)->create();\n $this->call(GenresTableSeeder::class);\n $this->call(BandsTableSeeder::class);\n factory(App\\Models\\Post::class, 1000)->create();\n $this->call(TagsTableSeeder::class);\n $this->call(PostTagTableSeeder::class);\n factory(App\\Models\\Comment::class, 5000)->create();\n $this->call(AdminSeeder::class);\n }", "title": "" }, { "docid": "a5eec395c42a1c641cc29056de013a2a", "score": "0.7760248", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n UserRole::truncate();\n BookList::truncate();\n BookEntry::truncate();\n\n $this->call([\n UserRoleSeeder::class,\n BookListSeeder::class,\n BookEntrySeeder::class,\n ]);\n\n User::insert([\n 'name' => 'super_admin',\n 'email' => '[email protected]',\n 'role_serial' => 1,\n 'password' => Hash::make('12345678'),\n ]);\n User::insert([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'role_serial' => 2,\n 'password' => Hash::make('12345678'),\n ]);\n User::insert([\n 'name' => 'management',\n 'email' => '[email protected]',\n 'role_serial' => 3,\n 'password' => Hash::make('12345678'),\n ]);\n User::insert([\n 'name' => 'student',\n 'email' => '[email protected]',\n 'role_serial' => 4,\n 'password' => Hash::make('12345678'),\n ]);\n }", "title": "" }, { "docid": "5c8214e2d3c221fbe38a112c0256f06f", "score": "0.7759768", "text": "public function run()\n {\n // $this->call('UsersTableSeeder');\n DB::table('users')->insert([\n 'name' => 'Admin',\n 'role' => 1,\n 'email' => '[email protected]',\n 'password' => '$2y$10$UT2JvBOse3.6uuElsmqDpOhvp8d5PkoRdmbIHDMwOJmr226GRrmKe',\n ]);\n\n DB::table('programs')->insert([\n ['name' => 'Ingeniería de sistemas'],\n ['name' => 'Ingeniería electrónica'],\n ['name' => 'Ingeniería industrial'],\n ['name' => 'Diseño gráfico'],\n ['name' => 'Psicología'],\n ['name' => 'Administración de empresas'],\n ['name' => 'Negocios internacionales'],\n ['name' => 'Criminalística'],\n ]);\n }", "title": "" }, { "docid": "2290f88bd069e9499c0321a79bda7083", "score": "0.7759102", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('filials')->insert([\n 'nome' => 'Filial 1',\n 'endereco' => 'Endereco, 1',\n 'bairro' => 'Bairro',\n 'cidade' => 'Cidade',\n 'uf' => 'ES',\n 'inscricao_estadual' => 'ISENTO',\n 'cnpj' => '00123456000178'\n ]);\n DB::table('users')->insert([\n 'name' => 'Vitor Braga',\n 'data_nascimento' => '1991-03-16',\n 'sexo' => 'M',\n 'cpf' => '12345678900',\n 'endereco' => 'Rua Luiz Murad, 2',\n 'bairro' => 'Vista da Serra',\n 'cidade' => 'Colatina',\n 'uf' => 'ES',\n 'cargo' => 'Desenvolvedor',\n 'salario' => '100.00',\n 'situacao' => '1',\n 'password' => bcrypt('123456'),\n 'id_filial' => '1'\n ]);\n }", "title": "" }, { "docid": "fa279d8f7a87d9a40806207839ca7e30", "score": "0.7750227", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n $faker = Faker::create();\n foreach ( range(1,10) as $item) {\n DB::table('fire_incidents')->insert([\n 'created_at' => $faker->dateTime,\n 'title'=> $faker->title(),\n 'first_name' => $faker->firstName,\n 'last_name'=> $faker->lastName,\n 'email'=>$faker->email,\n 'phone_number'=>$faker->phoneNumber,\n 'ip_address'=>$faker->ipv4,\n 'message'=>$faker->paragraph\n ]);\n }\n }", "title": "" }, { "docid": "dfa1829f132b8c48a9fa02a696b5951b", "score": "0.7737741", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(TokenPackageSeeder::class);\n\n factory(Video::class, 30)->create();\n $this->call(PurchaseSeeder::class);\n\n // factory(Comment::class, 50)->create();\n }", "title": "" }, { "docid": "81e5569fa61ad16b28597151ca8922ab", "score": "0.7731372", "text": "public function run()\n {\n $faker = Faker\\Factory::create('fr_FR');\n $user = App\\User::pluck('id')->toArray();\n $data = [];\n\n for ($i = 1; $i <= 100; $i++) {\n $title = $faker->sentence(rand(4, 10)); // astuce pour le slug\n array_push($data, [\n 'title' => $title,\n 'sub_title' => $faker->sentence(rand(10, 15)),\n 'slug' => Str::slug($title),\n 'body' => $faker->realText(4000),\n 'published_at' => $faker->dateTime(),\n 'user_id' => $faker->randomElement($user),\n ]);\n }\n DB::table('articles')->insert($data);\n }", "title": "" }, { "docid": "dbb7060bbc311a18cd207473bbe8e7f1", "score": "0.7728515", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(\\App\\User::class,1)->create([\n 'name' => 'teste',\n 'email' => '[email protected]',\n 'password' => bcrypt('12345')\n ]);\n factory(\\App\\Models\\SecaoTecnica::class,1)->create([\n 'sigla' => 'teste',\n 'descricao' => 'teste descrição'\n ]);\n }", "title": "" }, { "docid": "3d873be91ed6d1da3295d915f287cf94", "score": "0.77274096", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n //Seeding the database\n \\DB::table('authors')->insert([\n [\n 'name' => 'Diane Brody',\n 'occupation' => 'Software Architect, Freelancer',\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s')\n ],\n [\n 'name' => 'Andrew Quentin',\n 'occupation' => 'Cognitive Scientist',\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s')\n ]\n ]);\n\n \\DB::table('publications')->insert([\n [\n 'title' => 'AI Consciousness Level',\n 'excerpt' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit',\n 'type' => 'Book',\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s')\n ],\n [\n 'title' => 'Software Architecture for the experienced',\n 'excerpt' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit',\n 'type' => 'Report of a conference',\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s')\n ]\n ]);\n\n \\DB::table('publication_authors')->insert([\n [\n 'publication_id' => 1,\n 'author_id' => 2\n ],\n [\n 'publication_id' => 2,\n 'author_id' => 1\n ]\n ]);\n }", "title": "" }, { "docid": "0fdc3c6a7967d773048368acc1829445", "score": "0.7726644", "text": "public function run()\n {\n // TODO Seeder\n // TODO Run Seeder: php artisan migrate:fresh --seed\n // TODO Remove all tables and new create\n // TODO After run Seeder\n factory(User::class, 1)->create(['email' => '[email protected]']);\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 factory(Category::class, 10)->create();\n }", "title": "" }, { "docid": "67bd68cad6c93282acfd6bf31f674b0f", "score": "0.7723515", "text": "public function run()\n {\n $db = DB::table('addresses');\n\n $faker = Faker\\Factory::create();\n $cities_id = City::all()->pluck('city_id')->toArray();\n\n foreach (Post::all()->pluck('id')->toArray() as $post_id){\n $values ['post_id'] = $post_id;\n $values ['street'] = $faker->streetAddress;\n $values ['house'] = $faker->numberBetween(1, 300);\n $values ['city_id'] = array_rand(array_flip($cities_id),1);\n\n $db->insert($values);\n }\n }", "title": "" }, { "docid": "8f23bfa6e5d2337ed218b6aa9e74c8f2", "score": "0.77190584", "text": "public function run()\n {\n $users = factory(App\\User::class,10)->create();\n\n $categories = factory(App\\Category::class,10)->create();\n\n $users->each(function(App\\User $user) use ($users){\n \tfactory(App\\Job::class, 5)->create([\n \t\t'user_id' => $user->id,\n 'category_id' => random_int(1, 10),\n \t]);\n });\n\n $reviews = factory(App\\Review::class,30)->create();\n\n Model::unguard();\n\n $this->call('PermissionsTableSeeder');\n $this->call('RolesTableSeeder');\n $this->call('ConnectRelationshipsSeeder');\n //$this->call('UsersTableSeeder');\n\n Model::reguard();\n }", "title": "" }, { "docid": "2ecfbbe58300fc8debd0410b17f21e9d", "score": "0.771693", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n DB::table('users')->insert([\n 'name' => 'Demo',\n 'phone' => '0737116001',\n 'email' => '[email protected]',\n 'password' => Hash::make('demo'),\n ]);\n\n DB::table('roles')->insert([\n 'name' => 'admin',\n 'slug' => 'admin',\n ]);\n\n\n DB::table('roles')->insert([\n 'name' => 'user',\n 'slug' => 'user',\n ]);\n\n DB::table('roles')->insert([\n 'name' => 'manager',\n 'slug' => 'manager',\n ]);\n\n DB::table('roles_users')->insert([\n 'user_id' => 1,\n 'role_id' => 1,\n ]);\n }", "title": "" }, { "docid": "c8d45356aa6a26dbc0f8f55b3b96b143", "score": "0.7714273", "text": "public function run()\n {\n // prevent db error from key constraint when refresh seeder\n DB::statement('SET foreign_key_checks=0');\n DB::table('albums')->truncate();\n DB::statement('SET foreign_key_checks=1');\n\n $albums = [\n ['artist_id' => 1, 'name' => 'One Palitchoke', 'year_release' => 2005],\n ['artist_id' => 2, 'name' => 'Offering Love', 'year_release' => 2007],\n ['artist_id' => 3, 'name' => 'Ice Sarunyu', 'year_release' => 2006],\n ];\n\n foreach ( $albums as $album ) {\n DB::table('albums')->insert($album);\n }\n }", "title": "" }, { "docid": "603a2ad87e835d00866a742b9f5d2a52", "score": "0.77141565", "text": "public function run()\n {\n $users = User::factory()->count(10)->create();\n\n $categoriesNames = [\n 'Programación',\n 'Desarrollo Web',\n 'Desarrollo Movil',\n 'Inteligencia Artificial',\n ];\n $collection = collect($categoriesNames);\n $categories = $collection->map(function ($category, $key){\n return Category::factory()->create(['name' => $category]);\n });\n\n Post::factory()\n ->count(10)\n ->make()\n ->each(function($post) use ($users, $categories){\n $post->author_id = $users->random()->id;\n $post->category_id = $categories->random()->id;\n $post->save();\n });\n \n $user = User::factory()->create();\n $user->name = 'Jesús Ramírez';\n $user->email = '[email protected]';\n $user->password = Hash::make('jamon123');\n $user->save();\n }", "title": "" }, { "docid": "102a7ac2c5bf3d7bd06597a234035ae0", "score": "0.77117646", "text": "public function run()\n {\n \\App\\User::create(['name'=>\"asd\", 'email'=>\"[email protected]\", 'password'=>Hash::make(\"123456\")]);\n \n $directorio = \"database/seeds/json_seeds/\";\n $archivos = scandir($directorio);\n \n for($i = 2; $i < sizeof($archivos); $i++)\n {\n $nombre = explode(\".\", $archivos[$i])[1];\n \n $fullPath = \"App\\Models\\\\\" . $nombre;\n echo \"Seeding \". $i.\") \".$fullPath .\"...\\n\";\n $instance = (new $fullPath());\n \n $table = $instance->table;\n \n $json = File::get(\"database/seeds/json_seeds/\" . $archivos[$i]);\n \n DB::table($table)->delete();\n \n $data = json_decode($json, true);\n \n foreach ($data as $obj)\n {\n $instance::create($obj);\n }\n \n }\n \n \n }", "title": "" }, { "docid": "51006cd093566713d168ba0692107f19", "score": "0.7708964", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'denis',\n 'email' => '[email protected]',\n 'password' => bcrypt('123456789'),\n ]);\n \n DB::table('users')->insert([\n \t'name'=> 'admin',\n \t'email' => '[email protected]',\n \t'password' => bcrypt('cccccccc'),\n \n ]);\n\n DB::table('posts')->insert([\n 'id'=> 1,\n 'title'=>'Генное редактирование изменит мир быстрее, чем мы думаем',\n 'content'=>'https://hightech.fm/wp-content/uploads/2018/11/45807.jpg',\n 'description' => NULL,\n 'slug'=>'gennoe-redaktirovanie-izmenit-mir-bistree-chem-mi-dumaem_1',\n 'author'=> 1,\n ]);\n\n DB::table('posts')->insert([\n 'id'=> 2,\n 'title'=>'billboard',\n 'content'=>'https://i.kinja-img.com/gawker-media/image/upload/lufkpltdkvtxt9kzwn9u.jpg',\n 'description' => NULL,\n 'slug'=>'billboard_2',\n 'author'=> 1,\n ]);\n }", "title": "" }, { "docid": "ec2a852d7d4c7c86fb7a9c04f4e0dd7e", "score": "0.77069575", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(App\\Role::class)->create([\n 'name' => 'admin',\n 'description' => 'usuario con todos los privilegios'\n ]);\n\n factory(App\\Role::class)->create([\n 'name' => 'teacher',\n 'description' => 'profesores'\n ]);\n\n factory(App\\Role::class)->create([\n 'name' => 'student',\n 'description' => 'estudiantes'\n ]);\n\n factory(App\\User::class)->create([\n 'name' => 'Administrador',\n 'email' => '[email protected]',\n 'role_id' => \\App\\Role::ADMIN\n ]);\n\n factory(App\\User::class, 4)->create([\n 'role_id' => \\App\\Role::TEACHER\n ])->each(function ($teacher) {\n $module = $teacher->teach()->save(factory(App\\Module::class)->make());\n $module->students()->saveMany(factory(App\\User::class, 10)->make([\n 'role_id' => \\App\\Role::STUDENT\n ]));\n $module->resources()->save(factory(App\\Resource::class)->make(), ['evaluation' => 1]);\n $module->tasks()->save(factory(App\\Task::class)->make(), ['evaluation' => 1]);\n });\n\n\n }", "title": "" }, { "docid": "67228a7edb1e67f6bdd0b8d19bb2b59a", "score": "0.7705309", "text": "public function run()\n {\n Model::unguard();\n $faker = Faker::create();\n for ($i = 0; $i <= 100; $i++) {\n DB::table('posts')->insert([\n 'published' => 1,\n 'title' => $faker->sentence(),\n 'body' => $faker->text(500),\n ]);\n }\n Model::reguard();\n }", "title": "" }, { "docid": "51f53a0357babd8023bfb0bf05d79e4b", "score": "0.7705115", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n $quests = factory(\\App\\Models\\Quest::class, 10)->create();\n\n $quests->each(function (\\App\\Models\\Quest $quest) {\n $count = random_int(100, 500);\n factory(\\App\\Models\\Booking::class, $count)->create([\n 'quest_id' => $quest->id,\n ]);\n });\n }", "title": "" }, { "docid": "cb57daba0c53f155a9c942af3dc024bd", "score": "0.7703433", "text": "public function run()\n {\n // 指令::php artisan db:seed --class=day20180611_campaign_event_table_seeder\n // 第一次執行,執行前全部資料庫清空\n $now_date = date('Y-m-d h:i:s');\n // 角色\n DB::table('campaign_event')->truncate();\n DB::table('campaign_event')->insert([\n // system\n ['id' => '1', 'keyword' => 'reg', 'created_at' => $now_date, 'updated_at' => $now_date],\n ['id' => '2', 'keyword' => 'order', 'created_at' => $now_date, 'updated_at' => $now_date],\n ['id' => '3', 'keyword' => 'complete', 'created_at' => $now_date, 'updated_at' => $now_date],\n ]);\n }", "title": "" }, { "docid": "cf7fcb1fe5570ba6a475aaf00815d6f6", "score": "0.7701871", "text": "public function run()\n {\n\n //SEEDING MASTER DATA\n $this->call([\n BadgeSeeder::class,\n AchievementSeeder::class\n ]);\n\n //SEEDING FAKER DATA\n Lesson::factory()\n ->count(20)\n ->create();\n\n Comment::factory()->count(2)->create();\n\n }", "title": "" }, { "docid": "84e706cea7bd7dc14995a5ca30acd23f", "score": "0.7698958", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n // authorsテーブルにデータ登録を行う処理\n $this->call(AuthorsTableSeeder::class);\n\n // publishersテーブルに50件のレコードを作成する\n Publisher::factory(50)->create();\n\n // usersとuser_tokensのテーブルにレコードを追加\n $this->call(\n [\n UserSeeder::class\n ]\n );\n\n // ordersとorder_detailsのテーブルにレコードを追加\n $this->db->transaction(\n function () {\n $this->orders();\n $this->orderDetails();\n }\n );\n\n $now = CarbonImmutable::now();\n // customersテーブルにレコードを追加\n EloquentCustomer::create(\n [\n 'id' => 1,\n 'name' => 'name1',\n 'created_at' => $now,\n 'updated_at' => $now,\n ]\n );\n // customer_pointsテーブルにレコードを追加\n EloquentCustomerPoint::create(\n [\n 'customer_id' => 1,\n 'point' => 100,\n 'created_at' => $now,\n 'updated_at' => $now,\n ]\n );\n }", "title": "" }, { "docid": "09fe947dea0cf1a8047d0c9bb4bf806d", "score": "0.76984954", "text": "public function run()\n {\n // gọi tới file UserTableSeeder nếu bạn muốn chạy users seed\n // $this->call(UsersTableSeeder::class);\n // gọi tới file PostsTableSeeder nếu bạn muốn chạy posts seed\n $this->call(PostsTableSeeder::class); \n // gọi tới file CategoriesTableSeeder nếu bạn muốn chạy categories seed\n $this->call(CategoriesTableSeeder::class);\n $this->call(PostTagsTableSeeder::class);\n $this->call(TagsTableSeeder::class);\n $this->call(ProjectTableSeeder::class);\n }", "title": "" }, { "docid": "980af6960bda0fc5e03df83c2b9e41cc", "score": "0.7698196", "text": "public function run()\n {\n // $categories = factory(App\\Category::class, 10)->create();\n\n $categories = ['Appetizers', 'Beverages', 'Breakfast', 'Detox Water', 'Fresh Juice', 'Main Course', 'Pasta', 'Pizza', 'Salad', 'Sandwiches', 'Soups', 'Special Desserts', 'Hot Drinks', 'Mocktails', 'Shakes', 'Water and Softdrinks'];\n foreach( $categories as $category )\n { \n Category::create([\n 'name' => $category\n ]);\n }\n\n $categories = Category::all();\n\n foreach( $categories as $category )\n {\n factory(App\\Menu::class, 10)->create([\n 'category_id' => $category->id\n ]);\n }\n \t\n // $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "5c2d13aa24ff40662a0ce876f3c44809", "score": "0.7694809", "text": "public function run()\n {\n //\n $user_ids = ['1','2','3'];\n $faker = app(Faker\\Generator::class);\n\n $articles = factory(Article::class)->times(100)->make()->each(function ($articles) use ($faker, $user_ids) {\n $articles->user_id = $faker->randomElement($user_ids);\n });\n\n Article::insert($articles->toArray());\n }", "title": "" }, { "docid": "1c93783c2ea23b1bcf0fcecb87e597a1", "score": "0.7693655", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('planeta')->insert([\n\n 'name'=>'Jupiter',\n 'peso'=>'1321'\n \n ]);\n\n DB::table('planeta')->insert([\n\n 'name'=>'Saturno',\n 'peso'=>'6546'\n \n ]);\n\n DB::table('planeta')->insert([\n\n 'name'=>'Urano',\n 'peso'=>'564564'\n \n ]);\n\n DB::table('planeta')->insert([\n\n 'name'=>'netuno',\n 'peso'=>'5213'\n \n ]);\n }", "title": "" }, { "docid": "cdec075ee5f589f68df7d8e373f800d0", "score": "0.76934415", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n for ($i=0; $i<100; $i++) {\n $faker = Faker\\Factory::create();\n \\App\\Models\\Agencies::create([\n 'name'=>$faker->name\n ]);\n }\n\n for ($i=0; $i<100000; $i++){\n $faker = Faker\\Factory::create();\n \\App\\Models\\User::create([\n 'first_name'=>$faker->firstName,\n 'last_name'=>$faker->lastName,\n 'email'=>$faker->email,\n 'agencies_id'=>$faker->numberBetween(1,10)\n ]);\n }\n\n }", "title": "" }, { "docid": "6a416e8eba24d6a06a2c1821432bb069", "score": "0.76887816", "text": "public function run()\n {\n $faker=Faker::create();\n foreach(range(1,10) as $value)\n {\n DB::table('students')->insert([\n \"name\"=>$faker->name(),\n \"email\"=>$faker->unique->safeEmail(),\n \"password\"=>Hash::make($faker->password),\n \"mobile\"=>$faker->phoneNumber,\n \"gender\"=>$faker->randomElement(['Male','Female'])\n ]);\n }\n }", "title": "" }, { "docid": "d40aad4597dc498684ff1a2297b648e4", "score": "0.7687799", "text": "public function run()\n {\n //factory('App\\Store', 2)->create();\n // for individual use \"php artisan db:seed --class=StoreTableSeeder\"\n Schema::disableForeignKeyConstraints();\n \n DB::table('store')->truncate();\n\n App\\Store::create([\n 'manager_staff_id' => 1,\n 'address_id' => 1,\n ]);\n\n App\\Store::create([\n 'manager_staff_id' => 2,\n 'address_id' => 2,\n ]);\n\n Schema::enableForeignKeyConstraints();\n \n }", "title": "" }, { "docid": "d932a3a60db7e3e1b5c8ff7359b4a2ba", "score": "0.768728", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n /*$faker = Faker::create();\n \tfor($i = 0; $i < 10; $i++) {\n App\\Lists::create([\n 'item_name' => $faker->name,\n 'store_name' => $faker->name,\n 'total_item' => $faker->randomDigitNotNull,\n 'item_price' => $faker->numberBetween($min = 100, $max = 900),\n 'total_price' =>$faker->numberBetween($min = 1000, $max = 9000)\n ]);\n }*/\n }", "title": "" }, { "docid": "98c57ab9dc9353ad077141992a0dd327", "score": "0.7687021", "text": "public function run()\n {\n Schema::disableForeignKeyConstraints();\n $this->call(GenreSeeder::class);\n $this->call(AuthorSeeder::class);\n $this->call(BookSeeder::class);\n Schema::enableForeignKeyConstraints();\n \n // create an admin user with email [email protected] and password secret\n User::truncate();\n User::create(array('name' => 'Administrator',\n 'email' => '[email protected]', \n 'password' => bcrypt('secret'),\n 'role' => 1)); \n }", "title": "" }, { "docid": "6b052b127c0955be874bff998cbf539d", "score": "0.76856595", "text": "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n //$this->call(RequisitosSeeder::class);\n //factory('App\\User', 3)->create();\n //factory('App\\Situation', 3)->create();\n factory('App\\Sector', 3)->create();\n factory('App\\Role', 3)->create();\n factory('App\\Privilege', 3)->create();\n factory('App\\Evidence', 3)->create();\n factory('App\\Requirement', 3)->create();\n factory('App\\Company', 3)->create();\n }", "title": "" }, { "docid": "6f4cd475360e7bf0d5a1fe2752972955", "score": "0.76846963", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(RoleSeeder::class);\n $this->call(KategoriSeeder::class);\n $this->call(UsersTableSeeder::class);\n $roles = \\App\\Models\\Role::all();\n \\App\\Models\\User::All()->each(function ($user) use ($roles){\n // $user->roles()->saveMany($roles);\n $user->roles()->attach(\\App\\Models\\Role::where('name', 'admin')->first());\n });\n // \\App\\Models\\User::all()->each(function ($user) use ($roles) { \n // $user->roles()->attach(\n // $roles->random(rand(1, 2))->pluck('id')->toArray()\n // ); \n // });\n }", "title": "" }, { "docid": "4b0c5746a1ac85fa81771a8a8a20868c", "score": "0.7678735", "text": "public function run()\n {\n //Tạo 1 dữ liệu trên data base\n // DB::table('todos')->insert([\n // 'name' => Str::random(10),\n // 'description' => Str::random(10),\n // 'completed' => true,\n // ]);\n\n //Tạo nhiều\n Todo::factory(5)\n // ->count(10)\n // ->hasPosts(1)\n ->create();\n //Sau khi tạo xong thì qua databaseSeeder.php để gọi\n }", "title": "" }, { "docid": "c6a289f8899b7ae9ecc9fac9bc29c5a6", "score": "0.7678028", "text": "public function run()\n {\n Model::unguard();\n\n // $this->call(\"OthersTableSeeder\");\n factory(Welfare::class, 100)->create();\n factory(JobTag::class, 100)->create();\n factory(Welfare::class, 100)->create();\n\n factory(Company::class, 10)->create()->each(function (Company $company) {\n $company->images()->createMany(factory(CompanyImage::class, random_int(0, 3))->make()->toArray());\n $company->jobs()->createMany(factory(Job::class, random_int(0, 20))->make()->toArray());\n });\n }", "title": "" }, { "docid": "e4b68debc10ebf9c9ba7ccc13ad96554", "score": "0.7677989", "text": "public function run()\n {\n Schema::disableForeignKeyConstraints();\n Student::truncate();\n Schema::enableForeignKeyConstraints();\n\n // $faker = Faker\\Factory::create();\n\n // for ($i=0; $i < 100; $i++) { \n // $st = new Student([\n // \"first_name\" => $faker->firstName(),\n // \"last_name\" => $faker->lastName(),\n // \"email\" => $faker->unique()->safeEmail()\n // ]);\n // $st->save();\n // }\n\n factory(Student::class, 25)->create();\n }", "title": "" }, { "docid": "232280f5b66a069fae8a2b568db508e7", "score": "0.7671213", "text": "public function run()\n {\n factory(App\\Models\\User::class, 15)->create();\n factory(App\\Models\\Movie::class, 30)->create();\n factory(App\\Models\\Address::class, 30)->create();\n factory(App\\Models\\Contact::class, 30)->create();\n $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "2e8c9674b5b47271246bd3c5d33867fc", "score": "0.7670721", "text": "public function run()\n {\n $this->call(RolesTableSeeder::class);\n\n $faker = Factory::create();\n $users = array_merge(\n factory(User::class, 9)->create()->toArray(),\n factory(User::class, 1)->create(['role_id' => Role::where('name', 'admin')->first()->id])->toArray()\n );\n $categories = factory(Category::class, 6)->create()->toArray();\n\n foreach ($users as $user) {\n /** @var Post $posts */\n $posts = factory(Post::class, rand(1, 5))->create(['user_id' => $user['id']]);\n\n foreach ($posts as $post) {\n $post->categories()->attach([\n $faker->randomElements($categories)[0]['id'],\n $faker->randomElements($categories)[0]['id'],\n ]);\n\n factory(Comment::class, rand(1, 5))->create([\n 'post_id' => $post['id'],\n 'user_id' => $user['id'],\n ]);\n }\n }\n }", "title": "" }, { "docid": "4bea3dcfb1c11c2f563ef5c570939031", "score": "0.76692706", "text": "public function run()\n {\n $this->call(UsersSeeder::class);\n $this->call(MeasuresSeeder::class);\n $this->call(ItemsSeeder::class);\n \\App\\Models\\Buyer::factory(200)->create();\n \\App\\Models\\Storage::factory(3000)->create();\n \\App\\Models\\Purchase::factory(2000)->create();\n\n }", "title": "" }, { "docid": "b8a2d239e166712dd77165697867a5de", "score": "0.76674277", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n// Task::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 < 20; $i++) {\n Task::create([\n 'name' => $faker->name,\n 'status' => $faker->randomElement($array = array ('to-do','doing','done')),\n 'description' => $faker->paragraph,\n 'start' => $faker->dateTime($min = 'now', $timezone = null) ,\n 'end' => $faker->dateTime($min = 'now', $timezone = null) ,\n 'assignee' => $faker->randomElement(User::pluck('id')->toArray()),\n 'assigner' => $faker->randomElement(User::pluck('id')->toArray()),\n ]);\n }\n }", "title": "" }, { "docid": "ff42adb6774e0bbeff44a5168ad219fd", "score": "0.7666566", "text": "public function run()\n {\n $this->call([\n PermissionsTableSeeder::class,\n ]);\n\n \\App\\Models\\User::factory(10)->create();\n\n \\App\\Models\\Blog::factory(100)->create();\n }", "title": "" }, { "docid": "720860b2dc67da65a78f539890510b34", "score": "0.76662236", "text": "public function run()\n {\n\n \t$faker = Faker::create('id_ID');\n foreach(range(0,5) as $i){\n \t\tDB::table('sarana')->insert([\n 'judul'=>$faker->bothify('Taman ###'),\n 'user_id'=>1,\n \t'body'=>$faker->realText($maxNbChars = 50, $indexSize = 2),\n \t'gambar'=>'gambar.jpg',\n \t\t]);}\n // factory(App\\Sarana::class,10)->create();\n }", "title": "" }, { "docid": "475d4973b6c6199504d485d769b2a6fc", "score": "0.7665698", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n Admins::insert(['email'=>'[email protected]','password'=>Hash::make('Admin2019')]); //First Admin\n Uidata::insert(['data'=>'News tap']);\n Uidata::insert(['data'=>'']);\n Uidata::insert(['data'=>'']);\n Acyear::insert(['year'=>'2019/2020','semister'=>'1']);\n Syssta::insert(['state'=>0,'academic_year'=>1]);\n }", "title": "" }, { "docid": "3956831ae87733f8f0e38ec5700c0dbd", "score": "0.76615685", "text": "public function run()\n {\n // Initialize Faker\n $faker = Faker::create('id_ID');\n for ($i = 0; $i < 10; $i++) {\n DB::table('authors')->insert([\n 'first_name' => $faker->firstName,\n 'middle_name' => $faker->firstNameMale,\n 'last_name' => $faker->lastName,\n 'created_at' => $faker->date()\n ]);\n }\n }", "title": "" }, { "docid": "7b230b72d30c25948db35185929e3563", "score": "0.76597947", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(User::class , 20)->create();\n factory(Rank::class,100)->create();\n factory(Answer::class,100)->create();\n\n }", "title": "" }, { "docid": "6d654d34dff257df1302ac38c4a46fab", "score": "0.76586807", "text": "public function run()\n {\n Model::unguard();\n\n $this->truncateMultiple([\n 'cache',\n 'failed_jobs',\n 'ledgers',\n 'jobs',\n 'sessions',\n // 'banner_per_pages',\n // 'news',\n // 'galeries',\n // 'careers',\n // 'faqs',\n // 'categories',\n // 'products',\n // 'about_contents',\n // 'company_contents',\n // 'web_settings'\n ]);\n\n // $news = factory(News::class, 5)->create();\n // $galeries= factory(Galery::class, 6)->create();\n\n // $faqs = factory(Faq::class, 8)->create();\n\n // $categoryIndustrial = factory(Category::class, 4)\n // ->create()\n // ->each(function ($category)\n // {\n // $category->products()->createMany(\n // factory(Product::class, 4)->make()->toArray()\n // );\n // });\n\n // $this->call(CareerTableSeeder::class);\n // $this->call(AboutContentSeeder::class);\n // $this->call(CompanyContentSeeder::class);\n // $this->call(WebSettingSeeder::class);\n\n // $this->call(AuthTableSeeder::class);\n\n // $this->call(MainCategorySeeder::class);\n\n $this->call(BannerPerPageSeeder::class);\n\n Model::reguard();\n }", "title": "" }, { "docid": "c5a6368cf4078a0a4d8b652f1ce43194", "score": "0.7657722", "text": "public function run()\n {\n // Create roles\n $this->call(RoleTableSeeder::class);\n // Create example users\n $this->call(UserTableSeeder::class);\n // Create example city\n $this->call(CitiesTableSeeder::class);\n // Create example restaurant type\n $this->call(RestaurantsTypesSeeder::class);\n // Create example restaurant\n $this->call(RestaurantsSeeder::class);\n }", "title": "" }, { "docid": "2b1ccfcd74ea29f817442dd58fc9459e", "score": "0.7657721", "text": "public function run()\n {\n //\n //DB::table('users')->truncate();\n $fakerBrazil = Faker::create('pt_BR');\n $faker = Faker::create();\n\n\n foreach (range(1, 10) as $index) {\n Notes::create(array(\n 'title' => $faker->randomElement($array = array('Atividade-1', 'Atividade-2', 'Atividade-3', 'Atividade-4')),\n 'user_name' => $faker->randomElement(User::lists('username')->toArray()),\n 'body' => $faker->sentence($nbWords = 15, $variableNbWords = true),\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n\n ));\n }\n }", "title": "" }, { "docid": "33c35c9330268efff78a329cb9fde5f6", "score": "0.76569766", "text": "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'ricky',\n 'username' => 'admin',\n 'userlevel' => 'admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('123'),\n 'created_by' => '1',\n 'created_at' => Carbon::now()\n ]);\n DB::table('users')->insert([\n 'name' => 'budi',\n 'username' => 'operator',\n 'userlevel' => 'pegawai',\n 'email' => '[email protected]',\n 'password' => bcrypt('123'),\n 'created_by' => '1',\n 'created_at' => Carbon::now()\n ]);\n\n // $this->call(UsersTableSeeder::class);\n // $this->call(CategoriesSeeder::class);\n // $this->call(ProductsSeeder::class);\n }", "title": "" }, { "docid": "ea44d8a6a359fde35d7e5c7e98a844c7", "score": "0.7656455", "text": "public function run()\n {\n $faker = Faker::create('es_ES');\n foreach(range(1,100) as $index){\n \tDB::table('personas')->insert([\n \t\t'nombre' => $faker->name,\n \t\t'apellido' => $faker->lastname,\n \t\t'edad' => $faker->numberBetween(1,100),\n \t\t'dni' => $faker->randomNumber(8),\n \t]);\n }\n }", "title": "" }, { "docid": "b69765baa7a12d13300d2c6d1d088950", "score": "0.7654586", "text": "public function run()\n {\n DB::table('users')->insert(\n [\n 'username' => 'admin',\n 'email' => '[email protected]',\n 'email_verified_at' => now(),\n 'password' => Hash::make('123456789'),\n 'link' => 'kontakt',\n 'created_at' => now(),\n 'updated_at' => now(),\n ]\n );\n\n DB::table('roles')->insert(['title' => 'admin']);\n DB::table('roles')->insert(['title' => 'user']);\n DB::table('role_user')->insert(['user_id' => 1, 'role_id' => 1]);\n\n factory(App\\User::class, 20)->create()->each(\n function ($user) {\n $user->posts()->save(factory(App\\Post::class)->make());\n $user->hasMany(App\\Reply::class, 'owner_id')->save(factory(App\\Reply::class)->make(['model_id' => rand(1, 9)]));\n $user->trips()->save(factory(App\\Trip::class)->make());\n }\n );\n }", "title": "" }, { "docid": "d8aa9d1a66e018ca7c4a33e3c222390c", "score": "0.76545465", "text": "public function run()\n {\n $this->labFacultiesSeeder();\n $this->labStudentSeeder();\n $this->labTagsTableSeeder();\n $this->labPositionsTableSeeder();\n $this->labSkillsTableSeeder();\n }", "title": "" }, { "docid": "38c1567f61695033bc9c5cd019c0e92f", "score": "0.7653314", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n // factory(App\\Patient::class, 3)->create()->each(function ($patient){$patient->appointments()->createMany(factory(App\\Appointment::class, 3)->make()->toArray()); $patient->});\n // factory(App\\Appointment::class, 3)->create()->each(function ($appointment){$appointment->patient()->save(factory(App\\Patient::class)->make());$appointment->nurse()->save(factory(App\\Nurse::class)->make());$appointment->physician()->save(factory(App\\Physician::class)->make());});\n\n $this->call(RoomTableSeeder::class);\n $this->call(MedicationTableSeeder::class);\n $this->call(DepartmentTableSeeder::class);\n $this->call(ProcedureTableSeeder::class);\n $this->call(DiseaseSeeder::class);\n $this->call(RoleTableSeeder::class);\n $this->call(UserSeederTable::class);\n }", "title": "" }, { "docid": "f22715a3aaed51889e03d8e0eff9e1bc", "score": "0.7648523", "text": "public function run()\n {\n \n //disable foreign key check for this connection before running seeders\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n \n DB::table('users')->truncate();\n\n DB::table('users')->insert([\n [\n \t'name'=>'user 1',\n \t'email'=>'[email protected]',\n \t'password'=>bcrypt('password'),\n \t'created_at'=>\\Carbon\\Carbon::now()\n ],\n [\n \t'name'=>'user 2',\n \t'email'=>'[email protected]',\n \t'password'=>bcrypt('password'),\n \t'created_at'=>\\Carbon\\Carbon::now()\n ],\n ]);\n\n //enable foreign key check for this connection after running seeders\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n \n }", "title": "" }, { "docid": "b0a54c2c4ac3b52e29c9b1fec31b5271", "score": "0.76484305", "text": "public function run()\n {\n\n // php artisan migrate:refresh --seed\n factory(App\\User::class, 10)->create()->each(function($user){\n $user->profile()->save(factory(App\\Profile::class)->make());\n });\n\n factory(App\\Website::class, 10)->create();\n factory(App\\Article::class, 100)->create()->each(function($article){\n $flag = random_int(0, 1);\n $ids = range(1, 10);\n\n shuffle($ids);\n\n if ($flag) {\n $sliced = array_slice($ids, 0, 2);\n $article->website()->attach($sliced);\n } else {\n $article->website()->attach(array_rand($ids, 1));\n }\n \n });\n\n }", "title": "" }, { "docid": "271eb5b13582683b989e89620a409611", "score": "0.76447785", "text": "public function run()\n {\n DB::table('shops')->delete();\n $faker = Faker::create();\n foreach (range(1,10) as $index) {\n DB::table('shops')->insert([\n 'name' => $faker->firstName(),\n 'street' => $faker->streetName(),\n 'city' => $faker->city(),\n 'phoneNumber' => $faker->phoneNumber(),\n 'email' => $faker->email(),\n ]);\n }\n }", "title": "" } ]
9caf751552534bac38f74f726ac4db39
setters sets quantity in database and object, internal use only
[ { "docid": "a4919417754dc18a1c70fcbced83f0d7", "score": "0.70307624", "text": "function setQuantity($newQuantity)\n {\n $this->quantity = $newQuantity;\n }", "title": "" } ]
[ { "docid": "ddfc8ac13769707dd3947fa4298a55b2", "score": "0.7565268", "text": "public function setQuantity($quantity){\n $this->quantity = $quantity;\n }", "title": "" }, { "docid": "aea943876ee54410968d84689e8ef277", "score": "0.74507254", "text": "public function setQuantity($quantity);", "title": "" }, { "docid": "aea943876ee54410968d84689e8ef277", "score": "0.74507254", "text": "public function setQuantity($quantity);", "title": "" }, { "docid": "aea943876ee54410968d84689e8ef277", "score": "0.74507254", "text": "public function setQuantity($quantity);", "title": "" }, { "docid": "aea943876ee54410968d84689e8ef277", "score": "0.74507254", "text": "public function setQuantity($quantity);", "title": "" }, { "docid": "cf792a2c3383af4d7894290322f62eaf", "score": "0.7304263", "text": "public function setQty($qty);", "title": "" }, { "docid": "cf792a2c3383af4d7894290322f62eaf", "score": "0.7304263", "text": "public function setQty($qty);", "title": "" }, { "docid": "4d2fa1850f20080ffc612dc172fab40a", "score": "0.7029056", "text": "public function setQuantity(int $quantity) : void;", "title": "" }, { "docid": "b737972db9aea3c566898e4f2ba0c745", "score": "0.67837805", "text": "public function quantityStored();", "title": "" }, { "docid": "7776b701f36952eacca611ed6fd4116d", "score": "0.67425305", "text": "public function setQuoteProductQuantity($quoteProductQuantity){\n $this->quoteProductQuantity = $quoteProductQuantity;\n}", "title": "" }, { "docid": "93780f088369c987d409d55a601ca4c9", "score": "0.6640382", "text": "public function setQuantity($quantity)\n {\n $this->quantity = $quantity;\n }", "title": "" }, { "docid": "c00e3d86cdf8127f322da8982a94b083", "score": "0.6596466", "text": "public function changeQuantity($quantity);", "title": "" }, { "docid": "fb4792d9c066c652d3fdfc254dca4d36", "score": "0.65856534", "text": "public function set_quantity( $quantity ) {\n\t\t\t$this->set_prop( 'quantity', $quantity );\n\t\t}", "title": "" }, { "docid": "b0216654af036a35ff41c99d55b5afab", "score": "0.6582402", "text": "public function setQuantity($quantity)\r\n\t{\r\n\t\t$this->quantity = $quantity;\r\n\t}", "title": "" }, { "docid": "d6b46fdd2d76e520f2340cd1b330b5f2", "score": "0.64928263", "text": "public function getQuantity();", "title": "" }, { "docid": "d6b46fdd2d76e520f2340cd1b330b5f2", "score": "0.64928263", "text": "public function getQuantity();", "title": "" }, { "docid": "d6b46fdd2d76e520f2340cd1b330b5f2", "score": "0.64928263", "text": "public function getQuantity();", "title": "" }, { "docid": "d6b46fdd2d76e520f2340cd1b330b5f2", "score": "0.64928263", "text": "public function getQuantity();", "title": "" }, { "docid": "d6b46fdd2d76e520f2340cd1b330b5f2", "score": "0.64928263", "text": "public function getQuantity();", "title": "" }, { "docid": "b5731468cc48c7e772778f02cabcaf74", "score": "0.6482666", "text": "public function getQuantity() : int;", "title": "" }, { "docid": "9229dc7c6d37d6e4b8dd73b63e9ee87e", "score": "0.6472973", "text": "public function setQuantity($quantity) {\n\t\t$this->quantity = $quantity;\n\t}", "title": "" }, { "docid": "8c4383550dbcd57ab350d99559b9571a", "score": "0.64458746", "text": "public function setQuantity($value)\n\t{\n\t\treturn $this->set('Quantity', $value);\n\t}", "title": "" }, { "docid": "ee3f60ce5c344f1ebf8d62041643dd02", "score": "0.64282185", "text": "public function setQuantity($quantity)\n {\n $this->setData('quantity', $quantity);\n }", "title": "" }, { "docid": "76309aa2878b0f9410f9aefa5573adfe", "score": "0.6419228", "text": "public function getQty(): int;", "title": "" }, { "docid": "d43d9bd10978f45623c7c5b4bb529e15", "score": "0.64046264", "text": "public function getQuoteProductQuantity(){\n return $this->quoteProductQuantity;\n}", "title": "" }, { "docid": "a3f9cb1ed5a7da46a549983b28b44586", "score": "0.63921934", "text": "public function setQuantity(int $quantity)\n {\n $this->quantity = $quantity;\n }", "title": "" }, { "docid": "a3f9cb1ed5a7da46a549983b28b44586", "score": "0.63921934", "text": "public function setQuantity(int $quantity)\n {\n $this->quantity = $quantity;\n }", "title": "" }, { "docid": "970c8069c091cb84043397cd82c30712", "score": "0.6319276", "text": "public function setTotalQty($qty);", "title": "" }, { "docid": "0faeea81fd4d7faad0cf294570356b77", "score": "0.628651", "text": "public function getQty();", "title": "" }, { "docid": "0faeea81fd4d7faad0cf294570356b77", "score": "0.628651", "text": "public function getQty();", "title": "" }, { "docid": "e19cec644a83fe16df3d19c867cca431", "score": "0.627667", "text": "public function updateQuantity($key, $value);", "title": "" }, { "docid": "24e611218d16b9cd704c5a95e051ad71", "score": "0.6242184", "text": "public function setQuantity($value)\n {\n $this->_fields['Quantity']['FieldValue'] = $value;\n return $this;\n }", "title": "" }, { "docid": "677abb759d18961c439d88544f17c07e", "score": "0.617089", "text": "public function getQuantity()\n {\n return $this->quantity;\n }", "title": "" }, { "docid": "6f34f6760927b6fd1c4bb65d84e0f440", "score": "0.61065525", "text": "public function increaseQuantity()\n {\n //TODO $quantity must be increased by one.\n // Bonus: $quantity must not become more than whatever is Product::$availableQuantity\n }", "title": "" }, { "docid": "9e19177eb5c3c207d7d32b1de3c479fb", "score": "0.60779905", "text": "public function setQuantity($num)\n {\n $this->_param['quantity'] = (int)$num;\n return $this;\n }", "title": "" }, { "docid": "5605c6d14597183e3b30e7bb9269456b", "score": "0.6059102", "text": "public function getQuantity()\r\n {\r\n return $this->quantity;\r\n }", "title": "" }, { "docid": "999ccfc64cc121c46f1205f1c332c7d7", "score": "0.6024518", "text": "public function setQuantite($nValue){\n\t\t//security on null guy !!!\n\t\tif($nValue == null)\n\t\t\treturn false;\n\t\t//security on type guy !!!\n\t\tif(getType($nValue) == 'integer'){\n\t\t\t $this->members[\"nQuantite\"] = $nValue;\n\t\t\t//Happy end\n\t\t\treturn true;\n\t\t}\n\t\t//Don't fool me next Time !!!\n\t\treturn false;\n\t}", "title": "" }, { "docid": "309c6ae0ad24bfecf16c5449b6bead80", "score": "0.6022741", "text": "function setShopItemsQuantityImport($setValue = 0)\n{\n\tif ($setValue == 0) {\n\t\t$data['QuantityImport'] = 0;\n\t} else {\n\t\t$data['QuantityImport'] = $setValue;\n\t}\n\t$result = SQLUpdate('shop_items', $data, 0, 'shop', __FILE__, __LINE__);\n\treturn $result;\n}", "title": "" }, { "docid": "66e233e20adeadb0e0ccdef784efc989", "score": "0.60184145", "text": "public function getItemsQty();", "title": "" }, { "docid": "2815a801d0efc9a3bd2846662eb01b15", "score": "0.601529", "text": "public function __construct($quantity)\n\t{\n\t\t$this->quantity = $quantity;\n\t}", "title": "" }, { "docid": "8b21719f6889619bc42afccb773a40d1", "score": "0.5991012", "text": "public function testGetQuantity(){\n $quantity = $this->createMock(Quantity::class);\n $this->ingredient->setQuantity($quantity);\n $this->assertEquals($this->ingredient->getQuantity(), $quantity);\n }", "title": "" }, { "docid": "a055ff047bf816b140c432c0edec8b57", "score": "0.59708357", "text": "public function setlocalquantity() {\n $this->load->model('tool/store_sync');\n \n $model = $this->request->get['model'];\n $quantity = $this->request->get['quantity'];\n\n $result = $this->model_tool_store_sync->setlocalquantity($model, $quantity);\n\n $this->response->setOutput($result);\n }", "title": "" }, { "docid": "823117bcabc3ec8b4827231bb1d62a63", "score": "0.5964029", "text": "public function testSetQuantite() {\n\n $obj = new MouvementsStock();\n\n $obj->setQuantite(10.092018);\n $this->assertEquals(10.092018, $obj->getQuantite());\n }", "title": "" }, { "docid": "92890470888b28d9c7fbb8f9f77c299d", "score": "0.5960338", "text": "function setTempQuantity($newQuantity)\n {\n $this->tempQuantity = $newQuantity;\n }", "title": "" }, { "docid": "16de43cbc36c333e64741c8d352f22f4", "score": "0.5938766", "text": "public function setQuantity($value)\n {\n return $this->set(self::QUANTITY, $value);\n }", "title": "" }, { "docid": "a52ff91d801cd84b835eb55c35b5659e", "score": "0.59143734", "text": "public function getQuantity()\n {\n return $this->quantity;\n }", "title": "" }, { "docid": "a52ff91d801cd84b835eb55c35b5659e", "score": "0.59143734", "text": "public function getQuantity()\n {\n return $this->quantity;\n }", "title": "" }, { "docid": "a52ff91d801cd84b835eb55c35b5659e", "score": "0.59143734", "text": "public function getQuantity()\n {\n return $this->quantity;\n }", "title": "" }, { "docid": "a52ff91d801cd84b835eb55c35b5659e", "score": "0.59143734", "text": "public function getQuantity()\n {\n return $this->quantity;\n }", "title": "" }, { "docid": "a52ff91d801cd84b835eb55c35b5659e", "score": "0.59143734", "text": "public function getQuantity()\n {\n return $this->quantity;\n }", "title": "" }, { "docid": "a52ff91d801cd84b835eb55c35b5659e", "score": "0.59143734", "text": "public function getQuantity()\n {\n return $this->quantity;\n }", "title": "" }, { "docid": "a52ff91d801cd84b835eb55c35b5659e", "score": "0.59143734", "text": "public function getQuantity()\n {\n return $this->quantity;\n }", "title": "" }, { "docid": "a52ff91d801cd84b835eb55c35b5659e", "score": "0.59143734", "text": "public function getQuantity()\n {\n return $this->quantity;\n }", "title": "" }, { "docid": "ea9b299304ae8b7833285b3699bfe281", "score": "0.585703", "text": "public function setItemsQty($itemQty);", "title": "" }, { "docid": "88281ad678f37c0adc39e27c135086f7", "score": "0.5852597", "text": "public function getQuantity()\r\n\t{\r\n\t\treturn $this->quantity;\r\n\t}", "title": "" }, { "docid": "380dfffd725b9b92a75761104688c00f", "score": "0.58332044", "text": "public function setQuantity(Quantity $collection)\n {\n $this->values['Quantity'] = $collection;\n return $this;\n }", "title": "" }, { "docid": "b23366826ddd328218a82626d81bcf05", "score": "0.58018523", "text": "public function setQuantity($var)\n {\n GPBUtil::checkInt32($var);\n $this->quantity = $var;\n\n return $this;\n }", "title": "" }, { "docid": "c11a1714f07e06ae36200f41401e749a", "score": "0.5775163", "text": "public function getQuantity() {\n return $this->quantity;\n }", "title": "" }, { "docid": "c11a1714f07e06ae36200f41401e749a", "score": "0.5775163", "text": "public function getQuantity() {\n return $this->quantity;\n }", "title": "" }, { "docid": "8cb7715458342e2d61124d8ec248f7f3", "score": "0.5770428", "text": "public function updateQuantity() {\n $query = \"UPDATE {$this->table_name} SET Quantity=:Quantity WHERE Id=:Id\";\n\n // prepare query\n $stmt = $this->conn->prepare($query);\n \n // sanitize\n $this->Id=htmlspecialchars(strip_tags($this->Id));\n $this->Quantity=htmlspecialchars(strip_tags($this->Quantity));\n $this->Quantity = intval($this->Quantity) < 0 ? 0 : $this->Quantity;\n \n // bind values\n $stmt->bindParam(\":Id\", $this->Id);\n $stmt->bindParam(\":Quantity\", $this->Quantity);\n \n // execute query\n return $stmt->execute() ? true : false; \n }", "title": "" }, { "docid": "e7522a82c121bbba0d5b63ab77ad1ecf", "score": "0.5751682", "text": "public function setQuantity($quantity) {\n $this->quantity = $quantity;\n return $this;\n }", "title": "" }, { "docid": "e6ee5c477fef569bff39131497daf637", "score": "0.57384676", "text": "function updateQuantity($newQuantity) {\n //setup the connection\n $connection = connectionFactory::getConnection();\n\n //update trade balances in database\n $connection->query(\"UPDATE `$this->symbol\".$this->side.\"s` SET `Quantity`=\" .$newQuantity. \" WHERE `ID`=\" .$this->ID);\n\n $this->setQuantity($newQuantity);\n }", "title": "" }, { "docid": "95e80465387da6216754d3c4895fdda5", "score": "0.5732785", "text": "public function setQuantity($quantity)\r\n {\r\n $this->quantity = $quantity;\r\n\r\n return $this;\r\n }", "title": "" }, { "docid": "d428ec68fc6cfa7c964692d9d99cb031", "score": "0.57260394", "text": "public function setQuantity($quantity)\n {\n $this->quantity = $quantity;\n return $this;\n }", "title": "" }, { "docid": "d428ec68fc6cfa7c964692d9d99cb031", "score": "0.57260394", "text": "public function setQuantity($quantity)\n {\n $this->quantity = $quantity;\n return $this;\n }", "title": "" }, { "docid": "d0ab6fd610448c72a6013f4852d66ce5", "score": "0.5717195", "text": "public function setQuantity($quantity) {\n if ($this->nid && $this->code) {\n db_update('uc_product_stock')\n ->fields(array('stock' => $quantity))\n ->condition('nid', $this->nid)\n ->condition('sku', $this->code)\n ->execute();\n\n return TRUE;\n }\n }", "title": "" }, { "docid": "67b102497887638974cf31109dfa8d2b", "score": "0.5698412", "text": "public function getQuantity() {\n\t\treturn $this->quantity;\n\t}", "title": "" }, { "docid": "41ea23d6864982591008e0e8e5c4e41b", "score": "0.56955934", "text": "public function setProductQuantity($quantity)\n {\n $this -> productQuantity = $quantity;\n }", "title": "" }, { "docid": "70dde4d2d8a6195372a02f634b28c937", "score": "0.5673192", "text": "public function testSetType() {\n\n $obj = new MouvementsStock();\n\n $obj->setType(\"type\");\n $this->assertEquals(\"type\", $obj->getType());\n }", "title": "" }, { "docid": "c832a10a18108b9c79ca12473e5f3951", "score": "0.56724477", "text": "public function change_quantity() {\n\t\t$new_quantity = $this->request->post['quantity_value'];\n\t\t$product_id = $this->request->post['product_id'];\n\n\t\t// Get cart array, order array\n\t\t$cart = $_SESSION['xcart'];\n\t\t$order = $_SESSION['order'];\n\n\t\t// Calculate and format new item total\n\t\t$item_total = $new_quantity * $cart[$product_id]['price'];\n\t\t$item_total = number_format($item_total, 2, '.', '');\n\n\t\t// Store new quantity and item total\n\t\t$cart[$product_id]['quantity'] = $new_quantity;\n\t\t$cart[$product_id]['total'] = $item_total;\n\n\t\t// Calculate new subtotal\n\t\t$subtotal = $this->subtotal($cart);\t\t\n\n\t\t// Store new subtotal\n\t\t$order['subtotal'] = $subtotal;\n\n\t\t// Update cart array, order array\n\t\t$_SESSION['xcart'] = $cart;\n\t\t$_SESSION['order'] = $order;\n\n\t\t// Set response array\n\t\t$response = array(\n\t\t\t\"product_id\" => $product_id,\n\t\t\t\"quantity_value\"=> $new_quantity,\n\t\t\t\"item_total\"=> $item_total,\n\t\t\t\"subtotal\" => $subtotal\n\t\t);\n\n\t\t// Send data back to page\n\t\techo json_encode($response);\n\t}", "title": "" }, { "docid": "de4352e10e7f486d485c809e8f15c9f0", "score": "0.5668469", "text": "public function getQuantity()\n\t{\n\t\treturn $this->get('Quantity');\n\t}", "title": "" }, { "docid": "f96562eaa6fc57cd866566736d656511", "score": "0.56600255", "text": "public function testSet()\n {\n $this->object->set(0, 0);\n }", "title": "" }, { "docid": "6e85c5324d985573b91b0ac44106fdc5", "score": "0.56566", "text": "public function setProductId($productId){\n $this->productId = $productId;\n}", "title": "" }, { "docid": "5f7f2bffe93f2dc2a2e92ade44f961a4", "score": "0.5655506", "text": "function changeQuantity($con, $id){\r\n //$id = $_GET['id'];\r\n $sql = \"SELECT quantity FROM product WHERE id = '$id'\";\r\n $result = $con->query($sql);\r\n if ($result) {\r\n $row=mysqli_fetch_array($result);\r\n $view = $row['quantity'];\r\n }\r\n $view--;\r\n $sql = \"UPDATE product SET quantity = $view WHERE id = '$id'\";\r\n if ($con->query($sql)) {\r\n \r\n }\r\n}", "title": "" }, { "docid": "5000388627151b67e40fa148d81476c9", "score": "0.5644043", "text": "public function getQuantity()\n {\n return $this->getData('quantity');\n }", "title": "" }, { "docid": "64d0e111fef024f190aae549596534b9", "score": "0.5643938", "text": "function addCopies($qty)\n {\n $this->qty = $qty;\n }", "title": "" }, { "docid": "13b31d8c8d0fbb9a8727105aaeabffa1", "score": "0.56270075", "text": "public function quantity(): string\n {\n return \"1\";\n }", "title": "" }, { "docid": "d42777dd31b0ce2b50d214518577f913", "score": "0.5625587", "text": "public function syncItems()\n {\n $total = 0;\n $this->load('items.inventory.product');\n\n foreach ($this->items as $item) {\n $total += $item->quantity * $item->product->base_price;\n }\n\n $this->item_total = $total;\n $this->item_count = $this->items()->sum('quantity') ?: 0;\n\n $this->save();\n }", "title": "" }, { "docid": "55d94cdf9e8cfca9500eae466ca68cc7", "score": "0.5612463", "text": "public function getQty()\n {\n return $this->qty;\n }", "title": "" }, { "docid": "55d94cdf9e8cfca9500eae466ca68cc7", "score": "0.5612463", "text": "public function getQty()\n {\n return $this->qty;\n }", "title": "" }, { "docid": "37070e42930869201ad6fbffce71616a", "score": "0.55981386", "text": "public function updateTotals()\n {\n $em = $this->getEntityManager();\n foreach($em->createQuery('SELECT i from '.$this->getEntityName().' i')->getResult() as $entity)\n {\n $entity->setAmounts();\n $em->persist($entity);\n }\n $em->flush();\n return $this;\n }", "title": "" }, { "docid": "7e182120c8daa612ce57c9dad2553e01", "score": "0.55965346", "text": "public function getTotalQty();", "title": "" }, { "docid": "873cc0c0ca1e41bc33960e2d023a914e", "score": "0.55866015", "text": "public function update_product_qty($product_id,$quantity){\n $sql = 'SELECT * FROM product WHERE product_id =:product_id';\n $connMgr = new ConnectionManager(); \n $conn = $connMgr->getConnection();\n\n $stmt = $conn->prepare($sql);\n $stmt->setFetchMode(PDO::FETCH_ASSOC);\n $stmt->bindParam(':product_id', $product_id, PDO::PARAM_STR);\n $stmt->execute();\n while($row = $stmt->fetch(PDO::FETCH_ASSOC)) {\n //return $row['quantity'];\n $current_quantity = $row['quantity'];\n\n }\n $current_quantity = intval($current_quantity);\n $quantity = intval($quantity);\n if (($current_quantity + $quantity) < 0) {\n #Not enough quantity\n return false;\n } \n else {\n $quantity = strval($current_quantity + $quantity);\n \n $sql2 = \"UPDATE product SET quantity =:quantity WHERE product_id =:product_id\";\n $connMgr2 = new ConnectionManager(); \n $conn2 = $connMgr2->getConnection();\n $stmt2 = $conn2->prepare($sql2);\n $stmt2->bindParam(':quantity', $quantity, PDO::PARAM_STR);\n $stmt2->bindParam(':product_id', $product_id, PDO::PARAM_STR);\n return $stmt2->execute(); \n \n }\n\n }", "title": "" }, { "docid": "4b3a9caf9623256395332040b4e95d49", "score": "0.55720586", "text": "public function addQuantity($key, $value);", "title": "" }, { "docid": "9ba2f8081d9b33d44ffd1c958289e1bc", "score": "0.55646145", "text": "protected function _addQtyItemsData()\n {\n $select = $this->getConnection()->select()->from(\n ['item' => $this->getTable('magento_giftregistry_item')],\n [\n 'entity_id',\n 'qty' => new \\Zend_Db_Expr('SUM(item.qty)'),\n 'qty_fulfilled' => new \\Zend_Db_Expr('SUM(item.qty_fulfilled)'),\n 'qty_remaining' => new \\Zend_Db_Expr('SUM(item.qty - item.qty_fulfilled)')\n ]\n )->group(\n 'entity_id'\n );\n\n $this->getSelect()->joinLeft(\n ['items' => new \\Zend_Db_Expr(sprintf('(%s)', $select))],\n 'main_table.entity_id = items.entity_id',\n ['qty', 'qty_fulfilled', 'qty_remaining']\n );\n\n return $this;\n }", "title": "" }, { "docid": "0ab15715fcb8c153b6a7e3b3cc909cde", "score": "0.5558094", "text": "function restoreItems($product_id, $quantity)\n{\n $db = Database::connect();\n\n $query = \"SELECT *FROM products WHERE product_id = $product_id\";\n $datos = $db->query($query);\n\n while ($product = $datos->fetch_object()) {\n\n $detail_quantity = $quantity;\n $stock = $product->quantity;\n\n $recovery = $stock + $detail_quantity;\n\n\n $query = \"UPDATE products SET quantity = $recovery WHERE product_id = $product_id\";\n $db->query($query);\n }\n\n return true;\n}", "title": "" }, { "docid": "fa3d5e7f1e50cb4a92ed6033f89db91d", "score": "0.5544867", "text": "public function incrementarUm(){\n //dividir valor do produto pela quantidade antes de adicionar +1 a quantidade\n $divisãoVQ = intval($this->produto->valor_produto) / intval($this->produto->quantidade);\n\n //adicionando +1 a quantidade\n $quantidadeAtualizado = $this->produto->quantidade + 1;\n $idProdutos = $this->produto->id;\n\n $totalCalculado = $quantidadeAtualizado * $divisãoVQ;\n\n $query = '\n update tb_produtos set quantidade = :atualizado where id = :id;\n update tb_produtos set valor_produto = :totalCalculado where id = :id;\n ';\n\n $stmt = $this->conexao->prepare($query);\n $stmt->bindValue(':atualizado', $quantidadeAtualizado);\n $stmt->bindValue(':totalCalculado', $totalCalculado);\n $stmt->bindValue(':id', $idProdutos);\n $stmt->execute();\n }", "title": "" }, { "docid": "ba71ce6eb1d87e4b85d254c00eb297fc", "score": "0.5543361", "text": "protected function setQualifyItemCount()\r\n\t{\r\n\t\t$cnt = 0;\r\n\t\t//Haven't used this\r\n\t\tif($this->_oneToOne){\t\t\t\r\n\t\t\tif(isset($this->_promoGroupId))\r\n\t\t\t{\r\n\t\t\t\tforeach ($this->_items as $item)\r\n\t\t\t\t{\r\n\t\t\t\t\tif($this->checkGroupbyExceptionType($item['product_id'])){\r\n\t\t\t\t\t\tif(!in_array($item['product_id'], $this->getProductInsertCollection())){\r\n\t\t\t\t\t\t\t$cnt = $cnt + $item['qty'];\r\n\t\t\t\t\t\t}\t\t\t\t\r\n\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\r\n\t\tif($cnt == 0)\r\n\t\t{\r\n\t\t\t$cnt = 1;\t\r\n\t\t}\r\n\t\t\r\n\t\treturn $cnt;\r\n\t}", "title": "" }, { "docid": "1b349d01f6560c2c8c31f338d3687d31", "score": "0.5537712", "text": "public function updatestock($commande_achat)\n{\n foreach ($commande_achat->achat_lignes as $a) {\n$a->article->available_qnt =$a->article->available_qnt + $a->qnt_cmd ;\n$a->article->prix_achat =$a->prix_unitaire;\n$a->article->save();\n}\n}", "title": "" }, { "docid": "75a844e965da5db652c0697aa094ac73", "score": "0.5529932", "text": "function addProductQuantity(){\n\n $data=$_POST;\n $data1['productId']=(string)$data['productId'];\n $data1['unitId']=(string)$data['unitId'];\n $data1['quantity']=$data['quantity'];\n\t\t\t$data1['triggerType'] = 1;\n \n $url = APILink . 'child/product/quantity'; \n $response = json_decode($this->callapi->CallAPI('PATCH', $url, $data1), true);\n echo json_encode(array(\"flag\"=>1));\n \n }", "title": "" }, { "docid": "045d10a88034e26afa3195603d9f265f", "score": "0.55298626", "text": "public function updateQuantity($quantity)\n\t{\n\t\t$quantity = max(0, $quantity - 1);\n\n\t\t$addonName = $this->braintree_plan . '-quantity';\n\n\t\t$options = ['remove' => [$addonName]];\n\n\t\tif ($quantity > 0) {\n\t\t\t$options = $this->quantity > 1\n\t\t\t\t? ['update' => [['existingId' => $addonName, 'quantity' => $quantity]]]\n\t\t\t\t: ['add' => [['inheritedFromId' => $addonName, 'quantity' => $quantity]]];\n\t\t}\n\n\t\tBraintreeSubscription::update($this->braintree_id, ['addOns' => $options]);\n\n\t\t$this->quantity = $quantity + 1;\n\n\t\t$this->save();\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "9319a405ff6a1fc24c79b3f440eb177a", "score": "0.5511185", "text": "public function get_stock_qty(){return $this->mod_qty;}", "title": "" }, { "docid": "b3c614bad395c31600fa6e545c218c27", "score": "0.5510291", "text": "public function canAdjustQuantity();", "title": "" }, { "docid": "64a3076a0da1fc3505fbdce3c67ea2b6", "score": "0.55027914", "text": "public function setItemQuantity($id, $quantity) {\r\n if (isset($this->items[$id])) {\r\n if ($quantity <= 0) {\r\n $this->removeItem($id);\r\n } else {\r\n $this->items[$id]->quantity = intval($quantity);\r\n $this->saveBasket();\r\n }\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "8af87ea0a8748d0c82863c10df6ef528", "score": "0.548751", "text": "function editItem($id, $q){\r\n\t\tif($q < 1) {\r\n\t\t\t$this->delItem($id);\r\n\t\t} else {\r\n\t\t\t$this->items[$id]['quantity'] = $q;\r\n\t\t\t$this->_updateTotal();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "62566845f568bb2f921a7fa9079e01e0", "score": "0.54798275", "text": "public function setQuantity( $quantity )\n\t{\n\t\tif( $quantity < 1 || $quantity > 2147483647 ) {\n\t\t\tthrow new \\Aimeos\\MShop\\Order\\Exception( sprintf( 'Quantity must be a positive integer and must not exceed %1$d', 2147483647 ) );\n\t\t}\n\n\t\tif( (int) $quantity !== $this->getQuantity() )\n\t\t{\n\t\t\t$this->values['order.base.product.quantity'] = (int) $quantity;\n\t\t\t$this->setModified();\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "d8e3a4c87f4ab3ccd2c640d79b80ada3", "score": "0.54728025", "text": "public function getQty() {\n return $this->qty;\n }", "title": "" }, { "docid": "d8e3a4c87f4ab3ccd2c640d79b80ada3", "score": "0.54728025", "text": "public function getQty() {\n return $this->qty;\n }", "title": "" }, { "docid": "ee72943f25289f8a6de80e20fe8c768d", "score": "0.54704595", "text": "public function store()\n {\n // armazena a venda\n parent::store();\n // percorre os itens da venda\n foreach ($this->itens as $item)\n {\n $item->id_venda = $this->id;\n // armazena o item\n $item->store();\n }\n }", "title": "" }, { "docid": "57f739629295ed2d5d0e2783b434728b", "score": "0.54694873", "text": "function update()\n {\n $_db = getMysqli();\n $_sql = \"UPDATE Objects SET PinkieID=?, Quantity=?, StockNumber=?, Description=?, BC=?, AccountNumber=?, UnitPrice=? WHERE ObjectID=?\";\n $_stmt = $_db->prepare((string)$_sql);\n\n $_stmt->bind_param('iissssdi', $this->i_PinkieID, $this->i_Quantity, $this->s_StockNumber, $this->s_Description, $this->s_BC, $this->s_AccountNumber, $this->d_UnitPrice, $this->i_ObjectID);\n $_stmt->execute();\n\n if ($_stmt->errno)\n {\n onError(\"PurchaseObject::update()\", $_stmt->error);\n }\n\n $_stmt->close();\n // Close up the database connection.\n $_db->close();\n }", "title": "" } ]
2b7ee34120adeea503b170ca97d0c82f
initialize the database connection
[ { "docid": "d803fc6781a5670f97f002b8f5ddaa1e", "score": "0.0", "text": "protected function execute($arguments = array(), $options = array())\n {\n $databaseManager = new sfDatabaseManager($this->configuration);\n $connection = $databaseManager->getDatabase($options['connection'])->getConnection();\n\n // get active sites\n $activeSites = sfConfig::get('app_site_active_sites', array());\n \n if (empty($activeSites))\n {\n // Get default site\n $defn = sfConfig::get('app_site_definition');\n $activeSites = array(sfConfig::get('app_site_identifier') => $defn['name']);\n }\n \n // get current sites\n $currentSites = SiteTable::getInstance()->findAll();\n \n if (0 < $currentSites->count())\n {\n foreach ($currentSites as $site)\n {\n if (isset($activeSites[$site->site])) unset($activeSites[$site->site]);\n }\n }\n \n // Add new ones\n if (!empty($activeSites))\n {\n foreach ($activeSites as $id => $name)\n {\n $this->logSection('site', sprintf('Adding new site \"%s\" with identifier: %s', $name, $id));\n $site = new Site();\n $site->setSite($id);\n $site->setName($name);\n $site->save();\n }\n }\n else $this->logSection('info', 'No new sites to add');\n }", "title": "" } ]
[ { "docid": "0b1211cb4e1ff2d1d27f8ce793a8d1d8", "score": "0.82039744", "text": "public static function initialiseDB(){}", "title": "" }, { "docid": "77e2a81f16b435d95ea887b57fb3799d", "score": "0.7979149", "text": "public function init()\n {\n parent::init();\n $this->db = Instance::ensure($this->db, Connection::className());\n }", "title": "" }, { "docid": "1e8c656d44f0b83c84d1499d66065c73", "score": "0.79257905", "text": "protected function initDatabase()\n {\n }", "title": "" }, { "docid": "b41af217e41dee767f36ced372a542dc", "score": "0.78467923", "text": "private function initialize() {\n\t\t$this->db_host = VCDConfig::getDatabaseHost();\n\t\t$this->db_catalog = VCDConfig::getDatabaseName();\n\t\t$this->db_username = VCDConfig::getDatabaseUser();\n\t\t$this->db_password = VCDConfig::getDatabasePassword();\n\t\t$this->db_type = VCDConfig::getDatabaseType();\n\t}", "title": "" }, { "docid": "ccbfd30bb61a6ca8a31ccd118f5b815c", "score": "0.7841004", "text": "private function __construct()\n {\n $this->initDatabaseConfig();\n $this->connect();\n }", "title": "" }, { "docid": "d7084ddc35e7a4de8607660bb8eb89f5", "score": "0.78388566", "text": "function dbInit()\n {\n if( $this->IsConnected == false )\n {\n $this->Database = new eZDB( \"site.ini\", \"site\" );\n $this->IsConnected = true;\n }\n }", "title": "" }, { "docid": "0bff249b4218272dd441794bc1b2aa80", "score": "0.78042436", "text": "public function __construct() {\r\n $this->connection = $this->initDB();\r\n }", "title": "" }, { "docid": "912bfdaf369f65a9b1ad705390907717", "score": "0.7766159", "text": "private function initDatabase() {\n $this->database = @new mysqli(\n self::LOCATION,\n self::USERNAME,\n self::PASSWORD,\n self::DATABASE\n );\n if ($this->checkDatabaseConn() == FALSE) die(htmlspecialchars_decode(self::ERRMSG_CONN));\n }", "title": "" }, { "docid": "6e7d946e965eac31170324fbe60e966f", "score": "0.76951474", "text": "static public function init_db()\n\t{\n\t\trequire_once(\"system/libraries/rb.php\");\n\t\t\n\t\t$connection_string = 'mysql:dbname='.DB_NAME.';host='.DB_HOST;\n\t\t\n\t\tR::setup($connection_string, DB_USER, DB_PASSWORD);\n\t\tR::debug(true);\n\t}", "title": "" }, { "docid": "78c69bcf42747280e07ed2cb48fc82ec", "score": "0.7615544", "text": "public function initConnection() {\n\t\t\t$dbName = $this->dbName;\n\t\t\t$connectionArray = array();\n\t\t\tif($this->dbHost) {\n\t\t\t\t$connectionArray[] = \"host=\" . $this->dbHost;\n\t\t\t}\n\t\t\t\n\t\t\tif($this->dbName) {\n\t\t\t\t$connectionArray[] = \"dbname=\" . $dbName;\n\t\t\t}\n\t\t\t\n\t\t\tif($this->dbUser) {\n\t\t\t\t$connectionArray[] = \"user=\" . $this->dbUser;\n\t\t\t}\n\t\t\t\n\t\t\tif($this->dbPassword) {\n\t\t\t\t$connectionArray[] = \"password=\" . $this->dbPassword;\n\t\t\t}\n\t\t\t\n\t\t\t$connectionString = implode(\" \",$connectionArray);\n\t\t\t$this->connection = pg_connect($connectionString) or die($this->generateError(ERROR_CONNECT));\n\t\t}", "title": "" }, { "docid": "05417f01c0c4d1861e4b5e6969097113", "score": "0.76129293", "text": "protected function _initDb(){\n // DATABASE ADAPTER - Setup the database adapter\n $environment_config = $this->getApplication()->getOptions();\n $db = $environment_config['database'];\n $dsn = $db['type'] . '://' . $db['username'] . ':' . $db['password'] . '@' . $db['host'] . '/' . $db['dbname'];\n\t\t\n \ttry{\n \t$manager = Doctrine_Manager::connection($dsn);\n\t\t\t//to enable DQL callbacks (used by softdelete and other behaviors)\n\t\t\t$manager->setAttribute(Doctrine::ATTR_USE_DQL_CALLBACKS, true);\n } catch( Exception $e){\n \techo $e;\n }\n }", "title": "" }, { "docid": "9514e1b59e78036412b0b66c3a883fa4", "score": "0.7543868", "text": "public function initConnection();", "title": "" }, { "docid": "66e99e4c72b8f4a58d0579c1da005aae", "score": "0.75342214", "text": "function initialize()\n\t{\n global $typo_db_host, $typo_db_username, $typo_db_password, $typo_db; \n \n // create db conection\n $this->db = mysql_connect( $typo_db_host\n , $typo_db_username\n , $typo_db_password\n )\n or die( 'Could not connect to database' );\n // select database\n mysql_select_db( $typo_db )\n or die( 'Could not select database' );\n\t\t\n\t}", "title": "" }, { "docid": "adcdf69feb8fdcdf556c4dc0d0eea397", "score": "0.75185496", "text": "public static function connect()\n {\n if (!empty(self::$db)) {\n return;\n }\n self::$db = DB::getInstance();\n }", "title": "" }, { "docid": "9c9b39c3f7e1cc1689b6c6d8ba5104d7", "score": "0.7494521", "text": "public function initialize()\n {\n if (isset(static::$readConnectionService) && !empty(static::$readConnectionService)) {\n $this->setReadConnectionService(static::$readConnectionService);\n }\n\n if (isset(static::$writeConnectionService) && !empty(static::$writeConnectionService)) {\n $this->setWriteConnectionService(static::$writeConnectionService);\n }\n\n $this->_db = $this->di->getShared('db');\n\n if (isset($this->di->getConfig()['database']['prefix'])) {\n $this->tablePrefix = $this->di->getConfig()['database']['prefix'];\n }\n }", "title": "" }, { "docid": "94a75110998939c728294960055be067", "score": "0.74828774", "text": "public function initialize()\n {\n $this->setSchema(\"smsgw_engine_db\");\n }", "title": "" }, { "docid": "8753051d5102cb184ec5ba6441a0e742", "score": "0.7476181", "text": "public function __construct() {\n @$this->initDatabase();\n }", "title": "" }, { "docid": "7d412f5a97df453843b1557e723f28a3", "score": "0.7462227", "text": "private function _db() {\n\n \\R::setup(\n 'mysql:host=' . $this->_getConfig('dbHost') . ';dbname=' .\n $this->_getConfig('dbName'),\n $this->_getConfig('dbUser'),\n $this->_getConfig('dbPassword')\n );\n\n }", "title": "" }, { "docid": "a3b02835d63294c627303b60a7fa1be2", "score": "0.7462118", "text": "public function __construct()\n {\n $this->_db = $this->dbConnect();\n\n }", "title": "" }, { "docid": "d4d20bf699cc2f3be61f702b99cfc169", "score": "0.7452809", "text": "static public function initialiseDB();", "title": "" }, { "docid": "0f99eb91e3933864315d776d53c86b70", "score": "0.7440822", "text": "public static function init()\n {\n\n $conf = Conf::get('db');\n\n $conf['activ'] = isset($conf['activ'])?$conf['activ']:'default';\n\n if(!isset($conf['connection'][$conf['activ']]))\n {\n if(DEBUG)\n Debug::console( 'requested non existing database connection '.$conf['activ'].'!', $conf );\n\n throw new LibDb_Exception\n (\n I18n::s\n (\n 'requested non existing database connection '.$conf['activ'].'!',\n 'wbf.error.db_connection_not_exists'\n )\n );\n }\n\n\n self::connectDb( $conf['activ'] , $conf['connection'][$conf['activ']] , true );\n\n }", "title": "" }, { "docid": "c4b696cd08af236b7f8bc04d14d14320", "score": "0.7440045", "text": "public static function init()\n {\n $db = new Database();\n if (false === $db->connect()) {\n include('view/partials/noDatabseConnectionMsg.php');\n exit;\n }\n }", "title": "" }, { "docid": "270e052ee57a9b45e6e1f844ce2d4924", "score": "0.74377066", "text": "public function set_up(){\n\t\t\t\t$this->connection = new Database();\n\t\t\t\t$this->connection->connect();\n\t\t}", "title": "" }, { "docid": "41fa0997bfe4306acec2cd3cf58210e1", "score": "0.74373394", "text": "function dbinit()\n {\n \n }", "title": "" }, { "docid": "a6131ef4b0ab4224b15f2bd6c8cc19c4", "score": "0.7431154", "text": "private function initDB() {\n// Uncomment to init the database without wrapper class. Works the same both ways.\n// $config = App::getInst()->getConfig();\n// $this->pdo = new \\PDO(\n// 'mysql:host=' . $config['db']['host'] . ';dbname=' . $config['db']['db_name'],\n// $config['db']['username'],\n// $config['db']['password']\n// );\n $this->pdo = DatabaseConnection::get()->getRawConnection();\n\n $this->pdo->exec(\"SET NAMES 'utf8'\");\n }", "title": "" }, { "docid": "7ee440adba33f5a4532ea43c3786d8d5", "score": "0.74243003", "text": "public function __construct() {\n self::$dbcon = DB::getConnection();\n }", "title": "" }, { "docid": "e353b19e28d0de94a9f6d2069a101042", "score": "0.74043876", "text": "public function init_connection()\n {\n $this->connection = mysql_connect($this->host, $this->name, $this->password);\n if(!$this->connection)\n {\n die('Could not connect: ' . mysql_error());\n }\n mysql_select_db($this->databaseName, $this->connection);\n mysql_query(\"set names 'utf8'\");\n }", "title": "" }, { "docid": "e7762d17f78fa49828992c4ea915e982", "score": "0.7396553", "text": "public function __construct()\n {\n $this->db = $this->dbConnect();\n }", "title": "" }, { "docid": "667f50affd0d5e90d2edf448acfd2efa", "score": "0.7395376", "text": "private static final function init()\r\n {\r\n try {\r\n self::$driver = Database::driver;\r\n self::$host = Database::host;\r\n self::$database = Database::database;\r\n self::$username = Database::username;\r\n self::$password = Database::password;\r\n self::$port = Database::port;\r\n } catch (Exception $e) {\r\n Logger::throwError('01-001', $e->getMessage());\r\n }\r\n\r\n $dsn = self::$driver . ':host=' . self::$host . ';dbname=' . self::$database . ';charset=utf8mb4';\r\n $dsn .= isset(self::$port) ? ';port=' . self::$port : '';\r\n\r\n try {\r\n self::$globalConnection = new PDO($dsn, self::$username, self::$password);\r\n self::$globalConnection->setAttribute(PDO::ATTR_ORACLE_NULLS, PDO::NULL_TO_STRING);\r\n self::$globalConnection->setAttribute(PDO::ATTR_CASE, PDO::CASE_LOWER);\r\n \r\n $integrityCheck = new DatabaseIntegrity();\r\n $integrityCheck->checkTables();\r\n $integrityCheck->checkTriggers();\r\n } catch (PDOException $e) {\r\n $backtrace = debug_backtrace()[1];\r\n Logger::log($e->getMessage());\r\n Logger::throwError('01-001', 'unable to connect to the database: ' . $e->getMessage(), $backtrace['file'], $backtrace['line']);\r\n }\r\n }", "title": "" }, { "docid": "944f77c19d29386b6ba25873af92d181", "score": "0.7380075", "text": "function __construct(){\n\t\t\t$this->open_db_connection();//executing the connection automatically\n\t\t}", "title": "" }, { "docid": "8a95eb800661e2b074ea368ad3509031", "score": "0.73692393", "text": "public function __construct()\n {\n $this->dbConnect();\n }", "title": "" }, { "docid": "c9289a279649ab3208a96ca3b7df0433", "score": "0.7362432", "text": "public function __construct()\n\t\t{\n\t\t\t$this->DbConnect();\n\t\t}", "title": "" }, { "docid": "bc8988ec0073e05faa995ce7948bb386", "score": "0.734523", "text": "private function __construct ()\n {\n $this->_initConnection();\n }", "title": "" }, { "docid": "9cdd1652f62c5b2775dd41572f2546f4", "score": "0.7329017", "text": "protected function initdb(){\n\t\tparent::initdb();\n\n\t\t$this->_url = $GLOBALS['url'];\n\t}", "title": "" }, { "docid": "51dd7d545161ae1e85c8c3f7f6adef8e", "score": "0.72936296", "text": "private function _initDataBase() {\n $this->_database = FW_Database::getInstance();\n $this->_prefix = $this->_database->getPrefix();\n $this->_table = $this->_prefix.$this->_name;\n }", "title": "" }, { "docid": "b2ab936a9d9e8159990713b08c11e49e", "score": "0.7282184", "text": "function __construct() {\n\n\t\t$this->open_db_connection();\n\n\t}", "title": "" }, { "docid": "1e29ef1c4c5e091c3751c5a203cad322", "score": "0.7281301", "text": "private function db_connect() {\n\t\tglobal $retweetbot_dsn;\n\t\t$this->db = new DB($retweetbot_dsn);\n\t}", "title": "" }, { "docid": "d4c56f0b362435d6c814a7501a0c0671", "score": "0.7274248", "text": "public function __construct() {\n $this->db = Database::connect();\n }", "title": "" }, { "docid": "f465edf1b357a0ca3292c1229e9e4ae7", "score": "0.7267923", "text": "public static function _init() {\n\t\t\\Config::load ( 'db', true );\n\t}", "title": "" }, { "docid": "16c4d69d6d8520b7db19c4dd1f786653", "score": "0.726593", "text": "public function __construct() {\n global $database;\n $this->connection = $database->getConnection();\n }", "title": "" }, { "docid": "a0a0162de16258512bcefd4afebb174a", "score": "0.7256083", "text": "public function _initDatabase()\n {\n $this->bootstrapDb();\n $db = $this->getResource('db');\n $db->query(\"SET NAMES 'utf8'\");\n $db->query(\"SET CHARACTER SET 'utf8'\");\n return $db;\n }", "title": "" }, { "docid": "9593d23266291678a315f56a70e5ad53", "score": "0.7254863", "text": "function __construct() {\n $this->db = new Database(DBTYPE, DBHOST, DBNAME, DBUSER, DBPASSWORD);\n }", "title": "" }, { "docid": "979ffd29c3be5cbe70e29efa13be4d56", "score": "0.7227499", "text": "private static function InitConnection () {\n\t\t//if DB connection has not been established, do so.\n\t\t( !self::$conn ) ? self::$conn = Database::Connect() : null;\n\t\treturn false;\n\t}", "title": "" }, { "docid": "ed7d9afb12f159dea0eaef0aa26d327d", "score": "0.72258735", "text": "function InitDatabase()\r\n {\r\n global $INSTALL;\r\n require_once dirname(__FILE__) . '/../database/install.php';\r\n $this->BulkQueries($INSTALL);\r\n }", "title": "" }, { "docid": "963015a9c547963a8d388c40e65217c8", "score": "0.7219692", "text": "public function __construct()\n {\n $this->db = parent::getConnect();\n }", "title": "" }, { "docid": "ae0bcf89b453fc501c3adb07b0e47db1", "score": "0.72150636", "text": "function __construct() {\n $this->db = new ConnectDb();\n $this->connection = $this->db->open_connection();\n }", "title": "" }, { "docid": "e705e20598e704210c7f5ffdec994331", "score": "0.72122765", "text": "private static function InitConnection () {\r\n\t\t//if DB connection has not been established, do so.\r\n\t\t( !self::$conn ) ? self::$conn = Database::Connect() : null;\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "980de5bee1d576b908dfb9eeeaa3da01", "score": "0.72057724", "text": "public function __construct()\n\t{\n\t\t$this->connectDb();\n\t}", "title": "" }, { "docid": "be83073add48bc6c07a4037a40271fcc", "score": "0.7205136", "text": "private function __construct() {\n $this->connection = mysqli_connect(DATABASE_HOST, DATABASE_USER, DATABASE_PASS,DATABASE_DB);\n }", "title": "" }, { "docid": "50ea97af17ad3393cccb1827e9777bee", "score": "0.72034025", "text": "protected function _initDb()\n {\n $config = App_DI_Container::get('ConfigObject');\n \n $dbAdapter = Zend_Db::factory($config->resources->db);\n Zend_Db_Table_Abstract::setDefaultAdapter($dbAdapter);\n Zend_Registry::set('dbAdapter', $dbAdapter);\n \n Zend_Db_Table_Abstract::setDefaultMetadataCache(App_DI_Container::get('CacheManager')->getCache('default'));\n }", "title": "" }, { "docid": "61c7b1c93f64c277b7406443b5dc58d3", "score": "0.71958494", "text": "public function __construct()\n {\n self::$db = CoreDB::init();\n }", "title": "" }, { "docid": "b5d1e9cc08e018afa77fc60611a16d3c", "score": "0.7179269", "text": "public function __construct()\n {\n $this->con = Database::getConnection();\n }", "title": "" }, { "docid": "682d05536e6331c69eea1f79b45645a5", "score": "0.7175857", "text": "public function __construct() {\n $database = new Database();\n $this->connection = $database->getConnection();\n }", "title": "" }, { "docid": "b7ddf86823d72f3a24ea5344ebad5488", "score": "0.7158471", "text": "private function _connect() {\n $this->_db = new Mysql();\n // here we can have an exception and we should handle it properly\n $this->_db->connect();\n }", "title": "" }, { "docid": "c303bc1684ca761b8697caa5ece06a18", "score": "0.7122336", "text": "function __construct(){\n $this->db = Database::getInstance();\n $this->connection = $this->db->getConnection();\n }", "title": "" }, { "docid": "bdb541eda86c3d3505b57b4071c39c71", "score": "0.7104181", "text": "public function __construct() {\n\t\t\t\tinclude 'po-component/po-menumanager/includes/db.php';\n\t\t\t\t$this->db = new DB;\n\t\t\t\t$this->db->Connect(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME, DATABASE_PORT);\n\t\t\t}", "title": "" }, { "docid": "bdb541eda86c3d3505b57b4071c39c71", "score": "0.7104181", "text": "public function __construct() {\n\t\t\t\tinclude 'po-component/po-menumanager/includes/db.php';\n\t\t\t\t$this->db = new DB;\n\t\t\t\t$this->db->Connect(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME, DATABASE_PORT);\n\t\t\t}", "title": "" }, { "docid": "fbc4ce2d7d75e70b0ed9f6ae81bc0cc5", "score": "0.71033144", "text": "public function initialize() : void\n {\n // Use to initialise member variables.\n $this->db = \"active\";\n }", "title": "" }, { "docid": "b48902298a49b916b1fcc1c528cb2c3a", "score": "0.7098973", "text": "protected function setDB() {\n $dbHost = $dbUser = $dbPass = $dbName = '';\n require_once(ROOT_DIR . 'config/db.conf.php');\n self::$db = new Database($dbHost, $dbUser, $dbPass, $dbName);\n }", "title": "" }, { "docid": "77cd0e1ec9fb6b9c289d5f38614fbebb", "score": "0.7082201", "text": "public static function initialize()\n {\n if (self::$init===TRUE)return;\n self::$init = TRUE;\n self::$conn = new mysqli(\"127.0.0.1:3306\", \"murilo0121\", \"\", \"pucflix\");\n }", "title": "" }, { "docid": "07b8aed902232c0a49856fa7b1744d61", "score": "0.7078322", "text": "public function __construct(){\n $database = new Database();\n $this->db = $database->getConnection();\n }", "title": "" }, { "docid": "1d6c5da828695d669ae7e9846fe6bf8b", "score": "0.70779455", "text": "protected function __construct()\n {\n $this->connection = $this->getConnection();\n }", "title": "" }, { "docid": "ece3dccf4c83a7d8daa71300fc9c2612", "score": "0.70736605", "text": "protected function connect()\n\t{\n\t\tif (self::$db === NULL)\n\t\t{\n\t\t\t// Load database, if not already loaded\n\t\t\tisset(Kohana::instance()->db) or Kohana::instance()->load->database();\n\n\t\t\t// Insert db into this object\n\t\t\tself::$db = Kohana::instance()->db;\n\n\t\t\t// Define ALL\n\t\t\tdefined('ALL') or define('ALL', -1);\n\t\t}\n\n\t\tif (empty(self::$fields[$this->table]))\n\t\t{\n\t\t\tforeach(self::$db->list_fields($this->table) as $field => $data)\n\t\t\t{\n\t\t\t\t// Cache the column names\n\t\t\t\tself::$fields[$this->table][$field] = $data;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "31bb243bbe23bc1345f30b3b4aeb61d4", "score": "0.7073488", "text": "function __construct(){\n if(!$this->db)\n $this->setDb(Ikantam_Model::getConnect());\n }", "title": "" }, { "docid": "20244e557c216bbc77361c9ffe884be5", "score": "0.7068153", "text": "public function __construct()\r\n {\r\n $this->connection = (new Database())->connect();\r\n }", "title": "" }, { "docid": "1a8262912af9d113a1401ac0f9148916", "score": "0.7067841", "text": "public function initialize()\n {\n $this->setReadConnectionService('dbSlave');\n $this->setWriteConnectionService('dbMaster');\n }", "title": "" }, { "docid": "eff8ef2f59c3fd909f13236c30ba10c2", "score": "0.70484656", "text": "protected function init(){ \n $this->db = new MySqlDataAdapter($this->cfg['db']['hostname'], $this->cfg['db']['username'], \n $this->cfg['db']['password'], $this->cfg['db']['database']); \n }", "title": "" }, { "docid": "c58438b174157ed2ba084f4ad633cd69", "score": "0.7037985", "text": "function __construct(){\n $this->_db = (new DataBaseServices())->connect();\n }", "title": "" }, { "docid": "bba6f632ec3de9af0f6f4c278c72ad45", "score": "0.7032588", "text": "public function __construct()\n\t{\n\t\t$db = new Database();\n\t\t$this->conn = $db->getConn();\n\t}", "title": "" }, { "docid": "e3187e05f4271fe80b546235a514bb28", "score": "0.7021599", "text": "function _initialize() {\n // load default DSN\n $dsn = $this->getConf('default_dsn');\n $dsn = $this->_expandTokens($dsn);\n\n $this->_dsn = $dsn;\n\n // construct driver\n list($driver,$connection) = explode(':',$dsn,2);\n $driverFile = DOKU_PLUGIN.\"strata/driver/$driver.php\";\n if(!@file_exists($driverFile)) {\n msg(sprintf($this->getLang('error_triples_nodriver'), $driver), -1);\n return false;\n }\n require_once($driverFile);\n $driverClass = \"plugin_strata_driver_$driver\";\n $this->_db = new $driverClass($this->getConf('debug'));\n\n // connect driver\n if(!$this->_db->connect($dsn)) {\n return false;\n }\n\n // initialize database if necessary\n if(!$this->_db->isInitialized()) {\n $this->_db->initializeDatabase();\n }\n\n\n return true;\n }", "title": "" }, { "docid": "b81243e897b2ecffe2638e783b2bf778", "score": "0.70154846", "text": "function __construct(){\n\t \t\t$this->db= new Database(DB_TYPE, DB_HOST, DB_USER, DB_PASS, DB_NAME);\n\t }", "title": "" }, { "docid": "5df6a6bcadc58b315d9b96da691b57e7", "score": "0.7015121", "text": "public function __construct() {\n\t\t\t$this->connection = $this->openConnection();\n\t\t}", "title": "" }, { "docid": "fbba9519c79ef73d2c80f173194e6bac", "score": "0.701447", "text": "public function __construct(){\n\t\t$database = new Database();\n\t\t$db = $database->getConnection();\n $this->conn = $db;\n }", "title": "" }, { "docid": "4f910833f590c1a4c6534a28e0c6eb73", "score": "0.7012377", "text": "function __construct(){\n parent::__construct();\n $this->dbConn = $this->getConn();\n\t\t}", "title": "" }, { "docid": "2963563b3422a143ec8eba84deec8f15", "score": "0.6999257", "text": "public function __construct()\n\t{\n\t\t$this->db = true;\n\t}", "title": "" }, { "docid": "766889f8f91e83c0823286c8dda70158", "score": "0.69959843", "text": "public function __construct()\n\t{\n\t\t$this->_db = DB::getInstance();\n\t}", "title": "" }, { "docid": "e4b89c4a6db76620084802b19499ddc1", "score": "0.69944113", "text": "public function __construct() {\n\t\tparent::__construct();\n\t\t$this->setDatabase(DATABASE_HOST, DATABASE_NAME);\n\t}", "title": "" }, { "docid": "d9fcb6bbaa235d32e3bb8413b814e34c", "score": "0.6993207", "text": "function __construct() {\n\t\t\t// A constructor must not do anything beside that: no side-effects.\n\n\t\t\t$this->connection = new Database();\n\n\t\t}", "title": "" }, { "docid": "074b7dbedfb8e93c8915b12ce48fad6b", "score": "0.6985753", "text": "public function __construct()\n\t{\n\t\t$this->db = self::getDB();\n\t}", "title": "" }, { "docid": "ed6a13b777be0c8dbbd5d669278a2828", "score": "0.69852316", "text": "public function __construct()\n\t\t{\n\t\t\t$this->_db = new Database();\n\t\t}", "title": "" }, { "docid": "fee7fa7cfb7d443e3af0960207ded51b", "score": "0.6980878", "text": "protected function _initDatabase ()\n {\n if ('development' == APPLICATION_ENV) {\n $resource = $this->getPluginResource('db');\n $db = $resource->getDbAdapter();\n Zend_Registry::set(\"db\", $db);\n }\n }", "title": "" }, { "docid": "efbe5eaa2e9222ece5cf638a98f52369", "score": "0.69803876", "text": "private function InitDB( )\n\t{\t\n\t\t// Conectamos al servidor mysql\n\t\t$this->db = mysql_connect( FSDB_SERVER_, FSDB_USER_, FSDB_PASSWD_ );\n\t\tif( ! $this->db )\n\t\t\tthrow new Exception( FS_ERROR_DB_CONNECT );\n\t\t\t\n\t\t// Seleccionamos la base de datos\n\t\tif( ! mysql_select_db( FSDB_NAME_, $this->db ) )\n\t\t\tthrow new Exception( FS_ERROR_DB_SELECT );\n\t\t\n\t\t// Inicimos el modo utf8\n\t\tif( ! mysql_query( 'SET NAMES \\'utf8\\'', $this->db ) )\n\t\t\tthrow new Exception( FS_ERROR_DB_UTF8 );\n\t}", "title": "" }, { "docid": "cf7f8fa7f31ab7fe9ca77ffa6c04d4fd", "score": "0.69801134", "text": "private function __construct() {\n self::$connection = new PDO(\n \"mysql:host=localhost;dbname=\" . DATABASE_NAME,\n DATABASE_USERNAME,\n DATABASE_PASSWORD);\n }", "title": "" }, { "docid": "0d02756b4e5e95225d901c813c4d47c8", "score": "0.6976091", "text": "public function __construct() {\n $this->db = new PDOConection(DB_SERVER, DB_DATABASE, DB_USER, DB_PASSWORD);\n }", "title": "" }, { "docid": "4122ffd3fb121af0db8024249ce95c3b", "score": "0.69755256", "text": "public function __construct()\n\t{\n\t\n\t\t$this->connection= mysql_connect($this->SERVER,$this->USERNAME, $this->PASSWORD);\n\t\n\n\t\t\n\t\tif (mysqli_connect_errno($this->connection))\n \t\t{\n \t\t\techo \"(In Database Constructor) Failed to connect to MySQL: \" . mysqli_connect_error();\n \t\t}\n\t\tmysql_select_db($this->DATABASE,$this->connection);\n\t}", "title": "" }, { "docid": "1b0faf905bc5126ecad1545e8ee2cbac", "score": "0.6971254", "text": "function set_db() {\n $this->db = new database;\n }", "title": "" }, { "docid": "5f3dc9ad1a76c11d8da9e05448f4a975", "score": "0.6966555", "text": "public function init()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$typeDB = Database::DEFAULT_DB;\n\n\t\t\tswitch($typeDB)\n\t\t\t{\n\t\t\t\tcase Database::MYSQL_CON :\n\n\t\t\t\t\t$this->pdo = PDOMySQLConnection::connect();\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase Database::SQLITE_CON :\n\n\t\t\t\t\t$this->pdo = SQLiteConnection::connect();\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault :\n\n\t\t\t\t\tthrow new \\Exception('Choix du SGBD incorrecte !');\n\n\t\t\t}\n\n\t\t}\n\t\tcatch(\\Exception $e)\n\t\t{\n\t\t\t$this->exceptionDb($e);\n\t\t}\n\t}", "title": "" }, { "docid": "150405d837bde4785edf863f058d86d7", "score": "0.6961298", "text": "function __construct()\n\t\t{\n\t\t\t$this->db\t= new database();\n\t\t\tif(!$this->db->dbConnect())\n\t\t\t\t\"Error Connection\".$this->db->ErrorInfo;\n\t\t}", "title": "" }, { "docid": "5985723a306be0889011718ed326b021", "score": "0.69607186", "text": "function __construct() {\r\n $this->setDb();\r\n }", "title": "" }, { "docid": "3dcac959d3454ccb6dfc0cbe4a14b2aa", "score": "0.6955802", "text": "public function __construct()\n {\n $this->_db = DatabaseFactory::getDefaultPdoObject();\n }", "title": "" }, { "docid": "2d76b06ef48adaf71370369c9bb213b9", "score": "0.6951469", "text": "public function init() {\n\t\tif (intval($this->settings['port']) > 0) {\n\t\t\t$this->settings['server'] = $this->settings['server'].':'.intval($this->settings['port']);\n\t\t}\n\t\t$this->connect($this->settings['server'], $this->settings['user'], $this->settings['pass']);\n\t\t$this->selectDatabase($this->settings['database']);\n\t\t$this->query(\"SET NAMES utf8\");\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3cf564714e43bd36ad9672e6ae7be0c8", "score": "0.6950078", "text": "function initDB() {\n $db = new Database();\n $db->connect();\n\n return $db;\n }", "title": "" }, { "docid": "333e0df877b667450c318c6e9bc2869d", "score": "0.6944132", "text": "private function openDatabaseConnection()\n {\n // set the (optional) options of the PDO connection. in this case, we set the fetch mode to\n // \"objects\", which means all results will be objects, like this: $result->user_name !\n // For example, fetch mode FETCH_ASSOC would return results like this: $result[\"user_name] !\n // @see http://www.php.net/manual/en/pdostatement.fetch.php\n $options = array(PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ, PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING);\n\n // generate a database connection, using the PDO connector\n // @see http://net.tutsplus.com/tutorials/php/why-you-should-be-using-phps-pdo-for-database-access/\n $this->db = new PDO(DB_TYPE . ':host=' . DB_HOST . ';dbname=' . DB_NAME . ';charset=' . DB_CHARSET, DB_USER, DB_PASS, $options);\n }", "title": "" }, { "docid": "5d47b28b41cfdc54536fab1a990984ca", "score": "0.6943227", "text": "public function __construct() {\n $this->_db = Registry::get('app.db');\n }", "title": "" }, { "docid": "78f5873093aa424c9cefb871a5a058f3", "score": "0.6942296", "text": "static function init(){\n self::$dbAdapter = new DatabaseAdapter();\n }", "title": "" }, { "docid": "d40bb27c60f75e2db0b508c590d9711b", "score": "0.69412935", "text": "public function __construct()\n {\n Singleton::setClass(DatabaseConnection);\n $this->_db_connection = Singleton::getInstance()->getConnection();\n }", "title": "" }, { "docid": "130364822411b3338394a314ec8dce14", "score": "0.6930242", "text": "function __construct() {\n $this->conn = $this->connectDB();\n\t}", "title": "" }, { "docid": "cb27a1b57b9c24c790eb9715fefaa7ae", "score": "0.6927726", "text": "public function __construct(){\n\t\t\t$this->_db = DB::getInstance(); \n\t\t}", "title": "" }, { "docid": "12b225d4a88e30769dc8199a73bb31d6", "score": "0.69212776", "text": "public function initialize()\n {\n $this->setSchema(\"cenopdb\");\n $this->setSource(\"empresa\");\n }", "title": "" }, { "docid": "6f918320a479e68f422adade4587d46c", "score": "0.6918196", "text": "public function __construct(){\n\t\t$this->conn = new Database();\n\t\t$this->connection = $this->conn->Connect();\n\t}", "title": "" }, { "docid": "6b68e24f09dddd68bf46c439107b2a6e", "score": "0.6915378", "text": "public function __construct(){\n $this->_database = new AppDatabase(\n DatabaseConfig::$_serverName,\n DatabaseConfig::$_username, \n DatabaseConfig::$_password,\n DatabaseConfig::$_dbname);\n \n $this->_tablename = DatabaseConfig::$table_phones;\n }", "title": "" } ]
a337490d01b9768584480f966cf115a7
Set resource model and Id field name.
[ { "docid": "a0e6c22c6a8f8f1f51a9477e156f790e", "score": "0.0", "text": "protected function _construct()\n {\n parent::_construct();\n $this->_init('Temando\\Temando\\Model\\ResourceModel\\Rule');\n $this->setIdFieldName('rule_id');\n }", "title": "" } ]
[ { "docid": "a41c366605290704f216baac3122c083", "score": "0.64625454", "text": "public function setNameAndId() {}", "title": "" }, { "docid": "17d8e6ab4dfa90025f6d8336f105835c", "score": "0.63890773", "text": "protected function defineNameId(){\n list($name,$id)=$this->resolveNameID();\n $this->_id=$this->htmlOptions['id']=$id;\n\t\t$this->_name=$this->htmlOptions['name']=$name;\n }", "title": "" }, { "docid": "f131826b49ce3db5a7efd48e211c9077", "score": "0.61600465", "text": "private function _setFieldNames() {\n $this->id = \"id\";\n $this->name = \"name\";\n $this->surveyId = \"survey_id\";\n $this->languageId = \"language_id\";\n $this->deleted = \"deleted\"; \n }", "title": "" }, { "docid": "924cbd939aaba35d5e7aa1b9bf0e7643", "score": "0.6027261", "text": "public function getIdFieldName()\r\n {\r\n return $this->_getResource()->getIdFieldName();\r\n }", "title": "" }, { "docid": "a3c64454f162896c4660fffc0574f690", "score": "0.5982108", "text": "public function setIdField($name) {\n $this->_id = $name;\n return $this;\n }", "title": "" }, { "docid": "b88a71012d6ce79b747278a7ec2e552b", "score": "0.5970119", "text": "function setModelName($modelName);", "title": "" }, { "docid": "e4ff0ecb9c6af00fc9510c998ca23edc", "score": "0.59538466", "text": "protected function getIdField()\n {\n return self::OBJ_NAME;\n }", "title": "" }, { "docid": "44a6ef0dbe700fa1932f11cb012cfd11", "score": "0.5855038", "text": "public function setModelName( $entity ) {\n\n $this->modelName = Str::studly( snake_case( $entity ) );\n $this->modelWNameSpace = $this->namespace .\"\\Models\\\\\" . $this->modelName;\n }", "title": "" }, { "docid": "d6e0043addad59dc068690dd54ad4e21", "score": "0.58282596", "text": "public function setNameId($name_id)\n {\n $this->name_id = $name_id;\n }", "title": "" }, { "docid": "f730a4024479b886ee7c3cdfc19b78a6", "score": "0.57860845", "text": "public function setEntityFieldName($field_name);", "title": "" }, { "docid": "d780351674a7171d67a64d56775af8f1", "score": "0.57679313", "text": "public function setId($resourceId);", "title": "" }, { "docid": "5b669ab78c12cca1d25331fa1a60c204", "score": "0.5728824", "text": "protected abstract function modelName();", "title": "" }, { "docid": "cf79c61b3f086e5fe9a96c9ef034eb26", "score": "0.5704803", "text": "public static function idFieldName() {\n\t\t$classname = static::_inflate();\n\t\treturn \\ModelInfoManager::getIdFieldname($classname);\n\t}", "title": "" }, { "docid": "1f489091caeb7cc7cc42604648d71f88", "score": "0.56435245", "text": "public function setName($x) { $this->name = $x; }", "title": "" }, { "docid": "de6a9ceacaf3746ab22692101180d1a1", "score": "0.561257", "text": "private function setName()\n\t{\n\t\treturn $this->field['name'];\n\t}", "title": "" }, { "docid": "4a5932ce5ac35a50ad449dd0ba33f825", "score": "0.56084824", "text": "public function getIdFieldName();", "title": "" }, { "docid": "926018f383e6e4f8684b04602d62abf9", "score": "0.55741173", "text": "public function getModelName();", "title": "" }, { "docid": "926018f383e6e4f8684b04602d62abf9", "score": "0.55741173", "text": "public function getModelName();", "title": "" }, { "docid": "926018f383e6e4f8684b04602d62abf9", "score": "0.55741173", "text": "public function getModelName();", "title": "" }, { "docid": "926018f383e6e4f8684b04602d62abf9", "score": "0.55741173", "text": "public function getModelName();", "title": "" }, { "docid": "e9dd18633a5c56d3ef92676f444721b1", "score": "0.5550042", "text": "protected function setModelId() \n\t{\n\t\t//check Options\t\n\t\tif(empty($this->page_info_options))\n\t\t{\n\t\t\t$this->model = $this->defaultModel;\n\t\t} else {\n\t\t\t$this->model = $this->page_info_options[0];\n\t\t}\n\t\t//check the default is one of the models\n\t if(!array_key_exists($this->model, $this->model_a))\n\t {\n\t\t $html_ns = NS_HTML.'\\\\htmlpage';\n\t \t$htmlpage = new $html_ns(404);\n\t\t\texit();\n\t\t}\n\t\treturn;\n\t}", "title": "" }, { "docid": "1dce0a47956c8d5f40fddc1bcf335af1", "score": "0.5546111", "text": "function getLabelFromId($id) {\n return 'field_'.$id;\n }", "title": "" }, { "docid": "85c1bc9be28587b4e3289d1bdcce4911", "score": "0.55424935", "text": "function getModelName();", "title": "" }, { "docid": "01cfa822b7344370ee9a2859ccd3b694", "score": "0.55377716", "text": "function set_resource($name)\n\t{\n\t\t$this->resource = $name;\n\t}", "title": "" }, { "docid": "734eafdf3dba401a8e39155e6185891e", "score": "0.55333495", "text": "public function setSingularAndPluralName($resource)\n {\n $names = $this->getSingularAndPluralName($resource);\n $this->shopifyData['PLURAL_NAME'] = $names['PLURAL_NAME'];\n $this->shopifyData['SINGULAR_NAME'] = $names['SINGULAR_NAME'];\n }", "title": "" }, { "docid": "c960cb3590c920bda939816bcd9e23f5", "score": "0.5514466", "text": "public function setName($x) {\n $this->name = $x;\n }", "title": "" }, { "docid": "15e8e7e733f756dba8d99041cafe1242", "score": "0.5503041", "text": "public function setName($val) {\n $this->name = $val;\n }", "title": "" }, { "docid": "1a9d521fefebe53811f2440ae90310af", "score": "0.5494082", "text": "function setName($value) {\n $this->name = $value;\n }", "title": "" }, { "docid": "3265cd6b6f96a0beb86cf587c00e6680", "score": "0.54921186", "text": "public function setName($name)\n {\n $this->name = ModelValidation::getValidName($name);\n }", "title": "" }, { "docid": "9352dba9e3fe8ec3f9adae94e7929296", "score": "0.548448", "text": "function name_id( string $key ): void {\n\t\t\\wpinc\\meta\\name_id( $key );\n\t}", "title": "" }, { "docid": "fe8dc1e0b7be28bbc5ed3e6a0e3b2df5", "score": "0.5481285", "text": "public function setIdFieldName($id_field_name)\n {\n $this->id_field_name = $id_field_name;\n return $this;\n }", "title": "" }, { "docid": "1334502113f260c84047f8473f977aad", "score": "0.5472433", "text": "protected function get_model_name()\n {\n }", "title": "" }, { "docid": "3b640e4d41f141364ca7ff98b1cf98d3", "score": "0.54683125", "text": "protected function setName()\n {\n // If we have callable handler for generating file name\n if (isset($this->config->fileNameHandler) && is_callable($this->config->fileNameHandler)) {\n // Add file extension as last parameter\n array_push($this->relPathParameters, $this->extension);\n\n // Call handler and create fileName\n $this->fileName = call_user_func_array($this->config->fileNameHandler, $this->relPathParameters);\n } else { // If we have not created filename - generic generate it\n $this->fileName = strtolower(md5(time() . $this->realName) . '.' . $this->extension);\n }\n }", "title": "" }, { "docid": "9fcfc66c566ef673b15c6a27e14b711b", "score": "0.5464502", "text": "private function SetName() {\n $where = (!empty($this->eventoID) ? \"e.id != {$this->eventoID} AND \" : '');\n\n $query = $this->createQueryBuilder('e')\n ->where(\"{$where} e.titulo = :n\")\n ->setParameter('n', $this->data->getTitulo())\n ->getQuery();\n\n $resEvento = $query->getResult();\n if ($resEvento) {\n $this->data->setName($this->data->getName() . \"-\" . count($resEvento));\n }\n }", "title": "" }, { "docid": "fc2a3530407ac39f5e90baa4f5d66792", "score": "0.5462065", "text": "public function setName($val)\n {\n $this->name = $val;\n }", "title": "" }, { "docid": "7dfb48ae20469c121b88fc2071fdbd93", "score": "0.5441087", "text": "public function setName($name){\n $this->name = $name;\n }", "title": "" }, { "docid": "2d306c5299ef0f360319b247155d6bdf", "score": "0.5430392", "text": "function setName($s)\n\t{\n\t\t$this->name = $s;\n\t}", "title": "" }, { "docid": "f11b935671a080046472b964c6f21a06", "score": "0.54181063", "text": "public function setId($x) { $this->id = $x; }", "title": "" }, { "docid": "442f245de4a26be135328e5eb53c611e", "score": "0.5411318", "text": "function setName( $value )\r\n {\r\n $this->Name = $value;\r\n }", "title": "" }, { "docid": "442f245de4a26be135328e5eb53c611e", "score": "0.5411318", "text": "function setName( $value )\r\n {\r\n $this->Name = $value;\r\n }", "title": "" }, { "docid": "442f245de4a26be135328e5eb53c611e", "score": "0.5411318", "text": "function setName( $value )\r\n {\r\n $this->Name = $value;\r\n }", "title": "" }, { "docid": "cb50c500a5c6abbdd81d5dd51ba3d5dd", "score": "0.54064095", "text": "private function _setFieldNames(){\n $this->id = \"id\";\n $this->name = \"name\";\n $this->stateId = \"state_id\"; \n $this->featured = \"featured\";\n $this->status = \"status\";\n $this->order = \"order\";\n $this->deleted = \"deleted\";\n $this->createdby = \"createdby\";\n $this->modifiedby = \"modifiedby\";\n $this->cts = \"cts\";\n $this->mts = \"cts\";\n \n }", "title": "" }, { "docid": "1a39c49bcfe3ccb53f60e2623ae6edf0", "score": "0.5393068", "text": "private function create_primary_key_id_name()\n {\n $this->{$this->primary_key_id_name} = null;\n }", "title": "" }, { "docid": "61f0a8320b2793c5de13d46231829cde", "score": "0.5384289", "text": "function fill_in_additional_detail_fields()\n {\n parent::fill_in_additional_detail_fields();\n $this->project_name = $this->_get_project_name($this->project_id);\n $this->resource_name = $this->getResourceName();\n }", "title": "" }, { "docid": "1c5b4a1c784fd39c74e7a2b00c0a9243", "score": "0.5377952", "text": "public function setItemName()\n {\n if ($product = $this->product) {\n $name = $product->productPrint->name;\n $name = $product->mailingOption->name . ' ' . $name;\n $name = $name . ' ' . $product->stockOption->name;\n $this->name = $name;\n $this->save();\n }\n }", "title": "" }, { "docid": "736ef0a5ff391f7590d9c4677ed3dca3", "score": "0.53708595", "text": "public function getIdFieldName()\n {\n return $this->id_field_name;\n }", "title": "" }, { "docid": "58e60d2989d3ff47bf0246a19031674e", "score": "0.5368232", "text": "function getIdName()\n {\n return \"id\";\n }", "title": "" }, { "docid": "d482dec0f1ff7c25c06a10aa6141ef25", "score": "0.53663653", "text": "public function getResourceModelName()\r\n {\r\n return $this->_resourceModel;\r\n }", "title": "" }, { "docid": "f10bf821a59005a77610128b9f53d2c5", "score": "0.53628284", "text": "abstract protected function getModelName(): string;", "title": "" }, { "docid": "f0fd84b1aa38111ffff8a1e35b721521", "score": "0.53500414", "text": "public function setName($name){\n $this->__set('name',$name);\n }", "title": "" }, { "docid": "ba0bb35f4568d3da5d334fb8069bcf76", "score": "0.53449327", "text": "public function __getNameModel()\n {\n }", "title": "" }, { "docid": "423d7b47532a46a73f87ed649d05240b", "score": "0.53435653", "text": "public function setNewid($name)\n {\n\n $this->newId = trim($name);\n\n }", "title": "" }, { "docid": "80008ddd7e4cd3e0ff3007f0c834a5d8", "score": "0.5341203", "text": "private function setupFieldsAttributes() {\n\n\t\tforeach ( $this->form as $field ) {\n\n\t\t\tif ( ! $field->hasAttribute( 'id' ) ) {\n\t\t\t\t$field->setAttribute( 'id', esc_attr( sanitize_title( $field->getName() ) ) );\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "4d558627281e8d0403f00e15bd7f88bc", "score": "0.5331892", "text": "public function setName()\n {\n }", "title": "" }, { "docid": "2d0b1567744189aa114c6591da38774c", "score": "0.5324476", "text": "public function setIdentifier(){\n\n \t$this->fileIdentifier = $this->getIdentifier();\n }", "title": "" }, { "docid": "be2ce27ef605083fe3364fce3c147c36", "score": "0.53222805", "text": "function setName($name) {\n $this->name = $name;\n }", "title": "" }, { "docid": "35610ee6cddf847dcfe3f1ddf3ec4d38", "score": "0.53198636", "text": "public function setFieldName($field_name){\n\t\t$this->field_name = $field_name;\n\t}", "title": "" }, { "docid": "bbb285735b6ae0a8a08ec767216615a5", "score": "0.5312157", "text": "function setName($name)\r\n {\r\n $this->_name = $name;\r\n }", "title": "" }, { "docid": "1db7ce7329a67961f07c1a83b80e5594", "score": "0.53105724", "text": "public function setTitle($id) {\n $this->id = $id;\n }", "title": "" }, { "docid": "65cd7261bcd26f59aaf226d5e72f878f", "score": "0.528383", "text": "protected function addNamesLabelsValues() {\n foreach ($this->__fields() as $field) {\n $this->$field->__name = $field;\n if (!$this->$field->label && $this->$field->label !== '') $this->$field->label = strtoupper($field[0]) . substr ($field, 1);\n $this->setFieldValue($field);\n $this->$field->setForm($this);\n }\n }", "title": "" }, { "docid": "6419e96014300b7a6857e39b1c5b9d07", "score": "0.5283026", "text": "public function setName( $name );", "title": "" }, { "docid": "4db798691c672e1bc70bc8640b3312e9", "score": "0.5275592", "text": "public function setName($name) {}", "title": "" }, { "docid": "fabc1cc43ac0e74f63353bcb7c166e2d", "score": "0.5266409", "text": "public function modelName() {\n return self::$_name;\n }", "title": "" }, { "docid": "fabc1cc43ac0e74f63353bcb7c166e2d", "score": "0.5266409", "text": "public function modelName() {\n return self::$_name;\n }", "title": "" }, { "docid": "a5ab069184d29d9a9a5acca766aee2b2", "score": "0.52599704", "text": "public function setName($value)\r\n {\r\n $this->name = $value;\r\n }", "title": "" }, { "docid": "61e98d4bbfb170cef9a2d47b73824992", "score": "0.5257307", "text": "function setName($name){\n\t\t$this->name=$name;\n\t}", "title": "" }, { "docid": "5aa8df308fd0c2ba7c317df6cf58713b", "score": "0.52529335", "text": "function setName($name)\r\n {\r\n $this->name = $name;\r\n }", "title": "" }, { "docid": "ddf6d04730b585c729b5cc30f69f67cd", "score": "0.52342165", "text": "public function setLibraryId() {\n\t$this->id = Model::getInstance()->getLibraryId();\n}", "title": "" }, { "docid": "5fcb96cbe7ccc750d3c2b97c54b3dc68", "score": "0.5234172", "text": "public function setName($value) {\n\t\t$this->_name = $value;\n\t}", "title": "" }, { "docid": "5544a21ea77be1403e2c98ed34369668", "score": "0.5223641", "text": "private function getModelName()\n {\n $function = new \\ReflectionClass( $this->model ); \n return $function->getShortName();\n }", "title": "" }, { "docid": "4976c39ab73f0bb24016e98408b8bb77", "score": "0.52199095", "text": "public function getIdName();", "title": "" }, { "docid": "7f7043487fdebe2ccfe0ec24665282e9", "score": "0.5217528", "text": "public function setName($name){\n\t\t$this->name = $name;\n\t}", "title": "" }, { "docid": "59ea00039ba5c4a4f79367e204445958", "score": "0.52142215", "text": "public function __construct() {\n\n $this->model_name = 'App\\\\' . ucfirst($this->category);\n\n }", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" }, { "docid": "47fe3e778ad4bd06fcea8caf98dec216", "score": "0.5207845", "text": "public function setName($name);", "title": "" } ]
8bc704c6970bf7555c8ea369aa787a95
Return account by client id
[ { "docid": "c8001e91799d34cac02b24432a830c2e", "score": "0.6992163", "text": "public function getByClientID($clientID);", "title": "" } ]
[ { "docid": "b7dab7f48de92523112446ccda739ac4", "score": "0.70994115", "text": "function getAccountInfo($clientId){\n $db = acmeConnect();\n $sql = 'SELECT * FROM clients WHERE clientId = :clientId';\n $stmt = $db->prepare($sql);\n $stmt->bindValue(':clientId', $clientId, PDO::PARAM_INT);\n $stmt->execute();\n $accountInfo = $stmt->fetch(PDO::FETCH_ASSOC);\n $stmt->closeCursor();\n return $accountInfo;\n}", "title": "" }, { "docid": "56ff1a3f8430553b4111546df5f9ffc0", "score": "0.6962234", "text": "function get_client_by_id($client){\n \t$ci =&get_instance();\n \treturn $ci->db->where('co_id',$client)->get('companies')->row();\n }", "title": "" }, { "docid": "a3f51192f15d546d62c72731ab51f99f", "score": "0.69194067", "text": "public function findOneByIdAndAccount($client_id, $account_id) {\n $client_query = $this->_em\n ->createQuery(\"\n SELECT apc, a, ap, m, ac, p FROM Entities\\ApiClient apc\n INNER JOIN apc.account a\n INNER JOIN a.person p\n INNER JOIN apc.api ap\n LEFT JOIN ap.maintainer m\n LEFT JOIN ap.actions ac\n WHERE\n a.id = :account_id\n AND\n apc.id = :client_id\n \");\n\n $client_query->setParameters(array(\n 'client_id' => $client_id,\n 'account_id'=> $account_id,\n ));\n\n return $client_query->getSingleResult(\\Doctrine\\ORM\\Query::HYDRATE_OBJECT);\n }", "title": "" }, { "docid": "797cf1f452425bf75ea7296658126ab7", "score": "0.6836488", "text": "public function getByClientID(ClientID $clientID);", "title": "" }, { "docid": "95aef905b5969fe0fbe24625be8e4eea", "score": "0.6826342", "text": "public function getByID(AccountID $accountID);", "title": "" }, { "docid": "45d9c15f929af392ee2f79fbe2041f52", "score": "0.67887837", "text": "public function getClientAccount() {\n\t\treturn $this->clientAccount;\n\t}", "title": "" }, { "docid": "04e26049d8e0fe859a187e5207c29a2c", "score": "0.6731625", "text": "public function get_client_by_id($idClient) {\n //fonction pour recup mdp\n $rqt = $this->db->query(\"SELECT mdp FROM client WHERE idClient=\" . $idClient);\n $client = $rqt->row();\n return $client;\n }", "title": "" }, { "docid": "5a2bbe245fd70d46d3b8f131aeaa8e31", "score": "0.6677743", "text": "public function account(int $account_id);", "title": "" }, { "docid": "0bc6d89835c1a8992bd22c560d83f57e", "score": "0.65081924", "text": "public function getAccountById(int $accountId)\n {\n //return $this->accounts[0];\n\n //TODO update so return matching\n $key = array_search($accountId, $this->accounts, true);\n //return $this->accounts[$key];\n for ($i = 0; $i <= count($this->accounts); $i++) {\n if($accountId==$this->accounts[$i]->getId()) {\n return $this->accounts[$i];\n }\n }\n }", "title": "" }, { "docid": "e44f214c268547d63e89ef1b63881015", "score": "0.64597934", "text": "public function show($id)\n {\n //\n $account = TAIKHOAN::find($id);\n return $account;\n }", "title": "" }, { "docid": "9423b542411bc629282f1bb940f56e2e", "score": "0.6445111", "text": "function getClient($id) \n{\n\t$db = openDatabaseConnection();\n\n\t$sql = \"SELECT * FROM client WHERE id = :id\";\n\t$query = $db->prepare($sql);\n\t$query->execute(array(\n\t\t\":id\" => $id));\n\n\t$db = null;\n\n\treturn $query->fetch();\n}", "title": "" }, { "docid": "5ec91d1c0e49212d650f73c1d4cbd1ba", "score": "0.6418455", "text": "public function getUserById($id) {\n return new Gitkit_Account($this->rpcHelper->getAccountInfoById($id));\n }", "title": "" }, { "docid": "04e946d6e1d1c289f368975fe98fc737", "score": "0.6395016", "text": "public function get_user_account($user_id=NULL) {\n \n $account = $this->db->\n where('user_id', $user_id)->\n get('account')->result();\n $account = $account[0];\n return $account;\n }", "title": "" }, { "docid": "3a2d87aaa4de5299c9c4ee807f31a6a3", "score": "0.6388982", "text": "public function getClientId();", "title": "" }, { "docid": "1c22a4eb41cfd6a7a5bb0f33530a99a4", "score": "0.6349415", "text": "function retrieveAccount() {\r\n\t\treturn getAccount();\r\n }", "title": "" }, { "docid": "3d388a91966e3ea9805018ea80ce62bd", "score": "0.63336325", "text": "function getClient($id){\n $manager = new ManageClient($this->getDataBase());\n return $manager->getClient($id);\n }", "title": "" }, { "docid": "3da4cfc0a0c8065d5ac45ee9905d72f5", "score": "0.63136744", "text": "public function get_server_account_by_id($entity_id) {\n\t\t$stmt = $this->database->prepare(\"SELECT * FROM server_account WHERE entity_id = ?\");\n\t\t$stmt->bind_param('d', $entity_id);\n\t\t$stmt->execute();\n\t\t$result = $stmt->get_result();\n\t\tif($row = $result->fetch_assoc()) {\n\t\t\t$account = new ServerAccount($row['entity_id'], $row);\n\t\t} else {\n\t\t\tthrow new ServerAccountNotFoundException('Server account does not exist.');\n\t\t}\n\t\t$stmt->close();\n\t\treturn $account;\n\t}", "title": "" }, { "docid": "683268499a9fdb4a447cc8065f8d2b1f", "score": "0.63031495", "text": "public static function getClient($id) {\n $dao = new ClientDAO();\n $result = $dao->findById($id);\n return $result;\n }", "title": "" }, { "docid": "2c63f1c3dc521dcc1dff83d069947e12", "score": "0.6270127", "text": "public function getClientById($id)\n {\n $id = (int) $id;\n return $this->getDbTable('client')->getClientById($id);\n }", "title": "" }, { "docid": "ce8c7e8cb5cdb83a70dd3995840a6a7a", "score": "0.62606317", "text": "public function getAccountId(): string\n {\n return $this->accountId;\n }", "title": "" }, { "docid": "ce8c7e8cb5cdb83a70dd3995840a6a7a", "score": "0.62606317", "text": "public function getAccountId(): string\n {\n return $this->accountId;\n }", "title": "" }, { "docid": "f555e82706052fb161c05e478c83ebb4", "score": "0.62583923", "text": "public function getAccountId()\n {\n return $this->account_id;\n }", "title": "" }, { "docid": "f555e82706052fb161c05e478c83ebb4", "score": "0.62583923", "text": "public function getAccountId()\n {\n return $this->account_id;\n }", "title": "" }, { "docid": "f555e82706052fb161c05e478c83ebb4", "score": "0.62583923", "text": "public function getAccountId()\n {\n return $this->account_id;\n }", "title": "" }, { "docid": "f14f5e97943e689da9b1cb7ac94f098c", "score": "0.6243975", "text": "public function getAccountId()\n {\n return oxRegistry::getConfig()->getShopConfVar('tc_cleverreach_account_id');\n }", "title": "" }, { "docid": "1fe12b75fa090b355e23931ddf8e602e", "score": "0.6233473", "text": "static function findClientById($user, $id) {\r\n $mdb2 = getConnection();\r\n\r\n\t $sql = \"select * from clients\r\n where clnt_id_um = \".$user->getOwnerId().\" and clnt_id = $id and clnt_status = 1\";\r\n \t $res = &$mdb2->query($sql);\r\n\t if (PEAR::isError($res) == 0) {\r\n \t\t$val = $res->fetchRow();\r\n\t\t if ($val['clnt_id'] != '') {\r\n \t\t\treturn $val;\r\n \t\t} else {\r\n \t\t\treturn false;\r\n \t\t}\r\n\t }\r\n\t return false;\r\n }", "title": "" }, { "docid": "c3c57c0a7ea842d2a4a8ed38f69ccc15", "score": "0.62074625", "text": "public static function getAccount($id)\r\n {\r\n $ci =& get_instance();\r\n $tblAccounts =$ci->config->item('tbl_name_accounts');\r\n $query = $ci->db->get_where($tblAccounts,\r\n array('id' => $id));\r\n\r\n if ($query->num_rows() > 0)\r\n {\r\n return new Account($query->row());\r\n }\r\n else\r\n {\r\n show_error( 'Account::getAccount => a account with this id ' .\r\n 'doesn`t exist!' );\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "97185593cd7c6544c3e06ea6eb561593", "score": "0.6201247", "text": "function cry_getwalletwithid($id){\n $cuid = get_current_user_id();\n global $wpdb;\n $table = $wpdb->prefix.\"wallet\";\n $sql = \"SELECT * FROM \".$table.\" WHERE id = \".$id.\" AND uid = \".$cuid.\" ;\";\n return $wpdb->get_results($sql);\n}", "title": "" }, { "docid": "2a49bcc57baeb2a56e7cb83cce86e892", "score": "0.62003", "text": "public function getClientID();", "title": "" }, { "docid": "799a94730d99fd049130fdcfe3ea57c2", "score": "0.6190924", "text": "public function getAccountById($idAccount){\n $this->db->where(\"Id\", $idAccount);\n $query = $this->db->get('Account');\n return $query->row();\n }", "title": "" }, { "docid": "87678f0a42f052881c36edb177b4c59c", "score": "0.6188045", "text": "public static function getUserAccount() \n {\n return self::find(Auth::user()->id)->user_account->account->id;\n }", "title": "" }, { "docid": "4d5669df7026a5e0962a14336c33e86c", "score": "0.61879766", "text": "public function find($id)\r\n {\r\n return $this->clientRepository->findOneBy(array('id' => $id));\r\n }", "title": "" }, { "docid": "7d5368ff266deb765e7a4b9db2c50c89", "score": "0.6181318", "text": "function getClientAccountPersonInfo($accountPersonId){\n $CI =& get_instance();\n $where = array('account_id' => $accountPersonId);\n $accountPersonDetails = $CI->common_model->getRecord(TBL_CLIENT_ACCOUNTPERSON, array('account_person_name', 'account_contact_no', 'account_person_email'), $where);\n if($accountPersonDetails) {\n return $accountPersonDetails;\n } else {\n return false;\n }\n}", "title": "" }, { "docid": "fd3e71e6b63e00dc93badfc07aabbf02", "score": "0.61690015", "text": "public function findByClientId($cient_id)\r\n {\r\n return $this->clientRepository->findOneBy(array('clientId' => $cient_id));\r\n }", "title": "" }, { "docid": "caddbf5582421739cdfa45a1a8677d4c", "score": "0.61671597", "text": "public function getUserAccount(){\n $url = $this->api_url.\"accounts\";\n $response = Http::get($url, ['headers' => $this->getHeaders()]);\n $data = [\n \"name\" => $response['result'][0]['name'], \n \"id\" => $response['result'][0]['id']\n ];\n \n $account = [\"account\" => $data];\n \n return $account;\n }", "title": "" }, { "docid": "e800946712b65be4d5a1f4acc6a79961", "score": "0.61532724", "text": "function getlist($clientid){\n \n if($clientid==null || !is_numeric($clientid)){\n throw new InvalidArgumentException('Invalid Account id');\n }\n\n // Create a Guzzle client\n $client = new GuzzleHttp\\Client();\n // Load credentials\n $credentials = parse_ini_file('./credentials.ini');\n $accessToken = $credentials['accessToken'];\n\n $bearer = 'Bearer '.$accessToken;\n $headers = [\n 'User-Agent' => 'AWeber-PHP-code-sample/1.0',\n 'Accept' => 'application/json',\n 'Authorization' => $bearer,\n ];\n \n $url = BASE_URL . \"accounts/\".$clientid.\"/lists\";\n\n $response = $client->get($url, ['headers' => $headers]);\n $body = json_decode($response->getBody(), true);\n return $body['entries'][0]['id']; //(Free Account only has 1 list so we always get [0])\n }", "title": "" }, { "docid": "46eb1847f554c0bd513208e695af761f", "score": "0.6138907", "text": "public function getAccount($id){\n $response=$this->db->prepare('SELECT * FROM accountData WHERE id=:id');\n $response->execute(array(\n ':id'=>$id\n ));\n $account=$response->fetch(PDO::FETCH_ASSOC);\n $account= new Account($account);\n return $account;\n}", "title": "" }, { "docid": "83f5b59a57c2edebd4e2d58abd119fe8", "score": "0.61324584", "text": "function client($id = '')\n\t{\n\t\t$this->_db = new database();\n\t\t$this->_id = '';\n\t\t\n\t\tif (is_numeric($id))\n\t\t{\n\t\t\t$sql = \"SELECT * FROM T_CLIENTS WHERE client_id = '{$id}'\";\n\t\t\t$result = $this->_db->parse($sql);\n\t\t\tif (count($result))\n\t\t\t{\n\t\t\t\t$this->_id = $result[0]['client_id'];\n\t\t\t\t$this->_raison = $result[0]['raison'];\n\t\t\t\t$this->_actif = $result[0]['actif'];\n\t\t\t\t$this->_uid = $result[0]['uid_ref'];\n\t\t\t\t$this->_gid = $result[0]['gid_ref'];\n\t\t\t\t$this->_dir = $result[0]['dir_ref'];\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "5fe900cbaa2b79539889c490498f3f14", "score": "0.6126772", "text": "public function client()\n {\n return $this->hasOne(config('core.acl.user'), 'id', 'client_id')\n ->select(['id', 'firstname', 'lastname', 'avatar', 'email', 'address', 'mobile','phone']);\n }", "title": "" }, { "docid": "46aeec399c15d4c3310d9be49cf21d34", "score": "0.6121025", "text": "public function show($id)\n {\n $client = Client::find($id);\n }", "title": "" }, { "docid": "2ebc930d1ca78aef57d4f24970b80dc6", "score": "0.61114514", "text": "public function show($id)\n {\n $client = User::where('id', $id)->with('UserRole')->first();\n return $client;\n }", "title": "" }, { "docid": "adf859ab14bbb1da310bfb1d7d86668d", "score": "0.6092644", "text": "public function show($id)\n {\n $client = Client::find($id);\n\n return $client;\n }", "title": "" }, { "docid": "9341086f2a7bde7701890a3464487579", "score": "0.6091651", "text": "function getClient(){\n\n // Create a Guzzle client\n $client = new GuzzleHttp\\Client();\n\n // Load credentials\n $credentials = parse_ini_file('./credentials.ini');\n $accessToken = $credentials['accessToken'];\n $bearer = 'Bearer '.$accessToken;\n $headers = [\n 'User-Agent' => 'AWeber-PHP-code-sample/1.0',\n 'Accept' => 'application/json',\n 'Authorization' => $bearer,\n ];\n\n $url = BASE_URL . 'accounts';\n $response = $client->get($url, ['headers' => $headers]);\n $body = json_decode($response->getBody(), true);\n return $body['entries'][0]['id'];\n }", "title": "" }, { "docid": "815461d1c9c38be548983244be336a3a", "score": "0.60765135", "text": "public function getAccountHolder($customer_id){\n\t\t$this -> load -> model('account/customer');\n\t\t$parrent = $this -> model_account_customer ->getAccount_holder($customer_id);\n\n\t\treturn $parrent;\n\t}", "title": "" }, { "docid": "e051420b0e9cea109467a7da24cb9af9", "score": "0.6073425", "text": "public function getAccountId() {\n\t\treturn $this->dataItem->get('user_account_id');\n\t}", "title": "" }, { "docid": "f76812d1204f9e79500885d1a6fe9591", "score": "0.6070976", "text": "public function getAccount()\n {\n $data = $this->getApi()->getAccount();\n\n return $this->getFactory()->create($data);\n }", "title": "" }, { "docid": "5cff2b6d954323f61ddd6b27aa2ef825", "score": "0.6068497", "text": "public function getAccountId()\n {\n return $this->_data['acc_id'];\n }", "title": "" }, { "docid": "eeef584256578c8febd02d3e040a58b0", "score": "0.60550404", "text": "public function getClientId()\r\n {\r\n return $this->client_id;\r\n }", "title": "" }, { "docid": "30cbed74823f4bf0c5e27c20d0b290fc", "score": "0.60504675", "text": "public function findOneByClientIdAndUsername($client_id, $username)\n {\n $client_query = $this->_em\n ->createQuery(\"\n SELECT apc, a, ap, m, ac FROM Entities\\ApiClient apc\n INNER JOIN apc.account a\n INNER JOIN apc.api ap\n LEFT JOIN ap.maintainer m\n LEFT JOIN ap.actions ac\n WHERE\n a.username = :username\n AND\n apc.id = :client_id\n \");\n\n $client_query->setParameters(array(\n 'client_id' => $client_id,\n 'username'=> $username,\n ));\n\n return $client_query->getSingleResult(\\Doctrine\\ORM\\Query::HYDRATE_OBJECT);\n }", "title": "" }, { "docid": "36259424d31c02895868c8df26c94338", "score": "0.60436726", "text": "public function show($id)\n {\n $client = Client::findOrFail($id);\n\n return $client;\n }", "title": "" }, { "docid": "5e2d11c0d1456f786cb7df27283a1c6e", "score": "0.60425216", "text": "public function get_account_client() {\n\n\t\t// Include the library.\n\t\trequire_once wp_mail_smtp()->plugin_path . '/vendor/autoload.php';\n\n\t\treturn new \\SendinBlue\\Client\\Api\\AccountApi( null, $this->get_api_config() );\n\t}", "title": "" }, { "docid": "cbc94803a92026c49a2a56e6a866bb7b", "score": "0.60414726", "text": "public function getAccountId()\n {\n $store = $this->_getOrder()->getStoreId();\n return Mage::getSingleton('googletrustedstore/config')->getAccountId($store);\n }", "title": "" }, { "docid": "3096706d97fca719a1180ebda41b7c17", "score": "0.60413367", "text": "function getAccountInfo($userid){\n\t\t\t$db = $this->dbConnect();\n\t\t\t$account = $db->getAccountInfo($userid);\n\t\t\treturn $account;\n\t}", "title": "" }, { "docid": "5ab177fa89b9c398092929ddf9b4d808", "score": "0.60356677", "text": "public function getAccountId()\n {\n return \\F3::get('COOKIE.appAid');\n }", "title": "" }, { "docid": "170b6acf752f791d045c1fff19c7fee6", "score": "0.6034888", "text": "public function show($id)\n {\n $accounts = Account::where('acct_id',$id)->get();\n return AccountsResource::collection($accounts);\n }", "title": "" }, { "docid": "1fc4486d078a47778966e83a61528ae0", "score": "0.60194474", "text": "function GetUserById($id) {\n global $conn;\n $sql = \"SELECT * FROM account WHERE id='$id'\";\n $result = mysqli_query($conn,$sql);\n $user = mysqli_fetch_assoc($result);\n return $user;\n}", "title": "" }, { "docid": "be4f8899fed539b3858957f74901fbdb", "score": "0.59999526", "text": "public function client($id)\r\n {\r\n return $this->sendGetMessage( $this->baseUrl .'/api/v8/clients/'. $id );\r\n }", "title": "" }, { "docid": "67d98ce004ed40a86f3a4be6fab91ad8", "score": "0.5985737", "text": "public function getAccountUniqueId();", "title": "" }, { "docid": "0caef6d2f41716d840854fc866fc4525", "score": "0.59812576", "text": "public function getClientId() {\r\n return $this->client_id;\r\n }", "title": "" }, { "docid": "2a74b8301aea3a0ce2c259cba65a28ff", "score": "0.5973798", "text": "public function getCustomer($id);", "title": "" }, { "docid": "ec2e30b1ea74a2d59213d1d6a464bb16", "score": "0.59724903", "text": "function get_by_account_id_get() {\r\n\t\t$account_id = $this->get('account_id');\r\n\t\t// Load the credit model and buy credit for user sending the facebook ID\r\n\t\t// and desired credit to be bought\r\n\t\tlog_message('error', 'get_by_account_id ' . $account_id);\r\n\t\t$this->load->model('account/account_details_model');\r\n\t\t$query = $this->account_details_model->get_by_account_id($account_id);\r\n log_message('error','mo7eb h7fb get_by_account_id_get() $query='. print_r($query,TRUE));\r\n\t\tif($query)\r\n\t\t{\r\n\t\t\t$rValue['invoke'] = TRUE;\r\n\t\t\t$rValue['data']\t= json_encode($query);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$rValue['invoke'] = FALSE;\r\n\t\t\t$rValue['error'] = 'Unable to get user details from a3m_account_details';\r\n\t\t}\r\n\t\t\r\n\t\t// response acts as \"return\" for the function\r\n\t\t$this->response($rValue);\r\n\t}", "title": "" }, { "docid": "74b514fab2b2accb5e7db48bf0e88f2d", "score": "0.5969593", "text": "public static function getAccountInfo(int $id)\n {\n return db('account_information')->query('ApplyId', $id);\n }", "title": "" }, { "docid": "9dfdad0a8427b803aa23a2612c670eac", "score": "0.596918", "text": "public function show($id)\n {\n return Account::findOrFail($id);\n }", "title": "" }, { "docid": "d6b8441342d997b2dd2cf9f0bc6c2d9f", "score": "0.5966746", "text": "function getAccountByID($accID){\n $db = testgenConnect();\n $sql = 'SELECT * FROM account WHERE accID = :accID';\n $stmt = $db->prepare($sql);\n $stmt->bindValue(':accID', $accID, PDO::PARAM_INT);\n $stmt->execute();\n $accountData = $stmt->fetch(PDO::FETCH_ASSOC);\n $stmt->closeCursor();\n return $accountData;\n }", "title": "" }, { "docid": "8ca02dd07e5d89edf0cb573811f0d0f7", "score": "0.5958287", "text": "public function get_client()\n {\n return model_client::load_by_id($this->client_id);\n }", "title": "" }, { "docid": "ec19cf05662d36db4b314034248a6b89", "score": "0.5952299", "text": "public function obtenerClientePorId($id)\n {\n return $cliente = $this->cliente->obtenerCliente($id);\n\n }", "title": "" }, { "docid": "b1fadaeb018e8b6d69e69c98425b676e", "score": "0.5947171", "text": "public function getClientId()\n {\n return $this->client_id;\n }", "title": "" }, { "docid": "b1fadaeb018e8b6d69e69c98425b676e", "score": "0.5947171", "text": "public function getClientId()\n {\n return $this->client_id;\n }", "title": "" }, { "docid": "b1fadaeb018e8b6d69e69c98425b676e", "score": "0.5947171", "text": "public function getClientId()\n {\n return $this->client_id;\n }", "title": "" }, { "docid": "b1fadaeb018e8b6d69e69c98425b676e", "score": "0.5947171", "text": "public function getClientId()\n {\n return $this->client_id;\n }", "title": "" }, { "docid": "37055227596451d9cd950a2ee0de14d4", "score": "0.5932597", "text": "public function accountExists($id)\n {\n return $this->entityManager->getRepository(RiotAccount::class)->findOneBy([\n 'encryptedRiotId' => $id,\n ]);\n }", "title": "" }, { "docid": "5237dce3021cbcf538a8858fe9c7d736", "score": "0.59301656", "text": "function getCustomerById($db,$id)\n{\n\t$req=$db->prepare('select * from client where idClient=:id');\n\t$req->bindValue(':id',$id);\n\t$req->execute();\n\t$resultNb=$req->rowCount();\n\n\tif($resultNb==1)\n\t{\n\t\t$res=$req->fetch(PDO::FETCH_ASSOC);\n\t\treturn array('nom' => $res[\"nom\"],\n\t\t\t\t\t\t'prenom' => $res[\"prenom\"],\n\t\t\t\t\t\t'adresse' => $res[\"adresse\"],\n\t\t\t\t\t\t'telephone' => $res[\"telephone\"],\n\t\t\t\t\t\t'email' => $res[\"email\"]);\n\n\t}\n\n\treturn null;\n}", "title": "" }, { "docid": "c1d7be7037e363fec2b1ec322c72a708", "score": "0.59283686", "text": "function getAccountName($account_id) {\n\tglobal $log, $adb;\n\t$log->debug('> getAccountName '.$account_id);\n\t$accountname = '';\n\tif (!empty($account_id)) {\n\t\t$result = $adb->pquery('select accountname from vtiger_account where accountid=?', array($account_id));\n\t\t$accountname = $adb->query_result($result, 0, 'accountname');\n\t}\n\t$log->debug('< getAccountName');\n\treturn $accountname;\n}", "title": "" }, { "docid": "20b341d87d2c531de76c8ec033db44ca", "score": "0.5921944", "text": "public function getAccount()\n {\n return $this->account;\n }", "title": "" }, { "docid": "20b341d87d2c531de76c8ec033db44ca", "score": "0.5921944", "text": "public function getAccount()\n {\n return $this->account;\n }", "title": "" }, { "docid": "20b341d87d2c531de76c8ec033db44ca", "score": "0.5921944", "text": "public function getAccount()\n {\n return $this->account;\n }", "title": "" }, { "docid": "20b341d87d2c531de76c8ec033db44ca", "score": "0.5921944", "text": "public function getAccount()\n {\n return $this->account;\n }", "title": "" }, { "docid": "20b341d87d2c531de76c8ec033db44ca", "score": "0.5921944", "text": "public function getAccount()\n {\n return $this->account;\n }", "title": "" }, { "docid": "20b341d87d2c531de76c8ec033db44ca", "score": "0.5921944", "text": "public function getAccount()\n {\n return $this->account;\n }", "title": "" }, { "docid": "20b341d87d2c531de76c8ec033db44ca", "score": "0.5921944", "text": "public function getAccount()\n {\n return $this->account;\n }", "title": "" }, { "docid": "508f2588af5cc4891b1ad686035cad5c", "score": "0.591558", "text": "public function get_oauth_clients_by_client_id ($client_id = '') {\n\n\t\t$database = $this->db->select('*')\n\t\t\t\t\t->from('oauth_clients')\n\t\t\t\t\t->where('client_id', $client_id)\n\t\t\t\t\t->get();\n\n\t\tif ($database->num_rows() > 0) {\n\t\t\t$database = $database->result();\n\t\t\treturn $database[0];\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "b2007e5f8133e9c9e09391fd05a760f4", "score": "0.5915066", "text": "public static function fetch_account($params)\n {\n list($account_id, $params) = self::unwrapParam($params, 'account_id');\n\n return self::make_request(\"accounts/$account_id\", $params);\n }", "title": "" }, { "docid": "a82eb1ee54cf5c01d88b3daf795254ec", "score": "0.59142846", "text": "function getClient($clientEmail) {\n $db = acmeConnect();\n $sql = 'SELECT clientId, clientFirstName, clientLastName, clientEmail, clientLevel, clientPassword FROM clients WHERE clientEmail = :clientEmail';\n $stmt = $db->prepare($sql);\n $stmt->bindValue(':clientEmail', $clientEmail, PDO::PARAM_STR);\n $stmt->execute();\n $clientData = $stmt->fetch(PDO::FETCH_ASSOC);\n $stmt->closeCursor();\n return $clientData;\n}", "title": "" }, { "docid": "d2905fb9ec5695ea727633c5b4c6636b", "score": "0.59098285", "text": "function getClientInfo($clientId){\n $CI =& get_instance();\n $where = array('client_id' => $clientId);\n $clientDetails = $CI->common_model->getRecord(TBL_CLIENT_MASTER, array('client_name', 'address1', 'address2'), $where);\n if($clientDetails) {\n return $clientDetails;\n } else {\n return false;\n }\n}", "title": "" }, { "docid": "1961f604a6499e84485186f85c8a6713", "score": "0.5900808", "text": "public static function getAccount($accountId) {\r\n\t\t\t$acc = ServiceProvider::getInstance()->db->fetchRow('SELECT * FROM '.ServiceProvider::getInstance()->db->prefix.'bookie_accounts WHERE id =\\''.ServiceProvider::getInstance()->db->escape($accountId).'\\';');\r\n\t\t\tif($acc){\r\n\t\t\t\t$ao = new Account($acc['user_id'], $acc['notes'], $acc['name']);\r\n\t\t\t\t$ao->setId($acc['id']);\r\n\t\t\t\treturn $ao;\r\n\t\t\t} else {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "5cd35e6f11f9e25d9ba20242307a7658", "score": "0.5899549", "text": "public function getForCustomer($id);", "title": "" }, { "docid": "edc342956dd0a9a1491406e406630e93", "score": "0.58901113", "text": "public function getPerson(){ return ClientData::getById($this->CLIENTE_ID);}", "title": "" }, { "docid": "218c4cb766a0c64108bdac495fcf09cb", "score": "0.58896786", "text": "function getClient($clientEmail){\n $db = acmeConnect();\n $sql = 'SELECT clientId, clientFirstname, clientLastname, clientEmail, clientLevel, clientPassword FROM clients WHERE clientEmail = :email';\n $stmt = $db->prepare($sql);\n $stmt->bindValue(':email', $clientEmail, PDO::PARAM_STR);\n $stmt->execute();\n $clientData = $stmt->fetch(PDO::FETCH_ASSOC);\n $stmt->closeCursor();\n return $clientData;\n}", "title": "" }, { "docid": "b20f96c020ab6dc3e862207a59d0157a", "score": "0.5886724", "text": "public function getIbanIdClient() {\n return $this->ibanIdClient;\n }", "title": "" }, { "docid": "1f085b358122ee86b9e5e3d4a2bc1892", "score": "0.588669", "text": "public function getClient($id = null): ClientInterface;", "title": "" }, { "docid": "bd3398cce50d827d1591fef921105e21", "score": "0.5880463", "text": "public function show($id)\n {\n return Client::where('id', $id)->get();\n }", "title": "" }, { "docid": "e314e6e05c155df016391f57cfef18ca", "score": "0.58803535", "text": "public function getAccount() {\n return $this->account;\n }", "title": "" }, { "docid": "576c75aa7593e03b12198b89f6134bd6", "score": "0.58772963", "text": "public function account($id)\n {\n if ($this->isDifferentMonth()) {\n return $this->builder->whereHas('store', function ($query) use ($id){\n return $query->where('stores.account_id', $id);\n });\n }\n return $this->builder->where('account_id', $id);\n }", "title": "" }, { "docid": "fc627c2601b98fee622d50a8370e338f", "score": "0.58668315", "text": "public function getAccount($ledger_id){\r\n \r\n $STM2 = $this->connect->Prepare(\"SELECT * FROM tbl_accounts AS account JOIN tbl_general_ledger AS ledger ON account.ACCOUNT_ID=ledger.ACCOUNT_ID WHERE ledger.ACCOUNT_ID='$ledger_id' ORDER BY account.ACCOUNT_NAME ASC \");\r\n $result=$this->connect->Execute($STM2);\r\n $rtmt=$result->FetchNextObject();\r\n \r\n return $rtmt->ACCOUNT_NAME;\r\n }", "title": "" }, { "docid": "46f495cc245adf13d899cd8ee7f919ae", "score": "0.5866409", "text": "public static function read_GetUserAccount(string $type, string $id){\n return DB::select(\"SELECT * FROM \" . config('laravelsubauth')[$type]['table'] . \" WHERE \" .\n config('laravelsubauth')[$type]['id'] . \" = ?\", [$id]);\n }", "title": "" }, { "docid": "c8423059a0a32c7c132bcdc80bcd34ab", "score": "0.5863854", "text": "function getClienteById($id)\n\t{\n\t\t$this->db->limit(1);\n\t\t$this->db->where('idCliente',$id);\n\t\t$query = $this->db->get('clientes');\n return $query->result();\n\t}", "title": "" }, { "docid": "f34d6c6200f30ca4488b2dd201e9138d", "score": "0.5860228", "text": "public static function account_find_by_id($account_id){\n\t\t\tglobal $database;\n\n\t\t\t$sql = \"SELECT * FROM \" . self::$db_table . \" WHERE \";\n\t\t\t$sql .= \"id = {$account_id}\";\n\t\t\t$the_result_array = self::find_by_query($sql);\n\t\t\treturn !empty($the_result_array) ? array_shift($the_result_array) : false;\n\t\t\t\n\t\t}", "title": "" }, { "docid": "06a23c64bd7bea08354b27bf8250a382", "score": "0.5845501", "text": "public function getOne($id)\n {\n return\n DB::table('providers_credentials')\n ->select(\n 'id',\n 'provider_name as providerName',\n 'credential_code as credentialCode'\n )\n ->join('countries', 'countries.code', '=', 'country_code')\n ->where([\n ['tenant_id', $this->requester->getTenantId()],\n ['company_id', $this->requester->getCompanyId()],\n ['id', '=', $id]\n ])\n ->orderBy('eff_end', 'DESC')\n ->first();\n }", "title": "" }, { "docid": "ea8e988a1b7d9e4f984ebad98dff5fb6", "score": "0.58426946", "text": "public function getAccountId() {\n return $this->scopeConfig->getValue(self::XML_PATH_ACCOUNT, \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "title": "" }, { "docid": "26bfd338cb0873e764f09cf10b025302", "score": "0.584194", "text": "private function getAccount(string $accountId)\n {\n $locationModel = new GmbLocationModel($this->dbService, $this->logger);\n $account = $locationModel->getAccount($accountId);\n return $account;\n }", "title": "" } ]
a0ab0a09bd7e0b06f0a84e6f186f1ff2
Array of property to type mappings. Used for (de)serialization
[ { "docid": "13fae35bb8e4caa3b2503caed842c507", "score": "0.0", "text": "public static function openAPITypes()\n {\n return self::$openAPITypes;\n }", "title": "" } ]
[ { "docid": "40b0c549bc1cd9d8f298539017d90434", "score": "0.6779591", "text": "public function getTypes()\n {\n $types = PropertyType::all();\n $values = [];\n foreach ($types as $key) {\n $values[] = $key->id;\n }\n return $values;\n }", "title": "" }, { "docid": "de1f25ddbb92f66219473a783b32f8ac", "score": "0.6607671", "text": "public function getTypes(): array\n {\n return $this->types;\n }", "title": "" }, { "docid": "84aa0a88840645910b9750c78fdd1486", "score": "0.65871716", "text": "public static function getTypesMap(): array\n {\n return self::$typesMap;\n }", "title": "" }, { "docid": "bb1b2f5f6a7012b323aaa76a51b2f50e", "score": "0.6517233", "text": "static protected function getPropertyTypes($typeArray) {\n\n\t\t$types = array();\n\t\t// Types are mapped to this entry by typoscript\n\t\t// (e.g. postProcessor.1.properties.1.type.1 = WORK)\n\t\t$typeKeys = \\TYPO3\\CMS\\Core\\TypoScript\\TemplateService::sortedKeyList($typeArray);\n\n\t\tforeach ($typeKeys as $typeKey) {\n\t\t\tif (!intval($typeKey) || strpos($typeKey, '.') !== FALSE) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$types[] = strtoupper($typeArray[$typeKey]);\n\t\t}\n\t\treturn $types;\n\t}", "title": "" }, { "docid": "7e060f279940dcea6f365c4df4129ae3", "score": "0.64863145", "text": "public function types()\n {\n return [\n 'id' => [\n 'type' => 'number',\n 'label' => 'Id',\n 'regex' => '',\n 'overview' => false,\n 'create' => false,\n 'edit' => false,\n ],\n ];\n }", "title": "" }, { "docid": "3d35e1ea35d44f0873f08056e0f976b1", "score": "0.6476572", "text": "public function getTypes() : array\n {\n return \\array_map(function ($t) {\n return $t instanceof self ? $t : new self([$t]);\n }, $this->types);\n }", "title": "" }, { "docid": "7fb32a206e3a9a6a3d84e44c3d159915", "score": "0.6432348", "text": "public static function getPropertyTypes() {\n\t\treturn self::$PROPERTY_TYPES;\n\t}", "title": "" }, { "docid": "7fb32a206e3a9a6a3d84e44c3d159915", "score": "0.6432348", "text": "public static function getPropertyTypes() {\n\t\treturn self::$PROPERTY_TYPES;\n\t}", "title": "" }, { "docid": "7fb32a206e3a9a6a3d84e44c3d159915", "score": "0.6432348", "text": "public static function getPropertyTypes() {\n\t\treturn self::$PROPERTY_TYPES;\n\t}", "title": "" }, { "docid": "7d1207dd7cff4c4241d71bab646e8a6f", "score": "0.6400341", "text": "public function getTypeMap()\n {\n }", "title": "" }, { "docid": "dae7b58e2cef6aa648fcd5dc45588e8e", "score": "0.6399011", "text": "function cre_get_property_types_array()\n\t{\n\t\t$types_array = array();\n\t\t$type_terms = get_terms('property-type');\n\t\tif (!empty($status_terms) && is_array($status_terms)) {\n\t\t\tforeach ($type_terms as $type_term) {\n\t\t\t\t$types_array[$type_term->slug] = $type_term->name;\n\t\t\t}\n\t\t}\n\t\treturn $types_array;\n\t}", "title": "" }, { "docid": "49e7b86efabb73d6983d5a192080e902", "score": "0.62290716", "text": "public function getTypeMap()\n {\n return $this->typeMap;\n }", "title": "" }, { "docid": "03b34268f5c6f7f0f21c44388740a434", "score": "0.61848605", "text": "public function types()\n {\n return [\n 'id' => [\n 'type' => 'number',\n 'label' => 'Id',\n 'regex' => '',\n 'overview' => false,\n 'create' => false,\n 'edit' => false,\n ],\n 'requests' => [\n 'type' => 'number',\n 'label' => trans('hack::modules.not_found.requests'),\n 'regex' => '',\n 'create' => false,\n 'edit' => false,\n ],\n 'slug' => [\n 'type' => 'text',\n 'label' => trans('hack::modules.not_found.slug'),\n 'regex' => '',\n ],\n 'redirect' => [\n 'type' => 'text',\n 'label' => trans('hack::modules.not_found.redirect'),\n 'regex' => 'required',\n ],\n 'referer' => [\n 'type' => 'text',\n 'label' => trans('hack::modules.not_found.referer'),\n 'regex' => '',\n 'create' => false,\n 'edit' => false,\n ],\n ];\n }", "title": "" }, { "docid": "9a0a51e3acd773203bb5e9163a87ae87", "score": "0.6181703", "text": "public function getTypes(): array;", "title": "" }, { "docid": "de088d1268bcf6fd9aeb3f49f1001450", "score": "0.61758006", "text": "public function getMappedTypes()\n {\n return $this->mappedTypes;\n }", "title": "" }, { "docid": "9f6f6c335f1d8d9398ed49fc62976409", "score": "0.61690664", "text": "public function getImageTypes()\n\t{\n\t\treturn json_decode(json_encode($this->types));\n\t}", "title": "" }, { "docid": "91e77ca9d274ace8fcac7dde28338d11", "score": "0.6134249", "text": "function getTypes() {\n\t\treturn $this->types;\n\t}", "title": "" }, { "docid": "067bcbdb30fb4744e6b06899f7d04548", "score": "0.612805", "text": "public function mapping(): array\n {\n return [\n $this->getType() => [\n '_source' => [\n 'enabled' => true,\n ],\n 'properties' => $this->properties(),\n ],\n ];\n }", "title": "" }, { "docid": "4af539c32e3178b0f6789c2dee1e0ffe", "score": "0.6084183", "text": "public function getMappingWithType()\n {\n $mappedAttributes = array();\n foreach($this as $mapping) {\n if (!isset($mappedAttributes[$mapping->getEmvAttributeType()])) {\n $mappedAttributes[$mapping->getEmvAttributeType()] = array();\n }\n\n $mappedAttributes[$mapping->getEmvAttributeType()][$mapping->getEmvAttribute()] = $mapping->getMageAttribute();\n }\n\n return $mappedAttributes;\n }", "title": "" }, { "docid": "7173a5e54afd0b85906d981b83d8a408", "score": "0.606316", "text": "public function get_types() {\n\t\treturn self::$types;\n\t}", "title": "" }, { "docid": "69cca26b55fdeb8bc9a12703e7c78c27", "score": "0.6043802", "text": "protected function getTypes() {}", "title": "" }, { "docid": "bf608f6aeed91d367cad54f68cb44415", "score": "0.60225236", "text": "public static function getTypes()\n {\n return [\n ModelRegistry::TRANSACTION => ModelRegistry::getById(ModelRegistry::TRANSACTION)->label,\n ModelRegistry::PRODUCT => ModelRegistry::getById(ModelRegistry::PRODUCT)->label,\n ];\n }", "title": "" }, { "docid": "fb58801cdc3d9ce214ebd03864ee4cbf", "score": "0.6003993", "text": "public function validPropertyTypes()\n {\n return [\n ['integer'],\n ['int'],\n ['float'],\n ['boolean'],\n ['bool'],\n ['string'],\n ['DateTime'],\n ['array'],\n ['ArrayObject'],\n ['SplObjectStorage'],\n ['Neos\\Flow\\Foo'],\n ['\\Neos\\Flow\\Bar'],\n ['\\Some\\Object'],\n ['SomeObject'],\n ['array<string>'],\n ['array<Neos\\Flow\\Baz>'],\n ['?string'],\n ['null|string'],\n ['string|null'],\n ['?\\Some\\Object'],\n ['\\Some\\Object|null'],\n ['?array<Neos\\Flow\\Baz>'],\n ['null|array<Neos\\Flow\\Baz>']\n ];\n }", "title": "" }, { "docid": "1af6376536a897fc3532c432830f075f", "score": "0.59748334", "text": "public function getTypes()\n {\n return $this->getData(self::TYPES);\n }", "title": "" }, { "docid": "15e1e39a227b10de5172ea5ce9da762a", "score": "0.59567225", "text": "public function getTypeList()\n {\n $result = Type::get([\"_id\",\"type\"]);//->pluck(\"type\", \"_id\");\n return $this->resultJson($result);\n }", "title": "" }, { "docid": "cbadf1cec8371645d023d3f8a4f4c969", "score": "0.594677", "text": "public static function dataTypeMap()\n {\n return self::getArrayBaseValue('eloquent_type_to_method');\n }", "title": "" }, { "docid": "2490c85dc136768a4c724a5c481b89b0", "score": "0.5931233", "text": "public function types()\n {\n $types = $this->Taxonomies->Vocabularies->Types->find('all');\n foreach ($types as $type) {\n $this->typesForLayout[$type->alias] = $type;\n }\n }", "title": "" }, { "docid": "0806d0bdf12d4e8f54fde418032e2876", "score": "0.5930587", "text": "public function toArray()\n {\n $data = parent::toArray();\n if (isset($this->type)) {\n $data['type'] = $this->type;\n }\n return $data;\n }", "title": "" }, { "docid": "ad9b743fc5fcb50b71cffe01dbfe4577", "score": "0.58945465", "text": "protected function getPropertyTypeAttributes()\n {\n return array_merge(\n $this->getCommonAttributes(),\n array(\n 'multiple' => array('values' => array('*', 'mul', 'multiple'), 'variant' => true),\n 'queryops' => array('values' => array('qop', 'queryops'), 'variant' => true), // Needs special handling !\n 'nofulltext' => array('values' => array('nof', 'nofulltext'), 'variant' => true),\n 'noqueryorder' => array('values' => array('nqord', 'noqueryorder'), 'variant' => true),\n )\n );\n }", "title": "" }, { "docid": "6519c558948a1030d30741b038b90010", "score": "0.5880461", "text": "public static function validTypes(): array\n {\n return array_keys(self::typeMapping());\n }", "title": "" }, { "docid": "8c905d621d6fe3355f53defb1733ae1c", "score": "0.58776486", "text": "public function getTypesList()\n {\n return ArrayHelper::map($this->getTypes(), 'name', 'label');\n }", "title": "" }, { "docid": "870c36cbf79bb4e5dca7cc625577c13c", "score": "0.58701736", "text": "public function getTypeMapper();", "title": "" }, { "docid": "2fcd7022c714fdf0a8e558f6afa0945b", "score": "0.5863934", "text": "public static function mapping()\r\n {\r\n return [\r\n self::BUS_TICKET_NAME => self::BUS_TICKET_CLASS,\r\n self::AIRPORTBUS_TICKET_NAME => self::AIRPORTBUS_TICKET_CLASS,\r\n self::TRAIN_TICKET_NAME => self::TRAIN_TICKET_CLASS,\r\n self::FLIGHT_TICKET_NAME => self::FLIGHT_TICKET_CLASS,\r\n ];\r\n }", "title": "" }, { "docid": "0f94cd339f2e4f85a8707d47a0f6dd04", "score": "0.5847603", "text": "public function getTypes()\n {\n return array_values($this->resourceTypes);\n }", "title": "" }, { "docid": "c734061d06a88f6d6ff889a368019f78", "score": "0.5828594", "text": "public function dataTypeMap()\n {\n return config('codegenerator.eloquent_type_to_method');\n }", "title": "" }, { "docid": "fe3a44c69fe144d781ff4cb1345160aa", "score": "0.58253163", "text": "public static function getClassMap()\n {\n return [\n static::TYPE_MUSEUM => [\n MultipleFormInterface::FORM_FULL => '\\Triquanta\\IziTravel\\DataType\\FullMuseum',\n MultipleFormInterface::FORM_COMPACT => '\\Triquanta\\IziTravel\\DataType\\CompactMuseum',\n ],\n static::TYPE_TOUR => [\n MultipleFormInterface::FORM_FULL => '\\Triquanta\\IziTravel\\DataType\\FullTour',\n MultipleFormInterface::FORM_COMPACT => '\\Triquanta\\IziTravel\\DataType\\CompactTour',\n ],\n static::TYPE_EXHIBIT => [\n MultipleFormInterface::FORM_FULL => '\\Triquanta\\IziTravel\\DataType\\FullExhibit',\n MultipleFormInterface::FORM_COMPACT => '\\Triquanta\\IziTravel\\DataType\\CompactExhibit',\n ],\n static::TYPE_COLLECTION => [\n MultipleFormInterface::FORM_FULL => '\\Triquanta\\IziTravel\\DataType\\FullCollection',\n MultipleFormInterface::FORM_COMPACT => '\\Triquanta\\IziTravel\\DataType\\CompactCollection',\n ],\n static::TYPE_STORY_NAVIGATION => [\n MultipleFormInterface::FORM_FULL => '\\Triquanta\\IziTravel\\DataType\\FullStoryNavigation',\n MultipleFormInterface::FORM_COMPACT => '\\Triquanta\\IziTravel\\DataType\\CompactStoryNavigation',\n ],\n static::TYPE_TOURIST_ATTRACTION => [\n MultipleFormInterface::FORM_FULL => '\\Triquanta\\IziTravel\\DataType\\FullTouristAttraction',\n MultipleFormInterface::FORM_COMPACT => '\\Triquanta\\IziTravel\\DataType\\CompactTouristAttraction',\n ],\n ];\n }", "title": "" }, { "docid": "8a00f87d83e6ec6fe1fb7c21d5cc44a1", "score": "0.5804292", "text": "public static function getTypes(): array\n {\n return self::getRelevancyTypes();\n }", "title": "" }, { "docid": "74b10bbecc58930b9bbc24e3bbe8fd4b", "score": "0.5796741", "text": "public static function types()\n {\n return self::$types;\n }", "title": "" }, { "docid": "3a78ab2dc0c90cc51aaee7047dedda4b", "score": "0.57743573", "text": "public function getTypes()\n {\n return array_keys($this->types);\n }", "title": "" }, { "docid": "f6f944ddf2061d361b99650dae7d4910", "score": "0.5769621", "text": "public function typeProvider()\n {\n return [\n ['Int', IntType::class],\n ['SortOrderDirection', MabeEnumType::class],\n ['MembershipStatusType', MabeEnumType::class]\n ];\n }", "title": "" }, { "docid": "128cca40909eb67cbcbded3a4f3f8a41", "score": "0.57690567", "text": "public function types() {\n\t\treturn $this->getEntity($this->invokeGet(\"_types\"));\n\t}", "title": "" }, { "docid": "e03ccd10cde7ba36babb94699f747b04", "score": "0.57568073", "text": "public static function getArrayTypes() {\n return array(\n self::TYPE_NEWS => DomainConst::CONTENT00472,\n self::TYPE_OTHER => DomainConst::CONTENT00031,\n );\n }", "title": "" }, { "docid": "347df676a0b176483ff36c3247c7f168", "score": "0.57505006", "text": "public function types(): array\n {\n return collect($this->modelSchemas)->map(function ($modelSchema) {\n return $modelSchema instanceof RootType\n ? $modelSchema\n : $this->registry->type($this->registry->getModelSchema($modelSchema)->typename());\n })->toArray();\n }", "title": "" }, { "docid": "1a76c6a771f8fe53106a6b3989dd4e0c", "score": "0.5736511", "text": "public function get_types()\n {\n }", "title": "" }, { "docid": "10c619145a068a578c8258f7726e76e2", "score": "0.5734564", "text": "public function invalidPropertyTypes()\n {\n return [\n ['string<string>'],\n ['int<Neos\\Flow\\Baz>']\n ];\n }", "title": "" }, { "docid": "a1ae6561f397c4ce16e49eee0578e45a", "score": "0.57273227", "text": "public static function getTypes()\n\t{\n\t\t\n\t\treturn [\n\t\t\tself::TYPE_SHARES\t\t\t =>\t\"Shares\",\n\t\t\tself::TYPE_PROPERTY\t\t\t =>\t\"Property\",\n\t\t];\n\t\t\n\t}", "title": "" }, { "docid": "c681cf678a79524d73cd1d0e5910ca7a", "score": "0.5707013", "text": "public function get(): array\n {\n if ($this->types === []) {\n return self::$allowedTypes;\n }\n return $this->types;\n }", "title": "" }, { "docid": "27581f96b03f672c1d8fef5213b465e9", "score": "0.5693727", "text": "protected function loadPropertyTypes() {\n\t\tif (empty($this->cachedPropertyTypes)) {\n\t\t\t$completePropertyTypeConfiguration = $this->configurationManager->getConfiguration('PropertyTypes');\n\t\t\tforeach (array_keys($completePropertyTypeConfiguration) as $propertyTypeName) {\n\t\t\t\t$this->loadPropertyType($propertyTypeName, $completePropertyTypeConfiguration);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6935f3b8388bcbec1fab47988b6af67f", "score": "0.5690329", "text": "protected function get_types() : array {\n\t\treturn Animation_Util::get_types();\n\t}", "title": "" }, { "docid": "c42a13fe461a13564c06e5c933db4a86", "score": "0.56502235", "text": "public function getTypes()\n {\n $types = [];\n $validCustomFieldTypes = $this->getCustomFieldTypes();\n if (empty($validCustomFieldTypes)) {\n return $types;\n }\n foreach ($validCustomFieldTypes as $k => $customField) {\n $types[$k] = $customField['title'];\n }\n return $types;\n }", "title": "" }, { "docid": "f8a44f330ae353676632d45452636a47", "score": "0.5644915", "text": "public function getKnownTypes(): array;", "title": "" }, { "docid": "f8fd5158ac0b471177bd3813f9c6d855", "score": "0.56430435", "text": "public static function getTypesList()\n {\n return ArrayHelper::map(Yii::$app->get('cms')->getPageTypes(), 'type', 'name');\n }", "title": "" }, { "docid": "4635e0cb265ec517b34c0c8146a460d6", "score": "0.563402", "text": "public function getPropertyTypes()\n\t{\n\t\treturn $this->hasOne(PropertyTypes:: className(), ['id' => 'property_type_id']);\n\t}", "title": "" }, { "docid": "b23ca2c45b2603f1b3ba67f9dc54054b", "score": "0.5630481", "text": "public static function get_types()\n {\n return self::$TYPES;\n }", "title": "" }, { "docid": "9cae48a3760a198dd231395c365cc3b0", "score": "0.5613506", "text": "public static function get_target_types() {\n return self::$mapping;\n }", "title": "" }, { "docid": "6a59b8a81190a50d0d279ed651e02ecf", "score": "0.56080776", "text": "public function toArray(): array\n {\n return [\n 'type' => self::typeToString($this->type),\n 'required' => $this->required,\n 'list' => $this->list,\n 'hidden' => $this->hidden\n ];\n }", "title": "" }, { "docid": "f576e9f2414e128c0327a24e85adb499", "score": "0.5592802", "text": "public static function getDataTypes(){\n\t\t\treturn array( \"id\" => \"\",\n\t\t\t\t\t\t\t\"time\" => \"INT\",\n\t\t\t\t\t\t\t\"ident_key\" => \"CHAR(255)\",\n\t\t\t\t\t\t\t\"json\" => \"TEXT\",\n\t\t\t\t\t\t\t\"active\" => \"BOOLEAN DEFAULT 1\");\n\t\t}", "title": "" }, { "docid": "7df00ff75fb4174cd04ebc45d7d3ef60", "score": "0.55915767", "text": "public function types()\n {\n return [\n static::TYPE_APP,\n static::TYPE_GALLERY,\n static::TYPE_PHOTO,\n static::TYPE_PLAYER,\n static::TYPE_PRODUCT,\n static::TYPE_SUMMARY,\n static::TYPE_SUMMARY_LARGE_IMAGE,\n ];\n }", "title": "" }, { "docid": "6c68a032e533ccef32d90ab53f87e885", "score": "0.5585394", "text": "public static function types(): array\n {\n $all = self::getAll();\n\n return array_keys($all);\n }", "title": "" }, { "docid": "a4a53c302cc937e9d2c80f00379bdeca", "score": "0.55845726", "text": "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'recommendedActions' => fn(ParseNode $n) => $o->setRecommendedActions($n->getCollectionOfObjectValues([RecommendedAction::class, 'createFromDiscriminatorValue'])),\n 'resolvedTargetsCount' => fn(ParseNode $n) => $o->setResolvedTargetsCount($n->getIntegerValue()),\n 'simulationEventsContent' => fn(ParseNode $n) => $o->setSimulationEventsContent($n->getObjectValue([SimulationEventsContent::class, 'createFromDiscriminatorValue'])),\n 'trainingEventsContent' => fn(ParseNode $n) => $o->setTrainingEventsContent($n->getObjectValue([TrainingEventsContent::class, 'createFromDiscriminatorValue'])),\n ];\n }", "title": "" }, { "docid": "1670129c9755e93dfd798604e2804853", "score": "0.558386", "text": "protected static function _getDataTypes()\n {\n return [];\n }", "title": "" }, { "docid": "9f67ccdd52559ae997d9d4c0738acc5e", "score": "0.55815333", "text": "public function getFieldTypeClasses() : array\n {\n return [DateOrTimeRangeType::class];\n }", "title": "" }, { "docid": "79af4b29d542720f11382e669fbcdecf", "score": "0.55776054", "text": "public function getTypes()\n {\n $oDb = Factory::service('Database');\n $oResult = $oDb->query('SHOW COLUMNS FROM `' . $this->table . '` LIKE \"type\"')->row();\n $sTypes = $oResult->Type;\n $sTypes = preg_replace('/enum\\((.*)\\)/', '$1', $sTypes);\n $sTypes = str_replace(\"'\", '', $sTypes);\n $aTypes = explode(',', $sTypes);\n\n $aOut = [];\n\n foreach ($aTypes as $sType) {\n $aOut[$sType] = ucwords(strtolower($sType));\n }\n\n return $aOut;\n }", "title": "" }, { "docid": "e5758adc00379621902dc5c55f6555f4", "score": "0.55675316", "text": "public static function types()\n\t{\n\t\t$states = array(\n\t\t\t'blog' => __('Blog'),\n\t\t\t'page' => __('Page'),\n\t\t\t'user' => __('User')\n\t\t);\n\n\t\t$values = Module::action('gleez_types', $states);\n\n\t\treturn $values;\n\t}", "title": "" }, { "docid": "69473346a29b5561bfb39c1abdd27f65", "score": "0.55482644", "text": "protected static function getPossibleVarTypes() {\n\t\treturn [\n\t\t\tPropertiesInterface::DTYPE_DEP_CURRENCY => CurrencyType::class,\n\t\t\tPropertiesInterface::DTYPE_DEP_EMAIL => EmailType::class,\n\t\t\tPropertiesInterface::DTYPE_DEP_FILE => FileType::class,\n\t\t\tPropertiesInterface::DTYPE_DEP_FORM_SECTION => FormSectionType::class,\n\t\t\tPropertiesInterface::DTYPE_DEP_FORM_SECTION_CLOSE => FormSectionCloseType::class,\n\t\t\tPropertiesInterface::DTYPE_DEP_IMAGE => ImageType::class,\n\t\t\tPropertiesInterface::DTYPE_DEP_MTIME => MtimeType::class,\n\t\t\tPropertiesInterface::DTYPE_DEP_SOURCE => SourceType::class,\n\t\t\tPropertiesInterface::DTYPE_DEP_STIME => StimeType::class,\n\t\t\tPropertiesInterface::DTYPE_DEP_TIME_ONLY => TimeOnlyType::class,\n\t\t\tPropertiesInterface::DTYPE_DEP_TXTBOX => TxtboxType::class,\n\t\t\tPropertiesInterface::DTYPE_DEP_URL => UrlType::class,\n\t\t\tPropertiesInterface::DTYPE_DEP_URLLINK => UrllinkType::class,\n\t\t\tPropertiesInterface::DTYPE_ARRAY => ArrayType::class,\n\t\t\tPropertiesInterface::DTYPE_BOOLEAN => BooleanType::class,\n\t\t\tPropertiesInterface::DTYPE_DATETIME => DateTimeType::class,\n\t\t\tPropertiesInterface::DTYPE_FILE => \\Imponeer\\Properties\\Types\\FileType::class,\n\t\t\tPropertiesInterface::DTYPE_FLOAT => FloatType::class,\n\t\t\tPropertiesInterface::DTYPE_INTEGER => IntegerType::class,\n\t\t\tPropertiesInterface::DTYPE_LIST => ListType::class,\n\t\t\tPropertiesInterface::DTYPE_OBJECT => ObjectType::class,\n\t\t\tPropertiesInterface::DTYPE_OTHER => OtherType::class,\n\t\t\tPropertiesInterface::DTYPE_STRING => StringType::class\n\t\t];\n\t}", "title": "" }, { "docid": "969f62aab1520864df58175a9df65096", "score": "0.5542044", "text": "public function getTypes() {\n\t\treturn array_keys($this->tca['types']);\n\t}", "title": "" }, { "docid": "50b7e8169a31e9e77e8ce23d52880588", "score": "0.5541277", "text": "public static function getTypes() {\n\t\treturn [\n\t\t\t'text' => self::RESOURCE_TYPE_TEXT,\n\t\t\t'img' => self::RESOURCE_TYPE_IMG\n\t\t];\n\t}", "title": "" }, { "docid": "b5ca05f6862d33b58bc6b63ec9131275", "score": "0.55396307", "text": "function FieldTypesArray() {}", "title": "" }, { "docid": "1e3edd637f97d3b4b49acada01c2d545", "score": "0.55357647", "text": "public function getAttributesTypeArray() {\r\n return $this->attributesTypeArray;\r\n }", "title": "" }, { "docid": "9b2cdc149c94846d7fe54ed3bc4f0c43", "score": "0.55281776", "text": "public function getMapPaymentTypes()\n {\n return $this->map_payment_types;\n }", "title": "" }, { "docid": "3198354c2b58022e0b276936ec336524", "score": "0.5522627", "text": "private function &getSerializableAttributeTypesFromCache(): array {\n $key = \\get_class($this);\n if (!isset(self::$__attrTypeCache[$key])) {\n self::$__attrTypeCache[$key] = $this->getSerializableAttributeTypes();\n }\n return self::$__attrTypeCache[$key];\n }", "title": "" }, { "docid": "e4c90bbce2c2a0d19de21ae93736750c", "score": "0.5493003", "text": "public function get_types() {\n return $this->fields_types;\n }", "title": "" }, { "docid": "e593bb656a1a1034bfb14a6b9cd560d6", "score": "0.5491183", "text": "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'packageType' => fn(ParseNode $n) => $o->setPackageType($n->getEnumValue(Win32LobAppMsiPackageType::class)),\n 'productCode' => fn(ParseNode $n) => $o->setProductCode($n->getStringValue()),\n 'productName' => fn(ParseNode $n) => $o->setProductName($n->getStringValue()),\n 'productVersion' => fn(ParseNode $n) => $o->setProductVersion($n->getStringValue()),\n 'publisher' => fn(ParseNode $n) => $o->setPublisher($n->getStringValue()),\n 'requiresReboot' => fn(ParseNode $n) => $o->setRequiresReboot($n->getBooleanValue()),\n 'upgradeCode' => fn(ParseNode $n) => $o->setUpgradeCode($n->getStringValue()),\n ];\n }", "title": "" }, { "docid": "61b1378b4ec04f9400f9c9cfcb46e34f", "score": "0.5490826", "text": "protected function get_array_field_types() {\n\t\treturn array( 'multicheck' );\n\t}", "title": "" }, { "docid": "736ba54dedf1801897788a65c9c53930", "score": "0.5490577", "text": "function getFieldTypesAction()\n {\n $this->_helper->viewRenderer->setNoRender();\n Zend_Loader::loadClass('Table_FieldType');\n Zend_Loader::loadClass('FieldType');\n $fieldTypesTable = new Table_FieldType();\n $rows = $fieldTypesTable->fetchAll();\n $fieldTypes = array();\n $i = 0;\n foreach ($rows as $row) \n {\n $fieldTypes[$i] = new FieldType($row);\n ++$i;\n }\n header('Content-Type: application/json; charset=utf8');\n echo Zend_Json::encode($fieldTypes);\n }", "title": "" }, { "docid": "c671b4fbd3850346c18ecdc9947f7f98", "score": "0.54898953", "text": "protected function getTypeMapping()\n {\n return self::$mysqlTypeMap;\n }", "title": "" }, { "docid": "3dab6d187562227cf779218759c4caec", "score": "0.5489428", "text": "public static function types() {\n\t\treturn array_keys(static::_types());\n\t}", "title": "" }, { "docid": "4ae78f7180576357a6d9335888f62153", "score": "0.54841906", "text": "public static function getTypeArray() {\n return array( \n 'to' => 'EthD20',\n 'from' => 'EthD20',\n 'gas' => 'EthQ',\n 'gasPrice' => 'EthQ',\n 'value' => 'EthQ',\n 'data' => 'EthD',\n 'nonce' => 'EthQ',\n );\n }", "title": "" }, { "docid": "311ca7ceec51d900085b95b7f9e8ac90", "score": "0.5483675", "text": "public function getFieldTypeClasses() : array\n {\n return [TableType::class];\n }", "title": "" }, { "docid": "497b6fe4524f4f903d5aa625f5d99f9c", "score": "0.5483026", "text": "public function toArray(): array\n {\n return [\n 'name' => $this->name,\n 'type' => $this->type,\n ];\n }", "title": "" }, { "docid": "be21d9e818782eeaf98fe79d9c0c2352", "score": "0.5479314", "text": "public static function getTypeList()\n {\n return [\n self::TYPE_TEXT_FIELD => '',\n self::TYPE_DROP_DOWN => '',\n ];\n }", "title": "" }, { "docid": "e78381f799cb26365234bb757aeae985", "score": "0.5479115", "text": "public function propertySchemaProvider()\n {\n return [\n 'date' => [\n [\n 'type' => 'string',\n 'format' => 'date-time',\n ],\n TypesRegistry::dateTime(),\n ],\n 'int' => [\n [\n 'oneOf' => [\n [\n 'type' => 'null',\n ],\n [\n 'type' => 'integer',\n ]\n ],\n ],\n TypesRegistry::int(),\n ],\n 'bool' => [\n [\n 'oneOf' => [\n [\n 'type' => 'boolean',\n ],\n [\n 'type' => 'null',\n ]\n ],\n ],\n TypesRegistry::boolean(),\n ],\n 'float' => [\n [\n 'type' => 'number',\n ],\n TypesRegistry::float(),\n ],\n 'text' => [\n [\n 'type' => 'string',\n 'contentMediaType' => 'text/html',\n ],\n TypesRegistry::string(),\n ],\n 'unknown' => [\n [\n 'type' => 'sometype',\n ],\n TypesRegistry::string(),\n ],\n 'moreunknown' => [\n [\n 'unknown' => 'weirdtype',\n ],\n TypesRegistry::string(),\n ],\n ];\n }", "title": "" }, { "docid": "0b567e17f5109c3432360b405439bb56", "score": "0.54746664", "text": "public function getClassMap()\n {\n return array();\n }", "title": "" }, { "docid": "42c213753ec42abb433924f4a810f1b4", "score": "0.5474101", "text": "public function attributeCustomTypes()\n {\n $flagEnabled = \\common\\components\\Consts::STATUS_ENABLED;\n return array(\n 'id' => array('data-options' => array('checkbox'=>'true'), 'key' => true),\n 'type' => array('width' => 100),\n 'office_id' => array('width' => 100),\n 'int_value' => array('width' => 100),\n 'float_value' => array('width' => 100),\n 'str_value' => array('width' => 100),\n 'flag' => array('width' => 100, 'formatter'=>\"function(value,row){ return '0x'+parseInt(value).toString(16); }\"),\n 'status' => array('width' => 80, 'sortable' => 'true',\n 'formatter' => \"function(value,row){ if (value == {$flagEnabled}) { return $.custom.lan.defaults.role.enabled; } else { return $.custom.lan.defaults.role.disabled; };}\"),\n 'edit_user_id' => array('width' => 100, 'sortable' => 'true', 'formatter' => \"function(value,row){ return row.edit_user_disp; }\"),\n 'created_at' => array('width' => 140, 'sortable' => 'true', 'formatter' => \"function(value,row){return $.custom.utils.humanTime(value);}\"),\n 'updated_at' => array('width' => 140, 'sortable' => 'true', 'formatter' => \"function(value,row){return $.custom.utils.humanTime(value);}\"),\n 'operation' => array('width' => 160, \n 'buttons' => array(\n ),\n ),\n );\n }", "title": "" }, { "docid": "28c0aac1f291cd182b058ffef3646a30", "score": "0.54619867", "text": "public function get_post_types() {\n\n\t\treturn [\n\t\t\tPost_Type_Movie::SLUG,\n\t\t];\n\n\t}", "title": "" }, { "docid": "034ed11176e471ac0a1de092de1069bd", "score": "0.5456936", "text": "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'attributeDestination' => fn(ParseNode $n) => $o->setAttributeDestination($n->getObjectValue([AccessPackageResourceAttributeDestination::class, 'createFromDiscriminatorValue'])),\n 'attributeName' => fn(ParseNode $n) => $o->setAttributeName($n->getStringValue()),\n 'attributeSource' => fn(ParseNode $n) => $o->setAttributeSource($n->getObjectValue([AccessPackageResourceAttributeSource::class, 'createFromDiscriminatorValue'])),\n 'id' => fn(ParseNode $n) => $o->setId($n->getStringValue()),\n 'isEditable' => fn(ParseNode $n) => $o->setIsEditable($n->getBooleanValue()),\n 'isPersistedOnAssignmentRemoval' => fn(ParseNode $n) => $o->setIsPersistedOnAssignmentRemoval($n->getBooleanValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n ];\n }", "title": "" }, { "docid": "67291084fc56fca59d6b223d66ea32b4", "score": "0.5456295", "text": "protected function loadTypes()\n {\n return array(\n new RecaptchaType(\n $this->app['salberts_recaptcha2.public_key'],\n $this->app['salberts_recaptcha2.enabled'],\n $this->app['salberts_recaptcha2.ajax'],\n $this->app['salberts_recaptcha2.locale_key']\n )\n );\n }", "title": "" }, { "docid": "16afb3311da30f030f1e26915a201c16", "score": "0.545254", "text": "public function getAllTypes() {\n if (empty($this->_data)) {\n $this->_load();\n }\n\n return $this->_data;\n }", "title": "" }, { "docid": "ebaa2650eb6373bda69b486a29d26c71", "score": "0.545176", "text": "public function jsonSerialize(): array\n {\n return ['$type' => strtr(ltrim(static::class, '\\\\'), '\\\\', '.')] + $this->args;\n }", "title": "" }, { "docid": "4c228cc2c0643174bab00be7e431e68a", "score": "0.54499793", "text": "public function transform(Type $type) : array\n {\n return [\n 'id' => (int) $type->id,\n 'name' => (string) $type->name,\n 'slug' => (string) $type->slug\n ];\n }", "title": "" }, { "docid": "b47a9b2f0f4a74b938117f2035fad2e9", "score": "0.54478484", "text": "public static function getTypes();", "title": "" }, { "docid": "fd27b94629971d83bfe06d80b3226e37", "score": "0.5443354", "text": "public function toArray()\n {\n return [\n 'type' => 'object',\n 'properties' => [\n 'email' => ['type' => 'string'],\n 'key' => ['type' => 'string'],\n 'name' => ['type' => 'string'],\n 'picture' => ['type' => 'string'],\n 'phone' => ['type' => 'string'],\n 'balance' => ['type' => 'integer', 'format' => 'int32'],\n 'codes' => ['type' => 'array', 'items' => ['type' => 'string']],\n 'order_comment_tracking_code' => ['type' => 'string'],\n 'title' => ['type' => 'string'],\n ],\n 'required' => ['email', 'key', 'name', 'phone', 'balance', 'codes', 'order_comment_tracking_code', 'title'],\n ];\n }", "title": "" }, { "docid": "2baca4dd5881e2ad4e6e7560bd17cb83", "score": "0.54349667", "text": "public function types() {\n\t\t\n\t\n\t}", "title": "" }, { "docid": "50b884366ea9eb58e3e277532bae46e1", "score": "0.5429377", "text": "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'file' => fn(ParseNode $n) => $o->setFile($n->getBinaryContent()),\n 'sensitiveTypeIds' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setSensitiveTypeIds($val);\n },\n ]);\n }", "title": "" }, { "docid": "b91834da842e18935be1ead12f5f9dcb", "score": "0.54292345", "text": "public function getInputFieldTypesJSON()\n {\n return json_encode($this->inputsCombine);\n }", "title": "" }, { "docid": "05a5137affe78f25e9044882ca7bf874", "score": "0.5425985", "text": "public static function swaggerTypes()\n {\n return [\n 'recipients' => 'string[]',\n 'result_action' => '\\Acronis\\Cloud\\Client\\Model\\Reports\\BulkPostResultAction',\n 'parameters' => '\\Acronis\\Cloud\\Client\\Model\\Reports\\BulkPostParameters',\n 'schedule' => '\\Acronis\\Cloud\\Client\\Model\\Reports\\BulkPostSchedule',\n 'generation_date' => 'string'\n ];\n }", "title": "" }, { "docid": "d54d03ba9fc90c00e479b0db0e916c44", "score": "0.54256964", "text": "public static function getArray() {\n if (self::$types == null) {\n self::$types = array (\n self::WF_PUBLISH => self::WF_PUBLISH_STR,\n self::WF_NOTIFY => self::WF_NOTIFY_STR,\n self::WF_SUCCESS_MESSAGE => self::WF_SUCCESS_MESSAGE_STR,\n self::WF_ERROR_MESSAGE => self::WF_ERROR_MESSAGE_STR,\n self::WF_FORM_ANALYTICS => self::WF_FORM_ANALYTICS_STR,\n self::WF_FIELD_ANALYTICS => self::WF_FIELD_ANALYTICS_STR,\n self::WF_NEXUS_STRATEGY => self::WF_NEXUS_STRATEGY_STR,\n self::WF_REDIRECT => self::WF_REDIRECT_STR,\n self::WF_FILE_DOWNLOAD => self::WF_FILE_DOWNLOAD_STR\n );\n }\n\n return self::$types;\n }", "title": "" }, { "docid": "48cc9c7fe8d5236fb3dcb1db8b93991f", "score": "0.5415472", "text": "public function toArray()\n {\n $type = $this->getType();\n $array = [\n 'type' => $type,\n ];\n if ('function' == $type) {\n $array['function'] = $this->getFunction();\n } else {\n $array['class'] = $this->getClass();\n $array['method'] = $this->getMethod();\n }\n return $array;\n }", "title": "" }, { "docid": "3ad50a98c07b57456ef2d9c04fec97d4", "score": "0.5406518", "text": "public function toArray(): array\n {\n return $this->_mapping;\n }", "title": "" }, { "docid": "a5aa67203e8c83cb60974ee06eef86fe", "score": "0.54050595", "text": "public function types() {\n return $this->hasMany(Type::class);\n }", "title": "" }, { "docid": "9a5ae51a253306d66e849d943bc4e0be", "score": "0.5404304", "text": "protected function getRuleTypesMethodMap(): array\n {\n return [\n //text validator\n 'text' => 'validateText',\n\n // date validator\n 'date' => 'validateDate',\n\n //integer validation methods\n 'int' => 'validateInteger',\n 'pint' => 'validatePInteger',\n 'nint' => 'validateNInteger',\n\n //number validation methods\n 'float' => 'validateFloat',\n 'pfloat' => 'validatePFloat',\n 'nfloat' => 'validateNFloat',\n\n //boolean validation\n 'bool' => '',\n\n //email validation\n 'email' => 'validateEmail',\n\n //url validation\n 'url' => 'validateURL',\n\n //choice validation\n 'choice' => 'validateChoice',\n\n //range validation\n 'range' => 'validateRange',\n\n //file validation\n 'file' => 'validateFile',\n\n //image file validation\n 'image' => 'validateImage',\n\n //audio file validation\n 'audio' => 'validateAudio',\n\n //video file validation\n 'video' => 'validateVideo',\n\n //media file validation\n 'media' => 'validateMedia',\n\n //document file validation\n 'document' => 'validateDocument',\n\n 'archive' => 'validateArchive',\n\n //password validation\n 'password' => 'validatePassword'\n ];\n }", "title": "" } ]
3a63d08f6c7ef3437b9ebce1bf25ae1e
Operation getNetworkWirelessSsidFirewallL7FirewallRulesAsync Return the L7 firewall rules for an SSID on an MR network
[ { "docid": "84fed1ab68f61e2b15507fe0c00fbba0", "score": "0.7056368", "text": "public function getNetworkWirelessSsidFirewallL7FirewallRulesAsync($network_id, $number)\n {\n return $this->getNetworkWirelessSsidFirewallL7FirewallRulesAsyncWithHttpInfo($network_id, $number)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "title": "" } ]
[ { "docid": "3b48aa8797f6f03b4a54c8632e7a6cba", "score": "0.65919405", "text": "public function updateNetworkWirelessSsidFirewallL7FirewallRulesAsync($network_id, $number, $update_network_wireless_ssid_firewall_l7_firewall_rules = null)\n {\n return $this->updateNetworkWirelessSsidFirewallL7FirewallRulesAsyncWithHttpInfo($network_id, $number, $update_network_wireless_ssid_firewall_l7_firewall_rules)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "title": "" }, { "docid": "0a8abadc13543576cc9a36df199613d2", "score": "0.6314327", "text": "public function getNetworkWirelessSsidFirewallL3FirewallRulesAsync($network_id, $number)\n {\n return $this->getNetworkWirelessSsidFirewallL3FirewallRulesAsyncWithHttpInfo($network_id, $number)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "title": "" }, { "docid": "46f0167718f1ef706ffa07ebb3ae958a", "score": "0.60313195", "text": "public function getNetworkWirelessSsidFirewallL7FirewallRulesAsyncWithHttpInfo($network_id, $number)\n {\n $returnType = 'object';\n $request = $this->getNetworkWirelessSsidFirewallL7FirewallRulesRequest($network_id, $number);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\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 function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "title": "" }, { "docid": "135a9daa9e82e0e828627da573352fe7", "score": "0.59458697", "text": "public function updateNetworkWirelessSsidFirewallL7FirewallRulesAsyncWithHttpInfo($network_id, $number, $update_network_wireless_ssid_firewall_l7_firewall_rules = null)\n {\n $returnType = 'object';\n $request = $this->updateNetworkWirelessSsidFirewallL7FirewallRulesRequest($network_id, $number, $update_network_wireless_ssid_firewall_l7_firewall_rules);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\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 function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "title": "" }, { "docid": "26dffb308dd6ae882c6b5b6769cb4751", "score": "0.59261364", "text": "public function updateNetworkWirelessSsidFirewallL3FirewallRulesAsync($network_id, $number, $update_network_wireless_ssid_firewall_l3_firewall_rules = null)\n {\n return $this->updateNetworkWirelessSsidFirewallL3FirewallRulesAsyncWithHttpInfo($network_id, $number, $update_network_wireless_ssid_firewall_l3_firewall_rules)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "title": "" }, { "docid": "b8d56f3ccd97c331a7a3269925cd775a", "score": "0.5823441", "text": "public function getNetworkWirelessSsidFirewallL7FirewallRules($network_id, $number)\n {\n list($response) = $this->getNetworkWirelessSsidFirewallL7FirewallRulesWithHttpInfo($network_id, $number);\n return $response;\n }", "title": "" }, { "docid": "1a7397850348a880e1da87026711e863", "score": "0.5801047", "text": "protected function getNetworkWirelessSsidFirewallL7FirewallRulesRequest($network_id, $number)\n {\n // verify the required parameter 'network_id' is set\n if ($network_id === null || (is_array($network_id) && count($network_id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $network_id when calling getNetworkWirelessSsidFirewallL7FirewallRules'\n );\n }\n // verify the required parameter 'number' is set\n if ($number === null || (is_array($number) && count($number) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $number when calling getNetworkWirelessSsidFirewallL7FirewallRules'\n );\n }\n\n $resourcePath = '/networks/{networkId}/wireless/ssids/{number}/firewall/l7FirewallRules';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($network_id !== null) {\n $resourcePath = str_replace(\n '{' . 'networkId' . '}',\n ObjectSerializer::toPathValue($network_id),\n $resourcePath\n );\n }\n // path params\n if ($number !== null) {\n $resourcePath = str_replace(\n '{' . 'number' . '}',\n ObjectSerializer::toPathValue($number),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n \n if($headers['Content-Type'] === 'application/json') {\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass) {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n // array has no __toString(), so we should encode it manually\n if(is_array($httpBody)) {\n $httpBody = \\GuzzleHttp\\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));\n }\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\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 // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('X-Cisco-Meraki-API-Key');\n if ($apiKey !== null) {\n $headers['X-Cisco-Meraki-API-Key'] = $apiKey;\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": "e077607b54c72d9d5eaab96eb86c6a6e", "score": "0.572757", "text": "protected function updateNetworkWirelessSsidFirewallL7FirewallRulesRequest($network_id, $number, $update_network_wireless_ssid_firewall_l7_firewall_rules = null)\n {\n // verify the required parameter 'network_id' is set\n if ($network_id === null || (is_array($network_id) && count($network_id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $network_id when calling updateNetworkWirelessSsidFirewallL7FirewallRules'\n );\n }\n // verify the required parameter 'number' is set\n if ($number === null || (is_array($number) && count($number) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $number when calling updateNetworkWirelessSsidFirewallL7FirewallRules'\n );\n }\n\n $resourcePath = '/networks/{networkId}/wireless/ssids/{number}/firewall/l7FirewallRules';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($network_id !== null) {\n $resourcePath = str_replace(\n '{' . 'networkId' . '}',\n ObjectSerializer::toPathValue($network_id),\n $resourcePath\n );\n }\n // path params\n if ($number !== null) {\n $resourcePath = str_replace(\n '{' . 'number' . '}',\n ObjectSerializer::toPathValue($number),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n if (isset($update_network_wireless_ssid_firewall_l7_firewall_rules)) {\n $_tempBody = $update_network_wireless_ssid_firewall_l7_firewall_rules;\n }\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n \n if($headers['Content-Type'] === 'application/json') {\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass) {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n // array has no __toString(), so we should encode it manually\n if(is_array($httpBody)) {\n $httpBody = \\GuzzleHttp\\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));\n }\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\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 // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('X-Cisco-Meraki-API-Key');\n if ($apiKey !== null) {\n $headers['X-Cisco-Meraki-API-Key'] = $apiKey;\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 'PUT',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "74bd75240ed6014f41bc8c27c758b1b7", "score": "0.55075485", "text": "public function listfirewallrules()\n {\n $unifi_connection = new Unifi_Client($_ENV[\"UNIFI_USER\"], $_ENV[\"UNIFI_PASS\"], $_ENV[\"UNIFI_URI\"], $_ENV[\"UNIFI_SITE\"], $_ENV[\"UNIFI_VERSION\"], false);\n $login = $unifi_connection->login();\n $results = $unifi_connection->list_firewallrules(); // returns a PHP array containing alarm objects\n\n return response()->json($results);\n\n }", "title": "" }, { "docid": "31254a4dd180dd148158a8ac50b16c73", "score": "0.5359306", "text": "public function updateNetworkWirelessSsidFirewallL7FirewallRulesWithHttpInfo($network_id, $number, $update_network_wireless_ssid_firewall_l7_firewall_rules = null)\n {\n $returnType = 'object';\n $request = $this->updateNetworkWirelessSsidFirewallL7FirewallRulesRequest($network_id, $number, $update_network_wireless_ssid_firewall_l7_firewall_rules);\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 $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : 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 $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\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 'object',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "title": "" }, { "docid": "259794e9ab6acf8030d71b6513fbb5c5", "score": "0.5348699", "text": "public function updateNetworkWirelessSsidFirewallL7FirewallRules($network_id, $number, $update_network_wireless_ssid_firewall_l7_firewall_rules = null)\n {\n list($response) = $this->updateNetworkWirelessSsidFirewallL7FirewallRulesWithHttpInfo($network_id, $number, $update_network_wireless_ssid_firewall_l7_firewall_rules);\n return $response;\n }", "title": "" }, { "docid": "770f85cb5cc2da4dd55db826f60e7663", "score": "0.5332502", "text": "public function getNetworkWirelessSsidFirewallL7FirewallRulesWithHttpInfo($network_id, $number)\n {\n $returnType = 'object';\n $request = $this->getNetworkWirelessSsidFirewallL7FirewallRulesRequest($network_id, $number);\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 $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : 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 $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\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 'object',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "title": "" }, { "docid": "0be35af0b0ea0bec2faedffbe48fd91d", "score": "0.52937484", "text": "public function getNetworkWirelessSsidFirewallL3FirewallRulesAsyncWithHttpInfo($network_id, $number)\n {\n $returnType = 'object';\n $request = $this->getNetworkWirelessSsidFirewallL3FirewallRulesRequest($network_id, $number);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\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 function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "title": "" }, { "docid": "cad0ad2690be3414254a92f8d2837965", "score": "0.5220718", "text": "public function getNetworkWirelessSsidFirewallL3FirewallRules($network_id, $number)\n {\n list($response) = $this->getNetworkWirelessSsidFirewallL3FirewallRulesWithHttpInfo($network_id, $number);\n return $response;\n }", "title": "" }, { "docid": "7cf38d63c2f9e215e76086f46f7b446f", "score": "0.5065711", "text": "public function updateNetworkWirelessSsidFirewallL3FirewallRulesAsyncWithHttpInfo($network_id, $number, $update_network_wireless_ssid_firewall_l3_firewall_rules = null)\n {\n $returnType = 'object';\n $request = $this->updateNetworkWirelessSsidFirewallL3FirewallRulesRequest($network_id, $number, $update_network_wireless_ssid_firewall_l3_firewall_rules);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\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 function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "title": "" }, { "docid": "49b928c50436c553177412574b8468b1", "score": "0.49196327", "text": "protected function getNetworkWirelessSsidFirewallL3FirewallRulesRequest($network_id, $number)\n {\n // verify the required parameter 'network_id' is set\n if ($network_id === null || (is_array($network_id) && count($network_id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $network_id when calling getNetworkWirelessSsidFirewallL3FirewallRules'\n );\n }\n // verify the required parameter 'number' is set\n if ($number === null || (is_array($number) && count($number) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $number when calling getNetworkWirelessSsidFirewallL3FirewallRules'\n );\n }\n\n $resourcePath = '/networks/{networkId}/wireless/ssids/{number}/firewall/l3FirewallRules';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($network_id !== null) {\n $resourcePath = str_replace(\n '{' . 'networkId' . '}',\n ObjectSerializer::toPathValue($network_id),\n $resourcePath\n );\n }\n // path params\n if ($number !== null) {\n $resourcePath = str_replace(\n '{' . 'number' . '}',\n ObjectSerializer::toPathValue($number),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n \n if($headers['Content-Type'] === 'application/json') {\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass) {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n // array has no __toString(), so we should encode it manually\n if(is_array($httpBody)) {\n $httpBody = \\GuzzleHttp\\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));\n }\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\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 // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('X-Cisco-Meraki-API-Key');\n if ($apiKey !== null) {\n $headers['X-Cisco-Meraki-API-Key'] = $apiKey;\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": "abec94a92b346a72b13fe5e76768f626", "score": "0.47879106", "text": "public function updateNetworkWirelessSsidFirewallL3FirewallRules($network_id, $number, $update_network_wireless_ssid_firewall_l3_firewall_rules = null)\n {\n list($response) = $this->updateNetworkWirelessSsidFirewallL3FirewallRulesWithHttpInfo($network_id, $number, $update_network_wireless_ssid_firewall_l3_firewall_rules);\n return $response;\n }", "title": "" }, { "docid": "d0595c26341e2c5763b4ec71537826a2", "score": "0.47407103", "text": "public function retrievePasswordValidationRules()\n {\n return $this->startAnonymous()->uri(\"/api/tenant/password-validation-rules\")\n ->get()\n ->go();\n }", "title": "" }, { "docid": "4f3042c442a06321e79f0a55c49f7d08", "score": "0.47377422", "text": "public function getNetworkWirelessSsidTrafficShapingRulesAsync($network_id, $number)\n {\n return $this->getNetworkWirelessSsidTrafficShapingRulesAsyncWithHttpInfo($network_id, $number)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "title": "" }, { "docid": "a528c6c5ba190c54fdc03c50fd0fa8a2", "score": "0.46921384", "text": "protected function updateNetworkWirelessSsidFirewallL3FirewallRulesRequest($network_id, $number, $update_network_wireless_ssid_firewall_l3_firewall_rules = null)\n {\n // verify the required parameter 'network_id' is set\n if ($network_id === null || (is_array($network_id) && count($network_id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $network_id when calling updateNetworkWirelessSsidFirewallL3FirewallRules'\n );\n }\n // verify the required parameter 'number' is set\n if ($number === null || (is_array($number) && count($number) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $number when calling updateNetworkWirelessSsidFirewallL3FirewallRules'\n );\n }\n\n $resourcePath = '/networks/{networkId}/wireless/ssids/{number}/firewall/l3FirewallRules';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($network_id !== null) {\n $resourcePath = str_replace(\n '{' . 'networkId' . '}',\n ObjectSerializer::toPathValue($network_id),\n $resourcePath\n );\n }\n // path params\n if ($number !== null) {\n $resourcePath = str_replace(\n '{' . 'number' . '}',\n ObjectSerializer::toPathValue($number),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n if (isset($update_network_wireless_ssid_firewall_l3_firewall_rules)) {\n $_tempBody = $update_network_wireless_ssid_firewall_l3_firewall_rules;\n }\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n \n if($headers['Content-Type'] === 'application/json') {\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass) {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n // array has no __toString(), so we should encode it manually\n if(is_array($httpBody)) {\n $httpBody = \\GuzzleHttp\\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));\n }\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\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 // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('X-Cisco-Meraki-API-Key');\n if ($apiKey !== null) {\n $headers['X-Cisco-Meraki-API-Key'] = $apiKey;\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 'PUT',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "8a4baae5e123d4cc9b7393a730fcc150", "score": "0.46070534", "text": "public function getNetworkWirelessSsidFirewallL3FirewallRulesWithHttpInfo($network_id, $number)\n {\n $returnType = 'object';\n $request = $this->getNetworkWirelessSsidFirewallL3FirewallRulesRequest($network_id, $number);\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 $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : 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 $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\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 'object',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "title": "" }, { "docid": "a7a5af1eacfc1779796d247fce36b5a7", "score": "0.452547", "text": "public function get_rules() {\n\t\treturn apply_filters( 'satispress_htaccess_rules', $this->rules );\n\t}", "title": "" }, { "docid": "cc7a22b49ddcdfe27f9de03bc87108af", "score": "0.45106184", "text": "public function updateNetworkWirelessSsidTrafficShapingRulesAsync($network_id, $number, $update_network_wireless_ssid_traffic_shaping_rules = null)\n {\n return $this->updateNetworkWirelessSsidTrafficShapingRulesAsyncWithHttpInfo($network_id, $number, $update_network_wireless_ssid_traffic_shaping_rules)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "title": "" }, { "docid": "021a62e71e605529e51ca62611dd5350", "score": "0.44784242", "text": "function list_firewall_rules(string $projectId)\n{\n // List all firewall rules defined for the project using Firewalls Client.\n $firewallClient = new FirewallsClient();\n $firewallList = $firewallClient->list($projectId);\n\n print('--- Firewall Rules ---' . PHP_EOL);\n foreach ($firewallList->iterateAllElements() as $firewall) {\n printf(' - %s : %s : %s' . PHP_EOL, $firewall->getName(), $firewall->getDescription(), $firewall->getNetwork());\n }\n}", "title": "" }, { "docid": "5b70654e4cebca175d5d2bd69faf3261", "score": "0.4425919", "text": "public function getFirewallEnabled()\n {\n if (array_key_exists(\"firewallEnabled\", $this->_propDict)) {\n if (is_a($this->_propDict[\"firewallEnabled\"], \"\\Microsoft\\Graph\\Model\\StateManagementSetting\") || is_null($this->_propDict[\"firewallEnabled\"])) {\n return $this->_propDict[\"firewallEnabled\"];\n } else {\n $this->_propDict[\"firewallEnabled\"] = new StateManagementSetting($this->_propDict[\"firewallEnabled\"]);\n return $this->_propDict[\"firewallEnabled\"];\n }\n }\n return null;\n }", "title": "" }, { "docid": "79f1662972482516cbf55d5bb99860c1", "score": "0.44111764", "text": "public function getFirewallConnection()\n {\n return new AccessRules($this->apiEmail, $this->apiKey);\n }", "title": "" }, { "docid": "38e1db244c188446a2cfac85343bd72b", "score": "0.44082212", "text": "public function updateNetworkWirelessSsidFirewallL3FirewallRulesWithHttpInfo($network_id, $number, $update_network_wireless_ssid_firewall_l3_firewall_rules = null)\n {\n $returnType = 'object';\n $request = $this->updateNetworkWirelessSsidFirewallL3FirewallRulesRequest($network_id, $number, $update_network_wireless_ssid_firewall_l3_firewall_rules);\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 $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : 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 $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\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 'object',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "title": "" }, { "docid": "c22312031e45dd8b6a4d9a991523ab60", "score": "0.43873185", "text": "public function wafRulesets()\n {\n return (new WafRulesetClient($this->httpClient))->auth($this->token);\n }", "title": "" }, { "docid": "ecc9f641789975e0e84d9717ea8b71b1", "score": "0.43056464", "text": "public function listFirewalls($project, $optParams = array()) {\n $params = array('project' => $project);\n $params = array_merge($params, $optParams);\n $data = $this->__call('list', array($params));\n if ($this->useObjects()) {\n return new Google_FirewallList($data);\n } else {\n return $data;\n }\n }", "title": "" }, { "docid": "52cf40ab903d8758efb2f5d6128675ff", "score": "0.42757317", "text": "protected function _getRules()\n {\n $key = $this->getWebsiteId() . '_' . $this->getCustomerGroupId() . '_' . $this->getCouponCode();\n\n return $this->_rules[$key];\n }", "title": "" }, { "docid": "57de87d8d119b2f1507a1c559d67212b", "score": "0.42487907", "text": "public function getDeviceCellularGatewayPortForwardingRulesAsync($serial)\n {\n return $this->getDeviceCellularGatewayPortForwardingRulesAsyncWithHttpInfo($serial)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "title": "" }, { "docid": "5fe5994cd1eb043540103c5482679eae", "score": "0.42349708", "text": "public function wafRules()\n {\n return (new WafRuleClient($this->httpClient))->auth($this->token);\n }", "title": "" }, { "docid": "c6b073711389485eb28f6cccd690b597", "score": "0.41553217", "text": "private function lookupElbListenerRules()\n {\n\n /**\n * Sample output (truncated):\n *\n * {\n * \"Rules\": [\n * ...\n * {\n * \"RuleArn\": \"RuleArn\",\n * \"Priority\": \"3\",\n * \"Conditions\": [\n * {\n * \"Field\": \"host-header\",\n * \"Values\": [\n * \"domain.com\"\n * ],\n * \"HostHeaderConfig\": {\n * \"Values\": [\n * \"domain.com\"\n * ]\n * }\n * }\n * ],\n * \"Actions\": [\n * {\n * \"Type\": \"forward\",\n * \"TargetGroupArn\": \"TargetGroupArn\",\n * \"Order\": 1,\n * \"ForwardConfig\": {\n * \"TargetGroups\": [\n * {\n * \"TargetGroupArn\": \"TargetGroupArn\",\n * \"Weight\": 1\n * }\n * ],\n * \"TargetGroupStickinessConfig\": {\n * \"Enabled\": false\n * }\n * }\n * }\n * ],\n * \"IsDefault\": false\n * },\n * ...\n */\n $response = shell_exec(\n vsprintf(\n '%s %s %s --region %s --listener-arn %s',\n [\n $this->aws,\n 'elbv2',\n 'describe-rules',\n $this->region,\n $this->listener_arn,\n ]\n )\n );\n $response = json_decode($response);\n\n if (count($response->Rules) == 0) {\n $this->error('No rules found for \"%s\"', [$this->listener_arn]);\n }\n\n // Lookup host-header rule.\n $found = false;\n foreach ($response->Rules as $rule) {\n if (count($rule->Conditions)) {\n foreach ($rule->Conditions as $condition) {\n if ($condition->Field == 'host-header') {\n foreach ($condition->Values as $value) {\n if ($value == $this->real_domain) {\n $this->target_group_arn = $rule->Actions[0]->TargetGroupArn;\n $found = true;\n break 3;\n }\n }\n }\n }\n }\n }\n\n // Lookup default rule.\n if (!$found) {\n foreach ($response->Rules as $rule) {\n if ($rule->IsDefault == 1) {\n $this->target_group_arn = $rule->Actions[0]->TargetGroupArn;\n $found = true;\n break;\n }\n }\n }\n\n if ($found) {\n $this->message('Looked up the Target Group ARN for Listener \"%s\":', [$this->listener_arn], 1);\n $this->message('Target Group ARN: %s', [$this->target_group_arn], 2);\n } else {\n $this->error('No target groups found for \"%s\"', [$this->listener_arn]);\n }\n }", "title": "" }, { "docid": "78330499b8f49007ed8a339f79784a2f", "score": "0.40802947", "text": "public function get_rules() {\n $sql = \"SELECT * FROM rules\";\n $result = $this->conn->query($sql);\n $final = array();\n if ($result->num_rows > 0) {\n while ($row = $result->fetch_object()) {\n $final[] = $row;\n }\n }\n return $final;\n }", "title": "" }, { "docid": "327452d553f774b43d043cbe907a87cf", "score": "0.40362749", "text": "public function getHostRules()\n {\n return $this->host_rules;\n }", "title": "" }, { "docid": "9ec20acd6593b2d7cd813ed765290e3d", "score": "0.40206867", "text": "public function rules()\n {\n $rules = [\n 'credential' => 'required',\n 'password' => 'required',\n ];\n \n $isLoginUser = currentApiRouteName('login-user');\n\n if ($isLoginUser) {\n $rules = [\n 'phone' => 'required',\n 'phone_code' => 'required',\n 'pin' => 'required',\n ];\n }\n\n return $rules;\n }", "title": "" }, { "docid": "8249d65213381f8d551348378c00faaf", "score": "0.40132242", "text": "public static function getAll() {\n return YtelAdvancedListRules::\n all(['from_list_id', 'from_campaign_id', 'from_list_status', 'to_list_id', 'to_list_status', 'interval', 'active', 'last_run', 'next_run', 'last_update_count']);\n }", "title": "" }, { "docid": "83d4846640dc53500529f37ef159c4a7", "score": "0.3951517", "text": "public function getNetworkWirelessSsidSchedulesAsync($network_id, $number)\n {\n return $this->getNetworkWirelessSsidSchedulesAsyncWithHttpInfo($network_id, $number)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "title": "" }, { "docid": "87cdb0c73c6571af8290a2d3ef26aac4", "score": "0.39493522", "text": "protected function extract_rules() {\n\t\t$rules_arr = explode(\"|\", $this->rules);\n\t\t$rules = [];\n\n\t\tforeach( $rules_arr as $rule_str ) {\n\t\t\tif( strpos( $rule_str, \":\" ) !== false ) {\n\t\t\t\t$rule_arr = explode( \":\", $rule_str );\n\t\t\t\t$rules[$rule_arr[0]] = $rule_arr[1];\n\t\t\t} else {\n\t\t\t\t$rules[$rule_str] = true;\n\t\t\t}\n\t\t}\n\t\treturn $rules;\n\t}", "title": "" }, { "docid": "11ad7196c71c5aa2c5541d5d1cf82598", "score": "0.39452216", "text": "public function get_rules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "baa7b1539da64fd3b3ed0b188cd453ee", "score": "0.39263922", "text": "protected function getWhitelistRules()\n {\n $rules = $this->composer->getPackage()->getExtra()['compile-whitelist'] ?? [];\n\n // The root package is an ex-officio member of the whitelist.\n $root = $this->composer->getPackage();\n if (!in_array($root->getName(), $rules)) {\n $rules[] = $root->getName();\n }\n\n return $rules;\n }", "title": "" }, { "docid": "735885f0ad2f32cb2cf28878b76a5d86", "score": "0.3924816", "text": "public function rules()\n {\n $rules = [\n 'url' => 'required|string',\n 'frame_id' => 'required|check_frame',\n // 'dynamic_id' => 'required|check_dynamic',\n 'category_id' => 'check_category',\n 'shop_id' => 'check_shop',\n 'crawl_resources' => 'mixed'\n \n ];\n return $rules;\n // return $this->parseRules($rules);\n }", "title": "" }, { "docid": "876c1243294c62db88663570821dc1e8", "score": "0.392203", "text": "public function ptwhrwchecklists() {\n return $this->hasMany(PtwHrwChecklist::class);\n }", "title": "" }, { "docid": "e7e4aca7b51541596a4f5af82e0436b3", "score": "0.3909843", "text": "function findOpenWireless($input)\n {\n $breaker = 100;\n while (strpos($input, ' ') !== false) {\n $input = str_replace(' ', ' ', $input);\n $breaker--;\n if ($breaker == 0) {\n throw new Exception(\"Got stuck in endless loop\");\n }\n }\n $lines = explode(\"\\n\", $input);\n var_dump($lines);\n\n $ssids = array();\n foreach ($lines as $line) {\n $row = explode(' ', $line);\n if (count($row) < 9) {\n continue;\n }\n $this->log(sprintf(\"Found SSID %s\", $row[1]));\n if ($row[2] != 'Infra') {\n continue;\n }\n if ($row[8] != '--') {\n continue;\n }\n $ssids[] = $row[1];\n }\n return $ssids;\n }", "title": "" }, { "docid": "aee9be112681d9e0f25af85f36019131", "score": "0.3891626", "text": "public function rules()\n {\n $rules = [\n 'code' => 'required|max:255',\n 'symbol' => 'required|max:255',\n 'rate' => 'required|numeric'\n ];\n return RuleHelper::get_rules($this->method(), $rules);\n }", "title": "" }, { "docid": "d7dba9ce9855bc235490bed58cba8dc4", "score": "0.38828725", "text": "public function get_all_rules()\n {\n }", "title": "" }, { "docid": "5739deaba207a33388a6ccaac3a818aa", "score": "0.38816708", "text": "public function updateNetworkWirelessSsidSchedulesAsync($network_id, $number, $update_network_wireless_ssid_schedules = null)\n {\n return $this->updateNetworkWirelessSsidSchedulesAsyncWithHttpInfo($network_id, $number, $update_network_wireless_ssid_schedules)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "title": "" }, { "docid": "4f591bd5076a8678e3e3bb1dbb5ab3fb", "score": "0.38265678", "text": "public function getRules() {\n return $this->rules;\n }", "title": "" }, { "docid": "298c3c1dd99cbd8f64ca74dc0794769a", "score": "0.38238773", "text": "public function getRules(): RuleList\n {\n return new RuleList($this->rules->toArray());\n }", "title": "" }, { "docid": "275a3684efd47e321588c8f6a49a2413", "score": "0.38187727", "text": "protected function getShowRules()\n\t{\n\t\treturn $this->showRules;\n\t}", "title": "" }, { "docid": "0f5f0fd75fb6f6c9610cec5b891f52ce", "score": "0.38071027", "text": "public function getRules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "0f5f0fd75fb6f6c9610cec5b891f52ce", "score": "0.38071027", "text": "public function getRules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "0f5f0fd75fb6f6c9610cec5b891f52ce", "score": "0.38071027", "text": "public function getRules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "55588f1331b7606a4b5491bf7cbc280d", "score": "0.3788961", "text": "public function getValidationRules()\n {\n $rules = [];\n\n // Get the schema\n $schema = $this->getSchema();\n\n return $schema->getRules($this);\n }", "title": "" }, { "docid": "1836584a0ab0d9b95bc6982e5ffc11dd", "score": "0.3788227", "text": "public function rules()\n {\n $rules = [];\n\n if($this->has('twilio_enabled') && $this->twilio_enabled == 1)\n {\n $rules['twilio_account_sid'] = 'required';\n $rules['twilio_auth_token'] = 'required';\n $rules['twilio_application_sid'] = 'required';\n }\n\n return $rules;\n }", "title": "" }, { "docid": "3bfe19a18d2aea0352439e660b2b63e5", "score": "0.37835824", "text": "public function hrwChecklists() {\n return $this->hasMany(HrwChecklist::class);\n }", "title": "" }, { "docid": "a75e5287c6edd958d47900a510f15a26", "score": "0.37819383", "text": "public function rules()\r\n {\r\n $route = Route::currentRouteName();\r\n $uri = 'rules_' . $route;\r\n return $this->$uri;\r\n }", "title": "" }, { "docid": "0eecd510881cfa81de2fca0981e44a09", "score": "0.3771299", "text": "public function wafAdvancedRules()\n {\n return (new WafAdvancedRuleClient($this->httpClient))->auth($this->token);\n }", "title": "" }, { "docid": "50ab64f4010d06d261c2a60535e372c3", "score": "0.3770599", "text": "public function rules()\n {\n return RuleFactory::make([\n '%name%' => ['required', 'string', 'max:255'],\n 'code' => ['required'],\n 'p_coud' => ['required'],\n 'tele_number' => ['required', 'size:10'],\n 'work_time' => ['required', 'array'],\n 'work_time.openAllDays' => ['required', 'in:0,1'],\n 'work_time.alldays' => ['required_if:work_time.openAllDays,0'],\n 'work_time.alldays.afternone.timeopen' => ['required_if:work_time.alldays.period,1'],\n 'work_time.alldays.afternone.timeclose' => ['required_if:work_time.alldays.period,1'],\n ]);\n }", "title": "" }, { "docid": "10ebc98632e24b3879a6a2f0d85f1adb", "score": "0.37689304", "text": "public function getRules()\n {\n return $this->get(self::_RULES);\n }", "title": "" }, { "docid": "eaefb5b7b5dcb9fa6ccd1a2a42c24376", "score": "0.37619504", "text": "protected function getValidationRulesFromSettings()\n {\n $rules = ObjectAccess::getPropertyPath($this->settings, $this->options['settingsPath']) ?: [];\n\n return $rules;\n }", "title": "" }, { "docid": "72aa5de8a59ec736cb9c2f82ba623e6e", "score": "0.37497833", "text": "public function getRules()\n {\n if (!isset($this->_rules)){\n $this->_getRules();\n }\n return $this->_rules;\n }", "title": "" }, { "docid": "35c478a65742e9e129b477847158ae43", "score": "0.3749399", "text": "public function getRules() {}", "title": "" }, { "docid": "0c3ea78676d6b98b4fd2504bb51b15b0", "score": "0.37389374", "text": "public function rules(){\n if(is_null($this->model)){\n return [];\n }\n return $this->model->getRules($this->key);\n }", "title": "" }, { "docid": "bae1c5fd7d4248bdf0786453778d11cf", "score": "0.37382844", "text": "private function getCustomLayout() {\n $whiteLable = '';\n $whiteLable = $this->_request->nexva_whitelabel;\n $config = Zend_Registry::get(\"config\");\n $count = $config->nexva->mobile->whitelabels->count();\n for ($i = 0; $i < $count; $i++) {\n $wl = $config->nexva->mobile->whitelabels->$i;\n if ($whiteLable == $wl)\n return $wl;\n }\n return false;\n }", "title": "" }, { "docid": "8aa5324042d1e7a6ae9654243fe69bb9", "score": "0.37363273", "text": "public function getCheckLists()\n {\n if (array_key_exists(\"checkLists\", $this->_propDict)) {\n if (is_a($this->_propDict[\"checkLists\"], \"\\Beta\\Microsoft\\Graph\\Model\\PlannerFieldRules\") || is_null($this->_propDict[\"checkLists\"])) {\n return $this->_propDict[\"checkLists\"];\n } else {\n $this->_propDict[\"checkLists\"] = new PlannerFieldRules($this->_propDict[\"checkLists\"]);\n return $this->_propDict[\"checkLists\"];\n }\n }\n return null;\n }", "title": "" }, { "docid": "869efaa6652fa1d56f38e8ab6c0fed6f", "score": "0.37248188", "text": "public function & getRules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "dcb5a8b56ff944fe9bdfb1f85ebf6677", "score": "0.3724236", "text": "public function rules()\n {\n $rules = [\n 'timezone' => 'required|timezone',\n ];\n $inputWorkingDays = $this->get('working_days', []);\n foreach ($inputWorkingDays as $day => $dayData) {\n $rules['working_days.' . $day . '.is_working'] = 'required|boolean';\n $rules['working_days.' . $day . '.start'] = 'required|time';\n $rules['working_days.' . $day . '.end'] = 'required|time';\n }\n return $rules;\n }", "title": "" }, { "docid": "88b72580527c844d5f0a7bd39cc6d023", "score": "0.37195262", "text": "public function showRules()\n {\n\n return view('flybits.rules');\n\n }", "title": "" }, { "docid": "44a54f89874e01dd374580d26198dbe8", "score": "0.37137288", "text": "public function getBusinessRules()\n\t\t{\n\t\t\t$business_rules = new ECash_BusinessRules($this->db);\n\t\t\treturn $business_rules->Get_Rule_Set_Tree($this->getModel()->rule_set_id);\n\t\t}", "title": "" }, { "docid": "05b4505a37ef683204c858b75edda165", "score": "0.37136197", "text": "public function getAvailableRules()\n {\n return null;\n }", "title": "" }, { "docid": "77675a6a55dba42a8d4514e650d542af", "score": "0.3700358", "text": "public function setRule($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Cloud\\AppEngine\\V1\\FirewallRule::class);\n $this->rule = $var;\n\n return $this;\n }", "title": "" }, { "docid": "7130010de7589328a33c5760ad84fe27", "score": "0.36980224", "text": "public function updateNetworkWirelessSsidTrafficShapingRulesAsyncWithHttpInfo($network_id, $number, $update_network_wireless_ssid_traffic_shaping_rules = null)\n {\n $returnType = 'object';\n $request = $this->updateNetworkWirelessSsidTrafficShapingRulesRequest($network_id, $number, $update_network_wireless_ssid_traffic_shaping_rules);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\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 function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "title": "" }, { "docid": "c9d9d0706c11006a2c4f09728643418c", "score": "0.3697743", "text": "protected function getNetworkWirelessSsidTrafficShapingRulesRequest($network_id, $number)\n {\n // verify the required parameter 'network_id' is set\n if ($network_id === null || (is_array($network_id) && count($network_id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $network_id when calling getNetworkWirelessSsidTrafficShapingRules'\n );\n }\n // verify the required parameter 'number' is set\n if ($number === null || (is_array($number) && count($number) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $number when calling getNetworkWirelessSsidTrafficShapingRules'\n );\n }\n\n $resourcePath = '/networks/{networkId}/wireless/ssids/{number}/trafficShaping/rules';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($network_id !== null) {\n $resourcePath = str_replace(\n '{' . 'networkId' . '}',\n ObjectSerializer::toPathValue($network_id),\n $resourcePath\n );\n }\n // path params\n if ($number !== null) {\n $resourcePath = str_replace(\n '{' . 'number' . '}',\n ObjectSerializer::toPathValue($number),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n \n if($headers['Content-Type'] === 'application/json') {\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass) {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n // array has no __toString(), so we should encode it manually\n if(is_array($httpBody)) {\n $httpBody = \\GuzzleHttp\\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));\n }\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\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 // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('X-Cisco-Meraki-API-Key');\n if ($apiKey !== null) {\n $headers['X-Cisco-Meraki-API-Key'] = $apiKey;\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": "c29d1d3aab948b3334c75df9f8bd2f7d", "score": "0.3696211", "text": "protected function getRulesFor($name)\n\t{\n\t\treturn $this->hasRulesFor($name) ? $this->rules[$name] : '';\n\t}", "title": "" }, { "docid": "f6583e692795987c7fd77892b83edaf4", "score": "0.36911675", "text": "public function getRules()\n {\n return $this->validation_rules;\n }", "title": "" }, { "docid": "662bcbac53e275807349d6790450751c", "score": "0.36805773", "text": "public function weekValidation()\n {\n return $this->hasMany(WeekValidation::class, 'user_id');\n }", "title": "" }, { "docid": "5fdf67c594bad020c35b5669b9099fac", "score": "0.3678746", "text": "public function getNetworkWirelessSsidTrafficShapingRulesAsyncWithHttpInfo($network_id, $number)\n {\n $returnType = 'object';\n $request = $this->getNetworkWirelessSsidTrafficShapingRulesRequest($network_id, $number);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\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 function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "title": "" }, { "docid": "5c2103c918d19c3f83623bbbdac9b111", "score": "0.36719763", "text": "public function getNetworkWirelessSsidTrafficShapingRules($network_id, $number)\n {\n list($response) = $this->getNetworkWirelessSsidTrafficShapingRulesWithHttpInfo($network_id, $number);\n return $response;\n }", "title": "" }, { "docid": "fa95860d4ca84772cc6e1b098ee06987", "score": "0.36710662", "text": "public function rules()\n {\n return Administrator::$rules;\n }", "title": "" }, { "docid": "bf06d4b9a6a7659c7e7bc449bb0b5275", "score": "0.36641708", "text": "public function getAclRules()\n {\n $query = $this->_em->createQuery(\n 'SELECT roleResource, role, resource\n FROM \\Application\\Model\\Entity\\AclRoleResource roleResource\n JOIN roleResource.role role\n JOIN roleResource.aclResource resource'\n );\n\n $result = $query->getArrayResult();\n\n return $this->extractRules($result);\n }", "title": "" }, { "docid": "33445c2dc764a4273e3d49a8119371c2", "score": "0.3647395", "text": "public function rules()\n {\n\t\t$rules = MessageModel::find(1);\n\n\t\treturn View::make('pages.fleet.rules')\n\t\t\t->with('rules',$rules);\n }", "title": "" }, { "docid": "4522c8dc70dd5d5cfb7c2241cf68d2ce", "score": "0.36104828", "text": "public function rules()\n {\n return $this->hasMany(Rule::class, 'beacon_container_id');\n }", "title": "" }, { "docid": "a1dd727982a3eef91eb25c131c5e1c75", "score": "0.36082166", "text": "private function storeRequestValidationRules()\n {\n $rules = [\n 'ip_address' => 'required',\n 'key' => 'required',\n ];\n\n return $rules;\n }", "title": "" }, { "docid": "4b087d8815aaaeb94e9984c1dd45c9f7", "score": "0.3603739", "text": "public function feedRules()\n {\n return [];\n }", "title": "" }, { "docid": "829ab7c9db7bfbcd84eb93b1f28f4410", "score": "0.36022386", "text": "public function rules()\n {\n $rules = $this->rules;\n\n $rules['fee'] = 'required|integer';\n $rules['phone'] = 'required|min:8|max:20';\n $rules['facebook'] = 'required|url';\n $rules['youtube'] = 'required|url';\n $rules['web'] = 'url';\n\n $rules['requestgender'] = 'required';\n $rules['serviceaddress'] = 'required|max:150';\n $rules['servicetime'] = 'required|max:150';\n $rules['language'] = 'required|max:150';\n $rules['bust'] = 'required|max:100|integer';\n $rules['waistline'] = 'required|max:100|integer';\n $rules['hips'] = 'required|max:100|integer';\n $rules['motto'] = 'max:50';\n\n return $rules;\n }", "title": "" }, { "docid": "a1775889a5d4dc6c9d237931e6f6920b", "score": "0.3585088", "text": "public function rules()\n {\n $rules = [\n 'mail_driver' => 'required',\n 'mail_name' => 'required',\n 'mail_email' => 'required',\n ];\n\n $newRules = [];\n\n if($this->mail_driver == 'smtp') {\n $newRules = [\n 'mail_host' => 'required',\n 'mail_port' => 'required|numeric',\n 'mail_username' => 'required',\n 'mail_password' => 'required',\n 'mail_encryption' => 'required',\n ];\n }\n\n return array_merge($rules, $newRules);\n }", "title": "" }, { "docid": "49397f6dc86dac4c1bddc567f3f39fc2", "score": "0.35839748", "text": "public function rules()\n {\n $config = $this->getConfig();\n $keys = array_column($config['column'], 'column');\n $values = array_column($config['column'], 'rules');\n $rules = array_combine($keys, $values);\n array_filter($rules);\n return $rules;\n }", "title": "" }, { "docid": "a4bcd5368289476cdcb5ea66cb63b1e8", "score": "0.3574701", "text": "public function rules()\n {\n $this->setModel(ReferralProgram::class, 'referral_program');\n $rules = parent::rules();\n\n if ($this->isUpdate() || $this->isStore()) {\n $rules = array_merge($rules, [\n 'status' => 'required',\n 'title' => 'required|max:191',\n 'uri' => 'required|max:191',\n 'referral_action' => 'required|max:191',\n 'description' => 'required',\n ]);\n }\n\n if ($this->isStore()) {\n $rules = array_merge($rules, [\n 'name' => 'required|max:191|unique:referral_programs',\n ]);\n }\n\n if ($this->isUpdate()) {\n $referral_program = $this->route('referral_program');\n\n $rules = array_merge($rules, [\n 'name' => 'required|unique:referral_programs,name,' . $referral_program->id,\n ]);\n }\n\n\n\n return $rules;\n }", "title": "" }, { "docid": "d36cac7df7a6f61df88c549763cfe503", "score": "0.35595542", "text": "public function getRulesNames()\n {\n //We can assume \"downloadRules\" index exists due to isValid() call in constructor\n return array_keys($this->rawConfiguration['downloadRules']);\n }", "title": "" }, { "docid": "1fc1b4dcc3e0b5eebc062a4357a1189f", "score": "0.35523057", "text": "public static function getRockPaperScissorLizardSpockRules()\n {\n $rules = new RuleCollection();\n\n $rules->add(new Rule(\"Rock\", \"Scissors\", \"Crushes\"));\n $rules->add(new Rule(\"Paper\", \"Rock\", \"Covers\"));\n $rules->add(new Rule(\"Scissors\", \"Paper\", \"Cuts\"));\n $rules->add(new Rule(\"Rock\", \"Lizard\", \"Crushes\"));\n $rules->add(new Rule(\"Lizard\", \"Spock\", \"Poisons\"));\n $rules->add(new Rule(\"Spock\", \"Scissors\", \"Smashes\"));\n $rules->add(new Rule(\"Scissors\", \"Lizard\", \"Decapitates\"));\n $rules->add(new Rule(\"Lizard\", \"Paper\", \"Eats\"));\n $rules->add(new Rule(\"Paper\", \"Spock\", \"Disproves\"));\n $rules->add(new Rule(\"Spock\", \"Rock\", \"Vaporizes\"));\n\n return $rules;\n }", "title": "" }, { "docid": "6de1489e9fbca327afc482ad50f44b57", "score": "0.35509533", "text": "public function buildRules(RulesChecker $rules)\n {\n $rules->add($rules->existsIn(['school_id'], 'Schools'));\n return $rules;\n }", "title": "" }, { "docid": "f25ca3644422c1fad55f411fd3774740", "score": "0.3546472", "text": "public function getNetworkWirelessSsidSchedules($network_id, $number)\n {\n list($response) = $this->getNetworkWirelessSsidSchedulesWithHttpInfo($network_id, $number);\n return $response;\n }", "title": "" }, { "docid": "ca3aaf9c7dd2468b135628f0a6bef6a2", "score": "0.35438007", "text": "protected function getStoreRules()\n\t{\n\t\treturn $this->storeRules;\n\t}", "title": "" }, { "docid": "d707bb0769e974c2f417a897389d069a", "score": "0.3537196", "text": "public function rules()\n {\n return static::$rules;\n }", "title": "" }, { "docid": "f2260ab0f1d810a4d18e0e962b44541b", "score": "0.3536122", "text": "function show_rules()\n\t{\n\t\t//-----------------------------------------\n\t\t// Do we have permission to view these rules?\n\t\t//-----------------------------------------\n\t\t\n\t\t$allow_access = $this->ipsclass->forums->forums_check_access( $this->forum['id'], 1 );\n \n if ( $allow_access === FALSE )\n {\n \t$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'no_view_topic') );\n }\n \n $tmp = $this->ipsclass->DB->simple_exec_query( array( 'select' => 'rules_title, rules_text', 'from' => 'forums', 'where' => \"id=\".$this->forum['id']) );\n \n if ( $tmp['rules_title'] )\n {\n \t$rules['title'] = $tmp['rules_title'];\n \t$rules['body'] = $tmp['rules_text'];\n \t$rules['fid'] = $this->forum['id'];\n \t\n \t$this->output .= $this->ipsclass->compiled_templates['skin_forum']->show_rules($rules);\n \t\n\t\t\t$this->ipsclass->print->add_output( $this->output );\n\t\t\t$this->ipsclass->print->do_output( array( 'TITLE' => $this->ipsclass->vars['board_name'].\" -&gt; \".$this->forum['name'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t 'JS' => 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t 'NAV' => array( \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t $this->forum['name']\n\t\t\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 ) );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'no_view_topic') );\n\t\t}\n\t}", "title": "" }, { "docid": "e875ee8cf6b6f58a0148988c548f2710", "score": "0.35330397", "text": "public function get_rules()\n\t{\n\t\t$this->layout->with('title', 'Rules')\n\t\t\t\t\t ->nest('content', 'rules');\n\t}", "title": "" }, { "docid": "06708050e4d467d2849a191afa5a9134", "score": "0.35159865", "text": "public function rules()\n {\n dd($this->request->get('answer'));\n foreach ($this->request->get('answer') as $key => $val)\n {\n $rules['answer.'.$key] = 'required';\n }\n\n return $rules;\n }", "title": "" }, { "docid": "633a6e939bef6069e92d111ea4dc92bd", "score": "0.35086074", "text": "protected function updateNetworkWirelessSsidTrafficShapingRulesRequest($network_id, $number, $update_network_wireless_ssid_traffic_shaping_rules = null)\n {\n // verify the required parameter 'network_id' is set\n if ($network_id === null || (is_array($network_id) && count($network_id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $network_id when calling updateNetworkWirelessSsidTrafficShapingRules'\n );\n }\n // verify the required parameter 'number' is set\n if ($number === null || (is_array($number) && count($number) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $number when calling updateNetworkWirelessSsidTrafficShapingRules'\n );\n }\n\n $resourcePath = '/networks/{networkId}/wireless/ssids/{number}/trafficShaping/rules';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($network_id !== null) {\n $resourcePath = str_replace(\n '{' . 'networkId' . '}',\n ObjectSerializer::toPathValue($network_id),\n $resourcePath\n );\n }\n // path params\n if ($number !== null) {\n $resourcePath = str_replace(\n '{' . 'number' . '}',\n ObjectSerializer::toPathValue($number),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n if (isset($update_network_wireless_ssid_traffic_shaping_rules)) {\n $_tempBody = $update_network_wireless_ssid_traffic_shaping_rules;\n }\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n \n if($headers['Content-Type'] === 'application/json') {\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass) {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n // array has no __toString(), so we should encode it manually\n if(is_array($httpBody)) {\n $httpBody = \\GuzzleHttp\\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));\n }\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\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 // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('X-Cisco-Meraki-API-Key');\n if ($apiKey !== null) {\n $headers['X-Cisco-Meraki-API-Key'] = $apiKey;\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 'PUT',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "1023b054362692f757e8a391e13d1ea0", "score": "0.3508305", "text": "public static function getRules($roleId)\n {\n $query = 'SELECT ar.mca FROM user_rules AS ar\n INNER JOIN user_role_mapping AS arm ON arm.rule_id = ar.rule_id\n WHERE arm.role_id = ' . $roleId;\n /**\n * @var \\Phalcon\\Db\\Adapter\\Pdo\\Postgresql $db\n */\n $db = PDI::getDefault()->get('db');\n $rules = $db->fetchAll($query, Db::FETCH_ASSOC);\n $rules = array_column($rules, 'mca');\n return $rules;\n }", "title": "" } ]
95bfebc0ea32222c43832f844ed97667
searchProcessAction Search the record
[ { "docid": "554f049015a04da1aa2185dc7727614c", "score": "0.77134544", "text": "public function searchprocessAction() {\n\t\t$this->_helper->ajaxgrid->setConfig ( CreditNotes::grid() )->search ();\n\t}", "title": "" } ]
[ { "docid": "ac283c373cb836280d5743d587f280d9", "score": "0.747021", "text": "public function searchprocessAction() {\n\t\t$this->_helper->ajaxgrid->setConfig ( OrdersItems::grid() )->search ();\n\t}", "title": "" }, { "docid": "1d71e18d48a57edbdbfc35b2d182624a", "score": "0.70980716", "text": "public function searchprocessAction() {\n\t\t$this->_helper->ajaxgrid->setConfig ( WikiCategories::grid() )->search ();\n\t}", "title": "" }, { "docid": "5ae08bd5fc69ccf35d96ede085b80eee", "score": "0.6784533", "text": "public function searchAction(){\n\t\t$req = $this -> getRequest();\n\t\tif ($req -> __isset('search2')){\n\t\t\t$this -> bikeNS -> bikeSearchParam = $req -> getParams();\t\t\t\n\t\t\t$this -> search2Action();\t\n\t\t}\n\t\telse if($req -> __isset('page')){\n\t\t\t$this -> search2Action();\n\t\t}\n\t\telse{\n\t\t\t$this -> search1Action();\n\t\t}\n\t}", "title": "" }, { "docid": "41c93fddb1a8f102b5fed8e2cf99c36d", "score": "0.6557145", "text": "public function searchJob($search);", "title": "" }, { "docid": "de69f45fbe17dd6c83196bb79eec1c16", "score": "0.6536501", "text": "public function search()\r\n\t{\r\n\r\n\t}", "title": "" }, { "docid": "de1a1d9468bc0826565aff39e1d0fb30", "score": "0.6525927", "text": "public function search() {\r\n }", "title": "" }, { "docid": "dde309076ba2304b4479a46df4c40e31", "score": "0.65168923", "text": "abstract public function search();", "title": "" }, { "docid": "10bbeab27356581d6d7a3e98690ac835", "score": "0.6501928", "text": "protected function searchExecute()\n {\n return $this->searchModel->paginate($this->searchLimit);\n }", "title": "" }, { "docid": "59da67d5a13be25a962c8c54254dd514", "score": "0.64978313", "text": "public function runSearch() {\n \n// $res = $model\n// ->where(DownloadFiles_Model::COLUMN_ID_CATEGORY.' = :idc', array('idc' => $this->category()->getId()))\n// ->search($this->getSearchString());\n \n// if($res != false){\n// foreach ($res as $file) {\n// $this->addResult($file->{DownloadFiles_Model::COLUMN_NAME}, \n// $this->link()->anchor('dwfile-'.$file->{DownloadFiles_Model::COLUMN_FILE}), \n// $file->{DownloadFiles_Model::COLUMN_TEXT}, \n// $file->{Search::COLUMN_RELEVATION});\n// }\n// }\n\t}", "title": "" }, { "docid": "2f2488430a68cef0bd295c0ff8e8f5b5", "score": "0.647383", "text": "public function actionSearch()\n\t{\n\t\t$model=new SearchForm;\n\t\t$search = null;\n\t\t$searchCounter = null;\n\t\tif(isset($_GET['SearchForm']))\n\t\t{\n\t\t\t// creation de la chaine sql pour retirer les >,<,=,<=,>=,<>...\n\t\t\t// pour sela une function helper getSQLConditions(GET request params)\n\t\t\t$sqlConditions = '1=1 ' . $this->getSQLConditions($_GET['SearchForm']);\n\t\t\t// creaton des param selen les champs present dans la requet sql getSQLConditionsParamsArray(GET request params)\n\t\t\t$sqlConditionsParamsArray = $this->getSQLConditionsParamsArray($_GET['SearchForm']);\n\t\t\t// add sql part for the active / non active records\n\t\t\tif ($_GET['SearchForm']['activation'] != '') {\n\t\t\t\t$sqlConditions .= ' and activation = :activation';\n\t\t\t\t$sqlConditionsParamsArray[':activation'] = $_GET['SearchForm']['activation'];\n\t\t\t}\n\t\t\t// calculer offset from the selected page in the pagination\n\t\t\t$offset =(isset($_GET['page'])) ? ($this->pagerSize*$_GET['page']-$this->pagerSize):0;\n\t\t\t\n\t\t\t// run sql and find results to show to user\n\t\t\t$search=Search::model()->findAll($sqlConditions. ' limit '.$this->pagerSize.' offset '. $offset,$sqlConditionsParamsArray);\n\t\t\t// count results to use for pagination \n\t\t\t$searchCounter=Search::model()->count($sqlConditions,$sqlConditionsParamsArray);\n\t\t}\n\t\t// affiche le formulaire de recherche plus les resultats if wee found any\n \t$this->render('search',array('model'=>$model,'search'=>$search,'searchCounter'=>$searchCounter));\n\t}", "title": "" }, { "docid": "045264b6c43a1d5fa650c0bd6edde201", "score": "0.64352536", "text": "public function search()\n\t{\n\n\t}", "title": "" }, { "docid": "045264b6c43a1d5fa650c0bd6edde201", "score": "0.64352536", "text": "public function search()\n\t{\n\n\t}", "title": "" }, { "docid": "744bdc666a25d82dc89202a79e138261", "score": "0.64127827", "text": "public function search() {\n }", "title": "" }, { "docid": "1a299c222c8a2b62b5dd904249cea36d", "score": "0.64040256", "text": "public function actionSearch()\n\t{\n\t\t$this->requirePostRequest();\n\n\t\t$data = craft()->request->getPost();\n\t\t$resoParams = craft()->retsRabbit_forms->toReso($data);\n\t\t$search = craft()->retsRabbit_searches->newPropertySearch(array(\n\t\t\t'params' => $resoParams\n\t\t));\n\n\t\tif(craft()->retsRabbit_searches->saveSearch($search)) {\n\t\t\tcraft()->userSession->setNotice(Craft::t('Search saved'));\n\n\t\t\t$this->redirectToPostedUrl(array('searchId' => $search->id));\n\t\t} else {\n\t\t\tcraft()->userSession->setError(Craft::t(\"Couldn't save search.\"));\n\t\t\tcraft()->urlManager->setRouteVariables(array('search' => $search));\n\t\t}\n\t}", "title": "" }, { "docid": "496fa1a5841bb5e44ea24d221ea511c3", "score": "0.6384776", "text": "public function processSearch()\n {\n if($this->getShouldBeSearched()) {\n $this->addToSearch();\n $this->addOtherLanguagesToSearch();\n }\n else {\n $this->removeFromSearch();\n }\n }", "title": "" }, { "docid": "b4d031e58859e6e9bac00ee2cd487586", "score": "0.63700235", "text": "public function search() \n\t{\n\t\n\t\t//get all workflows we own, or are part of\n\t\t$sql = \"SELECT * FROM docmgr.dm_workflow\n\t\t\t\t\t\tWHERE \n\t\t\t\t\t\t\t(account_id='\".USER_ID.\"' OR \n\t\t\t\t\t\t\tdm_workflow.id IN (SELECT workflow_id FROM docmgr.dm_workflow_route WHERE account_id='\".USER_ID.\"')\n\t\t\t\t\t\t\t)\";\n\n\t\tif ($this->apidata[\"filter\"]==\"current\")\n\t\t\t$sql .= \"\tAND (dm_workflow.status IN ('nodist','pending') OR dm_workflow.status IS NULL) \";\n\t\telse if ($this->apidata[\"filter\"]==\"history\")\n\t\t\t$sql .= \"\tAND (dm_workflow.status IN ('forcecomplete','complete','rejected')) \";\n\n\t\t$sql .= \"\tORDER BY id DESC\";\n\n\t\t$list = $this->DB->fetch($sql);\n\n\t\t//loop through and add sme extra information\t\t\n\t\tfor ($i=0;$i<$list[\"count\"];$i++) \n\t\t{\n\n\t\t\t$sql = \"SELECT id,name FROM docmgr.dm_object WHERE id IN \n\t\t\t\t\t\t\t(SELECT object_id FROM docmgr.dm_workflow_object WHERE workflow_id='\".$list[$i][\"id\"].\"')\";\n\t\t\t$objlist = $this->DB->fetch($sql);\n\t\t\tunset($objlist[\"count\"]);\n \n\t\t\t$list[$i][\"object\"] = $objlist;\n \n\t\t\t$a = new ACCOUNT($list[$i][\"account_id\"]);\n\t\t\t$ainfo = $a->getInfo();\n\n\t\t\t$list[$i][\"account_name\"] = $ainfo[\"first_name\"].\" \".$ainfo[\"last_name\"];\n\t\t\n\t\t\t$list[$i][\"status_view\"] = $this->viewStatus($list[$i][\"status\"]);\t\n\t\t\t$list[$i][\"date_create_view\"] = dateView($list[$i][\"date_create\"]);\n\t\t\t$list[$i][\"date_complete_view\"] = dateView($list[$i][\"date_complete\"]);\n\n\t\t\t$this->PROTO->add(\"record\",$list[$i]);\n\t\t\t\n\t\t}\n\n\t}", "title": "" }, { "docid": "3df8386de2bfed8606ae84025e08c44f", "score": "0.6234315", "text": "public function entrezsearch()\n\t{\n\t\t// Load model - batchresults\n\t\t$argumet_keys = array('target_query', 'rel_web');\n\t\t$key = $this->_load_requests($argumet_keys)['target_query'];\n\t\t$web = $this->_load_requests($argumet_keys)['rel_web'];\n\t\t\n\t\t$this->load->model('Page_entrez', 'pentrez');\n\t\t//$data['key'] = $key;\n\t\techo $this->pentrez->get_outputs_search($key, $web);\n\t\t//echo $this->load->view('main_result', $data, true);\n\t}", "title": "" }, { "docid": "6c7293a2d4660975e086968fa864fe95", "score": "0.6212645", "text": "public function search ()\n {\n $params = fixer::input('request')->get();\n $pager = $this->contractService->search($params);\n $this->view->pager = $pager;\n $this->display();\n }", "title": "" }, { "docid": "401f80eece4ee85914019420ad07f518", "score": "0.6170602", "text": "public function search($command) {\n\t\t$mybook = new phonebook();\n\t\t$this->command = $command;\n\t\t$flag = 0;\n\t\t$searchbook = array();\n\t\t$sort = \"name\";\n\t\t$direction = \"down\";\n\t\t$emptyfields = false;\n\t\t$element['name'] = '';\n\t\t$element['phone'] = '';\n\t\tif (sizeof($this->command->getParameters()) > 1) {\n\t\t\t$parameters = $this->command->getParameters();\n\t\t\t$parameters[0] == 'phone' ? $sort = 'phone' : $sort = 'name';\n\t\t\t$parameters[1] == 'down' ? $direction = 'down' : $direction = 'up';\n\t\t}\n\t\tif (sizeof($this->command->getParameters()) > 2) {\n $parameters = $this->command->getParameters();\n $element['name'] = $parameters[2];\n if (sizeof($this->command->getParameters()) > 3) $element['phone'] = $parameters[3];\n\t\t\tif ($element['name'] != '' OR $element['phone'] != '') {\n\t\t\t\t$flag = 1;\n\t\t\t\t$mybook->get_search_data($element);\n\t\t\t}\n\t\t}\n $searchbook = $mybook->get_searched_data($sort, $direction);\n\t\t\n\t\tif (count($searchbook) === 0 AND $flag === 1) echo \"No match founded...<br><hr>\";\n\t\t\n\t\tif (isset($_REQUEST['doSearch'])) {\n\t\t\t$element = $_REQUEST['element'];\n\t\t\tif (ini_get(\"magic_quotes_gpc\"))\n\t\t\t\t$element = array_map('stripslashes', $element);\n if (($element['name'] == \"\") AND ($element['phone'] == \"\")) {\n\t\t\t\t$emptyfields = true; // echo \"<hr>Empty fields. Search is impossible.<hr>\";\n\t\t\t} else {\n $mybook->get_search_data($element);\n $url = dirname($_SERVER['SCRIPT_NAME']);\n\t\t\t\t$url .= '/search';\n\t\t\t\tHeader(\"Location: $url\");\n\t\t\t\texit();\n\t\t\t}\n\t\t}\n\t\tinclude(__DIR__ . \"/../views/search.html.php\");\n\t}", "title": "" }, { "docid": "ebc56c6c703ef7bfb62ad708a570ff81", "score": "0.61694795", "text": "public function search($searchQuery);", "title": "" }, { "docid": "59510bc5fc3c6691ecd830e0df5bf4e2", "score": "0.6129726", "text": "public function search()\n {\n\n }", "title": "" }, { "docid": "59510bc5fc3c6691ecd830e0df5bf4e2", "score": "0.6129726", "text": "public function search()\n {\n\n }", "title": "" }, { "docid": "59510bc5fc3c6691ecd830e0df5bf4e2", "score": "0.6129726", "text": "public function search()\n {\n\n }", "title": "" }, { "docid": "59510bc5fc3c6691ecd830e0df5bf4e2", "score": "0.6129726", "text": "public function search()\n {\n\n }", "title": "" }, { "docid": "59510bc5fc3c6691ecd830e0df5bf4e2", "score": "0.6129726", "text": "public function search()\n {\n\n }", "title": "" }, { "docid": "4a13148151d8631a39b3e7e9733f09ff", "score": "0.6123682", "text": "function search() {\n\t\t\n\n\t\t// breadcrumb urls\n\t\t$this->data['action_title'] = get_msg( 'module_search' );\n\t\t\n\t\t// condition with search term\n\t\t$conds = array( 'searchterm' => $this->searchterm_handler( $this->input->post( 'searchterm' )) );\n\n\t\t// pagination\n\t\t$this->data['rows_count'] = $this->Module->count_all_by( $conds );\n\n\t\t// search data\n\n\t\t$this->data['modules'] = $this->Module->get_all_by( $conds, $this->pag['per_page'], $this->uri->segment( 4 ) );\n\t\t\n\t\t// load add list\n\t\tparent::module_search( );\n\t}", "title": "" }, { "docid": "7a23e0ba51d3ff1df9c6862909c635a1", "score": "0.6087015", "text": "function submit() {\n\n \tglobal $searchArgList;\n\n\t\tforeach ($searchArgList as $key=>$data) {\n\t\t\t\n\t\t\tif ($this->input->post($data))\n\t\t\t\t$segments[$data] = $this->input->post($data);\n\t\t\telse\n\t\t\t\t$segments[$data] = 0;\t\n\t\t\t\n\t\t}\n\t\t\n\t\t$url = \"/invoices/search/\";\n\t\t\n\t\tforeach ($segments as $data)\n\t\t\t$url .= $data . \"/\";\n\t\t\t\n\t\t\n\t\tredirect($url);\n \n }", "title": "" }, { "docid": "5adea189f0826329a9bc8f0c20b88177", "score": "0.60650396", "text": "public function search(){\n\t\t\t$this->setView('search');\n\t\t\t$model = new Model('phonebook');\n\t\t\t$flag = strpos($_POST['searchContent'],\" \");\n\n\t\t\tif($flag === false)\n\t\t\t\t// Search by first name.\n\t\t\t\t$data = $model->selectBySql(\"select * from people natural join phoneowner natural join phone_info where first = '{$_POST['searchContent']}'\");\n\t\t\telse{\n\t\t\t\t// Search by full name\n\t\t\t\t$temp = explode(\" \",$_POST['searchContent']);\n\t\t\t\t$data = $model->selectBySql(\"select * from people natural join phoneowner natural join phone_info where first = '{$temp[0]}' and last = '{$temp[1]}'\");\n\t\t\t}\n\t\t\t// Show search results.\n\t\t\t$this->setData(array('data'=>$data));\n\t\t}", "title": "" }, { "docid": "1f77f4db5a038a95be13cae7219cf05c", "score": "0.60648745", "text": "private function job_get_by_search()\n {\n //echo '*** job_get_by_search()</p>';\n \n $keyword = $this->session->userdata('keyword');\n $location = $this->session->userdata('location');\n $country_id = 'NULL'; \n $job_type_id = $this->session->userdata('job_type') == NULL ? '1' : $this->session->userdata('job_type');\n $brand_id = 'NULL'; \n $row_start = $this->row_start; \n $row_amount = $this->row_amount;\n\n \n $data['query'] = $this->job->search( $keyword, \n $location, \n $country_id, \n $job_type_id, \n $brand_id, \n $row_start, \n $row_amount);\n\n \n $data['row_index'] = $this->row_index;\n $data['uri_path'] = 'jobs/page';\n\n $this->job_display_selection($data);\n }", "title": "" }, { "docid": "228ebf68e7372f5e681d532407329e0a", "score": "0.60521746", "text": "public function search()\n {\n \treturn $this->index(Input::get());\n }", "title": "" }, { "docid": "3944e0a1f2bd7d22bbeec10525ae9eda", "score": "0.6036639", "text": "public function search() {\n if (isset($_POST['request']))\n $title = trim($_POST['request']);\n\n//retrieve all books and store them in an array\n if (($query = $this->book_model->search_book($title)) > 0) {\n//search succeeded, display books found\n $view = new Book_Inventory();\n $view->display($query);\n }\n }", "title": "" }, { "docid": "62c3a548bf26907637205294bad99afb", "score": "0.6021012", "text": "public function admin_search() {\n\t\t$this->search();\n\t}", "title": "" }, { "docid": "b89a58f457fcbce9d6e31490ef3dd1dd", "score": "0.6010611", "text": "public function searchForSomething()\n {\n $this->search('something');\n }", "title": "" }, { "docid": "d134cce96f1e665d32389377e54c8ccd", "score": "0.6004437", "text": "public function search(){ \n\t\t$this->layout = false;\t \n\t\t$q = trim(Sanitize::escape($_GET['q']));\t\n\n\t\tif(!empty($q)){\n\t\t\t// execute only when the search keywork has value\t\t\n\t\t\t$this->set('keyword', $q);\n\t\t\t$options = array(\t\t\t\n\t\t\tarray('table' => 'app_users',\n\t\t\t\t\t'alias' => 'PROJ_LEAD',\t\t\t\t\t\n\t\t\t\t\t'type' => 'LEFT',\n\t\t\t\t\t'conditions' => array('`PROJ_LEAD`.`id` = `TskProjectRequest`.`project_leader`')\n\t\t\t\t)\n\t\t\t);\n\t\t\t$this->TskProjectRequest->virtualFields = array('full_name' => \"concat(PROJ_LEAD.first_name, ' ', PROJ_LEAD.last_name)\");\n\n\t\t\t$data = $this->TskProjectRequest->find('all', array('fields' => array('project_name','TskCustomer.company_name', 'full_name'), 'group' => array('project_name', 'TskCustomer.company_name','full_name'), 'conditions' => \t$conditions = array(\"OR\" => array ('project_name like' => '%'.$q.'%','TskCustomer.company_name like' => '%'.$q.'%', 'PROJ_LEAD.first_name like' => $q.'%' ), 'AND' => array('TskProjectRequest.is_deleted' => 'N')), 'joins' => $options));\t\t\n\t\t\t$this->set('results', $data);\n\t\t}\n }", "title": "" }, { "docid": "e3f7b38c2495a5799541bc831dc1a1ba", "score": "0.5995885", "text": "public function onSearch()\n {\n // get the search form data\n $data = $this->form->getData();\n \n // clear session filters\n TSession::setValue(__CLASS__.'_filter_system_user_id', NULL);\n TSession::setValue(__CLASS__.'_filter_type_paciente_id', NULL);\n TSession::setValue(__CLASS__.'_filter_pacient_name', NULL);\n TSession::setValue(__CLASS__.'_filter_mother_name', NULL);\n TSession::setValue(__CLASS__.'_filter_uaps', NULL);\n TSession::setValue(__CLASS__.'_filter_birthday', NULL);\n TSession::setValue(__CLASS__.'_filter_cns', NULL);\n TSession::setValue(__CLASS__.'_filter_bolsa_familia', NULL);\n\n if (isset($data->system_user_id) AND ($data->system_user_id)) {\n $filter = new TFilter('system_user_id', '=', $data->system_user_id); // create the filter\n TSession::setValue(__CLASS__.'_filter_system_user_id', $filter); // stores the filter in the session\n }\n\n\n if (isset($data->type_paciente_id) AND ($data->type_paciente_id)) {\n $filter = new TFilter('type_paciente_id', 'like', \"%{$data->type_paciente_id}%\"); // create the filter\n TSession::setValue(__CLASS__.'_filter_type_paciente_id', $filter); // stores the filter in the session\n }\n\n\n if (isset($data->pacient_name) AND ($data->pacient_name)) {\n $filter = new TFilter('pacient_name', 'like', \"%{$data->pacient_name}%\"); // create the filter\n TSession::setValue(__CLASS__.'_filter_pacient_name', $filter); // stores the filter in the session\n }\n\n\n if (isset($data->mother_name) AND ($data->mother_name)) {\n $filter = new TFilter('mother_name', 'like', \"%{$data->mother_name}%\"); // create the filter\n TSession::setValue(__CLASS__.'_filter_mother_name', $filter); // stores the filter in the session\n }\n\n\n if (isset($data->uaps) AND ($data->uaps)) {\n $filter = new TFilter('uaps', 'like', \"%{$data->uaps}%\"); // create the filter\n TSession::setValue(__CLASS__.'_filter_uaps', $filter); // stores the filter in the session\n }\n\n\n if (isset($data->birthday) AND ($data->birthday)) {\n $filter = new TFilter('birthday', 'like', \"%{$data->birthday}%\"); // create the filter\n TSession::setValue(__CLASS__.'_filter_birthday', $filter); // stores the filter in the session\n }\n\n\n if (isset($data->cns) AND ($data->cns)) {\n $filter = new TFilter('cns', 'like', \"%{$data->cns}%\"); // create the filter\n TSession::setValue(__CLASS__.'_filter_cns', $filter); // stores the filter in the session\n }\n\n\n if (isset($data->bolsa_familia) AND ($data->bolsa_familia)) {\n $filter = new TFilter('bolsa_familia', 'like', \"%{$data->bolsa_familia}%\"); // create the filter\n TSession::setValue(__CLASS__.'_filter_bolsa_familia', $filter); // stores the filter in the session\n }\n\n \n // fill the form with data again\n $this->form->setData($data);\n \n // keep the search data in the session\n TSession::setValue(__CLASS__ . '_filter_data', $data);\n \n $param = array();\n $param['offset'] =0;\n $param['first_page']=1;\n $this->onReload($param);\n }", "title": "" }, { "docid": "1be464c0ac5803c6a2855567e782829d", "score": "0.59933364", "text": "public function actionNamesearch()\n {\n Yii::log(' actionNamesearch Request:' . print_r($_REQUEST, true), 'debug', 'NicsearchController::actionNamesearch()');\n if (isset($_GET['from']) && $_GET['from'] == '1') {\n $model = new NicSearchModel($_GET['from']);\n } else {\n $model = new NicSearchModel();\n }\n $this->render('namesearch', array('model' => $model));\n }", "title": "" }, { "docid": "14d9cbcf245ffe7c1eeda9d2896ce86d", "score": "0.59807694", "text": "public function search_result()\n {\n // TODO: change $_POST to standard post function in CI\n // retrieval of search_results is done from User_functions_model->show_search_results\n $this->Home_model->show_search_result();\n }", "title": "" }, { "docid": "83cd73451cb8aad38fd1088feea84cd6", "score": "0.5977746", "text": "public function search()\r\n {\r\n $data['result'] = $this->misc_model->perform_search($this->input->post('q'));\r\n $this->load->view('admin/search', $data);\r\n }", "title": "" }, { "docid": "34c908410ecdc0abfb6a32c7e9dfb21f", "score": "0.59705603", "text": "function onSearch()\n {\n // get the search form data\n $data = $this->form->getData();\n \n // clear session filters\n TSession::setValue('MemberList_filter_id', NULL);\n TSession::setValue('MemberList_filter_name', NULL);\n TSession::setValue('MemberList_filter_cpf', NULL);\n\n if (isset($data->id) AND ($data->id)) {\n $filter = new TFilter('id', '=', \"$data->id\"); // create the filter\n TSession::setValue('MemberList_filter_id', $filter); // stores the filter in the session\n }\n\n\n if (isset($data->name) AND ($data->name)) {\n $filter = new TFilter('name', 'like', \"%{$data->name}%\"); // create the filter\n TSession::setValue('MemberList_filter_name', $filter); // stores the filter in the session\n }\n\n\n if (isset($data->cpf) AND ($data->cpf)) {\n $filter = new TFilter('cpf', '=', \"$data->cpf\"); // create the filter\n TSession::setValue('MemberList_filter_cpf', $filter); // stores the filter in the session\n }\n\n \n // fill the form with data again\n $this->form->setData($data);\n \n // keep the search data in the session\n TSession::setValue('Member_filter_data', $data);\n \n $param=array();\n $param['offset'] =0;\n $param['first_page']=1;\n $this->onReload($param);\n }", "title": "" }, { "docid": "0285cfdfbafa4fb920eb80c734f0bf5d", "score": "0.596265", "text": "public function Search()\r\n\t{\r\n\t\t$this->SetSearchPage();\r\n\t}", "title": "" }, { "docid": "117a081ae0080fa26bfdd78e68d5ac7f", "score": "0.59489423", "text": "private function search2Action(){\n\t\t$req = $this -> getRequest();\n\t\t$p = $req -> getParams();\n\t\t\n\t\t$page = 1;\n\t\tif (isset($p['page'])){\n\t\t\t$page = $p['page'];\n\t\t}\n\t\t\n\t\t$bikeSearchParam = $this -> bikeNS -> bikeSearchParam;\n\t\tif (is_array($bikeSearchParam)){\n\t\t\t$p = $bikeSearchParam;\t\t\t\n\t\t\t//Set old page\n\t\t\t$p['page'] = $page;\n\t\t}\n\t\t\n\t\t/*\n\t\tif (isset($p['jsActive']) && ($p['jsActive'] == 'on')){\n\t\t\t$num = (($page) * System_Properties::NUM_ADS);\n\t\t\tif ($num > 100){\n\t\t\t\t$num = 100;\n\t\t\t}\n\t\t\t$p['limit'] = array('start' => 0, 'num' => $num);\t\t\t\n\t\t}else{\n\t\t\t*/\n\t\t\t$p['limit'] = array('start' => (($page-1) * System_Properties::NUM_ADS), 'num' => System_Properties::NUM_ADS);\n\t\t//}\n\t\t$bikeAds = $this -> searchBikeAds($p);\n\t\t\n\t\t$this -> view -> searchParam = $this -> bikeNS -> bikeSearchParam;\n\t\t\n\t\t//Search process successfully passed and found some matches\n\t\tif (is_array($bikeAds) && (count($bikeAds) > 0)){\n\t\t\t$this -> loadBikeModelsBrands($this -> bikeNS -> bikeSearchParam);\n\t\t\t\t\t\t\n\t\t\t$bikeAds['numAds'] = System_Properties::NUM_ADS;\n\t\t\t$bikeAds['actPage'] = $page;\n\t\t\t$this -> view -> bikeAds = $bikeAds;\t\t\n\t\t\t$this -> render('search2');\n\t\t}\t\t\n\t\telse{\n\t\t\t$lang = $this -> lang;\n\t\t\t$this -> view -> error = $lang['ERR_4'];\n\t\t\t$this -> search1Action();\n\t\t}\n\t}", "title": "" }, { "docid": "c6dad862e6ee8db3224635a0bb228f88", "score": "0.5937291", "text": "public function search(){ \n\t\t$this->layout = false;\t \n\t\t$q = trim(Sanitize::escape($_GET['q']));\t\n\t\tif(!empty($q)){\n\t\t\t// execute only when the search keywork has value\t\t\n\t\t\t$this->set('keyword', $q);\n\t\t\t$data = $this->TvlBookTkt->find('all', array('fields' => array('tvl_code','TskCustomer.company_name','TvlPlace.place'), 'group' => array('tvl_code','TskCustomer.company_name','TvlPlace.place'), 'conditions' => \t$conditions = array(\"OR\" => array ('tvl_code like' => '%'.$q.'%',\n\t\t\t'TskCustomer.company_name like' => '%'.$q.'%', 'TvlPlace.place like' => '%'.$q.'%'), 'AND' => array('TvlBookTkt.is_deleted' => 'N', 'TvlBookTkt.is_approve' => 'Y'))));\t\t\n\t\t\t$this->set('results', $data);\n\t\t}\n }", "title": "" }, { "docid": "96dab665e9d1adee6c3a95f02d70c786", "score": "0.59342194", "text": "function search(){\n }", "title": "" }, { "docid": "997d101aaa44cff179c2ea9924cc8e41", "score": "0.59186864", "text": "public function searchAction()\n {\n \n $searchResult = new SiteResultProvider();\n\n $count = $searchResult->getNumResults($_GET['term']);\n $siteResult = $searchResult->getResultHtml(1, 2, $_GET['term']);\n\n View::render('Home/SiteSearch.php',[\n 'count'=>$count,\n 'sites'=>$siteResult,\n 'searchTerm'=>$_GET['term']\n ]);\n \n // echo $_GET['term'] .\" : \".__LINE__;\n\n \n\n\n }", "title": "" }, { "docid": "0e8fcb16e61453e69c62f5cb77a1adcb", "score": "0.59169245", "text": "public function search()\r\n\t{\r\n\t\t$base = $this->searchRedirectParams();\r\n\t\t$params = $this->getAllSearchParams();\r\n\t\t\r\n\t\t$params = array_merge($base, $params);\r\n\t\t\r\n\t\t// check spelling\r\n\t\t\r\n\t\tif ( $this->request->getProperty(\"spell\") != \"none\" )\r\n\t\t{\r\n\t\t\t$spelling = $this->query->checkSpelling();\r\n\t\t\t\r\n\t\t\tforeach ( $spelling as $key => $correction )\r\n\t\t\t{\r\n\t\t\t\t$params[\"spelling_$key\"] = $correction;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t$url = $this->request->url_for($params);\r\n\t\t\r\n\t\t$this->request->setRedirect($url);\r\n\t}", "title": "" }, { "docid": "5ebb350696dafe4c42f4abeda0561b10", "score": "0.5906155", "text": "protected abstract function search($arg);", "title": "" }, { "docid": "a8f2bda68d6bba795cc8cdf85259aec1", "score": "0.58781993", "text": "public function actionSearch()\n\t{\n\t\treturn parent::actionSearch([\n\t\t\t'queryOptions' => [\n\t\t\t\t'with' => [\n\t\t\t\t\t'author', 'type', 'requestFor', \n\t\t\t\t\t'completedBy', 'closedBy', 'replyModel', \n\t\t\t\t\t'issueModel', 'revisionModel', 'voteModel'\n\t\t\t\t]\n\t\t\t]\n\t\t]);\n\t}", "title": "" }, { "docid": "c1ea0bbc25c48148dd5367cbb1744e65", "score": "0.5877089", "text": "public function actionIndex(){\n// $this->actionSearch(\"人人网雅思哥 p\");\n// sleep(45);\n $this->actionSearch(\"room p1 p2\");\n sleep(45);\n $this->actionSearch(\"room part1 part2\");\n sleep(45);\n $this->actionSearch(\"rm p1 p2\");\n sleep(45);\n $this->actionSearch(\"rm part1 part2\");\n sleep(45);\n $this->actionSearch(\"r p1 p2\");\n Yii::app()->end();\n }", "title": "" }, { "docid": "60adbf660be3f1224bbd2c212c16917c", "score": "0.58744186", "text": "public function executeCpfEmployeeSearch()\n {\n// $c->add(TkDtrmasterPeer::CPF, 'YES');\n// $this->pager = TkDtrmasterPeer::GetPager($c);\n \n $c = new PayBasicPayCriteria('CPF');\n $c->add(PayBasicPayPeer::CPF, 'YES');\n $this->pager = PayBasicPayPeer::GetPager($c);\n \n \n }", "title": "" }, { "docid": "6f2342dba53b335f7036400cef3aac42", "score": "0.58599555", "text": "protected function searchAction()\n {\n $this->dispatch(EasyAdminEvents::PRE_SEARCH);\n\n $query = trim($this->request->query->get('query'));\n\n // if the search query is empty, redirect to the 'list' action\n if ('' === $query || 'custom' == $query) {\n $queryParameters = array_replace($this->request->query->all(), array('action' => 'list', 'query' => null));\n $queryParameters = array_filter($queryParameters);\n\n return $this->redirect($this->get('router')->generate('easyadmin', $queryParameters));\n }\n\n $searchableFields = $this->entity['search']['fields'];\n $paginator = $this->findBy(\n $this->entity['class'],\n $query,\n $searchableFields,\n $this->request->query->get('page', 1),\n $this->entity['list']['max_results'],\n isset($this->entity['search']['sort']['field']) ? $this->entity['search']['sort']['field'] : $this->request->query->get('sortField'),\n isset($this->entity['search']['sort']['direction']) ? $this->entity['search']['sort']['direction'] : $this->request->query->get('sortDirection'),\n $this->entity['search']['dql_filter']\n );\n $fields = $this->entity['list']['fields'];\n $form = isset($this->entity['search']['custom']) ? $this->createForm($this->entity['search']['custom']['form'], null, ['filters' => $this->request->query->get('filters')]) : null;\n $this->dispatch(EasyAdminEvents::POST_SEARCH, array(\n 'fields' => $fields,\n 'paginator' => $paginator,\n ));\n\n $parameters = array(\n 'paginator' => $paginator,\n 'fields' => $fields,\n 'form' => $form ? $form->createView() : null,\n 'delete_form_template' => $this->createDeleteForm($this->entity['name'], '__id__')->createView(),\n );\n\n return $this->executeDynamicMethod('render<EntityName>Template', array('search', $this->entity['templates']['list'], $parameters));\n }", "title": "" }, { "docid": "ca7206babf4ece479effd41112ee1cc3", "score": "0.58565444", "text": "public function search()\n\t{\n\t\t$term = $this->input->get('term');\n\t\t$results = Auto_Modeler_ORM::factory('project')->search($term);\n\t\t$this->view->results = $results;\n\t}", "title": "" }, { "docid": "2dba640c1da5be20dfc395490fed81e3", "score": "0.5850426", "text": "public function search()\n {\n\n $search_terms = Input::get('keywords', false);\n $search_terms = trim($search_terms);\n\n if (is_null($search_terms) OR $search_terms == '')\n {\n $this->_message('Please enter some search terms and try again', false);\n $this->_response->redirect(PageController::class, 'dashboard');\n }\n\n $results = new Search($this, $search_terms);\n\n Hooks::broadcast('search', $results);\n\n $this->_setVariable(compact('results'));\n\n }", "title": "" }, { "docid": "59b681cfd450ba556661910b0250db4d", "score": "0.5849761", "text": "public function searchresult() {\n $this->layout = \"buzzydocinner\";\n if ($this->request->data['key'] == '') {\n return $this->redirect('/dashboard/');\n }\n $data = array(\n 'key' => $this->request->data['key']\n );\n $searchresult = $this->Api->submit_cURL(json_encode($data), Buzzy_Name . '/api/serarchdocorclinic.json');\n $sresult = json_decode($searchresult);\n if ($sresult->serachresult->success == 1) {\n\n $this->set('SearchResult', $sresult->serachresult->data);\n $this->set('searchkey', $this->request->data['key']);\n } else {\n $this->set('SearchResult', $sresult->serachresult->data);\n $this->set('searchkey', $this->request->data['key']);\n }\n }", "title": "" }, { "docid": "cfada8558d6084e466bcf6f2fa14479a", "score": "0.58481556", "text": "public function search()\n {\n $filtered_file_arr = array();\n if (array_key_exists('search_text', $_POST)) {\n $target_str = $_POST['search_text'];\n\n if (empty($target_str) == False && $target_str != '') {\n $file_arr = glob('data/*.xml');\n foreach($file_arr as &$value) {\n $value = basename($value);\n if (False != stristr($value, $target_str)) {\n array_push($filtered_file_arr, $value);\n }\n }\n }\n\n }\n else {\n $target_str = '';\n }\n\n $data['file_arr'] = $filtered_file_arr;\n\n $this->load->view('ecg/search_result', $data);\n\n }", "title": "" }, { "docid": "4a5477204560edfe3f00436500ce5847", "score": "0.5845179", "text": "public function searchAction()\n {\n //$form = new SearchForm();\n \n $request = $this->getRequest();\n if($_REQUEST)\n {\n //if($form->isValid())\n //{\n $name = $_REQUEST['search_name'];\n //$category = $_REQUEST['search_category'];\n return new viewModel(array(\n 'search_results' => $this->getEmployeeTable()->searchEmployee($name)\n ));\n //}\n \n }\n }", "title": "" }, { "docid": "f385e16f7e2eddcd83df55e6b240a40e", "score": "0.584034", "text": "protected function _processSearch()\n {\n parent::_processSearch();\n\n $query = Mage::helper('catalogsearch')->getQuery();\n $query->setNumResults(count($this->_matchedIds))\n ->setIsProcessed(1)\n ->save();\n\n return $this;\n }", "title": "" }, { "docid": "d24436618c450bdd7d2845c4a6b272fa", "score": "0.58365655", "text": "public function actionSearchJob()\n {\n // First of all: retrieve the user resume\n $resume = Resume::find()\n ->where(['user_id' => \\Yii::$app->user->id])\n ->asArray()\n ->one();\n\n // Retrieve the active job list filtered by expired date\n $jobList = Job::find()\n ->where(['>', 'expired_at', new Expression('NOW()')])\n ->asArray()\n ->all();\n\n /**\n * Call the MatchStrategy to decide which match implementation will be used\n */\n $matchInstance = new MatchStrategy($jobList,null,0.18);\n\n // If the resume was found keep going\n if (!is_null($resume)) {\n /**\n * In this step we'll use the Match-engine to handle the comparison\n * between candidate resume and the offered jobs\n */\n $jobList = $matchInstance->match($resume, $jobList);\n\n // Return the filtered jobList by Match engine\n return $jobList;\n }\n else {\n // Return all the active jobs without filtering by match engine\n return $jobList;\n }\n }", "title": "" }, { "docid": "3468daa917eab8b292b5034d9ccc08d6", "score": "0.5836539", "text": "public function search(){\r\n\t\t$parishID = Convert::raw2sql($this->request->getVar('ParishID'));\t\t\r\n\t\tif(!$this->canAccess($parishID)){\r\n\t\t\treturn $this->renderWith(array('Unathorised_access', 'App'));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t$this->title = 'Search Other Facility';\r\n\t\t$this->list = $this->Results();\r\n\t\treturn $this->renderWith(array('OtherFacility_results','App'));\r\n\t}", "title": "" }, { "docid": "162fa746a228116e1b31421c49f1a473", "score": "0.5831337", "text": "public function searchAction() {\n\t $pubTable = new Model_DbTable_Pub();\n\t \n\t $pubService = new Service_Pub();\n\t $pubs = $pubTable->fetchAll($pubService->searchPub($this->_getParam('q')));\n\t \n\t $this->_generateResponse($pubs);\n\t}", "title": "" }, { "docid": "db158c5c12abad07f0e80c92a32a57e6", "score": "0.5824626", "text": "public function actionSearch()\n\t{\n\t\t$docNo = Yii::app()->request->getParam('docNo');\n\t\t$in_docs = array();\n\t\t$out_docs = array();\n\t\t$out_docs_to_me = array();\n\t\t\n\t\tif($docNo!=\"\"){\n\t\t\tif(Yii::app()->user->checkAccess(\"DG\")){\n\t\t\t\t$in_docs = IncDocument::model()->findAll(\"inc_document_no like '%$docNo%'\");\n\t\t\t\t$out_docs = OutDocument::model()->findAll(\"out_document_no like '%$docNo%'\");\n\t\t\t\t$out_docs_to_me = OutDocument::model()->findAll(\"out_document_no like '%$docNo%'\");\n\t\t\t}else{\n\t\t\t\t$in_docs = IncDocument::model()->indoc_of_me()->findAll(\"inc_document_no like '%$docNo%'\");\n\t\t\t\t$out_docs = OutDocument::model()->outdoc_of_me()->findAll(\"out_document_no like '%$docNo%'\");\n\t\t\t\t$out_docs_to_me = OutDocument::model()->outdoc_to_me()->findAll(\"out_document_no like '%$docNo%'\");\n\t\t\t}\n\t\t}\n\n\t\t\t$in_docs=new CArrayDataProvider($in_docs, array(\n\t\t\t 'keyField'=>'document_id',\n\t\t\t\t'sort'=>array(\n\t\t\t 'attributes'=>array(\n\t\t\t '*',\n\t\t\t ),\n\t\t\t 'defaultOrder'=>'t.id DESC',\n\t\t \t),\n\t\t\t 'pagination'=>array(\n\t\t\t 'pageSize'=>30,\n\t\t\t ),\n\t\t\t));\n\t\n\t\t\t$out_docs=new CArrayDataProvider($out_docs, array(\n\t\t\t 'keyField'=>'document_id',\n\t\t\t 'pagination'=>array(\n\t\t\t 'pageSize'=>30,\n\t\t\t ),\n\t\t\t));\n\t\t\t\n\t\t\t$out_docs_to_me=new CArrayDataProvider($out_docs_to_me, array(\n\t\t\t 'keyField'=>'document_id',\n\t\t\t 'pagination'=>array(\n\t\t\t 'pageSize'=>30,\n\t\t\t ),\n\t\t\t));\n\t\t\n\t\t$this->render('search',array(\n\t\t\t'docNo'=>$docNo,\n\t\t\t'in_docs'=>$in_docs,\n\t\t\t'out_docs'=>$out_docs,\n\t\t\t'out_docs_to_me'=>$out_docs_to_me\n\t\t));\n\t}", "title": "" }, { "docid": "d61bfeeb60ebc75ea4c72798246db022", "score": "0.58243865", "text": "public function launch()\n {\n global $interface;\n global $configArray;\n global $user;\n\n if (isset($_REQUEST['delete']) && $_REQUEST['delete']) {\n $todo = '_deleteSearch';\n $searchId = $_REQUEST['delete'];\n }\n // If for some strange reason the user tries\n // to do both, just focus on the save.\n if (isset($_REQUEST['save']) && $_REQUEST['save']) {\n $todo = '_addSearch';\n $searchId = $_REQUEST['save'];\n }\n\n $search = new SearchEntry();\n $search->id = $searchId;\n if ($search->find(true)) {\n // Found, make sure this is a search from this user\n if ($search->session_id == session_id()\n || $search->user_id == $user->id\n ) {\n // Call whichever function is required below\n $this->$todo($search);\n }\n }\n \n // If we are in \"edit history\" mode, stay in Search History:\n if (isset($_REQUEST['mode']) && $_REQUEST['mode'] == 'history') {\n header(\"Location: \".$configArray['Site']['url'].\"/Search/History\");\n } else {\n // If the ID wasn't found, or some other error occurred, nothing will\n // have processed by now, let the error handling on the display\n // screen take care of it.\n header(\n \"Location: \" . $configArray['Site']['url'] .\n \"/Search/Results?saved=$searchId\"\n );\n }\n }", "title": "" }, { "docid": "249d396213952a4065750986ca8f87b1", "score": "0.5823905", "text": "public function search() {\n $search = preg_quote($_POST[\"search\"], '/');\n $posts = $this->manager('WiitManager', \"post\")->search($search);\n $finalPost = [];\n foreach ($posts as $key => $post) {\n array_push($finalPost, [\"post\" => $post, \"user\" => $this->getOneUser($post->getUserId())]);\n }\n $this->views('Wiit/index.php', [\n \"posts\" => $finalPost,\n \"sub\" => $this->getAllSub(),\n \"where\" => \"search: \".$_POST[\"search\"]\n ]);\n }", "title": "" }, { "docid": "47b7b50211ebbfb4716793c3cdc782f9", "score": "0.5819986", "text": "function input() {\n\tif (!empty($this->data)) {\n\t\t$searchstr = $this->data['searchstr'];\n\t} else {\n\t\t$searchstr=null;\n\t}\n\t\n\t$this->redirect(HTTP_BASE.'search/find/'.$searchstr);\n\n }", "title": "" }, { "docid": "c6baccc9be522e3b93ad249f3aa43a19", "score": "0.58103704", "text": "public function startSearch()\n {\n if (!$this->search)\n $this->getHistory();\n else {\n $this->checkCategories();\n $this->checkArtists();\n $this->checkTags();\n }\n }", "title": "" }, { "docid": "45744359b8975e22a4ad1befa36771b4", "score": "0.5791449", "text": "private function executeSearch(): array\n {\n $age = input_request('age');\n $author = input_request('author');\n $subject = input_request('subject');\n $body = input_request('body');\n $nonce = $this->create_nonce();\n $json = [\n 'nonce' => $nonce,\n 'admin_url' => url_admin_post(),\n 'referer' => url_menu('bc_email'),\n 'title' => \\get_admin_page_title(),\n 'images' => url_images(),\n 'mode' => 'search',\n 'authors' => getAdministrators(),\n 'age' => $age,\n 'author' => $author,\n 'subject' => $subject,\n 'body' => $body\n ];\n $json['found'] = $this->search($age, $author, $subject, $body);\n return $json;\n }", "title": "" }, { "docid": "af8bd4dab6c83f9c83bb2e95aa1c7ffb", "score": "0.5782417", "text": "protected function remoteSearch()\n\t{\n\t\t$_POST['query'] = $_POST['queryString'];\n\t\t$this->search_cache->setRoot((int) $_POST['root_id']);\n\t\t$this->search_cache->setQuery(ilUtil::stripSlashes($_POST['queryString']));\n\t\t$this->search_cache->save();\n\t\t\n\t\t$this->search();\n\t}", "title": "" }, { "docid": "730201a061dc87eeb510d6cebafe356b", "score": "0.57799095", "text": "public function search() {\n\t\t\tif( Hash::check( $this->request->data, 'Search' ) ) {\n\t\t\t\t$query = $this->Indicateursuivi->search58( $this->request->data['Search'] );\n\n\t\t\t\t$query = $this->Allocataires->completeSearchQuery( $query );\n\n\t\t\t\t$this->Personne->forceVirtualFields = true;\n\t\t\t\t$results = $this->Allocataires->paginate( $query );\n\n\t\t\t\t$this->set( compact( 'results' ) );\n\t\t\t}\n\n\t\t\t$options = $this->Allocataires->options();\n\t\t\t$options = Hash::merge( $options, $this->Indicateursuivi->options( array( 'allocataire' => false ) ) );\n\t\t\t$this->set( compact( 'options' ) );\n\t\t}", "title": "" }, { "docid": "c71902bb56b51091d53dcab1dc7cdf71", "score": "0.5773111", "text": "public function indexAction()\n {\n $module = $this->params('m');\n $service = $this->params('s');\n if ($module) {\n $this->searchModule($module);\n } elseif ($service) {\n $this->searchService($service);\n } else {\n $this->searchGlobal();\n }\n }", "title": "" }, { "docid": "f92e04937f4b9e782fb2de715183bd64", "score": "0.57667714", "text": "public function searchAction() {\n $request = $this->getRequest();\n\n if ($request->isPost()) {\n $post = $request->getPost();\n\n $form = new Yourdelivery_Form_Administration_Order_Search();\n\n if ($form->isValid($post)) {\n $config = Zend_Registry::get('configuration');\n $domain_ending = end(explode('.', $config->domain->base));\n\n $values = $form->getValues();\n $input = explode(\"\\n\", $values['searchfor']);\n\n $orderIds = array();\n $orderNrs = array();\n\n // save order ids and order numbers in different arrays\n foreach ($input as $idnr) {\n $inputArr = explode(\";\", $idnr);\n\n $matchId = array();\n $matchPfxId = array();\n $matchNr = array();\n $idnr = trim($idnr);\n\n if ((preg_match('/[0-9]+/', $idnr, $matchId) > 0) && (is_numeric($idnr))) {\n $orderIds[] = intval($matchId[0]);\n }\n\n if (preg_match('/(' . $domain_ending . '\\_)([0-9a-zA-Z]+)/', $idnr, $matchPfxId) > 0) {\n $orderIds[] = intval($matchPfxId[2]);\n }\n\n if (preg_match('/(NB\\_S\\_)([0-9a-zA-Z]+)/', $idnr, $matchNr) > 0) {\n $orderNrs[] = $matchNr[2];\n }\n }\n\n $orderIds = array_unique($orderIds);\n $orderNrs = array_unique($orderNrs);\n\n $whereId = '0';\n $whereNr = '0';\n\n if (sizeof($orderIds) > 0) {\n $whereId = 'o.id IN (' . implode(',', $orderIds) . ')';\n }\n if (sizeof($orderNrs) > 0) {\n $whereNr = 'o.nr IN (\\'' . implode('\\',\\'', $orderNrs) . '\\')';\n }\n\n $whereString = $whereId . ' OR ' . $whereNr;\n\n $orders = Yourdelivery_Model_DbTable_Order::searchOrdersPerIdNr($whereString);\n\n $result = \"\";\n foreach ($orders as $o) {\n $result .= $domain_ending . '_' . $o['id'] . \";NB_S_\" . $o['nr'] . \";\" . (intval($o['state']) > 0 ? 'bestätigt' : 'storno') . \";\";\n $result .= ((empty($o['rabattId'])) ? \"[kein];[kein];[kein];\" : $o['rabattId'] . \";\" . $o['rabattName'] . \";\" . $o['code'] . \";\");\n $result .= \"regAfSale:\" . (($o['registeredAfterSale']) ? \"ja\" : \"nein\") . \";\";\n $result .= (($o['orderTime'] == $o['time']) || is_null($o['orderTime'])) ? \"Neukunde;\" : 'Bestandskunde;';\n $result .= number_format(($o['total'] + $o['serviceDeliverCost'] + $o['courierCost']) / 100, 2, ',', \".\");\n $result .= '\\n';\n }\n\n $this->view->input = $values['searchfor'];\n $this->view->result = $result;\n } else {\n $this->error($form->getMessages());\n }\n }\n }", "title": "" }, { "docid": "afbf5099d2fc3e6709b7b01a24c213c5", "score": "0.57620937", "text": "public function pmSearch() {\n\t\t\n\t\t// TODO keep improving\n\t\t// TODO fungerar inte med ÅÄÖ\n\t\t$searchQuery = $this->query;\n\n\t\tif (strPos($searchQuery, '+') !== FALSE) {\n\t\t\t$defaultOperator = self::requireOperator;\n\t\t} else {\n\t\t\t$defaultOperator = self::defaultOperator;\n\t\t}\n\n\t\t$apostofCount = substr_count($searchQuery, \"'\");\n\t\tif ($apostofCount % 2 != 0) {\n\t\t\t$searchQuery = str_replace(\"'\", \" \", $searchQuery);\n\t\t\t$error[] = 'Ojämnt antal apostorofer';\n\t\t}\n\n\t\tif ($this->searchText) {\n\t\t\t$this->fulltextsearch($searchQuery, $defaultOperator);\n\t\t}\n\n\t\t$splitQuote = explode(\"'\", $searchQuery);\n\t\tforeach ($splitQuote as $key1 => $value2) {\n\n\t\t\t// For search terms between ' '\n\t\t\tif ($key1 % 2 == 1) { \n\t\t\t\tif (strrpos($splitQuote[$key1 - 1], 1, -1) === '+') {\n\t\t\t\t\t$score = 10;\n\t\t\t\t\t$operator = self::requireOperator;\n\t\t\t\t} else if (strrpos($splitQuote[$key1 - 1], 1, -1) === '-') {\n\t\t\t\t\t$score = -10;\n\t\t\t\t\t$operator = self::removeOperator;\n\t\t\t\t} else if (strrpos($splitQuote[$key1 - 1], 1, -1) === '~') {\n\t\t\t\t\t$score = -1;\n\t\t\t\t\t$operator = self::defaultOperator;\n\t\t\t\t} else {\n\t\t\t\t\t$score = 1;\n\t\t\t\t\t$operator = self::defaultOperator;\n\t\t\t\t}\n\n\n\t\t\t\t$this->searchQueryPart($value2, $operator, $score, $this->result);\n\n\t\t\t} else {\n\t\t\t\tif (strrpos($value2, 1, -1) == '+' || strrpos($value2, 1, -1) == '-' || strrpos($value2, 1, -1) == '~') {\n\t\t\t\t\t$value2 = substr($value2, 0, -1);\n\t\t\t\t}\n\n\t\t\t\t$splitQuery = explode(' ', $value2);\n\t\t\t\tforeach ($splitQuery as $key => $query) {\n\t\t\t\t\tif ($query == '') {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tswitch(substr($query, 0, 1)) {\n\t\t\t\t\t\tcase '+':\n\t\t\t\t\t\t$score = 10;\n\t\t\t\t\t\t$query = substr($query, 1);\n\t\t\t\t\t\t$operator = self::requireOperator;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase '-':\n\t\t\t\t\t\t$score = -10;\n\t\t\t\t\t\t$query = substr($query, 1);\n\t\t\t\t\t\t$operator = self::removeOperator;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase '~':\n\t\t\t\t\t\t$score = -1;\n\t\t\t\t\t\t$query = substr($query, 1);\n\t\t\t\t\t\t$operator = self::defaultOperator;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t$score = 1;\n\t\t\t\t\t\t$operator = self::defaultOperator;\n\t\t\t\t\t}\t\n\n\t\t\t\t\t$this->searchQueryPart($query, $operator,$score, $this->result);\n\t\t\t\t} \n\t\t\t}\n\t\t}\n\n\t\tif ($defaultOperator == self::requireOperator) {\n\t\t\t$this->keepRequired($this->result);\n\t\t} else {\n\t\t\t$this->removeUnwantedResults($this->result);\n\t\t}\n\t}", "title": "" }, { "docid": "6191b3fb486e081e2936e0025286c4d0", "score": "0.5742994", "text": "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n $criteria->with = array('FileInfo', 'FileInfo.ProjectMaster', 'JobAllocation', 'JobAllocation.UserDetails');\n\n $criteria->compare('fp_part_id', $this->fp_part_id, true);\n $criteria->compare('fp_file_id', $this->fp_file_id, true);\n $criteria->compare('fp_category', $this->fp_category, true);\n $criteria->compare('fp_cat_id', $this->fp_cat_id, true);\n $criteria->compare('fp_page_nums', $this->fp_page_nums, true);\n $criteria->compare('fp_status', $this->fp_status, true);\n $criteria->compare('fp_created_date', $this->fp_created_date, true);\n $criteria->compare('fp_last_modified', $this->fp_last_modified, true);\n $criteria->compare('fp_flag', $this->fp_flag, true);\n //$criteria->addCondition(\"FileInfo.fi_admin_lock= 'O'\");\n\n if (!empty($_REQUEST['FilePartition']['filename'])) {\n $fileid = $_REQUEST['FilePartition']['filename'];\n $criteria->addCondition(\"FileInfo.fi_file_name LIKE '%$fileid%'\");\n }\n if (!empty($_REQUEST['FilePartition']['project'])) {\n $proj = $_REQUEST['FilePartition']['project'];\n $criteria->addCondition(\"ProjectMaster.p_pjt_id ='\" . $proj . \"'\");\n }\n if (!empty($_REQUEST['FilePartition']['splitter'])) {\n $splitter = $_REQUEST['FilePartition']['splitter'];\n $criteria->addCondition(\"UserDetails.ud_refid='$splitter'\");\n }\n\n if (Yii::app()->session['user_type'] != \"C\") {\n\n if (isset($_GET['fi_st']) && $_GET['fi_st'] != 'I') {\n if ($_GET['fi_st'] == 'SA') {\n\n // $criteria->with = array('JobAllocation');\n //com $criteria->condition = \"JobAllocation.ja_status = '$_GET[fi_st]'\";\n $criteria->addCondition(\"JobAllocation.ja_status='$_GET[fi_st]'\");\n if (Yii::app()->session['user_type'] == \"R\") {\n //print_r(\"kdkgkg\");die;\n //com $criteria->condition .= ' and JobAllocation.ja_reviewer_id =' . Yii::app()->session['user_id'] . ' and ja_flag = \"A\" and fp_status = \"I\"';\n $criteria->addCondition(\"JobAllocation.ja_reviewer_id=\" . Yii::app()->session['user_id'] . \" and JobAllocation.ja_flag='A' and fp_status='I'\");\n }\n\t\t\t\t\t$criteria->addCondition(\"FileInfo.fi_admin_lock= 'RL' or FileInfo.fi_admin_lock= 'O' \");\n// $criteria->condition .= \" and fp_file_id = 1 and fp_category = 'M' and fp_flag = 'A'\";\n } else if ($_GET['fi_st'] == 'SC' || $_GET['fi_st'] == 'SQP') {\n //echo \"jhjh\";die;\n //$criteria->with = array('JobAllocation');\n if (Yii::app()->session['user_type'] == \"A\") {\n //com $criteria->condition = \"(JobAllocation.ja_status = 'SC' or JobAllocation.ja_status = 'SQP') and ja_flag = 'A'\";\n $criteria->addCondition(\"JobAllocation.ja_status='SC' or JobAllocation.ja_status = 'SQP' and JobAllocation.ja_flag = 'A'\");\n } else {\n //com $criteria->condition = \"JobAllocation.ja_status = '$_GET[fi_st]'\";\n $criteria->addCondition(\"JobAllocation.ja_status='$_GET[fi_st]'\");\n }\n //com $criteria->condition .= \" and fp_cat_id = '0'\";\n //com $criteria->condition .= \" and fp_category = 'M'\";\n $criteria->addCondition(\"fp_cat_id='0' and fp_category='M'\");\n if (Yii::app()->session['user_type'] == \"QC\" && $_GET['fi_st'] == 'SQP') {\n //com $criteria->condition .= ' and JobAllocation.ja_qc_id =' . Yii::app()->session['user_id'] . ' and ja_flag = \"A\"';\n $criteria->addCondition(\"JobAllocation.ja_qc_id =\" . Yii::app()->session['user_id'] . \" and ja_flag = 'A'\");\n $criteria->addCondition(\"FileInfo.fi_admin_lock= 'QL'\");\n }\n else\n {\n $criteria->addCondition(\"FileInfo.fi_admin_lock= 'O'\");\n }\n\n }\n } else {\n //com $criteria->with = array('JobAllocation');\n $criteria->addCondition(\"fp_status='I' and fp_category='M'\");\n //com $criteria->condition = \"fp_status = 'I' and fp_category = 'M'\";\n\n }\n }\n\t\t$criteria->order='JobAllocation.ja_last_modified DESC';\n $criteria->addCondition('fp_flag = \"A\"');\n if (isset($_REQUEST['size'])) {\n $pagination = $_REQUEST['size'];\n Yii::app()->session['pagination'] = $_REQUEST['size'];\n } else {\n $pagination = yii::app()->session['pagination'];\n }\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n 'pagination' => array(\n 'pageSize' => $pagination,\n ),\n ));\n }", "title": "" }, { "docid": "f5b2596c79adb65ba5eda259b984644f", "score": "0.57423455", "text": "public function actionSearch() {\n $this->is_ajax_request();\n $_limit = Yii::app()->request->getPost('itemCount');\n $_sort = Yii::app()->request->getPost('itemSort');\n $_sortBy = Yii::app()->request->getPost('sort_by');\n $_sortType = Yii::app()->request->getPost('sort_type');\n $_search = Yii::app()->request->getPost('search');\n\n $_model = new Customer();\n $criteria = new CDbCriteria();\n if (!empty($_search)) {\n $criteria->condition = \"name LIKE :match OR mobile LIKE :match\";\n $criteria->params = array(':match' => \"%$_search%\");\n }\n if (!empty($_sort) && $_sort != \"ALL\") {\n $criteria->addCondition(\"name LIKE '$_sort%'\");\n }\n if (!empty($_sortBy)) {\n $criteria->order = \"{$_sortBy} {$_sortType}\";\n } else {\n $criteria->order = \"name ASC\";\n }\n $count = $_model->count($criteria);\n $pages = new CPagination($count);\n $pages->pageSize = !empty($_limit) ? $_limit : $this->page_size;\n $pages->applyLimit($criteria);\n $_dataset = $_model->findAll($criteria);\n\n $this->model['dataset'] = $_dataset;\n $this->model['pages'] = $pages;\n $this->renderPartial('_list', $this->model);\n }", "title": "" }, { "docid": "9fd5fcdf04e6e628943273f33b843ee6", "score": "0.5732815", "text": "public function actionSearch()\n\t{\n\t\t$p = new CHtmlPurifier();\n\t\tif(!empty($_GET['Modelos']['Descripcion'])){\n\t\t\t$patronBusqueda = $p->purify($_GET['Modelos']['Descripcion']);\n\t\t\t\n\t\t\t$posts = VinMotor::model()->findAll(array('order' => 'id DESC', 'condition' => \"vin LIKE :match OR motor LIKE :match\", 'params' => array(':match' =>\"%$patronBusqueda%\")));\n\t\t \n\t\t if(!empty($posts)){\n\t\t\t\t$pages = new CPagination(count($posts));\n\t\t\t\t$pages->pageSize = 10;\n\t\n\t\t\t\t$this->render('admin', array(\n\t\t\t\t\t'model' => $posts,\n\t\t\t\t\t'pages' => $pages,\n\t\t\t\t\t'busqueda' => $patronBusqueda,\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t }else{\n\t\t\t\tYii::app()->user->setFlash('error', \"No se encontraron datos con la busqueda realizada.\");\n\t\t\t\t $this->redirect(array('pvvinMotor/admin/'));\n\t\t }\n\t\t}else{\n\t\t\t\tYii::app()->user->setFlash('error', \"Ingrese un valor para realizar la busqueda.\");\n\t\t\t\t $this->redirect(array('pvvinMotor/admin/'));\n\t\t }\n\t}", "title": "" }, { "docid": "d89313910b8efa04e6c0be25166bcaa2", "score": "0.571338", "text": "public function action_index()\n {\n $search_text=Input::post(\"search_text\");\n \n if($search_text)\n {\n $language = $this->application_context->get_actual_language_id();\n\n $search_message=\"\";\n $search_results=array();\n\n if(strlen($search_text)>1)\n {\n $search_results = Service_Search::search($search_text, $language);\n if(empty($search_results)) $search_message=__(\"Pro zvolené klíčové slovo nebylo nic nalezeno\");\n }\n else\n {\n $search_message=__(\"Hledaný řetězec musí mít alespoň 2 znaky\");\n }\n\n //print_r($search_results);\n $search_results_template=new View(\"search_results\");\n $search_results_template->item = Service_Page::get_page_by_route_id($this->application_context->get_route_id());\n $search_results_template->keyword=$search_text;\n $search_results_template->search_results=$search_results;\n $search_results_template->search_message=$search_message; \n $this->request->response=$search_results_template->render();\n }\n else\n {\n Request::instance()->redirect(url::base());\n }\n }", "title": "" }, { "docid": "e8b54a945f71d3e02744e74a386ef6dc", "score": "0.5701158", "text": "public function searchProcess(Request $request)\n {\n\n $searchResults = [];\n\n\n $searchTerm = $request->input('searchTerm', null);\n $searchTerm1 = $request->input('searchTerm1', null);\n\n\n if ($searchTerm && $searchTerm1==null) {\n\n # If it was a match, add it to our results\n\n $searchResults=Member::where('first_name',$searchTerm)->get();\n\n }\n else if($searchTerm && $searchTerm1 ){\n\n $searchResults=Member::where('first_name',$searchTerm)\n ->where('last_name',$searchTerm1)\n ->get();\n }\n\n else if($searchTerm==null && $searchTerm1 ){\n\n $searchResults=Member::where('last_name',$searchTerm1)->get();\n }\n\n return redirect('/members/search')->with([\n 'searchTerm' => $searchTerm,\n 'searchTerm1' => $searchTerm1,\n 'caseSensitive' => $request->has('caseSensitive'),\n 'searchResults' => $searchResults\n ]);\n }", "title": "" }, { "docid": "009ce39ec44614ea65e69603db0eeb7a", "score": "0.569849", "text": "public function assistantSearchAction()\n {\n\n\n if ($this->request->hasArgument('falloutDate')) {\n $falloutDate = $this->request->getArgument('falloutDate');\n $this->view->assign(\"falloutDate\", $falloutDate);\n } else {\n $this->view->assign(\"falloutDate\", \"15.02.2017 11:20\");\n }\n if ($this->request->hasArgument('subject')) {\n $subject = $this->request->getArgument('subject');\n $this->view->assign(\"subject\", $subject);\n }\n\n }", "title": "" }, { "docid": "34613f2811665235e75b186b9973fee4", "score": "0.5696894", "text": "public function ProductSearch();", "title": "" }, { "docid": "12dd3f91f943e02235e7000620fea914", "score": "0.5689662", "text": "public function actionIndividualSearch()\n {\n //search model\n $searchModel = new Order();\n $searchModel->scenario = Order::SCENARIO_SEARCH;\n\n if ($searchModel->load($post = Yii::$app->request->post()) && $searchModel->validate()) {\n\n $session = Yii::$app->session;\n\n //query model\n if (($model = Order::find()->where(['id' => $post['Order']['id']])->one()) !== null) {\n $session->setFlash('model', $model);\n }\n else {\n $session->setFlash('modelNotFound');\n }\n\n $session->setFlash('modelId', $post['Order']['id']);\n return $this->refresh();\n }\n\n return $this->render('individual-search', [\n 'searchModel' => $searchModel,\n ]);\n }", "title": "" }, { "docid": "f6ecb94137116e0701134934ed11e5e1", "score": "0.5684882", "text": "public function search()\n {\n App::loggedOnly();\n\n if (! array_key_exists('q', $_GET) || ! $_GET['q']) {\n App::error('Предоставьте текст для поиска');\n } else {\n $query = trim($_GET['q']);\n (new PagesController())->generalIndexSearch($query);\n }\n }", "title": "" }, { "docid": "bbb8df8c8863bfe8143ef15dba02a078", "score": "0.56827784", "text": "public function search($params)\n {\n \n $session = Yii::$app->session;\n $session->open(); // open a session\n $uid = $session->get('UID');\n $urank = Yii::$app->db->createCommand('SELECT org_id , leader_type FROM t_leader WHERE user_id=:id')\n ->bindValue(':id', $session->get('UID'))\n ->queryOne();\n if ($urank['leader_type'] == 6 and $urank['org_id'] == 43) { //ผอ สลธ\n $sql_data = \"\n SELECT tj.task_id\n ,task_detail\n ,typej_id\n ,task_date_start\n ,task_time_start\n ,task_date_end\n ,task_time_end\n ,task_owner\n ,task_order_date\n ,task_order_time\n ,task_location\n ,task_personal\n FROM OPDC_EOF.dbo.t_task_job tj inner join m_user mu on tj.task_owner = mu.user_id\n inner join t_task_approved ta on tj.task_id = ta.task_id \n\t\twhere approved1 != '' and approved2 IS NUll \n\tunion select tj.task_id\n ,task_detail\n ,typej_id\n ,task_date_start\n ,task_time_start\n ,task_date_end\n ,task_time_end\n ,task_owner\n ,task_order_date\n ,task_order_time\n ,task_location\n ,task_personal \n from t_task_job tj left join m_user on tj.task_owner = m_user.user_id \n left join m_org_inner on m_user.cont_to_id = m_org_inner.org_id\n left join t_leader on m_user.user_id = t_leader.user_id \n where parent_id = 37 or (t_leader.org_id = 37 and leader_type = 4)\n \";\n } else {\n $sql_data = \"\n select task_id,task_detail\n ,typej_id\n ,task_date_start\n ,task_time_start\n ,task_date_end\n ,task_time_end\n ,task_owner\n ,task_order_date\n ,task_order_time\n ,task_location\n ,task_personal\n from t_task_job \n left join m_user on t_task_job.task_owner = m_user.user_id\n left join m_org_inner on m_user.cont_to_id = m_org_inner.org_id\n where org_id = (select cont_to_id from m_user where user_id = $uid)\n or parent_id = (select cont_to_id from m_user where user_id = $uid)\n \";\n }\n\n $query = TaskJob::findBySql($sql_data);\n // add conditions that should always apply here\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n ]);\n\n $this->load($params);\n\n if (!$this->validate()) {\n // uncomment the following line if you do not want to return any records when validation fails\n // $query->where('0=1');\n return $dataProvider;\n }\n\n // grid filtering conditions\n $query->andFilterWhere([\n 'task_id' => $this->task_id,\n 'user_id' => $this->user_id,\n ]);\n\n return $dataProvider;\n }", "title": "" }, { "docid": "c842c383d8ccdeec4dfd2c41e79a55be", "score": "0.5678919", "text": "public function actionSearch()\n\t{\n\t\tif ( !empty($_GET['query']) ) {\n\t\t\t$criteria = new CDbCriteria;\n\t\t\t$criteria->compare('company_name',$_GET['query'],true);\n\t\t\t$searchQuery = Factory::model()->findAll($criteria);\n\t\t}\n\t\techo $this->render('search_company',array('searchQuery'=>$searchQuery));\n\t\t\n\t}", "title": "" }, { "docid": "eba0417cdde741f5a94c17c0cb9ef500", "score": "0.5673333", "text": "public function search($query);", "title": "" }, { "docid": "c462bcd879d2d280b1eba60551075b30", "score": "0.567123", "text": "function text_search() {\r\n //debug($this->params);\r\n\r\n\r\n\r\n $phrase = $this->params['pass'][0];\r\n \r\n if ($phrase) {\r\n \r\n $this->__loadLuceneSearch();\r\n \r\n $index = $this->index;\r\n \r\n debug($index->numDocs());\r\n debug($index->count());\r\n\r\n \r\n $hits = $index->find($phrase);\r\n //$hits = $index->find('venue_id:' . '6');\r\n\r\n foreach ($hits as $hit) {\r\n $out = array( $hit->id, $hit->venue_id, $hit->name , $hit->address, $hit->city, $hit->chain);\r\n debug($out);\r\n }\r\n exit;\r\n\r\n // start\r\n $userQuery = Zend_Search_Lucene_Search_QueryParser::parse($phrase);\r\n\r\n //debug($userQuery);\r\n $pathTerm = new Zend_Search_Lucene_Index_Term(\r\n $this->indexPath\r\n );\r\n \r\n debug($pathTerm);\r\n\r\n $pathQuery = new Zend_Search_Lucene_Search_Query_Term($pathTerm);\r\n\r\n $query = new Zend_Search_Lucene_Search_Query_Boolean();\r\n\r\n $query->addSubquery($userQuery, true /* required */);\r\n\r\n $query->addSubquery($pathQuery, true /* required */);\r\n\r\n $hits = $index->find($query);\r\n\r\n debug( sizeof($hits));\r\n foreach ($hits as $hit) {\r\n //debug($hit);\r\n debug($hit->venueName);\r\n debug($hit->description);\r\n }\r\n \r\n }\r\n\r\n }", "title": "" }, { "docid": "5e896d2814b5293927c308b0e0336a46", "score": "0.5663712", "text": "public function searchProduct() {\n\n $this->setId();\n $search = $this->getQueryString('search');\n\n if (empty($search))\n $this->commitReplace('','#product-results', false);\n\n $action = $this->getQueryString('action');\n $action || $action = 'selproduct';\n\n $this->model()->searchProductForRequest($search);\n $this->view()->loadTemplate('productresult');\n $products = $this->model()->getRows();\n $this->view()->setVariable('products', $products);\n $this->view()->setVariable('action', $action);\n $this->view()->setVariable('search', $search);\n $this->view()->setVariable('request_id', $this->request_id);\n\n $this->commitReplace($this->view()->render(),'#product-results');\n $this->commitShow('#result');\n }", "title": "" }, { "docid": "f3bc6b9d117d14e3111126833326927d", "score": "0.5660235", "text": "public function processSearch()\n\t{\n\t\tif ( $this->isMeta(UploadImport::META_QUERY) == false ) {\n\t\t\t$mediaFilename = new MediaFilename($this->getMeta(UploadImport::META_MEDIA_NAME), true);\n\t\t\t$this->setMeta( UploadImport::META_QUERY, $mediaFilename->updateFileMetaData());\n\t\t}\n\n\t\t$ep_model = Model::Named('Endpoint');\n\t\t$points = $ep_model->allForTypeCode(Endpoint_Type::ComicVine);\n\t\tif ($points == false || count($points) == 0) {\n\t\t\t$this->setStatusMetaData( \"NO_ENDPOINTS\" );\n\t\t\tLogger::logInfo( \"No ComicVine Endpoints defined \", __method__, $this->sourceFilename());\n\t\t\treturn false;\n\t\t}\n\n\t\t$connection = new ComicVineConnector($points[0]);\n\t\tif ( $this->isMeta(UploadImport::META_QUERY_CVID) == true ) {\n\t\t\t$issue = $connection->issue_search(\n\t\t\t\tnull,\n\t\t\t\t$this->getMeta(UploadImport::META_QUERY_CVID),\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\t$this->getMeta(UploadImport::META_QUERY_YEAR),\n\t\t\t\t$this->getMeta(UploadImport::META_QUERY_ISSUE)\n\t\t\t);\n\t\t}\n\t\telse {\n\t\t\t$issue = $connection->issue_searchFilteredForSeriesYear(\n\t\t\t\t$this->getMeta(UploadImport::META_QUERY_ISSUE),\n\t\t\t\t$this->getMeta(UploadImport::META_QUERY_NAME),\n\t\t\t\t$this->getMeta(UploadImport::META_QUERY_YEAR)\n\t\t\t);\n\t\t}\n\n\t\tif ( $issue == false )\n\t\t{\n\t\t\t$this->setStatusMetaData( \"NO_MATCHES\" );\n\t\t\treturn false;\n\t\t}\n\n\t\t$this->setMeta( UploadImport::META_RESULTS_ISSUES, $issue );\n\t\tif (count($issue) > 1) {\n\t\t\t$this->setStatusMetaData( \"MULTIPLE_MATCHES\" );\n\t\t\treturn false;\n\t\t}\n\n\t\t$this->setStatusMetaData( \"COMICVINE_SUCCESS\" );\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ebab9333a59630940d12c11234ff57be", "score": "0.56469595", "text": "function search() {\n\t\t\n\n\t\t// breadcrumb urls\n\t\t$this->data['action_title'] = get_msg( 'comm_search' );\n\n\t\t\n\t\t\n\t\t// condition with search term\n\n\t\tif ($this->input->post('submit') != NULL ) {\n\n\t\t\t$conds = array( 'searchterm' => $this->searchterm_handler( $this->input->post( 'searchterm' )));\n\n\t\t\t// condition passing date\n\t\t\t$conds['date'] = $this->input->post( 'date' );\n\n\t\t\tif($this->input->post('searchterm') != \"\") {\n\t\t\t\t$conds['searchterm'] = $this->input->post('searchterm');\n\t\t\t\t$this->data['searchterm'] = $this->input->post('searchterm');\n\t\t\t\t$this->session->set_userdata(array(\"searchterm\" => $this->input->post('searchterm')));\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t$this->session->set_userdata(array(\"searchterm\" => NULL));\n\t\t\t}\n\n\n\t\t\tif($this->input->post('date') != \"\") {\n\t\t\t\t$conds['date'] = $this->input->post('date');\n\t\t\t\t$this->data['date'] = $this->input->post('date');\n\t\t\t\t$this->session->set_userdata(array(\"date\" => $this->input->post('date')));\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t$this->session->set_userdata(array(\"date\" => NULL));\n\t\t\t}\n\n\n\t\t\t// no publish filter\n\t\t\t$conds['no_publish_filter'] = 1;\n\n\n\t\t} else {\n\n\t\t\t//read from session value\n\t\t\tif($this->session->userdata('searchterm') != NULL){\n\t\t\t\t$conds['searchterm'] = $this->session->userdata('searchterm');\n\t\t\t\t$this->data['searchterm'] = $this->session->userdata('searchterm');\n\t\t\t}\n\n\t\t\tif($this->session->userdata('date') != NULL){\n\t\t\t\t$conds['date'] = $this->session->userdata('date');\n\t\t\t\t$this->data['date'] = $this->session->userdata('date');\n\t\t\t}\n\n\t\t\t// no publish filter\n\t\t\t$conds['no_publish_filter'] = 1;\n\n\t\t}\n\n\t\t$selected_shop_id = $this->session->userdata('selected_shop_id');\n\t\t$shop_id = $selected_shop_id['shop_id'];\n\n\t\t$conds['shop_id'] = $shop_id;\n\n\t\t// pagination\n\t\t$this->data['rows_count'] = $this->Commentheader->count_all_by( $conds );\n\t\t// search data\n\t\t$this->data['comments'] = $this->Commentheader->get_all_by( $conds, $this->pag['per_page'], $this->uri->segment( 4 ) );\n\t\t\n\t\t// load add list\n\t\tparent::search();\n\t}", "title": "" }, { "docid": "a6d53117ecaae3702ef333fcc0c4bd95", "score": "0.56428075", "text": "public function RunSearch()\n\t{\n\t\t$to_search = array();\n\t\tif($this->user)\n\t\t\t$to_search[] = $this->user;\n\t\tif($this->hash)\n\t\t\t$to_search[] = $this->hash;\n\t\tif($this->contains)\n\t\t\t$to_search[] = $this->contains;\n\t\t\n\t\t$search = implode(' ', $to_search);\n\t\t\n\t\t$result = $this->Search($search, $this->geocode, $this->lang, $this->locale, $this->result_type, $this->count, $this->until, $this->since_id, $this->max_id, $this->include_entites, $this->callback);\n\t\t\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "968366ad4bc3b3332f81cd6bc8b5b3d2", "score": "0.56392294", "text": "protected function runController()\n {\n // init searchResult\n $searchResult = array();\n\n // ************************\n // ZUSCHSCHREIBUNG / ATTRIBUTION\n // ************************\n if(!empty($this->attr)) {\n // search for attribution\n foreach($this->attr as $value) {\n // if value is not 0\n if($value == '0') {\n // Delete prev search result\n $this->deleteSearchResultById();\n } else {\n // run mysql search request\n $result = $this->searchAttr($value);\n // set the subset\n $searchResult = $this->setSubset($result, \"attr\");\n }\n }\n }\n\n // ************************\n // DATIERUNG / DATING\n // ************************\n // init tmp\n $tmp = 0;\n $query = '';\n // init date query\n if(count($this->helper->returnCountable($this->date)) > 1) {\n // search for date\n foreach($this->date as $value) {\n // if value is not 0\n if($value != '0') {\n // run mysql search request\n $query .= ($tmp == 0) ? $this->searchDate($value) : 'OR '.$this->searchDate($value);\n // incr\n $tmp++;\n }\n }\n if(!empty($query)) {\n // set the subset\n $searchResult = $this->setSubset(array(), \"date\", $query);\n // write search result into table\n $this->writeResult($searchResult);\n }\n }\n\n // ************************\n // TECHNIK / TECHNIQUE\n // ************************\n // init tmp\n $tmp = 0;\n $query = '';\n // technique\n if(!empty($this->technique)) {\n // search for attribution\n foreach($this->technique as $value) {\n // if value is not 0\n if($value != '0') {\n // run mysql search request\n $query .= ($tmp == 0) ? $this->searchTech($value) : 'OR '.$this->searchTech($value);\n //incr\n $tmp++;\n }\n }\n if(!empty($query)) {\n // set the subset\n $searchResult = $this->setSubset(array(), \"tech\", $query);\n // write search result into table\n $this->writeResult($searchResult);\n }\n }\n\n // ************************\n // Category\n // ************************\n // init tmp\n $tmp = 0;\n $results = array();\n // technique\n if(!empty($this->category)) {\n \n // search for attribution\n foreach($this->category as $value) {\n array_push($results, $this->searchCategory($value));\n }\n\n if(!empty($results)) {\n // write search result into table\n foreach($results as $result){\n $this->writeResult($result);\n }\n }\n }\n\n // ************************\n // SAMMLUNGEN / COLLECTION\n // ************************\n // init tmp\n $tmp = 0;\n $query = '';\n // collection\n if(!empty($this->collection)) {\n // search for attribution\n foreach($this->collection as $value) {\n // if value is not 0\n if($value != '0') {\n // run mysql search request\n $result = $this->searchCollection($value);\n if(!empty($result)) {\n $query .= ($tmp == 0) ? $result : 'OR '.$result;\n //incr\n $tmp++;\n }\n }\n }\n if(!empty($query)) {\n // set the subset\n $searchResult = $this->setSubset(array(), \"collection\", $query);\n // write search result into table\n $this->writeResult($searchResult);\n }\n }\n\n // ************************\n // THESAURUS\n // ************************\n // init tmp\n $tmp = 0;\n $query = '';\n // collection\n if(!empty($this->thesau)) {\n // search for attribution\n foreach($this->thesau as $value) {\n // if value is not 0\n if($value != '0') {\n // run mysql search request\n $result = \"t.Phrase = '$value'\";\n // create query\n $query .= ($tmp == 0) ? $result : 'OR '.$result;\n //incr\n $tmp++;\n }\n }\n if(!empty($query)) {\n // set the subset\n $searchResult = $this->setSubset(array(), \"thesau\", $query);\n // write search result into table\n $this->writeResult($searchResult);\n }\n }\n\n\n // ************************\n // TITLE ADVANCED SEARCH\n // ************************\n if(!empty($this->search_input[2])) {\n\n // set search title variable:\n $search_title = str_replace(\"*\", \"%\", $this->search_input[2]);\n\n // run mysql search request\n $query = \"t.Title LIKE '%$search_title%'\";\n\n // set subset\n $searchResult = $this->setSubset(array(), \"title\", $query);\n // write search result into table\n $this->writeResult($searchResult);\n }\n\n\n // ************************\n // FR-NO ADVANCED SEARCH\n // ************************\n if(!empty($this->search_input[3])) {\n\n // set seach title variable:\n $search_fr = $this->search_input[3];\n // run mysql search request\n $query = \"o.ObjIdentifier LIKE '%$search_fr%'\";\n // set subset\n $searchResult = $this->setSubset(array(), \"fr-no\", $query);\n // write search result into table\n $this->writeResult($searchResult);\n }\n\n // ************************\n // LOCATION ADVANCED SEARCH\n // ************************\n if(!empty($this->search_input[4])) {\n // set seach title variable:\n $search_location = $this->search_input[4];\n\n // run mysql search request\n $query = \"l.Location LIKE '%$search_location%'\";\n\n // set subset\n $searchResult = $this->setSubset(array(), \"location\", $query);\n // write search result into table\n $this->writeResult($searchResult);\n }\n\n // ************************\n // ID ADVANCED SEARCH\n // ************************\n if(!empty($this->search_input[5])) {\n // set seach title variable:\n $search_id = $this->search_input[5];\n\n // run mysql search request\n $query = \"o.ObjNr LIKE '%$search_id%'\";\n\n // set subset\n $searchResult = $this->setSubset(array(), \"refNr\", $query);\n // write search result into table\n $this->writeResult($searchResult);\n }\n\n\n // ************************\n // FULLTEXT SEARCH\n // ************************\n if(!empty($this->search_input[1])) {\n // init result\n $result = array();\n // get search input\n $search_input\t\t= $this->search_input[1];\n // get fulltext search query\n $result = $this->searchFullText($search_input);\n // set subset\n $searchResult = $this->setSubset($result, \"fullText\");\n // write search result into table\n $this->writeResult($searchResult);\n }\n\n // ************************+++++++++++++++++++\n // AA (ARCHIVAL DOCUMENTS) DATIERUNG / DATING\n // ************************+++++++++++++++++++\n // init tmp\n $tmp = 0;\n $query = '';\n // init date query\n if(!empty($this->aa_date)) {\n // search for date\n foreach($this->aa_date as $value) {\n\n // if value is not 0\n if($value == '0') {\n // Delete prev search result\n $this->deleteSearchResultById();\n // if value is not 0\n } else {\n // run mysql search request\n $query .= ($tmp == 0) ? $this->aa_searchDate($value) : 'OR '.$this->aa_searchDate($value);\n // incr\n $tmp++;\n }\n }\n if(!empty($query)) {\n // set the subset\n $searchResult = $this->setSubset(array(), \"AA\", $query);\n // write search result into table\n $this->writeResult($searchResult);\n }\n }\n\n // ************************************************\n // AA (ARCHIVAL DOCUMENTS) INSTITUTION\n // ************************************************\n // init tmp\n $tmp = 0;\n $query = '';\n // collection\n if(!empty($this->aa_institution)) {\n // search for attribution\n foreach($this->aa_institution as $value) {\n // if value is not 0\n if($value != '0') {\n // run mysql search request\n $result = $this->aa_searchInstitution($value);\n if(!empty($result)) {\n $query .= ($tmp == 0) ? $result : 'OR '.$result;\n //incr\n $tmp++;\n }\n }\n }\n if(!empty($query)) {\n // set the subset\n $searchResult = $this->setSubset(array(), \"AA\", $query);\n // write search result into table\n $this->writeResult($searchResult);\n }\n }\n\n // ***********************************\n // AA (ARCHIVAL DOCUMENTS) YEAR\n // ***********************************\n if(!empty($this->aa_search_input[2])) {\n\n // set search title variable:\n $aa_search_year = str_replace(\"*\", \"%\", $this->aa_search_input[2]);\n\n // run mysql search request\n $query = \"t.DATE LIKE '%$aa_search_year%'\";\n\n // set subset\n $searchResult = $this->setSubset(array(), \"AA\", $query);\n // check result\n if(empty($searchResult)) $this->prev_search_empty = true;\n // write search result into table\n $this->writeResult($searchResult);\n }\n\n // ***********************************\n // AA (ARCHIVAL DOCUMENTS) SIGNATURE\n // ***********************************\n if(!empty($this->aa_search_input[3])) {\n\n // set search title variable:\n $aa_search_sig = str_replace(\"*\", \"%\", $this->aa_search_input[3]);\n\n // run mysql search request\n $query = \"t.Signature LIKE '%$aa_search_sig%'\";\n\n // set subset\n $searchResult = $this->setSubset(array(), \"AA\", $query);\n // check result\n if(empty($searchResult)) $this->prev_search_empty = true;\n // write search result into table\n $this->writeResult($searchResult);\n }\n\n // ***************************************\n // AA (ARCHIVAL DOCUMENTS) FULLTEXT SEARCH\n // ***************************************\n if(!empty($this->aa_search_input[1])) {\n // init result\n $result = array();\n // get search input\n $aa_search_input\t\t= $this->aa_search_input[1];\n // get fulltext search query\n $result = $this->aa_searchFullText($aa_search_input);\n // set subset\n $searchResult = $this->setSubset($result, \"aa_fullText\");\n // check result\n if(empty($searchResult)) $this->prev_search_empty = true;\n // write search result into table\n $this->writeResult($searchResult);\n }\n\n // add subset to the main set\n $this->searchResult = $this->fullSet();\n }", "title": "" }, { "docid": "93404e5017f88b57fb73b590e54d15f6", "score": "0.56376684", "text": "public function search_post() {\n\n $searchFilter = $this->post('filter');\n\n $department = $this->department_model->get(null, $searchFilter);\n\n if (!is_null($department)) {\n $this->response($department, 200);\n } else {\n $this->response(array('error' => 'NO HAY RESULTADOS'), 404);\n }\n }", "title": "" }, { "docid": "1e139de498692d6c8c6f53d73d5d2d27", "score": "0.56181806", "text": "public function gridsearchAction() {\n $request = $this->getRequest();\n\n if ($request->isPost()) {\n $post = $request->getPost();\n\n $url = \"/administration_order/index/type/view_grid_orders\";\n\n if (strlen($post['orderId']) > 0) {\n $url = $url . \"/IDgrid/\" . $post['orderId'];\n }\n\n if (strlen($post['orderNr']) > 0) {\n $url = $url . \"/Nummergrid/\" . $post['orderNr'];\n }\n\n if (strlen($post['customerName']) > 0) {\n $url = $url . \"/Namegrid/\" . $post['customerName'];\n }\n\n if (strlen($post['customerId']) > 0) {\n $url = $url . \"/customerIdgrid/\" . $post['customerId'];\n }\n\n if (strlen($post['customerEmail']) > 0) {\n $url = $url . \"/Emailgrid/\" . str_replace(' ', '', $post['customerEmail']);\n }\n\n if (strlen($post['ipAddr']) > 0) {\n $url = $url . \"/ipAddrgrid/\" . str_replace(' ', '', $post['ipAddr']);\n }\n\n $this->_redirect($url);\n }\n }", "title": "" }, { "docid": "a57288e40b7bee56a5ebacbedb97dfd2", "score": "0.56087977", "text": "public function actionSearch(){\n $searchFeld = Yii::$app->request->post('q');\n $response = $this->stringMatchingSearchAll($searchFeld,100);\n $html = $this->renderAjax('resultadosBusqueda', $response);\n return $this->render('search', ['html' => $html, 'searchFeld' => $searchFeld] );\n }", "title": "" }, { "docid": "88657597dc08ebb14bc2346030d3eb7c", "score": "0.5608725", "text": "function searchActor(){\n \n $criteria = $this->input->post('criteria');\n include(FCPATH.\"/application/libraries/tmdb-api.php\");\n $tmdb = new TMDB();\n \n $searchActor = $tmdb->searchPerson($criteria);\n $searchMovie = $tmdb->searchMovie($criteria);\n \n if($searchActor==NULL){\n $this->showMessage(\"No results were found.\");\n }\n else{\n $data = array('searchActor'=>$searchActor,'searchMovie'=>$searchMovie);\n $this->showResult($data);\n } \n }", "title": "" }, { "docid": "bdc7a1f72d55b5b283b0be9f8daf6b86", "score": "0.56040853", "text": "abstract public function search($criteria);", "title": "" }, { "docid": "0f9bd5df3c182cb87539348d06de3b68", "score": "0.55952334", "text": "public function serviceAction()\n {\n $this->searchService();\n }", "title": "" }, { "docid": "63f9dc52c5d1854a72bc94de60c124c0", "score": "0.55932355", "text": "public function search()\n\t{\n\t\tif($this->auth == NULL) $this->my_string->php_redirect(CW_BASE_URL.'admin/auth/login');\n\t\t$query_string = $this->input->post('membername');\n\t\tredirect(\"admin/members/display/$query_string\");\n\t}", "title": "" }, { "docid": "a14aeb8de90a35c91bde56a9a7c5322f", "score": "0.5592929", "text": "public function search() {\n\t\t$selectStr = '';\n\t\tif (is_array($this->columns_select) && sizeof($this->columns_select) > 0) {\n\t\t\tforeach($this->columns_select as $column) {\n\t\t\t\tif (!empty($selectStr)) $selectStr .= ',';\n\t\t\t\t$selectStr .= $column;\n\t\t\t}\n\t\t}\n\t\t$this->db->select($selectStr);\n\t\t$this->db->from($this->tblName);\n\t\t/* APPLY FILTERS */\n\t\tif (is_array($this->filterVars) && sizeof($this->filterVars) > 0) {\n\t\t\tforeach($this->filterVars as $filterId => $filterValue) {\n\t\t\t\tif (isset($this->filters[$filterId])) {\n\t\t\t\t\t$condition = $this->filters[$filterId]->getData($filterValue);\n\t\t\t\t\tif ($condition) {\n\t\t\t\t\t\t$this->db->where($filterId, $filterValue);\n\t\t\t\t\t\tif (!empty($this->filterStr)) { $this->filterStr .= ', '; }\n\t\t\t\t\t\t$this->filterStr .= '<b>'.$this->filters[$filterId]->label.\"</b> = \".$condition;\n\t\t\t\t\t\t$this->filters[$filterId]->selectedIndex = $filterValue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->filterStr = \"Filtering Results By: \".$this->filterStr;\n\t\t}\n\t\t/* APPLY META FITLERING */\n\t\t// META Filter differ from regualr filters in that the user is not \n\t\t// shown that they are being applied.\n\t\tif (is_array($this->metaFilters) && sizeof($this->metaFilters) > 0) {\n\t\t\tforeach($this->metaFilters as $filterId => $filterValue) {\n\t\t\t\t$this->db->where($filterId, $filterValue);\n\t\t\t}\n\t\t}\n\t\t/* APPLY TEXT SEARCH TERM FITLERING */\n\t\tif (!empty($this->searchTerm)) {\n\t\t\t$strCols = '';\n\t\t\tif (is_array($this->columns_text_search) && sizeof($this->columns_text_search) > 0) {\n\t\t\t\tforeach($this->columns_text_search as $column) {\n\t\t\t\t\t//$this->db->or_like($column,$this->searchTerm,'both');\t\n\t\t\t\t\tif (!empty($strCols)) { $strCols .= ','; }\n\t\t\t\t\t$strCols .= $column;\n\t\t\t\t}\n\t\t\t\t$matchStr = \"MATCH (\".$strCols.\") AGAINST ('\".$this->searchTerm.\"')\";\n\t\t\t\t/*if (sizeof($this->filterVars) > 0 || sizeof($this->metaFilters) > 0) {\n\t\t\t\t\t$this->db->or_where($matchStr,'',FALSE);\n\t\t\t\t} else { */\n\t\t\t\t\t$this->db->where($matchStr,'',FALSE);\n\t\t\t\t//}\n\t\t\t\tif (!empty($this->filterStr)) { $this->filterStr .= ','; }\n\t\t\t\t$this->filterStr .= ' <b>Text Search:</b> <span class=\"highlight\">'.$this->searchTerm.'</span>';\n\t\t\t}\n\t\t}\n\t\t/* APPLY ALPHABETIC FILTERING */\n\t\tif (!empty($this->startsWithAlpha)) {\n\t\t\tif (is_array($this->columns_alpha_search) && sizeof($this->columns_alpha_search) > 0) {\n\t\t\t\tforeach($this->columns_alpha_search as $column) {\n\t\t\t\t\t$this->db->or_like($column,$this->startsWithAlpha,'after');\t\t\n\t\t\t\t}\n\t\t\t\tif (!empty($this->filterStr)) { $this->filterStr .= ','; }\n\t\t\t\t$this->filterStr .= ' <b>Results Beginning With: </b>&quot;'.$this->startsWithAlpha.'&quot;';\n\t\t\t}\n\t\t}\n\t\tif (is_array($this->sortFields) && sizeof($this->sortFields) > 0) {\n\t\t\tforeach($this->sortFields as $field) {\n\t\t\t\t$this->db->order_by($field,$this->sortOrder);\n\t\t\t} // END foreach\n\t\t} // END if\n\t\t\n\t\t// GET FULL # of rows for this result BEFORE applying pagination offsets\n\t\t$query = $this->db->get();\n\t\t$this->resultCount = $query->num_rows();\n\t\t$queryStr = $this->db->last_query();\n\t\t\n\t\t// APLLY THE QUERY WITH LIMITS\n\t\t//$this->query = $this->db->query($queryStr);\n\t\t$this->query = $this->db->query($queryStr. ' LIMIT '.$this->offset.', '.$this->limit);\n\t\t\n\t\tif ($this->query->num_rows() > 0) {\n\t\t\t$dataRows = array();\n\t\t\t$fields = $this->query->list_fields();\n\t\t\tforeach ($this->query->result() as $row) {\n\t\t\t\t$dataRow = array();\n\t\t\t\tforeach ($fields as $field) {\n\t\t\t\t\t$value = '';\n\t\t\t\t\tif (isset($this->filters[$field])) {\n\t\t\t\t\t\t$value = $this->filters[$field]->getData($row->$field);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (!empty($this->searchTerm) && in_array($field,$this->columns_text_search)) {\n\t\t\t\t\t\t if (!function_exists('highlightWords'))\n\t\t\t\t\t\t $this->load->helper('display');\n\t\t\t\t\t\t\t$value = highlightWords($row->$field,$this->searchTerm);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$value = $row->$field;\n\t\t\t\t\t\t} // END if\n\t\t\t\t\t} // END if\n\t\t\t\t\t$dataRow = $dataRow + array($field=>$value);\n\t\t\t\t} // END foreach\n\t\t\t\tarray_push($dataRows,$dataRow);\n\t\t\t} // END foreach\n\t\t\t$this->seachResults = $dataRows;\n\t\t} //else {\n\t\t\t//$this->seachResults = array(array('noResults'=>'No results matching the specified criteria were found.'));\n\t\t//} // END if\n\t\t$this->query->free_result();\n\t}", "title": "" }, { "docid": "455b25ab4e8f27b640d637d6a09c5094", "score": "0.55799866", "text": "public function actionSearch()\n {\n $model = new Task(['scenario' => Task::SCENARIO_SEARCH]);\n\n return $this->renderAjax('search', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "cf24092370fa8856f415945ec6857a62", "score": "0.5577072", "text": "public function advance_search(){\n \n //checking if session is set\n if ($this->is_session_set()){\n\n if (!empty($this->input->post()) && !empty($this->input->post('searchVal', TRUE)) ){\n //post was recieved\n \n $search = trim(str_replace(' ', '', $this->input->post('searchVal', TRUE)));\n $filterBy = trim(str_replace(' ', '', $this->input->post('searchBy', TRUE)));\n\n //where condition for query based on searchBy \n $searchBy = '';\n switch ($filterBy) {\n case 3:\n $searchBy = 'a.email LIKE \"%'.htmlspecialchars($search).'%\"';\n break;\n case 2:\n $searchBy = 'a.mobile_number LIKE \"%'.htmlspecialchars($search).'%\"';\n break;\n case 1:\n $searchBy = 'a.ssn LIKE \"%'.htmlspecialchars($search).'%\"';\n break;\n default:\n $searchBy = 'CONCAT(first_name, last_name) LIKE \"%'.htmlspecialchars($search).'%\"';\n }\n\n //filter by district\n $searchBy .= ($this->input->post('district') == 'all')? '' : 'and a.country ='.'\"'.$this->input->post('district').'\"';\n\n $this->data['clientInfo'] = $this->user_model->advance_search($searchBy);\n $this->data['searchValue'] = $search;\n $this->data['title'] = 'Search Result';\n\n $this->load->view('templates/header', $this->data);\n $this->load->view('templates/sidebar', $this->data);\n $this->load->view('templates/topbar', $this->data);\n $this->load->view('pageContent/search', $this->data);\n $this->load->view('templates/footer', $this->data);\n \n\n }else{\n redirect('dashboard');\n }\n\n }else{\n redirect('login');\n }\n }", "title": "" }, { "docid": "cc14d24cd3fce243f527733746a1e728", "score": "0.5576532", "text": "public function actionSearch()\n {\n $find = new Search();\n if ($find->load(Yii::$app->request->post())) {\n $model = Notes::find()->asArray()->where(['like', 'tags', $find->search])->all();\n //$this->debug($find);\n } else $model = array();\n\n return $this->render('search', compact('model', 'find'));\n }", "title": "" }, { "docid": "d8b0a4ecba8d87a688ccdebf9411e74f", "score": "0.5573163", "text": "public function searchAction(){\n \t$this->view->headTitle(\"Restaurants Near Me\", 'PREPED');\n }", "title": "" } ]
ac2a63a2d52de6af7603c7f5801cc40f
Get the point "B".
[ { "docid": "d06be30a97e17220c3bf4610a4725bf8", "score": "0.7721816", "text": "public function getB(): ?Point {\n return $this->b;\n }", "title": "" } ]
[ { "docid": "942173bbd4957f81d71bd3500a502a1b", "score": "0.6271086", "text": "public function getPoint () {\n return $this->point;\n }", "title": "" }, { "docid": "9c57fbfcb48c9b601aebb63a747d5647", "score": "0.61924154", "text": "public function getPoint()\n {\n return $this->point;\n }", "title": "" }, { "docid": "c11186aaefc0b3bca8fcb0c236060e3f", "score": "0.60113037", "text": "public function getA(): ?Point {\n return $this->a;\n }", "title": "" }, { "docid": "89e09d620a97e2421deeb9a14951a394", "score": "0.5915195", "text": "public function originallyAbscissa(): Point {\n\n $m = $this->getB()->m($this->getA());\n $b = $this->originallyOrdered()->getY();\n\n // x = (y - b) / m\n $x = (0 - $b) / $m;\n\n return new Point($x, 0);\n }", "title": "" }, { "docid": "ab8a9480d059fff5b8b28e0d9a27397c", "score": "0.58452183", "text": "public function getPointCaptured()\n {\n return $this->get('pointCaptured', 'POINT_A');\n }", "title": "" }, { "docid": "4e4238d9a919fe7363ca3714692ec047", "score": "0.57708895", "text": "private function computePosition(\n\t\tarray $boundaryPointA,\n\t\tarray $boundaryPointB\n\t) : string {\n\t\tif ( $boundaryPointA[0] === $boundaryPointB[0] ) {\n\t\t\tif ( $boundaryPointA[1] === $boundaryPointB[1] ) {\n\t\t\t\treturn 'equal';\n\t\t\t} elseif ( $boundaryPointA[1] < $boundaryPointB[1] ) {\n\t\t\t\treturn 'before';\n\t\t\t} else {\n\t\t\t\treturn 'after';\n\t\t\t}\n\t\t}\n\n\t\t$tw = new TreeWalker(\n\t\t\tself::getRootNode( $boundaryPointB[0] ),\n\t\t\tNodeFilter::SHOW_ALL,\n\t\t\tfunction ( $node ) use ( $boundaryPointA ) {\n\t\t\t\tif ( $node === $boundaryPointA[0] ) {\n\t\t\t\t\treturn NodeFilter::FILTER_ACCEPT;\n\t\t\t\t}\n\n\t\t\t\treturn NodeFilter::FILTER_SKIP;\n\t\t\t}\n\t\t);\n\t\t$tw->currentNode = $boundaryPointB[0];\n\n\t\t$AFollowsB = $tw->nextNode();\n\n\t\tif ( $AFollowsB ) {\n\t\t\tswitch ( $this->computePosition( $boundaryPointB, $boundaryPointA ) ) {\n\t\t\t\tcase 'after':\n\t\t\t\t\treturn 'before';\n\t\t\t\tcase 'before':\n\t\t\t\t\treturn 'after';\n\t\t\t}\n\t\t}\n\n\t\t$ancestor = $boundaryPointB[0]->parentNode;\n\n\t\twhile ( $ancestor ) {\n\t\t\tif ( $ancestor === $boundaryPointA[0] ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t$ancestor = $ancestor->parentNode;\n\t\t}\n\n\t\tif ( $ancestor ) {\n\t\t\t$child = $boundaryPointB[0];\n\t\t\t$childNodes = iterator_to_array( $boundaryPointA[0]->childNodes );\n\n\t\t\twhile ( $child ) {\n\t\t\t\tif ( in_array( $child, $childNodes, true ) ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t$child = $child->parentNode;\n\t\t\t}\n\n\t\t\tif ( CommentUtils::childIndexOf( $child ) < $boundaryPointA[1] ) {\n\t\t\t\treturn 'after';\n\t\t\t}\n\t\t}\n\n\t\treturn 'before';\n\t}", "title": "" }, { "docid": "48654c0102e84a56270ba8f9671c2123", "score": "0.5731394", "text": "public function originallyOrdered(): Point {\n\n $m = $this->getB()->m($this->getA());\n $mx = $m * $this->getB()->getX();\n\n // b = y - mx\n $b = $this->getB()->getY() - $mx;\n\n return new Point(0, $b);\n }", "title": "" }, { "docid": "9898b57882733514af1debf51ba290f2", "score": "0.566435", "text": "function pointLocation() {\n }", "title": "" }, { "docid": "94d09c74d97469eb85ba072fa8002572", "score": "0.5661809", "text": "public function getFromPoint()\n {\n return $this->fromPoint;\n }", "title": "" }, { "docid": "b941256791601684bd9de19a850989fe", "score": "0.5655212", "text": "public function getBstart()\n {\n return $this->bstart;\n }", "title": "" }, { "docid": "efcf569e43d849af78dbf9f6f6b3340f", "score": "0.56170005", "text": "function getUpperLeftCorner(): Point\n {\n return $this->getGraphicsState()->getCurrentTransformationMatrix()->transformPoint($this->xObject->getUpperLeftCorner());\n }", "title": "" }, { "docid": "58b953767a1dd1668587e204c01857c3", "score": "0.5598662", "text": "public function setB(Point $b = null): Line {\n $this->b = $b;\n return $this;\n }", "title": "" }, { "docid": "4c52b754af02cd2eeea823ac95f2ce77", "score": "0.55126673", "text": "public function getUpperLeftCorner(): Point\n {\n return $this->getMatrix()->transformPoint($this->getBBox()->getUpperLeftPoint());\n }", "title": "" }, { "docid": "25c4a0259637a85504858968bb275a3d", "score": "0.5498064", "text": "public function getCoordinate();", "title": "" }, { "docid": "5a0dd8c4ae15c4fbd9bc40460fb429f2", "score": "0.54917914", "text": "function getPT()\n {\n // return 'ST'.substr($this->_pt, 2);\n return $this->_pt;\n }", "title": "" }, { "docid": "a37f13530cb11036e5f509726c10746b", "score": "0.5482532", "text": "public function __toString()\n {\n return Maths::segmentToString(\n ($this->is3D() ?\n array($this->getPointA()->x, $this->getPointA()->y, $this->getPointA()->z) : array($this->getPointA()->x, $this->getPointA()->y)\n ),\n ($this->is3D() ?\n array($this->getPointB()->x, $this->getPointB()->y, $this->getPointB()->z) : array($this->getPointB()->x, $this->getPointB()->y)\n )\n );\n }", "title": "" }, { "docid": "4a0d0e1476f44390b323d6b279c4bf5a", "score": "0.54281837", "text": "public function getPoint()\n {\n if (isset($this->currentDataSet[$this->currentDataPoint])) {\n return $this->currentDataSet[$this->currentDataPoint];\n } else {\n throw new \\Exception('No data point to retrieve');\n }\n }", "title": "" }, { "docid": "f0b5de329fba6ea7d7a56f05232eedf4", "score": "0.5389881", "text": "public function getPt() {\n return $this->get(self::PT);\n }", "title": "" }, { "docid": "f0b5de329fba6ea7d7a56f05232eedf4", "score": "0.5389881", "text": "public function getPt() {\n return $this->get(self::PT);\n }", "title": "" }, { "docid": "36e970c64dc68ea67bade707559ca3ea", "score": "0.5362021", "text": "function bpx($x = NULL) { lastbreakp($x); }", "title": "" }, { "docid": "4b2fcc14acb933a2102640964a6e5afa", "score": "0.5340379", "text": "public function getPointKey()\n {\n return $this->currentDataPoint;\n }", "title": "" }, { "docid": "493d33a992a8bca0a69d998093fe45b2", "score": "0.53215075", "text": "public function getName()\n {\n return self::POINT;\n }", "title": "" }, { "docid": "493d33a992a8bca0a69d998093fe45b2", "score": "0.53215075", "text": "public function getName()\n {\n return self::POINT;\n }", "title": "" }, { "docid": "bc7449e6cd64b2c2880dfaa342e8e541", "score": "0.5302826", "text": "public function b() {\n return $this->blue();\n }", "title": "" }, { "docid": "393f03d7716f020bd012a0b142a9c2d4", "score": "0.5291283", "text": "function getUpperRightCorner(): Point\n {\n return $this->getGraphicsState()->getCurrentTransformationMatrix()->transformPoint($this->xObject->getUpperRightCorner());\n }", "title": "" }, { "docid": "cdccf823d22cadc4fa26165e81021e23", "score": "0.5288397", "text": "public function getX(){\n return $this->locationX;\n }", "title": "" }, { "docid": "c6f6edc7f418560eed8c362835bf4b56", "score": "0.5275116", "text": "public function getBbox()\n {\n return $this->bbox;\n }", "title": "" }, { "docid": "62d362bc75a9ccf70129c7277ac3b86c", "score": "0.52741504", "text": "public function getAB()\n {\n return $this->ab();\n }", "title": "" }, { "docid": "1b7c643b406266f666de7f2c310138ff", "score": "0.52689874", "text": "public function get($point)\n\t{\n\t\tif(isset($this->data[(string) $point]))\n\t\t{\n\t\t\treturn $this->data[(string) $point];\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn NULL;\n\t\t}\n\n\t}", "title": "" }, { "docid": "9fe390789819b75d1ca1ff489678a707", "score": "0.52580595", "text": "function get($index) {\r\n\t\treturn $this->points[$index];\r\n\t}", "title": "" }, { "docid": "a09b9d10f24169087087735972fa6b51", "score": "0.5250905", "text": "public function getPosition(): string\n {\n return $this->xPosition . '.' . $this->yPosition;\n }", "title": "" }, { "docid": "2f4b46fdcb46c9e90cc154c43bf20899", "score": "0.5229541", "text": "function getLayerPointsFromBF($lid, $b, $f){\n $floor = getFloor($b, $f);\n return getLayerPointsFrom($lid, $floor);\n}", "title": "" }, { "docid": "58aa096deb1184d57adb8c552d46b60b", "score": "0.5209856", "text": "function _get_bbox_coords() {\n if (isset($_GET[$this->options['arg_id']])) {\n $this->argument = $_GET[$this->options['arg_id']];\n }\n return $this->_explode_bbox_coords($this->argument);\n }", "title": "" }, { "docid": "3e494427463470bc71750c84c2b2416f", "score": "0.51978296", "text": "private function getCoordinates() {\n if (array_key_exists('point', $this->rawData) && $this->rawData['point'] != '') {\n $this->point = \\geoPHP::load($this->rawData['point'],'wkt');\n }\n }", "title": "" }, { "docid": "7ab5be6f8035a4dee59ad7bd35cdb1cf", "score": "0.5194622", "text": "public function getPointHelper()\n {\n return $this->pointHelper;\n }", "title": "" }, { "docid": "2a303ca1d218277b36e4dee836b530b9", "score": "0.51902753", "text": "public function getGeopoint() {\r\n\treturn $this->geoPoint;\r\n }", "title": "" }, { "docid": "1ad1eec05e6b4acb9d4eb51318c22804", "score": "0.51871204", "text": "public function getX();", "title": "" }, { "docid": "439aa2b6961ff78dc69d46a7a1bf3329", "score": "0.51784533", "text": "function getLowerRightCorner(): Point\n {\n return $this->getGraphicsState()->getCurrentTransformationMatrix()->transformPoint($this->xObject->getLowerRightCorner());\n }", "title": "" }, { "docid": "6098299021d1508d917a640f34791dd2", "score": "0.5156072", "text": "public function getBinput()\n {\n return $this->binput;\n }", "title": "" }, { "docid": "5692a7be3f71c571cd48d5c97ee1b5ae", "score": "0.514353", "text": "public function getPointId()\n {\n return $this->pointid;\n }", "title": "" }, { "docid": "7ecb7d6f82a73ccfb033d07789cf1835", "score": "0.5126933", "text": "public function lambert72(): Lambert72Point\n {\n return $this->lambert72;\n }", "title": "" }, { "docid": "da144a3611a89c65cc3d07b3cb56910f", "score": "0.5123075", "text": "function getName()\n {\n return 'mapPoint';\n }", "title": "" }, { "docid": "80bba49fb1a3082df308eb1e3675c614", "score": "0.5116898", "text": "public function getX()\n {\n return $this->x;\n }", "title": "" }, { "docid": "01fc7a87722b876ab35fa096dda9e289", "score": "0.5102917", "text": "public function getBarbe()\r\n {\r\n return $this->barbe;\r\n }", "title": "" }, { "docid": "45a41bd99e9e4ce7d28ed6910adc3fe5", "score": "0.5101004", "text": "public function getX(){\n\t\treturn $this->x;\n\t}", "title": "" }, { "docid": "45a41bd99e9e4ce7d28ed6910adc3fe5", "score": "0.5101004", "text": "public function getX(){\n\t\treturn $this->x;\n\t}", "title": "" }, { "docid": "a22408bf11f03d0a9e15c4d18d0fab8c", "score": "0.50995946", "text": "public function getUpperRightCorner(): Point\n {\n return $this->getMatrix()->transformPoint($this->getBBox()->getUpperRightPoint());\n }", "title": "" }, { "docid": "4361d69ba559b959fda364d7da45b3ce", "score": "0.50910896", "text": "public function getBeginPoint();", "title": "" }, { "docid": "234c6e89f607799c423d026c1e7372a9", "score": "0.5080157", "text": "function getX() {\n return $this->x;\n }", "title": "" }, { "docid": "764d37328040bb6b5c98b3a49ed70f01", "score": "0.5061058", "text": "public function get_userPoint() {\n $point = 0;\n if($this->_linkDB) {\n $this->_result = $this->_linkDB->select(\"tbl_users\",\"point\",\"WHERE username = '\". $_SESSION['userName'] .\"';\");\n if($this->_result != 0) {\n foreach($this->_result[0] as $row) {\n $point = $row->point;\n }\n return $point;\n } else {\n return 0;\n }\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "2f349f82efdec351b933b7055df25456", "score": "0.50604516", "text": "public function getX() {\n return $this->x;\n }", "title": "" }, { "docid": "9ad0b5fa038e3cd68b5155d7ebc591c3", "score": "0.5038445", "text": "function get_coordinate_notation(): string {\n if (\n $this->promotion_piece_type == ChessPiece::ROOK ||\n $this->promotion_piece_type == ChessPiece::BISHOP ||\n $this->promotion_piece_type == ChessPiece::KNIGHT\n ) {\n return \"\";\n } else { \n return $this->starting_square->get_alphanumeric() . $this->ending_square->get_alphanumeric();\n }\n }", "title": "" }, { "docid": "baf19423cf15a30a37de7b69bb347a2b", "score": "0.50102824", "text": "public function getBwanda() {\n return $this->get(self::BWANDA);\n }", "title": "" }, { "docid": "7ba63584ee34d27bb8accb07165c4401", "score": "0.50019324", "text": "public function getLowerRightCorner(): Point\n {\n return $this->getMatrix()->transformPoint($this->getBBox()->getLowerRightPoint());\n }", "title": "" }, { "docid": "edc2beaf57af55a1e1fbb9ac7044f92a", "score": "0.49599916", "text": "function point_to_str($row, $col) {\n return $row. ':'. $col;\n}", "title": "" }, { "docid": "f19069afb07010c50a310f8e1de556e2", "score": "0.495578", "text": "public function getRelayPoint();", "title": "" }, { "docid": "019763b6cc213397ceb44873ddd66ac8", "score": "0.49547464", "text": "private function getBarang(){\n\t\t\tif($this->barang == null){\n\t\t\t\t$this->barang = Barang::find($this->idbarang);\n\t\t\t\tif($this->barang == null) return self::CONST_GET_OBJECT_INSIDE_CLASS_GAGAL;\n\t\t\t\telse return self::CONST_GET_OBJECT_INSIDE_CLASS_SUCCESS;\n\t\t\t}else return self::CONST_GET_OBJECT_INSIDE_CLASS_SUCCESS;\n\t\t}", "title": "" }, { "docid": "1694dcbf69775e2224a609f110fd39f6", "score": "0.49530917", "text": "public function getPointOfEntry()\n {\n return $this\n ->machine\n ->getPointOfEntry();\n }", "title": "" }, { "docid": "3f94796c3d865d42d07752d408094869", "score": "0.49365973", "text": "public function getBname()\n {\n return $this->bname;\n }", "title": "" }, { "docid": "2bcfc11174e49a88016d3a5ac0832948", "score": "0.49206337", "text": "function getOrigin();", "title": "" }, { "docid": "1073a1e26b81dc75b1802abd3f2dbc13", "score": "0.49126023", "text": "function getLowerLeftCorner(): Point\n {\n return $this->getGraphicsState()->getCurrentTransformationMatrix()->transformPoint($this->xObject->getLowerLeftCorner());\n }", "title": "" }, { "docid": "327aaca57f2123a23c3ae46aa3bb81bb", "score": "0.48918593", "text": "public function getBearing()\n {\n return $this->_data['bearing'];\n }", "title": "" }, { "docid": "69dabde0631782b01df65349857ef3e4", "score": "0.48772734", "text": "public function x() { return $this->_m_x; }", "title": "" }, { "docid": "8e2a09d110998bdcc510716dcba63c4a", "score": "0.48734072", "text": "public function getBacc()\n {\n return $this->bacc;\n }", "title": "" }, { "docid": "825106e27136014099c1eff88458d00c", "score": "0.48682898", "text": "public function getBackBearing()\n {\n $b = $this->getBearing();\n if (!is_float($b)) {\n throw new InvalidArgumentException(\"bearing '$b' not type float!\");\n }\n \n // @todo: maybe move this code into units conversion method?\n $unitObj = $this->getUnit('bearing');\n if (is_null($unitObj)) {\n throw new File_Therion_Exception(\"Calculating BackBearing requires explicit unit set!\");\n }\n $unit = $unitObj->getType(true);\n if ($unit == 'degree' || $unit == 'grad') {\n $max = ($unit=='degree')? 360.0 : 400.0;\n if ($b >= $max/2) {\n $r = $b-$max/2;\n } else {\n $r = $b+$max/2;\n }\n if ($r >= $max) $r = $max; // cap limit, eg. 360 becomes 0\n \n } else {\n // todo: implement more units\n throw new File_Therion_Exception(\"Unit '$unit' not implmented yet!\");\n }\n\n return $r;\n }", "title": "" }, { "docid": "0f1cf83848379e6c363176166154f622", "score": "0.48629957", "text": "public function getTile(IMozambiquePoint $point);", "title": "" }, { "docid": "456de316c2fa466dce6866317f264b7f", "score": "0.48529527", "text": "function _pointX($point)\n {\n if (($this->_primaryAxis->_type == IMAGE_GRAPH_AXIS_Y) ||\n ($this->_primaryAxis->_type == IMAGE_GRAPH_AXIS_Y_SECONDARY)) {\n $point['AXIS_Y'] = $this->_primaryAxis->_type;\n } else {\n $point['AXIS_Y'] = $this->_secondaryAxis->_type;\n }\n return parent::_pointX($point);\n }", "title": "" }, { "docid": "b208d1d13bacf9f87754d9a1cffcc3a9", "score": "0.48410332", "text": "function _Point($x, $y) {\n $this->_out(sprintf('%.2F %.2F m', $x * $this->k, ($this->h - $y) * $this->k));\n }", "title": "" }, { "docid": "dcaef62388ddbc9c86a818a2577f6727", "score": "0.48390928", "text": "function getPoints() {\r\n\t\t return $this->points;\r\n\t }", "title": "" }, { "docid": "7ae84ad58153c7e94471cd3748021eb3", "score": "0.4832777", "text": "function get_y_min()\n\t{\n\t\treturn $this->get_x_min();\n\t}", "title": "" }, { "docid": "05785c63e3eb1271ef0c1bfbf07e2a87", "score": "0.4832561", "text": "public function usdtogpb() {\n return $this->moneyinput*0.73;\n }", "title": "" }, { "docid": "3c60bd7ce51af3efdaf07d491760ede2", "score": "0.48129773", "text": "public function getBreitengrad() {\n\t\tif (!$this->getHasGeokoordinaten()) {\n\t\t\treturn 0.0;\n\t\t}\n\n\t\t$geo = $this->getGeo();\n\n\t\treturn (float) $geo['geokoordinaten']['breitengrad'];\n\t}", "title": "" }, { "docid": "4eda0364637a589244bbe14534b80156", "score": "0.4806301", "text": "public function getCoordinate()\n {\n return $this->coordinate;\n }", "title": "" }, { "docid": "b0f2166c618bbf99332af9e23e8fbd3a", "score": "0.48052856", "text": "public function getCenter()\n {\n $abscissas = array(\n $this->getPointA()->getAbscissa(), $this->getPointB()->getAbscissa()\n );\n $ordinates = array(\n $this->getPointA()->getOrdinate(), $this->getPointB()->getOrdinate()\n );\n return new Point(\n ((max($abscissas) - min($abscissas)) / 2),\n ((max($ordinates) - min($ordinates)) / 2)\n );\n }", "title": "" }, { "docid": "b64ed3540b202220c7267eaddd7442b6", "score": "0.47984946", "text": "function getBbox ()\n{\n\t# Get the data from the query string\n\t$bboxString = (isSet ($_GET['bbox']) ? $_GET['bbox'] : NULL);\n\t\n\t# Check BBOX is Provided\n\tif (!$bboxString) {\n\t\techo 'No bbox was supplied.';\n\t}\n\t\n\t# Ensure four values\n\tif (substr_count ($bboxString, ',') != 3) {\n\t\techo 'An invalid bbox was supplied.';\n\t}\n\t\n\t# Assemble the parameters\n\t$bbox = array ();\n\tlist ($bbox['w'], $bbox['s'], $bbox['e'], $bbox['n']) = explode (',', $bboxString);\n\t\n\t# Ensure valid values\n\tforeach ($bbox as $key => $value) {\n\t\tif (!is_numeric ($value)) {\n\t\t\techo 'An invalid bbox was supplied.';\n\t\t}\n\t}\n\t\n\t# Return the collection\n\treturn $bbox;\n}", "title": "" }, { "docid": "84a79cd5e6b45051f5ed3cd984a50dac", "score": "0.4787594", "text": "public function getOriginNumber();", "title": "" }, { "docid": "45471fd2ed0519e1afaf14319c631adc", "score": "0.47844854", "text": "public function getPoints() { return $this->data['points']; }", "title": "" }, { "docid": "b101b310914a1dc336a9a82a9ff35f3c", "score": "0.4775075", "text": "public function getLowerLeftCorner(): Point\n {\n return $this->getMatrix()->transformPoint($this->getBBox()->getLowerLeftPoint());\n }", "title": "" }, { "docid": "2ac060199b320cb0554d69154a55299b", "score": "0.47749454", "text": "public function getBoundingPoly()\n {\n return $this->bounding_poly;\n }", "title": "" }, { "docid": "2ac060199b320cb0554d69154a55299b", "score": "0.47749454", "text": "public function getBoundingPoly()\n {\n return $this->bounding_poly;\n }", "title": "" }, { "docid": "2ac060199b320cb0554d69154a55299b", "score": "0.47749454", "text": "public function getBoundingPoly()\n {\n return $this->bounding_poly;\n }", "title": "" }, { "docid": "33e023faaa411e8adb5746a8e93baa8e", "score": "0.47736156", "text": "public function getCursoC42Bolsa()\n\t{\n\t\treturn $this->curso_c42_bolsa;\n\t}", "title": "" }, { "docid": "37878ff46ae55e890fd009f8396010b4", "score": "0.4761597", "text": "function format_point($text) {\n\t$text2 = number_format($text,2);\n\treturn $text2;\n}", "title": "" }, { "docid": "c955ea6d19c5df3246cee39f6c513f28", "score": "0.47537267", "text": "function GetPoint($igrd){\n\tglobal $dbo;\n\t$igrd = trim($igrd);\n\t$rst = $dbo -> RunQuery(\"select * from resultinfo_tb\");\n\tif(is_array($rst)){\n\t\tif($rst[1] > 0){\n\t\t\t$grad = $rst[0]->fetch_array();\n\t\t\t$gradstr = @$grad['Grading'];\n\t\t\tif(trim($gradstr) != \"\"){\n\t\t\t\t//break into individual grades\n\t\t\t\t$indgrads = explode(\"~\",$gradstr);\n\t\t\t\tif(count($indgrads) > 0){\n\t\t\t\t\tfor($s=0; $s < count($indgrads); $s++){\n\t\t\t\t\t\t$indgrad = $indgrads[$s];\n\t\t\t\t\t\tif(trim($indgrad) != \"\"){\n\t\t\t\t\t\t\t//break to get score and equivalent grade\n\t\t\t\t\t\t\t$scoregrd = explode(\"=\",$indgrad);\n\t\t\t\t\t\t\tif(count($scoregrd) == 2){\n\t\t\t\t\t\t\t\t$val = trim($scoregrd[0]);\n\t\t\t\t\t\t\t\t$grd = trim($scoregrd[1]);\n\t\t\t\t\t\t\t\t//get gradepoint\n\t\t\t\t\t\t\t\t$grdpntarr = explode(\"|\",$grd);\n\t\t\t\t\t\t\t\t//$point = 0;\n\t\t\t\t\t\t\t\tif(count($grdpntarr) == 2){\n\t\t\t\t\t\t\t\t\t$grd = trim($grdpntarr[0]);\n\t\t\t\t\t\t\t\t\tif(strtolower($grd) == strtolower($igrd)){\n\t\t\t\t\t\t\t\t\treturn (float)$grdpntarr[1];\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\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}\n\treturn 0;\n}", "title": "" }, { "docid": "6f5d82fd6cd5978adf0c17486eceb14e", "score": "0.47513205", "text": "public function getBlue()\n {\n if (!($this->rgb instanceof ArrayObject)) {\n $this->getHelper()->getRGB();\n }\n return $this->rgb[2];\n }", "title": "" }, { "docid": "4a0feae83de8f809ccb7d1bdd007193d", "score": "0.4749076", "text": "public function getBounce();", "title": "" }, { "docid": "37dc252d20767b6aa4215f80e995e70b", "score": "0.4746294", "text": "public function getName() {\n $b = new B();\n return $b->getName();\n }", "title": "" }, { "docid": "f23b29ff950dc0fe87afe3d5521bb333", "score": "0.4726499", "text": "function getRoundCustomPoints()\n\t{\n\t\treturn $this->execute(ucfirst(__FUNCTION__));\n\t}", "title": "" }, { "docid": "b378af1e3283be6351843c080d595c3d", "score": "0.47253484", "text": "public function _getPoints() {\n return $this->_points;\n }", "title": "" }, { "docid": "afc36e7f78ef191a8bcd2f2e45c8c541", "score": "0.47183836", "text": "public function getX()\n {\n return $this->page[$this->pageid]['region'][$this->page[$this->pageid]['currentRegion']]['x'];\n }", "title": "" }, { "docid": "4203d43371507e9a5ed577bf46dae246", "score": "0.47139263", "text": "public function getPointValue($key)\n {\n $point = $this->getPoint();\n\n return $point[$key]['value'];\n }", "title": "" }, { "docid": "f35b8b2c42ac57529cdb4d8c1c7d6fe7", "score": "0.46943423", "text": "public function getBoundingBox() {\r\n return $this->bbox;\r\n }", "title": "" }, { "docid": "7267babd92de085d49803253dc77697e", "score": "0.46922523", "text": "public function getXp()\n {\n return (int) $this->data[ $this->cols['xp'] ];\n }", "title": "" }, { "docid": "d8a91f457e20deaf9d1bdd41784821dd", "score": "0.4689254", "text": "public function getBatchBoundary(): ?string;", "title": "" }, { "docid": "8185e2f07dd420166e07d2e4fd5f2393", "score": "0.4687149", "text": "function getBaseFormation(){\n\t\t\t$baseformation=0.98 - ($this->_round_number-1)/100;\n\t\t\treturn $baseformation;\n\t\t}", "title": "" }, { "docid": "67f36948bd635982bbfc47920d21b734", "score": "0.468315", "text": "public function wgs84(): Wgs84Point\n {\n return $this->wgs84;\n }", "title": "" }, { "docid": "22dbfa45f60edf8f54d996cb82b00558", "score": "0.4682646", "text": "public function getBoundingBox(): array\n {\n return MapData::getBoundingBoxFromPoints($this->points);\n }", "title": "" }, { "docid": "c769761031f605118958c34c7b4d70a5", "score": "0.46822366", "text": "function point_to_coord($wkt) {\n\n $coord = explode(\"(\", $wkt)[1];\n $coord = explode(\")\", $coord)[0];\n $coord = explode(\" \", $coord);\n\n return [$coord[1], $coord[0]];\n\n}", "title": "" }, { "docid": "d06630ed629c9e4a06fac4cdec4f289c", "score": "0.4678245", "text": "public function getBcci()\n {\n return $this->_Bcci;\n }", "title": "" }, { "docid": "5188735d9a6a3c9e1f3c44cbae625c7c", "score": "0.46697876", "text": "function solo_game_bid_base_points($point_rules, $solo_game) {\n\treturn GROUND_POINTS * 6 * $solo_game['multiplier'];\n}", "title": "" } ]
b9cad0672beaa6884fe88efb6d9e69f7
$id = $tree>getIdByPath('/Root/child 2/child 2_2');
[ { "docid": "6e84d6639efdc462bf19324c98b99f21", "score": "0.5947374", "text": "function _testPath(&$tree)\n {\n $id = 5;\n $path = $tree->getPath($id);\n\n $this->assertEquals(3, sizeof($path));\n $this->assertEquals('Root', $path[0]['name']);\n $this->assertEquals('child 2', $path[1]['name']);\n $this->assertEquals('child 2_2', $path[2]['name']);\n }", "title": "" } ]
[ { "docid": "781536c1e460f4992dceeb717f657491", "score": "0.71363944", "text": "function test_MemoryDBnested()\n {\n $tree = $this->getMemoryDBnested();\n $id = $tree->getIdByPath('Root/child 2/child 2_2');\n\n $this->assertEquals(5, $id);\n }", "title": "" }, { "docid": "b0a0ec3737743fd18488b16e24e32f58", "score": "0.6691326", "text": "function getChildTreeIdByTreeId( $treeId )\r\n\r\n\t{\r\n\r\n\t\t$id = 0;\r\n\r\n\t\t$query = $this->db->query('SELECT id FROM teeme_tree WHERE parentTreeId='.$treeId .' AND embedded=0');\t\t\t\t\t\t\t\t\r\n\r\n\t\tforeach($query->result() as $row)\r\n\r\n\t\t{\r\n\r\n\t\t\t$id = $row->id;\r\n\r\n\t\t}\t\t\r\n\r\n\t\treturn $id;\r\n\r\n\t}", "title": "" }, { "docid": "0d985dc2b2f8df35e23853d5735eaa50", "score": "0.6666348", "text": "function test_DynamicSQLnested()\n {\n $tree = $this->getDynamicSQLnested();\n $id = $tree->getIdByPath('/Root/child 2/child 2_2');\n\n $this->markTestIncomplete();\n\n $this->assertEquals(5, $id, 'This is not implemented, yet!!! (This test should fail ... for now)');\n }", "title": "" }, { "docid": "08d71137448600f1791727e39ba33a61", "score": "0.6623869", "text": "function idToPath($id) {\n $results = jz_db_simple_query(\"SELECT path FROM jz_nodes WHERE my_id = '$id'\");\n return $results['path'];\n}", "title": "" }, { "docid": "08d71137448600f1791727e39ba33a61", "score": "0.6623869", "text": "function idToPath($id) {\n $results = jz_db_simple_query(\"SELECT path FROM jz_nodes WHERE my_id = '$id'\");\n return $results['path'];\n}", "title": "" }, { "docid": "5457a174d8821f89c0648d581250cb4a", "score": "0.64072174", "text": "function getID() {\n if (isset($this->myid) && $this->myid !== false) {\n return $this->myid;\n } else {\n $path = jz_db_escape($this->getPath(\"String\"));\n $results = jz_db_simple_query(\"SELECT my_id FROM jz_nodes WHERE path = '$path'\");\n return $results['my_id'];\n }\n}", "title": "" }, { "docid": "5457a174d8821f89c0648d581250cb4a", "score": "0.64072174", "text": "function getID() {\n if (isset($this->myid) && $this->myid !== false) {\n return $this->myid;\n } else {\n $path = jz_db_escape($this->getPath(\"String\"));\n $results = jz_db_simple_query(\"SELECT my_id FROM jz_nodes WHERE path = '$path'\");\n return $results['my_id'];\n }\n}", "title": "" }, { "docid": "dded97b51bcbd4a9a378551d49670fe5", "score": "0.6094488", "text": "public function getId()\n {\n $nodeRef = $this->getNodeRef();\n return substr($nodeRef, strrpos($nodeRef, '/') + 1);\n }", "title": "" }, { "docid": "2eaac5f754e90bab631728a7fb3bfc3b", "score": "0.59504217", "text": "public function getIdFromPath() {\n\t\t\treturn sizeof($this->path)>1 ? $this->path[1] : FALSE;\n\t\t}", "title": "" }, { "docid": "1d2fdf6deb3d9b742ffbeae76bb7cb04", "score": "0.5700792", "text": "public function objectPathToId($path)\n\t{\n if (!$path) return false;\n \t\n\t\t$sql = \"SELECT docmgr.path_to_id('\".sanitize($path).\"') AS objpath;\";\n\t\t$info = $this->DB->single($sql);\n\n\t\treturn $info[\"objpath\"];\n\t\n\t}", "title": "" }, { "docid": "aa1681570c8306fb3a18f1618d71b63e", "score": "0.5693384", "text": "public function getId()\n {\n return $this->getPath();\n }", "title": "" }, { "docid": "28269ae551cceb9791b3ebf8e004fe54", "score": "0.56933105", "text": "function babybel_get_nid_from_path($path) {\n if (is_string($path) && preg_match('/node\\/[0-9]*/', $path)) {\n $parts = explode('/', $path);\n return array_pop($parts);\n }\n else {\n return $path;\n }\n}", "title": "" }, { "docid": "979a29bbb377582bd45292e8f32f4d30", "score": "0.56717265", "text": "function getIdPathFromId( $sel_id, $path = \"\" )\r\n {\r\n $parentid = $this->arr[$sel_id][$this->pid];\r\n $path = \"/\" . $sel_id . $path . \"\";\r\n if ( $parentid == 0 ) {\r\n return $path;\r\n }\r\n $path = $this->getIdPathFromId( $parentid, $path );\r\n return $path;\r\n }", "title": "" }, { "docid": "8ab970ee3a43dd2aa6d71aa75a285f09", "score": "0.5564789", "text": "protected function objectIdPath($id) {\n\n\t\tif (!$id) $path = \"0\";\n\t\telse \n\t\t{\n\n\t\t\t$sql = \"SELECT docmgr.getobjpath('\".$id.\"','') AS objpath;\";\n\t\t\t$info = $this->DB->single($sql);\n\t\t\t\n\t\t\treturn $info[\"objpath\"];\n\n\t\t}\n\t\t\n\t\treturn $path;\n\t\n\t}", "title": "" }, { "docid": "f94d40749c3dbd35f3e0d5302c56d40b", "score": "0.5554674", "text": "public function getRootIdentifier(): string;", "title": "" }, { "docid": "637194945e30b7028276f4c0221ed160", "score": "0.5549938", "text": "public function getbaserootid(){\r\n\r\n\t\t$root_id = null;\r\n\t\t\t\t\r\n\t\t\r\n\t\t// first get the lowest id - rhis it the root parent\r\n\t\t$sql = \"SELECT MIN(node_parent) AS base_node FROM {$this->db->dbprefix}content_nodes WHERE node_id > 1\";\r\n\t\t\r\n\t\t$query = $this->db->query($sql);\r\n\t\t\t\t\r\n\t\tif ($query->num_rows() > 0) $root_id = $query->row()->base_node;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\treturn $root_id;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1f2a2e57d9098c59e7621e215bd8883c", "score": "0.55081683", "text": "public function getPath($id) {\n\t\t$_left = $this->getAdapter()->quoteIdentifier($this->_left);\n\t\t$_right = $this->getAdapter()->quoteIdentifier($this->_right);\n\t\t$_node = $this->getAdapter()->quoteIdentifier($this->_node);\n\t\t$_parent = $this->getAdapter()->quoteIdentifier($this->_parent);\n\t\t$_pk = $this->getAdapter()->quoteIdentifier($this->_pk);\n\t\t$select = $this->select()\n\t\t\t->from(array($this->_node => $this->_name), '')\n\t\t\t->join(array($this->_parent => $this->_name),\"{$_node}.{$_left} BETWEEN {$_parent}.{$_left} AND {$_parent}.{$_right}\")\n\t\t\t->order($this->_node . '.' . $this->_left . ' ASC')\n\t\t\t->where($this->_node . '.' . $_pk . ' = ?', $id);\n\t\t\n\t\treturn $this->fetchAll($select);\n\t}", "title": "" }, { "docid": "664e3cfd9bf6dab835a68386dc25a639", "score": "0.5476709", "text": "public function findNodeById($id);", "title": "" }, { "docid": "659dff0e4158822ecdc6ac380d5f4020", "score": "0.54680717", "text": "public function getNode(&$root, $path);", "title": "" }, { "docid": "2219ff9809f0a9b18cb35a0bbed7e731", "score": "0.5456102", "text": "function tskGetWebDirectoryId($nodeId) {\r\n $database = stlGlobal('database');\r\n $database->query(\" \r\n SELECT web_directory_id as id\r\n FROM \r\n web_directories\r\n WHERE \r\n id = ? \r\n \");\r\n $database->bind(1, $nodeId);\r\n $row = $database->single();\r\n return $row['id'];\r\n}", "title": "" }, { "docid": "509fed8ce75bb3a2117e36288ae21bf3", "score": "0.54347134", "text": "public function idFromPath($path)\n {\n $statement = $this->db->prepare(\"SELECT * FROM oophp_content WHERE `path`='$path'\");\n $statement->execute();\n $row = $statement->fetch(PDO::FETCH_OBJ);\n return $row ? $row->id : false;\n }", "title": "" }, { "docid": "b083dd49bbe9e7a4e515946e94833098", "score": "0.54034466", "text": "function getDOMINIOS_DOM_ID($SUB_ID)\n {\n $sql=\"SELECT DOMINIOS_DOM_ID FROM subdominios WHERE SUB_ID=$SUB_ID\";\n return $this->connection->GetAll($sql);\n}", "title": "" }, { "docid": "83fd619827fbe7e44d52755d55be367c", "score": "0.5398083", "text": "function get_uuid_from_path($path) {\n if (ALFRESCO_DEBUG_TRACE) mtrace('get_uuid_from_path(' . $path . ')');\n\n $this->errormsg = '';\n\n $node = $this->get_root();\n $parts = explode('/', $path);\n $uuid = $node->uuid;\n\n /// Move through each path element, finding the node for each in turn.\n for ($i = 0; $i < count($parts); $i++) {\n $part = $parts[$i];\n\n if (empty($part)) {\n continue;\n }\n\n $children = $this->read_dir($uuid);\n $found = false;\n\n if (!empty($children->folders)) {\n foreach ($children->folders as $folder) {\n if ($found) {\n continue;\n }\n\n if ($folder->title == $part) {\n $found = true;\n $uuid = $folder->uuid;\n }\n }\n }\n\n if (!$found && ($i == count($parts) - 1)) {\n if (!empty($children->files)) {\n foreach ($children->files as $file) {\n if ($found) {\n continue;\n }\n\n if ($file->title == $part) {\n $found = true;\n $uuid = $file->uuid;\n }\n }\n }\n }\n\n /// We did not find a node for the current path element... oops!\n if (!$found) {\n return false;\n }\n }\n\n return $uuid;\n }", "title": "" }, { "docid": "8a8a6b600cc0dbc880723ab4b70b8816", "score": "0.5380525", "text": "function getXpath();", "title": "" }, { "docid": "9a25b3ca448fae212dfdebd71eaebc58", "score": "0.5366867", "text": "protected function parseDirectoryID($path) {\n\t\t$path = str_replace($this->rootDirectory, 'root-', $path);\n\t\t$path = str_replace(\"./\", '-', $path);\n\t\t$path = str_replace(\"/\", '-', $path);\n\t\t$path = explode(\"-\", $path);\n\t\t$path = join(\"-\", array_filter($path));\n\t\treturn $path;\n\t}", "title": "" }, { "docid": "11801f6bde22201084e2d88a46581f45", "score": "0.53609157", "text": "function mmda_get_parent_uuid($uuid){\n $db = db_connect();\n\n $sql = \"SELECT parent_uuid from FileReferences where child_uuid = ?\";\n\n $query = $db->query($sql, array($uuid));\n\n $results = $query->fetchAllArray();\n\n if(isset($results[0])){\n return $results[0]['parent_uuid'];\n }else{\n return false;\n }\n}", "title": "" }, { "docid": "db58df9252ebfd9361918c9812ccc660", "score": "0.5358635", "text": "function getPathFromId( $sel_id, $title, $path = \"\" )\r\n {\r\n $parentid = $this->arr[$sel_id][$this->pid];\r\n $path = \"/\" . htmlSpecialChars( $this->arr[$sel_id][$title], ENT_QUOTES ) . $path . \"\";\r\n if ( $parentid == 0 ) {\r\n return $path;\r\n }\r\n $path = $this->getPathFromId( $parentid, $title, $path );\r\n return $path;\r\n }", "title": "" }, { "docid": "9a681a3906dc74f808068a5347306a40", "score": "0.53457004", "text": "function getParentPath($path)\n{\n\n}", "title": "" }, { "docid": "43aa5d0cd7497c7c2a634ba03ce5b013", "score": "0.5338023", "text": "public function fetchPath()\n {\n return $this->tree->fetchPath( $this->id );\n }", "title": "" }, { "docid": "646718434b276bac6a32f3ef96ba8777", "score": "0.5308907", "text": "function getFolderID($path)\n {\n if ($path == \"\") return -1;\n // Find folder ID in DB according to the path given (relative to the gallery)\n $path_array = explode('/', $path);\n $parent_id = -1;\n $folder_id = -1;\n\n foreach($path_array as $current_path_level) {\n $parent_id = $folder_id;\n $result = $this->query(\"SELECT id FROM media_folders WHERE parent_id=$parent_id AND foldername='\".$this->escape_string($current_path_level).\"';\");\n if ($result === FALSE) throw new Exception($this->error); else $row = $result->fetch_row();\n $result->free();\n if ($row[0] != NULL)\n $folder_id = $row[0];\n else\n return -1;\n }\n return $folder_id;\n }", "title": "" }, { "docid": "11ff98a5a8aecb48d632b3b2fee9abb6", "score": "0.5308266", "text": "public function id_from_path($path, $one_only = true, $retry_count = 3) {\n\t\t$storage = $this->get_storage();\n\n\t\ttry {\n\n\t\t\twhile ('/' == substr($path, 0, 1)) {\n\t\t\t\t$path = substr($path, 1);\n\t\t\t}\n\n\t\t\t$cache_key = empty($path) ? '/' : ($one_only ? $path : 'multi:'.$path);\n\t\t\tif (isset($this->ids_from_paths[$cache_key])) return $this->ids_from_paths[$cache_key];\n\n\t\t\t$current_parent_id = $this->root_id();\n\t\t\t$current_path = '/';\n\n\t\t\tif (!empty($path)) {\n\t\t\t\t$nodes = explode('/', $path);\n\t\t\t\tforeach ($nodes as $element) {\n\t\t\t\t\t$found = array();\n\t\t\t\t\t$sub_items = $this->get_subitems($current_parent_id, 'dir', $element);\n\n\t\t\t\t\tforeach ($sub_items as $item) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif ($item->getTitle() == $element) {\n\t\t\t\t\t\t\t\t$current_path .= $element.'/';\n\t\t\t\t\t\t\t\t$current_parent_id = $item->getId();\n\t\t\t\t\t\t\t\t$found[$current_parent_id] = strtotime($item->getCreatedDate());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Exception $e) {\n\t\t\t\t\t\t\t$this->log(\"id_from_path: exception: \".$e->getMessage().' (line: '.$e->getLine().', file: '.$e->getFile().')');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (count($found) > 1) {\n\t\t\t\t\t\tasort($found);\n\t\t\t\t\t\treset($found);\n\t\t\t\t\t\t$current_parent_id = key($found);\n\t\t\t\t\t} elseif (empty($found)) {\n\t\t\t\t\t\t$ref = new UDP_Google_Service_Drive_ParentReference;\n\t\t\t\t\t\t$ref->setId($current_parent_id);\n\t\t\t\t\t\t$dir = new UDP_Google_Service_Drive_DriveFile();\n\t\t\t\t\t\t$dir->setMimeType('application/vnd.google-apps.folder');\n\t\t\t\t\t\t$dir->setParents(array($ref));\n\t\t\t\t\t\t$dir->setTitle($element);\n\t\t\t\t\t\t$this->log('creating path: '.$current_path.$element);\n\t\t\t\t\t\t$dir = $storage->files->insert(\n\t\t\t\t\t\t\t$dir,\n\t\t\t\t\t\t\tarray('mimeType' => 'application/vnd.google-apps.folder')\n\t\t\t\t\t\t);\n\t\t\t\t\t\t$current_path .= $element.'/';\n\t\t\t\t\t\t$current_parent_id = $dir->getId();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (empty($this->ids_from_paths)) $this->ids_from_paths = array();\n\t\t\t$this->ids_from_paths[$cache_key] = ($one_only || empty($found) || 1 == count($found)) ? $current_parent_id : $found;\n\n\t\t\treturn $this->ids_from_paths[$cache_key];\n\n\t\t} catch (Exception $e) {\n\t\t\t$msg = $e->getMessage();\n\t\t\t$this->log(\"id_from_path failure: exception (\".get_class($e).\"): \".$msg.' (line: '.$e->getLine().', file: '.$e->getFile().')');\n\t\t\tif (is_a($e, 'UDP_Google_Service_Exception') && false !== strpos($msg, 'Invalid json in service response') && function_exists('mb_strpos')) {\n\t\t\t\t// Aug 2015: saw a case where the gzip-encoding was not removed from the result\n\t\t\t\t// https://stackoverflow.com/questions/10975775/how-to-determine-if-a-string-was-compressed\n\t\t\t\t// @codingStandardsIgnoreLine\n\t\t\t\t$is_gzip = (false !== mb_strpos($msg, \"\\x1f\\x8b\\x08\"));\n\t\t\t\tif ($is_gzip) $this->log(\"Error: Response appears to be gzip-encoded still; something is broken in the client HTTP stack, and you should define UPDRAFTPLUS_GOOGLEDRIVE_DISABLEGZIP as true in your wp-config.php to overcome this.\");\n\t\t\t}\n\t\t\t$retry_count--;\n\t\t\t$this->log(\"id_from_path: retry ($retry_count)\");\n\t\t\tif ($retry_count > 0) {\n\t\t\t\t$delay_in_seconds = defined('UPDRAFTPLUS_GOOGLE_DRIVE_GET_FOLDER_ID_SECOND_RETRY_DELAY') ? UPDRAFTPLUS_GOOGLE_DRIVE_GET_FOLDER_ID_SECOND_RETRY_DELAY : 5-$retry_count;\n\t\t\t\tsleep($delay_in_seconds);\n\t\t\t\treturn $this->id_from_path($path, $one_only, $retry_count);\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "5a7b728d1830782158119423842201db", "score": "0.5287873", "text": "public function getRootId()\n {\n return $this->hierarchy->getRootId();\n }", "title": "" }, { "docid": "00bcb4534f70d357cce9aff6efcc4bc8", "score": "0.5261029", "text": "function getChild($name);", "title": "" }, { "docid": "d8c34eaca646bc972919df5123a28dc4", "score": "0.5259744", "text": "abstract protected function get_id();", "title": "" }, { "docid": "9e514062cbb262e9a2eb9880243ceaf2", "score": "0.5255553", "text": "function get_tree($id) {\n global $page_tree;\n global $page_tree_indexes;\n if (isset($page_tree_indexes[$id][2]))\n return $page_tree[$page_tree_indexes[$id][0]][\"children\"][$page_tree_indexes[$id][1]][\"children\"][$page_tree_indexes[$id][2]];\n if (isset($page_tree_indexes[$id][1]))\n return $page_tree[$page_tree_indexes[$id][0]][\"children\"][$page_tree_indexes[$id][1]];\n if (isset($page_tree_indexes[$id][0]))\n return $page_tree[$page_tree_indexes[$id][0]];\n return [];\n }", "title": "" }, { "docid": "1180dc9c6df7c42b7c47b905dbaa7ea0", "score": "0.5237347", "text": "function get_path($node) { \n\n global $pdo; \n\n // if no node supplied or node=0 to not bother db\n // cos fethcing of empty pdo.object returns 'false' \n // then treating it as array cos error \"Trying to access array offset on value of type bool\"\n\n if (!$node) {\n\n\t\t$path = array(); \n \treturn $path;\n\n };\n\n\n // look up the parent of this node \n\n $parent_obj = $pdo->query('SELECT id_parent FROM groups WHERE id=\"'.$node.'\"'); \n\n $row = $parent_obj->fetch(); \n\n // gonna save the path in this array\n $path = array();\n\n\n // only continue if this $node isn't the root node (that's the node with id_parent=0) \n\n if ($row['id_parent']) { \n\n // the last part of the path to $node, is the name of the parent of $node \n\n $path[] = $row['id_parent']; \n\n // we should add the path to the parent of this node to the path - recursion warning\n\n $path = array_merge(get_path($row['id_parent']), $path); \n\n }\n\n\n return $path; \n\n}", "title": "" }, { "docid": "b4891ebd4b2253111bbc2a39ab563723", "score": "0.52270013", "text": "function xarpages_treeapi_getprevsibling($args)\n{\n // Expand the arguments.\n extract($args);\n\n // Database.\n $dbconn = xarDBGetConn();\n\n if ($id <> 0) {\n // Insert point is a real item.\n $query = \"SELECT \n parent.$idname\n FROM \n $tablename AS node, \n $tablename AS parent \n WHERE \n parent.xar_right = node.xar_left - 1\n AND \n node.$idname = ?\";\n // return result\n if (!$result->EOF) {\n list($pid) = $result->fields;\n }\n if (isset($pid)) {\n return $pid;\n } else {\n return;\n }\n } else {\n // Insert point is the virtual root.\n // Virtual root has no siblings\n return;\n }\n}", "title": "" }, { "docid": "36f0ce32b9dea197074d38e45ce0095a", "score": "0.5208852", "text": "public function getLeafTreeIdByLeafId ($leafId,$type=2)\r\n\r\n\t{\r\n\r\n\t\t$leafTreeId\t= '';\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t$query = $this->db->query(\"SELECT tree_id FROM teeme_leaf_tree WHERE leaf_id = '\".$leafId.\"' AND type='\".$type.\"'\");\r\n\r\n\r\n\r\n\t\tif($query->num_rows() > 0)\r\n\r\n\t\t{\r\n\r\n\t\t\tforeach ($query->result() as $row)\r\n\r\n\t\t\t{\t\r\n\r\n\t\t\t\t$leafTreeId = $row->tree_id;\t\t\t\t\t\r\n\r\n\t\t\t}\t\t\t\t\r\n\r\n\t\t}\t\t\r\n\r\n\t\treturn $leafTreeId;\t\r\n\r\n\t}", "title": "" }, { "docid": "81ad82c3d7a3925bb0870d85b32273a7", "score": "0.52009815", "text": "function getElementId();", "title": "" }, { "docid": "88df556ace133c16ceb18c02c38b55f8", "score": "0.5197414", "text": "function testGetPath(){\n $this->_fillAnyIdTree(2);\n \n // test empty tree\n $this->assertEquals(array(),$this->baobab->getPath(-1));\n \n $this->_fillGenericTree($this->base_tree);\n \n // test root\n $this->assertEquals(array(array(\"id\"=>5)),$this->baobab->getPath(5));\n $this->assertEquals(array(5),$this->baobab->getPath(5,NULL,TRUE));\n \n // test generic node\n $this->assertEquals(array(array(\"id\"=>5),array(\"id\"=>3),array(\"id\"=>4)),$this->baobab->getPath(4));\n $this->assertEquals(array(5,3,4),$this->baobab->getPath(4,NULL,TRUE));\n $this->assertEquals(array(5,3,4),$this->baobab->getPath(4,array(),TRUE));\n $this->assertEquals(array(5,3,4),$this->baobab->getPath(4,array(\"id\"),TRUE));\n \n $this->assertEquals(array(\n array(\"id\"=>5,\"lft\"=>1),\n array(\"id\"=>3,\"lft\"=>2),\n array(\"id\"=>4,\"lft\"=>3)\n ),\n $this->baobab->getPath(4,\"lft\"));\n \n $this->assertEquals(array(\n array(\"id\"=>5,\"lft\"=>1),\n array(\"id\"=>3,\"lft\"=>2),\n array(\"id\"=>4,\"lft\"=>3)\n ),\n $this->baobab->getPath(4,array(\"lft\")));\n \n $this->assertEquals(array(\n array(\"id\"=>5,\"lft\"=>1),\n array(\"id\"=>3,\"lft\"=>2),\n array(\"id\"=>4,\"lft\"=>3)\n ),\n $this->baobab->getPath(4,array(\"lft\",\"id\")));\n }", "title": "" }, { "docid": "1280453ccb184f1434b1bb7791aae2cb", "score": "0.51710963", "text": "function getId();", "title": "" }, { "docid": "1280453ccb184f1434b1bb7791aae2cb", "score": "0.51710963", "text": "function getId();", "title": "" }, { "docid": "1280453ccb184f1434b1bb7791aae2cb", "score": "0.51710963", "text": "function getId();", "title": "" }, { "docid": "de42bb5d2035352d6bb98bc37926816b", "score": "0.5152705", "text": "public function getNodeIdsByTreeId($treeId)\r\n\r\n\t{\r\n\r\n\t\r\n\r\n\t\t\r\n\r\n\t\t$arrIdDetails = array();\r\n\r\n\t\tif($treeId != NULL)\r\n\r\n\t\t{\r\n\r\n\t\t\t// Get information of particular document\r\n\r\n\t\t\t$query = $this->db->query('SELECT id FROM teeme_node WHERE treeIds='.$treeId);\r\n\r\n\t\t\tif($query->num_rows() > 0)\r\n\r\n\t\t\t{\t\t\t\t\r\n\r\n\t\t\t\tforeach ($query->result() as $nodeData)\r\n\r\n\t\t\t\t{\t\r\n\r\n\t\t\t\t\t$arrIdDetails[] = $nodeData->id;\t\t\t\t\t\t\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn $arrIdDetails;\r\n\r\n\t}", "title": "" }, { "docid": "5aeb1b862f23ff9c317161477dccf98e", "score": "0.5152035", "text": "function getFirstChildId( $sel_id )\r\n {\r\n return $this->ptrees[$sel_id];\r\n }", "title": "" }, { "docid": "bec1fa99bcb019252b60bd2bd6f0e0ba", "score": "0.5150538", "text": "public function getId()\n {\n if ($this->parent) {\n $id = $this->parent->getid() . '_' . $this->name;\n } else {\n $id = $this->name;\n }\n return $id;\n }", "title": "" }, { "docid": "5908074b568437d953b95f92c78e03cc", "score": "0.51476353", "text": "private function getPathId($now, $parentId) {\n// not used if count($dir) == 1 and '' is the last\n $userId = session('userId');\n if ($now == '') {\n $nows = Folder::where('u_id', $userId)->where('folderName', 'home')->where('if_deletable', false)->get();\n if(count($nows) == 1) {\n return $nows[0]->f_id;\n } else {\n return false;\n }\n } elseif ($now == '.') {\n return $parentId;\n } elseif ($now == '..') {\n $grandParent = Folder::find($parentId)->parent_id;\n return $grandParent;\n } else {\n $nows = Folder::where('u_id', $userId)->where('folderName', $now)->where('parent_id', $parentId)->get();\n if(count($nows) == 1) {\n return $nows[0]->f_id;\n } else {\n return false;\n }\n }\n }", "title": "" }, { "docid": "55a93cc5ead4b45f9a0dc595800a98a3", "score": "0.5146036", "text": "function getIdFromTrackNo($value){\n $return_value = explode(\"/\", $value);\n $totalArray = count($return_value);\n $return_id = $return_value[$totalArray - 1];\n settype($return_id, 'integer');\n\n return $return_id;\n}", "title": "" }, { "docid": "38dc466bf4849b644cd4d1b3b2829ad0", "score": "0.51334405", "text": "function getParentdbID( $parent_id, $menuItems) \n{\n $parent_db_id = $parent_id; \n \n if(!empty($menuItems)) {\n \n foreach ($menuItems as $item) {\n \n if($item->object_id == $parent_id)\n $parent_db_id = $item->ID;\n }\n }\n \n return $parent_db_id; \n}", "title": "" }, { "docid": "2451ab54036e9324f03100d61cc4a246", "score": "0.51277804", "text": "public function getNodeIdByLeafId($leafId)\r\n\r\n\t{\r\n\r\n\t\t$query = $this->db->query('SELECT id FROM teeme_node WHERE leafId='.$leafId);\t\t\t\t\t\t\t\t\r\n\r\n\t\tforeach($query->result() as $row)\r\n\r\n\t\t{\r\n\r\n\t\t\t$nodeId = $row->id;\r\n\r\n\t\t}\t\r\n\r\n\t\treturn $nodeId; \t\t\r\n\r\n\t}", "title": "" }, { "docid": "531741adbf3f67b3370aef6c8af199be", "score": "0.5123928", "text": "public function findNode(&$root, $path);", "title": "" }, { "docid": "ab622752ad5e2a58dcc05d10c1808506", "score": "0.5115127", "text": "function getId(): string;", "title": "" }, { "docid": "26ff0ce93b85c109bfcb75e8a3578530", "score": "0.5103323", "text": "function getDetailPageId(){\n\t$path = $_SERVER['REQUEST_URI'];\n\t$matched = preg_match('/\\/([0-9]+)/', $path, $matches);\n\tif(!$matched)\n\t\treturn 0;\n\telse {\n\t\treturn $matches[1];\n\t}\n\t\n}", "title": "" }, { "docid": "5871c19892f5f7e6e4a79cd6a2d78c75", "score": "0.5102771", "text": "function tree_delete_rec($id){\r\n\tglobal $CFG;\r\n\r\n $deleted = array();\r\n if (empty($id)) return $deleted; \r\n\r\n\t// echo \"deleting $id<br/>\";\r\n\t\r\n\t// getting all subnodes to delete if is tree.\r\n\tif ($istree){\r\n \t$sql = \"\r\n \t SELECT \r\n \t id\r\n \t FROM \r\n \t {$CFG->prefix}{$table}brainstorm_operatordata\r\n \t WHERE\r\n \t operatorid = 'hierarchize' AND\r\n \t itemdest = {$id}\r\n \t\";\r\n \r\n \t// deleting subnodes if any\r\n \tif ($subs = get_record_sql($sql)) {\r\n \t\tforeach($subs as $aSub){\r\n \t\t\t$deleted = array_merge($deleted, tree_delete_rec($aSub->id));\r\n \t\t}\r\n \t}\r\n }\r\n\t// deleting current node\r\n\tdelete_records('brainstorm_operatordata', 'id', $id); \r\n\t$deleted[] = $id;\r\n\treturn $deleted;\r\n}", "title": "" }, { "docid": "58a55985738cfb27de126b890eefcbbb", "score": "0.5102144", "text": "private function root_id() {\n\t\tif (empty($this->root_id)) $this->root_id = $this->get_storage()->about->get()->getRootFolderId();\n\t\treturn $this->root_id;\n\t}", "title": "" }, { "docid": "77d19ca5fb3fed1a6eb61ced65a5a5c7", "score": "0.5101048", "text": "static function resolve($root, $path)\n\t{\n\t\t$parent = $root;\n\t\t$tokens = explode(mxCellPath::$PATH_SEPARATOR, $path);\n\t\t\n\t\tfor ($i=0; $i<sizeof($tokens); $i++)\n\t\t{\n\t\t\t$parent = $parent->getChildAt($tokens[$i]);\n\t\t}\n\t\t\n\t\treturn $parent;\n\t}", "title": "" }, { "docid": "090654679a2cdecd937956c4e34b2165", "score": "0.5100664", "text": "public function getID ();", "title": "" }, { "docid": "7b452c70821d24fb0b4af2bb44224e14", "score": "0.5094997", "text": "function levelOf($id)\n {\n $ret = 0;\n while ((isset($this->categoryName[$id]['parent_id'])) && ($this->categoryName[$id]['parent_id'] != 0)) {\n $ret++;\n $id = $this->categoryName[$id]['parent_id'];\n }\n return $ret;\n }", "title": "" }, { "docid": "1561c2917d1d324e42e12b08f2daaa10", "score": "0.5086327", "text": "protected function getObjIdPaths($id,$list)\n\t{\n\n\t\t$str = $id;\n\t\t$ret = array();\n\n\t\tif (count($list[\"object_id\"]) > 0)\n\t\t{\n\t\t\n\t\t\t$keys = array_keys($list[\"object_id\"],$id);\n\t\t\n\t\t\tforeach ($keys AS $key)\n\t\t\t{\n\t\t\n\t\t\t\t$pid = $list[\"parent_id\"][$key];\n\t\t\n\t\t\t\tif ($pid==0) $ret[] = $str.\",0\";\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t$arr = $this->getObjIdPaths($pid,$list);\t\t\t\t\n\n\t\t\t\t\tforeach ($arr AS $e) $ret[] = $str.\",\".$e;\n\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\n\t\t}\n\t\t\t\n\t\treturn $ret;\n\n\t}", "title": "" }, { "docid": "e7b426ecc604d07c520d727b08d462ff", "score": "0.5082594", "text": "function id($x) {\n return $x;\n}", "title": "" }, { "docid": "58e20c55a802dd5704f79c95a9b6d551", "score": "0.50824785", "text": "public function &getElementByPath($path)\n\t{\n\t\t$split = explode('/', trim($path, '/'));\n\t\t$ref = &$this;\n\t\tforeach ($split AS $item)\n\t\t{\n\t\t\tif (!$ref->childExists($item))\n\t\t\t{\n\t\t\t\t$null = null;\n\t\t\t\t$ref = &$null;\n\t\t\t\treturn ($ref);\n\t\t\t}\n\t\t\t$ref = &$ref->$item;\n\t\t\t$ref =& $ref[0];\n\t\t}\n\n\t\treturn ($ref);\n\t}", "title": "" }, { "docid": "59d110b778b3c82d1e2a0259a18269d3", "score": "0.50772643", "text": "function _fillAnyIdTree($tree_id){\n $t=new Baobab\\Baobab(self::$pdo, self::$forest_name,$tree_id);\n $t->clean();\n Baobab\\Forest::import(self::$pdo,self::$forest_name,'[{'.\n ($tree_id ? '\"tree_id\":'.$tree_id .',' : '').\n ' \"fields\":[\"id\",\"lft\",\"rgt\"],\n \"values\":\n [100001,1,14,[\n [100002,2,7,[\n [100003,3,4,[]],\n [100004,5,6,[]]\n ]],\n [100005,8,13,[\n [100006,9,10,[]],\n [100007,11,12,[]]\n ]]\n ]]\n }]'\n );\n }", "title": "" }, { "docid": "c0fe01c6d6aebb5ad70942584d821941", "score": "0.5076201", "text": "function brainstorm_get_subtree_list($table, $id){\r\n $res = get_records_menu($table, 'fatherid', $id);\r\n $ids = array();\r\n if (is_array($res)){\r\n foreach(array_keys($res) as $aSub){\r\n $ids[] = $aSub;\r\n $subs = brainstorm_get_subtree_list($table, $aSub);\r\n if (!empty($subs)) $ids[] = $subs;\r\n }\r\n }\r\n return(implode(',', $ids));\r\n}", "title": "" }, { "docid": "1a70dbc35a1fe2cb6349d8bcfa2be26d", "score": "0.506907", "text": "private function getId() {\n\n $id = isset($this->url_elements[1]) && is_numeric($this->url_elements[1])\n ?intval($this->url_elements[1])\n :false;\n $additional_id = isset($this->url_elements[3]) && is_numeric($this->url_elements[3])\n ?intval($this->url_elements[3])\n :false;\n\n if ($additional_id || isset($this->parameters['parent_itemtype'])) {\n $this->parameters['parent_id'] = $id;\n $id = $additional_id;\n }\n\n return $id;\n }", "title": "" }, { "docid": "8527e624a8b29faa6c79fbbbff716591", "score": "0.5063841", "text": "public function getGrandparentID($parentName,$parentID) {\n $retval=null;\n//var_dump($parentName);\n // Foreign key in table one step up will contain the grandparent ID\n $modelInstance = call_user_func(array(ucwords($parentName), 'model'));\n $model = $modelInstance->findByPk($parentID);\n $grandparentName = $this->breadcrumbs[array_search($parentName, $this->breadcrumbs)-1].'_fk';\n//var_dump($grandparentName);\n //var_dump($model->project_fk);\n $retval = $model->$grandparentName;\n //var_dump($retval);\n\n return $retval;\n }", "title": "" }, { "docid": "c1cc6ce5b46d0b7a02619063adfd6964", "score": "0.50599134", "text": "public static function getTreePaths()\n {\n //$data = self::orderBy('lft')->pluck('id', 'id')->all();\n $paths = IndividualMatch::selectRaw(\"winner_id,group_concat(id) as path\")\n ->where('winner_id', '>', 0)->groupBy('winner_id')->get();\n $result = [];\n foreach ($paths as $row) {\n foreach (explode(',', $row->path) as $match_id) {\n $result[$row->winner_id][] = $match_id;\n }\n }\n return collect($result)->map(function($path){\n return array_map(function($value){ return $value -1; },$path);\n })->toArray();\n }", "title": "" }, { "docid": "930ca34cb07fafe30e59d298b1ce6207", "score": "0.5055962", "text": "public function getID();", "title": "" }, { "docid": "930ca34cb07fafe30e59d298b1ce6207", "score": "0.5055962", "text": "public function getID();", "title": "" }, { "docid": "1b32efbc286205b46894885a2aec2a7d", "score": "0.5051805", "text": "public function getParentId();", "title": "" }, { "docid": "1b32efbc286205b46894885a2aec2a7d", "score": "0.5051805", "text": "public function getParentId();", "title": "" }, { "docid": "1b32efbc286205b46894885a2aec2a7d", "score": "0.5051805", "text": "public function getParentId();", "title": "" }, { "docid": "1b32efbc286205b46894885a2aec2a7d", "score": "0.5051805", "text": "public function getParentId();", "title": "" }, { "docid": "c6f2bfb6a535a74dab54d1dcca691410", "score": "0.505139", "text": "abstract public function fetchPath( $nodeId );", "title": "" }, { "docid": "04d1b845dd866f10cf67cc919379418a", "score": "0.504792", "text": "abstract protected function id();", "title": "" }, { "docid": "fc386104404a30c17e034bc7dc0d3466", "score": "0.50460273", "text": "public abstract function getID();", "title": "" }, { "docid": "22ead6e4def4214c8b0559b262cac7d9", "score": "0.5040933", "text": "function get_entry($id)\n{\n return get_directory_entry($id);\n}", "title": "" }, { "docid": "5878605f0be69f98d2e39f5bc85ffd34", "score": "0.5030335", "text": "protected function objectPath($id) {\n\n\t\tif (!$id) $path = \"/\";\n\t\telse \n\t\t{\n\n\t\t\t$sql = \"SELECT docmgr.getobjpathname('\".$id.\"','') AS objpath;\";\n\t\t\t$info = $this->DB->single($sql);\n\t\t\t\n\t\t\treturn $info[\"objpath\"];\n\n\t\t}\n\t\t\n\t\treturn $path;\n\t\n\t}", "title": "" }, { "docid": "622128299b354cde6423f2d0cf429a7b", "score": "0.5005847", "text": "function getRecordPath($node, $path) {\n $doc = (is_null($node->ownerDocument)) ? $node : $node->ownerDocument;\n if ($doc->schema) {\n foreach ($doc->schema->rec_ids as $rec_id) {\n if (startswith($path, $rec_id)) {\n #echo \"$path => substr($path, strlen($rec_id))\"; exit();\n $path = ltrim(substr($path, strlen($rec_id)), '/');\n return (object) ['rec_id' => $rec_id, 'path' => $path];\n }\n }\n }\n return (object) ['rec_id' => NULL, 'path' => $path];\n}", "title": "" }, { "docid": "deef30f112d02b7b6ae2b2f35131374b", "score": "0.5003635", "text": "public function get_id();", "title": "" }, { "docid": "dd6cd0605aa84a96ce71cdcd79aa140e", "score": "0.50008845", "text": "public function createNodeId ($path)\n\t{\n\t\treturn sprintf('%u', crc32(str_ireplace('/', '', $path)));\n\t}", "title": "" }, { "docid": "0e0b5ee5569896d5e8f63a0bf5c2aaab", "score": "0.49808747", "text": "function getParent_id()\n {\n\t\tfor ($i = 0; $i < count($this->lineTab); $i++) {\n\t\t\tif ($this->lineTab[$i]['parent_id'] == 0) {\n\t\t\t\treturn $this->lineTab[$i]['id'];\n }\n }\n\t}", "title": "" }, { "docid": "88e0ac46089101e6d4f033366a31e823", "score": "0.49795058", "text": "public static function getId(){\n $data = self::$ci->parentlib->getParentDataFromHeader();\n if ($data instanceof PropUser) {\n $parent_info = self::$ci->parent_model->getParentByUserId($data->getUserId());\n return $parent_info->getParentId();\n }\n return null;\n }", "title": "" }, { "docid": "725d082d7863cfb8fe1ce577c56b0bf0", "score": "0.49728447", "text": "function setID($id) {\n if (!$link = jz_db_connect())\n die (\"could not connect to database.\");\n \n $path = jz_db_escape($this->getPath(\"String\"));\n $mid = jz_db_escape($id);\n $res = jz_db_query($link, \"UPDATE jz_nodes SET my_id='${mid}' WHERE path = '$path'\");\n if ($res === false) { // bad ID; could be a collision.\n jz_db_close($link);\n return false;\n }\n \n if ($this->isLeaf()) {\n $res = jz_db_query($link, \"UPDATE jz_tracks SET my_id='${mid}' WHERE path = '$path'\");\n }\n \n $this->myid = $id;\n jz_db_close($link);\n return true;\n}", "title": "" }, { "docid": "725d082d7863cfb8fe1ce577c56b0bf0", "score": "0.49728447", "text": "function setID($id) {\n if (!$link = jz_db_connect())\n die (\"could not connect to database.\");\n \n $path = jz_db_escape($this->getPath(\"String\"));\n $mid = jz_db_escape($id);\n $res = jz_db_query($link, \"UPDATE jz_nodes SET my_id='${mid}' WHERE path = '$path'\");\n if ($res === false) { // bad ID; could be a collision.\n jz_db_close($link);\n return false;\n }\n \n if ($this->isLeaf()) {\n $res = jz_db_query($link, \"UPDATE jz_tracks SET my_id='${mid}' WHERE path = '$path'\");\n }\n \n $this->myid = $id;\n jz_db_close($link);\n return true;\n}", "title": "" }, { "docid": "c495ad42b524b6683fe16b62a07d5d3f", "score": "0.4972087", "text": "function tskGetParentRecord($id) {\r\n $database = stlGlobal('database');\r\n $database->query(\" \r\n SELECT\r\n *\r\n FROM \r\n tasks\r\n WHERE \r\n parent_id = ? \r\n \");\r\n $database->bind(1, $id);\r\n $row = $database->single();\r\n return $row;\r\n}", "title": "" }, { "docid": "594ad22647878b9ad799b7d332d1d57b", "score": "0.4969917", "text": "function WBC3_firehose_get_parent_id() {\n\t$parent_id = !empty( $_GET['parent_id'] ) ? intval( $_GET['parent_id'] ) : '';\n\treturn $parent_id;\n}", "title": "" }, { "docid": "b12af5690b8fbd886e17a96fdd49ab7a", "score": "0.49627194", "text": "public function getPath()\n {\n if (parent::getPath() !== null) {\n return parent::getPath() . ',' . $this->getId();\n }\n else {\n return $this->getId();\n }\n }", "title": "" }, { "docid": "856bde5b7f7e33e262a09bdba6b42548", "score": "0.49612123", "text": "public function getPathIds(){\n\t\t$ids = $this->getData('path_ids');\n\t\tif (is_null($ids)) {\n\t\t\t$ids = explode('/', $this->getPath());\n\t\t\t$this->setData('path_ids', $ids);\n\t\t}\n\t\treturn $ids;\n\t}", "title": "" }, { "docid": "41c72d8a304d44908c33e866fcd3b9ae", "score": "0.4958708", "text": "function getPath($id, $separator = ' &raquo; ', $showlinks = false)\n {\n global $sids, $PMF_CONF;\n\n $ids = $this->getNodes($id);\n $num = count($ids);\n\n $temp = array();\n $catid = array();\n $desc = array();\n $breadcrumb = array();\n\n for ($i = 0; $i < $num; $i++) {\n $temp[] = $this->treeTab[$this->getLineCategory($ids[$i])]['name'];\n $catid[] = $this->treeTab[$this->getLineCategory($ids[$i])]['id'];\n $desc[] = $this->treeTab[$this->getLineCategory($ids[$i])]['description'];\n }\n if (isset($this->treeTab[$this->getLineCategory($id)]['name'])) {\n $temp[] = $this->treeTab[$this->getLineCategory($id)]['name'];\n $catid[] = $this->treeTab[$this->getLineCategory($id)]['id'];\n $desc[] = $this->treeTab[$this->getLineCategory($id)]['description'];\n }\n\n foreach ($temp as $k => $category) {\n if (isset($PMF_CONF['mod_rewrite']) && $PMF_CONF['mod_rewrite'] == true) {\n $breadcrumb[] = sprintf('<a title=\"%s\" href=\"category%s.html\">%s</a>', $desc[$k], $catid[$k], $category);\n } else {\n $breadcrumb[] = sprintf('<a title=\"%s\" href=\"?%saction=show&amp;cat=%s\">%s</a>', $desc[$k], $sids, $catid[$k], $category);\n }\n }\n\n if ($showlinks) {\n return implode($separator, $breadcrumb);\n } else {\n return implode($separator, $temp);\n }\n\t}", "title": "" }, { "docid": "325bdbe571576c0427f12aef3759fd60", "score": "0.49562287", "text": "function getWikiId()\n\t{\n\t\treturn $this->getParentId();\n\t}", "title": "" }, { "docid": "737f5de66278795cda4e1cb62f7feb1a", "score": "0.49533382", "text": "function getParentId($parent_name) {\n\tglobal $adb;\n\tif ($parent_name == '' || $parent_name == null) {\n\t\t$parent_id = 0;\n\t}\n\t//For now it have conditions only for accounts and contacts, if needed can add more\n\t$relatedTo = explode(':', $parent_name);\n\t$parent_module = $relatedTo[0];\n\t$parent_module = trim($parent_module, ' ');\n\t$parent_name = $relatedTo[3];\n\t$parent_name = trim($parent_name, ' ');\n\t$num_rows = 0;\n\t$mod = CRMEntity::getInstance($parent_module);\n\tif ($parent_module == 'Contacts') {\n\t\t$query = 'select crmid\n\t\t\tfrom vtiger_contactdetails, '.$mod->crmentityTable.\" as vtiger_crmentity\n\t\t\tWHERE concat(lastname,' ',firstname)=? and vtiger_crmentity.crmid =vtiger_contactdetails.contactid and vtiger_crmentity.deleted=0\";\n\t\t$result = $adb->pquery($query, array($parent_name));\n\t\t$num_rows = $adb->num_rows($result);\n\t} elseif ($parent_module == 'Accounts') {\n\t\t$query = 'select crmid\n\t\t\tfrom vtiger_account, '.$mod->crmentityTable.' as vtiger_crmentity\n\t\t\tWHERE accountname=? and vtiger_crmentity.crmid =vtiger_account.accountid and vtiger_crmentity.deleted=0';\n\t\t$result = $adb->pquery($query, array($parent_name));\n\t\t$num_rows = $adb->num_rows($result);\n\t} else {\n\t\t$num_rows = 0;\n\t}\n\tif ($num_rows == 0) {\n\t\t$parent_id = 0;\n\t} else {\n\t\t$parent_id = $adb->query_result($result, 0, 'crmid');\n\t}\n\treturn $parent_id;\n}", "title": "" }, { "docid": "9b0b93e92e0071e5b7d1d5c5f5b8e252", "score": "0.4947678", "text": "public function get_id ()\n {\n $id = $this->xml_id;\n if ($this->later_hands) {\n $id .= '?hands=XYZ';\n }\n if ($this->sub_id > 1) {\n $id .= '#' . $this->sub_id;\n }\n return $id;\n }", "title": "" }, { "docid": "41e5703c051139d2d8ce8b3f53b3b827", "score": "0.4945657", "text": "function submenu_get_children_ids($id, $items)\n{\n $ids = wp_filter_object_list($items, array('menu_item_parent' => $id), 'and', 'ID');\n\n foreach ($ids as $id) {\n $ids = array_merge($ids, submenu_get_children_ids($id, $items));\n }\n\n return $ids;\n}", "title": "" }, { "docid": "67f19a02c2e90969da37477737986705", "score": "0.4943142", "text": "function getChildrenIds($sid){\n global $adminDB;\n global $connID;\n $ids = '';\n $sql = \"select * from tb_types_work where pid='\".$sid.\"'\";\n if($types = $adminDB->executeSQL($sql,$connID)){\n foreach($types as $type){\n $ids .= ','.$type['id'];\n $ids .= getChildrenIds($type['id']);\n }\n }\n return $ids;\n}", "title": "" }, { "docid": "1cbcd931ae3090bcc2de4107a78ddf35", "score": "0.49410915", "text": "private function _makeSubpath($id, $depth = 3) {\r\n $hash = md5($id);\r\n $path = '';\r\n \r\n $depth = ($depth <= 0) ? 2 : ( ($depth >= 32) ? 31 : $depth - 1);\r\n \r\n foreach( range(0, $depth) as $n ) {\r\n $path .= substr($hash, $n, 2);\r\n $path .= ($n == $depth) ? '' : '/';\r\n }\r\n \r\n return $path;\r\n }", "title": "" }, { "docid": "ca682bf6157b8f3baeb6011811ffa3ea", "score": "0.4940849", "text": "function get_id($expr){\n\n if (!empty($expr)) {\n\n //Lets Explode the share to get the REc_id\n @$ex1= explode('-', $expr);\n @$postid= $ex1[0];\n \n\n return $postid;//the extracted post id from the statemnet\n } \n\n\n}", "title": "" }, { "docid": "81a5d466bb8974eb7df1bb03a1516cea", "score": "0.49399924", "text": "function wof_utils_find_id($id, $more=array()){\n\n\t\t$repo_path = wof_utils_id2repopath($id);\n\t\t$root_dirs = array(\n\t\t\twof_utils_pending_dir('data'),\n\t\t\t$repo_path\n\t\t);\n\t\tif ($more['root_dirs']) {\n\t\t\t$root_dirs = $more['root_dirs'];\n\t\t}\n\n\t\tforeach ($root_dirs as $root) {\n\t\t\t$path = wof_utils_id2abspath($root, $id, $more);\n\t\t\tif (file_exists($path)) {\n\t\t\t\treturn $path;\n\t\t\t}\n\t\t}\n\n\t\t$rsp = wof_repo_list();\n\t\tif (! $rsp['ok']) {\n\t\t\treturn null;\n\t\t}\n\t\t$repos = $rsp['repos'];\n\n\t\tforeach ($repos as $repo) {\n\t\t\t$root = str_replace('__REPO__', $repo, $GLOBALS['cfg']['wof_data_dir']);\n\t\t\t$path = wof_utils_id2abspath($root, $id, $more);\n\t\t\tif (file_exists($path)) {\n\t\t\t\treturn $path;\n\t\t\t}\n\t\t}\n\n\t\treturn null; // Not found!\n\t}", "title": "" }, { "docid": "df49f411df68a2c63d70eaeffb3ccef7", "score": "0.49310362", "text": "public function getNodeLeafIdsByTreeId($treeId)\r\n\r\n\t{\r\n\r\n\t\t$arrIdDetails = array();\r\n\r\n\t\tif($treeId != NULL)\r\n\r\n\t\t{\r\n\r\n\t\t\t// Get information of particular document\r\n\r\n\t\t\t$query = $this->db->query('SELECT \r\n\r\n\t\t\ta.id as teemLeafId, b.id as teemeNodeId FROM teeme_leaf a, teeme_node b WHERE a.id=b.leafId AND b.treeIds='.$treeId);\r\n\r\n\t\t\tif($query->num_rows() > 0)\r\n\r\n\t\t\t{\r\n\r\n\t\t\t\t$i = 0;\t\r\n\r\n\t\t\t\tforeach ($query->result() as $leafData)\r\n\r\n\t\t\t\t{\t\t\t\r\n\r\n\t\t\t\t\t$arrIdDetails[$i]['nodeId'] = $leafData->teemeNodeId;\r\n\r\n\t\t\t\t\t$arrIdDetails[$i]['leafId'] = $leafData->teemLeafId;\r\n\r\n\t\t\t\t\t$i++;\t\t\t\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn $arrIdDetails;\r\n\r\n\t}", "title": "" }, { "docid": "a50be00a4739a4167d6fef89e60eb8d5", "score": "0.49273765", "text": "function getIdName();", "title": "" }, { "docid": "5aecb3fe854673f83351f0b43c2a60bb", "score": "0.49177054", "text": "function getNicePathFromId( $sel_id, $title, $funcURL, $path = \"\" )\r\n {\r\n $parentid = $this->arr[$sel_id][$this->pid];\r\n $path = \"<a href='\" . $funcURL . \"&\" . $this->id . \"=\" . $sel_id . \"'>\" . htmlSpecialChars( $this->arr[$sel_id][$title], ENT_QUOTES ) . \"</a>&nbsp;:&nbsp;\" . $path . \"\";\r\n if ( $parentid == 0 ) {\r\n return $path;\r\n }\r\n return $this->getNicePathFromId( $parentid, $title, $funcURL, $path );\r\n }", "title": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "836d58795909042ae53b78c8129b9b90", "score": "0.0", "text": "public function destroy($id)\n\t{\n $deliveryNote = DeliveryNote::find($id);\n $deliveryNote->delete();\n\n }", "title": "" } ]
[ { "docid": "440048b39bf8ab60c81c3f27962faaf1", "score": "0.69409096", "text": "public function deleteResource(PersistentResource $resource);", "title": "" }, { "docid": "d9f10892d48fdfd7debb2a97681f0912", "score": "0.6659381", "text": "public function destroy(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "d9f10892d48fdfd7debb2a97681f0912", "score": "0.6659381", "text": "public function destroy(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "67073eb28b6fb2932d1e4a3ff481c114", "score": "0.6605598", "text": "public function delete(){\n $this->getResource()->delete();\n }", "title": "" }, { "docid": "845b5beec29f48d7ee3f0219ecebfba1", "score": "0.65896255", "text": "public function deleteResource($resource) {\n $this->elasticSearch->deleteFromResourceIndices($resource);\n $this->neo4J->deleteResource($resource);\n $this->cStore->deleteResource($resource, $this->user);\n }", "title": "" }, { "docid": "3198b8a0f2716ad40da9a8a62bebf688", "score": "0.65715295", "text": "protected function remove_storage()\n {\n }", "title": "" }, { "docid": "6898a7b9ab4b74e4d06289f6390e1106", "score": "0.65318215", "text": "public function delete(StorageInterface $storage);", "title": "" }, { "docid": "071dbac02a520ad863c7be29f0165ebb", "score": "0.6207335", "text": "public function remove(array $storageOptions): void;", "title": "" }, { "docid": "1a8d90c6745827f2dc8e62f5e38af97d", "score": "0.61857986", "text": "public function delete(){\n Storage::delete($this->url);\n parent::delete();\n }", "title": "" }, { "docid": "06641d3c5ef56f0cfccc1a0c7c03e6c0", "score": "0.61854947", "text": "public function dropResource($sResource)\n {\n $this->_oDatabase->query(\"DELETE FROM `acl_resources` WHERE `resource` = \". $sResource);\n }", "title": "" }, { "docid": "e0c513c82c944008d275fc6f457afb42", "score": "0.6123187", "text": "public function forceDeleted(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "aa0ee3d5768ef76734de9404aeeed4de", "score": "0.6099325", "text": "public function destroy($id)\n {\n $image = Image::findOrFail($id);\n if ($image != null) {\n \n //Delete from localStorage\n if($image->productImage != 'noImage.jpg'){\n echo $image->productImage;\n Storage::delete('public/productImages'.$image->productImage);\n }\n\n //Delete from db\n $isDeleted = $image->delete();\n if ($isDeleted) {\n return new ImageResource($image);\n }\n }\n }", "title": "" }, { "docid": "337a108f893dd3105089822c4c95d7f1", "score": "0.5992111", "text": "public function destroy()\n\t{\n\t\tif ($this->get('type') == 'file')\n\t\t{\n\t\t\t$path = $this->filespace() . '/' . $this->get('path');\n\n\t\t\t// Remove the file\n\t\t\tif (\\Filesystem::exists($path))\n\t\t\t{\n\t\t\t\tif (!\\Filesystem::delete($path))\n\t\t\t\t{\n\t\t\t\t\t$this->addError(Lang::txt('Failed to remove file from filesystem.'));\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Attempt to delete the record\n\t\treturn parent::destroy();\n\t}", "title": "" }, { "docid": "94b0ec35305eb8fad8a373d42939f500", "score": "0.5987054", "text": "public function delete($asset) {\n // Load asset from file\n $assetObj = $this->getAssetObject($asset);\n $basepath = $assetObj->getBasePath();\n \n $date = date('Y/m/d');\n $trashDir = 'Trash/' . $date . '/' . $basepath;\n $this->storage->rename($basepath, $trashDir);\n }", "title": "" }, { "docid": "4659089669faba669cd71dc10ffa47b6", "score": "0.5968648", "text": "public function delete() {\n File::delete([\n $this->thumb_url,\n $this->url\n ]);\n\n parent::delete();\n }", "title": "" }, { "docid": "8a7e8903d92be4e894322a5817dbad9f", "score": "0.5957195", "text": "public function destroy($id)\n {\n $get=Frequently::where('id',$id)->first();\n if($get->photo!=null&&file_exists(\"/storage/$get->photo\")){\n unlink('storage/'.$get->photo);\n }\n $get->delete();\n return redirect()->route('listFrequently');\n }", "title": "" }, { "docid": "6089ad4900b0dc7f7bdde4a847a6d314", "score": "0.59349823", "text": "public function destroy(Resource $resource)\n {\n $resource->delete();\n\n return redirect(route('resources.index'))->withSuccess('Resource deleted!');\n }", "title": "" }, { "docid": "88627a294f0a77deac705692a92dc57d", "score": "0.5933836", "text": "function removeAsset($asset);", "title": "" }, { "docid": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "title": "" }, { "docid": "7c8dd317ed16ed33561bf244b7a39a81", "score": "0.59182364", "text": "public static function remove($storageId) {\n\t\t$storageId = self::adjustStorageId($storageId);\n\t\t$numericId = self::getNumericStorageId($storageId);\n\n\t\t$query = \\OC::$server->getDatabaseConnection()->getQueryBuilder();\n\t\t$query->delete('storages')\n\t\t\t->where($query->expr()->eq('id', $query->createNamedParameter($storageId)));\n\t\t$query->execute();\n\n\t\tif (!is_null($numericId)) {\n\t\t\t$query = \\OC::$server->getDatabaseConnection()->getQueryBuilder();\n\t\t\t$query->delete('filecache')\n\t\t\t\t->where($query->expr()->eq('storage', $query->createNamedParameter($numericId)));\n\t\t\t$query->execute();\n\t\t}\n\t}", "title": "" }, { "docid": "21f318a197bf93b145035fb8caedb3ab", "score": "0.59098935", "text": "public function removeFromFileSystem()\n {\n if(file_exists($this->getPath()))\n {\n unlink($this->getPath());\n }\n }", "title": "" }, { "docid": "b4727d3d1c5501b65f420aa3f48791ff", "score": "0.58977133", "text": "protected function remove()\n {\n $firstPartOfToPath = $this->getFirstPartOfToPath();\n $this->filesystem->remove($firstPartOfToPath);\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": "e06a00343d3476ccc18ba87927451f89", "score": "0.5876221", "text": "public function delete(ApiStorageEntityInterface $entity);", "title": "" }, { "docid": "316ebf04cbd413c84ac91b72d0c2280c", "score": "0.5865566", "text": "public function deleting(ResourceType $resourceType)\n {\n $resourceType->resource()->delete();\n }", "title": "" }, { "docid": "4b22b7ee3a57517ec9e3b86bea1578c9", "score": "0.5856808", "text": "public function clearStorage();", "title": "" }, { "docid": "8a2e3c68dac3607599797c5afb0c4524", "score": "0.5854834", "text": "abstract public function cleanUpStorage();", "title": "" }, { "docid": "5620baf89e1396aceeb7cce13057e8b9", "score": "0.58456767", "text": "public function destroy($id_resource)\n {\n try{\n \n $resource =Resource::find($id_resource);\n if (!$resource) {\n return response()->json(['No existe el recurso'],404);\n }\n \n $resource->delete();\n return response()->json(['Eliminado' => $resource],200);\n\n }catch(\\Exception $e){\n \n Log::critical(\"ERROR: {$e->getCode()} , {$e->getLine()} , {$e->getMessage()}\");\n return response('Algo esta mal',500);\n }\n }", "title": "" }, { "docid": "8a4336994597b3922649b91455f16a8d", "score": "0.5844985", "text": "public function destroy() {\n\t\treturn unlink($this->get_full_path());\n\t}", "title": "" }, { "docid": "8e57a7fc437eb62f67f1d9cd7ae885ee", "score": "0.5843844", "text": "public function unpublishResource(Resource $resource) {\n\t\t$resources = $this->resourceRepository->findSimilarResources($resource);\n\t\tif (count($resources) > 1) {\n\t\t\treturn;\n\t\t}\n\t\t$this->unpublishFile($this->getRelativePublicationPathAndFilename($resource));\n\t}", "title": "" }, { "docid": "4bf50ed1e92ba2fad6f5cb3560a301f7", "score": "0.5826607", "text": "public function remove(Claim $claim);", "title": "" }, { "docid": "046d776961d2a15e2495584855d48a8c", "score": "0.58256453", "text": "public function deleteFoto()\n {\n Storage::delete($this->foto);\n }", "title": "" }, { "docid": "a193f7ebf258b5fb63b8919a07678081", "score": "0.5821789", "text": "public function removeAll ($storage) {}", "title": "" }, { "docid": "f1670d793aee4ebdf19789ddbb1730d1", "score": "0.57853824", "text": "public function destroy($id)\n {\n // dd($id);\n $removebook = Book::find($id);\n\n if(!is_null($removebook))\n {\n @unlink(storage_path('app/public/images/companylogo/'.$removebook->image));\n $removebook->delete();\n } \n return redirect()->route('books.list')->with('success','Book is removed successfully'); \n }", "title": "" }, { "docid": "462f1b88278534828f7e1002b13388bf", "score": "0.57749605", "text": "public function destroy($id)\n {\n $get=Service::where('id',$id)->first();\n if($get->thumbnail!=null&&file_exists('/storage/'.$get->thumbnail)){\n unlink('storage/'.$get->thumbnail);\n }\n if($get->attachment!=null&&file_exists('/storage/'.$get->thumbnail)){\n unlink('storage/'.$get->attachment);\n }\n \n Service::where('id',$id)->delete();\n return redirect()->route('listService');\n }", "title": "" }, { "docid": "f187335ddc0f49e204616fbcfc6e8139", "score": "0.5760281", "text": "public function deleted(Resource $resource)\n {\n $this->deleteCacheDepartments();\n }", "title": "" }, { "docid": "b997ffc3924d4e81aa05e087ce2f37dc", "score": "0.5745426", "text": "public function destroy($id)\n {\n $myfile=File::findOrFail($id);\n if(Storage::delete('public/'.$myfile->photo)){\n File::destroy($id);\n }\n return redirect('/myfiles');\n }", "title": "" }, { "docid": "5a5ce61559fc6f08d9047302980dd0f9", "score": "0.57400835", "text": "public function delete(Resource\\ResourceId $resourceId)\n {\n $this->crudRepositoryAdapter->deleteResource($this->resourceType, $resourceId);\n }", "title": "" }, { "docid": "403fd7ff4e999d70f9d955047841a088", "score": "0.5724649", "text": "public function destroy($id)\n {\n $suplier = Suplier::find($id);\n $image = $suplier->photo;\n if(file_exists($image)){\n unlink($image);\n }\n $suplier->delete($id);\n }", "title": "" }, { "docid": "19a699963d1483df50147a87c9beba20", "score": "0.57240057", "text": "public function destroy($id)\n {\n $photo = Photo::findOrFail($id);\n $filePath = 'public/images/album'.$photo->album_id.'/'.$photo->photo;\n Storage::delete($filePath);\n\n\n if($photo->delete()) {\n return new PhotosResource($photo);\n }\n }", "title": "" }, { "docid": "4ac32e6ca1ac9c257606a18e27a296d7", "score": "0.57237166", "text": "public function destroy($id,Request $request)\n {\n\n $attraction_id=$request->input('delete_button');\n $del=File::find($id);\n\n// dd($id,$request->input('delete_button'),$del);\n Storage::delete($del->path);\n $del->delete();\n return redirect('/attractions/'.$attraction_id);\n }", "title": "" }, { "docid": "80279a1597fc869ef294d03bcd1a6632", "score": "0.5721846", "text": "public function rm($id)\n {\n }", "title": "" }, { "docid": "ab665119b206a77e6ca441b43a4d5f65", "score": "0.5718658", "text": "public static function delete($filePath, $storage = 'public')\n {\n if (Storage::disk($storage)->exists($filePath)) {\n Storage::disk($storage)->delete($filePath);\n }\n }", "title": "" }, { "docid": "93ed57872f689659ea980a4db098fcd7", "score": "0.5713562", "text": "public static function DeleteResource($resource_id)\n {\n \n $resource = DbInfo::ResourceExists($resource_id);\n \n if($resource)\n {\n $uploader = new EsomoUploader();\n $del_resource = self::DeleteBasedOnSingleProperty(\"resources\",\"resource_id\",$resource_id,\"i\");\n \n $del_resource_file = $uploader->DeleteResourceFile($resource[\"resource_name\"]);\n \n return ($del_resource && $del_resource_file);#return the status based on whether or not it could delete the resource or not.\n }\n else #failed to find the resource\n {\n return $resource;\n }\n\n }", "title": "" }, { "docid": "56e248ab5e3166b787050c7100090355", "score": "0.57053274", "text": "public function delete() {\n //dump(I('ResID'));\n $delFilepath = M('Resource')->where(array(\"ResID\" => I('ResID')))->find();\n unlink($delFilepath['ResPath'].$delFilepath['ResActualName']);\n \n M('Resource')->where(array(\"ResID\" => I('ResID')))->delete();\n M('Hwres')->where(array(\"ResID\" => I('ResID')))->delete();\n \n $this->redirect('Student/submithomework', array('HwID' => session('selectedHwID')), 1, '页面跳转中...');\n }", "title": "" }, { "docid": "fe48b572e448767f33e957b5bc9aa7a8", "score": "0.57004154", "text": "public function destroy($file)\n {\n $file = FileEmpresa::where('id', $file)->first();\n\n $url = str_replace('storage', 'public', $file->url);\n\n Storage::delete($url);\n\n $file->delete();\n\n return redirect()->route('filesempresa.index');\n }", "title": "" }, { "docid": "2c12fcf66c4a064f20f7ea55e9643b07", "score": "0.5697347", "text": "public function destroy($id)\n {\n $store = Store::where('id',$id)->first();\n $store->delete();\n unlink(public_path('back/images/store/'.$store->image));\n return redirect()->back()->with('success','Store has been deleted successfully!');\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": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "af60d7deb2c6aa38423ea7d93737129d", "score": "0.56616336", "text": "public function removeReference();", "title": "" }, { "docid": "cc98c81f9b175f0038da1199cdb1cc32", "score": "0.56524765", "text": "public function delete()\n {\n unlink(\"./public/images/property/$this->image\");\n\n return parent::delete();\n }", "title": "" }, { "docid": "4771a6376fe8124ff88d040ab740bc21", "score": "0.5647745", "text": "function deleteResource($path)\n\t{\n\t\tif(substr($path,-1) == '/')\n\t\t{\n\t\t\t$path = substr($path,0,-1);\n\t\t}\n\t\tif(!is_readable($path))\n\t\t{\n\t\t\t// return false and exit the function echo \"not readable\";\n\t\t\treturn false;\n\t\t\n\t\t\t// ... else if the path is readable\n\t\t} else {\n\t\t\tif(is_file($path))\n\t\t\t{\n\t\t\t\t@unlink($path);\n\t\t\t\t$lastoccurence=strrpos($path,'/');\n\t\t\t\t$path=substr($path,0,$lastoccurence);\n\t\t\t\t$this->deleteResource($path);\n\t\t\t} else {\n\t\t\t\t@rmdir($path);\n\t\t\t\t$lastoccurence=strrpos($path,'/');\n\t\t\t\t$path=substr($path,0,$lastoccurence);\n\t\t\t\t$this->deleteResource($path);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "e24a8da2185cf275580016315ac8c0fe", "score": "0.5646982", "text": "public abstract function remove();", "title": "" }, { "docid": "3766dc8af757b259cffee43a368b17a1", "score": "0.5643784", "text": "public function destroy($id)\n {\n StorageIn::findOrFail($id)->delete();\n\n return back()->with('success', __( 'Storage In Deleted!' ));\n }", "title": "" }, { "docid": "e56ffdb12b7e8ce9ce9b709dd82f37f7", "score": "0.56325144", "text": "public function removeById($id);", "title": "" }, { "docid": "42ab9aa343108bfe87a5fa6e2debbb1f", "score": "0.5629722", "text": "public function destroy($id)\n {\n $authorizationFile = AuthorizationFile::findOrFail($id);\n if ($authorizationFile->file_path) {\n unlink(storage_path('app/public/' . $authorizationFile->file_path));\n }\n\n if ($authorizationFile->delete()) {\n return new AuthorizationFileResource($authorizationFile);\n }\n }", "title": "" }, { "docid": "e283d0bd2f3e7de97a33220ebb63287a", "score": "0.5625924", "text": "public function delete()\n {\n return $this->getResource()->delete();\n }", "title": "" }, { "docid": "f5acef82b129546dce42b6395ac95346", "score": "0.56205463", "text": "public function delete()\n {\n Storage::disk($this->attributes['disk'])->delete($this->fullPath);\n\n return parent::delete();\n }", "title": "" }, { "docid": "d47412c8a3ab0748545f40369525944c", "score": "0.5617967", "text": "public function deleteAction(Request $request, Humanresource $humanresource)\n {\n $form = $this->createDeleteForm($humanresource);\n $form->handleRequest($request);\n\n if ($form->isSubmitted() && $form->isValid()) {\n $em = $this->getDoctrine()->getManager();\n $em->remove($humanresource);\n $em->flush();\n }\n\n return $this->redirectToRoute('activity_hr_index');\n }", "title": "" }, { "docid": "aaabbaeb6034a78aa7f1190e4a439da8", "score": "0.56079096", "text": "public function deleteStorage($id)\n {\n $storageMapper = $this->mapperFactory->createStorageMapper();\n $storageRecord = $storageMapper->getById($id);\n $fsService = $this->serviceFactory->createFSService();\n $fsService->deleteFromPath($storageRecord->getPath(), $storageRecord->getName());\n $storageMapper->delete($id);\n }", "title": "" }, { "docid": "8048c92e64b0cd0ae592793014490993", "score": "0.5606129", "text": "public function destroy($id)\n {\n $img = DB::table('students')->where('id',$id)->first();\n $img_path = $img->photo; //get image path\n unlink($img_path); //image deleted from folder\n\n DB::table('students')->where('id',$id)->delete(); //delete data from database\n return response('student deleted with id '.$id);\n }", "title": "" }, { "docid": "510a28fc5994e880fed70c640c944d7a", "score": "0.56050575", "text": "protected function deleteMediaResource($user, $name)\n {\n Storage::deleteDirectory($name . '/' . $user->id);\n }", "title": "" }, { "docid": "c3eb38678844fc2557b71062f1dbcfb9", "score": "0.55994797", "text": "public function destroy($id)\n {\n $product = Product::find($id);\n unlink('storage/'.$product->image);\n \n $delete = $product->delete();\n\n if($delete){\n Session::flash('success', 'Data deleted');\n } else {\n Session::flash('error', 'Deleted failed');\n }\n }", "title": "" }, { "docid": "5535c2bc3c675fe863e2273875b2cf56", "score": "0.5599097", "text": "public function delete() {\n \\File::delete([\n $this->path,\n $this->thumbnail_path\n ]);\n parent::delete();\n }", "title": "" }, { "docid": "6fbcf9a59c7f34ed85fd172cdf3d3c38", "score": "0.5595493", "text": "public function remove(){}", "title": "" }, { "docid": "c407e20259afdab0092bdaa4b6774c3f", "score": "0.5589979", "text": "public function destroy($id)\n {\n $info = Data::findOrFail($id);\n\n $destinationPath = 'public/uploads/'.$info->image;\n\n if(File::exists($destinationPath)){\n File::delete($destinationPath);\n }\n\n $info = Data::destroy($id);\n \n return back();\n }", "title": "" }, { "docid": "7c96a047cc159d1bcf4d96bc5a7d4df9", "score": "0.55851704", "text": "public function destroy($id){\n $delete = Supplier::findorfail($id);\n $photo = $delete->photo;\n unlink($photo);\n $suppliers = Supplier::where('id', $id)->delete();\n return redirect()->back()->with('message', 'Supplier Deleted Succesfully');\n }", "title": "" }, { "docid": "e182fb0676c98a5ce3a016dd37ecff8d", "score": "0.5584347", "text": "public function destroy($id)\n {\n $Document = Documents::findOrFail($id);\n $archivo = Resource::findOrFail($Document->resource_id);\n Storage::delete($archivo->ruta);\n $Document->delete();\n $archivo->delete();\n\n Session::flash('error','El archivo se ha eliminado exitosamente');\n return redirect('/dashboard/archivo/');\n }", "title": "" }, { "docid": "036766aaa5875324d85cb1ada4247f46", "score": "0.5584317", "text": "public function destroy($id){\n $image = Image::find($id);\n $image->delete();\n }", "title": "" }, { "docid": "0744113a1d012fa89c86d790c8e70cf7", "score": "0.55792385", "text": "public function removeImage()\n {\n if ( ! empty($this->image) && ! empty($this->id)) {\n $path = storage_path($this->image);\n if (is_file($path)) {\n unlink($path);\n }\n if (is_file($path.'.thumb.jpg')) {\n unlink($path.'.thumb.jpg');\n }\n }\n }", "title": "" }, { "docid": "6163d6af309a2fc4b5b3e8b9131900d4", "score": "0.55742586", "text": "public function remove($object)\n {\n $this->persistenceManager->remove($object);\n }", "title": "" }, { "docid": "26f833ecd0ab7ae6fe4010036f6b5752", "score": "0.55738527", "text": "public function remove($key)\n {\n $this->storage->remove($key);\n }", "title": "" }, { "docid": "0d6640f36c0ca88fbe56977a74dad5f1", "score": "0.55737436", "text": "public function remove(MediaInterface $media);", "title": "" }, { "docid": "0d6640f36c0ca88fbe56977a74dad5f1", "score": "0.55737436", "text": "public function remove(MediaInterface $media);", "title": "" }, { "docid": "97914eb78d7cf648246f9bcd6ac69124", "score": "0.5573565", "text": "public function destroy($id)\n {\n /*\n\n = R::load( '', $id );\n R::trash( );*/\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": "ece2674f4c8b5aae472a2bcf16b2b5e0", "score": "0.5570756", "text": "public function destroy( $id)\n {\n $inventario=Inventarios::findOrFail($id); \n if(Storage::delete('public/'.$inventario->foto)){\n Inventarios::destroy($id); \n }; \n \n //return redirect('inventarios');\n return redirect('inventarios')->with('Mensaje','Dispositivo Eliminado');\n }", "title": "" }, { "docid": "b9d1b308ec63ebe2ce546d28269bb256", "score": "0.55603665", "text": "public function destroy($id)\n {\n //\n $st = StorageType::findOrFail($id);\n $st->delete();\n\n return 1;\n }", "title": "" }, { "docid": "b82d479e67b7810f548131a749efe6bd", "score": "0.55463326", "text": "public function destroy($id)\n\t{\n\t\t$entity = $this->newEntity()->newQuery()->find($id);\n\t\tif($entity->path){\n\t\t\t$file = base_path($entity->path);\n\t\t\tif(is_file($file)){\n\t\t\t\tunlink($file);\n\t\t\t}\n\t\t}\n\t\t$entity->delete();\n\t\t$entity=[];\n\t\treturn $this->success($entity);\n\t}", "title": "" }, { "docid": "288e3719860641605b0374dedc6b63aa", "score": "0.5545195", "text": "public function destroy($id)\n {\n $product = Product::where('product_id', $id)->first();\n $imagename = $product->image;\n if(!empty($imagename)){\n if(Storage::disk('s3')->exists($imagename)) {\n Storage::disk('s3')->delete($imagename);\n } \n /*$filename = public_path().'/images/product/'.$file;\n \\File::delete($filename);*/\n }\n Product::where('product_id',$id)->delete();\n return redirect()->route('product.index')\n ->with('success','Product deleted successfully.');\n }", "title": "" }, { "docid": "1113bcc364d7ca0dc41ea624c2d8d5e8", "score": "0.55436987", "text": "function rm($s3path)\n {\n // printf(\"%s::%s(%s)\\n\",__CLASS__,__FUNCTION__,$s3path);\n\t\t$this->_s3_stats['rm']++;\n $s3r = $this->_request('DELETE',$s3path);\n return $s3r;\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": "53f78692bfaa975d100ec605f2d12fcf", "score": "0.55394316", "text": "public function destroy($id)\n {\n $user = Sentinel::findById($id);\n unlink(public_path('/assets/img/').$user->img);\n $user->delete();\n return redirect('/akun');\n }", "title": "" }, { "docid": "1562343bd038500151851c08438fb6b4", "score": "0.5533306", "text": "public function destroy($id)\n {\n $product=Product::withTrashed()->where('id',$id)->firstOrfail();\n\n if($product->trashed()){\n Storage::delete($product->image);\n $product->forceDelete();\n }else{\n $product->delete();\n }\n\n\n session()->flash('success','Product deleted successfully');\n\n return redirect (route('products.index'));\n }", "title": "" }, { "docid": "e165b8739c7a101d2f903d8ab276d448", "score": "0.55331177", "text": "public function destroy($id)\n {\n $image = Image::find($id);\n $destinationPath = public_path('/images/');\n $image_path = $destinationPath.$image->image; // Value is not URL but directory file path\n if(File::exists($image_path)) {\n File::delete($image_path);\n }\n $image->delete();\n }", "title": "" }, { "docid": "42cde9a36e359e31a33593ed1e3b8323", "score": "0.55320555", "text": "public function remove(Generic $object);", "title": "" }, { "docid": "9331ceceb5f08fd5019c2c9d314200fd", "score": "0.55302644", "text": "public function remove_resource() {\n // Check Connection\n if ($_SERVER[\"REQUEST_METHOD\"] == \"POST\") {\n $id = $_POST[\"remove_link\"];\n if ($id) {\n // Validate\n if (!is_numeric($id)) {\n return false;\n } else {\n // Delete File if not default\n $get_img = \"SELECT IMG_URL FROM LINKS WHERE ID ='$id';\";\n $img_url = parent::select($get_img);\n $img_url = $img_url[\"IMG_URL\"];\n if ($img_url != \"/images/uploads/default.png\") {\n // Delete file\n unlink($_SERVER['DOCUMENT_ROOT'] . $img_url);\n }\n // Get USER ID\n $post_id = \"SELECT USER_ID FROM LINKS WHERE ID = '$id';\";\n $post_id = parent::select($post_id);\n $post_id = $post_id[\"USER_ID\"];\n // Remove Resource\n $query = \"DELETE FROM LINKS WHERE ID = '$id';\";\n $query2 = \"UPDATE RESOURCES SET NUM_OF_LINKS = NUM_OF_LINKS - 1 WHERE ID = '$this->id';\";\n $query3 = \"UPDATE USER SET IQ = IQ - 3 WHERE ID = '$post_id';\";\n if (parent::query($query) && parent::query($query2) && parent::query($query3)) {\n $this->error = \"Success\";\n } else {\n echo \"Resource failed to delete.\";\n return false;\n }\n }\n } else {\n return false;\n }\n }\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": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" } ]
530dcde736223605ecf79f402334e2cb
Gets the view mode
[ { "docid": "23907b814c4405f58336054eddced584", "score": "0.8764592", "text": "public function getViewMode()\n {\n return $this->viewMode;\n }", "title": "" } ]
[ { "docid": "7162fd2a97d1afb56046fc8dff0c1b10", "score": "0.8641105", "text": "protected function getViewMode()\n {\n return $this->getSession('view_mode', self::VIEW_MODE_GRID);\n }", "title": "" }, { "docid": "61858090dcf001d9e4c904609d455f5c", "score": "0.82363164", "text": "protected function _getMode()\n {\n return $this->mode;\n }", "title": "" }, { "docid": "b0a3114116db68c04a8277017efc82d2", "score": "0.8010514", "text": "public function getMode()\n {\n return $this->_options['mode'];\n }", "title": "" }, { "docid": "51e93aae5fb16359634f27232f16ff8b", "score": "0.7978106", "text": "public function getMode()\n {\n return $this->mode;\n }", "title": "" }, { "docid": "51e93aae5fb16359634f27232f16ff8b", "score": "0.7978106", "text": "public function getMode()\n {\n return $this->mode;\n }", "title": "" }, { "docid": "51e93aae5fb16359634f27232f16ff8b", "score": "0.7978106", "text": "public function getMode()\n {\n return $this->mode;\n }", "title": "" }, { "docid": "51e93aae5fb16359634f27232f16ff8b", "score": "0.7978106", "text": "public function getMode()\n {\n return $this->mode;\n }", "title": "" }, { "docid": "51e93aae5fb16359634f27232f16ff8b", "score": "0.7978106", "text": "public function getMode()\n {\n return $this->mode;\n }", "title": "" }, { "docid": "51e93aae5fb16359634f27232f16ff8b", "score": "0.7978106", "text": "public function getMode()\n {\n return $this->mode;\n }", "title": "" }, { "docid": "51e93aae5fb16359634f27232f16ff8b", "score": "0.7978106", "text": "public function getMode()\n {\n return $this->mode;\n }", "title": "" }, { "docid": "51e93aae5fb16359634f27232f16ff8b", "score": "0.7978106", "text": "public function getMode()\n {\n return $this->mode;\n }", "title": "" }, { "docid": "1ab013e58527b143911432dafd3df409", "score": "0.79675215", "text": "public function getMode()\n {\n return $this->m_mode;\n }", "title": "" }, { "docid": "ef70b72f7bd2ab7b2c5256e31e77fe5a", "score": "0.7960535", "text": "function getMode() {\r\n\t\t\treturn $this->mode;\r\n\t\t}", "title": "" }, { "docid": "5f094c0e0bea35a21dae23a28a8cf17f", "score": "0.79512614", "text": "public function get_mode()\n {\n return $this->m_mode;\n }", "title": "" }, { "docid": "e6b292bd6456c44d0e401632dc329a11", "score": "0.7950134", "text": "public static function getMode()\n {\n return self::$mode;\n }", "title": "" }, { "docid": "bb99f9a581f268da70419d3c6ff55c61", "score": "0.79408425", "text": "function getMode()\n {\n return $this->mode;\n }", "title": "" }, { "docid": "bb99f9a581f268da70419d3c6ff55c61", "score": "0.79408425", "text": "function getMode()\n {\n return $this->mode;\n }", "title": "" }, { "docid": "bb99f9a581f268da70419d3c6ff55c61", "score": "0.79408425", "text": "function getMode()\n {\n return $this->mode;\n }", "title": "" }, { "docid": "bb99f9a581f268da70419d3c6ff55c61", "score": "0.79408425", "text": "function getMode()\n {\n return $this->mode;\n }", "title": "" }, { "docid": "1c220407e86601d48041398d7d3aae7f", "score": "0.7901151", "text": "public function GetMode()\n\t{\n\t\treturn $this->mode;\n\t}", "title": "" }, { "docid": "79b6495efa8326f38b375e23bfb3cdc0", "score": "0.7894501", "text": "function getMode() {\n return $this->mode;\n }", "title": "" }, { "docid": "a7ecb428c8c8f57e6bd1657547571b13", "score": "0.78944975", "text": "public function getMode();", "title": "" }, { "docid": "a7ecb428c8c8f57e6bd1657547571b13", "score": "0.78944975", "text": "public function getMode();", "title": "" }, { "docid": "a7ecb428c8c8f57e6bd1657547571b13", "score": "0.78944975", "text": "public function getMode();", "title": "" }, { "docid": "834f3a858b5799dd1d8857674117581d", "score": "0.7884753", "text": "public function getMode() {\n return $this->mode;\n }", "title": "" }, { "docid": "1d7dca862537ceaf0a952013b6cb3892", "score": "0.78524375", "text": "public function getMode() {\r\n return $this -> mode;\r\n }", "title": "" }, { "docid": "40ac153c80e3ff8b3975c8a01c8e729c", "score": "0.78507924", "text": "static public function getMode()\n {\n return static::$mode;\n }", "title": "" }, { "docid": "6c63d9013a8d8b2258ae8492559623cd", "score": "0.7798191", "text": "public function getMode(){\n\t\treturn $this->mode;\n\t}", "title": "" }, { "docid": "181224b9158cd0eb25308235933a9fc3", "score": "0.7750584", "text": "function getViewMode() {\n $enabled = Configure::read('App.gui.viewModes.enabled');\n // check if different view modes are actives for this context\n $allowed = Common::requestAllowed(\n $this->Controller->name,\n $this->Controller->action,\n Configure::read('App.gui.viewModes.conditions')\n );\n // options must be enabled and allowed for controller:action\n if($enabled && $allowed) {\n // list allowed view modes\n $allowed = Configure::read('App.gui.viewModes.options');\n $urlName = Configure::read('App.gui.viewModes.urlName');\n $requested = array();\n if(isset($this->Controller->params['named'][$urlName]) && isset($allowed[$this->Controller->params['named'][$urlName]])) {\n // check if the view mode is requested in the url\n $requested = $this->Controller->params['named'][$urlName];\n User::setValue('Preference.gui.viewModes.default',$requested);\n } elseif(User::get('Preference.gui.viewModes.default')) {\n // check if there was any preferences in the past\n $requested = User::get('Preference.gui.viewModes.default');\n } else {\n // default option\n $requested = Configure::read('App.gui.viewModes.default');\n }\n return $requested;\n }\n return false;\n }", "title": "" }, { "docid": "e3ba95c6f46f25b6b7557279b22519a9", "score": "0.77191097", "text": "public function getMode(): string\n {\n return $this->getMetadata('mode');\n }", "title": "" }, { "docid": "d5a0336838d826005a55bb79847cc61e", "score": "0.77169573", "text": "public function getMode(){\n \n return $this->mode;\n \n }", "title": "" }, { "docid": "75da0f33bbca59ef7919a7aa27dccfae", "score": "0.7669695", "text": "public function getMode()\r\n {\r\n\t\t//echo $this->getChildBlock('toolbar')->getCurrentMode();\r\n return $this->getChildBlock('toolbar')->getCurrentMode();\r\n }", "title": "" }, { "docid": "3c5810c466b67a6c11697f504e4427f8", "score": "0.7661727", "text": "public function mode() { return $this->_m_mode; }", "title": "" }, { "docid": "849c411015e7a0726f2bfb34e2f49e4a", "score": "0.7659068", "text": "public function getMode(){ }", "title": "" }, { "docid": "ddf9848fce6c2f2657301483efe9908c", "score": "0.7610205", "text": "public static function getMode()\n\t{\n\t\treturn Core::$_mode;\n\t}", "title": "" }, { "docid": "4d68eabf02e6e3e459850858512c33e5", "score": "0.7592414", "text": "public function getMode()\n {\n $value = $this->get(self::MODE);\n return $value === null ? (integer)$value : $value;\n }", "title": "" }, { "docid": "b0578637ab528c598a5bbeed5e31acf1", "score": "0.7579181", "text": "public function getMode() : string\n {\n return $this->mode;\n }", "title": "" }, { "docid": "58475d7d868fd73b327152205c560033", "score": "0.75636005", "text": "final public function getMode()\n {\n }", "title": "" }, { "docid": "ec5d441e411fcb4003a3640878fe2cf1", "score": "0.74707735", "text": "function get_mode() {\n //\n //By this time the display mode must have been set\n switch ($this->mode_type) {\n //\n case mode::input:\n $mode = new mode_input();\n break;\n //\n case mode::output:\n $mode = new mode_output();\n break;\n default:\n throw new Exception(\"Display mode '$this->mode_type' is not known\");\n }\n //\n //Return the mode style\n return $mode;\n }", "title": "" }, { "docid": "826f7cfe8213fa4a2a47fadc2db01bf6", "score": "0.7338877", "text": "private function getMode() {\n return !$this->mode ? config('weather.mode') : $this->mode;\n }", "title": "" }, { "docid": "1660d4d18526a25024496bad6356f3b1", "score": "0.72566247", "text": "public function getAllViewModes();", "title": "" }, { "docid": "c381067b32af760aef3624c61da0e049", "score": "0.71511054", "text": "public function getMode(): string\n {\n // Abuse 0 to identify that incremental flag is not set at all.\n $incremental = $this->getValue(['parameters', 'incremental'], 0);\n // the legacy incremental flag is replaced by the `mode` parameter\n if ($incremental === 0) {\n return $this->getStringValue(['parameters', 'mode']);\n } else {\n if ($incremental) {\n return self::MODE_UPDATE;\n } else {\n return self::MODE_REPLACE;\n }\n }\n }", "title": "" }, { "docid": "f0934c42dde88eb0a74647067332daa8", "score": "0.707305", "text": "function getView($mode) {\n\tglobal $log;\n\t$log->debug('>< getView ' . $mode);\n\treturn ($mode == 'edit' ? 'edit_view' : 'create_view');\n}", "title": "" }, { "docid": "552372b15cfd0445854de99a79653cb6", "score": "0.7068547", "text": "public function getGameMode()\n {\n\n return $this->_gameMode;\n }", "title": "" }, { "docid": "3c539eca5e8d78e8636fe58cadd0bdb8", "score": "0.7064721", "text": "public static function modes() {\n return self::$modes;\n }", "title": "" }, { "docid": "36a428e9de539ffbc3d38c2aaa62893e", "score": "0.7038266", "text": "public function getMode():? string\n {\n return $this->mode;\n }", "title": "" }, { "docid": "a57c4c6ec2322b281dc8e809f73033f0", "score": "0.6976571", "text": "public function getCurrentMode() {\n\t\t/* not available */\n\t\treturn '';\n\t}", "title": "" }, { "docid": "66a4f29277724b045d8dc7ef8a45637e", "score": "0.6918727", "text": "public function getModeName();", "title": "" }, { "docid": "db23ba435c975e4a7a64e30316ba2686", "score": "0.69056535", "text": "public function getMode()\n {\n return $this->helperData->getConfigValue('price_import/price_mode');\n }", "title": "" }, { "docid": "28a19bba19c9719f31b89dc544dd76c1", "score": "0.6686173", "text": "public function getMode()\n {\n $sandboxWork = Mage::getStoreConfig('payment/paypal_plus/sandbox_flag');\n\n if ($sandboxWork) {\n return self::MODE_SANDBOX;\n }\n\n return self::MODE_LIVE;\n }", "title": "" }, { "docid": "ffd05a87c47a5554c37156f50e803615", "score": "0.6685884", "text": "public function getModes()\n {\n return $this->modes;\n }", "title": "" }, { "docid": "e5504da55dd9cdfd8f7e10b511a4395f", "score": "0.6643943", "text": "private function setViewMode() {\n\t\t$mode = $this->getParam('viewmode');\n\t\tif (is_null($mode)) {\n\t\t\treturn (isset($_SESSION['viewmode']) && strcmp($_SESSION['viewmode'],'img')==0);\n\t\t}\n\t\t\n\t\tif (strcmp($mode,'img')==0) {\n\t\t\t$_SESSION['viewmode'] = 'img';\n\t\t\treturn true;\n\t\t} elseif (strcmp($mode,'text')==0) {\n\t\t\t$_SESSION['viewmode'] = 'text';\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "639a285c03aba95c5652c9269dd6ad21", "score": "0.66287905", "text": "public function getViewType()\n {\n if (!$this->isPropertyAvailable(\"ViewType\")) {\n return null;\n }\n return $this->getProperty(\"ViewType\");\n }", "title": "" }, { "docid": "eb12d00fd7f5988c38d2db81e51a6af4", "score": "0.6624335", "text": "public function getLocationMode()\n {\n return $this->locationMode;\n }", "title": "" }, { "docid": "d88155b2c47502413f0100bb5a584267", "score": "0.6553146", "text": "protected function getViewByMode() {\n switch ($this->conf['mode']) {\n case '':\n case 'select': {\n $view = $this->getView('filter_options_userInterface_select');\n } break;\n\n case 'links': {\n $view = $this->getView('filter_options_userInterface_links');\n } break;\n\n case 'radio': {\n tx_pttools_assert::isTrue(empty($this->conf['multiple']), array('message' => 'Mode \"radio\" cannot be run in multiple mode!'));\n $view = $this->getView('filter_options_userInterface_radio');\n } break;\n\n case 'checkbox': {\n tx_pttools_assert::isFalse(empty($this->conf['multiple']), array('message' => 'Mode \"checkbox\" can only be run in multiple mode!'));\n $view = $this->getView('filter_options_userInterface_checkbox');\n } break;\n\n case 'advmultiselect': {\n tx_pttools_assert::isFalse(empty($this->conf['multiple']), array('message' => 'Mode \"advmultiselect\" can only be run in multiple mode!'));\n\n // include PEAR classes\n require_once 'HTML/QuickForm.php';\n require_once 'HTML/QuickForm/advmultiselect.php';\n\n $view = $this->getView('filter_options_userInterface_advmultiselect');\n } break;\n\n default: throw new tx_pttools_exception('\"Mode\" must be either \"links\", \"radio\", \"checkbox\", \"advmultiselect\" or \"select\" (default)!');\n }\n return $view;\n\t}", "title": "" }, { "docid": "cb2369a484da4aa92add1e048b2fb15b", "score": "0.6528871", "text": "public static function defaultMode(): int {\n\t\treturn self::$defaultMode;\n\t}", "title": "" }, { "docid": "b45df263844f2784579d5add05673cab", "score": "0.6525619", "text": "public function getCalcMode()\n {\n return $this->calc_mode;\n }", "title": "" }, { "docid": "6a907ebfc4c56513dde94a148bd83d2d", "score": "0.6518056", "text": "public function getTestMode() {\n return $this->getParameter('testMode');\n }", "title": "" }, { "docid": "aff5f6bff14e23edcbb7bae4de0e0a76", "score": "0.6512371", "text": "public function getAccessMode()\n {\n return $this->access_mode;\n }", "title": "" }, { "docid": "c67fc9c1ad1d92e7fbaa7e0aaaa26b96", "score": "0.65111876", "text": "public function getSelectionMode()\n {\n if (!$this->isPropertyAvailable(\"SelectionMode\")) {\n return null;\n }\n return $this->getProperty(\"SelectionMode\");\n }", "title": "" }, { "docid": "e3bda055e6ebd7557164c8f744bd531b", "score": "0.6504246", "text": "private static function mode($mode)\n {\n return $mode == 'debug' ? Blade::MODE_DEBUG : Blade::MODE_AUTO;\n }", "title": "" }, { "docid": "6ce2e8312066dc26ed055511ec0e9ed3", "score": "0.65041137", "text": "public function get_view_settings_capability()\n {\n $view_settings_capability = 'manage_options';\n $view_settings_capability = apply_filters('simple_history_view_settings_capability', $view_settings_capability);\n $view_settings_capability = apply_filters('simple_history/view_settings_capability', $view_settings_capability);\n\n return $view_settings_capability;\n }", "title": "" }, { "docid": "1e5de16d6582866700e73fcece03ee54", "score": "0.6487612", "text": "public function get_view() {\n\t\treturn $this->view;\n\t}", "title": "" }, { "docid": "d0675947a1f924a8227a08c1d56b2cc7", "score": "0.64808834", "text": "public function get_view()\n {\n return $this->view;\n }", "title": "" }, { "docid": "5fb94a2ea224065536bd67b043e303e4", "score": "0.6450233", "text": "public static function type()\n {\n return self::c_php_view;\n }", "title": "" }, { "docid": "5fb94a2ea224065536bd67b043e303e4", "score": "0.6450233", "text": "public static function type()\n {\n return self::c_php_view;\n }", "title": "" }, { "docid": "159162deaddfda436111a5844e3d2360", "score": "0.6431038", "text": "public function getModeTime()\n {\n return Statistics::kdeMode($this->getTimes());\n }", "title": "" }, { "docid": "5c74bcfc5a472fbb365729722bb8761c", "score": "0.64246196", "text": "public function getCurrentMode () {\n\t\t$response = $this->encodeClientRequest('serverInfo');\n\t\tif ($response[0] == 'OK') {\n\t\t\treturn $response[4];\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "21799949ac729116ee4850e635e74a90", "score": "0.6415509", "text": "public function view()\n {\n return $this->_view;\n }", "title": "" }, { "docid": "ac0f309dcdffa70d75628e142479323d", "score": "0.63910455", "text": "public function getURICliMode()\n {\n return (isset($this->uri))? $this->uri->getCliMode(): null;\n }", "title": "" }, { "docid": "7f5129f90afb235189ad9fa9e24dad1d", "score": "0.6358822", "text": "public function getLivemode()\n {\n return $this->_livemode;\n }", "title": "" }, { "docid": "8bb8d63a0af1eb1a7d315dc360b9dacd", "score": "0.6347293", "text": "public function geMode($storeId = null)\n {\n return $this->getValue(self::KEY_MODE, $storeId);\n }", "title": "" }, { "docid": "980aa8d77acf5f822a026f8e6b7641e4", "score": "0.63398457", "text": "public function getViewType(): string;", "title": "" }, { "docid": "cfc4a87264853191b301a37305df774b", "score": "0.63324666", "text": "protected function test_mode() {\n\t\treturn Config::get('payments.test_mode', true);\n\t}", "title": "" }, { "docid": "7ae1fb42fce22eeb102f807a66b2ea6b", "score": "0.6317104", "text": "public function getCalculationMode()\n {\n if (!$this->isPropertyAvailable(\"CalculationMode\")) {\n return null;\n }\n return $this->getProperty(\"CalculationMode\");\n }", "title": "" }, { "docid": "58cff5fd868e517e7aca8a8e7b0a7021", "score": "0.6282957", "text": "public function getMode($sKey) \n {\n return array_key_exists($sKey, $this->aModes) ? $this->aModes[$sKey] : false;\n }", "title": "" }, { "docid": "e1b7c0e6d509047a6d78660a58ba8e21", "score": "0.62516195", "text": "public function getView(): string\n {\n return $this->view;\n }", "title": "" }, { "docid": "497204c59e712819ccbe45f0a7df02ae", "score": "0.62488717", "text": "public function get_view(){\n return $this->view;\n }", "title": "" }, { "docid": "0b4a59ac19b5697105fae30a50041fc5", "score": "0.624503", "text": "public static function get() {\n return get_option( 'clanpress_mode', self::DEFAULT_MODE );\n }", "title": "" }, { "docid": "9f5fa9ff451975361c98e6d9d190f91c", "score": "0.62376285", "text": "public function getView() {\n return $this->_view;\n }", "title": "" }, { "docid": "0bb82a12835ff59babefb82f3782b315", "score": "0.6230049", "text": "public function getActionMode()\n {\n return trim($this->getConfigData('action'));\n }", "title": "" }, { "docid": "188c7466dd5a6bc94f08dce0c9eb4e68", "score": "0.61967254", "text": "public function getView() {\r\n return $this->view;\r\n }", "title": "" }, { "docid": "3c39103f55689fcfdab1f51c50a22be4", "score": "0.61806333", "text": "public function getFolder()\n\t{\n\t\treturn $this->getMode();\n\t}", "title": "" }, { "docid": "c70419dc521fba24b64e70454b5a3406", "score": "0.6178273", "text": "public static function getMode(string $extension) {\n\n\t\t\t$modes = ['php' => 'php', 'html' => 'html', 'ctp' => 'html', 'js' => 'javascript', 'json' => 'json', 'css' => 'css'];\n\n\t\t\treturn ($modes[$extension] ?? false);\n\t\t}", "title": "" }, { "docid": "a8aef93021ccfee7626ffb9299647082", "score": "0.617718", "text": "public function getQueryMode()\n {\n // Get search mode value [0 for OR logic | 1 for AND logic]\n return $this->_mode;\n }", "title": "" }, { "docid": "a97f8f40ccc5c969689d021c3726a21b", "score": "0.61760736", "text": "public function getView()\n {\n return $this->get('view');\n }", "title": "" }, { "docid": "db12c76ca5133754184ddf83b62aadf5", "score": "0.6167219", "text": "public function getView() {\n\t\treturn $this->_view;\n \t}", "title": "" }, { "docid": "5ff15deec8e25a5651d92c66f498883c", "score": "0.61588776", "text": "function forumanonymous_get_layout_modes() {\n return array (FORUMANONYMOUS_MODE_FLATOLDEST => get_string('modeflatoldestfirst', 'forumanonymous'),\n FORUMANONYMOUS_MODE_FLATNEWEST => get_string('modeflatnewestfirst', 'forumanonymous'),\n FORUMANONYMOUS_MODE_THREADED => get_string('modethreaded', 'forumanonymous'),\n FORUMANONYMOUS_MODE_NESTED => get_string('modenested', 'forumanonymous'));\n}", "title": "" }, { "docid": "f771cbf893b33fa62d57e8d025af0cbf", "score": "0.6156983", "text": "public function getModele()\n {\n return $this->modele;\n }", "title": "" }, { "docid": "f771cbf893b33fa62d57e8d025af0cbf", "score": "0.6156983", "text": "public function getModele()\n {\n return $this->modele;\n }", "title": "" }, { "docid": "fc18c3fe6315f28bc92ca0ebd37c9544", "score": "0.61569434", "text": "private function getMode($mode = null)\n {\n // If not overriden\n if (!isset($mode)) {\n // Return mode based on Apache server var\n if (isset($_SERVER[self::SERVER_VAR]))\n $mode = $_SERVER[self::SERVER_VAR];\n else\n throw new \\Exception('SetEnv not defined in Apache config.');\n }\n\n return $mode;\n }", "title": "" }, { "docid": "a66254dba61f44ddb688c17d80c2054a", "score": "0.6154113", "text": "public function get_view() {\n global $user_ID;\n if (get_user_meta($user_ID, \"timetrader_view\", true)) {\n return get_user_meta($user_ID, \"timetrader_view\", true);\n }\n return 'tabs';\n }", "title": "" }, { "docid": "9368f289bd79f05f06457fb573c138b3", "score": "0.6145975", "text": "function groupmode() {\n return groupmode($this->course, $this->config);\n }", "title": "" }, { "docid": "19f982ca42f62383da44a9422ae3ffb4", "score": "0.61193556", "text": "public function getView()\n {\n return $this->view;\n }", "title": "" }, { "docid": "19f982ca42f62383da44a9422ae3ffb4", "score": "0.61193556", "text": "public function getView()\n {\n return $this->view;\n }", "title": "" }, { "docid": "19f982ca42f62383da44a9422ae3ffb4", "score": "0.61193556", "text": "public function getView()\n {\n return $this->view;\n }", "title": "" }, { "docid": "19f982ca42f62383da44a9422ae3ffb4", "score": "0.61193556", "text": "public function getView()\n {\n return $this->view;\n }", "title": "" }, { "docid": "19f982ca42f62383da44a9422ae3ffb4", "score": "0.61193556", "text": "public function getView()\n {\n return $this->view;\n }", "title": "" }, { "docid": "19f982ca42f62383da44a9422ae3ffb4", "score": "0.61193556", "text": "public function getView()\n {\n return $this->view;\n }", "title": "" }, { "docid": "19f982ca42f62383da44a9422ae3ffb4", "score": "0.61193556", "text": "public function getView()\n {\n return $this->view;\n }", "title": "" } ]
ccbac23fe5060d65630b19e5693a41e9
Get the validation rules that apply to the request.
[ { "docid": "35157d474deff54226081a1920bc50cb", "score": "0.73941666", "text": "public function rules()\n {\n $this->sanitize();\n\n return [\n 'name' => 'required|max:20',\n 'email' => 'required|email',\n 'phone' => 'nullable',\n 'message' => 'required|max:5000',\n 'dateSent' => 'nullable|date'\n ];\n }", "title": "" } ]
[ { "docid": "93d9e84737b3cd1c4ac4807afd42609f", "score": "0.85588336", "text": "public function rules()\n {\n\n $rules = $this->requestRules;\n\n return $rules;\n\n }", "title": "" }, { "docid": "5299910a0ea84ec4e7c05f90e78a8a21", "score": "0.81492203", "text": "public function rules()\n\t{\n\t\t//dd($this->request);//->get('key'));\n\n\t\t// http://laravel.com/docs/5.0/validation#available-validation-rules\n\t\t$rules = array(\n\t\t\t'name' => 'required',\n\t\t\t'email' => 'required|email'\n\t\t);\n\n\t\t//rules done\n\t\treturn $rules;\n\t}", "title": "" }, { "docid": "8471abd4d4d51c54ba74e3101f64df6f", "score": "0.8117761", "text": "public function getValidationRules()\n {\n return $this->validationRules;\n }", "title": "" }, { "docid": "8471abd4d4d51c54ba74e3101f64df6f", "score": "0.8117761", "text": "public function getValidationRules()\n {\n return $this->validationRules;\n }", "title": "" }, { "docid": "f3c76174c5a69ad644c99824df4f1003", "score": "0.8072995", "text": "public function getValidationRules();", "title": "" }, { "docid": "18c36eaf26480ae97537e30df90d11d8", "score": "0.80716956", "text": "public function getValidationRules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "18c36eaf26480ae97537e30df90d11d8", "score": "0.80716956", "text": "public function getValidationRules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "18c36eaf26480ae97537e30df90d11d8", "score": "0.80716956", "text": "public function getValidationRules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "97dad3e93f1181b706c4c37e6bc508fb", "score": "0.8062002", "text": "public static function getValidationRules()\n {\n return self::$rules;\n }", "title": "" }, { "docid": "97dad3e93f1181b706c4c37e6bc508fb", "score": "0.8062002", "text": "public static function getValidationRules()\n {\n return self::$rules;\n }", "title": "" }, { "docid": "0ef03e157defd3c2e4bc747a47bd2718", "score": "0.80251455", "text": "public function validationRules(): array\n {\n /** @var \\Illuminate\\Routing\\Route $route */\n $route = $this->getRequest()->route();\n $actionMethod = $route->getActionMethod();\n\n return $this->getRules()->getValidationRulesForAction($actionMethod);\n }", "title": "" }, { "docid": "2bfd956e06290167753b99914da7d7bb", "score": "0.79548395", "text": "public function rules()\n {\n $rules = VALIDATION_RULES;\n return $rules;\n }", "title": "" }, { "docid": "674f48033c4da89ffa7685260cca729a", "score": "0.79264987", "text": "public function rules()\n {\n return $this->validationRules;\n }", "title": "" }, { "docid": "f00b1f0a6c418ccda47a385de1950fb2", "score": "0.78839475", "text": "public function rules()\n {\n $rules = [];\n switch($this->getMethod()):\n case \"POST\":\n $rules = [\n 'name' => 'required|string|max:60',\n ];\n break;\n case \"PUT\":\n $rules = [\n 'id' => 'required|numeric',\n 'name' => 'required|string|max:60'\n ];\n break;\n case \"DELETE\":\n $rules = [\n 'id' => 'required|numeric'\n ];\n break;\n endswitch;\n return $rules;\n }", "title": "" }, { "docid": "8d8857dab7be8bc07cf70e89a1a87a8c", "score": "0.78360015", "text": "public function fetchRequestRules()\n {\n if (($this->request->all())) {\n return array_intersect_key($this->rules, $this->request->all());\n }\n\n return;\n }", "title": "" }, { "docid": "1649aa3e6720b274be6030033e5150c2", "score": "0.7835281", "text": "public function rules()\n {\n $rules = [\n 'title' => 'required',\n 'project' => 'required'\n ];\n\n // If you need to change rules based on routes or something, do like this:\n if (FeatureRequest::isMethod('patch'))\n {\n $rules = null;\n $rules = [];\n }\n\n return $rules;\n }", "title": "" }, { "docid": "3b30cc57b2847892d0b83e77c10f691f", "score": "0.7823828", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return [\n 'type' => 'required',\n 'name' => 'required',\n ];\n case 'PUT':\n case 'PATCH':\n return [\n 'name' => 'required',\n ];\n }\n }", "title": "" }, { "docid": "103b23750f11156a94979181418cda2a", "score": "0.78179926", "text": "public function validationRules() : array {\n return $this->validationRules;\n }", "title": "" }, { "docid": "12bf32cdf79f678c176e49b3aa796bd7", "score": "0.78126293", "text": "public function rules()\n {\n $rules = [\n 'name' => 'required'\n ];\n if(null == $this->request->get('label')) {\n $rules['items'] = 'required';\n }\n if(null == $this->request->get('formula')) {\n $rules['formulas'] = 'required';\n }\n return $rules;\n }", "title": "" }, { "docid": "fd9ec9ae4cad3bf36420cca15b933256", "score": "0.7809007", "text": "public function rules()\n {\n $rules = [];\n\n switch ($this->method()) {\n case 'GET':\n break;\n case 'DELETE':\n break;\n case 'POST':\n $rules = [\n 'user_id' => 'bail|integer|required',\n 'title' => 'bail|string|required|min:3|max:50',\n 'description' => 'bail|string|required|min:10|max:250',\n 'estimation' => 'bail|date|required',\n ];\n break;\n case 'PUT':\n $rules = [\n 'title' => 'bail|string|nullable|min:3|max:50',\n 'description' => 'bail|string|nullable|min:10|max:250',\n 'estimation' => 'bail|date|nullable',\n ];\n break;\n }\n return $rules;\n }", "title": "" }, { "docid": "6143c798cc2310e49ce20c0c8f0f0e69", "score": "0.78028923", "text": "protected function getValidationRules()\n {\n $rules = [\n 'username' => 'required|min:3|max:255'\n ];\n\n if (\\Request::isMethod('put') || \\Request::isMethod('patch')) {\n $user_id = Route::current()->parameter('user');\n\n $rules['email'] = [\n 'required',\n 'unique:users,email,' . $user_id,\n 'email'\n ];\n } else {\n $rules['email'] = [\n 'required',\n 'unique:users',\n 'email'\n ];\n }\n\n return $rules;\n }", "title": "" }, { "docid": "e8eb155c31aba6afb2d444e7b1758894", "score": "0.7790699", "text": "public function getValidationRules()\n {\n return [];\n }", "title": "" }, { "docid": "94806e5583bb2e9e8e0d65448c281583", "score": "0.7759397", "text": "function getValidationRules() {\n\t\treturn array(\n\t\t\t'_ID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_UserID' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_Name' => array(\n\t\t\t\t'string' => array(),\n\t\t\t),\n\t\t\t'_Path' => array(\n\t\t\t\t'string' => array(),\n\t\t\t),\n\t\t\t'_Date' => array(\n\t\t\t\t'dateTime' => array(),\n\t\t\t),\n\t\t\t'_Status' => array(\n\t\t\t\t'number' => array(),\n\t\t\t),\n\t\t\t'_UniqID' => array(\n\t\t\t\t'string' => array(),\n\t\t\t),\n\t\t);\n\t}", "title": "" }, { "docid": "a52d8f66be5fa8dcfc8fc2e8cfdef9e6", "score": "0.7755977", "text": "public function rules()\n {\n return RequestServices::$rules;\n }", "title": "" }, { "docid": "c83803ed32ea811246b0af0058438730", "score": "0.7719395", "text": "protected function getValidationRules() {\n return [\n 'brand' => 'required|max:255',\n 'model' => 'required|max:255',\n 'color' => 'required|max:50',\n 'size' => 'required|numeric|between:0,99.9',\n 'price' => 'required|numeric|between:0,999.99'\n ];\n }", "title": "" }, { "docid": "1f166073e0db5669da41ab2f4dc82281", "score": "0.7686111", "text": "public function rules()\n {\n switch ($this->route()->getActionMethod()) {\n case 'update':\n return [\n 'name' => 'required|max:16',\n 'sex' => 'required|between:1,2',\n 'tel' => 'required|max:16',\n 'address' => 'required|max:255',\n ];\n default:\n return [];\n }\n }", "title": "" }, { "docid": "cd5bec9e9d569a456f81970b63507111", "score": "0.7683038", "text": "public function rules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "cd5bec9e9d569a456f81970b63507111", "score": "0.7683038", "text": "public function rules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "cd5bec9e9d569a456f81970b63507111", "score": "0.7683038", "text": "public function rules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "cd5bec9e9d569a456f81970b63507111", "score": "0.7683038", "text": "public function rules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "71898638a902cf7e7072d9266e47f3df", "score": "0.76826257", "text": "public function rules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "ccfd103bfeec1b283476d90bdc2459a8", "score": "0.7673735", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return [\n 'username' => 'required',\n 'user_id' => 'required',\n 'mobile' => 'required|regex:/^1[34578][0-9]{9}$/',\n 'birthday' => 'required',\n 'course_id.*' => 'required',\n 'c_hour.*' => 'required',\n 'c_price.*' => 'required',\n ];\n case 'PUT':\n return [\n 'username' => 'required',\n 'user_id' => 'required',\n 'mobile' => 'required|regex:/^1[34578][0-9]{9}$/',\n 'birthday' => 'required',\n 'course_id.*' => 'required',\n 'c_hour.*' => 'required',\n 'c_price.*' => 'required',\n ];\n }\n }", "title": "" }, { "docid": "5c3d39017722119bdd102b492fb0c395", "score": "0.76718986", "text": "public function rules()\n {\n $rules = [];\n $rules['full_name'] = ['required', 'min:3', 'max:100', new ValidateFullName, new SpamFree,];\n $rules['email'] = ['required', 'email', 'max:255', Rule::unique('users'),];\n $rules['mobile_number'] = ['required', new ValidateMobileNumber, Rule::unique('users'),];\n $rules['role_id'] = ['required', Rule::exists('roles', 'id'),];\n $rules['group_id'] = ['required', Rule::exists('user_groups', 'id'),];\n\n if ($this->getMethod() == 'PUT') {\n $userId = $this->route('user')->id;\n $rules['email'] = ['required', 'email', 'max:255', Rule::unique('users')->ignore($userId),];\n $rules['mobile_number'] = ['required', new ValidateMobileNumber, Rule::unique('users')->ignore($userId),];\n }\n\n return $rules;\n }", "title": "" }, { "docid": "fb28210093cda58dbe54a74fa833bde9", "score": "0.7665361", "text": "public function rules()\n {\n $rules['cn_name'] = 'required';\n $rules['en_name'] = 'required';\n // 添加权限(针对更新)\n if (request()->isMethod('PUT') || request()->isMethod('PATH')) {\n // 修改时 request()->method() 方法返回的是 PUT或PATCH\n $rules['id'] = 'numeric|required';\n }\n return $rules;\n }", "title": "" }, { "docid": "58fe2d9144ef3efd8ea1e63261d4154a", "score": "0.76623225", "text": "protected function rules() {\n\t\treturn $this->rules;\n\t}", "title": "" }, { "docid": "2ae12335c8b8027a6e3f4d98bd789013", "score": "0.7657061", "text": "public function rules()\n {\n $rules = [];\n\n if (Input::has('email')) {\n $rules = [\n 'email' => 'required|email',\n ];\n } elseif (Input::has('password_reset_token')) {\n $rules = [\n 'new_password' => 'required',\n 'confirm_password' => 'required|same:new_password',\n 'password_reset_token' => 'required',\n ];\n } else {\n $rules = [\n 'old_password' => 'required',\n 'new_password' => 'required',\n 'confirm_password' => 'required|same:new_password'\n ];\n }\n return $rules;\n }", "title": "" }, { "docid": "957bfc34394c39051fb2a8c24b5a5cff", "score": "0.7651197", "text": "public function rules()\n {\n $rules = [\n ];\n\n switch (request()->method()) {\n case \"POST\":\n $rules = [\n 'open' => 'required',\n 'domain' => 'required|domain_not_exists',\n 'setting_id' => 'required|message_setting',\n 'description' => 'string',\n ];\n break;\n }\n\n return $rules;\n }", "title": "" }, { "docid": "9e817d27f8c6952d4ae7189c5a4edc45", "score": "0.76483816", "text": "public function rules()\n {\n $rules = Request::$rules;\n $userId = \\Auth::user()->id;\n $rules['project_id'] = 'nullable|in:' . implode(',', Project::pluck('id')->all());\n $rules['device_id'] = 'required|in:' . implode(',', Device::where('status', STATUS_DEVICES_AVAIABLE)->pluck('id')->all());\n $rules['start_time'] = 'required|date_format:Y-m-d|after_or_equal:today';\n $rules['end_time'] = 'required|date_format:Y-m-d|after_or_equal:start_time|max_date_request:start_time,' . MAX_REQUEST_DATE;\n $rules['note'] = 'max:255';\n\n return $rules;\n }", "title": "" }, { "docid": "1941f45dd4463378f6ca96c52004a6ad", "score": "0.76462555", "text": "public function rules()\n {\n $rules = [];\n\n $rules['first_name'] = 'required';\n $rules['last_name'] = 'required';\n $rules['email'] = 'required|email|unique_email';\n $rules['password'] = 'required|min:6';\n $rules['confirm_password'] = 'required|min:6|same:password';\n $rules['secondary_contact'] = 'email|unique_email';\n\n $rules = array_merge($rules, $this->getRulesForUsers($this->get('user')));\n\n return $rules;\n }", "title": "" }, { "docid": "5aa6c4a27f8d73f6cbb41edcc10d6b66", "score": "0.7640125", "text": "public function rules()\n {\n switch ($this->method())\n {\n case 'GET':\n case 'DELETE':\n case 'POST':\n {\n return [\n 'name' => ['required', 'string'],\n 'link_url' => ['required', 'string'],\n ];\n }\n case 'PUT':\n case 'PATCH':\n {\n return [\n 'name' => ['required', 'string'],\n 'link_url' => ['required', 'string'],\n ];\n }\n default:break;\n }\n }", "title": "" }, { "docid": "bdb23e8ac6193df38599ed46b48fa78b", "score": "0.763136", "text": "public function rules()\n {\n $routeName = $this->route()->getName();\n switch ($routeName) {\n case \"api.member-manage.book-bed.store\":\n $rule = [\n \"bed_number\" => \"required\",\n \"bed_cost\" => \"required|numeric\",\n \"check-in_date\" => \"required|integer\",\n \"contract_number\" => \"required\",\n \"appoint_person\" => \"required\",\n \"name\" => \"required\",\n \"gender\" => \"required\",\n \"self-care_ability\" => \"required\",\n \"remark\" => \"required\",\n \"account_id\" => \"required\"\n ];\n break;\n case \"\":\n $rule = [];\n break;\n default:\n $rule = [];\n };\n\n return $rule;\n }", "title": "" }, { "docid": "364323ebc5b80b21dae573b4b1e79e62", "score": "0.7631271", "text": "public function rules()\n {\n switch($this->method())\n {\n case 'GET':\n case 'DELETE':\n {\n return [];\n }\n case 'POST':\n {\n return [\n 'title' => 'required',\n 'content_check' => 'required',\n ];\n }\n case 'PUT':\n case 'PATCH':\n {\n return [\n 'title' => 'required',\n 'content_check' => 'required',\n ];\n }\n default:break;\n }\n }", "title": "" }, { "docid": "8a874d1323aa2164791cbd3e839d5b7f", "score": "0.7613196", "text": "public function rules()\n {\n\n $rules = [];\n\n $rules = array_merge($rules, [\n 'email' => 'required',\n 'amount' => 'required'\n ]);\n\n return $rules;\n }", "title": "" }, { "docid": "01b16e37e6e8ac4de56cc6e529af3389", "score": "0.7612289", "text": "private function getValidationRules()\n {\n return [\n 'region_id' => 'required',\n 'city_id' => 'required',\n 'mark_id' => 'required',\n 'model_id' => 'required',\n 'date_release_id' => 'required|integer|between:1930,' . Carbon::now()->format('Y'),\n 'run' => 'required|integer|between:0,1000000',\n 'state_id' => 'required',\n 'gear_id' => 'required',\n 'color_id' => 'required',\n 'rudder_id' => 'required',\n 'engine_id' => 'required',\n 'kpp_id' => 'required',\n 'vin' => 'size:17',\n 'power' => 'integer',\n 'image' => 'image|between:0,5120'\n ];\n }", "title": "" }, { "docid": "93e646523497ecb4bfc4464e06b8f134", "score": "0.7586139", "text": "public function rules()\n {\n $all_rules = [\n 'email' => [\n 'required',\n 'email',\n 'max:255',\n Rule::uniqueCaseInsensitive($this->repository->getModelTable())\n ->where(static function ($query) {\n $query->whereNull('deleted_at');\n }),\n ],\n 'name' => 'required|string|max:255',\n 'password' => 'required|confirmed|string|min:6|max:255',\n ];\n\n if (Config::get('mmcms.recaptcha.mode') === true) {\n $all_rules['g_recaptcha_response'] = 'bail|required|captcha';\n }\n\n return $all_rules;\n }", "title": "" }, { "docid": "9d7f3ea8198b7432e6a2634796259050", "score": "0.758377", "text": "public function rules()\n {\n $rules = [];\n switch($this->method())\n {\n case 'POST':\n {\n $rules = [\n 'title' => 'required|max:100|min:1|string',\n 'subtitle' => 'required|max:100|min:1|string',\n 'body' => 'required|min:10|string',\n ];\n }\n break;\n case 'PATCH':\n {\n $rules = [\n 'title' => 'required|max:100|min:1|string',\n 'subtitle' => 'required|max:100|min:1|string',\n 'body' => 'required|min:10|string',\n ];\n }\n break;\n default:\n break;\n }\n return $rules;\n\n }", "title": "" }, { "docid": "860c7be98c9085e60e8ecc2542666475", "score": "0.7579504", "text": "public function rules()\n {\n if ($this->method == \"GET\") {\n return [];\n } // Return no rules for forum view request\n\n return [\n 'name' => 'required',\n ];\n }", "title": "" }, { "docid": "bcd6a9b0f44e8b449a2326cc2213d321", "score": "0.75783324", "text": "public function rules()\n {\n switch ($this->method()) {\n\n case 'POST':\n {\n $rules = [];\n\n $rules['goal.name'] = 'required|max:191';\n $rules['goal.provider_id'] = 'required|max:20';\n $rules['goal.participant_id'] = 'required|max:20';\n\n foreach (goalScale() as $key => $value) {\n $rules[\"goal.scale.$key\"] = 'required|max:10000';\n }\n\n return $rules;\n }\n case 'PUT':\n {\n $rules = [];\n\n $rules['goal.activity_ranking'] = 'required|max:20';\n $rules['goal.update_text'] = 'required|max:10000';\n return $rules;\n }\n default:break;\n }\n }", "title": "" }, { "docid": "8583102ef574eace09421150ce4b5abd", "score": "0.75764275", "text": "public function rules()\n {\n if ($this->isMethod('POST')) {\n return $this->createRules();\n } else {\n return $this->updateRules();\n }\n }", "title": "" }, { "docid": "bedcc084a74ac0a5cb46c07a43f5c8eb", "score": "0.75481075", "text": "public function rules()\n {\n $rules = array(\n // email\n array('email', 'required'),\n\n // password\n array('password', 'required'),\n array('password', 'authenticate', 'skipOnError' => true),\n\n // remember_me\n array('remember_me', 'boolean'),\n );\n // recaptcha\n if (Setting::item('recaptcha')) {\n $rules[] = array('recaptcha', 'validators.ReCaptchaValidator', 'privateKey' => Setting::item('recaptchaPrivate'), 'on' => 'recaptcha');\n }\n return $rules;\n }", "title": "" }, { "docid": "d8515ee4f0086a7f5fa40a4134ed6d8e", "score": "0.7542873", "text": "public function getValidationRules()\n\t{\n\t\treturn array(\n\t\t\t'answer' => 'required'\n\t\t);\n\t}", "title": "" }, { "docid": "626c210b1b7ef7bbd2b2c62961952863", "score": "0.7538517", "text": "public function rules()\n {\n if($this->isMethod('post')) {\n return $this->createRules();\n }\n else if ($this->isMethod('put')) {\n return $this->updateRules();\n }\n }", "title": "" }, { "docid": "9c6b2d848932554c98559c0bd435f9b6", "score": "0.7535753", "text": "public function rules()\n {\n $rules = [];\n if ($this->isMethod('post')) {\n $rules = [\n 'name' => 'required|between:2,50|unique:form',\n 'table' => [\n 'required',\n 'regex:/^[a-zA-Z]\\w{1,20}$/',\n 'unique:form'\n ],\n 'sequence' => 'required|integer',\n 'sort' => [\n 'required',\n 'regex:/^[\\s\\w,]{0,20}$/'\n ],\n 'display' => 'required|in:0,1'\n ];\n if ($this->post('display', 1)) {\n $rules['return_type'] = 'required|in:0,1';\n $rules['return_msg'] = 'required';\n $rules['page'] = 'required|integer';\n $rules['is_captcha'] = 'required|in:0,1';\n }\n }\n return $rules;\n }", "title": "" }, { "docid": "c8e52a061c07d25eea9f07fe143dccaf", "score": "0.7528147", "text": "public function rules()\n {\n $global = GlobalSetting::first();\n $rules = [\n 'name' => 'required',\n 'email' => 'required|email',\n 'message' => 'required',\n ];\n if ($global->google_recaptcha_status && $global->google_captcha_version == 'v2') {\n $rules['g-recaptcha-response'] = 'required';\n }\n return $rules;\n }", "title": "" }, { "docid": "e1c552be92c9162d240c9c19bd71229c", "score": "0.7511143", "text": "public function rules()\n {\n\t\tswitch($this->method()) {\n\t\t\tcase 'POST':\n\t\t\t\t{\n\t\t\t\t\treturn [\n\t\t\t\t\t\t'code' => 'required|string',\n\t\t\t\t\t\t'name' => 'required|string',\n\t\t\t\t\t\t'alpha2' => 'required|string|max:2|min:2',\n\t\t\t\t\t\t'alpha3' => 'required|string|max:3|min:3',\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\tcase 'PUT':\n\t\t\t\t{\n\t\t\t\t\treturn [\n\t\t\t\t\t\t'code' => 'required|string',\n\t\t\t\t\t\t'name' => 'required|string',\n\t\t\t\t\t\t'alpha2' => 'required|string|max:2|min:2',\n\t\t\t\t\t\t'alpha3' => 'required|string|max:3|min:3',\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\tdefault:break;\n\t\t}\n }", "title": "" }, { "docid": "d1a8c6d5056e2ee9e69213bbab2d3049", "score": "0.7501005", "text": "public static function getValidationRules(): array\n {\n return [\n 'name' => 'required|string|min:1|max:255',\n 'email_phone' => 'required|string',\n 'message' => 'required|string',\n ];\n }", "title": "" }, { "docid": "a40be6a448537c4b65d0efc764ec514c", "score": "0.74870324", "text": "public function rules()\n {\n switch($this->method()){\n // case 'GET':\n // return $this->__getRules();\n case 'POST':\n return [\n // 'name' =>'required|string|unique:segments',\n 'first_name' =>'required|string',\n 'last_name' =>'required|array|min:1',\n 'email' =>['required','string','email','unique:subscriptions,email'],\n 'birth_day' =>'sometimes|date'\n ];\n case 'PUT':\n return [\n 'first_name' =>'sometime|string',\n 'last_name' =>'sometime|string',\n // 'email' =>['required','string','email','unique:subscriptions,email'],\n 'birth_day' =>'sometimes|date'\n ];\n // case 'DELETE':\n // return $this->__deleteRules();\n default :\n break;\n }\n }", "title": "" }, { "docid": "105392be9ade0b65b65400638edef963", "score": "0.74648327", "text": "public function rules()\n {\n\n $rules = [];\n\n switch ($this->method()) {\n case 'GET':\n case 'DELETE':\n {\n return [];\n break;\n }\n case 'POST':\n {\n $rules = [\n 'url' => '',\n 'username' => '',\n 'password' => '',\n ];\n\n break;\n }\n case 'PUT':\n case 'PATCH':\n {\n $rules = [\n 'url' => '',\n 'username' => '',\n 'password' => '',\n ];\n break;\n }\n default:\n break;\n }\n\n return $rules;\n\n }", "title": "" }, { "docid": "5533516a16af9ad668a00262ce740b12", "score": "0.74564725", "text": "public function rules()\n {\n $routeName = $this->route()->getName();\n switch ($routeName) {\n case \"api.department-manage.store\":\n $rule = [\n \"department_name\" => \"required\",\n \"department_description\" => \"required\",\n ];\n break;\n case \"\":\n $rule = [];\n break;\n };\n\n return $rule;\n }", "title": "" }, { "docid": "e7040bebf01edd39ff865327d8b0cdf4", "score": "0.7450226", "text": "public function rules()\n {\n if ($this->method()==\"POST\")\n {\n $rules = [\n 'name'=>'required',\n 'password'=>'required|confirmed',\n 'email'=>'required|email|unique:users,email',\n ];\n }\n elseif($this->method()==\"PUT\")\n {\n $rules = [\n 'name'=>'required',\n 'password'=>'confirmed',\n 'email'=>'required|email',\n ];\n }\n return $rules;\n }", "title": "" }, { "docid": "bbe840801d68277f834aa070ebc2f6dc", "score": "0.74486", "text": "public function rules()\n {\n $method = explode('@', $this->route()->getActionName())[1];\n return $this->get_rules_arr($method);\n }", "title": "" }, { "docid": "9d0ba3dd7595c16ab0b39e9870b05b0f", "score": "0.74479663", "text": "public function rules()\n {\n $rules = $this->rules;\n $rules['location'] = 'required|integer';\n $rules['area'] = 'required|min:2';\n $rules['direction'] = 'required|min:2';\n $rules['from_city'] = 'required|min:2';\n $rules['to_city'] = 'required|min:2';\n $rules['lat'] = 'required';\n $rules['lng'] = 'required';\n $rules['zone'] = 'required|min:2';\n $rules['authority'] = 'required|min:2';\n return $rules;\n }", "title": "" }, { "docid": "a2c967ae660a85b73882f9f0052f47b2", "score": "0.74473876", "text": "public function rules()\n {\n return array_merge(\n parent::rules(),\n [\n ['conversationId', 'required'],\n ['desk', 'validateDesk'],\n ['client', 'validateClient'],\n ['desk', 'required'],\n ['client', 'required'],\n ['lastChatTime', 'default', 'value' => new MongoDate()],\n ]\n );\n }", "title": "" }, { "docid": "c2ad7f5cc1df80947cc586deac555598", "score": "0.7446859", "text": "public function rules()\n {\n if ($this->method() == 'POST' || $this->method() == 'PUT') {\n return [\n 'title' => 'required|string|max:125',\n 'is_active' => 'required|in:0,1',\n 'public_comment' => 'required|in:0,1',\n 'reply' => 'required|in:0,1',\n 'reply_all' => 'required|in:0,1',\n ];\n } else {\n return [\n\n ];\n }\n }", "title": "" }, { "docid": "22c44c2fa33dc767165e72cea944f97b", "score": "0.7446192", "text": "public function rules()\n {\n return self::$rules;\n }", "title": "" }, { "docid": "a9a51f17f74ca0409f11692d3a1bf6c7", "score": "0.7441471", "text": "public function rules()\n {\n if ($this->isUpdate())\n {\n //\n }\n\n return $this->rules;\n }", "title": "" }, { "docid": "21a6325d6bd8e9c2c29523699833ec9b", "score": "0.7439555", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n return [\n 'status' => 'boolean',\n ];\n break;\n case 'POST':\n return [\n 'user_name' => 'required|string',\n 'operation' => 'required|string',\n 'description' => 'required|string',\n 'status' => 'boolean',\n ];\n break;\n }\n }", "title": "" }, { "docid": "707190d7d3fba8e0fe2269251ec72ed8", "score": "0.7429645", "text": "public function rules()\n {\n switch ($this->method()) {\n case \"GET\":\n return [];\n case \"POST\":\n return [];\n default:\n return [];\n }\n }", "title": "" }, { "docid": "0360cc9a8e895ee5953ea003b352be0e", "score": "0.74211866", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'POST': {\n return $this->IdOnlyRules();\n }\n\n case 'DELETE': {\n return $this->IdOnlyRules();\n }\n\n case 'PATCH': {\n return $this->patchRules();\n }\n\n default:\n break;\n }\n }", "title": "" }, { "docid": "9763e5d83664ffb8b8fcf0c1e73311d9", "score": "0.7420349", "text": "public function rules()\n {\n if ($this->acacha_forms_disable_validation) return [];\n if ($this->acacha_forms_disable_strict_validation) return $this->rules;\n return $this->strictRules;\n }", "title": "" }, { "docid": "d75a6b264391f70313a8b6cee55e75de", "score": "0.7419844", "text": "public function getValidationRules()\n {\n $schema = $this->entityManager->getClassMetadata(get_class($this->entity))->fieldMappings;\n\n $this->parser->setData($schema);\n $this->parser->setIgnore(array('id'));\n\n $rules = $this->parser->parse();\n\n return $rules;\n }", "title": "" }, { "docid": "dbf296a147f2c144e6ed3f90148078d2", "score": "0.7417669", "text": "public function rules()\n {\n $rules = [\n 'name' => 'required',\n 'channels' => 'required|array|min:1',\n 'customer_groups' => 'required|array|min:1',\n 'starts_from' => 'nullable|date',\n 'ends_till' => 'nullable|date|after_or_equal:starts_from',\n 'action_type' => 'required',\n 'discount_amount' => 'required|numeric',\n ];\n\n if (request()->has('action_type') && request()->action_type == 'by_percent') {\n $rules = array_merge($rules, [\n 'discount_amount' => 'required|numeric|min:0|max:100',\n ]);\n }\n\n return $rules;\n }", "title": "" }, { "docid": "c0d1c927d7bc536f32c640792ba4184d", "score": "0.7414345", "text": "public function rules()\n {\n $rules = [\n 'body' => 'required|min:10',\n ];\n\n if (\\Config::get('chatter.security.captcha')) {\n $rules['g-recaptcha-response'] = 'required|captcha';\n }\n\n return $rules;\n }", "title": "" }, { "docid": "327326c7b590c8fd46ee63b02e41cfba", "score": "0.7413908", "text": "public function rules()\n {\n switch($this->method())\n {\n case 'GET':\n case 'DELETE':\n case 'POST':\n {\n return [\n 'username' => 'required',\n 'password' => 'required',\n ]; \n }\n case 'PUT':\n case 'PATCH':\n default:break;\n }\n }", "title": "" }, { "docid": "669b0485760eb01ccc752d927f7b32b7", "score": "0.74016833", "text": "public function rules()\n {\n switch ($this->getMethod())\n {\n case 'POST':\n return self::RULES_POST;\n case 'PUT':\n return self::RULES_PUT;\n case 'DELETE':\n return self::RULES_DELETE;\n default:\n return self::RULES;\n }\n }", "title": "" }, { "docid": "b1ae892558a81d42ba98025e19a29422", "score": "0.7397162", "text": "public function getValidationRules()\n {\n $rules = [];\n\n foreach ($this->rules as $name => $rule) {\n $ruleName = sprintf('2fa.*.settings.%s', $name);\n $rules[$ruleName] = $rule;\n }\n\n return $rules;\n }", "title": "" }, { "docid": "926458ef354ced54a99f13b46e4a07ac", "score": "0.73962855", "text": "public function rules()\n {\n $rules = [\n 'status' => 'required',\n 'sign_off_remarks' => 'required'\n ];\n\n return $rules;\n }", "title": "" }, { "docid": "232ddbc4fcd3e1c5463d600d626e435b", "score": "0.7396023", "text": "public function rules()\n {\n $rules = [\n 'global_name' => 'required|string|max:50',\n 'menu_id' => ['required', Rule::in(Menu::getList()->pluck(\"id\")->toArray())],\n\n 'name' => 'required|string|max:255',\n 'url' => 'required|string|max:255',\n 'open_target' => [\"required\", Rule::in(MenuItem::OPEN_TARGETS)],\n ];\n\n $rules = $this->addActiveFlgRules($rules);\n\n return $rules;\n }", "title": "" }, { "docid": "6252b8a5443173997498f35bf23430e9", "score": "0.7394001", "text": "public function getRules() {\n return [\n 'actions' => [ 'required', ],\n 'user_add' => [ 'required', 'rangeLogin', 'uniqueLogin', ],\n 'pass_add' => [ 'required', 'confirmPassword', 'minPassword' ],\n 'pass_repeat_add' => [ 'required', ],\n 'family_add' => [ 'required', ],\n 'name_add' => [ 'required', ],\n\n ];\n }", "title": "" }, { "docid": "5988f5548a36ad0e7be54161ba920923", "score": "0.73914737", "text": "public function rules()\n {\n $rules = [\n\n ];\n\n return $rules;\n }", "title": "" }, { "docid": "204d9ad4e8c63ebd1cf9cd2c94df8be9", "score": "0.7389003", "text": "public function rules()\n {\n switch ($this->method()){\n case 'POST':\n return [\n 'sp' => 'required|numeric',\n 'dp' => 'required|numeric',\n ];\n break;\n case 'PATCH':\n return [\n 'sp' => 'required|numeric',\n 'dp' => 'required|numeric',\n ];\n break;\n }\n\n }", "title": "" }, { "docid": "eb6a97d26bcb56a9074031f72dfde6c0", "score": "0.73846674", "text": "public function rules()\n {\n if (request('update_type') == 'status') {\n return [\n 'status' => [\n 'required',\n Rule::in([\n Business::STATUS_NORMAL,\n Business::STATUS_FREEZE\n ])\n ]\n ];\n } else {\n return [\n 'tel' => 'required',\n 'address' => 'required',\n 'lng' => 'required',\n 'lat' => 'required',\n 'username' => 'required',\n 'mobile' => 'required'\n ];\n }\n }", "title": "" }, { "docid": "c8a9010d033ec474369a3cf59bb4667e", "score": "0.73833555", "text": "public function rules()\n {\n $rules = [\n 'role_id' => 'required',\n 'password' => 'required|confirmed',\n 'password_confirmation' => 'required'\n ];\n\n // 根据RESTful请求的方法来判断是新建还是更新(PUT)\n if ($this->method() === \"PUT\") {\n // 更新信息时,限制一个id,用于防止校验自身重复\n $rules['name'] = 'required|unique:users,name,' . $_POST[\"id\"];\n $rules['email'] = 'required|unique:users,email,' . $_POST[\"id\"];\n } else {\n $rules['name'] = 'required|unique:users';\n $rules['email'] = 'required|unique:users';\n }\n\n return $rules;\n }", "title": "" }, { "docid": "37095e5b810edc5c3e423bb34f66630e", "score": "0.73823977", "text": "public function rules()\n {\n $rules = array();\n\n $rules['name'] = $this->validarName();\n $rules['lastName'] = $this->validarName();\n $rules['userName'] = $this->validarUserName();\n $rules['email'] = $this->validarEmail();\n $rules['especialidad'] = $this->validarEspecialidad();\n $rules['num_colegiado'] = $this->validarNumColegiado();\n $rules['num_sanitario'] = $this->validarNumSanitario();\n $rules['birthdate'] = $this->validarBirthdate();\n $rules['dni'] = $this->validarDnidni();\n $rules['movil'] = $this->validarMovil();\n $rules['password'] = $this->validarPassword();\n $rules['password_confirmation'] = $this->validarPasswordConfirmation();\n\n return $rules;\n }", "title": "" }, { "docid": "18124b67d5894c07268e91234b4ec4b9", "score": "0.737788", "text": "public function rules(): array\n {\n $rules = [];\n $uri = $this->path();\n switch ($uri) {\n case 'self_intro/upload':\n $rules = [\n 'file' => 'required',\n ];\n break;\n case 'self_intro/editPassWord':\n $rules = [\n 'id' => 'required',\n 'password' => 'required',\n ];\n break;\n case 'self_intro/homeLook':\n $rules = [\n 'password' => 'required',\n ];\n break;\n }\n return $rules;\n }", "title": "" }, { "docid": "2a8ee1716da661d78c028daa2eea5984", "score": "0.73768", "text": "public function getRules()\n {\n $rules = [\n 'name' => 'required',\n 'type' => 'required|in:person,company',\n 'rnc' => '',\n 'noid' => '',\n 'phone' =>'',\n 'cellphone' =>'numeric',\n 'email' =>'email',\n 'address' =>'',\n 'contact_name' =>'' ,\n 'comments' =>'' ,\n 'available' =>'in:0,1' ,\n\n ];\n return $rules;\n }", "title": "" }, { "docid": "825e1d805c5d9d672dede4fb70948d5e", "score": "0.736703", "text": "public function rules()\n {\n if (empty($this->get('class'))) {\n return ['class' => 'required'];\n }\n return $this->get('class')::getRules();\n }", "title": "" }, { "docid": "b8e83ec2971955a992948068fbd888e8", "score": "0.736065", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE':\n {\n return array();\n }\n case 'POST':\n {\n return array(\n 'title'=>'required|string|max:255',\n 'description'=>'required|string|max:555',\n 'company_name'=>'required|string|max:255',\n 'start_date'=>'required|date',\n // 'end_date'=>'date',\n );\n }\n case 'PUT':\n {\n return array(\n 'title'=>'required|string|max:255',\n 'description'=>'required|string|max:555',\n 'company_name'=>'required|string|max:255',\n 'start_date'=>'required|date',\n );\n }\n case 'PATCH':\n\n }\n }", "title": "" }, { "docid": "1658df07323e6fb0b9670a6f16d5e539", "score": "0.7358211", "text": "public function rules()\n {\n if ($this->method() === 'PATCH') {\n return Mount::getRulesForUpdate($this->route()->parameter('mount')->id);\n }\n\n return Mount::getRules();\n }", "title": "" }, { "docid": "b918eed03f20201d579147f38d4164b9", "score": "0.73505574", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'POST': {\n return [\n 'to'=>'required|email',\n 'cc'=>'email',\n 'bcc'=>'email',\n 'subject'=>'required',\n 'message'=>'required'\n ];\n break;\n }\n }\n }", "title": "" }, { "docid": "35ee7be2a191ca45cedb61366e81f2af", "score": "0.73492396", "text": "public function rules()\n {\n\n $rules = [];\n\n switch ($this->method()) {\n case 'GET':\n case 'DELETE':\n {\n return [];\n break;\n }\n case 'POST':\n {\n $rules = [\n 'branch_id' => 'exists:branches,id',\n 'transaction_id' => 'required',\n 'debit_account_id' => 'required',\n 'credit_account_id' => 'required',\n 'amount' => 'required',\n 'narration' => 'required',\n ];\n\n break;\n }\n case 'PUT':\n case 'PATCH':\n {\n $rules = [\n 'branch_id' => 'exists:branches,id',\n 'transaction_id' => 'required',\n 'debit_account_id' => 'required',\n 'credit_account_id' => 'required',\n 'amount' => 'required',\n 'narration' => 'required',\n ];\n break;\n }\n default:\n break;\n }\n\n return $rules;\n\n }", "title": "" }, { "docid": "90f762d9defdeb4a87d9f52033fd121d", "score": "0.73475206", "text": "public function getFilterValidationRules();", "title": "" }, { "docid": "b6de7ff87fb1b4bbf401e7e7e5bc39c4", "score": "0.734566", "text": "public function rules()\n {\n switch ($this->method())\n {\n case 'POST': //create\n return [\n 'name' => 'required|string|max:30',\n 'type' => 'required|integer',\n 'img' => 'nullable|url',\n 'url' => 'nullable|string|max:255',\n 'sort' => 'required|integer',\n 'state' => 'required|integer',\n ];\n case 'PUT': //update\n return [\n 'name' => 'required|string|max:30',\n 'type' => 'required|integer',\n 'img' => 'nullable|url',\n 'url' => 'nullable|string|max:255',\n 'sort' => 'required|integer',\n 'state' => 'required|integer',\n ];\n case 'PATCH':\n case 'GET':\n case 'DELETE':\n default:\n {\n return [];\n }\n }\n }", "title": "" }, { "docid": "d04a249d08672e78eefcbf2b5d3dda78", "score": "0.73448825", "text": "public function defineValidationRules()\n {\n return [];\n }", "title": "" }, { "docid": "5ff7ae7890a43375a7b1d435e06231d4", "score": "0.7343403", "text": "public function rules()\n {\n $rules = [\n 'name' => 'required|min:3',\n 'gameId' => 'required|integer',\n 'image' => 'image',\n 'roster' => 'required|array'\n ];\n\n foreach ($this->request->get('roster') as $key => $member) {\n $rules['roster.' . $key . '.userId'] = 'required|integer';\n $rules['roster.' . $key . '.captain'] = 'boolean';\n }\n\n return $rules;\n }", "title": "" }, { "docid": "fd9d196236fef19b90f80eae1a0e2b0a", "score": "0.73420054", "text": "public function rules()\n {\n $rules = [\n Knowledge::COL_CODE => 'required|unique:knowledge,code,'.$this->knowledge,\n Knowledge::COL_CONCLUSION => 'required|exists:facts,code',\n Knowledge::COL_RELIABILITY => 'required|numeric|between:0,1',\n Knowledge::COL_STATUS => 'required|boolean',\n ];\n foreach ($this->request->get('criteria') as $key => $value) {\n $rules['criteria.'.$key] = 'required|exists:criterias,code';\n }\n foreach ($this->request->get('operators') as $key => $value) {\n $rules['operators.'.$key] = 'required|numeric|between:0,3';\n }\n foreach ($this->request->get('scores') as $key => $value) {\n $rules['scores.'.$key] = 'required|numeric|between:0,1';\n }\n\n return $rules;\n }", "title": "" }, { "docid": "b0d9a89503345d656c906ba6b7385cb1", "score": "0.73401564", "text": "public function rules()\n {\n $method = $this->getMethod();\n\n if ($method !== 'PUT' && $method !== 'POST') {\n return [];\n }\n\n return [\n 'consume_name' => 'required',\n 'consume_time' => 'required|date',\n 'consume_cost' => 'sometimes|numeric|min:0',\n 'good_id' => 'sometimes|exists:goods,id',\n 'shop_id' => 'sometimes|exists:shops,id'\n ];\n }", "title": "" }, { "docid": "19c651e600de0184ba283593acef0a2b", "score": "0.7340127", "text": "public function rules()\n {\n $rules = [];\n\n if(action_name() == 'members'){\n $rules['activity_id'] = 'required';\n }\n\n if(action_name() == 'auth'){\n $rules['user_id'] = ['required'];\n $rules['appid'] = ['required'];\n }\n\n return $rules;\n }", "title": "" }, { "docid": "297e33d19038ac8ca6ad5ebe004b7a79", "score": "0.73347276", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return [\n 'name' => 'bail|required|string|unique:skill|max:50',\n 'category_id' => 'required',\n 'start_from' => 'required|integer|min:' .\n Carbon::now()->startOfCentury()->year . '|max:' . date('Y'),\n 'user_id' => 'required'\n ];\n break;\n case 'PUT':\n return [\n 'name' => 'required|string|max:50',\n 'category_id' => 'bail|required',\n 'start_from' => 'bail|required|integer|min:' .\n Carbon::now()->startOfCentury()->year . '|max:' . date('Y'),\n 'user_id' => 'required'\n ];\n break;\n }\n }", "title": "" }, { "docid": "95ce20fc7886d6aba72555e29af8b597", "score": "0.73324835", "text": "public function rules()\n {\n $rules = parent::rules();\n return $rules;\n }", "title": "" } ]
ad88855074172f7b88985228dac50d5e
Show the specified resource.
[ { "docid": "69fa2fec1792ef78b1b58dfe01331f4b", "score": "0.0", "text": "public function show($id)\n {\n $route = Route::find($id);\n $response = APIHelpers::createAPIResponse(false,200,'',$route);\n return response()->json($response,200);\n }", "title": "" } ]
[ { "docid": "cc12628aa1525caac0bf08e767bd6cb4", "score": "0.75417775", "text": "public function view(ResourceInterface $resource);", "title": "" }, { "docid": "05f03e4964305c5851a8417af8f32544", "score": "0.719648", "text": "public function show($resource, $id)\n {\n return $this->repository->get($id);\n }", "title": "" }, { "docid": "3ee4a64030fd6d594c526bf49945971f", "score": "0.7068162", "text": "public function show($id)\n {\n $res = Resource::find($id);\n return view('resource.show')->withResource($res);\n }", "title": "" }, { "docid": "9579e337a5325a82370abb431f646b6f", "score": "0.703437", "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": "48b723515995fb4178256251ea323c04", "score": "0.6900663", "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": "461e196dfe64422deb4a744c50eb5d8d", "score": "0.680399", "text": "public function show($id) {\n //view/edit page referred to as one entity in spec\n }", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.6802355", "text": "public function show($id) {}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.6802355", "text": "public function show($id) {}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.6802355", "text": "public function show($id) {}", "title": "" }, { "docid": "2e3da5773c9c5d59c21b1af4e1ac8cd8", "score": "0.6792931", "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": "3fb44335bf5e5dca76ae4c41be3fee5d", "score": "0.6766321", "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": "1a2ff798e7b52737e1e6ae5b0d854f6a", "score": "0.67157966", "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": "e918056f269cc66c35d0c9d5ae72cf98", "score": "0.6640159", "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": "63a92839c87307963a49b2b9d9cc5823", "score": "0.6639396", "text": "public function show($id){}", "title": "" }, { "docid": "63a92839c87307963a49b2b9d9cc5823", "score": "0.6639396", "text": "public function show($id){}", "title": "" }, { "docid": "81b16bb8460887cb8006a04f2b0e7113", "score": "0.66321856", "text": "public function show($id);", "title": "" }, { "docid": "81b16bb8460887cb8006a04f2b0e7113", "score": "0.66321856", "text": "public function show($id);", "title": "" }, { "docid": "8b33639674b143bef15ae6e02ea3ef1d", "score": "0.65837383", "text": "public function show($id) {\n\t\t\n\t}", "title": "" }, { "docid": "ecdc5dd9611d1734404c92d923029a39", "score": "0.6565534", "text": "public function show($id)\n {\n echo self::routeNamed();\n }", "title": "" }, { "docid": "5df2376bef8dd69621a6ce7e2afd0bf4", "score": "0.6563111", "text": "abstract public function show($id);", "title": "" }, { "docid": "5df2376bef8dd69621a6ce7e2afd0bf4", "score": "0.6563111", "text": "abstract public function show($id);", "title": "" }, { "docid": "ea3e059853b58df5488fa70a7fd54c3b", "score": "0.65505147", "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": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.65498114", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.65498114", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.65498114", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.65498114", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.65498114", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.65498114", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.65498114", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.65498114", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.65498114", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.65498114", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.65498114", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.65498114", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.65498114", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.65498114", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.65498114", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.65498114", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.65498114", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.65498114", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.65498114", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.65498114", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "582af2cdaf3240886be6545fc34200e5", "score": "0.65435684", "text": "public function show($id)\n {\n \n }", "title": "" }, { "docid": "582af2cdaf3240886be6545fc34200e5", "score": "0.65435684", "text": "public function show($id)\n {\n \n }", "title": "" }, { "docid": "582af2cdaf3240886be6545fc34200e5", "score": "0.65435684", "text": "public function show($id)\n {\n \n }", "title": "" }, { "docid": "582af2cdaf3240886be6545fc34200e5", "score": "0.65435684", "text": "public function show($id)\n {\n \n }", "title": "" }, { "docid": "582af2cdaf3240886be6545fc34200e5", "score": "0.65435684", "text": "public function show($id)\n {\n \n }", "title": "" }, { "docid": "582af2cdaf3240886be6545fc34200e5", "score": "0.65435684", "text": "public function show($id)\n {\n \n }", "title": "" }, { "docid": "582af2cdaf3240886be6545fc34200e5", "score": "0.65435684", "text": "public function show($id)\n {\n \n }", "title": "" }, { "docid": "582af2cdaf3240886be6545fc34200e5", "score": "0.65435684", "text": "public function show($id)\n {\n \n }", "title": "" }, { "docid": "582af2cdaf3240886be6545fc34200e5", "score": "0.65435684", "text": "public function show($id)\n {\n \n }", "title": "" }, { "docid": "582af2cdaf3240886be6545fc34200e5", "score": "0.65435684", "text": "public function show($id)\n {\n \n }", "title": "" }, { "docid": "582af2cdaf3240886be6545fc34200e5", "score": "0.65435684", "text": "public function show($id)\n {\n \n }", "title": "" }, { "docid": "a0cff1437ffee2a4279f65c348e5c9f2", "score": "0.651743", "text": "public function show($id) {\n\n }", "title": "" }, { "docid": "68ba4348da2d2e2e73db056d5ac5f5f0", "score": "0.65161794", "text": "public function show($id) {\n }", "title": "" }, { "docid": "e871bf67c885c4b595a1f5cc980d032e", "score": "0.65146947", "text": "public function show()\n {\n \n \n }", "title": "" }, { "docid": "a12578e51a52699792478e3087df077a", "score": "0.6514694", "text": "protected function addResourceShow($name, $base, $controller, $options)\n {\n $uri = $this->getResourceUri($name).'/{'.$base.'}';\n\n $action = $this->getResourceAction($name, $controller, 'show', $options);\n\n return $this->router->get($uri, $action);\n }", "title": "" }, { "docid": "dc86cb2c9d7b4c711b54fb118965d2e5", "score": "0.65081596", "text": "public function show($id)\n {\n\n }", "title": "" }, { "docid": "dc86cb2c9d7b4c711b54fb118965d2e5", "score": "0.65081596", "text": "public function show($id)\n {\n\n }", "title": "" }, { "docid": "dc86cb2c9d7b4c711b54fb118965d2e5", "score": "0.65081596", "text": "public function show($id)\n {\n\n }", "title": "" }, { "docid": "f673f590413764a18ab2ce8caac36ff5", "score": "0.6507456", "text": "public function show($id) {\n //\n }", "title": "" }, { "docid": "f673f590413764a18ab2ce8caac36ff5", "score": "0.6507456", "text": "public function show($id) {\n //\n }", "title": "" }, { "docid": "560ae0fd472bad5f1d21beeed5dfbbdd", "score": "0.6505208", "text": "public function show(){}", "title": "" }, { "docid": "6b33ab315aa5d13d1c883e0e88e1f5cc", "score": "0.65002257", "text": "public function show($id)\n {\n \n }", "title": "" }, { "docid": "6b33ab315aa5d13d1c883e0e88e1f5cc", "score": "0.65002257", "text": "public function show($id)\n {\n \n }", "title": "" }, { "docid": "6b33ab315aa5d13d1c883e0e88e1f5cc", "score": "0.65002257", "text": "public function show($id)\n {\n \n }", "title": "" }, { "docid": "9a28e42aa633511a42cb70db3b7fcc26", "score": "0.65001917", "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": "0465b5fe008a3153a8a032fca67abfed", "score": "0.649979", "text": "public function show() { }", "title": "" }, { "docid": "ed0a78f968527a6f0aac6b034f5d830e", "score": "0.64982235", "text": "public function show($id)\n {\n //\n return \"show\";\n }", "title": "" }, { "docid": "ce9b087dd4e15b9eea4a7479cc07b51c", "score": "0.6498009", "text": "public function show($id)\r\n {\r\n\r\n\r\n }", "title": "" }, { "docid": "5b961fa408c73f8687be71c4a1be3829", "score": "0.64925724", "text": "public function show($id)\n {\n // not neccessary\n \n }", "title": "" }, { "docid": "51d3901216ab7ada0ebb32282abca6fd", "score": "0.6491058", "text": "public function show($id)\n {\n \n }", "title": "" }, { "docid": "51d3901216ab7ada0ebb32282abca6fd", "score": "0.6491058", "text": "public function show($id)\n {\n \n }", "title": "" }, { "docid": "51d3901216ab7ada0ebb32282abca6fd", "score": "0.6491058", "text": "public function show($id)\n {\n \n }", "title": "" }, { "docid": "572a9f2e8f27aa2200f1aeacd8cd8a69", "score": "0.64900094", "text": "public function show($id)\n {\n }", "title": "" }, { "docid": "9cb7804a438e90e9e21e2a5242d237a3", "score": "0.64893836", "text": "public function show($id)\n {\n \n }", "title": "" }, { "docid": "d936662ad1c81979476df2e0767c5e19", "score": "0.6481819", "text": "public function show($id)\n\t{\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "ccac840e49be1b854425819ad8c8b559", "score": "0.64809155", "text": "public function show($id)\n { \n }", "title": "" }, { "docid": "d03bcabcbed93b5ee787b6be9f70b0b0", "score": "0.6480796", "text": "public function show($id)\r\r\n {\r\r\n //\r\r\n }", "title": "" }, { "docid": "d03bcabcbed93b5ee787b6be9f70b0b0", "score": "0.6480796", "text": "public function show($id)\r\r\n {\r\r\n //\r\r\n }", "title": "" }, { "docid": "2781ac437c29e840eabdb987b8c492f4", "score": "0.6472975", "text": "public function show($id)\n {\n\n }", "title": "" }, { "docid": "2781ac437c29e840eabdb987b8c492f4", "score": "0.6472975", "text": "public function show($id)\n {\n\n }", "title": "" }, { "docid": "2781ac437c29e840eabdb987b8c492f4", "score": "0.6472975", "text": "public function show($id)\n {\n\n }", "title": "" }, { "docid": "2781ac437c29e840eabdb987b8c492f4", "score": "0.6472975", "text": "public function show($id)\n {\n\n }", "title": "" }, { "docid": "2781ac437c29e840eabdb987b8c492f4", "score": "0.6472975", "text": "public function show($id)\n {\n\n }", "title": "" }, { "docid": "2781ac437c29e840eabdb987b8c492f4", "score": "0.6472975", "text": "public function show($id)\n {\n\n }", "title": "" }, { "docid": "2781ac437c29e840eabdb987b8c492f4", "score": "0.6472975", "text": "public function show($id)\n {\n\n }", "title": "" }, { "docid": "2781ac437c29e840eabdb987b8c492f4", "score": "0.6472975", "text": "public function show($id)\n {\n\n }", "title": "" }, { "docid": "2781ac437c29e840eabdb987b8c492f4", "score": "0.6472975", "text": "public function show($id)\n {\n\n }", "title": "" }, { "docid": "2781ac437c29e840eabdb987b8c492f4", "score": "0.6472975", "text": "public function show($id)\n {\n\n }", "title": "" }, { "docid": "2781ac437c29e840eabdb987b8c492f4", "score": "0.6472975", "text": "public function show($id)\n {\n\n }", "title": "" }, { "docid": "2781ac437c29e840eabdb987b8c492f4", "score": "0.6472975", "text": "public function show($id)\n {\n\n }", "title": "" }, { "docid": "2781ac437c29e840eabdb987b8c492f4", "score": "0.6472975", "text": "public function show($id)\n {\n\n }", "title": "" }, { "docid": "2781ac437c29e840eabdb987b8c492f4", "score": "0.6472975", "text": "public function show($id)\n {\n\n }", "title": "" }, { "docid": "2781ac437c29e840eabdb987b8c492f4", "score": "0.6472975", "text": "public function show($id)\n {\n\n }", "title": "" }, { "docid": "2781ac437c29e840eabdb987b8c492f4", "score": "0.6472975", "text": "public function show($id)\n {\n\n }", "title": "" }, { "docid": "2781ac437c29e840eabdb987b8c492f4", "score": "0.6472975", "text": "public function show($id)\n {\n\n }", "title": "" }, { "docid": "2781ac437c29e840eabdb987b8c492f4", "score": "0.6472975", "text": "public function show($id)\n {\n\n }", "title": "" }, { "docid": "2781ac437c29e840eabdb987b8c492f4", "score": "0.6472975", "text": "public function show($id)\n {\n\n }", "title": "" }, { "docid": "2781ac437c29e840eabdb987b8c492f4", "score": "0.6472975", "text": "public function show($id)\n {\n\n }", "title": "" }, { "docid": "2781ac437c29e840eabdb987b8c492f4", "score": "0.6472975", "text": "public function show($id)\n {\n\n }", "title": "" } ]
4c5dd00471bab6c964e98ff72a0e4d50
Special Finds the showtime from the show that contains a given time Args: $time a unix timestamp Returns: array() a time row array of (show_id, start_day, start_time, end_day, end_time, alternating(0,1,2)) where start_day and end_day are weekday numbers from 06 start_time and end_time are "hh:mm:ss" strings
[ { "docid": "68b2e098aba9acef15085700c863c90c", "score": "0.6253388", "text": "function getMatchingTime($time) {\n\t\t$target_time = ShowTime::createWeekdayTime(date(\"H:i:s\", $time),date(\"w\", $time));\n\t\t$target_week = ShowTime::getWeekNum($time);\n\t\tforeach($this->times as $time_r) {\n\t\t\tif ($time_r['alternating'] == 0 || $time_r['alternating'] == $target_week) {\n\t\t\t\t$start_wdt = ShowTime::createWeekdayTime($time_r['start_time'],$time_r['start_day']);\n\t\t\t\t$end_wdt = ShowTime::createWeekdayTime($time_r['end_time'],$time_r['end_day']);\n\t\t\t\tif ($start_wdt > $end_wdt) { // if start time later than end time, week wrap-around\n\t\t\t\t\t$end_wdt = ShowTime::addWeek($end_wdt);\n\t\t\t\t}\n\t\t\t\tif ($target_time >= $start_wdt && $target_time < $end_wdt) { // a match\n\t\t\t\t\treturn $time_r;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null; // No match\n\t}", "title": "" } ]
[ { "docid": "a6af325f3699af1457206107c375d3c2", "score": "0.73824835", "text": "function getShowByTime($time) {\n//\t\techo 'finding show for time '.$time.' ('.date(\"H:i:s\", $time).')';\n\t\t$target_wdt = ShowTime::createWeekdayTime(date(\"H:i:s\", $time),date(\"w\", $time));\n\t\t$target_weeknum = ShowTime::getWeekNum($time);\n\t\t// Retrieve all active shows\n\t\t$shows = $this->getAllShows();\n\t\tforeach ($shows as $show) {\n\t\t\tforeach ($show->times as $time_r) {\n\n\n\t\t\t\tif ($time_r['alternating'] == 0 || $time_r['alternating'] == $target_weeknum) {\n\t\t\t\t\t$start_wdt = ShowTime::createWeekdayTime($time_r['start_time'],$time_r['start_day']);\n\t\t\t\t\t$end_wdt = ShowTime::createWeekdayTime($time_r['end_time'],$time_r['end_day']);\n\t\t\t\t\tif ($start_wdt > $end_wdt) {\n\t\t\t\t\t\t// fixme \n\t\t\t\t\t\t// if start time later than end time, week wrap-around\n\t\t\t\t\t\t// UNLESS there is human error in show info\n\t\t\t\t\t\t// can only be wrap-around case if show start day is on saturday\n\t\t\t\t\t\t$end_wdt = ShowTime::addWeek($end_wdt);\n\t\t\t\t\t}\n\t\t\t\t\tif ($target_wdt >= $start_wdt && $target_wdt < $end_wdt) { // a match\n//\t\t\t\t\t\techo ' target: '.$target_wdt;\n//\t\t\t\t\t\techo ' start:'.$start_wdt;\n//\t\t\t\t\t\techo ' end:'.$end_wdt;\n\t\t\t\t\t\treturn $show;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null; // No match, return null\n\t}", "title": "" }, { "docid": "d0b041c937207a345c04def5b0b18f51", "score": "0.6795444", "text": "function getAllShowBlocksByTime($time) {\n\t\t$lastSunday = strtotime(\"last Sunday\", $time);\n\t\t$nextSunday = strtotime(\"next Sunday\", $time);\n\t\t$start_wdt = ShowTime::createWeekdayTime(date(\"H:i:s\", $time),date(\"w\", $time));\n\t\t$start_weeknum = ShowTime::getWeekNum($time);\n\t\t$shows = $this->getAllShows();\n\t\t$showblocks = array();\n\t\t// Create timeblocks for each show, then add them to $timeblocks\n\t\tforeach ($shows as $show) {\n\t\t\tforeach ($show->times as $time_r) {\n\t\t\t\t$time_r['show_name'] = $show->name;\n\t\t\t\t$time_r['show_id'] = $show->id;\n\t\t\t\t$wdt = ShowTime::createWeekdayTime($time_r['start_time'],$time_r['start_day']);\n\t\t\t\t$wdt_end = ShowTime::createWeekdayTime($time_r['end_time'],$time_r['end_day']);\n\t\t\t\t$duration = ($wdt_end - $wdt)/3600; // 3600 seconds in an hour\n\t\t\t\t\t\n\t\t\t\t// If not alternating, create two rows\n\t\t\t\tif ($time_r['alternating'] == 0) {\n\t\t\t\t\t$time_r2 = $time_r; // Create duplicate time row\n\t\t\t\t\t// Before start date, so move to end\n\t\t\t\t\tif ($wdt < $start_wdt) {\n\t\t\t\t\t\t$time_r['wdt'] = ShowTime::addWeek($wdt);\n\t\t\t\t\t\t$time_r2['wdt'] = ShowTime::addWeek($wdt,2);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$time_r['wdt'] = $wdt;\n\t\t\t\t\t\t$time_r2['wdt'] = ShowTime::addWeek($wdt); // Only add one week\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//tack on duration\n\t\t\t\t\t$time_r['duration'] = $duration;\n\t\t\t\t\t$time_r2['duration'] = $duration;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t$time_r['unixtime'] = $time_r['wdt'] + $lastSunday;\n\t\t\t\t\t$time_r2['unixtime'] = $time_r2['wdt'] + $lastSunday;\n\n\t\t\t\t\t// Add both time rows\n\t\t\t\t\t$showblocks[] = $time_r;\n\t\t\t\t\t$showblocks[] = $time_r2;\n\t\t\t\t}\n\t\t\t\t// Only one time row\n\t\t\t\telse {\n\t\t\t\t\t// Different week number\n\t\t\t\t\tif ($time_r['alternating'] != $start_weeknum) {\n\t\t\t\t\t\t$time_r['wdt'] = ShowTime::addWeek($wdt); // Add one week\n\t\t\t\t\t}\n\t\t\t\t\t// Same week number, but before start date\n\t\t\t\t\telse if ($wdt < $start_wdt) {\n\t\t\t\t\t\t$time_r['wdt'] = ShowTime::addWeek($wdt,2); // Add two weeks\n\t\t\t\t\t}\n\t\t\t\t\t// Same week number, after start date\n\t\t\t\t\telse {\n\t\t\t\t\t\t$time_r['wdt'] = $wdt; // unchanged\n\t\t\t\t\t}\n\t\t\t\t\t// tack on duration\n\t\t\t\t\t$time_r['duration'] = $duration;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t$time_r['unixtime'] = $time_r['wdt'] + $lastSunday;\n\t\t\t\t\t\n\t\t\t\t\t// Add time row\n\t\t\t\t\t$showblocks[] = $time_r;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t// All the timeblocks are now in $timeblocks - time to sort!\n\t\tusort($showblocks, array(\"ShowBlock\",\"compShowBlocks\"));\n\t\t\n\t\treturn $showblocks;\n\t}", "title": "" }, { "docid": "c668de24b616090a154d4e43426331ad", "score": "0.56523645", "text": "protected static function _convertTimeTo24hArray($time) {\n if(!is_array($time)) {\n $time = array(0,0);\n }\n list($hours, $minutes) = array(@$time[AW_Booking_Block_Catalog_Product_Options_Date::TYPE_HOURS], @$time[AW_Booking_Block_Catalog_Product_Options_Date::TYPE_MINUTES]);\n if(isset($time[AW_Booking_Block_Catalog_Product_Options_Date::TYPE_DAYPART])) {\n // Am/Pm\n if($hours == 12) {\n $hours = 0;\n }\n if($time[AW_Booking_Block_Catalog_Product_Options_Date::TYPE_DAYPART] == 'pm') {\n $hours += 12;\n }\n }\n return array($hours, $minutes);\n }", "title": "" }, { "docid": "7c2399097132cb464e9730f094dd9b44", "score": "0.5520799", "text": "private function timeOfDay() {\n return (new Hexpress())->find(function($hex) {\n $hex->has($this->hour())->with(':')->with($this->minute())->maybe(function($hex) { $hex->has(':')->with($this->second()); });\n }, 'timeOfDay');\n }", "title": "" }, { "docid": "342418b9b0b1b33be8da605afbca55be", "score": "0.54879797", "text": "function lookup_showtimes() {\n\t\t$film_id = $this->input->post('id');\n\t\t$result = array();\n\n\t\tif (!$film_id) return json_encode($result);\n\n\t\t$sql = \"SELECT * FROM \n\t\t\t\tevents_times\n\t\t\t\tWHERE films_id = \" . $this->db->escape($film_id)\n\t\t\t\t. \" ORDER BY start_time\";\n\t\t$query = $this->db->query($sql);\n\t\t\n\t\t$out = array();\n\t\tforeach ($query->result() as $row) {\n\t\t\t$row->date = date('Y-m-d', strtotime($row->start_time));\n\t\t\t$row->start = date('h:i a', strtotime($row->start_time));\n\t\t\t$row->end = date('h:i a', strtotime($row->end_time));\n\t\t\t$out[] = $row;\n\t\t}\n\t\techo json_encode($out);\n\t}", "title": "" }, { "docid": "dd2f2e58acf279270c798127a176b591", "score": "0.54414904", "text": "function getFormattedMatchingTime($time) {\n\t\tif ($time_r = $this->getMatchingTime($time)) {\n\t\t\t// Since start_time and end_time are \"hh:mm:ss\" strings convert them to dates first\n\t\t\t$start_t = strtotime($time_r['start_time']);\n\t\t\t$end_t = strtotime($time_r['end_time']);\n\t\t\tif ($time_r['start_day'] == $time_r['end_day']) {\n\t\t\t\treturn date(\"H:i\",$start_t).\" - \".date(\"H:i\",$end_t); // They are now \"hh:mm\" strings\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn \"(\".ShowTime::$dow_simp[$time_r['start_day']].\") \".date(\"H:i\",$start_t).\" - \".\"(\".ShowTime::$dow_simp[$time_r['end_day']].\") \".date(\"H:i\",$end_t);\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "30ce66fb368babc6aab747ba254314b0", "score": "0.5395294", "text": "static function getDatetimeCalendar(int $microsite_id, string $date, string $time) {\n\n $now = Carbon::parse(trim($date) . \" \" . trim($time));\n $nextday = $now->copy()->addDay();\n \n $lastTurn = res_turn_calendar::fromMicrosite($microsite_id, $date, $date)->where(function($query) use ($time){\n $query = $query->whereRaw(\"(start_time < end_time AND '$time' >= start_time AND '$time' <= end_time)\");\n $query = $query->orWhereRaw(\"(start_time > end_time AND '$time' >= start_time AND '$time' <= '23:59:59')\");\n $query = $query->orWhereRaw(\"(start_time > end_time AND '$time' >= '00:00:00' AND '$time' <= end_time)\");\n return $query;\n })->orderBy('start_date')->first();\n \n if($lastTurn){\n return (strcmp($lastTurn->start_time, $lastTurn->end_time) > 0 && strcmp($time, \"00:00:00\") >= 0 && strcmp($time, $lastTurn->end_time) <= 0)? $nextday->toDateTimeString():$now->toDateTimeString();\n }\n \n $eventFree = ev_event::eventFreeActive($date, $date)->select('*', DB::raw(\"DATE_FORMAT(ev_event.datetime_event, '%Y-%m-%d') AS start_date\"))\n ->where('ms_microsite_id', $microsite_id)->whereHas('turn', function($query) use ($time){\n $query = $query->whereRaw(\"(hours_ini < hours_end AND '$time' >= hours_ini AND '$time' <= hours_end)\");\n $query = $query->orWhereRaw(\"(hours_ini > hours_end AND '$time' >= hours_ini AND '$time' <= '23:59:59')\");\n $query = $query->orWhereRaw(\"(hours_ini > hours_end AND '$time' >= '00:00:00' AND '$time' <= hours_end)\");\n return $query;\n })->with(['turn'])->orderBy('datetime_event')->first();\n \n if($eventFree){\n $lastTurn = $eventFree->turn;\n return (strcmp($lastTurn->hours_ini, $lastTurn->hours_end) > 0 && strcmp($time, \"00:00:00\") >= 0 && strcmp($time, $lastTurn->hours_end) <= 0)? $nextday->toDateTimeString():$now->toDateTimeString();\n }\n \n\n return false;\n }", "title": "" }, { "docid": "d565ca2607fa1a060ee3b0d1b865d8e0", "score": "0.5388015", "text": "private function _time()\n {\n return (new Hexpress())->find(function($hex) { $hex->has($this->timeOfDay())->with($this->zone()); }, 'time');\n }", "title": "" }, { "docid": "4fa615e6d6786cc765202471e8045a6f", "score": "0.53450435", "text": "public function whereTime();", "title": "" }, { "docid": "b310d265e70026b0ef1763d32921a49f", "score": "0.534468", "text": "function getCurrentShownameAndTime() {\n\t\t$show = $this->getCurrentShow();\n\t\treturn array($show->name, $show->getFormattedMatchingTime($this->getCurrentTime()));\n\t}", "title": "" }, { "docid": "b8148b5e41700c67474a207497154c15", "score": "0.53010166", "text": "public function processAddTimes($form){\n\t\t$return = array();\n\t\t\n\t\tif (!isset($form['Time'])) {\n\t\t\treturn false;\n\t\t} elseif (\n\t\t\t!isset($form['Time']['station_line']) ||\n\t\t\t!isset($form['Time']['day']) ||\n\t\t\t!isset($form['Time']['type']) || \n\t\t\t!isset($form['Time']['time'])\n\t\t) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(!$this->stationLine = $this->Line->StationLine->find('first', array(\n\t\t\t'conditions' => array('StationLine.id' => $this->Station->StationLine->idFromStationLineName($form['Time']['station_line']))\n\t\t))){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (!in_array($form['Time']['day'], array('L', 'LV', 'S', 'D'))) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (count($form['Time']['time']) != 24) {\n\t\t\treturn false;\n\t\t}\n\t\tforeach ($form['Time']['time'] as $hour => $time) {\n\t\t\tif (!isset($time['minutes'])) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\tif (empty($time['minutes'])) {\n\t\t\t\tcontinue;\t\n\t\t\t}\n\t\t\t\n\t\t\tforeach (explode(' ', $time['minutes']) as $minute) {\n\t\t\t\tif (!is_numeric($minute)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$return_item = array(\n\t\t\t\t\t'station_id' => $this->stationLine['Station']['id'],\n\t\t\t\t\t'line_id' => $this->stationLine['Line']['id'],\n\t\t\t\t\t'time' => date('H:i', strtotime($hour . ':' . $minute)),\n\t\t\t\t\t'day' => $form['Time']['day'],\n\t\t\t\t\t'type' => $form['Time']['type'],\n\t\t\t\t);\n\t\t\t\t\n\t\t\t\tif($occurances = $this->_timeOccurances($return_item['time'], $return_item['day'], $return_item['type'])){\n\t\t\t\t\t$return_item['id'] = $occurances['Time']['id'];\n\t\t\t\t\t$return_item['occurances'] = $occurances['Time']['occurances'] + 1;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$return[] = $return_item;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn (!empty($return)) ? $return : false;\n\t}", "title": "" }, { "docid": "e39ad8dd58750f7e3aa961cc2a85a748", "score": "0.52089363", "text": "public function getMinuteRecords ($event_id, $pid = -1, $getQuarters = 1, $show = 0) {\n // use pid = 0 to get just the quarter timing\n // getQuarters=0 means to exclude the game timing\n // getQuarters=1 means include the game timing\n if($show ==1) {\n echo \"<br>SHOW is ON:<br> event_id:$event_id<br> pid:$pid<br> getQuarters:$getQuarters<br>==========<br>\";\n }\n \n if($pid == -1 AND $getQuarters == 1) {\n $where_string = \"\";\n } elseif ($pid <> -1 and $getQuarters == 1) {\n echo \"Yo<BR>\";\n $where_string = \" AND ( person_id = 0 OR person_id = $pid )\";\n } elseif($pid <> -1 and $getQuarters == 0) {\n $where_string = \" AND ( person_id = $pid )\";\n } else {\n $where_string = \" AND THERE SHOULD NOT BE AN ELSE \"; \n }\n $sql = \"SELECT * FROM clock WHERE (event_id=$event_id $where_string) ORDER BY video_time;\";\n $clean_sql = $this->db->clean_string($sql);\n $this->db->query($sql, $show);\n $results = $this->db->resultset($clean_sql);\n \n $timing = array('clock' => array(), 'player_io');\n foreach ($results as $result) {\n $event_id = $result['event_id'];\n $event_key=\"event_$event_id\";\n if($result['person_id'] == 0) { //manage clock timing\n if(!isset($timing['clock'][$event_key])) {\n $timing['clock'][$event_key] = array(); \n }\n $periods = explode('_',$result['action']);\n $period = $periods[0];\n if(strpos($result['action'], 'Start')) {\n $ar = array('start_id' => 0, 'start_vt' => '', 'end_id' => 0, 'end_vt' => '');\n $ar['start_id'] = $result['id'];\n $ar['start_vt'] = $result['video_time'];\n $timing['clock'][$event_key][$period] = $ar;\n } else { //This is an ending marker. The array already is in place\n $timing['clock'][$event_key][$period]['end_id'] = $result['id'];\n $timing['clock'][$event_key][$period]['end_vt'] = $result['video_time'];\n }\n } else { //manage player movement\n $id = $result['id'];\n $pid = $result['person_id'];\n $pid_key = \"pid_$pid\";\n $qtr = $result['quarter'];\n if(!isset($timing['player_io'][$event_key])) {\n $timing['player_io'][$event_key] = array('Q1' => array(), 'Q2' => array(),\n 'Q3' => array(), 'Q4' => array(), 'Q5' => array(), 'Q6' => array(),\n 'Q7' => array()\n );\n }\n $Q = \"Q$qtr\"; //This is the quarter identifier like Q1, Q2 etc for the array\n if(!isset($timing['player_io'][$event_key][$Q][$pid_key])) {\n $timing['player_io'][$event_key][$Q][$pid_key] = array();\n } \n if($result['action']== 'In') {\n $ar = array('start_id' => 0, 'start_vt' => '', 'start_ct' => '', 'end_id' => 0, 'end_vt' => '', 'end_ct' => '', 'seconds' => 0);\n $ar['start_id'] = $result['id'];\n $ar['start_vt'] = $result['video_time'];\n $ar['start_ct'] = $result['clock_time'];\n //(count())) should be the next segment I am working on\n $seg_count = count($timing['player_io'][$event_key][$Q][$pid_key]);\n//echo \"<br>Start: seg_count = $seg_count<br>\";\n $timing['player_io'][$event_key][$Q][$pid_key][$seg_count] = $ar;\n//echo \"<br> After Segment start<br>\";\n//$this->showFormattedArray('timing',$timing,0);\n\n } else { //This is an ending marker. The array already is in place\n //(count - 1) should be the last active segment I am working on\n $seg_count = count($timing['player_io'][$event_key][$Q][$pid_key]) - 1; \n//echo \"<br>End: seg_count = $seg_count<br>\";\n $timing['player_io'][$event_key][$Q][$pid_key][$seg_count]['end_id'] = $result['id'];\n $timing['player_io'][$event_key][$Q][$pid_key][$seg_count]['end_vt'] = $result['video_time'];\n $timing['player_io'][$event_key][$Q][$pid_key][$seg_count]['end_ct'] = $result['clock_time'];\n $timing['player_io'][$event_key][$Q][$pid_key][$seg_count]['seconds'] = $this->getSeconds($timing['player_io'][$event_key][$Q][$pid_key][$seg_count]);\n//echo \"<br>timing after end -------<br>\";\n//$this->showFormattedArray('timing',$timing,0);\n }\n }\n }\n\n\n\n return $timing;\n }", "title": "" }, { "docid": "86fdaab3ad34685cad71c9db70b07773", "score": "0.5190841", "text": "public function listAlarms($time, $user = null)\n {\n return array();\n }", "title": "" }, { "docid": "86fdaab3ad34685cad71c9db70b07773", "score": "0.5190841", "text": "public function listAlarms($time, $user = null)\n {\n return array();\n }", "title": "" }, { "docid": "1749dbd3b5d4f32f81ed0eb19b40814b", "score": "0.5188804", "text": "public function startTimeFromEnd(float $time): static;", "title": "" }, { "docid": "6ddebe6fba2b5674fdad27ce6c23c6e5", "score": "0.517279", "text": "function mm_unpack_time($data_string, $day)\n{\n $returner = array();\n \n $value = strtolower($day);\n $index = stripos($data_string, $value) + strlen($value);\n \n $dividing_time = 2;\n if (strpos($data_string, 'duration') !== false) {\n $dividing_time = 1;\n }\n \n if (! empty($data_string)) {\n $returner[$day . '_hour'] = substr($data_string, $index, $dividing_time);\n $returner[$day . '_min'] = substr($data_string, $index + $dividing_time, 2);\n }\n \n return $returner;\n}", "title": "" }, { "docid": "a59adff43c6aaa8c7e4ddc46cb689616", "score": "0.5026787", "text": "public function getShopTimetable()\n {\n $timetable = [];\n foreach ($this->getData('timetable') as $daySchedule) {\n if (!preg_match('/(\\d+):(\\d+)-(\\d+):(\\d+)/', $daySchedule, $matches)) {\n $timetable[] = false;\n } else {\n $timetable[] = [\n 'open' => [$matches[1], $matches[2]],\n 'close' => [$matches[3], $matches[4]],\n ];\n }\n }\n\n return $timetable;\n }", "title": "" }, { "docid": "30d83cb5e794d8e28d7ccaba1ee66530", "score": "0.49851257", "text": "static public function retrieveTimeFromSlider($string) {\n //Format expected: 6:00 - 21:00\n $data = explode('-', $string);\n $d = explode(':', trim($data[0]));\n $d2 = explode(':', trim($data[1]));\n $keys = array('hour', 'min');\n\n return array(array_combine($keys, $d), array_combine($keys, $d2));\n }", "title": "" }, { "docid": "02205d51a8954d047bc48ccd84995eac", "score": "0.49832964", "text": "private static function filterTime($data, $ts, $col) {\n\t\t$inData = array();\n\t\tforeach ($data as $row) {\n\t\t\tif ($row[$col]) {\n\t\t\t\tif (!strtotime($row[$col]) && is_numeric($row[$col])) {\n\t\t\t\t\t$currTs = strtotime($row[$col].\"-01-01\");\n\t\t\t\t} else {\n\t\t\t\t\t$currTs = strtotime($row[$col]);\n\t\t\t\t}\n\t\t\t\tif ($currTs && ($ts <= $currTs)) {\n\t\t\t\t\tarray_push($inData, $row);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $inData;\n\t}", "title": "" }, { "docid": "14426a13e5c3e5c76b2d89535e8ea9d0", "score": "0.49747115", "text": "function find_time_from_line($str, $paev) {\n\tif (strpos($str, '|')<=0 and strpos($str, '|') !=8) {\n\t\treturn null_time();\n\t}\n\t$aeg = strtotime($paev.\" \".substr($str, 0, 8));\n\treturn $aeg;\n}", "title": "" }, { "docid": "018d9214eac9aa6f55113067407995bd", "score": "0.496898", "text": "function timetables_parse_start_time($time) {\n\treturn date('Y-m-d H:i:s',mktime($time,0,0,1,1,2016));\n}", "title": "" }, { "docid": "d33ed4ff454b5bb12ccb8548413c234e", "score": "0.49447316", "text": "function getBetterBlocksInSameDay($unix){\n\t\t\n\t\t$date_info = getDate($unix);\n\t\t$weekDay = $date_info['wday'];\n\t\t\n\t\t$shows = $this->getAllShows();\n\t\t\n\t\t$betterBlocksInDay = array();\n\t\t\n\t\tforeach ($shows as $show){\n\t\t\tforeach($show->times as $showTime){\n\t\t\t\t\n\t\t\t\tif($showTime['start_day'] == $weekDay){\n\t\t\t\t\t\n\t\t\t\t\t$start_unix = strtotime($showTime['start_time'], $unix);//strtotime($explodedStartTime,$unix);\n\t\t\t\t\t$thisBetterBlock = array();\n\t\t\t\t\t$thisBetterBlock['show_obj'] = $show;\n\t\t\t\t\t$thisBetterBlock['name'] = $show->name;\n\t\t\t\t\t$thisBetterBlock['unix_start'] = $start_unix;//$unix + strtotime($showTime['start_time'],0);\n\t\t\t\t\t$thisBetterBlock['unix_end'] = strtotime($showTime['end_time'], $unix);\n\t\t\t\t\t\n\t\t\t\t\t$betterBlocksInDay []= $thisBetterBlock;\n\t\t\t\t}\t\n\t\t\t}\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\treturn $betterBlocksInDay;\n\t}", "title": "" }, { "docid": "5f091b559b94549eb3f2aa77f03940fe", "score": "0.49323472", "text": "function getTimeList() {\n $timelist = array();\n $timelist[0] = array('time_type' => STATISTICFACTORY_STAT_HOURLY, 'time_descr' => JText::_('COM_JINC_STAT_HOURLY'));\n $timelist[1] = array('time_type' => STATISTICFACTORY_STAT_DAILY, 'time_descr' => JText::_('COM_JINC_STAT_DAILY'));\n // $timelist[2] = array('time_type' => STATISTICFACTORY_STAT_WEEKLY, 'time_descr' => JText::_('_STAT_WEEKLY'));\n // $timelist[3] = array('time_type' => STATISTICFACTORY_STAT_MONTHLY, 'time_descr' => JText::_('COM_JINC_STAT_MONTHLY'));\n return $timelist;\n }", "title": "" }, { "docid": "f86f701d2e486e7e9f5a11a7b3c9da82", "score": "0.4923591", "text": "function ajax_add_showtime() {\n\t\t$id \t= $this->input->post('id');\n\t\t$venue \t= $this->input->post('venue');\n\t\t$start \t= $this->input->post('start');\n\t\t$end \t= $this->input->post('end');\n\t\t$start_time_hour = $this->input->post('start_time_hour');\n\t\t$start_time_min = $this->input->post('start_time_min');\n\t\tif ($start_time_min == '0') $start_time_min = '00';\n\t\t$start_time_am_pm = $this->input->post('start_time_am_pm');\n\t\t$end_time_hour = $this->input->post('end_time_hour');\n\t\t$end_time_min = $this->input->post('end_time_min');\n\t\tif ($end_time_min == '0') $end_time_min = '00';\n\t\t$end_time_am_pm = $this->input->post('end_time_am_pm');\n\n\t\tif (!($id && $venue && $start && $end && $start_time_hour && $start_time_min && $start_time_am_pm\n\t\t\t\t&& $end_time_hour && $end_time_min && $end_time_am_pm)) {\n\t\t\techo json_encode(array('status'=>false, 'message'=>'Fields are missing'));\n\t\t\texit;\n\t\t}\n\n\t\t$start_time = date('Y-m-d H:i', strtotime($start . ' ' . $start_time_hour . ':' . $start_time_min . ' ' . $start_time_am_pm));\n\t\t$end_time = date('Y-m-d H:i', strtotime($end . ' ' . $end_time_hour . ':' . $end_time_min . ' ' . $end_time_am_pm));\n\n\t\t$sql = \"SELECT COUNT(*) AS count\n\t\t\tFROM events_times \n\t\t\tWHERE films_id = \" . $this->db->escape($id) . \"\n\t\t\tAND start_time = '{$start_time}'\n\t\t\tAND end_time = '{$end_time}'\";\n\t\t$query = $this->db->query($sql);\n\t\t$result = $query->row();\n\n\t\tif ($result->count > 0) {\n\t\t\techo json_encode(array('status'=>false, 'message'=>'Event already exists'));\n\t\t\texit;\n\t\t}\n\n\t\t$sql = \"INSERT INTO events_times (films_id, start_time, end_time) \n\t\t\t\tVALUES (\" \n\t\t\t\t\t. $this->db->escape($id) . \", \" \n\t\t\t\t\t. $this->db->escape($start_time) . \", \" \n\t\t\t\t\t. $this->db->escape($end_time) . \")\";\n\t\t//echo $sql;\n\t\t$values = array($this->db->escape($id), $this->db->escape($start_time), $this->db->escape($end_time));\n\t\t//var_dump($values);\n\t\t$this->db->query($sql);\n\n\t\tif ($this->db->affected_rows() > 0) {\n\t\t\techo json_encode(array('status'=>true, 'message'=>'OK'));\n\t\t}\n\t}", "title": "" }, { "docid": "4393c4bd710c42121f66f1aec03d1b96", "score": "0.49172613", "text": "function start_times($available){\n $avails = array();\n $previous_stop = '';\n foreach($available as $avail){\n if($previous_stop == $avail['from']){\n $avails[] = $avail['to'];\n }\n $previous_stop = $avail['to'];\n }\n return $avails;\n}", "title": "" }, { "docid": "8c9b609b8a22b9b1c61e591e59e59dc3", "score": "0.48944274", "text": "static function CalculeTimesReservation(int $microsite_id, string $date, string $time) {\n\n $time = self::RoundBeforeTime($time);\n $now = Carbon::parse($date . \" \" . $time);\n $nextday = $now->copy()->addDay();\n $dayOfWeek = $now->dayOfWeek + 1;\n $lastTurn = res_turn_calendar::select(array(\n \"res_turn.id\",\n \"res_turn_calendar.res_type_turn_id\",\n \"res_turn.hours_ini\",\n \"res_turn.hours_end\",\n DB::raw(\"CONCAT('\" . $now->toDateString() . \"',' ',start_time) AS start_datetime\"),\n DB::raw(\"'\" . $now->toDateString() . \"' AS start_date\"),\n DB::raw(\"IF(end_time > start_time, '\" . $now->toDateString() . \"', '\" . $nextday->toDateString() . \"') AS end_date\"),\n DB::raw(\"IF(end_time > start_time, CONCAT('\" . $now->toDateString() . \"',' ',end_time), CONCAT('\" . $nextday->toDateString() . \"',' ',end_time)) AS end_datetime\")\n ))\n ->join(\"res_turn\", \"res_turn.id\", \"=\", \"res_turn_calendar.res_turn_id\")\n ->where(DB::raw(\"dayofweek(start_date)\"), $dayOfWeek)\n ->where(\"res_turn.ms_microsite_id\", $microsite_id)\n ->where(\"start_date\", \"<=\", $now->toDateString())\n ->where(\"end_date\", \">=\", $now->toDateString())\n ->where(DB::raw(\"IF(end_time > start_time, CONCAT('\" . $now->toDateString() . \"',' ',end_time), CONCAT('\" . $nextday->toDateString() . \"',' ',end_time))\"), \">=\", $now->toDateTimeString())\n ->orderBy(\"end_datetime\")->get();\n\n $collect = [];\n\n if ($lastTurn->count() > 0) {\n\n $reservation = new \\App\\res_reservation();\n $date_reservation = $now->toDateString();\n $hours_reservation = $now->toTimeString();\n\n $diffHours = 999999;\n $encontroHorario = false;\n\n foreach ($lastTurn as $turn) {\n $diff = $diffHours;\n if (self::untilNextDay($turn->hours_end, $turn->hours_ini)) {\n if (self::inRangeHours($now->toTimeString(), $turn->hours_ini, \"23:59:59\")) {\n $date_reservation = $now->toDateString();\n $hours_reservation = $now->toTimeString();\n $encontroHorario = true;\n } else if (self::inRangeHours($now->toTimeString(), \"00:00:00\", $turn->hours_end)) {\n $date_reservation = $nextday->toDateString();\n $hours_reservation = $nextday->toTimeString();\n $encontroHorario = true;\n } else if (strcmp($now->toTimeString(), $turn->hours_ini) < 0) {\n $dateIni = $now->copy();\n $dateEnd = Carbon::parse($now->toDateString() . \" \" . \"23:59:59\");\n $diff = $dateEnd->diffInSeconds($dateIni);\n $date_reservation = $now->toDateString();\n $hours_reservation = $turn->hours_ini;\n } else {\n $dateIni = Carbon::parse($nextday->toDateString() . \" \" . $turn->hours_end);\n $dateEnd = $nextday->copy();\n $diff = $dateEnd->diffInSeconds($dateIni);\n $date_reservation = $nextday->toDateString();\n $hours_reservation = $turn->hours_end;\n }\n } else {\n if (self::inRangeHours($now->toTimeString(), $turn->hours_ini, $turn->hours_end)) {\n $date_reservation = $now->toDateString();\n $hours_reservation = $now->toTimeString();\n $encontroHorario = true;\n } else if (strcmp($now->toTimeString(), $turn->hours_ini) < 0) {\n $dateIni = $now->copy();\n $dateEnd = Carbon::parse($now->toDateString() . \" \" . $turn->hours_end);\n $diff = $dateEnd->diffInSeconds($dateIni);\n $date_reservation = $now->toDateString();\n $hours_reservation = $turn->hours_ini;\n } else {\n $diff = strcmp($now->toTimeString(), $turn->hours_end);\n $date_reservation = $now->toDateString();\n $hours_reservation = $turn->hours_end;\n }\n }\n //$collect[] = [$diff, $date_reservation, $hours_reservation];\n if ($diff <= $diffHours || $encontroHorario) {\n $reservation->date_reservation = $date_reservation;\n $reservation->hours_reservation = $hours_reservation;\n $reservation->res_turn_id = $turn->id;\n $diffHours = $diff;\n if ($encontroHorario) {\n $reservation->datetime_input = Carbon::parse($reservation->date_reservation . \" \" . $reservation->hours_reservation);\n // $duration = TurnsHelper::sobremesa($reservation->res_turn_id, $guests);\n break;\n }\n }\n }\n return $reservation;\n }\n\n return false;\n }", "title": "" }, { "docid": "67c7bfaee5bb697919796beb5405999d", "score": "0.48842934", "text": "function _get_time_fields( $date_id = null ) {\n global $event_details, $capacity, $current_att_count;\n\n //if it is time specific pricing, value hidden\n $input_type = ( $event_details['_epl_pricing_type'] == 10 ) ? 'text' : 'select';\n\n $times = $event_details['_epl_start_time'];\n\n //adding the end time to the displayed value. Notice the reference\n foreach ( $times as $k => &$v ) {\n\n /* if ( !is_null( $date_id ) )\n $pattern = \"/_total_att_{$event_details['ID']}_time_{$date_id}_{$k}/\"; //_total_att_637_time_7b555a_401521\n else\n $pattern = \"/_total_att_{$event_details['ID']}_time_(.+)_{$k}/\";\n\n $avl = $this->preg_grep_keys( $pattern, $current_att_count ); */\n\n $v .= ' - ' . $event_details['_epl_end_time'][$k];\n }\n\n if ( is_null( $date_id ) )\n $value = $this->get_current_value( '_dates', '_epl_start_time', $event_details['ID'] );\n else\n $value = $this->get_current_value( '_dates', '_epl_start_time', $event_details['ID'], $date_id );\n\n $epl_fields = array(\n 'input_type' => $input_type,\n 'input_name' => \"_epl_start_time[{$event_details['ID']}][{$date_id}]\",\n 'options' => $times,\n 'value' => $value //$v['epl_start_time'][$event_details['ID']][$date_id]\n );\n $epl_fields += ( array ) $this->overview_trigger;\n\n $data['event_time'] = $this->epl_util->create_element( $epl_fields );\n\n $data['event_time'] = $data['event_time']['field'];\n\n if ( !is_null( $date_id ) )\n return $data['event_time'];\n\n return $this->epl->load_view( 'front/cart/cart-times', $data, true );\n }", "title": "" }, { "docid": "7e1ad8651c0c53ea54c5e33d0be9c45d", "score": "0.4881121", "text": "public static function isTime($time) {\n $sReturn = preg_match(\"#([0-1]{1}[0-9]{1}|[2]{1}[0-3]{1}):[0-5]{1}[0-9]{1}#\", $time);\n return $sReturn;\n }", "title": "" }, { "docid": "8e8bed9a8bd5c26ff396c6828c1a7ad7", "score": "0.48789826", "text": "public function checkTime($date, $start, $end, $idRoom)\n\t{\n\t\t$r = $this -> DB -> SELECT(\" idApp \") -> from(\" appointments \") ->\n\t\t\twhere(\" ((start <= '\".$start.\"' AND '\".$start.\"' < end) OR \n\t\t\t\t\t(start < '\".$end.\"' AND '\".$end.\"' <= end) OR \n\t\t\t\t('\".$start.\"' <= start AND end <= '\".$end.\"')) \") -> whereAnd(\" \n\t\t\t\t\tdate = '\".$date.\"'\") -> whereAnd(\" idRoom = $idRoom \") ->\n\t\t\t\tselected();\n\t\treturn $r;\n\t}", "title": "" }, { "docid": "75d4aa00ac41df7d26ab96625a8c9e4f", "score": "0.48676127", "text": "public function times(int $time = null, int $offset = 1) : array;", "title": "" }, { "docid": "9bbb8d0241ae57d1a49f2bc112bc54b6", "score": "0.4866927", "text": "protected function how_much_time ()\n {\n $time[0] = (int)($this->getText(Yii::app()->params['test_mappings']['time']['hour']));\n $time[1] = (int)($this->getText(Yii::app()->params['test_mappings']['time']['minute']));\n return $time;\n }", "title": "" }, { "docid": "2de76066513e1dba41bb8620289b8d5d", "score": "0.48656565", "text": "public function getStartTimes() {\n\t\t$nodes = $this->xml->xpath(\"/dwml/data[1]/time-layout[@summarization='24hourly'][1]/start-valid-time\");\n\t\t$times = array();\n\t\tforeach ($nodes as $node) {\n\t\t\t$times[] = (string) $node[0];\n\t\t}\n\t\treturn $times;\n\t}", "title": "" }, { "docid": "0fe838e81b2c7dbcf3359191d84b8aaa", "score": "0.48561445", "text": "function get_next_buses($incoming_time, $stop_code, $route_id) {\n // echo \"In get_next_buses Function<hr>\";\n $time = date(\"H:i\",strtotime($incoming_time));\n $query_time = \"2000-01-01 \" . $time . \":00\";\n \n $query = sprintf(\"SELECT time, route_id FROM schedules_weekday WHERE route_id = %s AND (TIMEDIFF (time, '%s' ) ) > 0 ORDER BY (TIMEDIFF (time, '%s') ) ASC LIMIT 3\",\n mysql_real_escape_string($route_id),\n mysql_real_escape_string($query_time),\n mysql_real_escape_string($query_time));\n\n //echo $query;\n\n $result = mysql_query($query);\n if (!$result) {\n $message = 'Invalid query: ' . mysql_error() . \"\\n\";\n $message .= 'Whole query: ' . $query;\n return (-1);\n }\n elseif (mysql_num_rows($result)==0) {\n return 0;\n }\n else {\n $message_times = array();\n while ($row = mysql_fetch_assoc($result)) {\n array_push($message_times, date(\"H:i\",strtotime($row['time'])));\n }\n $bus_times = implode(\", \", $message_times);\n\n return $bus_times;\n }\n\n\n}", "title": "" }, { "docid": "8ba5ab898588209d573c51b76ebedc75", "score": "0.48291126", "text": "function get_vod_by_date_starttime() {\n global $db;\n global $user; \n global $wowza;\n\n $date1 = $_GET['date1'];\n $date2 = $_GET['date2'];\n $start_time = $_GET['start_time'];\n\n $result = array();\n if (empty($date1) && empty($date2))\n $records = $db -> rawQuery(\"select * from tvshows where `StartTime`='\".$start_time.\"' And userID=\".$user['id']);\n else if (empty($date2))\n $records = $db -> rawQuery(\"select * from tvshows where `RecordDate`='\".$date1.\"' AND `StartTime`='\".$start_time.\"' And userID=\".$user['id']);\n else\n $records = $db -> rawQuery(\"select * from tvshows where `RecordDate` BETWEEN '\".$date1.\"' AND '\".$date2.\"' AND `StartTime`='\".$start_time.\"' And userID=\".$user['id']);\n\n foreach ($records as $record) {\n $item['title'] = $record['Title'];\n $item['ar_title'] = $record['ArTitle'];\n $item['ar_description'] = $record['ArDescription'];\n $item['en_title'] = $record['EnTitle'];\n $item['en_description'] = $record['EnDescription'];\n $item['date'] = $record['RecordDate'];\n $item['start_time'] = $record['FirstStart'];\n $item['end_time'] = $record['StopTime'];\n $item['duration'] = $record['Duration'];\n $item['direct_path'] = $wowza['WowzaIP'].\"/\".$record['RecordDate'].\"/\".$record['Title'].\".mp4\";\n $item['thumbnail_path'] = \"admin.mangomolo.com/analytics/Recorder/\".$user['id'].\"/\".$record['RecordDate'].\"/\".$record['Title'].\".mp4.jpg\";\n if (empty($record['YoutubeLink']))\n $item['youtube_link'] = 0;\n else\n $item['youtube_link'] = $record['YoutubeLink'];\n\n array_push($result, $item);\n }\n\n echo str_replace('\\/', '/', json_encode($result));\n}", "title": "" }, { "docid": "8fe5933a071b5d6e84d488044a058907", "score": "0.481306", "text": "function time_difference($start_time=\"11:00:00\",$end_time=\"12:00:00\")\r\n{\r\nlist($h1,$m1,$s1) = explode(':',$start_time); \r\n$startTimeStamp = mktime($h1,$m1,$s1,0,0,0);\r\n\r\nlist($h2,$m2,$s2) = explode(':',$end_time); \r\n\r\n//check end time is in 12 hrs format:\r\nif($h2 < $h1)\r\n$h2+=12;\r\n\r\n$endTimeStamp = mktime($h2,$m2,$s2,0,0,0); \r\n$time=abs($endTimeStamp - $startTimeStamp);\r\n\r\n$value = array(\r\n\"hours\" => \"00\",\r\n\"minutes\" => \"00\",\r\n\"seconds\" => \"00\"\r\n\r\n);\r\n\r\nif($time >= 3600){\r\n$value[\"hours\"] = sprintf(\"%02d\",floor($time/3600));\r\n$time = ($time%3600);\r\n}\r\nif($time >= 60){\r\n$value[\"minutes\"] = sprintf(\"%02d\",floor($time/60));\r\n$time = ($time%60);\r\n}\r\n\r\n$value[\"seconds\"] = sprintf(\"%02d\",floor($time));\r\n\r\nreturn implode(\":\",$value); \r\n}", "title": "" }, { "docid": "7f4608eca988167483416108b0febfcc", "score": "0.4803295", "text": "public function dailyAt($time)\n {\n $segments = explode(':', $time);\n return $this->spliceIntoPosition(2, (int)$segments[0])\n ->spliceIntoPosition(1, count($segments) === 2 ? (int)$segments[1] : '0');\n }", "title": "" }, { "docid": "c4add5de52b0cad9c6fffa8e0c01ead6", "score": "0.47974852", "text": "private function getHoursOfDay() {\n $included_datetimes = array();\n\n $day_datetime = $this->getDateTime();\n $day_epoch = $day_datetime->format('U');\n\n $day_datetime->modify('+1 day');\n $next_day_epoch = $day_datetime->format('U');\n\n $included_time = $day_epoch;\n $included_datetime = $this->getDateTime();\n\n while ($included_time < $next_day_epoch) {\n $included_datetimes[] = clone $included_datetime;\n\n $included_datetime->modify('+1 hour');\n $included_time = $included_datetime->format('U');\n }\n\n return $included_datetimes;\n }", "title": "" }, { "docid": "b45e2cc04b1481de0b466aa1f190b073", "score": "0.47918218", "text": "function out_of_time($time1, $time2, &$instructions_array, $bedTime, $ampm) {\n\n\t$time= abs($time1-$time2);\n\t$div_array = '';\n\t//depending on the number of day and the number of divisons, we choose different date formats.\n\n\t\t// No idea what $div_array was for...\n\t\tif(days_between($time1, $time2)>sizeof($div_array)) {\n\t\t\n\t\t\t$format=\"l M d, Y\";\n\t\t\t$stages = $time1; //keep the running total.\n\n\t\t\tforeach ($instructions_array as &$step) {\n\t\t\t\t$stages += ($time * $step['time']);\t\n\t\t\t\t$step['due'] = date($format, $stages);\n\t\t\t}\n\t\t} else {\t\n\t\n\t\t$format=\"g a D M d\";\n\n\t\t$stages = $time1; //keep the running total.\n\n\t\t\tforeach ($instructions_array as &$step) {\n\t\t\t\t$stages += ($time * $step['time']);\n\t\t\t\t$hour24 = date(\"G\", $stages);\n\t\t\t\tif ($hour24 > 12) $hour24 = $hour24-24; //this keeps the time centered around midnight. 2 is 2 am and -2 is 10pm\n\t\t\t\tif( ($ampm == 'am' && $hour24 > $bedTime && $hour24 < $bedTime + 10) or ($ampm == 'pm' && $hour24 > $bedTime-12 && $hour24 < $bedTime-2)){//if the time is later than a person wants to get to sleep\n\t\t\t\t\t$step['due'] = \"$bedTime $ampm \" . date(\"D M d\", $stages);\n\t\t\t\t} else {\n\t\t\t\t\t$step['due'] = date($format, $stages);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\treturn;\n}", "title": "" }, { "docid": "a9c3ac82fced113e8b1a91f9d10656db", "score": "0.47910228", "text": "function get_time_portion($time)\n{\n return date('H:i', strtotime($time));\n}", "title": "" }, { "docid": "01c174f7f4ca383720f56524e96961c4", "score": "0.4780778", "text": "function Get_topviewed_alltime() {\n global $db;\n global $user;\n global $wowza;\n\n $date1 = $_GET['date1'];\n $date2 = $_GET['date2'];\n $start_time = $_GET['start_time'];\n\n $result = array();\n if (empty($date1) && empty($date2))\n $records = $db -> rawQuery(\"select * from tvshows where userID=\".$user['id']);\n else if (empty($date2))\n $records = $db -> rawQuery(\"select * from tvshows where `RecordDate`='\".$date1.\"' And userID=\".$user['id']);\n else\n $records = $db -> rawQuery(\"select * from tvshows where `RecordDate` BETWEEN '\".$date1.\"' AND '\".$date2.\"' And userID=\".$user['id']);\n\n foreach ($records as $record) {\n $item['title'] = $record['Title'];\n $item['ar_title'] = $record['ArTitle'];\n $item['ar_description'] = $record['ArDescription'];\n $item['en_title'] = $record['EnTitle'];\n $item['en_description'] = $record['EnDescription'];\n $item['date'] = $record['RecordDate'];\n $item['start_time'] = $record['FirstStart'];\n $item['end_time'] = $record['StopTime'];\n $item['duration'] = $record['Duration'];\n $item['direct_path'] = $wowza['WowzaIP'].\"/\".$record['RecordDate'].\"/\".$record['Title'].\".mp4\";\n $item['thumbnail_path'] = \"admin.mangomolo.com/analytics/Recorder/\".$user['id'].\"/\".$record['RecordDate'].\"/\".$record['Title'].\".mp4.jpg\";\n if (empty($record['YoutubeLink']))\n $item['youtube_link'] = 0;\n else\n $item['youtube_link'] = $record['YoutubeLink'];\n\n array_push($result, $item);\n }\n\n echo str_replace('\\/', '/', json_encode($result));\n}", "title": "" }, { "docid": "6804adb82d535843d470a57d9b7688da", "score": "0.47779608", "text": "function getTimesForStop($r,$date=null)\n{\n if($date == null){ $date = date('Y-m-d');}\n\n $temp = array();\n $startTime = strtotime($date.' '.$r[1]);\n $lt = $startTime;\n $temp[] = $startTime;\n \n $lastTime = strtotime($date.' '.$r[2]);\n if($r[3]) { $lastTime = strtotime($date.' '.$r[3]); }\n \n $h = date(\"H\",$lt);\n \n //echo $stops[$k].' - Start departure: '.$date.' '.$r[1].'<br>';\n \n while($lt < $lastTime)\n {\n foreach($r[0] as $r2)\n {\n $temp[] = strtotime($date.' '.$h.''.$r2);\n }\n $h++;\n sort($temp);\n $lt = $temp[count($temp)-1];\n }\n $temp[] = $lastTime;\n \n if($r[3]) { $temp[] = strtotime($date.' '.$r[3]); }\n \n //echo '<pre>';\n $temp = array_unique($temp);\n foreach($temp as $k2 => $t)\n {\n if($t<$startTime or $t>$lastTime){ unset($temp[$k2]); }\n //else{ echo date(\"Y-m-d H:i\",$t).'<br>'; }\n }\n //echo 'Last departure: '.date(\"Y-m-d H:i\",$lastTime).'<br><br>';\n //echo '</pre>';\n sort($temp);\n return array_values($temp);\n}", "title": "" }, { "docid": "8e0445fc2e3d5af3f2150a2f5bf1e05f", "score": "0.47653145", "text": "public function getApplicationsByCheckTime($time)\n {\n $result = [];\n foreach ($this->applications as $app) {\n if (in_array($time, $app->getChecks())) {\n $result[] = $app->getId();\n }\n }\n return $result;\n }", "title": "" }, { "docid": "5497ffda2de712be637509f0d64d25f1", "score": "0.47550598", "text": "public function getEndTimes() {\n\t\t$nodes = $this->xml->xpath(\"/dwml/data[1]/time-layout[@summarization='24hourly'][1]/end-valid-time\");\n\t\t$times = array();\n\t\tforeach ($nodes as $node) {\n\t\t\t$times[] = (string) $node[0];\n\t\t}\n\t\treturn $times;\n\t}", "title": "" }, { "docid": "04a32e864eced0e96deee4bce9b212b9", "score": "0.47432286", "text": "private function _get_all_shift_time() {\n\t\t\n\t\t$shift_times = array();\n\t\t\n\t\t$shift_times[] = array( \"value\" => \"00:00\", \"label\" => \"12:00 AM\" );\n\t\t\n\t\t$shift_times[] = array( \"value\" => \"00:30\", \"label\" => \"12:30 AM\" );\n\t\t\n\t\tfor ( $i = 1; $i <= 9; $i++ ) {\n\t\t\t\n\t\t\t$shift_times[] = array( \"value\" => \"0{$i}:00\", \"label\" => \"0{$i}:00 AM\" );\n\t\t\t\n\t\t\t$shift_times[] = array( \"value\" => \"0{$i}:30\", \"label\" => \"0{$i}:30 AM\" );\n\t\t\t\n\t\t}\n\t\t\n\t\tfor ( $i = 10; $i <= 11; $i++ ) {\n\t\t\t\n\t\t\t$shift_times[] = array( \"value\" => $i . \":00\", \"label\" => $i . \":00 AM\" );\n\t\t\t\n\t\t\t$shift_times[] = array( \"value\" => $i . \":30\", \"label\" => $i . \":30 AM\" );\n\t\t\t\n\t\t}\n\t\t\n\t\t$i = 12;\n\t\t\n\t\t$shift_times[] = array( \"value\" => $i . \":00\", \"label\" => $i . \":00 PM\" );\n\t\t\n\t\t$shift_times[] = array( \"value\" => $i . \":30\", \"label\" => $i . \":30 PM\" );\n\t\t\n\t\n\t\tfor ( $i = 1; $i <= 9; $i++ ) {\n\t\t\t\n\t\t\t$k = $i + 12;\n\t\t\t\n\t\t\t$shift_times[] = array( \"value\" => \"{$k}:00\", \"label\" => \"0{$i}:00 PM\" );\n\t\t\t\n\t\t\t$shift_times[] = array( \"value\" => \"{$k}:30\", \"label\" => \"0{$i}:30 PM\" );\n\t\t\t\n\t\t}\n\t\t\n\t\tfor ( $i = 10; $i <= 11; $i++ ) {\n\t\t\t\n\t\t\t$k = $i + 12;\n\t\t\t\n\t\t\t$shift_times[] = array( \"value\" => \"{$k}:00\", \"label\" => \"{$i}:00 PM\" );\n\t\t\t\n\t\t\t$shift_times[] = array( \"value\" => \"{$k}:30\", \"label\" => \"{$i}:30 PM\" );\n\t\t\t\n\t\t}\n\t\t\n\t\treturn $shift_times;\n\t\t\n\t}", "title": "" }, { "docid": "ef7584c0f79809002ff9fb6c2f41298b", "score": "0.47397518", "text": "public function hasTime();", "title": "" }, { "docid": "9af45f36a061d580099c539b8efcb9f9", "score": "0.47249034", "text": "static public function getArrayTimeFromSegments($string) {\n //2011-04-01 06:30 -> // mktime is as follows (hour, minute, second, month, day, year)\n\n $data = explode(' ', $string);\n $d = explode(':', $data[1]);\n $keys = array('hour', 'min');\n return array_combine($keys, $d);\n }", "title": "" }, { "docid": "f976050a3ddd16b84e2b1808801e0572", "score": "0.4715768", "text": "function _timeField($date)\n {\n $year = @gmdate(\"Y\", @strtotime($date)); // the same way ASN1.php parses this\n if ($year < 2050) {\n return array('utcTime' => $date);\n } else {\n return array('generalTime' => $date);\n }\n }", "title": "" }, { "docid": "ded1a31e44ceb27be1826cca70eeaf60", "score": "0.47155178", "text": "function datetime_for_user($date, $show_time = True) \n {\n $desmonta = explode(\" \", $date);\n $data = $desmonta[0];\n $hora = $desmonta[1];\n if($show_time)\n $saida = date_for_user($data).' '.$hora;\n else\n $saida = date_for_user($data);\n return $saida;\n }", "title": "" }, { "docid": "280cb4c4735ed039521599ee265ecb50", "score": "0.4708658", "text": "protected function _convertTimeToStringFromArray($time) {\n list($hours, $minutes) = self::_convertTimeTo24hArray($time);\n return $hours.\":\".$minutes.\":00\";\n }", "title": "" }, { "docid": "126684a9ae423bbb22a83b2bbbda80f7", "score": "0.47047842", "text": "function getRestaurantHours($restaurant_id)\n{\n\t$RestaurantHours=array();\n\t$con=new dbcon;\n\t$sql=\"select day,date_format(from_time,'%H:%i') as fromtime,date_format(to_time,'%H:%i') as totime from \".DBPREFIX.\"restaurant_hours where restaurant_id=$restaurant_id\";\n\t$con->Query($sql);\n\twhile($rs=$con->FetchRow())\n\t{\n\t$RestaurantHours[]=array(\"day\"=>$rs[\"day\"],\"from_time\"=>$rs[\"fromtime\"],\"to_time\"=>$rs[\"totime\"]);\n\t}\n\treturn $RestaurantHours;\n}", "title": "" }, { "docid": "3b3e939d3c02c1ec8f378d8d1c1a8f1b", "score": "0.4699859", "text": "private function get_times( $post_id ) {\n\t\t$post_id = (int) $post_id;\n\n\t\t$start = get_post_meta( $post_id, $this->meta_start, true );\n\t\t$start = is_numeric( $start ) ? (int) $start : '';\n\n\t\t$end = get_post_meta( $post_id, $this->meta_end, true );\n\t\t$end = is_numeric( $end ) ? (int) $end : '';\n\n\t\treturn compact( 'start', 'end' );\n\t}", "title": "" }, { "docid": "5f8e51db1fa536527084988ae26ad1fd", "score": "0.469877", "text": "public function dailyAt($time)\n {\n $segments = explode(':', $time);\n\n return $this->spliceIntoPosition(2, (int) $segments[0])\n ->spliceIntoPosition(1, count($segments) === 2 ? (int) $segments[1] : '0');\n }", "title": "" }, { "docid": "41280d15bb058389ec380bbabc108836", "score": "0.46805057", "text": "public function column_time($item) {\n echo $item['weekdays'] . '</br>' . $item['time'];\n }", "title": "" }, { "docid": "2fef5359b2a2fee50432e8c0417cab8e", "score": "0.46688327", "text": "function findresc($item)\n{\n\n$query = mysql_query(\"SELECT * FROM `class_reschedule` WHERE `resc_date`=FROM_UNIXTIME($item->date) AND(`start_time` = '$item->start_time' AND `end_time`='$item->end_time') AND`userid` = '$item->userid'\");\n \n if(mysql_num_rows($query)>0)\n {\n\nwhile($row = mysql_fetch_assoc($query))\n{\n $data[] = $row; \n\n\n}\nreturn $data;\n\n }\n else;\nreturn 0;\n\n\n}", "title": "" }, { "docid": "d304f8ed9a9fa025fd239f654e671e19", "score": "0.4657094", "text": "public function filter_the_time( $time = '' ) {\n\t\tif ( is_admin() ) {\n\t\t\treturn $time;\n\t\t}\n\t\treturn preg_replace( '/(\\d+):(\\d+) (am|pm)/i', '<span class=\"time\">$1<span class=\"colon\">:</span>$2 <span class=\"am-pm\">$3</span></span>', $time );\n\t}", "title": "" }, { "docid": "fd75c1dace9ea50aaa8ae6cf45aed538", "score": "0.4656232", "text": "public function searchUsingTimes(string $times, int $start = 0, int $rows = 10):array\n {\n return $this->search('times:'.$times, $start, $rows);\n }", "title": "" }, { "docid": "b8ad9315708ff005f53126afbc74da0e", "score": "0.46544152", "text": "function geTimeOuts($y = '', $m = '')\n {\n if (empty($y)) {\n $y = date('Y');\n }\n if (empty($m)) {\n $m = date('m');\n }\n if (($m - 1) == 0) {\n $last_int = strtotime(($y - 1) . '-12-01 00:00:00');\n } else {\n $last_int = strtotime($y . '-' . ($m - 1) . '-01 00:00:00');\n }\n $start_int = strtotime($y . '-' . $m . '-01 00:00:00');\n if (empty($y) && empty($m)) {\n $this_int = time();\n } else {\n if ($m == 12) {\n $this_int = strtotime(($y + 1) . '-' . '01' . '-01 00:00:00');\n } else {\n $this_int = strtotime($y . '-' . ($m + 1) . '-01 00:00:00');\n }\n }\n $time['last_where'] = ['between', [$last_int, $start_int]];\n $time['this_where'] = ['between', [$start_int, $this_int]];\n return $time;\n }", "title": "" }, { "docid": "0f4c7a8430c167721382292986fb7148", "score": "0.46533638", "text": "public function run()\n {\n //\n $timings = [\n '6:00 am','6:30 am',\n '7:00 am','7:30 am',\n '8:00 am','8:30 am',\n '9:00 am','9:30 am',\n '10:00 am','10:30 am',\n '11:00 am','11:30 am',\n '12:00 am','12:30 am',\n '1:00 pm','1:30 pm',\n '2:00 pm','2:30 pm',\n '1:00 pm','1:30 pm',\n '2:00 pm','2:30 pm',\n '3:00 pm','3:30 pm',\n '4:00 pm','4:30 pm',\n '5:00 pm','5:30 pm',\n '6:00 pm','6:30 pm',\n '7:00 pm','7:30 pm',\n '8:00 pm','8:30 pm',\n '9:00 pm','9:30 pm',\n '10:00 pm','10:30 pm'\n ];\n// $timings = [\n// '00:00-00:30','00:00-01:00','00:30-01:00','00:30-01:30',\n// '01:00-01:30','01:00-02:00','01:30-02:00','01:30-02:30',\n// '02:00-02:30','02:00-03:00','02:30-03:00','02:30-03:30',\n// '03:00-03:30','03:00-04:00','03:30-04:00','03:30-04:30',\n// '04:00-04:30','04:00-05:00','04:30-05:00','04:30-05:30',\n// '05:00-05:30','05:00-06:00','05:30-06:00','05:30-06:30',\n// '06:00-06:30','06:00-07:00','06:30-07:00','06:30-07:30',\n// '07:00-07:30','07:00-08:00','07:30-08:00','07:30-08:30',\n// '08:00-08:30','08:00-09:00','08:30-09:00','08:30-09:30',\n// '09:00-09:30','09:00-10:00','09:30-10:00','09:30-10:30',\n// '10:00-10:30','10:00-11:00','10:30-11:00','10:30-11:30',\n// '11:00-11:30','11:00-12:00','11:30-12:00','11:30-12:30',\n// '12:00-12:30','12:00-13:00','12:30-13:00','12:30-13:30',\n// '13:00-13:30','13:30-14:00','13:30-14:00','13:30-14:30',\n// '14:00-14:30','14:30-15:00','14:30-15:00','14:30-15:30',\n// '15:00-15:30','15:30-16:00','15:30-16:00','15:30-16:30',\n// '16:00-16:30','16:30-17:00','16:30-17:00','16:30-17:30',\n// '17:00-17:30','17:30-18:00','17:30-18:00','17:30-18:30',\n// '18:00-18:30','18:30-19:00','18:30-19:00','18:30-19:30',\n// '19:00-19:30','19:30-20:00','19:30-20:00','19:30-20:30',\n// '20:00-20:30','20:30-21:00','20:30-21:00','20:30-21:30',\n// '21:00-21:30','21:30-22:00','21:30-22:00','21:30-22:30',\n// '22:00-22:30','22:30-23:00','22:30-23:00','22:30-23:30',\n// '23:00-23:30','23:30-24:00','23:30-24:00','23:30-00:30',\n// ];\n foreach($timings as $timing) {\n factory(\\App\\Src\\Timing\\Timing::class)->create(['time_en'=>$timing]);\n }\n }", "title": "" }, { "docid": "e318d0a55667ec7078ad5790cf23e0c4", "score": "0.46376583", "text": "function get_cost_between_times($times_array, $hour_cost) {\r\n $start_time = $times_array[0]; // Get Times\r\n if (count($times_array)>1) $end_time = $times_array[1];\r\n else $end_time = array('24','00','00');\r\n if (is_string($start_time)) { $start_time = explode(':', $start_time);$start_time[2] = '00'; }\r\n if (is_string($end_time)) { $end_time = explode(':', $end_time); $end_time[2] = '00'; }\r\n\r\n if ( (is_int($end_time)) && (is_int($start_time)) ) { // 1000000 correction need to make.\r\n\r\n if ($end_time > 1000000) { $ostatok = $end_time % 1000000;\r\n if ($ostatok == 0) $end_time = $end_time / 1000000;\r\n else $end_time = ( $end_time + ( 1000000 - $ostatok ) ) / 1000000;\r\n }\r\n if ($start_time > 1000000) { $ostatok = $start_time % 1000000;\r\n if ($ostatok == 0) $start_time = $start_time / 1000000;\r\n else $start_time = ( $start_time + ( 1000000 - $ostatok ) ) / 1000000;\r\n }\r\n return round( ( ($end_time - $start_time) * ($hour_cost / 60 ) ) , 2 );\r\n }\r\n\r\n if (empty($start_time[0]) ) $start_time[0] = '00';\r\n if (empty($end_time[0]) ) $end_time[0] = '00';\r\n\r\n if (! isset($start_time[1])) $start_time[1] = '00';\r\n if (! isset($end_time[1])) $end_time[1] = '00';\r\n\r\n\r\n\r\n if ( ($end_time[0] == '00') && ($end_time[1] == '00') ) $end_time[0] = '24';\r\n\r\n\r\n $m_dif = ($end_time[0] * 60 + intval($end_time[1]) ) - ($start_time[0] * 60 + intval($start_time[1]) ) ;\r\n $h_dif = intval($m_dif / 60) ;\r\n $m_dif = ($m_dif - ($h_dif*60) ) / 60 ;\r\n\r\n $summ = round( ( 1 * $h_dif * $hour_cost ) + ( 1 * $m_dif * $hour_cost ) , 2);\r\n\r\n return $summ;\r\n }", "title": "" }, { "docid": "bf1b60314102959e0ab158e61dbfaf74", "score": "0.4630205", "text": "function imic_get_event_timeformate($time,$date,$post_id = null,$key = null, $single = false){\n$time_offset = get_option('gmt_offset');\n$allday = get_post_meta($post_id, 'imic_event_all_day', true);\n$time = explode('|',$time);\n$date = explode('|',$date);\n//get event time and date option format\t\n$options = get_option('imic_options');\n$event_tm_opt = isset($options['event_tm_opt'])?$options['event_tm_opt']:'0';\n$event_dt_opt = isset($options['event_dt_opt'])?$options['event_dt_opt']:'0';\n//get time format\n$time_format = get_option('time_format');\n//get date format\n$date_format = get_option('date_format');\n$time_opt = $date_opt = '';\n\n$time_from = $time[0];\n\n\nif (strpos($time_from, '-') === false && strpos($time_from, '+') === false) {\n $time_from = $time_from . $time_offset;\n}\n\n$event_dt_opt = ($single==true)?'2':$event_dt_opt;\n\tswitch($event_tm_opt)\n\t{\n\t\t case '0':\n\t\t if(!empty($time[0]) && $time[0] != strtotime(date('23:59')))\n\t\t\t{\n\t\t $time_opt = date($time_format, $time[0]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif($allday || empty($time[0])|| $time[0] == strtotime(date('23:59')))\n\t\t\t\t{\n\t\t\t\t\t$time_opt = __('All Day','framework');\n\t\t\t\t}\n\t\t\t}\n\t\t break;\n\t\t case '1':\n\t\t\t if(!empty($time[1]) && $time[1] != strtotime(date('23:59')))\n\t\t\t {\n\t\t\t $time_opt = date($time_format, $time[1]);\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\tif($allday || empty($time[1]) || $time[1] == strtotime(date('23:59')))\n\t\t\t\t{\n\t\t\t\t\t$time_opt = __('All Day','framework');\n\t\t\t\t}\n\t\t\t}\n\t\t break;\n\t\t case '2':\n\n\t\t if((!empty($time_from) && !empty($time[1])) &&\n ($time_from != strtotime(date('23:59')) || $time[1] != strtotime(date('23:59'))))\n\t\t\t{\n\t\t\t\t //$time_opt_0 = date_i18n($time_format, $time_from);\n\t\t\t\t $time_opt_0 = date($time_format, $time_from);\n\t\t\t\t //$time_opt_1 = date_i18n($time_format, $time[1]);\n\t\t\t\t $time_opt_1 = date($time_format, $time[1]);\n\t\t\t\t if($time_from != $time[1])\n\t\t\t\t {\n\t\t\t\t $time_opt = $time_opt_0.' - '.$time_opt_1;\n\t\t\t\t }\n\t\t\t\t else\n\t\t\t\t {\n\t\t\t\t\t $time_opt = $time_opt_0;\n\t\t\t\t }\n\t\t }\n\t\t else\n\t\t\t{\n\t\t\t\tif($allday || empty($time_from)||$time_from == strtotime(date('23:59'))||$time[1] == strtotime(date('23:59')))\n\t\t\t\t{\n\t\t\t\t\t$time_opt = __('All Day','framework');\n\t\t\t\t}\n\t\t\t}\n\n\t\t break;\n\t\t default : \n\t\t if(!empty($time[0]))\n\t\t {\n\t\t $time_opt = date($time_format, $time[0]);\n\t\t }\n\t\t break;\n\t}\n\tswitch($event_dt_opt)\n\t{\n\t\t case '0':\n\t\t if(!empty($date[0]))\n\t\t {\n\t\t\t $diff_date = imic_dateDiff($date[0], $date[1]);\n\t\t\t if($diff_date>0)\n\t\t\t {\n\t\t $date_opt = date_i18n($date_format, $date[0]);\n\t\t $date_opt = '<strong>' . date_i18n('l', $date[0]) . '</strong> | ' . $date_opt;\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\t $date_opt = date_i18n($date_format, $key);\n\t\t $date_opt = '<strong>' . date_i18n('l', $key) . '</strong> | ' . $date_opt;\n\t\t\t }\n\t\t }\n\t\t break;\n\t\t case '1':\n\t\t if(!empty($date[1]))\n\t\t {\n\t\t\t$diff_date = imic_dateDiff($date[0], $date[1]);\n\t\t\tif($diff_date>0)\n\t\t\t {\n\t\t $date_opt = date_i18n($date_format, $date[1]);\n\t\t $date_opt = '<strong>' . date_i18n('l', $date[1]) . '</strong> | ' . $date_opt;\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\t $date_opt = date_i18n($date_format, $key);\n\t\t $date_opt = '<strong>' . date_i18n('l', $key) . '</strong> | ' . $date_opt;\n\t\t\t }\n\t\t }\n\t\t break;\n\t\t case '2':\n\t\t if(!empty($date[0]) && !empty($date[1]))\n\t\t {\n\t\t\t $date_opt_0 = date_i18n($date_format, $date[0]);\n\t\t\t $date_opt_0 = '<strong>' . date_i18n('l', $date[0]) . '</strong> | ' . $date_opt_0;\n\t\t\t if($date[0] !== $date[1])\n\t\t\t {\n\t\t\t\t$date_opt_1 = date_i18n($date_format, $date[1]);\n\t\t\t\t$date_opt_1 = '<strong>' . date_i18n('l', $date[1]) . '</strong> | ' . $date_opt_1;\n\t\t\t\t$date_opt = $date_opt_0.' '.__('to','framework').' '.$date_opt_1;\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\t $date_opt = date_i18n($date_format, $key);\n\t\t\t }\n\t\t }\n\t\t break;\n\t\t default :\n\t\t if(!empty($date[0]))\n\t\t {\n\t\t\t $diff_date = imic_dateDiff($date[0], $date[1]);\n\t\t\t if($diff_date>0)\n\t\t\t {\n\t\t $date_opt = date_i18n($date_format, $date[0]);\n\t\t $date_opt = '<strong>' . date_i18n('l', $date[0]) . '</strong> | ' . $date_opt;\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\t $date_opt = date_i18n($date_format, $key);\n\t\t $date_opt = '<strong>' . date_i18n('l', $key) . '</strong> | ' . $date_opt;\n\t\t\t }\n\t\t }\n\t\t break;\n\t}\n\n\n\treturn $time_opt .'BR'.$date_opt;\n}", "title": "" }, { "docid": "d4fa7f8685fb1b1072e9c236957d9fd3", "score": "0.4620001", "text": "static function validateAndFormatTime($time){\n $newTime = FALSE;\n $format = 'H:i';\n \n //attempts to format time, if given in 'g:i a' format. 5:30 pm\n $newTime = DateTime::createFromFormat('g:i a', $time);\n if ($newTime){\n return $newTime->format($format);\n }\n \n //attempts to format time, if given in 'ga' format. 5pm\n $newTime = DateTime::createFromFormat('ga', $time);\n if ($newTime){\n return $newTime->format($format);\n }\n \n //attempts to format time, if given in 'h:ia' format. 05:30 pm\n $newTime = DateTime::createFromFormat('h:ia', $time);\n if ($newTime){\n return $newTime->format($format);\n }\n \n //attempts to format time, if given in 'H:i' format. 17:30\n $newTime = DateTime::createFromFormat('H:i', $time);\n if ($newTime){\n return $newTime->format($format);\n }\n \n //attempts to format time, if given in 'g:i a' format. 05:30\n $newTime = DateTime::createFromFormat('G:i', $time);\n if ($newTime){\n return $newTime->format($format);\n }\n \n return $newTime;\n }", "title": "" }, { "docid": "6e173a18e05b7c4221492b3401f5ca7e", "score": "0.46188706", "text": "function availabletimes()\n\t{\n\t\t$configOptions =& JComponentHelper::getParams('com_salonbook');\n\t\t\n\t\t$aDate = JRequest::getVar('aDate','');\n\t\t$aTime = JRequest::getVar('aTime','10:00 am');\n\t\t\n\t\t$defaultDuration = $configOptions->get('default_appointment_length', '90');\n\t\t$duration = JRequest::getVar('duration',$defaultDuration);\t// in minutes\n\t\n\t\t// error_log(\"finding availabletimes for Time: $aTime \\n\", 3, JPATH_ROOT.DS.\"logs\".DS.\"salonbook.log\");\n\t\t// error_log(\"finding availabletimes for Date: $aDate \\n\", 3, JPATH_ROOT.DS.\"logs\".DS.\"salonbook.log\");\n\t\n\t\t// TODO: place this in a singleton. It need not run all the time.\n\t\t$dailySlotsAvailable = array();\n\t\t// read start-of-day and end-of-day times from the configuration file\n\t\t// 8:00 AM = 16 , 7:00 PM = 38\n\t\t\n\t\t$firstSlot = $configOptions->get('daily_start_timeslot', '16');\t\n\t\t$lastSlot = $configOptions->get('daily_end_timeslot', '36');\t\n\t\t\n\t\tfor ($slotPosition=$firstSlot; $slotPosition <= $lastSlot; $slotPosition++)\n\t\t{\n\t\t\t$dailySlotsAvailable[] = $slotPosition;\n\t\t}\n\t\t\n\t\t$currentDate = strtotime($aDate);\n\t\t\n\t\t// for each day, find all events\n\t\t// use $this->busySlots; then remove from the $dailySlotsAvailable array\n\t\n\t\t$model = $this->getModel('timeslots');\n\t\t$feed = $model->getBusySlotsQuery($aDate);\n\t\t\n\t\t// error_log(\"the busy feed has \" . count($feed) . \" items \\n\", 3, JPATH_ROOT.DS.\"logs\".DS.\"salonbook.log\");\n\t\t$dailyResults = $feed;\n\t\n\t\t// set up the default available time slots\n\t\t$slotsOpenForBookingToday = $dailySlotsAvailable;\n\t\t$dailyUsedSlots = array();\n\t\n\t\t// if events were found, then caluate the timeslots used by each,\n\t\t// then calculate the available slots, and have them ready for display to the user\n\t\tif ( count($feed) > 0 )\n\t\t{\n\t\t\tforeach ($feed as $event)\n\t\t\t{\n\t\t\t\t// $id = substr($event->id, strrpos($event->id, '/')+1);\n\t\t\t\t$id = $event->id;\n\t\n\t\t\t\t// check that the event is for the currentDate\n\t\t\t\tif ( $event->appointmentDate == date('Y-m-d', $currentDate) )\n\t\t\t\t{\n\t\t\t\t\t// process each event looking for timeslots used\n\t\t\t\t\t$usedSlots = $this->timeSlotsUsedByEvent( $event );\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// nothing was found\n\t\t\t\t\t$usedSlots = array();\n\t\t\t\t}\n\t\n\t\t\t\t$dailyUsedSlots = array_merge($dailyUsedSlots, $usedSlots);\n\t\t\t}\n\t\t}\n\t\n\t\t$slotsOpenForBookingToday = array_diff($dailySlotsAvailable, $dailyUsedSlots);\n\t\n\t\t// now print a list of all available slots for that day\n\t\t// Choose a start time but only if there are indeed times availabe for that day, else show a 'Sorry..' message\n\n\t\t$returnValue = \"<option value='-1' name='-1'> -- </option>\\n\";\n\t\t\n\t\t// error_log(\"insert \" . $duration . \" into this array\\n \" . var_export($slotsOpenForBookingToday, true) . \"\\n\", 3, JPATH_ROOT.DS.\"logs\".DS.\"salonbook.log\");\n\t\t\n\t\t$minutesPerTimeslot = $configOptions->get('default_timeslot_length', '30');\t// in minutes\n\t\t\n\t\t$durationInSlots = ceil($duration / $minutesPerTimeslot);\n\t\t\n\t\tif ( count($slotsOpenForBookingToday) > 0 )\n\t\t{\n\t\t\tfor ( $x=0; $x < count($slotsOpenForBookingToday); $x++ )\n\t\t\t{\n\t\t\t\tif ( !array_key_exists($x, $slotsOpenForBookingToday) );\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\t\t$thisSlotNumber = $slotsOpenForBookingToday[$x];\n\t\t\t\t\t// error_log(\"thisSlotNumber = \" . $thisSlotNumber . \"\\n\", 3, JPATH_ROOT.DS.\"logs\".DS.\"salonbook.log\");\n\t\t\t\t\t\n\t\t\t\t\t// check to see if the next $durationInSlots are free\n\t\t\t\t\t$durationAvailable = false;\n\t\t\t\t\tfor ( $test = 0; $test < $durationInSlots; $test++ )\n\t\t\t\t\t{\n\t\t\t\t\t\t$testSlotIndex = $x+$test+1;\n\t\t\t\t\t\tif ( array_key_exists($testSlotIndex, $slotsOpenForBookingToday) )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$nextSlotNumber = $slotsOpenForBookingToday[$testSlotIndex];\n\t\t\t\t\t\t\t$durationAvailable = true;\n\t\t\t\t\t\t} \n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// end of the day\n\t\t\t\t\t\t\t$nextSlotNumber = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ( $nextSlotNumber == 0 )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$durationAvailable = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\n\t\t\t\t\t// error_log(\"thisSlotNumber = \" . $thisSlotNumber . \" NextSlotNumber = \" . $nextSlotNumber . \"\\n\", 3, JPATH_ROOT.DS.\"logs\".DS.\"salonbook.log\");\n\t\t\t\t\t\n\t\t\t\t\tif ( $durationAvailable == true && $thisSlotNumber )\n\t\t\t\t\t{\n\t\t\t\t\t\t// show this timeslot\n\t\t\t\t\t\t$slotTime = $this->slotNumber2Time($thisSlotNumber);\n\t\t\t\t\t\t$ampm = ($thisSlotNumber < 24) ? \"am\" : \"pm\";\n\t\t\t\t\t\t$returnValue .= \"<option value='$thisSlotNumber' name='$thisSlotNumber' \";\n\t\t\t\t\t\t$displayTime = $slotTime . ' ' . $ampm;\n\t\t\t\t\t\t$selectedTime = date('g:i a', strtotime($aTime));\n\t\t\t\t\t\tif ( $displayTime === $selectedTime )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$returnValue .= \" selected \";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$returnValue .= \">$slotTime $ampm</option>\\n\";\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\t\n\t\t// JLog::add(\"returnValue = \" . $returnValue);\n\t\t\n\t\techo $returnValue;\n\t}", "title": "" }, { "docid": "224afed1e3c0a1803cf616af0a68be30", "score": "0.46016428", "text": "function datetime_for_mysql($date, $show_time = True) \n {\n $desmonta = explode(\" \", $date);\n $data = $desmonta[0];\n $hora = $desmonta[1];\n if($show_time)\n $saida = date_for_mysql($data).' '.$hora;\n else\n $saida = date_for_mysql($data);\n return $saida;\n }", "title": "" }, { "docid": "1fefe9a14aebc32d4188e3cbc501d4dc", "score": "0.45953837", "text": "function getRunTimes($runTimes)\n{\n\t$runTimes = str_replace(\"&#8206;\",\"\",$runTimes);\n\t$runTimes = explode(\"-\",ltrim($runTimes));\n\t$runTime = $runTimes['0'];\n\t$runTimes = str_replace(\"hr \",\":\",$runTime);\n\t$runTimes = str_replace(\"min\",\"\",$runTimes);\n\t$runTimes = hoursToMinutes($runTimes);\n\n\t$runTimer['Hour'] = rtrim($runTime);\n\t$runTimer['Mins'] = $runTimes;\n\n\treturn $runTimer;\n}", "title": "" }, { "docid": "225c0530f962290ba6f05bdf2bc0d2c1", "score": "0.4592919", "text": "public static function getLogEvent($event, $time=null, $ipAdd=null) {\n\t\treturn array(\n\t\t\t$event.'_time'\t=> isset($time) ? $time : time(),\n\t\t\t$event.'_date'\t=> isset($time) ? sqlDatetime($time) : sqlDatetime(),\n\t\t\t$event.'_ip'\t=> isset($ipAdd) ? $ipAdd : (!empty($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : 'NONE' ),\n\t\t);\n\t}", "title": "" }, { "docid": "e7b4a00a92560dc646acf45c6cf4b6d6", "score": "0.45877978", "text": "public function time24($time){\r\n\t\tif($time == null || $time == ''){\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\tif(!preg_match('/^\\d{2}:\\d{2}$/u', $time)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t$parts = explode(\":\",$time);\r\n\r\n\t\tif($parts[0] > 23 || $parts[1] > 59) return false;\r\n\t return true;\r\n\t}", "title": "" }, { "docid": "9201216d1bbd24248b9f4af60d126032", "score": "0.4572461", "text": "function Seconds2TimeParts($time)\r\n\t\t{\r\n\t\t\tif(is_numeric($time))\r\n\t\t\t{\r\n\t\t\t\t$value = array(\r\n\t\t\t\t\t\"years\" => 0, \"days\" => 0, \"hours\" => 0,\r\n\t\t\t\t\t\"minutes\" => 0, \"seconds\" => 0,\r\n\t\t\t\t);\r\n\t\t\t\tif($time >= 31556926)\r\n\t\t\t\t{\r\n\t\t\t\t\t$value[\"years\"] = floor($time/31556926);\r\n\t\t\t\t\t$time = ($time%31556926);\r\n\t\t\t\t}\r\n\t\t\t\tif($time >= 86400)\r\n\t\t\t\t{\r\n\t\t\t\t\t$value[\"days\"] = floor($time/86400);\r\n\t\t\t\t\t$time = ($time%86400);\r\n\t\t\t\t}\r\n\t\t\t\tif($time >= 3600)\r\n\t\t\t\t{\r\n\t\t\t\t\t$value[\"hours\"] = floor($time/3600);\r\n\t\t\t\t\t$time = ($time%3600);\r\n\t\t\t\t}\r\n\t\t\t\tif($time >= 60)\r\n\t\t\t\t{\r\n\t\t\t\t\t$value[\"minutes\"] = floor($time/60);\r\n\t\t\t\t\t$time = ($time%60);\r\n\t\t\t\t}\r\n\t\t\t\t$value[\"seconds\"] = floor($time);\r\n\t\t\t\treturn (array) $value;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn (bool) FALSE;\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "8702e7787c2c0843a0f393fc4f4a3616", "score": "0.4566388", "text": "public static function getDaysAndTimes( $time_zone_offset = null )\n {\n /** @var \\WP_Locale $wp_locale */\n global $wp_locale;\n\n $result = array(\n 'days' => array(),\n 'times' => array()\n );\n\n $start_of_week = get_option( 'start_of_week' );\n $data = Entities\\StaffScheduleItem::query()\n ->select(\n \"GROUP_CONCAT(\n DISTINCT `r`.`day_index`\n ORDER BY IF (`r`.`day_index` + 10 - {$start_of_week} > 10, `r`.`day_index` + 10 - {$start_of_week}, 16 + `r`.`day_index`)\n ) AS `day_ids`,\n SUBSTRING_INDEX(MIN(`r`.`start_time`), ':', 2) AS `min_start_time`,\n SUBSTRING_INDEX(MAX(`r`.`end_time`), ':', 2) AS `max_end_time`\"\n )\n ->whereNot( 'start_time', null )\n ->fetchRow();\n\n if ( $data['day_ids'] ) {\n $week_days = array_values( $wp_locale->weekday_abbrev );\n foreach ( explode( ',', $data['day_ids'] ) as $day_id ) {\n $result['days'][ $day_id ] = $week_days[ $day_id - 1 ];\n }\n }\n\n if ( $data['min_start_time'] && $data['max_end_time'] ) {\n $start = Utils\\DateTime::timeToSeconds( $data['min_start_time'] );\n $end = Utils\\DateTime::timeToSeconds( $data['max_end_time'] );\n $client_start = $start;\n $client_end = $end;\n\n if ( $time_zone_offset !== null ) {\n $client_start -= $time_zone_offset * MINUTE_IN_SECONDS + get_option( 'gmt_offset' ) * HOUR_IN_SECONDS;\n $client_end -= $time_zone_offset * MINUTE_IN_SECONDS + get_option( 'gmt_offset' ) * HOUR_IN_SECONDS;\n }\n\n while ( $start <= $end ) {\n $result['times'][ Utils\\DateTime::buildTimeString( $start, false ) ] = Utils\\DateTime::formatTime( $client_start );\n // The next value will be rounded to integer number of hours, i.e. e.g. 8:00, 9:00, 10:00 and so on.\n $start = self::_roundTime( $start + 30 * 60 );\n $client_start = self::_roundTime( $client_start + 30 * 60 );\n }\n // The last value should always be the end time.\n $result['times'][ Utils\\DateTime::buildTimeString( $end, false ) ] = Utils\\DateTime::formatTime( $client_end );\n }\n\n return $result;\n }", "title": "" }, { "docid": "0ff5967a07a575bc2e8616e5f675301c", "score": "0.45591685", "text": "public function GetPointByDate($data, $time)\n {\n if (($this->checkDate($data)) && ($this->checkTime($time)) && (!empty($this->dataArray)) && (is_array($this->dataArray))){\n for(reset($this->dataArray); (list($key, $val) = each($this->dataArray)) !== false; )\n {\n if (($val['Arrival']['Date'] == $data) && ($val['Arrival']['Time'] == $time)){\n $this->SetSelfPoint($val);\n return $val;\n }\n }\n return null;\n }\n else\n return false;\n }", "title": "" }, { "docid": "d975c0db9dd48d603670f44894d62edd", "score": "0.45428303", "text": "function getFinishTimes($runtime, $movieTime,$trailerTime)\n{\n\t$time = $runtime+$trailerTime;\n\t$Hour = $time / 60;\n\t$explodeTime = explode(\".\",$Hour);\n\n\tif(!isset($explodeTime[1])){\n\t\t$remainMins = \"0.\".substr($explodeTime[0],0,2);\n\t}else{\n\t\t$remainMins = \"0.\".substr($explodeTime[1],0,2);\n\t}\n\t$Min = explode(\".\",$remainMins * 60);\n\n //get rough time of film star and end\n\t$splitMovieTime = explode(\":\",$movieTime);\n\t$startime = $splitMovieTime['0'].\":\".$splitMovieTime['1'].\":00\"; \n\t$duration = $explodeTime[0].\":\".str_pad($Min[0],2, \"0\", STR_PAD_LEFT).\":00\";\n\n\t$aryDeparture = explode(\":\", $startime); \n\t$aryDuration = explode(\":\", $duration); \n\n\t$timeDeparture = mktime($aryDeparture[0], $aryDeparture[1], $aryDeparture[2]); \n\n\t$arrive = date(\"H:i:s\", strtotime(\"+\" . $aryDuration[0] . \" hours +\" . $aryDuration[1] . \" minutes +\" . $aryDuration[2] . \" seconds\", $timeDeparture)); \n\n\treturn $arrive;\n}", "title": "" }, { "docid": "942fba78266f76c7aa3eef7d5e0ab99b", "score": "0.45363826", "text": "function timetables_parse_end_time($time) {\n\treturn date('Y-m-d H:i:s',mktime($time - 1,50,0,1,1,2016));\n}", "title": "" }, { "docid": "3ae46d811dd5d64ecdea4568df1b22ba", "score": "0.45353347", "text": "private function getBroadcastStartsAtTimestamp($day, $time)\n {\n $format = 'l H:i:s';\n $time = $day . ' ' . $time;\n $timezone = 'America/Chicago';\n $date = Carbon::createFromFormat($format, $time, $timezone);\n\n if ($date->isPast()) {\n $date->addWeek();\n }\n \n return $date->timezone('utc')->toDateTimeString();\n }", "title": "" }, { "docid": "73921ac9e71bccc97e2cc8d2a5c82edb", "score": "0.45177603", "text": "function getFlightsOnTime() {\n global $connection;\n $query = \"SELECT * FROM Flight WHERE ScheduledArrivalTime = ActualArrivalTime\";\n\n $flights = $connection->query($query);\n\n return $flights;\n }", "title": "" }, { "docid": "8580eee13db933ca74d3932a1d5420d3", "score": "0.45049688", "text": "public function getNamazTime($namaz_id)\n {\n $namazData = $this->namaztime->where('m_id',$namaz_id)->get();\n $mosqueData = $this->mosque->find($namaz_id);\n $dataArray = [];\n foreach ($namazData as $namazTime)\n {\n $dataArray[] = ['title' => \" = Fajar Time\",'start' => Carbon::parse($namazTime->fajar)->format('c') ];\n if($namazTime->zuhar != null)\n {\n $dataArray[] = ['title' => \" = Zhuar Time\",'start' => Carbon::parse($namazTime->zuhar)->format('c') ];\n }\n if($namazTime->jumma != null){\n $dataArray[] = ['title' => \" = Jumma Time\", 'start' => Carbon::parse($namazTime->jumma)->format('c')];\n }\n $dataArray[] = ['title' => \" = Asar Time\",'start' => Carbon::parse($namazTime->asar)->format('c') ];\n $dataArray[] = ['title' => \" = Maghrib Time\",'start' =>Carbon::parse($namazTime->maghrib)->format('c') ];\n $dataArray[] = ['title' => \" = Esha Time\",'start' => Carbon::parse($namazTime->esha)->format('c') ];\n }\n return view('backend.update_time', compact('mosqueData','dataArray'));\n }", "title": "" }, { "docid": "5d27ad0e2fe84a5143c8e2761c3295c1", "score": "0.4503395", "text": "public function startTime(float $time): static;", "title": "" }, { "docid": "9f7b4a42db332ddf2f8ad84157adaa03", "score": "0.44982105", "text": "function search_show($shows, $show_title, $show_type) {\n\n // array to store the matched shows\n $matched_shows = array();\n\n // if show list is not empty search for the string in the show\n if($shows->num_rows > 0) {\n\n // include the core.php file for getting the $HOME_URL variable\n include(\"../config/core.php\");\n $SHOW_URL = $HOME_URL. \"shows/show.php?showid=\";\n \n // search for the title in the fetched results and build the urls\n while($row = $shows->fetch_assoc()) {\n \n //print_r($row);\n $title = NULL;\n\n // assign title to the title variable based on the show type\n if ($show_type == \"Movie\") {\n $title = $row['Movie_Name'];\n } else if ($show_type == \"TV Show\") {\n $title = $row['TVShow_Name'];\n } \n\n // Check if the title has the term show_title in it\n if(strstr(strtoupper($title), strtoupper($show_title))) {\n //echo($title);\n array_push($matched_shows, array(\"Title\" => $title, \"URL\" => $SHOW_URL. strval($row['SHOW_ID']), )); \n }\n }\n }\n //print_r($matched_shows);\n \n return $matched_shows;\n\n \n }", "title": "" }, { "docid": "6826d7930661135f2cb855f96ccdb985", "score": "0.4492348", "text": "function Military2StandardTime($time)\r\n\t\t{\r\n\t\t\t$timeArray = explode(':',$time,2);\r\n\t\t\tif($timeArray[0] == 0)\r\n\t\t\t{\r\n\t\t\t\t$hours = 12;\r\n\t\t\t\t$ampm = \"AM\";\r\n\t\t\t}\r\n\t\t\telse if($timeArray[0] == 12)\r\n\t\t\t{\r\n\t\t\t\t$hours = 12;\r\n\t\t\t\t$ampm = \"PM\";\r\n\t\t\t}\r\n\t\t\telse if($timeArray[0] < 12)\r\n\t\t\t{\r\n\t\t\t\t$hours = (int) $timeArray[0];\r\n\t\t\t\t$ampm = \"AM\";\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$hours = (int) $timeArray[0] - 12;\r\n\t\t\t\t$ampm = \"PM\";\r\n\t\t\t}\r\n\t\t\trequire_once('dataVerification.php');\r\n\t\t\tif(!isShortTime($hours.':'.$timeArray[1]) && !isTime($hours.':'.$timeArray[1]))\r\n\t\t\t\treturn \"Invalid Time\";\r\n\t\t\telse\r\n\t\t\t\treturn ($hours.':'.$timeArray[1].' '.$ampm);\r\n\t\t}", "title": "" }, { "docid": "9f1228e2fae1d791cdbb0588a0d463d9", "score": "0.44804767", "text": "public function show_time()\n {\n return $this->belongsTo('App\\Http\\Models\\ShowTime','show_time_id');\n }", "title": "" }, { "docid": "dbc9e5b1b1d64577eff0ffd22568ab30", "score": "0.44785386", "text": "function printShow($show) {\n\tif ($show->active != '1') return;\n//\tif (!is_null($show->show_desc)) {\n\t\techo \"<h4>{$show->name}\";\n\t\t$anchorvalue = trim($show->name);\n//\t\t$anchorvalue = $anchorvalue.replace(/\\s+/, \"\");\n\t\techo \"<a href='#\".$anchorvalue.\"'></a>\";\n\t\tif (!is_null($show->podcast)) {\n\t\t\techo \" <a href=\\\"{$show->podcast}\\\" \".\n\t\t\t\"onclick=\\\"trackOutboundLink('\".\n\t\t\t$show->podcast.\"'\".\n\t\t\t\"); return false;\\\">\".\n\t\t\t\"<img src=\\\"http://www.citr.ca/images/rss.gif\\\" alt=\\\"RSS\\\"/>\".\n\t\t\t\"</a>\";\n\t\t}\n\t\techo \"</h4>\";\n\t\tif (!is_null($show->img_url)) {\n\t\t\techo \"<p style=\\\"margin:0\\\"><img style=\\\"float:right; max-width: 160px; padding: 6px\\\" src=\\\"{$show->img_url}\\\" alt=\\\"Show Image\\\" /></p>\";\n\t\t}\n\t\tif (count($show->times) > 0) {\n\t\t\tforeach ($show->times as $time_r) {\n\t\t\t\tif ($time_r['start_day'] == $time_r['end_day']) {\n\t\t\t\t\tif ($time_r['alternating'] != 0) {\n\t\t\t\t\t\techo \"Every other \";\n\t\t\t\t\t}\n\t\t\t\t\t$start_t = strtotime($time_r['start_time']);\n\t\t\t\t\t$end_t = strtotime($time_r['end_time']);\n\t\t\t\t\techo ShowTime::$dow[$time_r['start_day']].\" (\".date(\"H:i\",$start_t).\" - \".date(\"H:i\",$end_t).\")\";\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ($time_r['alternating'] != 0) {\n\t\t\t\t\t\techo \"Every other \";\n\t\t\t\t\t}\n\t\t\t\t\t$start_t = strtotime($time_r['start_time']);\n\t\t\t\t\t$end_t = strtotime($time_r['end_time']);\n\t\t\t\t\techo ShowTime::$dow[$time_r['start_day']].\" \".date(\"H:i\",$start_t).\" - \".ShowTime::$dow[$time_r['end_day']].\" \".date(\"H:i\",$end_t);\n\t\t\t\t}\n\t\t\t\techo \"<br />\";\n\t\t\t}\n\t\t}\n\t\tif (!is_null($show->host)) {\n\t\t\techo \"<strong>Host:</strong> {$show->host} <br />\";\n\t\t}\n\t\t\n\t\techo \"<strong>Description:</strong><br />\", nl2br($show->show_desc);\n\t\t\n\t\techo \"<br />\";\n\t\tif (!is_null($show->website)) {\n\t\t\techo \"<strong>Website:</strong> <a href=\\\"{$show->website}\\\">{$show->website}</a><br />\";\n\t\t}\n\t\tif (count($show->contact) > 0) {\n\t\t\tforeach ($show->contact as $contact_r) {\n\t\t\t\techo \"<strong>\".$contact_r['social_name'].\"</strong>: \";\n\t\t\t\tif ($contact_r['unlink'] == 0) {\n\t\t\t\t\techo \"<a href=\\\"{$contact_r['social_url']}\\\">\",($contact_r['short_name'] != \"\" ? $contact_r['short_name'] : $contact_r['social_url']), \"</a>\";\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\techo $contact_r['social_url'];\n\t\t\t\t}\n\t\t\t\techo \"<br />\";\n\t\t\t}\n\t\t}\n\t\tif (!is_null($show->secondary_genre_tags)) {\n\t\t\techo \"<strong>Genre:</strong> {$show->secondary_genre_tags}<br />\";\n\t\t}\n\t\tif (count($show->sponsors) > 0) {\n\t\t\techo \"<strong>Sponsored By:</strong>\";\n\t\t\tforeach ($show->sponsors as $sponsor) {\n\t\t\t\techo \"<br />\";\n\t\t\t\tif (!is_null($sponsor[\"url\"])) {\n\t\t\t\t\techo \"<a href=\\\"{$sponsor['url']}\\\">{$sponsor['name']}</a>\";\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\techo $sponsor[\"name\"];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\techo \"<br /><br />\";\n\t\techo \"<a href=\\\"#Top\\\">Back to top</a>\";\n//\t}\n}", "title": "" }, { "docid": "9b13c1948892da8f855f091c510a5aa0", "score": "0.4467326", "text": "function get_game_times() {\n if (empty($this->_arrTime)) {\n $this->_arrTime = $this->get_tbl_data(TBL_GAME_TIME);\n //var_dump ($this->_arrTime);\n }\n return $this->_arrTime;\n }", "title": "" }, { "docid": "64fa2e17e7fe01343e994a16facabfa8", "score": "0.44638976", "text": "function getByMicrotime($microtime){\n\t\t$date = date('Y-m-d',$microtime);\n\t\t$start_time = date('Hi',$microtime);\n\t\t$end_time = date('Hi',$microtime+TIME_SLOT_STEP);\n\t\t//Buffer on ending\n\t\t$buffer = '0000';\n\t\t//PRIME values\n\t\t$_STPRIME = $start_time.$end_time; //Start Time Prime\n\t\t$_ETPRIME = $end_time.$buffer; //End Time Prime\n\t\t$_TRPRIME = \"CONVERT(CONCAT(DATE_FORMAT(Reservation.time_reserved,'%k%i'),DATE_FORMAT(Reservation.estimate_end,'%k%i')), UNSIGNED INTEGER)\"; //Time Reserved Prime\n\t\t$_EEPRIME = \"CONVERT(CONCAT(DATE_FORMAT(Reservation.estimate_end,'%k%i'),'$buffer'), UNSIGNED INTEGER)\"; //Estimate End Prime\n\t\t//Build condition\n\t\t$cond = array('Reservation.date_reserved'=>$date,\n\t\t\t\t\t'OR'=>array(\n\t\t\t\t\t\tarray($_TRPRIME.'>='.$_STPRIME,$_TRPRIME.'<='.$_ETPRIME),\n\t\t\t\t\t\tarray($_TRPRIME.'<='.$_STPRIME,$_EEPRIME.'>='.$_ETPRIME),\n\t\t\t\t\t\tarray($_EEPRIME.'>='.$_STPRIME,$_EEPRIME.'<='.$_ETPRIME),\n\t\t\t\t\t\t)\t\t\n\t\t\t\t\t);\n\t\treturn $this->find('all',array('conditions'=>$cond));\n\t}", "title": "" }, { "docid": "1aef21cbf121a06838a48f93c12b90b5", "score": "0.4456938", "text": "public function extractHour(string $time): string\n {\n $arr = explode(\":\", $time);\n return $arr[0];\n }", "title": "" }, { "docid": "a2e8b6e995f356e8381367a32e0df932", "score": "0.44437724", "text": "public function getByAlertTime($start_datetime, $end_datetime)\n {\n $start_time = substr($start_datetime, 0, -2).\"00\";\n $end_time = substr($end_datetime, 0, -2).\"59\";\n $result = Event::select('e.id', 'e.case_id', 'e.title', 'e.description', 'e.at', 'cc.first_name', 'cc.last_name', 'e.user_id',\n 'etype.name as event_type_name', 'users.email', 'users.first_name as user_first_name','users.last_name as user_last_name', 'cc.primary_phone as cc_phone','cc.email as cc_email', 'users.company_id as user_company_id')\n ->from('events as e')\n ->leftJoin('cases as c', 'e.case_id', 'c.id')\n ->leftJoin('case_contacts as cc', 'cc.case_id', 'c.id')\n ->leftJoin('users', 'users.id', 'e.user_id')\n ->leftJoin('event_types as etype','etype.id', 'e.type_id')\n ->where('e.alert_email', 1)\n ->whereBetween('e.alert_at', array($start_time,$end_time))\n ->get();\n if (!count($result)) {\n return array();\n }\n $payload = array();\n foreach ($result->toArray() as $a) {\n\n $payload[] = array(\n 'alert_id' => $a['id'],\n 'case_id' => $a['case_id'],\n 'event_type_name' => $a['event_type_name'],\n 'first_name' => $a['first_name'],\n 'last_name' => $a['last_name'],\n 'at' => date('m/d g:ia', strtotime($a['at'])),\n 'relative_datetime' => date(\"Y-m-d H:i:s\",strtotime($a['at'])),\n 'description' => $a['description'],\n 'title' => $a['title'],\n 'user_name' => $a['user_first_name'] . ' '. $a['user_last_name'],\n 'user_email' => $a['email'],\n 'cc_phone' => $a['cc_phone'],\n 'cc_email' => $a['cc_email'],\n 'user_company_id' => $a['user_company_id']\n );\n }\n return $payload;\n }", "title": "" }, { "docid": "ee62cc27353e0adcefa6a14ebc608d8d", "score": "0.44384852", "text": "private function prepareShow($show_r) {\n\t\tforeach($this->all_hosts as $i => $host_info){\n\t\t\tif($host_info['id'] == $show_r['host_id']){\n\t\t\t\t$show_r[\"host\"] = $host_info['name'];\n\t\t\t}\n\t\t}\n\n\t\t$show_times = array();\n\n\t\tforeach($this->all_times as $show => $one_time_list){\n\t\t\tif ($one_time_list['show_id'] == $show_r['id']){\n\t\t\t\t\n\n\t\t\t\t\t\t//TODO add duration as a new field in all $times arrays created with show objects\n\t\t\t\t$wdt = ShowTime::createWeekdayTime($one_time_list['start_time'],$one_time_list['start_day']);\n\t\t\t\t$wdt_end = ShowTime::createWeekdayTime($one_time_list['end_time'],$one_time_list['end_day']);\n\t\t\t\t$duration = ($wdt_end - $wdt)/3600; // 3600 seconds in an hour\n\n\t\t \t \t$one_time_list['duration'] = $duration;\n\t\t\t\t$show_times []= $one_time_list;\n\t\t\t}\n\t\t}\n\n//\n\t\t$show_socials = array();\n\n\t\tforeach($this->all_socials as $i => $one_socials_list){\n\t\t\tif($one_socials_list['show_id'] == $show_r['id']){\n\t\t\t\t$show_socials []= $one_socials_list;\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\n\t\treturn new Show($show_r, $show_times, $show_socials);\n\t}", "title": "" }, { "docid": "66b003bbb49192cb65fbbdc05b1753b4", "score": "0.4432758", "text": "function tptn_get_from_date( $time = null, $daily_range = null, $hour_range = null ) {\n\n\t$current_time = isset( $time ) ? strtotime( $time ) : strtotime( current_time( 'mysql' ) );\n\t$daily_range = isset( $daily_range ) ? $daily_range : tptn_get_option( 'daily_range' );\n\t$hour_range = isset( $hour_range ) ? $hour_range : tptn_get_option( 'hour_range' );\n\n\tif ( tptn_get_option( 'daily_midnight' ) ) {\n\t\t$from_date = $current_time - ( max( 0, ( $daily_range - 1 ) ) * DAY_IN_SECONDS );\n\t\t$from_date = gmdate( 'Y-m-d 0', $from_date );\n\t} else {\n\t\t$from_date = $current_time - ( $daily_range * DAY_IN_SECONDS + $hour_range * HOUR_IN_SECONDS );\n\t\t$from_date = gmdate( 'Y-m-d H', $from_date );\n\t}\n\n\t/**\n\t * Retrieve the from date for the query\n\t *\n\t * @since 2.6.0\n\t *\n\t * @param string $from_date From date.\n\t * @param string $time A date/time string.\n\t * @param int $daily_range Daily range.\n\t * @param int $hour_range Hour range.\n\t */\n\treturn apply_filters( 'tptn_get_from_date', $from_date, $time, $daily_range, $hour_range );\n}", "title": "" }, { "docid": "5236b23953fff6f2b58986c27ee15f0c", "score": "0.44226035", "text": "public static function getCurrentTimeBlock(){\n $timezone = '- 6 hours';\n\n //get today's day and time, set the start and end times for the school day\n $today = date('l', strtotime($timezone));\n $time = date('H:i:s', strtotime($timezone));\n $startDay = '08:00:00';\n $endDay = '20:00:00';\n\n // For testing purposes, we can set these dummy variables here:\n //$time = '12:00:01';\n //$today = 'Monday';\n\n //if today is mon (1), wed (3), fri(5)\n if(($today == 'Monday' || $today == 'Wednesday' || $today == 'Friday')&&($time > $startDay) && ($time < $endDay)){\n //we are looking for the mwf time block that is currently active\n $checkinDay = 'mwf';\n\n //Get the course_time id for the current time\n return $checkinTimeBlock = (( DB::table('course_times')->where('course_time_end', '>=', $time)->where('course_time_start', '<=', $time)->where('course_time_days', $checkinDay)->first()));\n\n } else if (($today == 'Tuesday' || $today == 'Thursday')&&($time > $startDay) && ($time < $endDay)){\n //we are looking for a tt time block\n $checkinDay = 'tt';\n\n //Get the course_time id for the current time\n return $checkinTimeBlock = (( DB::table('course_times')->where('course_time_end', '>=', $time)->where('course_time_start', '<=', $time)->where('course_time_days', $checkinDay)->first()));\n\n } else if (($today == 'Saturday' || $today == 'Sunday')){\n //we are looking for a tt time block\n $checkinDay = 'ss';\n\n //Get the course_time id for the current time\n return $checkinTimeBlock = (( DB::table('course_times')->where('course_time_end', '>=', $time)->where('course_time_start', '<=', $time)->where('course_time_days', $checkinDay)->first()));\n\n } else {\n return \"No classes are scheduled at this time.\" ;\n }\n }", "title": "" }, { "docid": "058d8fb4812695c244c9faad6abec32c", "score": "0.4422089", "text": "public function within($time){\n\t\t$periods = array(\"seg\", \"min\", \"hora\", \"día\", \"sem.\", \"mes\", \"año\", \"dec.\");\n\t\t$lengths = array(\"60\",\"60\",\"24\",\"7\",\"4.35\",\"12\",\"10\");\n\n\t\t$difference = $time-time();\n\t\t$prefx = $difference<0?'Hace':'En';\n\t\t$difference = abs($difference);\n\n\t\tfor($j = 0; $difference >= $lengths[$j] && $j < count($lengths)-1; $j++) {\n\t\t\t$difference /= $lengths[$j];\n\t\t}\n\n\t\t$difference = round($difference);\n\n\t\tif($difference != 1) {\n\t\t\t$periods[$j] .= \"s\";\n\t\t}\n\n\t\treturn $prefx.' '.$difference.' '.$periods[$j];\n\t}", "title": "" }, { "docid": "fa174ce6d71186c120eceddf2562d9e2", "score": "0.44147032", "text": "function AdjStartTime($aTime,$aHourType=false,$aMinType=false,$aSecType=false) {\n return $this->AdjTime($aTime,0,$aHourType,$aMinType,$aSecType);\n }", "title": "" }, { "docid": "a2a69c8a6bfe805ecf365cb12c1bc214", "score": "0.44146287", "text": "public function timeFormat();", "title": "" }, { "docid": "43a794035fe0036208b9dc19752c2875", "score": "0.44144657", "text": "private function validateTime(string $time) {\r\n return preg_match(\"/^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/\", $time);\r\n }", "title": "" }, { "docid": "5d3c89cb3ae2ae1842df851fcbf23579", "score": "0.44126296", "text": "public function workingDay($time)\n {\n return $this->workingDays->first()->work->$time;\n }", "title": "" }, { "docid": "36a03379105f760adfc48bbc9b44dd12", "score": "0.43988645", "text": "function checkTime($Utime,$startTime,$endTime){\r\n\t\t// Delimiters may be slash, dot, or hyphen\r\n\t\t$hr=0;\r\n\t\t$min=0;\r\n\t\tlist($hr,$min) = split('[:]', $Utime);\r\n\t\t//echo \"Month: $month; Day: $day; Year: $year<br />\\n\";\r\n\t\tlist($startHr,$startMin, $startSec) = split('[:]', $startTime);\r\n\t\tlist($endHr,$endMin, $endSec) = split('[:]', $endTime);\r\n\r\n\t\t//echo $hr.\":\".$min.\"-\".$startHr.\":\".$startMin.\":\". $startSec.\"-\".$endHr.\":\".$endMin.\":\".$endSec;\r\n\t\tif($hr<=$startHr){\r\n\t\t\tif($hr==$startHr&&$min<$startMin){\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\t\t\telseif($hr<$startHr){\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ($hr>=$endHr&&$min>$endMin) {\r\n\t\t\tif($hr==$endHr&&$min>$endMin){\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\t\t\telseif($hr>$endHr){\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn 1;\r\n }", "title": "" }, { "docid": "b76f3634170cd309823a2a8dc8cf4404", "score": "0.43988198", "text": "public static function findCallTime($callTimeId,$type='') {\n try {\n return VicidialCallTimes::where('call_time_id', $callTimeId)->get();\n } catch (Exception $e) {\n $this->postLogs(config('errorcontants.mysql'), $e);\n throw $e; \n } \n }", "title": "" }, { "docid": "8e1875334dc383f4b38c401c96ccf871", "score": "0.43894804", "text": "public function getTimes($inicio = '2015-03-02 20:02:03', $final = '2015-03-02 20:04:03',$cant=100) {\n $t1 = strtotime($inicio);\n $t2 = strtotime($final);\n $retorno=array();\n $ind=0;\n $cont=0;\n while ($cont<$cant) {\n if ($t1 >= $t2) {\n $t1= strtotime($inicio);\n }\n $retorno[$ind]=date('H:i:s', $t1);\n $t1 = strtotime('+1 second', $t1);\n $ind=$ind+1;\n $cont=$cont+1;\n }\n return $retorno;\n }", "title": "" }, { "docid": "889cfdc4ffe49dc32d1b6e99f81ea86f", "score": "0.43878666", "text": "public function onStartMatchEnd($count, $time);", "title": "" }, { "docid": "77031dcddd97a8dab74ed9295ef7b6e3", "score": "0.43877935", "text": "public function startOfDay();", "title": "" }, { "docid": "fab759f95a565a31682e7ccdf9a05bcf", "score": "0.4384427", "text": "function _valid_time($cadena)\n\t{\n\t$result = array(0,0,0);\n\t$cadena_error = \"<p class=\\\"error\\\">\";\n\t$longitud = strlen($cadena);\n\t$cadena_array = _explode_trim($cadena, ':');\n\t$index = 0;\n\n\t// Si es de más de 8 carácteres (hh:mm:ss), anula\n\tif ($longitud > 8) \n\t\t{\n\t\techo($cadena_error.\"La cadena es de más de 8 carácteres:\".$longitud.\"</p>\");\n\t\treturn FALSE;\n\t\t}\n\t\n\tforeach($cadena_array as $key => $value)\n\t\t{\n\t\tif ($value == \"00\") $value += 1;\n\t\tif ((int)$value)\n\t\t\t{\n\t\t\tif ($value == 1) $value -= 1;\n\t\t\t// Si es posible convertirlo a un entero, ver en qué segmento vamos.\n\t\t\tswitch ($index)\n\t\t\t\t{\n\t\t\t\tcase 0:\n\t\t\t\t\tif ($value < 0 || $value > 24) return FALSE;\n\t\t\t\t\t$result[0] = $value;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tif ($value < 0 || $value > 59) return FALSE;\n\t\t\t\t\t$result[1] = $value;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tif ($value < 0 || $value > 59) return FALSE;\n\t\t\t\t\t$result[2]= $value;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\techo(\"$cadena_error $cadena contiene más de 3 segmentos, el último es $value</p>\");\n\t\t\t\t\treturn FALSE;\n\t\t\t\t}\n\t\t\t// Cambiar de segmento\n\t\t\t$index += 1;\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\techo(\"$cadena_error Un segmento no se pudo convertir a un entero: $value.</p>\");\n\t\t\treturn FALSE;\n\t\t\t} // Fin del IF\n\t\t} // Fin del FOREACH\n\t\t\n\treturn mktime($result[0], $result[1], $result[2]);\n\t}", "title": "" }, { "docid": "632244f9ba19ec5548d55bbaa2ba7673", "score": "0.43823928", "text": "function get_timer(){\r\n\t$check = \"SELECT * FROM `timer`\";\r\n\t$checker = mysql_query($check)or die(\"Could not insert data because \".mysql_error());\r\n\twhile($row= mysql_fetch_assoc($checker)) {\r\n\t\tif($row['start_min']<10){\t\t\t\t//Fix weird PHP stripping of 0's\r\n\t\t\t$start_minute='0'.$row['start_min'];\r\n\t\t}else{\r\n\t\t\t$start_minute=$row['start_min'];\r\n\t\t}\r\n\t\tif($row['end_min']<10){ //Fix weird PHP stripping of 0's\r\n\t\t\t$end_minute='0'.$row['end_min'];\r\n\t\t}else{\r\n\t\t\t$end_minute=$row['end_min'];\r\n\t\t}\r\n\t\t$time= date(\"H:i:s\"); \r\n\t\techo 'Time is based off of the servers time.<br/> Current Server Time is:'.$time .'<br/>';\r\n\t\techo 'Current Start Date: '.$row['start_month'].'/'.$row['start_day'].'/'. $row['start_year'] .' at '.$row['start_hour'].':'.$start_minute. '<br/>';\r\n\t\techo 'Current End Date:'. $row['end_month'].'/',$row['end_day'].'/'.$row['end_year'].' at '.$row['end_hour'].':'.$end_minute;\r\n\t}\r\n\r\n}", "title": "" }, { "docid": "d313425881c1d3a5a696cdc8890c9b8a", "score": "0.43815124", "text": "public static function convertTime($time, $format = false) {\n list($hours, $minutes) = self::_convertTimeTo24hArray($time);\n if($format == AW_Core_Model_Abstract::RETURN_STRING) {\n return $hours.\":\".$minutes.\":00\";\n }else {\n return array(sprintf(\"%02s\", $hours), sprintf(\"%02s\",$minutes));\n }\n }", "title": "" }, { "docid": "84c88b253d5fb96350abe7e3a229d945", "score": "0.43756154", "text": "public function getNextRuntimes($days) {\r\n\t\t\t\r\n\t\t\t$times = array();\r\n\t\t\t$scheduled = $this->when;\r\n\t\t\t$curDay = MyDate::getDayOfMonth();\r\n\t\t\t$hour = $this->getStartHour();\r\n\t\t\t$minute = $this->getStartMinute();\r\n\t\t\t$month = MyDate::getMonth();\r\n\t\t\t\r\n\t\t\tfor ($add = 0; $add < $days; ++$add) {\t\t\t\t\t\t\t\t\t// check the next x days\r\n\t\t\t\t$dayOfMonth = $curDay + $add;\r\n\t\t\t\t$ts = mktime($hour, $minute, 0, $month, $dayOfMonth);\t\t\t// get timestamp for the to-be-checked day\r\n\t\t\t\t$dayOfWeek = MyDate::getDayOfWeek($ts) - 1;\t\t\t\t\t\t// $dayOfWeek: 0 = monday, 6 = sunday\r\n\t\t\t\tif ($scheduled[$dayOfWeek] == '-') {continue;}\t\t\t\t\t// check if the show is scheduled to run on this day-of-week\r\n\t\t\t\t$times[] = new VdrEpgTimerSchedule($this->getChannel(), $this->getTitle(), $ts, $this->getDuration());\t\t\t\t\t\t\t\t\t\t\t\t\t// scheduled => add\r\n\t\t\t}\r\n\t\r\n\t\t\treturn $times;\r\n\t\r\n\t\t}", "title": "" } ]
404ba018415cfb65a3783fba6f9b2558
Add controllers to the DI container.
[ { "docid": "0afcbaaab76c54d04dda81fe735d5e0b", "score": "0.68737155", "text": "protected function _controllers()\n {\n $this['watchController'] = function ($c) {\n return new Watch($c['app'], $c['watchFunctions']);\n };\n\n $this['runController'] = function ($c) {\n return new Run($c['app'], $c['profiles'], $c['watchFunctions']);\n };\n\n $this['waterfallController'] = function ($c) {\n return new Waterfall($c['app'], $c['profiles']);\n };\n\n $this['importController'] = function ($c) {\n return new Import($c['app'], new Factory(), new Saver());\n };\n\n $this['userController'] = function ($c) {\n return new User($c['app'], $c['db']);\n };\n }", "title": "" } ]
[ { "docid": "c946f55482aa31ff27c8f2dd8254791e", "score": "0.7619041", "text": "protected function registerControllers()\n {\n $app = $this;\n\n $this['init_controller'] = $this->protect(function(\\Phial\\Controller\\Controller $c) use ($app) {\n $c->setApplication($app);\n\n return $c;\n });\n\n $this['controller.user_admin_class'] = 'Phial\\\\Controller\\\\UserAdmin';\n $this['controller.user_admin'] = function($app) {\n $c = new $app['controller.user_admin_class']($app['users']);\n\n return $app['init_controller']($c);\n };\n\n $this['controller.admin_class'] = 'Phial\\\\Controller\\\\Admin';\n $this['controller.admin'] = function($app) {\n $c = new $app['controller.admin_class']();\n\n return $app['init_controller']($c);\n };\n\n $this['controller.account_class'] = __NAMESPACE__ . '\\\\Controller\\\\Account';\n $this['controller.account'] = function($app) {\n $c = new $app['controller.account_class']();\n\n return $app['init_controller']($c);\n };\n\n $this->mount('/admin', new Provider\\UserAdminControllerProvider());\n $this->mount('/admin', new Provider\\AdminControllerProvider());\n $this->mount('/account', new Provider\\AccountControllerProvider());\n }", "title": "" }, { "docid": "41bb47603e465fe22c9426350e548353", "score": "0.7280071", "text": "public function injectDependenciesToControllers()\n\t\t\t{\n\t\t\t\t//inject profile controller\n//\t\t\t\t$this->app->bind(\\App\\Http\\Controllers\\Travlr\\Profiles\\UserProfileController::class, function($app) {\n//\t\t\t\t\treturn new \\App\\Http\\Controllers\\Travlr\\Profiles\\UserProfileController(\n//\t\t\t\t\t\t$app['em']->getRepository(\\App\\Entities\\Travlr\\Profiles\\User::class),\n//\t\t\t\t\t\tnew \\App\\Http\\Transformers\\Travlr\\Profiles\\UserProfileTransformer()\n//\t\t\t\t\t);\n//\t\t\t\t});\n\t\t\t}", "title": "" }, { "docid": "e12f2011acc18404d3a7286259b72a9b", "score": "0.7070991", "text": "public function registerControllers(Container $app)\n {\n if (!is_dir($this->controllerDir)) {\n throw new \\Exception(\"Diretório não existe\");\n }\n\n $files = array_diff(scandir($this->controllerDir), ['.', '..']);\n\n foreach ($files as $file) {\n $className = $this->translateDirectoryToNamespace($file);\n\n $reflection = new \\ReflectionClass($className);\n\n $constructor = $reflection->getConstructor();\n\n $parameters = [];\n\n if ($constructor) {\n $parameters = $this->resolveDependecies($constructor->getParameters());\n }\n\n //Instantiate the class passing it dependencies\n $controller = $reflection->newInstanceArgs($parameters);\n\n //Register the controller indexed by its namespace\n $app[$className] = function () use($controller) {\n return $controller;\n };\n }\n }", "title": "" }, { "docid": "0e52245bd5c941073eca7081476ba2e1", "score": "0.67676234", "text": "private function register_controllers() {\n\n\t\t$this->admin_controller = new CT_Ultimate_GDPR_Controller_Admin();\n\n\t\tforeach (\n\t\t\tarray(\n\t\t\t\tnew CT_Ultimate_GDPR_Controller_Cookie( $this->logger ),\n\t\t\t\tnew CT_Ultimate_GDPR_Controller_Terms( $this->logger ),\n\t\t\t\tnew CT_Ultimate_GDPR_Controller_Policy( $this->logger ),\n\t\t\t\tnew CT_Ultimate_GDPR_Controller_Forgotten( $this->logger ),\n\t\t\t\tnew CT_Ultimate_GDPR_Controller_Data_Access( $this->logger ),\n\t\t\t\tnew CT_Ultimate_GDPR_Controller_Breach( $this->logger ),\n\t\t\t\tnew CT_Ultimate_GDPR_Controller_Rectification( $this->logger ),\n\t\t\t\tnew CT_Ultimate_GDPR_Controller_Unsubscribe( $this->logger ),\n\t\t\t\tnew CT_Ultimate_GDPR_Controller_Services( $this->logger ),\n\t\t\t\tnew CT_Ultimate_GDPR_Controller_Pseudonymization( $this->logger ),\n\t\t\t\tnew CT_Ultimate_GDPR_Controller_Plugins( $this->logger ),\n\t\t\t) as $controller\n\t\t) {\n\n\t\t\t/** @var CT_Ultimate_GDPR_Controller_Abstract $controller */\n\t\t\t$this->controllers[ $controller->get_id() ] = $controller->set_options( $this->admin_controller->get_options( $controller->get_id() ) );\n\t\t\t$controller->init();\n\n\t\t}\n\n\t\t$controllers = apply_filters( 'ct_ultimate_gdpr_controllers', array() );\n\n\t\tforeach ( $controllers as $controller ) {\n\n\t\t\tif ( $controller instanceof CT_Ultimate_GDPR_Controller_Interface ) {\n\t\t\t\t$this->controllers[ $controller->get_id() ] = $controller;\n\t\t\t}\n\n\t\t}\n\n\t\tdo_action( 'ct_ultimate_gdpr_after_controllers_registered', $this->controllers );\n\n\t}", "title": "" }, { "docid": "670d00bef1c9740de7bc44275a616b68", "score": "0.67421645", "text": "final protected static function register()\n {\n $fileIterator = self::fileIterator(self::CONTROLLERS);\n\n // Loop trough each file\n foreach ($fileIterator as $file) {\n\n if (self::isClass($file->getFilename()) && $file->isReadable()) {\n\n $name = rtrim(rtrim($file->getFilename(), 'php'), '.');\n\n // Separate the controllers\n if (strpos($name, 'Controller') || $name === 'Controller') {\n\n self::$controllers[] = $name;\n continue;\n };\n }\n }\n }", "title": "" }, { "docid": "bc6973f5572fe65dee915fc919945d8c", "score": "0.6706254", "text": "private function configureControllers()\n {\n $this\n ->match('/bookings/create', new CreateBookingController(\n $this['form.factory'],\n $this['twig'],\n $this['db']\n ))\n ->method('GET|POST')\n ->bind('booking_form')\n ;\n\n $this\n ->get('/bookings', new ListBookingsController($this['db'], $this['twig']))\n ->bind('booking_list')\n ;\n }", "title": "" }, { "docid": "bf72a1b2d03f8598c0e6ab141e04ba53", "score": "0.664306", "text": "public function addRoutes()\n {\n $this->register(new \\Silex\\Provider\\ServiceControllerServiceProvider());\n\n // map routes to controller class/method\n //-------------------------------------------\n\n //==============================\n // controllers as a service\n //==============================\n $this['main.controller'] = function() { return new MainController($this); };\n\n //==============================\n // now define the routes\n //==============================\n\n // -- main --\n $this->get('/', 'main.controller:indexAction');\n $this->get('/list', 'main.controller:listAction');\n $this->get('/show/{id}', 'main.controller:showAction');\n $this->get('/show', 'main.controller:showNoIdAction');\n }", "title": "" }, { "docid": "bc6bb4dccb4dbeca2c7941ff7b43a5be", "score": "0.66271", "text": "public function boot()\r\n {\r\n foreach($this->controllers as $controller){\r\n $controller = new $controller;\r\n $controller->registerController();\r\n }\r\n }", "title": "" }, { "docid": "bc39d875dc5c069bd32e332afd708fad", "score": "0.65220267", "text": "public function addRoutes()\n {\n $this->register(new \\Silex\\Provider\\ServiceControllerServiceProvider());\n\n // map routes to controller class/method\n //-------------------------------------------\n\n //==============================\n // controllers as a service\n //==============================\n $this['main.controller'] = function() { return new MainController($this); };\n $this['plus.controller'] = function() { return new PlusController($this); };\n\n //==============================\n // now define the routes\n //==============================\n\n // -- main --\n $this->get('/', 'main.controller:indexAction');\n $this->get('/updateModuleResult/{id}', 'main.controller:updateAction');\n $this->get('/updateModuleResult', 'main.controller:updateNoIdAction');\n\n $this->post('/updateModuleResult', 'main.controller:processUpdateModuleResultAction');\n\n $this->get('/plusHome', 'plus.controller:indexAction');\n $this->get('/plusNewQuiz', 'plus.controller:newQuizAction');\n $this->get('/plusQuestion/{questionNumber}', 'plus.controller:questionAction');\n $this->post('/plusAnswer', 'plus.controller:answerAction');\n\n }", "title": "" }, { "docid": "ad45e0dd46b88a42c9d54978c2e9d3b6", "score": "0.6434956", "text": "protected function registerServices()\n {\n $di = new DI();\n\n // Registering a router\n $di->set('router', function () {\n\n $router = new Router(false);\n\n\t\t\t// Define a route\n\t\t\t$router->addGet(\n\t\t\t\t\"/subscribers/\",\n\t\t\t\t[\n\t\t\t\t\t\"controller\" => \"subscribers\",\n\t\t\t\t\t\"action\" => \"index\",\n\t\t\t\t]\n\t\t\t);\n\n\t\t\t// Define a route\n\t\t\t$router->addGet(\n\t\t\t\t\"/debug/\",\n\t\t\t\t[\n\t\t\t\t\t\"controller\" => \"index\",\n\t\t\t\t\t\"action\" => \"debug\",\n\t\t\t\t]\n\t\t\t);\n\n\t\t\t// Define a route\n\t\t\t$router->addPost(\n\t\t\t\t\"/debug/\",\n\t\t\t\t[\n\t\t\t\t\t\"controller\" => \"index\",\n\t\t\t\t\t\"action\" => \"debug\",\n\t\t\t\t]\n\t\t\t);\n\n\t\t\t// Define a route\n\t\t\t$router->addPut(\n\t\t\t\t\"/debug/\",\n\t\t\t\t[\n\t\t\t\t\t\"controller\" => \"index\",\n\t\t\t\t\t\"action\" => \"debug\",\n\t\t\t\t]\n\t\t\t);\n\n\t\t\t// Define a route\n\t\t\t$router->addGet(\n\t\t\t\t\"/users/{id:[0-9]+}\",\n\t\t\t\t[\n\t\t\t\t\t\"controller\" => \"users\",\n\t\t\t\t\t\"action\" => \"findOne\",\n\t\t\t\t]\n\t\t\t);\n\n // Define a route\n $router->addDelete(\n \"/users/{id:[0-9]+}\",\n [\n \"controller\" => \"users\",\n \"action\" => \"delete\",\n ]\n );\n\n\t\t\t// Define a route\n\t\t\t$router->addGet(\n\t\t\t\t\"/users/\",\n\t\t\t\t[\n\t\t\t\t\t\"controller\" => \"users\",\n\t\t\t\t\t\"action\" => \"findAll\",\n\t\t\t\t]\n\t\t\t);\n\n\t\t\t// Define a route\n\t\t\t$router->addGet(\n\t\t\t\t\"/users/search/{user_id:[0-9]+}\",\n\t\t\t\t[\n\t\t\t\t\t\"controller\" => \"users\",\n\t\t\t\t\t\"action\" => \"search\",\n\t\t\t\t]\n\t\t\t);\n\n\t\t\t// Define a route\n\t\t\t$router->addPut(\n\t\t\t\t\"/users/{user_id:[0-9]+}\",\n\t\t\t\t[\n\t\t\t\t\t\"controller\" => \"users\",\n\t\t\t\t\t\"action\" => \"update\",\n\t\t\t\t]\n\t\t\t);\n\n\t\t\t// Define a route\n\t\t\t$router->addPost(\n\t\t\t\t\"/users/\",\n\t\t\t\t[\n\t\t\t\t\t\"controller\" => \"users\",\n\t\t\t\t\t\"action\" => \"create\",\n\t\t\t\t]\n\t\t\t);\n\n\t\t\t$router->setUriSource(Router::URI_SOURCE_SERVER_REQUEST_URI);\n\n\t\t\treturn $router;\n\n });\n\n // Registering a dispatcher\n $di->set('dispatcher', function () {\n $dispatcher = new Dispatcher();\n $dispatcher->setDefaultNamespace('DemoAWS\\Controllers\\\\');\n return $dispatcher;\n });\n\n // Registering a Http\\Response\n $di->set('response', function () {\n return new Response();\n });\n\n // Registering a Http\\Request\n $di->set('request', function () {\n return new LambdaRequest();\n });\n\n // Registering the view component\n $di->set('view', function () {\n $view = new View();\n $view->disable();\n return $view;\n });\n\n\t\t/**\n\t\t * Services can be registered as \"shared\" services this means that they always will act as singletons. Once the service is resolved for the first time the same instance of it is returned every time a consumer retrieve the service from the container:\n\t\t */\n\t\t$di->setShared(\n\t\t\t\"dynamoDBClient\",\n\t\t\tfunction () {\n\t\t\t\treturn new DynamoDbClient([\n\t\t\t\t\t'version' => 'latest',\n\t\t\t\t\t'region' => getenv('AWS_REGION')\n\t\t\t\t]);\n\t\t\t}\n\t\t);\n\n // Registering the Models-Metadata\n $di->set('modelsMetadata', function () {\n return new MemoryMetaData();\n });\n\n // Registering the Models Manager\n $di->set('modelsManager', function () {\n return new ModelsManager();\n });\n\n $this->setDI($di);\n }", "title": "" }, { "docid": "9750c9f3dc878e7a80698e52f8b34ee2", "score": "0.64100736", "text": "protected function injectControllerDispatcher(){\n // router.matched\n\n $dispatcher = new ControllerDispatcher($this->app);\n\n $this->app->instance('illuminate.route.dispatcher', $dispatcher);\n\n $this->app->instance(\\Illuminate\\Routing\\Contracts\\ControllerDispatcher::class, $dispatcher);\n\n // Caution: If the priority of this listener is lower than\n // PageTypeRouter, the controllerDispatcher wont geht useful\n // information if no page was found\n $this->app['events']->listen(RouteMatched::class, function(RouteMatched $event) use ($dispatcher) {\n $dispatcher->configure($event->route, $event->request);\n }, 10);\n\n }", "title": "" }, { "docid": "af24bdd2bc09e8756ab69888a473066d", "score": "0.63900083", "text": "public function registerServices()\n {\n $di = new FactoryDefault();\n $loader = new Loader();\n\n $namespaces = [];\n $map = require_once(__DIR__. '/../autoload_namespaces.php');\n\n foreach ($map as $k => $values) {\n $k = trim($k, '\\\\');\n if (!isset($namespaces[$k])) {\n $dir = '/' . str_replace('\\\\', '/', $k) . '/';\n $namespaces[$k] = implode($dir . ';', $values) . $dir;\n }\n }\n\n $loader->registerNamespaces($namespaces);\n\n $loader->register();\n\n /**\n * Register a router\n */\n $di->set('router', function () {\n $router = new Router();\n\n $router->setDefaultModule('frontend');\n\n //set frontend routes\n $router->mount(new FrontendRoutes());\n//\n return $router;\n });\n\n $this->setDI($di);\n }", "title": "" }, { "docid": "5ca3d7fa78f162e89993e244d094ffe8", "score": "0.6333697", "text": "private function addController($controller) {\n //echo 1;\n $object = new $controller($this->app);//Create a new object of the $controller and pass the $app object to the controller object\n //Home\n //App\\\\Controllers\\\\HomeController\n $this->controllers[$controller] = $object;//Storing the controller object in the $controllers array\n }", "title": "" }, { "docid": "2a0d7685ab25a8c878c7806d5bdfa6b6", "score": "0.63319117", "text": "protected function _initControllers()\n\t{\n\t\t// inicializando controladores\n\t\treturn;\n\t}", "title": "" }, { "docid": "0cd107a20cf6d7335c726cedd3006842", "score": "0.6308838", "text": "protected function registerServices()\n {\n $di = new FactoryDefault();\n $loader = new Loader();\n\n /**\n * Register the common libraries\n */\n $loader->registerDirs([\n APP_PATH . '/common/components/',\n APP_PATH . '/common/helpers/'\n ]);\n\n /**\n * Register common namespaces\n */\n $loader->registerNamespaces([\n 'app\\common\\base' => APP_PATH . '/common/base/',\n 'app\\common\\components' => APP_PATH . '/common/components/',\n 'app\\common\\helpers' => APP_PATH . '/common/helpers/'\n ]);\n\n $loader->register();\n\n /**\n * Register a router\n */\n $di->set('router', function () {\n $router = new Router();\n\n $router->setDefaultModule('frontend');\n\n $router->add('/', [\n 'module' => 'frontend',\n 'controller' => 'index',\n 'action' => 'index'\n ]);\n\n $router->add('/:controller/:action', [\n 'module' => 'frontend',\n 'controller' => 1,\n 'action' => 2\n ]);\n\n $router->add('/admin', [\n 'module' => 'backend',\n 'controller' => 'index',\n 'action' => 'index'\n ]);\n\n $router->add('/admin/:controller/:action', [\n 'module' => 'backend',\n 'controller' => 1,\n 'action' => 2\n ]);\n\n $router->add('/api/:controller/:action', [\n 'module' => 'api',\n 'controller' => 1,\n 'action' => 2\n ]);\n\n $router->add('/console/:controller/:action', [\n 'module' => 'console',\n 'controller' => 1,\n 'action' => 2\n ]);\n\n return $router;\n });\n\n $this->setDI($di);\n }", "title": "" }, { "docid": "68a353aefa5f7b5bf3f13a5d45460308", "score": "0.62987965", "text": "public function register()\n {\n $controllers = $this->_app['controllers_factory'];\n\n # Registering controllers\n $controllers->mount('/service', ServiceController::factory($this->_app));\n $controllers->mount('/campaign', CampaignController::factory($this->_app));\n $controllers->mount('/ipaddress', IpAddressController::factory($this->_app));\n $controllers->mount('/status', StatusController::factory($this->_app));\n\n return $controllers;\n }", "title": "" }, { "docid": "cdc1805883225486f3be723f3bf76ee5", "score": "0.62450784", "text": "public function addControllers(array $controllers) {\n array_walk($controllers, [$this, 'addController']);\n }", "title": "" }, { "docid": "395a85e7230c2d6eeb227d1880b1e1ba", "score": "0.6206001", "text": "public function addController($controller)\n {\n if($this->getMaxExtras() == - 1 || $this->getMaxExtras() > count($this->getControllers()))\n {\n $this->controllers[] = $controller;\n }\n }", "title": "" }, { "docid": "3d964c503c6a39e0bfb1bc9a129785f7", "score": "0.6174468", "text": "public function setControllers(Array $controllers);", "title": "" }, { "docid": "5ee037c10be1543297e78b6e61dc8d1d", "score": "0.61221755", "text": "protected function _initControllers()\n\t{\n\t\treturn;\n\t}", "title": "" }, { "docid": "a18891ce7c1afe4feea0cf51c9bd2a1f", "score": "0.6099798", "text": "function register()\n {\n include __DIR__ . '/routes.php';\n $this->app->make('Bss\\JiraAddon\\Controllers\\JiraBaseController');\n $this->app->make('Bss\\JiraAddon\\Controllers\\JiraProjectController');\n }", "title": "" }, { "docid": "3792ab82392bbc00963b58bb38bd8947", "score": "0.609623", "text": "public function generateControllers()\n\t{\n\t\t$controller = new Controller();\n\n\t\t$args = ['type' => 'index'];\n\n\t\t$controller->setProject($this->project)\n\t\t\t\t ->setVendor($this->vendor)\n\t\t\t\t ->setModule($this->module)\n\t\t\t\t ->setArgs($args)\n\t\t\t\t ->summon();\n\n\t\t$args = ['type' => 'service'];\n\n\t\treturn $controller->setArgs($args)->summon();\n\t}", "title": "" }, { "docid": "a29dcedc92bfd1a36c5257a13c64b055", "score": "0.60876846", "text": "public function boot()\n {\n // auto-wiring feature. This will make it easy for us to resolve\n // the dependencies of the repository object class.\n $controllerRepository = $this->getContainer()->get( RestControllerRepository::class );\n\n // The PHP Reflection class will help us get the relative data about controllers.\n // We will use this to auto load any controller with public methods and api routes\n // saved under the same directory as the Abstract Controller. Controllers can\n // also be nested in order to achive paths like /testimonials/citation/save\n //\n $reflection = new \\ReflectionClass( AbstractController::class );\n\n // Grab the namespace out of the reflection class, we will need it to instantiate the\n // controllers that extend the AbstractController\n //\n $this->controllersNamespace = $reflection->getNamespaceName();\n\n // To properly store the root controller path, we make sure it has a trailing slash\n // and that all slashes are proper DIRECTORY_SEPARATORs\n //\n $this->controllersPath = str_replace('/', DIRECTORY_SEPARATOR,\n trailingslashit( dirname( $reflection->getFileName() ) )\n );\n\n // Loop through each controller file, extract the controller class and add it to the\n // repository\n //\n foreach ($this->getControllers( ) as $controller) {\n $controllerRepository->addController( $controller );\n }\n\n // All done here, let's boot!\n $controllerRepository->boot();\n }", "title": "" }, { "docid": "66349a6dbd8948fcec64244d28e8bf9d", "score": "0.6081398", "text": "public function auto_discover_controllers()\n {\n\n $files = $this->get_controller_classes();\n\n foreach ($files as $file) {\n $this->load_controller_class($file);\n }\n }", "title": "" }, { "docid": "6040c5805e75f3c56f75a3a517f8fa49", "score": "0.6072182", "text": "public function onKernelController(ControllerEvent $event)\n {\n $this->controllers[$event->getRequest()] = $event->getController();\n }", "title": "" }, { "docid": "4e2311fc24bec09fa4d94dd22a97e7db", "score": "0.6052019", "text": "public static function get_controllers()\n\t{\n\t\treturn Api_Utils::get_handlers('classes/controller');\n\t}", "title": "" }, { "docid": "4b9b88202a78755382925ba044467359", "score": "0.5998184", "text": "public function register(Container $app)\n {\n $app['injector'] = $injector = $app->factory(function () { return $this->container->make(Reflector::class); });\n\n $this->container->add([Reflector::class, 'injector'], function () {\n return new Reflector($this->container, Request::createFromGlobals());\n });\n\n $app->extend('resolver', function ($resolver, $app) {\n return new InjectingControllerResolver($this->container, $app['injector'], $resolver, $app['callback_resolver']);\n });\n }", "title": "" }, { "docid": "3a8a615575a16d7a27f63a827dee7a58", "score": "0.59901434", "text": "public function mountControllerProviders()\n {\n $this->mount('/user', new UserControllerProvider());\n $this->mount('/drink', new DrinkControllerProvider());\n $this->mount('/restocking', new RestockingControllerProvider());\n }", "title": "" }, { "docid": "2927191d41c629a8b5ceefaef64a1b1d", "score": "0.5978466", "text": "public function register()\n {\n $container = $this->_app['controllers_factory'];\n\n # Retrieve all services\n $container->get('/', function () {\n return $this->getAll();\n });\n\n # Create a service\n $container->post('/', function () {\n return $this->create();\n });\n\n # Get details about service\n $container->get('/{key}/', function ($key) {\n return $this->getOne($key);\n });\n\n # Update a service\n $container->put('/{key}/', function ($key) {\n return $this->update($key);\n });\n\n # Remove a service\n $container->delete('/{key}/', function ($key) {\n return $this->remove($key);\n });\n\n return $container;\n }", "title": "" }, { "docid": "69058ea148cf39ec2cf97e9f1961d1f1", "score": "0.59757686", "text": "protected function registerServices()\n {\n $di = $this->getDI();\n $di->set('router', function ()\n {\n /* @var $this Di */\n $router = new \\Phalcon\\Mvc\\Router();\n $defaultModule = self::MODULE_GUEST;\n\n $session = $this->get('session');\n\n if ($auth = $session->get('auth'))\n {\n /*\n * If we had more user types we would do a switch here\n * and check user type to set associated module\n */\n $defaultModule = self::MODULE_ADMIN;\n }\n $router->setDefaultModule($defaultModule);\n\n return $router;\n }, true);\n\n $this->setDI($di);\n }", "title": "" }, { "docid": "2a29892733dbd9092167d139709dc582", "score": "0.5971773", "text": "public function register()\n {\n $container = $this->_app['controllers_factory'];\n\n $container->get('/', function () {\n return $this->getStatus();\n });\n\n return $container;\n }", "title": "" }, { "docid": "1e333a93ffefbf01570969a1cbc43a30", "score": "0.59490395", "text": "public function startup(Controller $controller) {\n \n }", "title": "" }, { "docid": "804b9f733c7f7f76aad6fa335b33a207", "score": "0.594018", "text": "protected function registerServices()\n {\n // Register IoC bind aliases and singletons\n $this->app->alias(\\Mrcore\\Wiki\\Api\\Mrcore::class, \\Mrcore\\Wiki\\Api\\MrcoreInterface::class);\n $this->app->alias(\\Mrcore\\Wiki\\Api\\Config::class, \\Mrcore\\Wiki\\Api\\ConfigInterface::class);\n $this->app->alias(\\Mrcore\\Wiki\\Api\\Layout::class, \\Mrcore\\Wiki\\Api\\LayoutInterface::class);\n $this->app->alias(\\Mrcore\\Wiki\\Api\\Post::class, \\Mrcore\\Wiki\\Api\\PostInterface::class);\n $this->app->alias(\\Mrcore\\Wiki\\Api\\Router::class, \\Mrcore\\Wiki\\Api\\RouterInterface::class);\n $this->app->alias(\\Mrcore\\Wiki\\Api\\User::class, \\Mrcore\\Wiki\\Api\\UserInterface::class);\n }", "title": "" }, { "docid": "7a89012a093d1267aef6aee8c84a09c8", "score": "0.59253097", "text": "protected function registerRegistrationController()\n {\n $this->app->bind(RegistrationController::class, function () {\n return new RegistrationController();\n });\n }", "title": "" }, { "docid": "8924c2f43ce2d6e2c1cf0a76b8121fa6", "score": "0.5916995", "text": "protected function registerServices()\n {\n // Register IoC bind aliases and singletons\n #$this->app->alias(\\Mrcore\\Components\\Components::class, \\Mrcore\\Components::class)\n #$this->app->singleton(\\Mrcore\\Components\\Components::class, \\Mrcore\\Components::class)\n\n // Register other service providers\n #$this->app->register(\\Mrcore\\Components\\Providers\\OtherServiceProvider::class);\n }", "title": "" }, { "docid": "c378e71ec7bac12b4236b853311c51c2", "score": "0.58836985", "text": "private function registerServices()\n {\n //register service providers\n $this->app->register(BackupServiceProvider::class);\n $this->app->register(HtmlServiceProvider::class);\n $this->app->register(JsValidationServiceProvider::class);\n $this->app->register(MediaManagerServiceProvider::class);\n $this->app->register(ScoutServiceProvider::class);\n $this->app->register(TNTSearchScoutServiceProvider::class);\n\n //load facades\n $loader = AliasLoader::getInstance();\n $loader->alias('JsValidator', JsValidatorFacade::class);\n $loader->alias('Form', FormFacade::class);\n $loader->alias('Html', HtmlFacade::class);\n }", "title": "" }, { "docid": "d9bb5c2780079b270bd8f5867820b6f4", "score": "0.5872414", "text": "public function registerServices(\\Phalcon\\DiInterface $dependencyInjector)\n {\n $dependencyInjector->set('dispatcher',function (){\n $dispatcher=new Dispatcher();\n $dispatcher->setDefaultNamespace(\"Zs\\Face\\Controllers\");\n return $dispatcher;\n });\n\n $dependencyInjector->set('view', function () {\n $view = new View();\n $view->setViewsDir(MODULE_PATH.\"/face/views/\");\n return $view;\n });\n }", "title": "" }, { "docid": "0a8ec0b49596bf78aadfdf46fb2a323d", "score": "0.5865956", "text": "public function registerServices(Di $di)\n {\n $di->set('dispatcher', function () use ($di) {\n $eventsManager = $di->getShared('eventsManager');\n /**\n * Check if the user is allowed to access certain action using the SecurityPlugin\n */\n\n// $eventsManager->attach('dispatch:beforeException', function ($event, $dispatcher, $exception) {\n// switch ($exception->getCode()) {\n// case Dispatcher::EXCEPTION_HANDLER_NOT_FOUND:\n// case Dispatcher::EXCEPTION_ACTION_NOT_FOUND:\n// $dispatcher->forward(\n// array(\n// 'controller' => 'error',\n// 'action' => 'show404',\n// )\n// );\n// return false;\n// }\n// });\n// $eventsManager->attach('dispatch:beforeDispatch', new SecurityPlugin());\n $eventsManager->attach('dispatch:beforeDispatch', new CSRF());\n $dispatcher = new Dispatcher();\n\n $dispatcher->setDefaultNamespace('Modules\\Api\\Controllers');\n $dispatcher->setEventsManager($eventsManager);\n return $dispatcher;\n },true);\n\n $di->setShared(\n 'response',\n function () {\n $response = new \\Phalcon\\Http\\Response();\n $response->setContentType('application/json', 'utf-8');\n\n return $response;\n }\n );\n $di->set('view', function () {\n\n $view = new View();\n\n// $view->setRenderLevel(\n// View::LEVEL_ACTION_VIEW\n// );\n// $view->setViewsDir(__DIR__ . '/views/');\n// $view->setLayoutsDir('../views/layouts/');\n// $view->setLayout('main');\n return $view;\n });\n\n\n $di->set('context', function () {\n return Context::getInstance();\n });\n }", "title": "" }, { "docid": "a3c231d6b00c24febf777d95c5496a87", "score": "0.5865164", "text": "protected function registerServices()\n {\n $this->app->singleton('plugins', function ($app) {\n $path = $app['config']->get('admin.plugins.path');\n\n return new PluginRepository($app, $path);\n });\n\n $this->app['plugins']->register();\n }", "title": "" }, { "docid": "a60495ce312a29211df8e89ba686e5c8", "score": "0.58646715", "text": "protected function registerServices()\n\t{\n\t\tforeach($this->config->get('application.services') as $service)\n\t\t{\n\t\t\t(new $service($this->container))->register();\n\t\t}\n\t}", "title": "" }, { "docid": "52d43d813f10484757c5f002673a876f", "score": "0.5837141", "text": "public function register()\n {\n $this->app->/* @scrutinizer ignore-call */singleton(\n 'metadataControllers',\n function () {\n return new MetadataControllerContainer();\n }\n );\n }", "title": "" }, { "docid": "b4eb40c4f2c2c04853d494ce6c68947e", "score": "0.58186626", "text": "public function process(ContainerBuilder $container): void\n {\n if (!$container->has(ControllerAnnotationLoader::class)) {\n return;\n }\n\n $loaderDefinition = $container->findDefinition(ControllerAnnotationLoader::class);\n $controllerDefinitions = [];\n\n foreach ($container->getDefinitions() as $serviceId => $definition) {\n if ($definition->isAbstract()) {\n continue;\n }\n\n try {\n $reflection = new ClassReflection($definition->getClass());\n } catch (\\ReflectionException $exception) {\n continue;\n }\n\n if ($reflection->isSubclassOf(Controller::class) || $reflection->isSubclassOf(ControllerInterface::class)) {\n $controllerDefinitions[] = new Reference($serviceId);\n }\n }\n\n $loaderDefinition->setArgument(0, $controllerDefinitions);\n }", "title": "" }, { "docid": "2890bae60c672de8ee2fffdde43b9d48", "score": "0.5815901", "text": "protected function get_v1_controllers()\n {\n }", "title": "" }, { "docid": "4c9f172ca5ae80d930359d50a5b38cda", "score": "0.58152586", "text": "public function testServicesAsControllers()\n {\n $request = new Request();\n $request->attributes->set('_controller', 'nice.some_controller:someAction');\n $resolver = new ContainerAwareControllerResolver();\n\n $container = new Container();\n $service = new ContainerAwareController();\n $container->set('nice.some_controller', $service);\n $resolver->setContainer($container);\n\n $controller = $resolver->getController($request);\n\n $this->assertCount(2, $controller);\n $this->assertSame($service, $controller[0]);\n }", "title": "" }, { "docid": "b5ed15bcd1655197ca15d10a35881c52", "score": "0.5799134", "text": "public function connect(Application $app) {\n $app['admin.menu'] = $app->share(function () use ($app) {\n return new Menu($app);\n });\n\n $app['admin.message_composer'] = $app->share(function () use ($app) {\n return new JSONMessageComposer();\n });\n\n $app->register(new ModuleAuthorizationServiceProvider(), array(\n 'moduleAuthorization.authorizer' => new ModuleAuthorization($app),\n 'moduleAuthroization.forbiddenResponseController' => new ForbiddenResponseController()\n ));\n\n /**\n * @var ControllerCollection $controllers\n */\n $controllers = $app['controllers_factory'];\n\n $controllers->get('/', function () use ($app) {\n return $app->redirect('home');\n });\n\n $controllerProviders = $this->retrieveModulesControllerProviders();\n /*\n * Iterates over controllerProviders and bind each moduleName in the url\n * with the controller provider responsible for that module\n */\n\n foreach ($controllerProviders as $controllerProvider) {\n\n if (class_exists($controllerProvider['controllerProviderName'])) {\n\n //FIXME Check if controllerProvider implements ControllerProviderInterface\n $controllerProviderObject = new $controllerProvider['controllerProviderName']();\n\n $controllers->mount('/' . strtolower($controllerProvider['moduleName']),\n $controllerProviderObject->connect($app));\n\n } else {\n //TODO Log error cannot find class controllerProviderName\n }\n }\n\n return $controllers;\n }", "title": "" }, { "docid": "0028cae2818af668353654673f32addc", "score": "0.57823586", "text": "private function configureServices()\n {\n $this['debug'] = true;\n\n $this->register(new TwigServiceProvider(), [\n 'twig.path' => __DIR__.'/../views',\n ]);\n\n // Database configuration\n $this->register(new DoctrineServiceProvider(), [\n 'db.options' => [\n 'driver' => 'pdo_sqlite',\n 'path' => __DIR__.'/../database/app.db',\n ],\n ]);\n\n $this->register(new FormServiceProvider());\n $this->register(new LocaleServiceProvider());\n $this->register(new TranslationServiceProvider(), [\n 'translator.domains' => [],\n ]);\n }", "title": "" }, { "docid": "9ebd06e0d1103af66c840aed38747c44", "score": "0.577292", "text": "public function testCreateWithContainerDependenciesWithController(): void\n {\n $request = new ServerRequest([\n 'url' => 'test_plugin_three/dependencies/index',\n 'params' => [\n 'plugin' => null,\n 'controller' => 'Dependencies',\n 'action' => 'index',\n ],\n ]);\n $this->container->add(stdClass::class, json_decode('{\"key\":\"value\"}'));\n $this->container->add(ServerRequest::class, $request);\n $this->container->add(DependenciesController::class)\n ->addArgument(ServerRequest::class)\n ->addArgument(null)\n ->addArgument(null)\n ->addArgument(stdClass::class);\n\n $controller = $this->factory->create($request);\n $this->assertInstanceOf(DependenciesController::class, $controller);\n $this->assertSame($controller->inject, $this->container->get(stdClass::class));\n }", "title": "" }, { "docid": "994df32e46c0eea329e12ccce515b095", "score": "0.5747749", "text": "public function register() {\n\t\t// TODO refactor to be a little cleaner.\n\n\t\t$link_controller = new Link_Controller();\n\t\t$link_controller->register_routes();\n\n\t\t$status_check = new Status_Check_Controller();\n\t\t$status_check->register_routes();\n\n\t\t$embed_controller = new Embed_Controller();\n\t\t$embed_controller->register_routes();\n\n\t\t$templates_autosaves = new Stories_Autosaves_Controller( Template_Post_Type::POST_TYPE_SLUG );\n\t\t$templates_autosaves->register_routes();\n\n\t\t$stories_autosaves = new Stories_Autosaves_Controller( Story_Post_Type::POST_TYPE_SLUG );\n\t\t$stories_autosaves->register_routes();\n\n\t\t$templates_lock = new Stories_Lock_Controller( Template_Post_Type::POST_TYPE_SLUG );\n\t\t$templates_lock->register_routes();\n\n\t\t$stories_lock = new Stories_Lock_Controller( Story_Post_Type::POST_TYPE_SLUG );\n\t\t$stories_lock->register_routes();\n\n\t\t$stories_media = new Stories_Media_Controller( 'attachment' );\n\t\t$stories_media->register_routes();\n\n\t\t$stories_users = new Stories_Users_Controller();\n\t\t$stories_users->register_routes();\n\n\t\t$stories_settings = new Stories_Settings_Controller();\n\t\t$stories_settings->register_routes();\n\t}", "title": "" }, { "docid": "cb3839df48d9e8245f2b8dea3d3311e5", "score": "0.57461125", "text": "public function register()\n {\n // register our controller\n //$this->app->make('skygdi\\paypal\\CommonController');\n }", "title": "" }, { "docid": "8d35a2c885321302f0bacda491771f02", "score": "0.5743705", "text": "private function configureContainer()\n {\n $container = $this->getContainer();\n\n // Add the services\n // Request\n\n Request::generateTraceId();\n $container->share('request', Request::class);\n $container->inflector(RequestAwareInterface::class)\n ->invokeMethod('setRequest', ['request']);\n\n // Session\n $session_store = new FileStore(\n $this->getConfig()->get('cache_dir')\n );\n $session = new Session($session_store);\n $container->share('session', $session);\n $container->inflector(SessionAwareInterface::class)\n ->invokeMethod('setSession', ['session']);\n\n // Saved tokens\n $token_store = new FileStore($this->getConfig()->get('tokens_dir'));\n $container->inflector(SavedTokens::class)\n ->invokeMethod('setDataStore', [$token_store]);\n\n $this->configureModulesAndCollections($container);\n\n // Helpers\n $container->add(LocalMachineHelper::class);\n\n // Progress Bars\n $container->add(ProcessProgressBar::class);\n $container->add(WorkflowProgressBar::class);\n\n // Plugin handlers\n $container->add(PluginDiscovery::class);\n $container->add(PluginInfo::class);\n\n $container->share('sites', Sites::class);\n $container->inflector(SiteAwareInterface::class)\n ->invokeMethod('setSites', ['sites']);\n\n // Install our command cache into the command factory\n $commandCacheDir = $this->getConfig()->get('command_cache_dir');\n if (!is_dir($commandCacheDir)) {\n mkdir($commandCacheDir);\n }\n $commandCacheDataStore = new FileStore($commandCacheDir);\n\n $factory = $container->get('commandFactory');\n $factory->setIncludeAllPublicMethods(false);\n $factory->setDataStore($commandCacheDataStore);\n }", "title": "" }, { "docid": "abcaa72a409aae96849396ea87dfcb03", "score": "0.5712256", "text": "public function register(DiInterface $di): void\n {\n $ptoolsPath = $di->getShared('application')->getPtoolsPath();\n\n $di->setShared($this->providerName, function () use ($ptoolsPath) {\n /** @var DiInterface $this */\n $em = $this->getShared('eventsManager');\n\n $router = new AnnotationsRouter(false);\n $router->removeExtraSlashes(true);\n $router->notFound(['controller' => 'error', 'action' => 'route404']);\n $router->setDefaultAction('index');\n $router->setDefaultController('index');\n $router->setDefaultNamespace('Phalcon\\DevTools\\Web\\Tools\\Controllers');\n\n // @todo Use Path::normalize()\n $controllersDir = $ptoolsPath . DS . str_replace('/', DS, 'src/Web/Tools/Controllers');\n $dir = new DirectoryIterator($controllersDir);\n\n $resources = [];\n\n foreach ($dir as $fileInfo) {\n if ($fileInfo->isDot() || false === strpos($fileInfo->getBasename(), 'Controller.php')) {\n continue;\n }\n\n $controller = $fileInfo->getBasename('Controller.php');\n $resources[] = $controller;\n }\n\n foreach ($resources as $controller) {\n $router->addResource($controller);\n }\n\n $router->setEventsManager($em);\n\n return $router;\n });\n }", "title": "" }, { "docid": "187042be48eff0bfcf5a586c0ec3c62b", "score": "0.5695623", "text": "public function register()\n {\n $this->app->bind('items', function ($app) {\n return new AbstractItemsController;\n });\n\n $this->app->bind('items', function ($app) {\n return new ItemsController;\n });\n\n $this->app->bind('items', function ($app) {\n return new ApiItemsController;\n });\n }", "title": "" }, { "docid": "1155ac1974e92b50b1b2d5aaf4198608", "score": "0.56927395", "text": "protected function registerServices()\n {\n $this->app->singleton('plugins', function ($app) {\n $path = $app['config']->get('plugins.paths.plugins');\n return new Repository($app, $path);\n });\n }", "title": "" }, { "docid": "f9d11ca8f5a734eff7a59ed3e91ca99b", "score": "0.5691991", "text": "public function register(Application $app) {\n $app['home.controller'] = $app->share(function() use ($app) {\n return new PulpyController\\HomeController(\n $app['twig'],\n $app['post.repository'],\n $app['postfile.resolver'],\n $app['config.site']->getHomepostsperpage()\n );\n });\n\n # The controller responsible for displaying a post\n $app['post.controller'] = $app->share(function() use ($app) {\n return new PulpyController\\PostController(\n $app['twig'],\n $app['post.repository'],\n $app['postfile.resolver']\n );\n });\n\n # The controller responsible for the RSS/Atoms feeds\n $app['feed.controller'] = $app->share(function() use ($app) {\n return new PulpyController\\FeedController(\n $app['post.repository'],\n $app['post.serializer'],\n $app['post.resource.resolver'],\n $app['url.absolutizer'],\n $app['config.site']\n );\n });\n\n # The controller responsible for the JSON feed\n $app['json.controller'] = $app->share(function() use ($app) {\n return new PulpyController\\JsonController(\n $app['post.repository'],\n $app['post.serializer']\n );\n });\n\n # The controller responsible for error handling\n $app['error.controller'] = $app->share(function() use ($app) {\n return new PulpyController\\ErrorController(\n $app['twig']\n );\n });\n\n # The controller responsible for initialization handling\n $app['initialization.controller'] = $app->share(function() use ($app) {\n return new PulpyController\\InitializationController(\n $app['twig'],\n $app['environment'],\n $app['url_generator'],\n $app['form.factory'],\n $app['orm.em']\n );\n });\n\n # The controller responsible for user auth\n $app['auth.controller'] = $app->share(function() use ($app) {\n return new PulpyController\\AuthController(\n $app['twig']\n );\n });\n \n $app->error(function (\\Exception $e, $code) use ($app) {\n\n $refinedexception = null;\n \n if(\n $e instanceof PulpyException\\MaintenanceNeeded\\MaintenanceNeededExceptionInterface ||\n $e instanceof PulpyException\\InitializationNeeded\\InitializationNeededExceptionInterface\n ) {\n $refinedexception = $e;\n } else if(\n $e instanceof \\Doctrine\\DBAL\\DBALException ||\n $e instanceof \\PDOException\n ) {\n\n try {\n $errorinfo = $app['db']->errorInfo();\n } catch(\\Exception $e) {\n # we could not fetch error info (happens with mysql, when access denied)\n $errorinfo = null;\n }\n\n /*if(!is_null($errorinfo)) {\n var_dump($errorinfo);\n # Deterministic error detection\n $sqlstate = $errorinfo[0];\n $errorclass = strtoupper(substr($errorinfo[0], 0, 2));\n $errorsubclass = strtoupper(substr($errorinfo[0], 2));\n \n switch($errorclass) {\n case 'HY': {\n # driver custom error\n break;\n }\n case '42': {\n switch($errorsubclass) {\n case 'S22': {\n $refinedexception = new PulpyException\\MaintenanceNeeded\\DatabaseUpdateMaintenanceNeededException();\n $refinedexception->setInformationalLabel($errorinfo['2']);\n break;\n }\n }\n break;\n }\n }\n }*/\n\n if(is_null($refinedexception)) {\n # Heuristic error detection\n\n # We check if the database exists\n try {\n $tables = $app['db']->getSchemaManager()->listTableNames();\n } catch(\\PDOException $e) {\n if(strpos($e->getMessage(), 'Access denied') !== FALSE) {\n $refinedexception = new PulpyException\\MaintenanceNeeded\\DatabaseInvalidCredentialsMaintenanceNeededException();\n } else {\n $refinedexception = new PulpyException\\InitializationNeeded\\DatabaseMissingInitializationNeededException();\n }\n }\n\n if(\n is_null($refinedexception) && (\n stripos($e->getMessage(), 'Invalid table name') !== FALSE ||\n stripos($e->getMessage(), 'no such table') !== FALSE ||\n stripos($e->getMessage(), 'Base table or view not found') !== FALSE ||\n stripos($e->getMessage(), 'Undefined table') !== FALSE\n )\n ) {\n if(empty($tables)) {\n $refinedexception = new PulpyException\\InitializationNeeded\\DatabaseEmptyInitializationNeededException();\n } else {\n $refinedexception = new PulpyException\\MaintenanceNeeded\\DatabaseUpdateMaintenanceNeededException();\n }\n }\n\n if(\n is_null($refinedexception) && (\n stripos($e->getMessage(), 'Unknown column') !== FALSE\n )\n ) {\n $refinedexception = new PulpyException\\MaintenanceNeeded\\DatabaseUpdateMaintenanceNeededException();\n }\n }\n }\n\n if(!is_null($refinedexception)) {\n\n if($refinedexception instanceOf PulpyException\\InitializationNeeded\\InitializationNeededExceptionInterface) {\n\n # Enabling initialization mode\n $app['environment']->setInitializationMode(TRUE);\n\n if(strpos($app['request']->attributes->get('_route'), '_init_') === 0) {\n \n # maintenance in progress; just proceed with the requested controller\n return $app['initialization.controller']->proceedWithInitializationRequestAction(\n $app['request'],\n $app,\n $refinedexception\n );\n } else {\n return $app['initialization.controller']->reactToExceptionAction(\n $app['request'],\n $app,\n $refinedexception\n );\n }\n } else if($refinedexception instanceOf PulpyException\\MaintenanceNeeded\\MaintenanceNeededExceptionInterface) {\n # Maintenance exception are not handled yet\n throw $refinedexception;\n }\n }\n\n if(!$app['debug']) {\n \n # Debug is not enabled; we display a nice, error-message free informative page\n\n if($code === 404 || $e instanceof PostNotFoundException) {\n return $app['error.controller']->notFoundAction(\n $app['request'],\n $app,\n $e,\n $code\n );\n }\n\n return $app['error.controller']->errorAction(\n $app['request'],\n $app,\n $e,\n $code\n );\n }\n\n });\n }", "title": "" }, { "docid": "3842030b5c989e56ce03b725ce39374f", "score": "0.5691511", "text": "public function register_services() {\n\t\t// Bail early so we don't instantiate services twice.\n\t\tif ( ! empty( $this->services ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->services[ Injector::class ] = $this->injector;\n\n\t\tforeach ( $this->get_service_classes() as $class ) {\n\t\t\t$this->services[ $class ] = $this->instantiate_service( $class );\n\t\t}\n\n\t\tforeach ( $this->services as $service ) {\n\t\t\tif ( $service instanceof Registerable ) {\n\t\t\t\t$service->register();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "40d3337a358d5ef2c80aca65f860c5d1", "score": "0.56565493", "text": "public function onKernelController(ControllerEvent $event): void\n {\n $controller = $event->getController();\n $request = $event->getRequest();\n\n $configurations = $this->getConfigurations($request);\n\n $this->configureTypes($configurations, $controller);\n\n $this->manager->apply($request, $configurations);\n }", "title": "" }, { "docid": "09a36b4cd82aa13dd09cba88bc37018b", "score": "0.5653865", "text": "public function registerServiceProviders()\n {\n $container = $this->router->getContainer();\n $providers = config('app.providers');\n\n array_walk($providers, function ($provider) use ($container) {\n $container->register(new $provider);\n });\n }", "title": "" }, { "docid": "efae863cef9f5c7618a02a3afafe96f0", "score": "0.5649998", "text": "function loadControllers($dir) {\n $controllers = App::listFiles($dir);\n foreach ($controllers as $controller) {\n $this->register($controller, \"App\\controllers\\\\$controller\", array($this));\n }\n }", "title": "" }, { "docid": "a14bb612f1983c1d9c06c08468e19cb8", "score": "0.5644483", "text": "protected function registerLoginController()\n {\n $this->app->bind(LoginController::class, function () {\n return new LoginController();\n });\n }", "title": "" }, { "docid": "918043df09cb988a383768228d633f5e", "score": "0.5636062", "text": "public function register()\n {\n $container = $this->_app['controllers_factory'];\n\n # Retrieve all campaigns\n $container->get('/', function () {\n return $this->getAll();\n });\n\n # Create a campaign\n $container->post('/', function () {\n return $this->create();\n });\n\n # Get details from an campaign\n $container->get('/{key}/', function ($key) {\n return $this->getOne($key);\n });\n\n # Update a campaign\n $container->put('/{key}/', function ($key) {\n return $this->update($key);\n });\n\n # Remove a campaign\n $container->delete('/{key}/', function ($key) {\n return $this->remove($key);\n });\n\n # Get the status of campaign\n $container->get('/{key}/status/', function ($key) {\n return $this->getStatus($key);\n });\n\n # Get current queue list from a campaign\n $container->get('/{key}/queue/', function ($key) {\n return $this->getQueue($key);\n });\n\n # Add or remove destinations of queue list from campaign\n $container->put('/{key}/queue/', function ($key) {\n return $this->changeQueue($key);\n });\n\n # Start process\n $container->post('/{key}/start/', function ($key) {\n return $this->startCampaign($key);\n });\n\n # Pause process\n $container->post('/{key}/pause/', function ($key) {\n return $this->pauseCampaign($key);\n });\n\n # Stop process\n $container->post('/{key}/stop/', function ($key) {\n return $this->stopCampaign($key);\n });\n\n # Get status from multiple campaigns\n $container->post('/status/', function () {\n return $this->getMultipleStatus();\n });\n\n return $container;\n }", "title": "" }, { "docid": "668422dc5e29cbbb4fab11cc0c8b1438", "score": "0.56271064", "text": "public function addController(string $controller):self\n {\n $this->controllers[] = $controller;\n return $this;\n }", "title": "" }, { "docid": "0cc7e179f3ece475009b763e799fc55f", "score": "0.5621484", "text": "public function registerServices($di)\n {\n //Registering a dispatcher\n $di->set(\n 'dispatcher',\n function () use ($di) {\n $dispatcher = new Dispatcher();\n $dispatcher->setDefaultNamespace(\"Multiple\\\\Developer\\\\Controllers\\\\\");\n $evManager = $di->getShared('eventsManager');\n $evManager->attach(\n \"dispatch:beforeException\",\n function ($event, $dispatcher, $exception) {\n switch ($exception->getCode()) {\n case Dispatcher::EXCEPTION_HANDLER_NOT_FOUND:\n case Dispatcher::EXCEPTION_ACTION_NOT_FOUND:\n $dispatcher->forward(\n array(\n 'namespace'=>$dispatcher->getNamespaceName(),\n 'controller' => 'errors',\n 'action' => 'show404',\n )\n );\n return false;\n }\n }\n );\n $dispatcher->setEventsManager($evManager);\n return $dispatcher;\n },\n true\n );\n\n //Registering the view component\n $di->set('view', function () {\n //Create an event manager\n $eventsManager = new EventManager();\n $viewListener = new StaticFileManager();\n //Attach a listener for type \"view\"\n $eventsManager->attach(\"view:beforeRender\", $viewListener);\n $view = new View();\n $view->registerEngines(array(\n '.phtml' => \"volt\"\n ));\n $view->setMainView(\"index\");\n $view->setLayout(\"main\");\n $view->setViewsDir('Apps/Developer/Views');\n\n $view->setEventsManager($eventsManager);\n return $view;\n });\n\n }", "title": "" }, { "docid": "629058ec7dcc1ad37733fdaab6ba87fe", "score": "0.56194484", "text": "function register_site_api_controller()\n{\n\t$site = new SiteApi();\n\t$paths = new PathsApi();\n\t$site->register_routes();\n\t$paths->register_routes();\n}", "title": "" }, { "docid": "811ebea37d41fd0ebd3df2de9f81f01a", "score": "0.5609196", "text": "public function registerServices($di)\n\t{\n\n\t\t//Registering a dispatcher\n\t\t$di->set('dispatcher', function () {\n\t\t\t$dispatcher = new Dispatcher();\n\n\t\t\t//Attach a event listener to the dispatcher\n\t\t\t$eventManager = new \\Phalcon\\Events\\Manager();\n//\t\t\t$eventManager->attach('dispatch', new \\Acl('frontend'));\n\n\t\t\t$dispatcher->setEventsManager($eventManager);\n\t\t\t$dispatcher->setDefaultNamespace(\"Multiple\\Api\\Controllers\\\\\");\n\t\t\treturn $dispatcher;\n\t\t});\n\n\t\t//Registering the view component\n\t\t$di->set('view', function () {\n\t\t\t$view = new \\Phalcon\\Mvc\\View();\n\t\t\t$view->setViewsDir('../apps/api/views/');\n\t\t\treturn $view;\n\t\t});\n\n\t\t$di->set('db', function () {\n\t\t\treturn new Database(array(\n\t\t\t\t\"host\" => \"localhost\",\n\t\t\t\t\"username\" => \"root\",\n\t\t\t\t\"password\" => \"secret\",\n\t\t\t\t\"dbname\" => \"invo\"\n\t\t\t));\n\t\t});\n\n $router = $di->get('router');\n\n\t}", "title": "" }, { "docid": "b90a17e4fc98eb769fbee980e719d2ef", "score": "0.5605371", "text": "public function registerServices(\\Phalcon\\DiInterface $di)\n {\n $di->set('dispatcher', function () {\n $dispatcher = new Dispatcher();\n\n $eventManager = new Manager();\n\n $dispatcher->setEventsManager($eventManager);\n $dispatcher->setDefaultNamespace('Modules\\Main\\Controllers\\\\');\n\n return $dispatcher;\n });\n\n $di->set('view', function () {\n $view = new View();\n $view->setViewsDir(MODULES_PATH. 'main/views/');\n return $view;\n });\n }", "title": "" }, { "docid": "a7b7813df56dec1762328cf579d9fe63", "score": "0.55882317", "text": "protected function registerServices()\n\t{\n\t\t// Bind our Menu class to the IoC container\n\t\t$this->app->singleton('menu', function($app) {\n\t\t\treturn new Menu($app['config']);\n\t\t});\n\t}", "title": "" }, { "docid": "80c6fdf4ee6e7e68787e3e13aaa5673d", "score": "0.55870044", "text": "public function installController ()\n\t{\n\t}", "title": "" }, { "docid": "3a78441be41c2319fdb26fc6f809f641", "score": "0.5573691", "text": "protected function registerServices()\n {\n foreach ($this->providers as $value) {\n $this->app->register($value);\n }\n\n foreach ($this->bindings as $key => $value) {\n is_numeric($key)\n ? $this->app->singleton($value)\n : $this->app->singleton($key, $value);\n }\n }", "title": "" }, { "docid": "4f0d9f9c8b9b8dba244cc4250c63cbd7", "score": "0.55712986", "text": "public function registerServices(DiInterface $di)\r\n {\r\n $di->set('dispatcher', function() {\r\n\r\n $dispatcher = new Dispatcher();\r\n $dispatcher->setDefaultNamespace('API2CMS\\API\\Controllers');\r\n\r\n return $dispatcher;\r\n }, true);\r\n\r\n $di->set('view', function() {\r\n $view = new View();\r\n $view->setViewsDir('../modules/api/views/');\r\n\r\n return $view;\r\n });\r\n }", "title": "" }, { "docid": "b98bc3dda2f2afb0b2054d97bdaceee5", "score": "0.5559232", "text": "public function registerServices($di)\n {\n $dispatcher = $di->getDispatcher();\n $dispatcher->setDefaultNamespace('Eva\\EvaPermission\\Controllers');\n }", "title": "" }, { "docid": "213782291f25b36bd67be4e20742a776", "score": "0.555566", "text": "public function register()\n {\n $this->app->make('fashiostreet\\api_auth\\Controllers\\LoginController');\n $this->app->make('fashiostreet\\api_auth\\Controllers\\RegisterController');\n $this->app->make('fashiostreet\\api_auth\\Controllers\\ForgetPasswordController');\n $this->app->make('fashiostreet\\api_auth\\Controllers\\AuthController');\n\n $this->app->make('fashiostreet\\api_auth\\UserController');\n\n //api_auth facade binding\n App::bind('api_auth',function (){\n return new \\fashiostreet\\api_auth\\Controllers\\AuthController;\n });\n\n App::bind('Activation',function (){\n return new \\fashiostreet\\api_auth\\Activation\\ActivationController;\n });\n\n App::bind('Verification',function (){\n return new \\fashiostreet\\api_auth\\Verification\\VerificationController;\n });\n\n App::bind('User',function (){\n return new \\fashiostreet\\api_auth\\UserController;\n });\n\n App::bind('ResetPassword',function (){\n return new \\fashiostreet\\api_auth\\ResetPassword\\ResetPasswordController;\n });\n }", "title": "" }, { "docid": "1b7e6d41d3eabf307702373e74a8dabc", "score": "0.55459535", "text": "public function bindServicesIntoContainer()\n {\n $this->app['users.service'] = $this->app->share(function () {\n\n return new Services\\UsersService($this->app[\"db\"],$this->app[\"log\"],array_get($this->app,\"requestUserID\",0 ), array_get($this->app,'token',null));\n });\n\n //Here you can add more sevice instantiations like the user.service above\n\n }", "title": "" }, { "docid": "b7d180ce901dfb219f03f20b2190db3e", "score": "0.5531833", "text": "public function addController($controller,$key){\r\n\t \tif(!$controller->getBundle()){\r\n\t \t\t$controller->setBundle($this->bundle);\r\n\t \t}\r\n $this->controllers[$key] = $controller;\r\n return $this;\r\n }", "title": "" }, { "docid": "3f0ee2801e5b1baddabc5b2062f191da", "score": "0.55209", "text": "public static function do($container, $lazyLoad = true)\n {\n include_once \\dirname(__DIR__, 4).'/src/Controller/QuestionController.php';\n\n return $container->services['App\\\\Controller\\\\QuestionController'] = new \\App\\Controller\\QuestionController();\n }", "title": "" }, { "docid": "b7517dbacea85d81d2a94bef7d14032c", "score": "0.5520284", "text": "public function afterConfig()\n {\n foreach ($this->reflectionFactory->getClassesByAnnotation('controller') as $controller) {\n\t\t\t\n foreach ($this->_container->getBeansByClass($controller) as $name) {\n $annotations = $this->reflectionFactory->getClassAnnotations($controller);\n\t\t\t\t\n if (!$annotations->contains('requestmapping')) {\n continue;\n }\n $requestMappings = $annotations->getAnnotations('requestmapping');\n foreach ($requestMappings as $map) {\n if ($map->hasOption('url')) {\n\t\t\t\t\t\tforeach ($map->getOptionValues('url') as $url) {\t\t\t\t\t\t\t\n HttpUrlMapper::addAnnotatedController($url, $name);\n }\n }\n }\t\t\t\t\n\n\t\t\t\tif(isset($_SERVER['REQUEST_METHOD'])){\n\t\t\t\t\t$methodAux = $_SERVER['REQUEST_METHOD'];\n\t\t\t\t\t$uri = $_SERVER['REQUEST_URI'];\n\t\t\t\t\t$uri = explode(\"/\", $uri);\n\t\t\t\t\t$action = array_pop($uri);\n\t\t\t\t\t$action = explode(\"?\", $action);\n\t\t\t\t\t$action = $action[0];\n\t\t\t\t\t$resource = array_pop($uri);\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tforeach ($requestMappings as $map) {\n\t\t\t\t\t\tif ($map->hasOption('url')) {\n\t\t\t\t\t\t\tforeach ($map->getOptionValues('url') as $url) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif($url == \"/\".$resource){\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tforeach ($this->reflectionFactory->getClass($controller)->getMethods() as $method) {\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$methodName = $method->getName();\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\tif($action.\"Action\" == $methodName) {\n\t\t\t\t\t\t\t\t\t\t\t$annotations = $this->reflectionFactory->getMethodAnnotations($controller, $methodName);\n\t\t\t\t\t\t\t\t\t\t\tif ($annotations->contains('secured')) {\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t$annotation = $annotations->getSingleAnnotation(\"secured\");\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t$access = $annotation->getOptionSingleValue(\"access\");\n\t\t\t\t\t\t\t\t\t\t\t\t$method = $annotation->getOptionSingleValue(\"method\");\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t$firewall = Firewall::getInstance();\n\t\t\t\t\t\t\t\t\t\t\t\t$firewall->setContainer($this->_container);\n\t\t\t\t\t\t\t\t\t\t\t\t$firewall->validateAnnotatedSecure($access, ($method == $methodAux));\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\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}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n }\n }\n }", "title": "" }, { "docid": "e0f57a4ce28a1b8946ff0f0615f62035", "score": "0.5506342", "text": "public function register()\n {\n //\n $this->app->make('Ombimo\\MrPanel\\Controllers\\AdminController');\n\n $this->app->register(Modules\\MPDataTables\\MPDataTablesServiceProvider::class);\n }", "title": "" }, { "docid": "037b401a35f66242789fb00ecf2f5306", "score": "0.5503462", "text": "public function register()\n {\n foreach (static::$repositories as $repository) {\n $this->app->singleton(\n $repository[0],\n $repository[1]\n );\n }\n }", "title": "" }, { "docid": "519cd748ee5e39e18ff4d864ba52926c", "score": "0.54862726", "text": "public function onKernelResponse(ControllerEvent $event): void\n {\n $this->extensionRegistry->initializeAll($this->widgets, $this->config, $this->twig, $this->dispatcher);\n }", "title": "" }, { "docid": "4c9186a702d91281248a51f98dceece9", "score": "0.5472135", "text": "public function registerController(Controller $controller) {\n if (isset($this->controllers[get_class($controller)])) {\n return;\n }\n $this->controllers[get_class($controller)] = $controller;\n }", "title": "" }, { "docid": "5073cc979a545d71549fb2aa4fce444d", "score": "0.5470657", "text": "protected function registering()\n {\n $this->app->bindShared(ServiceShortCuts::RESOLVER_SERVICE, function () {\n return new Resolver($this->app);\n });\n\n $this->app->bindShared(ServiceShortCuts::GHOST_SERVICE, function () {\n return new GhostServices($this->app);\n });\n\n $this->app->bind(ServiceShortCuts::CORE_INITIALIZED, true);\n\n $this->app->booting(function () {\n $loader = AliasLoader::getInstance();\n\n foreach ($this->aliases as $facade => $facadeClass) {\n $loader->alias($facade, $facadeClass);\n }\n });\n }", "title": "" }, { "docid": "26c39b49bde62ad6987b9a25d38da782", "score": "0.54690033", "text": "public function register()\n {\n $this->app->when(AdminUserController::class)\n ->needs(UserInterface::class)\n ->give(AdminRepository::class);\n\n $this->app->when(UserController::class)\n ->needs(UserInterface::class)\n ->give(UserRepository::class);\n\n }", "title": "" }, { "docid": "2e0ae6b29a7688595f14a965d8c9c281", "score": "0.5462958", "text": "protected function registerActivationController()\n {\n $this->app->bind(ActivationController::class, function () {\n return new ActivationController();\n });\n }", "title": "" }, { "docid": "34bee4dcef092ab917dff545485cfa57", "score": "0.54511213", "text": "public function register()\n {\n foreach ($this->classes as $interface => $implementation) {\n $this->app->bind($interface, $implementation);\n }\n }", "title": "" }, { "docid": "5c02c8fc3af76f2e61a5b819bad59487", "score": "0.54488134", "text": "static function addControllerPath($path);", "title": "" }, { "docid": "eebc0024a4c12370494cde6f942d1a70", "score": "0.54416144", "text": "private function registerDependencies(): void\n {\n $this->app->bind(Link::class, \\App\\Services\\Url\\Link::class);\n\n $this->app->bind(TokenGenerator\\ApiTokenGenerator::class, TokenGenerator\\RandomTokenGenerator::class);\n\n $this->app->when(SignInHandler::class)\n ->needs(UserProvider::class)\n ->give(function (Application $app) {\n return $app['auth']->guard()->getProvider();\n });\n\n $this->app->singleton(UserRepository::class, UserEloquentRepository::class);\n }", "title": "" }, { "docid": "e48b76a47c04a1d175e86fa2ddc7b29b", "score": "0.5438129", "text": "public function register()\n {\n $entitiesToRegister = [];\n\n foreach ($entitiesToRegister as $className) {\n $this->app->bind($className, function($app) use ($className) {\n return new $className();\n });\n }\n }", "title": "" }, { "docid": "6a8b1ee2384af02e0e0a16dc124071d0", "score": "0.5434931", "text": "public function getControllerConfig() {\n return [\n 'factories' => [\n PessoaController::class => function($container) {\n $tableGateway = $container->get(Model\\PessoaTable::class);\n return new PessoaController($tableGateway);\n \t},\n \t],\n \t];\n \t}", "title": "" }, { "docid": "f2bb8243dcc2ab0e0f7a82ff2c399a11", "score": "0.5434506", "text": "public function register()\n {\n foreach ($this->_models() as $key => $model) {\n $this->app->singleton($key, function () use ($model) {\n return new $model;\n });\n }\n }", "title": "" }, { "docid": "4d07e5e052e708105f407931da8bed51", "score": "0.54258823", "text": "private function registerServices()\n {\n }", "title": "" }, { "docid": "d9ad9a92ca902bcd72d575e1d2d1a744", "score": "0.5424924", "text": "public function testInjectsContainer()\n {\n $request = new Request();\n $request->attributes->set('_controller', 'Nice\\Tests\\Router\\ContainerAwareController::someAction');\n $resolver = new ContainerAwareControllerResolver();\n\n $container = new Container();\n $resolver->setContainer($container);\n\n $controller = $resolver->getController($request);\n\n $this->assertCount(2, $controller);\n $this->assertSame($container, $controller[0]->getContainer());\n }", "title": "" }, { "docid": "9013357aaafc17f8177b762d95df5a87", "score": "0.5419981", "text": "private function setController(){\n\t\t$class = '\\controllers\\\\' . $this->controllerName . 'Controller';\n\t\tif(!class_exists($class)){\n\t\t\tthrow new \\Exception('Could not find controller class: ' . $class);\n\t\t}\n\t\t$this->controller = new $class();\n\t\t$this->controller->setParams($this->params);\n\t}", "title": "" }, { "docid": "d524503fbd1afaa689d02d9e56dd0b3a", "score": "0.54156613", "text": "public function makeServices()\n {\n $this->registrars = $this->get('config')->get('registrars');\n\n $instances = array();\n\n foreach ($this->registrars as $provider)\n {\n $instance = new $provider;\n\n $instance->register($this);\n\n $instances[] = $instance;\n }\n\n \n foreach ($instances as $instance) {\n $instance->booted();\n }\n }", "title": "" }, { "docid": "ad0446f05411fc94020b32ea2b9029fc", "score": "0.54155165", "text": "public function connect(Application $app)\n {\n $controllers = $app['controllers_factory'];\n\n\n \n $controllers->get('list',array($this, 'onListLoadScreen'))\n ->bind('bookme-queue-page');\n \n $controllers->get('', array($this,'getActivities'))\n ->bind('bookme-queue-list');;\n \n $controllers->delete('', array($this,'deleteActivities'))\n ->bind('bookme-queue-purge');;\n\n return $controllers;\n }", "title": "" }, { "docid": "9bf3efa8845ac32d27479f4e8408900f", "score": "0.5413195", "text": "protected function registerServices()\n {\n // For standalone package, laravel container does not exist.\n // And cache manager uses container to get the settings.\n // Get the container instance.\n $this->container = Container::getInstance();\n\n // Lumen does not exist. Basic setup require to bootstrap cache.\n // For testing, we only using array driver.\n // The CacheManager creates the cache \"repository\" based on config values\n // which are loaded from the config class in the container.\n $this->container['config'] = [\n 'cache.default' => 'array',\n 'cache.stores.array' => [\n 'driver' => 'array',\n ],\n ];\n\n // Bind Services to IoC container\n $this->bindServicesToContainer();\n\n // Register Cache and Log facades\n $this->registerFacades();\n }", "title": "" }, { "docid": "648cbe0ee9025674fbae85782b943727", "score": "0.54043543", "text": "public function register()\n {\n\t $this->app->bind('App\\Helpers\\LogHelpers', function(){\n\t\t return new LogController();\n\t });\n }", "title": "" }, { "docid": "730de0dbdf19e055700d42a7df39a98f", "score": "0.5402235", "text": "public function controller() {\n\t\t// set timezone\n\t\tdate_default_timezone_set('Asia/Jakarta');\n\t\t// max execution time\n\t\t//@set_time_limit(360);\n\t\t\n\t\t// twig template\n\t\trequire_once 'lib/Twig/Autoloader.php';\n\t\t\\Twig_Autoloader::register();\n\t\t\n\t\tif ($this->cache_view) {\n\t\t\t$this->twig = new \\Twig_Environment(new \\Twig_Loader_Filesystem('view/' . $this->theme), array(\n\t\t\t\t'cache' => 'config/cache'\n\t\t\t));\n\t\t} else {\n\t\t\t$this->twig = new \\Twig_Environment(new \\Twig_Loader_Filesystem('view/' . $this->theme));\n\t\t}\n\t\t\n\t\t$twig =& $this->twig;\n\t\t\n\t\t// router dengan Slim\n\t\trequire_once 'lib/Slim/Slim.php';\n\t\t\\Slim\\Slim::registerAutoloader();\n\t\t$this->app = new \\Slim\\Slim();\n\t\t$this->load('helper', 'controller');\n\t\t$app =& $this->app;\n\t\t$ctr = $this;\n\t\t\n\t\t// custom 404\n\t\t$this->app->notFound(function() use ($twig) {\n\t\t\tprint $twig->render('404.html', array());\n\t\t});\n\t\t/* $this->app->error(function() {\n\t\t\t// custom error_get_last\n\t\t}); */\n\t\t\n\t\t// controller file\n\t\tforeach (scandir('controller') as $file) {\n\t\t\tif (is_file('controller/' . $file)) {\n\t\t\t\trequire('controller/' . $file);\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->app->run();\n\t}", "title": "" }, { "docid": "7578687f75cae3e565649e2b9d0db05f", "score": "0.53977644", "text": "public function registerServices(DiInterface $di) {\n $moduleName = Text::camelize($di['router']->getModuleName());\n\n //Attach a event listener to the dispatcher\n $dispatcher = $di->get('dispatcher');\n $dispatcher->setDefaultNamespace(\"Module\\\\$moduleName\\\\Controllers\");\n\n //Registering the view component\n $view = $di->get('view');\n $view->setViewsDir(\"$moduleName/Views/\");\n }", "title": "" }, { "docid": "2efe5ab48d35f146a73c26f8f67f4c7b", "score": "0.5396997", "text": "public function __construct()\n {\n parent::__construct();\n\n $this->register(\n 'index',\n FrontModuleController::class,\n 'getIndex',\n 'Home'\n );\n\n $this->register(\n 'modules',\n FrontModuleController::class,\n 'getModules',\n 'Modules'\n );\n\n $this->register(\n 'issues',\n FrontModuleController::class,\n 'getIssues',\n 'Module issues'\n );\n }", "title": "" }, { "docid": "5d744ed82bf22b2ebcea44f5e45dea7b", "score": "0.539686", "text": "public function registerServices()\n\t{\n\t\t$service_providers = $this->container->get('service-providers-config')->config;\n\n\t\tforeach ($service_providers as $key => $value) {\n\t\t\t$args = [];\n\n\t\t\tif (array_key_exists('dependencies', $value)) {\n\t\t\t\t$args = $this->filterDependencies($value['dependencies']);\n\t\t\t}\n\n\t\t\tif (array_key_exists('params', $value)) {\n\t\t\t\t$args = array_merge($args, $value['params']);\n\t\t\t}\n\n\t\t\tif (!empty($args)) {\n\t\t\t\t$this->container->set($key, new $value['class'](...$args));\n\t\t\t} else {\n\t\t\t\t$this->container->set($key, new $value['class']());\n\t\t\t}\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "a1fca43c2ec4dfb8a83c43864df75b72", "score": "0.5390091", "text": "public function getControllers()\n {\n return $this->controllers;\n }", "title": "" } ]
d99177cc5806df2a1b2586f752db6cdd
Operation updateRole Update a role
[ { "docid": "d3a2dc50411e3f4790be8fcc522eeec4", "score": "0.0", "text": "public function updateRole($role, $role_resource = null)\n {\n list($response) = $this->updateRoleWithHttpInfo($role, $role_resource);\n return $response;\n }", "title": "" } ]
[ { "docid": "92f23db4006596c6cd87d383304e6ff6", "score": "0.7980699", "text": "public function updated(Role $role)\n {\n //\n }", "title": "" }, { "docid": "eeabac805018f982d7bec21b2c386246", "score": "0.7769869", "text": "public function update($role){\n\t\t$sql = 'UPDATE role SET roleName = ?, roleDescription = ? WHERE roleId = ?';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\t\n\t\t$sqlQuery->set($role->roleName);\n\t\t$sqlQuery->set($role->roleDescription);\n\n\t\t$sqlQuery->setNumber($role->roleId);\n\t\treturn $this->executeUpdate($sqlQuery);\n\t}", "title": "" }, { "docid": "c0605f322bc29468ec42e14a32d44f62", "score": "0.7610579", "text": "public function updateRole() \n {\n $this->validate([\n 'name' => ['required']\n ]);\n\n $this->role->update([\n 'name'=> $this->name\n ]);\n\n $this->role->syncPermissions($this->permissions);\n\n $this->emit('saved');\n }", "title": "" }, { "docid": "47f4eaac7c78bd4f1ce5d23f055549b2", "score": "0.7437706", "text": "public function update( RoleRequest $request , Role $role ) {\n $role->fill( Input::all() );\n $syncPermissions = Input::get( 'permission' );\n if ( count( $syncPermissions ) == 0 ):\n $syncPermissions = [ ];\n else:\n foreach ( $syncPermissions as $key => $syncPermission ):\n $syncPermissions[ $key ] = ( int ) $syncPermission;\n endforeach;\n endif;\n $role->syncPermissions( $syncPermissions );\n $role->save();\n return Redirect::to( route( 'roles' ) )\n ->with( 'flash_alert_notice' , 'Role was successfully updated!' )->with( 'alert_class' , 'alert-success alert-dismissable' );\n }", "title": "" }, { "docid": "49ae999c5092af819899a214141bb0db", "score": "0.74044776", "text": "public static function update_role($id, $role)\n {\n if($role == \"1 - site admin\") $role = 1;\n elseif ($role == \"0 - regular user\") $role = 0;\n $query = \"UPDATE `user` \n SET `role`='$role'WHERE id = '$id'\";\n $result = $GLOBALS['conn']->query($query);\n\n\n $ev = new Event();\n $ev->event_type = Event::EVENT_TYPE['admin_update_role'];\n $ev->user_1_id = $id;\n $ev = Event::insertEvent($ev);\n\n }", "title": "" }, { "docid": "e36770607d03e727809ce91022337640", "score": "0.73297095", "text": "public function updateRole($role_id, $data)\n {\n if(empty($role_id))\n \tthrow new App_Db_Exception_Table('Role id is not specified');\n $this->validateRole($role_id, $data);\n $this->db_update($this->_table, $this->getDbFields($data), array('id'=>$role_id));\n $this->setRoleResources($role_id, $data['permissions']);\n\t\tApp_Cache()->refreshTags(self::CACHE_TAG);\n }", "title": "" }, { "docid": "9dd04ed141e22f2d605277844b422f60", "score": "0.73006666", "text": "public static function updateRole($role, $id)\n {\n $employee = Employee::find()->where(['id' => $id])->one();\n\n if (!empty($employee)) {\n $employee->role = $role;\n return $employee->update();\n }\n\n return false;\n }", "title": "" }, { "docid": "bc0441a67d3ba1c93b9f1255661868c3", "score": "0.7289954", "text": "public function updated(Role $role)\n {\n if (isset($this->input['permissions'])) {\n $permissions = $this->input['permissions'];\n unset($this->input['permissions']);\n\n $role->syncPermissions($permissions);\n }\n }", "title": "" }, { "docid": "5c8fc9063ac453a6906e0537e05b514e", "score": "0.7260931", "text": "public function update(UpdateRoleRequest $request, Role $role)\n {\n $role->load('permissions');\n\n $role->update($request->only([\n 'title',\n ]));\n\n if ($role->permissions->pluck('id')->toArray() != $request->input('permissions', [])) {\n $role->permissions()->sync($request->input('permissions', []));\n }\n\n return redirect()->route('admin.roles.index')->withMessage('Role has been updated successfully');\n }", "title": "" }, { "docid": "092ae96f5573b130c65a2050b5ae9626", "score": "0.7256129", "text": "public function update(Request $request, Role $role)\n {\n if (Gate::denies('admin-permission')) {\n toastr()->warning(\"You don't have permission\");\n return redirect()->route('admin.roles.index');\n }\n\n $validatedData = $request->validate([\n 'name' => 'required|unique:roles,name,' . $role->id,\n ]);\n\n $role->name = $validatedData['name'];\n $role->save();\n\n toastr()->success('Data has been updated successfully!');\n\n return redirect()->route('admin.roles.index');\n }", "title": "" }, { "docid": "c3d57174dbc5cae301ef1b70f7eaac7b", "score": "0.7233372", "text": "public function update(RoleRequest $request, Role $role)\n {\n $role->update($request->only(['name','description']));\n $role->syncPermissions($request->permission);\n return redirect()->route('roles.index')\n ->with('success', 'Role updated successfully');\n }", "title": "" }, { "docid": "bf932a15ef6e5c6c57fdf0f429e3b1a1", "score": "0.7226764", "text": "public function update(Request $request, Role $role)\n {\n $request->merge(['name' => snake_case(Str::ascii($request->input('name')))]);\n $this->validate($request, [\n 'name' => [\n 'required',\n 'max:255',\n Rule::unique('roles')->where('account_id', $request->user()->account_id)->ignore($role->id),\n ],\n 'display_name' => 'required||max:255',\n 'description' => 'nullable',\n ]);\n\n $role->fill($request->only(['name', 'display_name', 'description']))\n ->fill(['account_id' => $request->user()->account_id])\n ->save();\n\n $role->permissions()->detach();\n\n if ($request->has('permissions')) {\n $role->permissions()->attach(request('permissions'));\n }\n\n return response()->json(['message' => 'Role successfully updated']);\n }", "title": "" }, { "docid": "a05f0884adaa44b44720ecb99a44d609", "score": "0.7221461", "text": "public function setRole($role);", "title": "" }, { "docid": "f42fdd9fbc0b949dee333a2b4f5f882b", "score": "0.7207333", "text": "public function update(Request $request, Role $role)\n {\n $this->role_validate($request);\n if($this->insert_or_update($request, $role)){\n $request->session()->flash('status', 'Role saved successfully!');\n return redirect()->route('role.index');\n }\n }", "title": "" }, { "docid": "edb1344fbf3c386fe4ad8870fb23c1ee", "score": "0.7201389", "text": "public function update(RoleStoreRequest $request, Role $role)\n\t{\n\t\tself::deny('roles_edit');\n\n\t\t$role->update($request->only('name', 'label'));\n\t\tself::setPermissionsToRole($role, $request->permission, 'update');\n\t\treturn redirect()->route('roles.index')->with('success', 'Role updated successfully!');\n\t}", "title": "" }, { "docid": "86ca7e0e4ab232263870190e339dd132", "score": "0.71908164", "text": "public function updateRole($id, $role) {\n\t\t$rowRole = $this->find ( $id )->current ();\n\t\t\n\t\tif ($rowRole) {\n\t\t\t// update the row values\n\t\t\t$rowRole->role = $role;\n\t\t\t$rowRole->save ();\n\t\t\t//return the updated user\n\t\t\treturn $rowRole;\n\t\t} else {\n\t\t\tthrow new Zend_Exception ( \"Update failed. Role not found!\" );\n\t\t}\n\t}", "title": "" }, { "docid": "d20bb6576f5686e6ab4f3d096b3dd778", "score": "0.71897054", "text": "public function update(Request $request, Role $role)\n {\n $validated = $request->validate([\n 'name' => 'required',\n ]);\n\n $role->update($request->only('name'));\n $role->permissions()->sync($request->input('permissions', [] ));\n\n /*$role=Role::findOrFail($id);\n $role->name=$request->input('name');\n $role->save();*/\n return redirect()->route('roles')->with('success','Información actualizada con exito.');\n \n }", "title": "" }, { "docid": "11de1d839a1bb2760260c3f59c5f4518", "score": "0.71725583", "text": "public function update(UpdateRolesRequest $request, $role)\n {\n $role = ($role) ? $role : $request->id;\n $role=Role::find($role);\n $role->update($request->except(['permission','id']));\n\n try {\n if ($role->update()) {\n \n return $this->returnJsonResponse(__('global.success_save'));\n \n return redirect()->route('dashboard.roles.index')\n ->with(['success'=>__('global.success_save')]);\n }\n else {\n return $this->returnJsonResponse(__('global.error_save'), [], FALSE, 213);\n\n notify()->error(__('global.error_save'));\n return redirect()->back()->with(['error'=>__('global.error_save')]); }\n\n }\n catch (Exception $e) \n {\n return $this->returnJsonResponse(__('global.data_error'), [], FALSE, 215);\n return $e;\n }\n }", "title": "" }, { "docid": "2a0f87f5cb66367355b8f1656f8e22d5", "score": "0.71473294", "text": "public function update(Request $request, Role $role)\n {\n $res = $role->find($request->id);\n $res->role_name = $request->role_name;\n $res->vip_level = $request->vip_level;\n $res->role_type = 'vip';\n $res->save();\n return redirect()->to('admin/role');\n }", "title": "" }, { "docid": "a1f217d3a9b2f00ec56e31fd3def3b70", "score": "0.71361786", "text": "public function update(Request $request, Role $role)\n {\n $request->validate([\n 'name' => 'required|unique:roles,name,' . $role->id,//ignore this atrubute from validation .\n 'permissions' => 'required|array|min:1',\n ]);\n\n $role->update($request->all());\n $role->syncPermissions($request->permissions);\n\n session()->flash('success', 'Data updated successfully');\n return redirect()->route('dashboard.roles.index');\n }", "title": "" }, { "docid": "dcf18877ae10914c772f6c2196713f0f", "score": "0.7134802", "text": "public function update(UpdateRoleRequest $request, Role $role)\n {\n $role = $this->roleService->update($role, $request->validated());\n return response()->json($role, 200);\n }", "title": "" }, { "docid": "c4a4ec83483950f40b10821f9061e440", "score": "0.7127433", "text": "public function update(RoleUpdateRequest $request, Role $role)\n {\n try {\n\n $role->update($request->all());\n $role->permissions()->sync($request->permissions);\n\n return redirect()->route('admin.roles.show', ['id' => $role->id])->with(['type' => 'success', 'message' => __('messages.success.update')]);\n } catch (\\Exception $e) {\n\n return redirect()->back()->with(['type' => 'danger', 'message' => __('messages.danger.update')])->withInput();\n }\n }", "title": "" }, { "docid": "baadff7d8a8a328aa4930f1fcf9138be", "score": "0.71220964", "text": "public function update(Role $role, Request $request)\n {\n // Update role\n $role->update($request->all());\n\n // Sync permissions\n $role->permissions()->sync($request['permissions']);\n\n $message = trans('messages.success.updated', ['type' => trans_choice('general.roles', 1)]);\n\n flash($message)->success();\n\n return redirect('auth/roles');\n }", "title": "" }, { "docid": "62d3f94f0136e083bf516da70124ae6f", "score": "0.712074", "text": "public function editRole()\n {\n\n $data = [\n \"role\" => $this->input->post('role', true)\n ];\n\n $this->db->where('id_role', $this->input->post('id_role'));\n $this->db->update('user_role', $data);\n }", "title": "" }, { "docid": "47010ecd39cb7f65da048fdbe35115ab", "score": "0.7099993", "text": "public function update_role($role_id, $name = '', $description = '')\n {\n $r = new Role($role_id);\n \n if ( $r->exists() )\n {\n if ($name != '')\n {\n $r->name = $name;\n }\n \n if ($description !== '')\n {\n $r->description = $description;\n }\n \n if ($name !== '' OR $description !== '')\n {\n $r->save(); \n }\n }\n }", "title": "" }, { "docid": "d69ac35a49f8bbd982700dc72a03394f", "score": "0.7099845", "text": "public function update(Role $role, Request $request)\n {\n $role->update($request->all());\n\n return response()->json([\n 'data' => $role\n ]);\n }", "title": "" }, { "docid": "d2af46108f2561ea127a656c024cef1f", "score": "0.7099115", "text": "public function update(Request $request, Role $role)\n {\n //\n // if($role->name == $request->input('name') && $role->description == $request->input('description')){\n // return redirect( route('roles.index'));\n // } else {\n //\n if($role->name != $request->input('name')){\n $request->validate([\n 'name' => 'string|required|max:50|unique:roles,name'\n ]);\n }\n\n $role->name = $request->input('name');\n $role->description = $request->input('description');\n // dd($request->input('name'));\n\n $role->save();\n // $request->session()->flash('status',\"Update successful on $role->name role\");\n return redirect( route('roles.index'));\n }", "title": "" }, { "docid": "0d8f28b10dec44a754a122844cd22869", "score": "0.70965433", "text": "public function update(Request $request, Role $role)\n {\n $data = $request->all();\n Permission_Role::where('role_id', $role['id'])->delete();\n $r = $this->storeRolePermission($role['id'], $data['_token'], $data['permisos']);\n return (int)$role->update(array(\"_token\"=>$data['_token'], \"name\"=>$data['name'], \"state\"=>$data['state'], \"description\"=>$data['description']));\n }", "title": "" }, { "docid": "2ed50fcbbb307a141974aa0dbc9aa251", "score": "0.70946455", "text": "public function update(RoleRequest $roleRequest, Role $role)\n {\n $this->authorize('update', $role);\n\n $role->update($roleRequest->only('name'));\n\n return response()->json([\n 'ok' => true,\n 'message' => 'Role updated.',\n 'data' => $role\n ]);\n }", "title": "" }, { "docid": "7cff7134dcee1ab6c4e729ea14aef488", "score": "0.7091136", "text": "public function update(Request $request, Role $role)\n {\n if (Auth::user()->canUpdateRole()) {\n $this->validate($request, [\n 'name' => 'required|string|min:5|max:100|unique:roles,id,'.$role->id,\n 'display_name' => 'required|string|max:100|unique:roles,id,'.$role->id\n ]);\n\n try {\n DB::beginTransaction();\n\n $permissions = Permission::whereIn('id', $request->permissions)->get();\n\n $role->fill($request->all());\n\n $role = $this->updateRecord($role, false);\n \n $role->permissions()->sync($permissions);\n\n DB::commit();\n\n return $this->updateSuccess($role);\n } catch (\\Exception $e) {\n DB::rollback();\n return $this->doOnException($e);\n }\n } else {\n return $this->accessDenied();\n }\n }", "title": "" }, { "docid": "ebc3eb8a23ea46d91c16ad1bd6bfdc65", "score": "0.7085609", "text": "public function setRole(string $role);", "title": "" }, { "docid": "ebc3eb8a23ea46d91c16ad1bd6bfdc65", "score": "0.7085609", "text": "public function setRole(string $role);", "title": "" }, { "docid": "7682a441e6a1c727d2812871111a30ce", "score": "0.7080463", "text": "public function update(Request $request, Role $role)\n {\n if($role->slug != 'administrador'){\n $this->validator($request->all(),1)->validate();\n $role->update($request->all());\n $role->updateRolePermissions($request->input('permission'));\n }else{\n flash('El rol administrador no se puede modificar','warning');\n }\n\n flash(\"El rol fue modificado correctamente\",'success');\n\n\n return redirect('/administracion/roles');\n }", "title": "" }, { "docid": "296333beb75c6b3b87c87b195b796170", "score": "0.7071805", "text": "public function update(Request $request, Role $role)\n {\n //indicar que el campo name debe de ser un campo requerido, para no mandar campo vacio\n $request->validate([\n 'name' => 'required'\n ]);\n\n $role->update($request->all());\n\n //con esta linea asignamos varios permisos al rol que se acaba de crear\n $role->permissions()->sync($request->permissions);\n\n //luego pedimos que nos redireccione a la ruta con nombre admin.roles.edit\n //luego le pasamos el parametro que acabamos de crear y mandarle un mensaje\n return redirect()->route('admin.roles.edit', $role)->with('info', 'El rol se actualió con exitó');\n\n }", "title": "" }, { "docid": "d72d9ad6089028e1e76c1d425ecaab3c", "score": "0.7049998", "text": "public function update(Request $request, Role $role)\n {\n $request->validate([\n 'name' => 'required'\n ]);\n \n try {\n $role->update($request->all());\n return $this->success('Successfuly update data role!');\n } catch (QueryException $error) {\n return $this->responseQueryException($error);\n }\n }", "title": "" }, { "docid": "d26498918243573cb83cbdd71dd6c65f", "score": "0.7041445", "text": "public function update(Request $request,Role $role)\n {\n $validated = request()->validate([\n \"name\" => [\"required\"],\n \"permissions\" => [],\n ]);\n $role->update($validated);\n if( count( _from($validated, \"permissions\") ) ) $role->permissions()->sync(_from($validated, \"permissions\"));\n session()->flash('message' ,\"Role update sucessfully\" );\n return redirect()->back();\n }", "title": "" }, { "docid": "1b2660e388b882e7cc5f48cc7d26ef87", "score": "0.70395243", "text": "public function update(Request $request, Role $role)\n {\n //tiene acceso\n Gate::authorize('haveaccess','role.edit');\n\n $request->validate(\n [\n 'name'=>'required|max:50|unique:roles,name,'.$role->id,\n 'slug'=>'required|max:50|unique:roles,name,'.$role->id,\n ]);\n\n $role->update($request->all());\n if($request->get('permission')){//si marco permisos lo guardo y le asigno permisos\n $role->permissions()->sync($request->get('permission')); \n }\n\n return redirect()->route('role.index')->with('status_success','Rol actualizado exitosamente');\n\n }", "title": "" }, { "docid": "2506a6c52bec06b025247191e0846de2", "score": "0.70053655", "text": "public function update(Request $request, Role $role)\n {\n $input = $request->all();\n $rules = Role::$rules;\n $rules['name'] = $rules['name'].\"|unique:\".config('permission.table_names.roles').\",NULL,\".$role->id.\",id\";\n $validator = Validator::make($input, $rules);\n $validator->setAttributeNames(Role::$attrs);\n\n if ($validator->fails()) {\n return redirect()->back()->withErrors($validator)->withInput();\n }\n\n unset($input['permissions']);\n\n try{\n $role->update($input);\n $role->syncPermissions($request->input('permissions'));\n }catch(\\Illuminate\\Database\\QueryException $e){\n $validator = Validator::make([],[]);\n $validator->errors()->add(\"\",\"資料庫更新失敗\");\n return redirect()->back()->withErrors($validator)->withInput();\n }\n\n return redirect()->action('Admin\\RoleController@index')->with('success','Role updated successfully');\n }", "title": "" }, { "docid": "b504e15933b4d53ee9861c55ecaae8bf", "score": "0.6999588", "text": "public function update(\n\t\tRoleUpdateRequest $request,\n\t\t$id\n\t\t)\n\t{\n//dd($request);\n\t\t$this->role->update($request->all(), $id);\n\n\t\tFlash::success( trans('kotoba::role.success.update') );\n\t\treturn redirect('admin/roles');\n\t}", "title": "" }, { "docid": "ef765ecfa69e69192577db0b2bcf25a6", "score": "0.69971657", "text": "public function update(Request $request, Role $role)\n {\n Role::where(['id'=>$role->id])->update(['name'=>$request->role_name]);\n PermissionRole::where(['role_id'=>$role->id])->delete();\n if (request('permissions')) {\n foreach (request('permissions') as $key => $value) {\n $permission = new PermissionRole;\n $permission->role_id = $role->id;\n $permission->permission_id=$value;\n $permission->save();\n }\n\n return redirect()->route('admin.'.request()->segment(2).'.index')->with(['class'=>'success','message'=>'Role Successfully Created']);\n }\n return redirect()->back()->with(['status'=>'success','message'=>'Permission alined success']);\n }", "title": "" }, { "docid": "8d746738d4670c028941590663bde7a4", "score": "0.6997002", "text": "public function update(Role $role, Request $request)\n {\n $role->update($request->all());\n Log::info(Auth::user()->name. ' uredio je ulogu ' .$role->name);\n if($request->input('dozvole')){\n Log::info(Auth::user()->name. ' promjenio je dozvole ['.implode(\",\", $request->input('dozvole')).'] ulozi '.$role->name);\n $this->syncDozvole($role, $request->input('dozvole'));\n }else{\n Log::info(Auth::user()->name. ' maknuo je dozvole ulozi '.$role->name);\n $role->dozvole()->sync([]);\n }\n Flash::success('Uloga je uređena');\n return back();\n }", "title": "" }, { "docid": "7729178f61be9c100e53acc4a2c8de87", "score": "0.69873667", "text": "public function update(Request $request, Role $role)\n {\n $updateRole = Role::where('id', $role->id)->update([\n 'role' => $request->input('role'),\n ]);\n\n if($updateRole){\n return redirect()->route('roles.index')\n ->with('success', 'Role was updated successfully');\n }\n //redirect\n return back()->withInput();\n }", "title": "" }, { "docid": "906d413b4e53d7d909b4dc7b32a1983c", "score": "0.69830513", "text": "public function update(Request $request, Role $role)\n {\n //\n }", "title": "" }, { "docid": "906d413b4e53d7d909b4dc7b32a1983c", "score": "0.69830513", "text": "public function update(Request $request, Role $role)\n {\n //\n }", "title": "" }, { "docid": "906d413b4e53d7d909b4dc7b32a1983c", "score": "0.69830513", "text": "public function update(Request $request, Role $role)\n {\n //\n }", "title": "" }, { "docid": "906d413b4e53d7d909b4dc7b32a1983c", "score": "0.69830513", "text": "public function update(Request $request, Role $role)\n {\n //\n }", "title": "" }, { "docid": "e97bb1856059dcfbc42a4e1521bbbbc2", "score": "0.69812053", "text": "public function update(Request $request, Role $role)\n {\n $request->validate([\n 'name' => 'required',\n 'slug' => ['required', Rule::unique('roles')->ignore($role->id)]\n ]);\n\n $role->name = $request->input('name');\n $role->slug = $request->input('slug');\n $role->save();\n\n return redirect()->route('admin.roles.index')->with('info', \"نقش {$role->name} ذخیره شد.\");\n }", "title": "" }, { "docid": "2e427fbcf99d500109b92aa6f49a821b", "score": "0.69787836", "text": "public function update(Request $request, Role $role)\n {\n //\n $this->validate($request, [\n 'name' => [\n Rule::unique('roles')->where(function ($query) use($role) {\n return $query->where('guard_name','=', 'web');\n })->ignore($role->id),\n ],\n 'role_permissions' => 'required',\n 'role_permissions.*' => 'exists:permissions,id',\n ]);\n\n $role->update([\n 'name'=> $request->name,\n ]);\n\n $selected_permissons = Permission::where('guard_name','web')\n ->whereIn('id',$request->role_permissions)\n ->pluck('name')->toArray();\n\n\n $role->syncPermissions($selected_permissons);\n\n flash()->success('Role Has Been Updated!');\n\n return back();\n }", "title": "" }, { "docid": "ff7673135ffc9b8ebfbe3ed6df894a36", "score": "0.69768524", "text": "public function update(Request $request, Role $role)\n {\n $role->update([\n 'name' => $request->name,\n 'description' => $request->description,\n ]);\n\n $role->syncPermissions($request->get('permissions'));\n\n return redirect()->route('roles.edit', $role->id)->with('info', __('Role updated successfully'));\n }", "title": "" }, { "docid": "7df85669f9b12a4898d377722f2a4cbf", "score": "0.69623375", "text": "public function update(StoreRoleRequest $request, Role $role)\n {\n // Update the role\n $role->update($request->only(['guard','name']));\n\n // Check if permissions requested is empty\n $permissionsRequested = empty($request->permissions) ? [] : $request->permissions;\n\n // Check if all permissions input are available for this user\n Gate::authorize('set-permissions', [$permissionsRequested]);\n\n // Get the permissions ids that are disabled (That the user can't change!)\n $restrictions = Auth::user()->permission_restrictions;\n $permissionsDisabled = $role->permissions->whereIn('id',$restrictions)->modelKeys();\n\n // Merge the $request with the $permissionsDisabled\n $permissions = array_merge($permissionsRequested, $permissionsDisabled);\n\n // Sync the permissions\n $sync = $role->permissions()->sync($permissions);\n if($sync)\n {\n $nbr = count($sync['attached'])+count($sync['detached'])+count($sync['updated']);\n PermissionEvent::dispatch('updated',$role, null, $nbr);\n }\n\n // Success\n session()->flash('toast', ['success' => notification('updated','role')]);\n return redirect()->route('backend.roles.index');\n }", "title": "" }, { "docid": "e786632fcd4c407d18b983b850e220e9", "score": "0.6955909", "text": "public function update(Request $request, Role $role)\n {\n return back()->with('success','Role Updated successfully!');\n }", "title": "" }, { "docid": "9773bd63c590ead80441044337997a58", "score": "0.6949113", "text": "public function updateRole(UpdateUserRole $request)\n {\n $user_id = $request->input('user_id');\n $role_id = $request->input('role_id');\n\n try {\n// find the user with given id\n $user = Users::find($user_id);\n if($user) {\n// update the role\n $user->role_id = $role_id;\n $user->save();\n return response()->json($user);\n } else {\n// throw error if we can't find user\n return response()->json([\"error\" => \"Can't find the user with given id\"],400);\n }\n } catch (\\Exception $ex) {\n//\n return response()->json($ex,400);\n }\n }", "title": "" }, { "docid": "614e3463719b1ac718fa8224e940494c", "score": "0.6948709", "text": "public function update(RoleRequest $request, $id)\n {\n //\n $res = $request->except('_token','_method');\n $res['mid'] = implode(',',$res['mid']);\n try{\n Role::where('id',$id)->update($res); \n }catch(\\Exception $e){\n return show(0,'修改失败');\n }\n return show(1,'修改成功');\n\n }", "title": "" }, { "docid": "30085e74ecbdc572682a3d34351227a0", "score": "0.69464266", "text": "public function update(Request $request, $role)\n {\n $rules = [\n 'name' => 'required|min:4|unique:roles,name,'.$role,\n 'description' => 'required',\n 'syncPermissions' => 'required'\n ];\n\n $messages = [\n 'name.required' => 'El nombre es requerido.',\n 'name.min' => 'El nombre es requiere minimo :min caracteres.',\n 'name.unique' => 'El nombre debe ser unico.',\n 'description.required' => 'La descripcion es requerida.',\n 'syncPermissions.required' => 'Debe seleccionar al menos un permiso.',\n ];\n\n $validator = Validator::make($request->all(), $rules, $messages);\n if ($validator->fails()) {\n return redirect()->back()\n ->withErrors($validator)\n ->withInput();\n }\n\n $role = Role::findOrFail($role);\n\n $update = $role->update([\n 'name' => $request->name,\n 'description' => $request->description\n ]);\n $role->syncPermissions($request->syncPermissions, true);\n if($update){\n return redirect()->route('admin.roles.index')->with(['action' => 'update', 'message' => 'Rol actualizado exitosamente']);\n }\n }", "title": "" }, { "docid": "daa67017ec13cb5902fb1d15d826421a", "score": "0.6936999", "text": "public function update(Request $request, Role $role)\n {\n $this->validate($request, [\n 'name'=>'required|max:10|unique:roles,name,'.$role->id,\n 'permissions' =>'required',\n ]);\n\n $input = $request->except(['permissions']);\n $role->fill($input)->save();\n \n $permissions = $request['permissions'];\n $p_all = Permission::all();\n \n foreach ($p_all as $p) {\n $role->revokePermissionTo($p);\n }\n \n foreach ($permissions as $permission) {\n $p = Permission::where('id', $permission)->firstOrFail(); //Get corresponding form permission in db\n $role->givePermissionTo($p); \n }\n\n return redirect()->route('role.index')\n ->with('success',\n 'Role '. $role->name.' updated!');\n }", "title": "" }, { "docid": "845e9c4b2976d19e11f57a9bd8efe8f4", "score": "0.6926051", "text": "public function update(Request $request, Role $role)\n {\n //Actualizar Rol\n $role->update($request->all());\n //Actualizar permisos\n $role->permissions()->sync($request->get('permissions'));\n return redirect()->route('roles.index', $role->id)\n ->with('status', 'Rol Actualizado');\n }", "title": "" }, { "docid": "8f6d5e685c24b1a6655e7601d93f2500", "score": "0.69240767", "text": "public function set_role($role)\n {\n }", "title": "" }, { "docid": "bb3681752f9b6bdce9ca380823b68c7e", "score": "0.691276", "text": "public function update(Request $request, Role $role)\n {\n $attributes = $this->validateRequest();\n $role->update($attributes);\n //Asignar Permisos\n $role->syncPermissions($request->get('permission'));\n return redirect()->route('roles.edit', $role->id)->with('status', 'Rol actualizado!');\n }", "title": "" }, { "docid": "1caa2a1b7ac72d76aa3fb25b9dcd6ade", "score": "0.69121265", "text": "public function update(Request $request, role $role)\n {\n //\n }", "title": "" }, { "docid": "78c2522f986af75e17e5c5835de42e3c", "score": "0.68892974", "text": "public function update(RoleUpdateRequest $request, $id)\n {\n $role = Role::find($id);\n //$role->name = $request->input('name');\n $role->description = $request->input('description');\n $role->level = $request->input('level');\n\n $role->save();\n\n\n return redirect()->route('roles.index');\n }", "title": "" }, { "docid": "c2c1bb1e13601f2a7a514c652a35f8e6", "score": "0.68799067", "text": "public function update(RoleRequest $request, $role)\n {\n $role = $this->repository->update($role,$request->only(['name','slug','description']));\n return new RoleResource($role);\n }", "title": "" }, { "docid": "0bfbdbc9ae0469c71c60edcdb1463c38", "score": "0.6874869", "text": "public function changeRole() {\n $role = $_POST['role'];\n\n $result = $this->db->select(\"SELECT * FROM `as_user_roles` WHERE `role_id` = :r\", array( \"r\" => $role ));\n\n if(count($result) == 0)\n return;\n\n $this->updateInfo(array( \"user_role\" => $role ));\n\n return $result[0]['role'];\n }", "title": "" }, { "docid": "28db6ddb48af013f8a68ebd189ba5bea", "score": "0.6871351", "text": "public function update(Request $request, $role)\n {\n //validate input\n $request->validate(\n [\n 'name' => ['required', 'max:50'],\n 'guard_name' => ['required', 'max:50'],\n ]\n );\n\n $permissions = $request->input('0');\n\n $role = Role::find($role);\n\n $role->name = $request->input('name');\n\n $role->guard_name = $request->input('guard_name');\n\n $role->save();\n\n $role->syncPermissions($permissions);\n\n return Redirect::back()->with('success', 'Role updated.');\n }", "title": "" }, { "docid": "fa19fac6f8c98b8721aa52ea9d5e59f4", "score": "0.6860015", "text": "public function update(Request $request,Role $role)\n {\n $this->authorize('haveaccess', \"role.edit\");\n\n $request->validate([\n 'nombre' => 'required|max:50|unique:roles,nombre,' . $role->id,\n 'slug' => 'required|max:50|unique:roles,slug,' . $role->id,\n 'acceso' => 'required|in:si,no',\n ]);\n\n $role->update($request->all());\n //if ($request->get('permiso')) {\n $role->permisos()->sync($request->get('permiso'));\n // return $request->all();\n //}\n\n ControlCambios::create([\n 'fecha_hora' => date('Y/m/d H:i:s', time()),\n 'descripcion' => 'Se edita registro ' . $request->id . ' en la tabla roles',\n 'id_usuario' => Auth()->user()->id\n ]);\n \n return redirect()->route('role.index')\n ->with('status_success', 'Rol actualizado correctamente');\n \n }", "title": "" }, { "docid": "91ca700bafc629f6179cfc8d155919e8", "score": "0.68583155", "text": "public function update(Request $request, Role $role)\n {\n $regla = [\n 'nombre' => 'required',\n 'slug' => 'required'\n ];\n $mensaje = [\n '¡Campo Obligatorio!'\n ];\n $this->validate($request,$regla,$mensaje);\n\n $role->nombre = $request->nombre;\n $role->slug = $request->slug;\n $role->save();\n\n return redirect('roles');\n }", "title": "" }, { "docid": "8076890dfa4ba2001382a91590b04dbd", "score": "0.68517035", "text": "public function update(Request $request, Role $role)\n {\n $role = Role::findOrFail($request->role_id);\n\n $role->update($request->all());\n\n return back();\n }", "title": "" }, { "docid": "3f18fb6f356b5c10cb4fefdec4ae0eec", "score": "0.6842235", "text": "public function update(RoleRequest $request, Role $role): RedirectResponse\n {\n $this->roleRepository->update($request, $role);\n\n $request->session()->flash('success', 'role updated successfully');\n\n if ($request->has('add-new'))\n return redirect()->back();\n\n return redirect()->route('admin.roles.index');\n\n }", "title": "" }, { "docid": "2cfcf9cb2bcc3422cafb088d6c06fe11", "score": "0.6839317", "text": "public function update()\n\t{\n\t\t$role = $this->role->findOrFail(Input::get('id'));\n\t\t$input = Input::all();\n\t\t$role->name = Input::get('name');\n\t\t$role->save();\n\t\tSession::flash('message', 'Role has been updated successfully.'); \n\t\tSession::flash('alert-class', 'alert-success'); \t\t\t\n\t\treturn Redirect::route('roles.index');\n\t}", "title": "" }, { "docid": "d91a9f9266facb8142498bb7a1c880b3", "score": "0.6835763", "text": "#[API\\Input(type: 'UserRole')]\n public function setRole(string $role): void\n {\n if (!Role::canUpdate(self::getCurrent(), $this->role, $role)) {\n $currentRole = self::getCurrent() ? self::getCurrent()->getRole() : self::ROLE_ANONYMOUS;\n\n throw new Exception($currentRole . ' is not allowed to change role from ' . $this->role . ' to ' . $role);\n }\n\n $this->role = $role;\n }", "title": "" }, { "docid": "66970e54e15a80ebb74e69bb051c6b14", "score": "0.68339473", "text": "public function assignRole(Role $role){\r\n\t\treturn $this->roles()->save($role);\r\n\t}", "title": "" }, { "docid": "e7c9e3b8ce49159abd517fa6f947011f", "score": "0.6833416", "text": "public function update(Request $request, Role $role)\n {\n $role->update($request->all());\n\n $role->givePermissionTo($request->permissions);\n return $this->success($role);\n }", "title": "" }, { "docid": "2e1569b6cc0a17801f687ba2e184e714", "score": "0.68264395", "text": "public function do_updateRole($role_id, UpdateRoleRequest $request) {\n // Attempt to find the role\n try {\n /** @var \\App\\Role $role */\n $role = Role::findOrFail($role_id);\n\n // IF an invalid ID was passed, throw a 404\n } catch (ModelNotFoundException $ex) {\n $this->_addDashboardMessage('The role you were looking for does not exist.', 'error');\n return redirect()->route('admin.listroles')->with('dashboardMessages', $this->dashboardMessages);\n }\n\n // Populate with new values\n $role->fill($request->all());\n $role->save();\n\n // Add success message\n $this->_addDashboardMessage('Successfully updated '.$role->label.' role.', 'success');\n\n // Redirect the user to the edit page\n return redirect()->route('admin.editrole', ['role_id' => $role->role_id])\n ->with('dashboardMessages', $this->dashboardMessages);\n }", "title": "" }, { "docid": "664362330f483a528ac64f557a898c55", "score": "0.6823782", "text": "public function update(StoreUpdateRoleRequest $request)\n {\n $role = Role::find($request->id);\n $role->name = $request->name;\n $role->save();\n\n return redirect()->route('role.index');\n }", "title": "" }, { "docid": "7ed4744af1b8816ed2905870b113c182", "score": "0.6816951", "text": "public function update(RoleRequest $request, Role $role)\n {\n $roleOld = Role::where('name', $request->name)->first();\n if($roleOld && ($role->id != $roleOld->id)){\n $notification = array(\n 'message' => 'يوجد بالفعل رتبة بهذا الاسم',\n 'alert-type' => 'error',\n 'error' => 'يوجد بالفعل رتبة بهذا الاسم',\n );\n return back()->withInput($request->all())->with($notification);\n }\n $role->syncPermissions($request->permissions);\n $role->update(['name' => $request->name]);\n\n\n $notification = array(\n 'message' => 'تم حفظ التعديلات بنجاح',\n 'alert-type' => 'success',\n 'success' => 'تم حفظ التعديلات بنجاح',\n );\n return redirect()->route('roles.index')->with($notification);\n }", "title": "" }, { "docid": "b32261668f4f1b27785da09e9e1d1ac8", "score": "0.68152106", "text": "public function update(RoleRequest $request, $id)\n {\n $role = Role::find($id);\n $role->roleName = $request->roleName;\n $role->roleSlug = $request->roleSlug;\n $role->save();\n return redirect('/roles')->with('success', 'Role updated successfully');\n }", "title": "" }, { "docid": "0c06c1ceccd97540006be36069569a87", "score": "0.68151796", "text": "public function update(Request $request, Role $role)\n {\n // validacion , requiere implementacion en la vista para mostrar mensaje en la vista del campo requerido faltante .\n $request->validate([\n 'name' => 'required',\n 'permissions' => 'required'\n ]);\n\n // actualizae nombre role\n $role->update([\n 'name' => $request->name\n ]);\n\n // metodo sync va eleminar todos registros relacionados a un id role , y genera nuevamente lo que esta almacenado en el request->permisssions\n // esta metodologia lo podemos usar en actualziar cualquier relacion de mucho a mucho tenemos en el negocio\n $role->permissions()->sync($request->permissions);\n\n //return $role->permissions;\n return redirect()->route('admin.roles.edit', $role);\n\n\n }", "title": "" }, { "docid": "463adc5751cfebe0f8af400181d782ab", "score": "0.6811691", "text": "public function addRole($role);", "title": "" }, { "docid": "463adc5751cfebe0f8af400181d782ab", "score": "0.6811691", "text": "public function addRole($role);", "title": "" }, { "docid": "cc776600639c76b65237781c99f5651f", "score": "0.68114716", "text": "public function update(UpdateRole $request, $id)\n {\n Gate::authorize('edit-role', Auth::user());\n\n $validated = $request->validated();\n\n $role = Role::findOrFail($id);\n $role->title = $validated['title'];\n $role->description = $validated['description'];\n $role->permissions()->sync($validated['permissions']);\n $role->save();\n\n $request->session()->flash('status', 'A role edited successfully!');\n\n return redirect()->route('roles');\n }", "title": "" }, { "docid": "5531ac888b59dae42bb08780c91bd1e5", "score": "0.68030584", "text": "public function update(CreateRole $request, $id)\n {\n $role = Role::findOrFail($id);\n\t\t$role->name = $request->name;\n\t\t$role->code = $request->code;\n\t\t$role->save();\n\t\t\n\t\treturn redirect(url(\"role\"))->with('dp_announce', trans('deeppermission.alert.role.updated'));\n }", "title": "" }, { "docid": "531cd8ec56c50d291fedb78a0df965ea", "score": "0.6795398", "text": "public function update(Request $request, $role)\n {\n \n $role = Role::findOrFail($role);\n $this->validate($request, [\n 'name' => 'required|max:25',\n // 'guard_name' => 'required|max:15',\n ]);\n $role->name = $request->input('name');\n $role->save();\n // $role = Role::update(['name' => $request->input('name')]);\n return redirect('/role/index');\n }", "title": "" }, { "docid": "fef3652b6b447959b03cbdf94d604c82", "score": "0.67892134", "text": "public function update(Request $request, Role $role)\n {\n $request->validate([\n 'name' => 'required'\n ]);\n\n $role->update([\n 'name' => $request->name\n ]);\n\n return redirect()->route('roles.index')->with([\n 'status' => 'Role telah berhasil diubah',\n 'alert' => 'info'\n ]);\n }", "title": "" }, { "docid": "1bb07aa7595c116e2d0347e2d367e8e0", "score": "0.6782248", "text": "public function update_role_level( $role ) {\n\n\t\t// Verify the nonce before proceeding.\n\t\tif ( isset( $_POST['mrl_role_level_nonce'] ) && wp_verify_nonce( $_POST['mrl_role_level_nonce'], 'role_level' ) ) {\n\n\t\t\t// Get the current role object to edit.\n\t\t\t$role = get_role( members_sanitize_role( $role ) );\n\n\t\t\t// If the role doesn't exist, bail.\n\t\t\tif ( is_null( $role ) )\n\t\t\t\treturn;\n\n\t\t\t// Get the posted level.\n\t\t\t$new_level = isset( $_POST['mrl-role-level'] ) ? $_POST['mrl-role-level'] : '';\n\n\t\t\t// Make sure the posted level is in the whitelisted array of levels.\n\t\t\tif ( ! mrl_is_valid_level( $new_level ) )\n\t\t\t\treturn;\n\n\t\t\t// Get the role's current level.\n\t\t\t$role_level = mrl_get_role_level( $role );\n\n\t\t\t// If the posted level doesn't match the role level, update it.\n\t\t\tif ( $new_level !== $role_level )\n\t\t\t\tmrl_set_role_level( $role, $new_level );\n\t\t}\n\t}", "title": "" }, { "docid": "a090d7127cdbb5dfb41a5475d339e1ad", "score": "0.67753977", "text": "public function update_role( $role_nr )\n {\n $data = array('role' => $role_nr);\n $this->db->where('id', $this->id);\n return $this->db->update('users', $data);\n }", "title": "" }, { "docid": "b2943c68f0a733a0ce47eb3a1d6dd55b", "score": "0.6774258", "text": "public function edit(Role $role)\n {\n \n }", "title": "" }, { "docid": "5d7f844593760b440f2a772b5405205d", "score": "0.67680705", "text": "public function update(RoleUpdateRequest $request, $id)\n {\n $role = Role::findOrFail($id);\n $data = $request->only(['name','display_name','range']);\n if ($role->update($data)){\n // sys_log表\n $adminUser = $request->user()->toArray();\n $this->addSysLog([\n 'user_id'=>$adminUser['id'],\n 'username'=>$adminUser['name'],\n 'module'=>SysLog::manage_role,\n 'page'=>'角色管理',\n 'type'=>SysLog::edit,\n 'content'=>'编辑角色:' . $role->id,\n ]);\n return redirect()->to(route('admin.role'))->with(['status'=>'更新角色成功']);\n }\n return redirect()->to(route('admin.role'))->withErrors('系统错误');\n }", "title": "" }, { "docid": "fb1ae55f8f92749b880017859dcc864e", "score": "0.6761092", "text": "public function testCreateUpdate() {\n $role = CRM_Core_DAO::createTestObject('CRM_HRJob_DAO_HRJobRole')->toArray();\n $this->assertTrue(is_numeric($role['id']));\n $this->assertTrue(is_numeric($role['job_id']));\n $this->assertNotEmpty($role['title']);\n $this->assertNotEmpty($role['location']);\n\n // update the role\n $result = $this->callAPISuccess('HRJobRole', 'create', array(\n 'id' => $role['id'],\n 'description' => 'new description',\n 'location' => '',\n ));\n\n // check return format\n $this->assertEquals(1, $result['count']);\n foreach ($result['values'] as $roleResult) {\n $this->assertEquals('new description', $roleResult['description']);\n $this->assertEquals('', $roleResult['location']); // BUG: $roleResult['location'] === 'null'\n }\n }", "title": "" }, { "docid": "053783b02b4b8c3f75047c2655d784ed", "score": "0.6748354", "text": "public function update(Request $request, Role $role)\n {\n $role->update($request->all());\n return response([ 'role' => new RoleResource($role), 'message' => 'Success'], 200);\n }", "title": "" }, { "docid": "085bd4e13935b850cc3e5899def1d2f8", "score": "0.6742527", "text": "public function update(Request $request, Role $role)\n {\n //\n $this->validate($request, [\n 'name' => 'required',\n 'description' => 'required'\n \n \n ]);\n $form_data = array(\n 'name' => $request->name, \n 'description' => $request->description\n\n \n );\n $role->update($form_data);\n return redirect()->route('role.index')\n ->with('success','Catagory updated successfully');\n }", "title": "" }, { "docid": "8e64e819bc6aac527d62b719d0b8f290", "score": "0.67374974", "text": "public function update(Request $request, Role $role)\n {\n $role->update($request->all());\n return response([\n 'message' => 'Role updated',\n 'data' => new RoleResource($role)\n ], Response::HTTP_CREATED);\n }", "title": "" }, { "docid": "9e6ec98504ef1a28b9907b71acd95ffd", "score": "0.6724219", "text": "public function set_role($role)\n {\n }", "title": "" }, { "docid": "5b4c414a53d313245ff7582cdb9db770", "score": "0.67186344", "text": "private function _update_role($role, $states)\n\t{\n\t\t$role_states = $this->db->get_where('ep_roles', array('site_id' => $this->site_id, 'role' => $role));\n\n\t\t// If we *don't*, create a record\n\t\tif ($role_states->num_rows() == 0)\n\t\t{\n\t\t\t$data = array(\n\t\t\t\t'site_id' => $this->site_id,\n\t\t\t\t'role' => $role,\n\t\t\t\t'states' => serialize($states)\n\t\t\t);\n\t\t\t$this->db->insert('ep_roles', $data);\n\t\t}\n\t\t\n\t\t// If we do, update them\n\t\telse\n\t\t{\t\n\t\t\t$this->db->where('site_id', $this->site_id);\n\t\t\t$this->db->where('role', $role);\n\t\t\t$this->db->update('ep_roles', array('states' => serialize($states)));\n\t\t}\n\t}", "title": "" }, { "docid": "4ea5648f838349491fad539ab937bf42", "score": "0.67181534", "text": "public function update(Request $request, Role $role)\n {\n $this->authorize('update', $role);\n\n $data = $this->validate($request, Role::rules());\n\n $role->update($data);\n\n return response()->json($role, Response::HTTP_OK);\n }", "title": "" }, { "docid": "016815a2f3785a7cffae806b88aa4f52", "score": "0.67172444", "text": "public function update(UpdateRole $request, $id)\n {\n \n try {\n $roleActivator = new RoleActivator();\n $roleActivator->editRole($request, $id);\n\n return redirect()->route('roles.index')\n ->with('success','Role updated successfully');\n } catch (RoleNotFoundException $e) {\n return redirect()->route('roles.index')\n ->with('unsuccessful','Role was not found');\n } catch (RoleUpdateUnsuccessfulException $e) {\n return redirect()->route('roles.edit', $role->id)\n ->with('unsuccessful','Role was not updated successfully');\n } catch (Exception $e) {\n return redirect()->route('roles.edit', $role->id)\n ->with('unsuccessful','Role was not updated successfully');\n }\n }", "title": "" }, { "docid": "691e60cf177a4248be0ab802fe95f643", "score": "0.6713549", "text": "function setRole($ritID, $roleID){\r\n $query = \"UPDATE users SET role_id=? WHERE rit_id=?\";\r\n\r\n return $this->makeParamExecute($query, array($roleID, $ritID));\r\n }", "title": "" }, { "docid": "7b9f85e8c7ab17486f4d1612dc9ba75a", "score": "0.6713513", "text": "public function editRole(Request $request){\n $roleUpdate = Role::where('id',$request->input('role'))->update([\n 'name'=>$request->input('name'),\n 'description'=>$request->input('description'),\n ]);\n if ($roleUpdate){\n $role = Role::where('id',$request->input('role'))->first();\n $role->privileges()->sync($request->get('privileges'));\n }\n return redirect()->route(\"roles\");\n\n }", "title": "" }, { "docid": "87109504c430591e1b20ba61b83c3303", "score": "0.66839236", "text": "public function update(RoleRequest $request, Role $role)\n {\n $role->permissions()->sync($request->permissions);\n\n return response(\n new RoleResource(tap($role)->update($request->validated())), \n Response::HTTP_ACCEPTED\n );\n }", "title": "" }, { "docid": "19562e5df0431b09132b9ad510f86619", "score": "0.6683531", "text": "public function update(RoleRequest $request, $id) {\n //\n $role = Role::find($id);\n $role->name = $request->get('name');\n $role->display_name = $request->get('display_name');\n $role->description = $request->get('description');\n if ($role->update()) {\n return redirect()->route('backend.user.index');\n }\n }", "title": "" }, { "docid": "d304d32b6d80577ee54560e30287ed19", "score": "0.66676766", "text": "public function addRole(Role $role);", "title": "" }, { "docid": "613eea6140988cb7faee68566dd36a6b", "score": "0.6666408", "text": "static public function UpdateRole($request,$id)\n {\n $role= static::findorFail($id);\n $role->name=trim(strtolower($request->name));\n $role->display_name=$request->display_name;\n $role->description=strip_tags($request->description);\n $role->save();\n }", "title": "" }, { "docid": "63e386e654448cd474918dc74397fc32", "score": "0.6665783", "text": "public function update(RoleUpdateRequest $request, Group $group, Role $role)\n {\n $role->name = $request->input('name');\n $role->parent = $request->input('parent', $role->inherits_from);\n $role->group_id = $request->input('group', $group->id);\n $role->save();\n\n return $this->code(204);\n }", "title": "" } ]
558ec13d4708a2c82915055e34d7bd93
REPLACE INTO helper routine. Example of use: execute( BasicHelpers::replace("mytable", array("name" => "John Smith")) ); It will execute "REPLACE INTO mytable (name) VALUES("John Smith")"
[ { "docid": "07e40d029e29295bf6bf05d0747d1833", "score": "0.7188389", "text": "public static function replace($tablename, array $data)\n {\n return self::makeValuesSQL('REPLACE INTO ', $tablename, $data);\n }", "title": "" } ]
[ { "docid": "81615694ea8cceeb4f0d3ff6477a06e6", "score": "0.72780925", "text": "function makeReplaceQuery($table, $columns, $tokens){\n\t\treturn sprintf(\"REPLACE INTO `%s` %s VALUES %s;\", $table, $columns, $tokens);\n\t}", "title": "" }, { "docid": "1a6d1b1d033b31b279c5b4dafec270c0", "score": "0.7202443", "text": "function replace($tableName, $fields, $pairs);", "title": "" }, { "docid": "2e5e9d5d6de346630b8b3734674f46ee", "score": "0.7114685", "text": "function replace( $table, $data, $format = null ) {\n\t\treturn $this->_insert_replace_helper( $table, $data, $format, 'REPLACE' );\n\t}", "title": "" }, { "docid": "6c87bf11d1e5c11060362d47a6d90aaf", "score": "0.69868547", "text": "public function auto_replace (array $arg_arr_variables, $arg_str_table_name='') {\r\n\t\treturn $this->auto_insert_replace($arg_arr_variables, $arg_str_table_name, 'REPLACE');\r\n\t}", "title": "" }, { "docid": "2799c21710bd18a02fe32fe174af8252", "score": "0.6961652", "text": "public function replace( $table, $data ) {\n $data = array_slice( func_get_args(), 1 );\n return $this->insert_replace(\"REPLACE\", $table, $data );\n }", "title": "" }, { "docid": "e9140d7732114b1593d5bc275275fb9a", "score": "0.68038744", "text": "public function replace();", "title": "" }, { "docid": "b44b6c9d3e7c8dcdf9d483642a6e08f8", "score": "0.6725697", "text": "function replace_data($table,$data=array()){\n\t\t$fld='';$value='';\n\t\tforeach(array_keys($data) as $key){\n\t\t\t$fld .=$key.',';\n\t\t}\n\t\tforeach(array_values($data) as $val){\n\t\t\t$value .=\"'\".$val.\"',\";\n\t\t}\n\t\t$fld=substr($fld,0,(strlen($fld)-1));\n\t\t$value=substr($value,0,(strlen($value)-1));\n\t\t$sql=\"replace into $table (\".$fld.\") values(\".$value.\")\";\n\t\t//echo $sql;\n\t\treturn $this->db->query($sql) or die($sql.mysql_error());\t\n\t}", "title": "" }, { "docid": "18a69dca8d55d8e68051ea82d29745c2", "score": "0.67184275", "text": "protected function _replace(string $table, array $keys, array $values): string\n {\n return 'INSERT OR ' . parent::_replace($table, $keys, $values);\n }", "title": "" }, { "docid": "6ec4ecd5fe24d4c86570d06f46622f71", "score": "0.6711135", "text": "static public function replaceInto($table){\n $obj = new ReplaceIntoRule(new SqlConetxt());\n return $obj->replaceInto($table);\n }", "title": "" }, { "docid": "f4b420dc1b3d7a90bd95ab254d7f6ad8", "score": "0.6551873", "text": "abstract public function replace();", "title": "" }, { "docid": "f31bd4eb9736024d1a1a1cce6ab5b573", "score": "0.6464426", "text": "public function replace($table,$kvA,$matchKeys=null){\n\t\tif($this->driver == 'sqlite'){\n\t\t\t$type = 'INSERT OR REPLACE';\n\t\t}else{\n\t\t\t$type = 'REPLACE';\n\t\t}\n\t\treturn $this->into($type,$table,$kvA,'',$matchKeys);\n\t}", "title": "" }, { "docid": "e013a61b0fac4d3208914a11863973fe", "score": "0.64595604", "text": "public function replace(string $table, array $boundParameters = []): static\n {\n throw new DatabaseException('REPLACE is not supported in Postgres');\n }", "title": "" }, { "docid": "520ee5cc8774b1d1ad30e3f7e6d18de0", "score": "0.6189053", "text": "public function replace($tableExpression, array $data, array $types = array())\n {\n $this->connect();\n\n if (empty($data)) {\n return $this->executeUpdate('REPLACE INTO ' . $tableExpression . ' ()' . ' VALUES ()');\n }\n\n return $this->executeUpdate(\n 'REPLACE INTO ' . $tableExpression . ' (' . implode(', ', array_keys($data)) . ')' .\n ' VALUES (' . implode(', ', array_fill(0, count($data), '?')) . ')',\n array_values($data),\n is_string(key($types)) ? $this->extractTypeValues($data, $types) : $types\n );\n }", "title": "" }, { "docid": "32b4147df896c23f29adce12e42546b4", "score": "0.6121138", "text": "function replace($parameter){}", "title": "" }, { "docid": "da7124b72449187d5902e7ec77b2529e", "score": "0.5955437", "text": "private function insert_replace($action, $table, $data) {\n if( ! $this->ready )\n return false;\n if( empty($data) )\n return false;\n if( ! in_array( strtoupper($action), array(\"INSERT\", \"REPLACE\") ) ) \n return false;\n //then\n $t_data = $this->tablas[$table];\n $this->query = \"{$action} INTO {$table} (\" . implode(', ', $t_data) . \") VALUES \";\n $v = array();\n foreach($data as $a)\n $v[] = \"('\" . implode(\"','\", $a) . \"')\";\n\n $this->query .= implode(', ', $v);\n \n return $this->execute();\n }", "title": "" }, { "docid": "a4fa5d2a1cf383391909219fe9d7b9e9", "score": "0.5790126", "text": "public function replace($name, $value)\n {\n \t// prepare and execute the statement to load the keys\n \t$statement = $this->_db->prepare(\n \t\t\"UPDATE `\" . $this->_properties->getProperty(\n \t TechDivision_Resources_DBResourceBundle::DB_SQL_TABLE\n \t ) . \"` SET `\" . $this->_properties->getProperty(\n \t TechDivision_Resources_DBResourceBundle::DB_SQL_VAL_COLUMN\n \t ) . \"` = ?, `\" . $this->_properties->getProperty(\n \t TechDivision_Resources_DBResourceBundle::DB_SQL_LOCALE_COLUMN\n \t ) . \"` = ? WHERE `\" . $this->_properties->getProperty(\n \t TechDivision_Resources_DBResourceBundle::DB_SQL_KEY_COLUMN\n \t ) . \"` = ?\",\n \t array(\"text\", \"text\", \"text\")\n \t);\n\t\t// check if statement has been prepared successfully\n\t\tif (PEAR::isError($statement)) {\n \t\tthrow new Exception($statement->getMessage());\n\t\t}\n\t\treturn $statement->execute(\n\t\t array(\n\t\t $value,\n\t\t TechDivision_Resources_AbstractResourceBundle::getSystemLocale()\n\t\t ->__toString(),\n\t\t $name\n\t\t )\n\t\t);\n }", "title": "" }, { "docid": "7b9a97ad29d0e680f2ec159e89933977", "score": "0.57813483", "text": "public static function replace($table, $data, $format = null)\n {\n return static::db()->replace(static::db()->prefix . $table, $data, $format);\n }", "title": "" }, { "docid": "44116289ca131b6962d2b51ef9292db0", "score": "0.5717557", "text": "public function replace($old, $new){\n\n }", "title": "" }, { "docid": "9c62b06e27e0df4e19dfa4e2ce0f5024", "score": "0.56800175", "text": "function edit($varID, $name2Edit, $value2Change, $varstable)\r\n{\r\n $getsql = \"REPLACE INTO `\" .$varstable. \"` (`config_name`,`config_value`) VALUES ('$name2Edit','$value2Change')\";\r\n $getqry = mysql_query($getsql) or die(mysql_error());\r\n}", "title": "" }, { "docid": "3cb69a88229cd0f2ad9a4a47e5c52598", "score": "0.5679562", "text": "function replaceMarkersInSQL($sql, $table, $row) {\n\t\t$TSconfig = \\TYPO3\\CMS\\Backend\\Utility\\BackendUtility::getTCEFORM_TSconfig ($table, $row);\n\t\t\n\t\t/* Replace references to specific fields with value of that field */\n\t\tif (strstr ($sql, '###REC_FIELD_')) {\n\t\t\t$sql_parts = explode ('###REC_FIELD_', $sql);\n\t\t\twhile (list ($kk, $vv) = each ($sql_parts)) {\n\t\t\t\tif ($kk) {\n\t\t\t\t\t$sql_subpart = explode ('###', $vv, 2);\n\t\t\t\t\t$sql_parts [$kk] = $TSconfig ['_THIS_ROW'] [$sql_subpart [0]] . $sql_subpart [1];\n\t\t\t\t}\n\t\t\t}\n\t\t\t$sql = implode ('', $sql_parts);\n\t\t}\n\t\t+\n\t\t/* Replace markers with TSConfig values */\n\t\t$sql = str_replace ('###CURRENT_PID###', intval ($TSconfig ['_CURRENT_PID']), $sql);\n\t\t$sql = str_replace ('###THIS_UID###', intval ($TSconfig ['_THIS_UID']), $sql);\n\t\t$sql = str_replace ('###THIS_CID###', intval ($TSconfig ['_THIS_CID']), $sql);\n\t\t$sql = str_replace ('###STORAGE_PID###', intval ($TSconfig ['_STORAGE_PID']), $sql);\n\t\t$sql = str_replace ('###SITEROOT###', intval ($TSconfig ['_SITEROOT']), $sql);\n\t\t$sql = str_replace ('###PAGE_TSCONFIG_ID###', intval ($TSconfig [$field] ['PAGE_TSCONFIG_ID']), $sql);\n\t\t$sql = str_replace ('###PAGE_TSCONFIG_IDLIST###', $GLOBALS ['TYPO3_DB']->cleanIntList ($TSconfig [$field] ['PAGE_TSCONFIG_IDLIST']), $sql);\n\t\t$sql = str_replace ('###PAGE_TSCONFIG_STR###', $GLOBALS ['TYPO3_DB']->quoteStr ($TSconfig [$field] ['PAGE_TSCONFIG_STR'], $foreign_table), $sql);\n\t\t\n\t\treturn $sql;\n\t}", "title": "" }, { "docid": "b674489054bac080baf1767129a2f807", "score": "0.5677263", "text": "public function replace(array $data);", "title": "" }, { "docid": "1fa8009a1def0ea19a56232cdecdd98c", "score": "0.56127906", "text": "private function replace_identity(&$match,&$replace,&$t,&$count){\n\t}", "title": "" }, { "docid": "0714a2d15c87d12cec9443c464e24b49", "score": "0.5609777", "text": "public static function getReplace();", "title": "" }, { "docid": "001dd6b4ea0ff2ccae14fab983fdbdf1", "score": "0.5600531", "text": "public function replace($key, $value);", "title": "" }, { "docid": "001dd6b4ea0ff2ccae14fab983fdbdf1", "score": "0.5600531", "text": "public function replace($key, $value);", "title": "" }, { "docid": "60f57500377b5ab01a1b3ad561f77460", "score": "0.5574323", "text": "function bind_vars($query, $find, $replace) {\n return str_replace($find, '\"' . tep_db_input($replace) . '\"', $query);\n}", "title": "" }, { "docid": "ef871680912469766b7b49080038eff0", "score": "0.55627286", "text": "function _insert_replace_helper( $table, $data, $format = null, $type = 'INSERT' ) {\n\t\tif ( ! in_array( strtoupper( $type ), array( 'REPLACE', 'INSERT' ) ) )\n\t\t\treturn false;\n\t\t$formats = $format = (array) $format;\n\t\t$fields = array_keys( $data );\n\t\t$formatted_fields = array();\n\t\tforeach ( $fields as $field ) {\n\t\t\tif ( !empty( $format ) )\n\t\t\t\t$form = ( $form = array_shift( $formats ) ) ? $form : $format[0];\n\t\t\telseif ( isset( $this->field_types[$field] ) )\n\t\t\t\t$form = $this->field_types[$field];\n\t\t\telse\n\t\t\t\t$form = '%s';\n\t\t\t$formatted_fields[] = $form; /* POSSIBLE ELIMINATION OF FORMATTED FIELDS */\n\t\t}\n\t\t$sql = \"{$type} INTO `$table` (`\" . implode( '`,`', $fields ) . \"`) VALUES ('\" . implode( \"','\", $formatted_fields ) . \"')\";\n\t\treturn $this->query( $this->prepare( $sql, $data ) );\n\t}", "title": "" }, { "docid": "59edb18d2a155e5a04ed2c40c984739f", "score": "0.5559956", "text": "public function replace($items);", "title": "" }, { "docid": "c1bb1093950ebd9d8f2e335ff0597de6", "score": "0.5558053", "text": "public function replace($table, $fv_pairs)\n {\n return $this->_modifySingle(SQL_REPLACE_GENERIC, $table, $fv_pairs);\n }", "title": "" }, { "docid": "53b077dbe91e45a6b1cd3a69230017db", "score": "0.5554078", "text": "public function remplacer()\n\t\t{\n\t\t\tld_localisation_recherche::executer\n\t\t\t('\n\t\t\t\treplace into localisation_recherche\n\t\t\t\tselect\n\t\t\t\t\tconcat(\\'REGION_\\',identifiant),\n\t\t\t\t\tnom\n\t\t\t\tfrom region\n\t\t\t');\n\t\t\t\n\t\t\treturn true;\n\t\t}", "title": "" }, { "docid": "feeaf6121e760690b3730120a12a955d", "score": "0.5516526", "text": "function icit_srdb_replacer( $connection, $search = '', $replace = '', $tables = array( ) ) {\n\tglobal $guid, $exclude_cols;\n\n\t$report = array( 'tables' => 0,\n\t\t\t\t\t 'rows' => 0,\n\t\t\t\t\t 'change' => 0,\n\t\t\t\t\t 'updates' => 0,\n\t\t\t\t\t 'start' => microtime( ),\n\t\t\t\t\t 'end' => microtime( ),\n\t\t\t\t\t 'errors' => array( ),\n\t\t\t\t\t );\n\n\tif ( is_array( $tables ) && ! empty( $tables ) ) {\n\t\tforeach( $tables as $table ) {\n\t\t\t$report[ 'tables' ]++;\n\n\t\t\t$columns = array( );\n\n\t\t\t// Get a list of columns in this table\n\t\t $fields = mysql_query( 'DESCRIBE ' . $table, $connection );\n\t\t\twhile( $column = mysql_fetch_array( $fields ) )\n\t\t\t\t$columns[ $column[ 'Field' ] ] = $column[ 'Key' ] == 'PRI' ? true : false;\n\n\t\t\t// Count the number of rows we have in the table if large we'll split into blocks, This is a mod from Simon Wheatley\n\t\t\t$row_count = mysql_query( 'SELECT COUNT(*) FROM ' . $table, $connection );\n\t\t\t$rows_result = mysql_fetch_array( $row_count );\n\t\t\t$row_count = $rows_result[ 0 ];\n\t\t\tif ( $row_count == 0 )\n\t\t\t\tcontinue;\n\n\t\t\t$page_size = 50000;\n\t\t\t$pages = ceil( $row_count / $page_size );\n\n\t\t\tfor( $page = 0; $page < $pages; $page++ ) {\n\n\t\t\t\t$current_row = 0;\n\t\t\t\t$start = $page * $page_size;\n\t\t\t\t$end = $start + $page_size;\n\t\t\t\t// Grab the content of the table\n\t\t\t\t$data = mysql_query( sprintf( 'SELECT * FROM %s LIMIT %d, %d', $table, $start, $end ), $connection );\n\n\t\t\t\tif ( ! $data )\n\t\t\t\t\t$report[ 'errors' ][] = mysql_error( );\n\n\t\t\t\twhile ( $row = mysql_fetch_array( $data ) ) {\n\n\t\t\t\t\t$report[ 'rows' ]++; // Increment the row counter\n\t\t\t\t\t$current_row++;\n\n\t\t\t\t\t$update_sql = array( );\n\t\t\t\t\t$where_sql = array( );\n\t\t\t\t\t$upd = false;\n\n\t\t\t\t\tforeach( $columns as $column => $primary_key ) {\n\t\t\t\t\t\tif ( $guid == 1 && in_array( $column, $exclude_cols ) )\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\t$edited_data = $data_to_fix = $row[ $column ];\n\n\t\t\t\t\t\t// Run a search replace on the data that'll respect the serialisation.\n\t\t\t\t\t\t$edited_data = recursive_unserialize_replace( $search, $replace, $data_to_fix );\n\n\t\t\t\t\t\t// Something was changed\n\t\t\t\t\t\tif ( $edited_data != $data_to_fix ) {\n\t\t\t\t\t\t\t$report[ 'change' ]++;\n\t\t\t\t\t\t\t$update_sql[] = $column . ' = \"' . mysql_real_escape_string( $edited_data ) . '\"';\n\t\t\t\t\t\t\t$upd = true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( $primary_key )\n\t\t\t\t\t\t\t$where_sql[] = $column . ' = \"' . mysql_real_escape_string( $data_to_fix ) . '\"';\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( $upd && ! empty( $where_sql ) ) {\n\t\t\t\t\t\t$sql = 'UPDATE ' . $table . ' SET ' . implode( ', ', $update_sql ) . ' WHERE ' . implode( ' AND ', array_filter( $where_sql ) );\n\t\t\t\t\t\t$result = mysql_query( $sql, $connection );\n\t\t\t\t\t\tif ( ! $result )\n\t\t\t\t\t\t\t$report[ 'errors' ][] = mysql_error( );\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t$report[ 'updates' ]++;\n\n\t\t\t\t\t} elseif ( $upd ) {\n\t\t\t\t\t\t$report[ 'errors' ][] = sprintf( '\"%s\" has no primary key, manual change needed on row %s.', $table, $current_row );\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}\n\t$report[ 'end' ] = microtime( );\n\n\treturn $report;\n}", "title": "" }, { "docid": "93f447fbbbee42a09f54f046e905f5ee", "score": "0.55077755", "text": "private function rewrite_insert_ignore(){\n\t\t$this->_query = str_ireplace('INSERT IGNORE', 'INSERT OR IGNORE ', $this->_query);\n\t}", "title": "" }, { "docid": "933c2c14a052ba69ab15643d4cbb5217", "score": "0.54994977", "text": "public function testReplace(): void {\n $ids = [];\n $model = $this->getModel('customer');\n\n if(!($this instanceof \\codename\\core\\tests\\model\\schematic\\mysqlTest)) {\n $this->markTestIncomplete('Upsert is working differently on this platform - not implemented yet!');\n }\n\n $model->save([\n 'customer_no' => 'R1000',\n 'customer_notes' => 'Replace me'\n ]);\n $ids[] = $firstId = $model->lastInsertId();\n\n $model->replace([\n 'customer_no' => 'R1000',\n 'customer_notes' => 'Replaced'\n ]);\n\n $dataset = $model->load($firstId);\n $this->assertEquals('Replaced', $dataset['customer_notes']);\n\n foreach($ids as $id) {\n $model->delete($id);\n }\n }", "title": "" }, { "docid": "f24fb5ceca28578953a56e793615a5ec", "score": "0.54756254", "text": "abstract public function replace($destination, $source, $write = true);", "title": "" }, { "docid": "7750a819fa96b0a237289eca04e62f15", "score": "0.5439747", "text": "public function insert_update($table, array $values);", "title": "" }, { "docid": "c7d98640221594ec055ff4ec26398580", "score": "0.54163855", "text": "function replace($user, $notrigger=0)\n {\n \tglobal $conf, $langs;\n\t\t$error=0;\n\n\t\t// Clean parameters\n \n\t\tif (isset($this->fk_user)) $this->fk_user=trim($this->fk_user);\n\t\tif (isset($this->fk_societe)) $this->fk_societe=trim($this->fk_societe);\n\t\tif (isset($this->fk_product)) $this->fk_product=trim($this->fk_product);\n\t\tif (isset($this->fk_contratdet)) $this->fk_contratdet=trim($this->fk_contratdet);\n\t\tif (isset($this->fk_commandedet)) $this->fk_commandedet=trim($this->fk_commandedet);\n\t\tif (isset($this->fk_custominfo)) $this->name=trim($this->fk_custominfo);\n\t\tif (isset($this->value)) $this->value=trim($this->value);\n\n \n\n\t\t// Check parameters\n\t\t// Put here code to add control on parameters values\n\n // Insert request\n\t\t$sql = \"REPLACE INTO \".MAIN_DB_PREFIX.\"custominfodet(\";\n\t\t\n\t\t$sql.= \"fk_user,\";\n\t\t$sql.= \"fk_societe,\";\n\t\t$sql.= \"fk_product,\";\n\t\t$sql.= \"fk_contratdet,\";\n\t\t$sql.= \"fk_commandedet,\";\n\t\t$sql.= \"fk_custominfo,\";\n\t\t$sql.= \"value\";\n\n\t\t\n $sql.= \") VALUES (\";\n \n\t\t$sql.= \" \".(! isset($this->fk_user)?'NULL':\"'\".$this->fk_user.\"'\").\",\";\n\t\t$sql.= \" \".(! isset($this->fk_societe)?'NULL':\"'\".$this->fk_societe.\"'\").\",\";\n\t\t$sql.= \" \".(! isset($this->fk_product)?'NULL':\"'\".$this->fk_product.\"'\").\",\";\n\t\t$sql.= \" \".(! isset($this->fk_contratdet)?'NULL':\"'\".$this->fk_contratdet.\"'\").\",\";\n\t\t$sql.= \" \".(! isset($this->fk_commandedet)?'NULL':\"'\".$this->fk_commandedet.\"'\").\",\";\n\t\t$sql.= \" \".(! isset($this->fk_custominfo)?'NULL':\"'\".$this->fk_custominfo.\"'\").\",\";\n\t\t$sql.= \" \".(! isset($this->value)?'NULL':\"'\".$this->db->escape($this->value).\"'\").\"\";\n\n \n\t\t$sql.= \")\";\n\n\t\t$this->db->begin();\n\n\t \tdol_syslog(get_class($this).\"::create sql=\".$sql, LOG_DEBUG);\n $resql=$this->db->query($sql);\n \tif (! $resql) { $error++; $this->errors[]=\"Error \".$this->db->lasterror(); }\n\n\t\tif (! $error)\n {\n $this->id = $this->db->last_insert_id(MAIN_DB_PREFIX.\"custominfodet\");\n\n\t\t\tif (! $notrigger)\n\t\t\t{\n\t // Uncomment this and change MYOBJECT to your own tag if you\n\t // want this action call a trigger.\n\n\t //// Call triggers\n\t //include_once(DOL_DOCUMENT_ROOT . \"/core/class/interfaces.class.php\");\n\t //$interface=new Interfaces($this->db);\n\t //$result=$interface->run_triggers('MYOBJECT_CREATE',$this,$user,$langs,$conf);\n\t //if ($result < 0) { $error++; $this->errors=$interface->errors; }\n\t //// End call triggers\n\t\t\t}\n }\n\n // Commit or rollback\n if ($error)\n\t\t{\n\t\t\tforeach($this->errors as $errmsg)\n\t\t\t{\n\t dol_syslog(get_class($this).\"::create \".$errmsg, LOG_ERR);\n\t $this->error.=($this->error?', '.$errmsg:$errmsg);\n\t\t\t}\n\t\t\t$this->db->rollback();\n\t\t\treturn -1*$error;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->db->commit();\n return $this->id;\n\t\t}\n }", "title": "" }, { "docid": "3338b7f75f981845c34c2fa59ccc008f", "score": "0.54117805", "text": "public static function replace( $data) {\n\t\t$db = self::db ( 'test' );\n\t\t$data['create_time']=time();\n\t\t$data['update_time']=time();\n\n\t\t$db->insert ( 'visual_map_point_his', $data );\n\n\t\treturn $db->replace( 'visual_map_point', $data );\n\t}", "title": "" }, { "docid": "e405e044c6a4e7f157d9f57f4b49e59d", "score": "0.5410798", "text": "private function searchReplace($table, $page, $args)\n {\n\n // Skip certain tables for compatibility purposes\n if ($this->thirdParty->isSearchReplaceExcluded($table)) {\n $this->log(\"DB Search & Replace: Skip {$table}\", \\WPStaging\\Core\\Utils\\Logger::TYPE_INFO);\n return true;\n }\n\n // Load up the default settings for this chunk.\n $table = esc_sql($table);\n\n $helper = new Helper();\n // Search URL example.com/staging and root path to staging site /var/www/htdocs/staging\n $args['search_for'] = [\n '\\/\\/' . str_replace('/', '\\/', $this->get_url_without_scheme($this->options->url)), // \\/\\/host.com or \\/\\/host.com\\/subfolder\n '//' . $this->get_url_without_scheme($this->options->url), // //host.com or //host.com/subfolder\n rtrim($this->options->path, DIRECTORY_SEPARATOR),\n str_replace('/', '%2F', $this->get_url_without_scheme($this->options->url))\n ];\n\n $args['replace_with'] = [\n '\\/\\/' . str_replace('/', '\\/', $this->getDestinationHost()), // \\/\\/host.com or \\/\\/host.com\\/subfolder\n '//' . $this->getDestinationHost(), // //host.com or //host.com/subfolder\n rtrim(ABSPATH, '/'),\n $helper->getHomeUrlWithoutScheme()\n ];\n\n\n $args['replace_guids'] = 'off';\n $args['dry_run'] = 'off';\n $args['case_insensitive'] = false;\n $args['skip_transients'] = 'off';\n\n // Allow filtering of search & replace parameters\n $args = apply_filters('wpstg_push_searchreplace_params', $args);\n\n\n $this->log(\"DB Search & Replace: Table {$table}\");\n\n // Get a list of columns in this table.\n list( $primary_key, $columns ) = $this->get_columns($table);\n\n // Bail out early if there isn't a primary key.\n // We commented this to search & replace through tables which have no primary keys like wp_revslider_slides\n // @todo test this carefully. If it causes (performance) issues we need to activate it again!\n // @since 2.4.4\n // if( null === $primary_key ) {\n // return false;\n // }\n\n $current_row = 0;\n $start = $this->options->job->start;\n\n //Make sure value is never smaller than 1 or greater than 20000\n $end = $this->settings->querySRLimit;\n //$end = $this->settings->querySRLimit == '0' || empty( $this->settings->querySRLimit ) ? 1 : $this->settings->querySRLimit > 20000 ? 20000 : $this->settings->querySRLimit;\n // Grab the content of the current table.\n $data = $this->db->get_results(\"SELECT * FROM $table LIMIT $start, $end\", ARRAY_A);\n\n // Filter certain rows (of other plugins)\n $filter = [\n 'Admin_custome_login_Slidshow',\n 'Admin_custome_login_Social',\n 'Admin_custome_login_logo',\n 'Admin_custome_login_text',\n 'Admin_custome_login_login',\n 'Admin_custome_login_top',\n 'Admin_custome_login_dashboard',\n 'Admin_custome_login_Version',\n 'upload_path',\n 'wpstg_existing_clones_beta',\n 'wpstg_existing_clones',\n 'wpstg_settings',\n 'wpstg_license_status',\n 'siteurl',\n 'home'\n ];\n\n $filter = apply_filters('wpstg_clone_searchreplace_excl_rows', $filter);\n\n // Go through the table rows\n foreach ($data as $row) {\n $current_row++;\n $update_sql = [];\n $where_sql = [];\n $upd = false;\n\n // Skip rows\n if (isset($row['option_name']) && in_array($row['option_name'], $filter)) {\n continue;\n }\n\n // Skip transients (There can be thousands of them. Save memory and increase performance)\n if (\n isset($row['option_name']) && $args['skip_transients'] === 'on' && strpos($row['option_name'], '_transient')\n !== false\n ) {\n continue;\n }\n // Skip rows with more than 5MB to save memory. These rows contain log data or something similiar but never site relevant data\n if (isset($row['option_value']) && strlen($row['option_value']) >= 5000000) {\n continue;\n }\n\n // Go through the columns\n foreach ($columns as $column) {\n $dataRow = $row[$column];\n\n // Skip column larger than 5MB\n $size = strlen($dataRow);\n if ($size >= 5000000) {\n continue;\n }\n\n // Skip primary key column\n if ($column == $primary_key) {\n $where_sql[] = $column . ' = \"' . $this->mysql_escape_mimic($dataRow) . '\"';\n continue;\n }\n\n // Skip GUIDs by default.\n if ($args['replace_guids'] !== 'on' && $column == 'guid') {\n continue;\n }\n\n\n $i = 0;\n foreach ($args['search_for'] as $replace) {\n $dataRow = $this->recursive_unserialize_replace($args['search_for'][$i], $args['replace_with'][$i], $dataRow, false, $args['case_insensitive']);\n $i++;\n }\n unset($replace, $i);\n\n // Something was changed\n if ($row[$column] != $dataRow) {\n $update_sql[] = $column . ' = \"' . $this->mysql_escape_mimic($dataRow) . '\"';\n $upd = true;\n }\n }\n\n // Determine what to do with updates.\n if ($args['dry_run'] === 'on') {\n // Don't do anything if a dry run\n } elseif ($upd && !empty($where_sql)) {\n // If there are changes to make, run the query.\n $sql = 'UPDATE ' . $table . ' SET ' . implode(', ', $update_sql) . ' WHERE ' . implode(' AND ', array_filter($where_sql));\n $result = $this->db->query($sql);\n\n if (!$result) {\n $this->log(\"Error updating row {$current_row}\", \\WPStaging\\Core\\Utils\\Logger::TYPE_ERROR);\n }\n }\n } // end row loop\n unset($row);\n unset($update_sql);\n unset($where_sql);\n unset($sql);\n unset($current_row);\n\n // DB Flush\n $this->db->flush();\n return true;\n }", "title": "" }, { "docid": "557adbe0549f6d5607330adc0ac1aa3e", "score": "0.5385332", "text": "final public function replace($from,$to,$where=null):?int\n {\n $db = $this->db();\n $table = $this->table();\n $set = [];\n $set[] = [$this,'replace',$from,$to];\n\n if(empty($where))\n $where = $table->whereAll();\n\n $return = $db->update($table,$set,$where);\n\n return $return;\n }", "title": "" }, { "docid": "7c71d75659c810b31fd66c64c2b11a44", "score": "0.537092", "text": "public function update_table($table_name, $record) {\n\t\t$dbColumnString = '(';\n\t\t$dbValueString = '(';\n\t\t$field_count = 0;\n\t\t\n\t\t// Loop getting properties (fields) of record,\n\t\t// appending field names and values to respective\n\t\t// strings required for DB update.\n\t\tforeach($record as $field_name=>$field_value) {\n\t\t\tif ($field_count != 0) {\n\t\t\t\t$dbColumnString .= ',';\n\t\t\t\t$dbValueString .= ',';\n\t\t\t}\n\t\t\t$dbColumnString .= '`' . $field_name . '`';\n\t\t\tif (strlen($field_value->__toString()) == 0) {\n\t\t\t\t$safe_value = 'NULL';\n\t\t\t} else {\n\t\t\t\t$escaped_value = $this->mysqli->real_escape_string($field_value);\n\t\t\t\t$safe_value = \"'$escaped_value'\";\n\t\t\t}\n\t\t\t$dbValueString .= $safe_value;\n\t\t\t$field_count++;\n\t\t}\n\t\t\n\t\t// Add closing paren for each\n\t\t$dbColumnString .= ')';\n\t\t$dbValueString .= ')';\n\t\t\n\t\t$this->update_query = \"REPLACE INTO `$table_name` $dbColumnString VALUES $dbValueString;\";\n\t\t//println('---------');\n\t\t//println('---------');\n\t\t//println('DB QUERY=>' . $this->update_query);\n\t\t\n\t\t// Update DB and handle any errors\n\t\t$this->update_result = $this->mysqli->query($this->update_query);\n\t\tif (!$this->update_result) {\n\t\t\t$errno = $this->mysqli->errno;\n\t\t\t$errmsg = $this->mysqli->error;\n\t\t\t$dberrmsg = \"DB update error! Table:$table_name, Code:$errno, Detail:$errmsg\";\n\t\t\tthrow new Exception($dberrmsg);\n\t\t}\n\t\t\n\t\t\n\t\treturn $this->update_result;\n\t}", "title": "" }, { "docid": "f26705ac1dc0f3b9e9f18f212955af33", "score": "0.53698164", "text": "function replace_emailtrack($input_array){\t\t\t\t\t\t\t\t\n\t\tforeach($input_array as $key => $val) $append[] = $key . \" = \" . $val;\n $this->db->query(\"REPLACE INTO red_email_track SET \" . implode(',',$append));\n\t\treturn $this->db->insert_id();\n\t}", "title": "" }, { "docid": "b0333bbcd2b5e38d1c7ea96ccec243b8", "score": "0.53636837", "text": "public function replace( $data, $tags = false, $shouldClearData = true )\n {\n if ( $shouldClearData ) {\n \n // get the database key just in case it gets cleared by the\n // save() call in clearData\n $databaseKey = $this->getDatabaseKey();\n \n // clear the data which will also save any unsaved _data\n $this->clearData();\n\n // reset the database key\n $this->setDatabaseKey( $databaseKey );\n }\n \n // clear indexes in case the shouldClearData wasn't true\n // when updating we always want indexes to be cleared\n $this->_indexes = array();\n\n // create the sql statement\n $columns = array();\n foreach( $data as $column => $value ) {\n $columns[] = \"`$column`\";\n }\n\n $sql = ' replace into ' . $this->_database . '.' . $this->_table;\n $sql .= '(' . join( ',', $columns ) . ')';\n $sql .= ' VALUES (';\n \n $values = array();\n foreach( $data as $column => $value ) {\n\n if ( $value === null ) {\n $values[] = 'NULL';\n }\n else {\n if ( isset( $this->_dataTypes[$column] ) ) {\n if ( $this->_dataTypes[$column] == 'integer' ) {\n $values[] = $value;\n }\n else {\n $value = $this->quote( $value );\n $values[] = \"'$value'\";\n }\n }\n else {\n if ( is_numeric( $value ) ) {\n $values[] = $value;\n }\n else {\n $value = $this->quote( $value );\n $values[] = \"'$value'\";\n }\n }\n }\n\n }\n\n $sql .= join( ',', $values ) . ')';\n \n $retVal = $this->getDbAdapter()->replace( $sql );\n \n if ( $tags ) {\n $this->clearCacheIdsByTags( $tags );\n }\n \n return $retVal;\n }", "title": "" }, { "docid": "5a50e487865feb656a3ad0d35e349a63", "score": "0.5320053", "text": "public function replace($set = null) {\n $this->compileSet()->resetWrite();\n $ret = $this->rwdb->replace($this->tableName, $set);\n $this->lastQuery = $this->rwdb->last_query();\n\n return $ret;\n }", "title": "" }, { "docid": "e6670656780040b71d012934e1b0b9e0", "score": "0.5290726", "text": "function helper_insertInto($table, $columns, $values) {\n\n $ret = \"INSERT INTO \" . $table;\n // if specified columns\n if ($columns) {\n $formatted_columns = \"(\";\n foreach ($columns as $col) {\n $formatted_columns .= $col . \", \";\n }\n\n // remove last comma\n $formatted_columns = substr($formatted_columns, 0, -2);\n $formatted_columns .= \")\";\n\n $ret .= $formatted_columns;\n }\n\n if (!$values) {\n //echo \"Error: no values given\"; //TODO pick one\n return \"Error: no values given\";\n }\n \n $formatted_values = \"VALUES(\";\n foreach ($values as $val) {\n $formatted_values .= $val . \", \";\n }\n $formatted_values = substr($formatted_values, 0, -2);\n $formatted_values .= \")\";\n\n $ret .= \" \" . $formatted_values;\n $ret .= \";\";\n\n return $ret;\n}", "title": "" }, { "docid": "46ceeaff5cee21c08bc0cd3c2e14c6a8", "score": "0.5287109", "text": "public function insert_ignore($table, array $values);", "title": "" }, { "docid": "7d03cce1ab2bee623bf55888d36a8ac0", "score": "0.52869153", "text": "abstract public function replace($key, $value, $options = []);", "title": "" }, { "docid": "a2b9cc77c8a0f255028bca2a205756a6", "score": "0.52840495", "text": "function replace($string = null, $search = null, $replace = null){\n if ($string != null && $search != null) {\n $string = str_replace($search, $replace, $string);\n }\n return $string;\n }", "title": "" }, { "docid": "8f3c8573543d3e573b41699e98c667b5", "score": "0.5282431", "text": "public function replace($collection_field, $expression_or_literal){}", "title": "" }, { "docid": "e9e7da081a33870b01f40d378e99d4ef", "score": "0.5256096", "text": "private function exec_replace($custom_val, $row_data) {\n $replace_string = '';\n\n if (isset($custom_val['replacement']) && is_array($custom_val['replacement'])) {\n //Added this line because when the replacement has over 10 elements replaced the variable \"$1\" first by the \"$10\"\n $custom_val['replacement'] = array_reverse($custom_val['replacement'], true);\n foreach ($custom_val['replacement'] as $key => $val) {\n $sval = preg_replace(\"/(?<!\\w)([\\'\\\"])(.*)\\\\1(?!\\w)/i\", '$2', trim($val));\n\n if (preg_match('/(\\w+::\\w+|\\w+)\\((.*)\\)/i', $val, $matches) && is_callable($matches[1])) {\n $func = $matches[1];\n $args = preg_split(\"/[\\s,]*\\\\\\\"([^\\\\\\\"]+)\\\\\\\"[\\s,]*|\" . \"[\\s,]*'([^']+)'[\\s,]*|\" . \"[,]+/\", $matches[2], 0, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);\n\n foreach ($args as $args_key => $args_val) {\n $args_val = preg_replace(\"/(?<!\\w)([\\'\\\"])(.*)\\\\1(?!\\w)/i\", '$2', trim($args_val));\n $args[$args_key] = (in_array($args_val, $this->columns)) ? ($row_data[($this->check_cType()) ? $args_val : array_search($args_val, $this->columns)]) : $args_val;\n }\n\n $replace_string = call_user_func_array($func, $args);\n } elseif (in_array($sval, $this->columns))\n $replace_string = $row_data[($this->check_cType()) ? $sval : array_search($sval, $this->columns)];\n else\n $replace_string = $sval;\n\n $custom_val['content'] = str_ireplace('$' . ($key + 1), $replace_string, $custom_val['content']);\n }\n }\n\n return $custom_val['content'];\n }", "title": "" }, { "docid": "d8307d25e8e9dcb7d2b3175a81d6ae15", "score": "0.5243606", "text": "function process_row($table, $replacer, $row, $structure_info, $fp, $state_data)\n {\n $form_data = $this->form_data->getFormData();\n\n global $wpdb;\n\n $skip_row = false;\n $updates_pending = false;\n $update_sql = array();\n $where_sql = array();\n $values = array();\n $query = '';\n\n if (!apply_filters('wpmdb_table_row', $row, $table, $state_data)) {\n $skip_row = true;\n }\n\n if (!$skip_row) {\n $replacer->set_row($row);\n\n foreach ($row as $key => $value) {\n $data_to_fix = $value;\n\n if ('find_replace' === $state_data['stage'] && in_array($key, array_keys($this->primary_keys))) {\n $where_sql[] = $this->table_helper->backquote($key) . ' = \"' . $this->mysql_escape_mimic($data_to_fix) . '\"';\n continue;\n }\n\n $replacer->set_column($key);\n\n if (isset($structure_info['ints'][strtolower($key)]) && $structure_info['ints'][strtolower($key)]) {\n // make sure there are no blank spots in the insert syntax,\n // yet try to avoid quotation marks around integers\n $value = (null === $value || '' === $value) ? $structure_info['defs'][strtolower($key)] : $value;\n $values[] = ('' === $value) ? \"''\" : $value;\n continue;\n }\n\n $test_bit_key = strtolower($key) . '__bit';\n // Correct null values IF we're not working with a BIT type field, they're handled separately below\n if (null === $value && !property_exists($row, $test_bit_key)) {\n $values[] = 'NULL';\n continue;\n }\n\n // If we have binary data, substitute in hex encoded version and remove hex encoded version from row.\n $hex_key = strtolower($key) . '__hex';\n if (isset($structure_info['bins'][strtolower($key)]) && $structure_info['bins'][strtolower($key)] && isset($row->$hex_key)) {\n $value = \"UNHEX('\" . $row->$hex_key . \"')\";\n $values[] = $value;\n unset($row->$hex_key);\n continue;\n }\n\n // If we have bit data, substitute in properly bit encoded version.\n $bit_key = strtolower($key) . '__bit';\n if (isset($structure_info['bits'][strtolower($key)]) && $structure_info['bits'][strtolower($key)] && (isset($row->$bit_key) || null === $row->$bit_key)) {\n $value = null === $row->$bit_key ? 'NULL' : \"b'\" . $row->$bit_key . \"'\";\n $values[] = $value;\n unset($row->$bit_key);\n continue;\n }\n\n if (is_multisite() && in_array($table, array($wpdb->site, $wpdb->blogs, $this->props->temp_prefix . $wpdb->blogs, $this->props->temp_prefix . $wpdb->site))) {\n if ('backup' !== $state_data['stage']) {\n if ('path' == $key) {\n $old_path_current_site = $this->util->get_path_current_site();\n $new_path_current_site = '';\n\n if (!empty($state_data['path_current_site'])) {\n $new_path_current_site = $state_data['path_current_site'];\n } elseif ('find_replace' === $state_data['stage']) {\n $new_path_current_site = $this->util->get_path_current_site();\n } elseif (!empty($form_data['replace_new'][1])) {\n $new_path_current_site = $this->util->get_path_from_url($form_data['replace_new'][1]);\n }\n\n $new_path_current_site = apply_filters('wpmdb_new_path_current_site', $new_path_current_site);\n\n if (!empty($new_path_current_site) && $old_path_current_site != $new_path_current_site) {\n $pos = strpos($value, $old_path_current_site);\n $value = substr_replace($value, $new_path_current_site, $pos, strlen($old_path_current_site));\n }\n }\n\n if ('domain' == $key) { // wp_blogs and wp_sites tables\n if (!empty($state_data['domain_current_site'])) {\n $main_domain_replace = $state_data['domain_current_site'];\n } elseif ('find_replace' === $state_data['stage'] || in_array($state_data['intent'], ['savefile', 'push'])) {\n $main_domain_replace = $this->multisite->get_domain_replace() ? $this->multisite->get_domain_replace() : $this->multisite->get_domain_current_site();\n } elseif (!empty($form_data['replace_new'][1])) {\n $url = Util::parse_url($form_data['replace_new'][1]);\n $main_domain_replace = $url['host'];\n }\n\n $domain_replaces = array();\n $main_domain_find = $this->multisite->get_domain_current_site();\n\n if ('find_replace' === $state_data['stage']) {\n // Check if the domain field in the DB is being searched for in the find & replace\n $old_domain_find = sprintf('/^(\\/\\/|http:\\/\\/|https:\\/\\/|)%s/', $data_to_fix);\n\n if (preg_grep($old_domain_find, $this->dynamic_props->find_replace_pairs['replace_old'])) {\n $main_domain_find = $data_to_fix;\n }\n }\n\n $main_domain_find = sprintf('/%s/', preg_quote($main_domain_find, '/'));\n if (isset($main_domain_replace)) {\n $domain_replaces[$main_domain_find] = $main_domain_replace;\n }\n\n $domain_replaces = apply_filters('wpmdb_domain_replaces', $domain_replaces);\n\n $value = preg_replace(array_keys($domain_replaces), array_values($domain_replaces), $value);\n }\n }\n }\n\n if ('guid' != $key || (false === empty($form_data['replace_guids']) && $this->table_helper->table_is('posts', $table))) {\n if ($state_data['stage'] != 'backup') {\n $value = $replacer->recursive_unserialize_replace($value);\n }\n }\n\n if ('find_replace' === $state_data['stage']) {\n $value = $this->mysql_escape_mimic($value);\n $data_to_fix = $this->mysql_escape_mimic($data_to_fix);\n\n if ($value !== $data_to_fix) {\n $update_sql[] = $this->table_helper->backquote($key) . ' = \"' . $value . '\"';\n $updates_pending = true;\n }\n } else {\n // \\x08\\\\x09, not required\n $multibyte_search = array(\"\\x00\", \"\\x0a\", \"\\x0d\", \"\\x1a\");\n $multibyte_replace = array('\\0', '\\n', '\\r', '\\Z');\n\n $value = $this->table_helper->sql_addslashes($value);\n $value = str_replace($multibyte_search, $multibyte_replace, $value);\n }\n\n $values[] = \"'\" . $value . \"'\";\n }\n\n // Determine what to do with updates.\n if ('find_replace' === $state_data['stage']) {\n if ($updates_pending && !empty($where_sql)) {\n $table_to_update = $table;\n\n if ('import' !== $state_data['intent']) {\n $table_to_update = $this->table_helper->backquote($this->props->temp_prefix . $table);\n }\n\n $query .= 'UPDATE ' . $table_to_update . ' SET ' . implode(', ', $update_sql) . ' WHERE ' . implode(' AND ', array_filter($where_sql)) . \";\\n\";\n }\n } else {\n $query .= '(' . implode(', ', $values) . '),' . \"\\n\";\n }\n }\n\n $chunk_size = $state_data['intent'] === 'pull' ? $this->dynamic_props->maximum_chunk_size : $this->util->get_bottleneck();\n\n\n if ((strlen($this->current_chunk) + strlen($query) + strlen($this->query_buffer) + 30) > $chunk_size) {\n if ($this->query_buffer == $this->query_template) {\n $this->query_buffer .= $query;\n\n ++$this->row_tracker;\n\n if (!empty($this->primary_keys)) {\n foreach ($this->primary_keys as $primary_key => $value) {\n $this->primary_keys[$primary_key] = $row->$primary_key;\n }\n }\n }\n\n $this->stow_query_buffer($fp);\n\n //time this method\n return $this->transfer_chunk($fp, $state_data);\n }\n\n if (($this->query_size + strlen($query)) > $this->max_insert_string_len) {\n $this->stow_query_buffer($fp);\n }\n\n $this->query_buffer .= $query;\n $this->query_size += strlen($query);\n\n ++$this->row_tracker;\n\n if (!empty($this->primary_keys)) {\n foreach ($this->primary_keys as $primary_key => $value) {\n $this->primary_keys[$primary_key] = $row->$primary_key;\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "f9ce5cebfe091299701d7b431c039ebe", "score": "0.52334803", "text": "public function prepareRowForReplace(array $rowData)\n {\n return $this->prepareRowForUpdate($rowData);\n }", "title": "" }, { "docid": "4edc9334f475756fbbb5efba25bc63d7", "score": "0.52314156", "text": "public function replace($table, $columns, $where = null)\n {\n $columns = Spry::runFilter('dbColumns', $columns, (object) ['method' => 'replace', 'table' => $table, 'meta' => $this->dbMeta]);\n $where = Spry::runFilter('dbWhere', $where, (object) ['method' => 'replace', 'table' => $table, 'meta' => $this->dbMeta]);\n\n $replaceObj = Spry::runFilter('dbReplace', (object) ['table' => $table, 'columns' => $columns, 'where' => $where, 'meta' => $this->dbMeta]);\n\n $replace = parent::replace($replaceObj->table, $replaceObj->columns, $replaceObj->where)->rowCount();\n\n return ($replace || ($replace === 0 && !$this->hasError())) ? true : null;\n }", "title": "" }, { "docid": "1dd7533a730afbf6d2f9714d031b3c09", "score": "0.52299875", "text": "function _update($table, $values, $where)\r\n\t{\r\n\t\tforeach($values as $key => $val)\r\n\t\t{\r\n\t\t\t$valstr[] = $key.\" = \".$val;\r\n\t\t}\r\n\r\n\t\treturn \"UPDATE \".$this->_escape_table($table).\" SET \".implode(', ', $valstr).\" WHERE \".implode(\" \", $where);\r\n\t}", "title": "" }, { "docid": "08e0d8843fd847cdf652fe3252091d3e", "score": "0.5224709", "text": "private function exec_replace($custom_val, $row_data)\n\t{\n\t\t$replace_string = '';\n\n\t\tif(isset($custom_val['replacement']) && is_array($custom_val['replacement']))\n\t\t{\n\t\t\tforeach($custom_val['replacement'] as $key => $val)\n\t\t\t{\n\t\t\t\t\n\t\t\t\t$sval = preg_replace(\"/(?<!\\w)([\\'\\\"])(.*)\\\\1(?!\\w)/i\", '$2', trim($val));\n\n\n\t\t\t\tif(preg_match('/(.*)\\((.*)\\)/i', $val, $matches) && function_exists($matches[1]))\n\t\t\t\t{\n\t\t\t\t\t$func = $matches[1];\n\t\t\t\t\t$args = preg_split(\"/[\\s,]*\\\\\\\"([^\\\\\\\"]+)\\\\\\\"[\\s,]*|\" . \"[\\s,]*'([^']+)'[\\s,]*|\" . \"[,]+/\", $matches[2], 0, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);\n\n\t\t\t\t\tforeach($args as $args_key => $args_val)\n\t\t\t\t\t{\n\t\t\t\t\t\t$args_val = preg_replace(\"/(?<!\\w)([\\'\\\"])(.*)\\\\1(?!\\w)/i\", '$2', trim($args_val));\n\t\t\t\t\t\t$args[$args_key] = (in_array($args_val, $this->columns))? ($row_data[($this->check_mDataprop())? $args_val : array_search($args_val, $this->columns)]) : $args_val;\n\t\t\t\t\t}\n\n\t\t\t\t\t$replace_string = call_user_func_array($func, $args);\n\t\t\t\t}\n\t\t\t\telseif(in_array($sval, $this->columns))\n\t\t\t\t\t$replace_string = $row_data[($this->check_mDataprop())? $sval : array_search($sval, $this->columns)];\n\t\t\t\telse\n\t\t\t\t\t$replace_string = $sval;\n\n\t\t\t\t$custom_val['content'] = str_ireplace('$' . ($key + 1), $replace_string, $custom_val['content']);\n\t\t\t}\n\t\t}\n\n\t\treturn $custom_val['content'];\n\t}", "title": "" }, { "docid": "97b8eb9ff55e3cad615a7067dab217b1", "score": "0.5223761", "text": "function update($name, $values, $where)\n\t{\n\t\t$func = '_update_' . $name;\n\t\tif(method_exists($this,$func))\n\t\t{\n\t\t\t// There is an overide function\n\t\t\treturn call_user_func_array(array($this,$func), array($values,$where));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// No overside function, procede with general insert\n\t\t\t$this->db->where($where);\n\t\t\treturn $this->db->update($this->_TABLES[$name],$values);\n\t\t}\n\t}", "title": "" }, { "docid": "260f7810c0a7329287d6984979b36981", "score": "0.5216859", "text": "function _drush_sar_replace_js_injector($options) {\n if (!db_table_exists('js_injector_rule')) {\n drush_log(\"The 'js_injector_rule' table does not exist. Took no action.\", \"warning\");\n return;\n }\n // views_display.\n $query = db_update(\"js_injector_rule\")\n ->expression(\"js\", \"REPLACE(js, :search, :replace)\", array(':search' => $options['search'], ':replace' => $options['replace']));\n if ($options['regex']) {\n $query->condition(\"js\", $options['regex'], \"REGEXP\");\n }\n $result_data = $query->execute();\n\n drush_log(\"Replaced \\\"\" . $options['search'] . \"\\\" with \\\"\" . $options['replace'] . \"\\\" in all JS Injector rules.\", \"ok\");\n}", "title": "" }, { "docid": "0eda4ed50e98f4157b7eb7a19721c520", "score": "0.5208019", "text": "protected static function executeSqlTemplate($path, $table=null, $replacements=[]){\n\t\t$sql = static::getSqlFromSqlTemplate($path, $table, $replacements);\n\t\treturn static::$db_connection->execute($sql);\n\t}", "title": "" }, { "docid": "81d03b91327301871531fcc1a23b45e2", "score": "0.5186319", "text": "abstract public function replaceReferences($replaced, $replacement);", "title": "" }, { "docid": "407bc065712d890fb91a11ea59e6261f", "score": "0.5182748", "text": "public function update($table, array $values, array $where);", "title": "" }, { "docid": "f8b16c30c61e0ef87ed2c31a07cf4263", "score": "0.5176553", "text": "public function replace(array $items);", "title": "" }, { "docid": "0276f0a80b5acc86d9f0bdfc7b24df73", "score": "0.513031", "text": "function dbEdit($table, $update, $where){\n\t$update = escapeArray($update);\n\t$where = escapeArray($where);\n\t$format = \"UPDATE %s SET %s WHERE %s\";\n\t\n\t$table = mysql_real_escape_string($table);\n\t$set = updateFormatArray($update);\n\t$where = updateFormatArray($where, 'WHERE');\n\t\n\t$sql = sprintf($format, $table, $set, $where);\n\tmysql_query($sql);\n}", "title": "" }, { "docid": "7b29b72e4028a44199c0027af38ffe52", "score": "0.51203537", "text": "public function replace(array $data)\n\t{\n\t\tif ($this->checkUnique($data['treatmentId'], $data['label']))\n\t\t{\n\t\t\treturn parent::insert($data);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$where = array ();\n\t\t\t$where[] = $this->getAdapter()->quoteInto('treatmentId = ?', $data['treatmentId']);\n\t\t\t$where[] = $this->getAdapter()->quoteInto('label = ?', $data['label']);\n\t\t\t$this->delete($where);\n\n\t\t\treturn parent::insert($data);\n\t\t}\n\t}", "title": "" }, { "docid": "556e9c8c6bc2a5f29cff0d60dfecef16", "score": "0.5109075", "text": "function _do_search_and_replace($search, $replace, $where)\n\t{\n\t\t// escape search and replace for use in queries\n\t\t$search_escaped = $this->db->escape_str($search);\n\t\t$replace_escaped = $this->db->escape_str($replace);\n\t\t$where = $this->db->escape_str($where);\n\n\t\tif ($where == 'title')\n\t\t{\n\t\t\t$sql = \"UPDATE `exp_channel_titles` SET `{$where}` = REPLACE(`{$where}`, '{$search_escaped}', '{$replace_escaped}')\";\n\t\t}\n\t\telseif ($where == 'preferences' OR strncmp($where, 'site_preferences_', 17) == 0)\n\t\t{\n\t\t\t$rows = 0;\n\n\t\t\tif ($where == 'preferences')\n\t\t\t{\n\t\t\t\t$site_id = $this->config->item('site_id');\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$site_id = substr($where, strlen('site_preferences_'));\n\t\t\t}\n\n\t\t\t/** -------------------------------------------\n\t\t\t/** Site Preferences in Certain Tables/Fields\n\t\t\t/** -------------------------------------------*/\n\n\t\t\t$preferences = array(\n\t\t\t\t'exp_channels' => array(\n\t\t\t\t\t'channel_title',\n\t\t\t\t\t'channel_url',\n\t\t\t\t\t'comment_url',\n\t\t\t\t\t'channel_description',\n\t\t\t\t\t'comment_notify_emails',\n\t\t\t\t\t'channel_notify_emails',\n\t\t\t\t\t'search_results_url',\n\t\t\t\t\t'rss_url'\n\t\t\t\t),\n\t\t\t\t'exp_upload_prefs' => array(\n\t\t\t\t\t'server_path',\n\t\t\t\t\t'properties',\n\t\t\t\t\t'file_properties',\n\t\t\t\t\t'url'\n\t\t\t\t),\n\t\t\t\t'exp_member_groups' => array(\n\t\t\t\t\t'group_title',\n\t\t\t\t\t'group_description',\n\t\t\t\t\t'mbr_delete_notify_emails'\n\t\t\t\t),\n\t\t\t\t'exp_global_variables'\t=> array('variable_data'),\n\t\t\t\t'exp_categories'\t\t=> array('cat_image'),\n\t\t\t\t'exp_forums'\t\t\t=> array(\n\t\t\t\t\t'forum_name',\n\t\t\t\t\t'forum_notify_emails',\n\t\t\t\t\t'forum_notify_emails_topics'),\n\t\t\t\t'exp_forum_boards'\t\t=> array(\n\t\t\t\t\t'board_label',\n\t\t\t\t\t'board_forum_url',\n\t\t\t\t\t'board_upload_path',\n\t\t\t\t\t'board_notify_emails',\n\t\t\t\t\t'board_notify_emails_topics'\n\t\t\t\t)\n\t\t\t);\n\n\t\t\tforeach($preferences as $table => $fields)\n\t\t\t{\n\t\t\t\tif ( ! $this->db->table_exists($table) OR $table == 'exp_forums')\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$site_field = ($table == 'exp_forum_boards') ? 'board_site_id' : 'site_id';\n\n\t\t\t\tforeach($fields as $field)\n\t\t\t\t{\n\t\t\t\t\t$this->db->query(\"UPDATE `{$table}`\n\t\t\t\t\t\t\t\tSET `{$field}` = REPLACE(`{$field}`, '{$search_escaped}', '{$replace_escaped}')\n\t\t\t\t\t\t\t\tWHERE `{$site_field}` = '\".$this->db->escape_str($site_id).\"'\");\n\n\t\t\t\t\t$rows += $this->db->affected_rows();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->db->table_exists('exp_forum_boards'))\n\t\t\t{\n\t\t\t\t$this->db->select('board_id');\n\t\t\t\t$this->db->where('board_site_id', $site_id);\n\t\t\t\t$query = $this->db->get('forum_boards');\n\n\t\t\t\tif ($query->num_rows() > 0)\n\t\t\t\t{\n\t\t\t\t\tforeach($query->result_array() as $row)\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach($preferences['exp_forums'] as $field)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->db->query(\"UPDATE `exp_forums`\n\t\t\t\t\t\t\t\t\t\tSET `{$field}` = REPLACE(`{$field}`, '{$search_escaped}', '{$replace_escaped}')\n\t\t\t\t\t\t\t\t\t\tWHERE `board_id` = '\".$this->db->escape_str($row['board_id']).\"'\");\n\n\t\t\t\t\t\t\t$rows += $this->db->affected_rows();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/** -------------------------------------------\n\t\t\t/** Site Preferences in Database\n\t\t\t/** -------------------------------------------*/\n\n\t\t\t$this->config->update_site_prefs(array(), $site_id, $search, $replace);\n\n\t\t\t$rows += 5;\n\t\t}\n\t\telseif (strncmp($where, 'template_', 9) == 0)\n\t\t{\n\t\t\t// all templates or a specific group?\n\t\t\tif ($where == 'template_data')\n\t\t\t{\n\t\t\t\t$templates = ee('Model')->get('Template')\n\t\t\t\t\t->search('template_data', $search)\n\t\t\t\t\t->all();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$templates = ee('Model')->get('Template')\n\t\t\t\t\t->filter('group_id', substr($where, 9))\n\t\t\t\t\t->search('template_data', $search)\n\t\t\t\t\t->all();\n\t\t\t}\n\n\t\t\tforeach ($templates as $template)\n\t\t\t{\n\t\t\t\t$template->template_data = str_ireplace($search, $replace, $template->template_data);\n\t\t\t\t$template->edit_date = ee()->localize->now;\n\t\t\t}\n\n\t\t\t$templates->save();\n\t\t\treturn $templates->count();\n\t\t}\n\t\telseif (strncmp($where, 'field_id_', 9) == 0)\n\t\t{\n\t\t\t$field_id = str_replace('field_id_', '', $where);\n\t\t\t$field = ee('Model')->get('ChannelField', $field_id)->first();\n\t\t\t$sql = \"UPDATE `exp_{$field->getDataStorageTable()}` SET `{$where}` = REPLACE(`{$where}`, '{$search_escaped}', '{$replace_escaped}')\";\n\n\t\t\tif ($field->field_type == 'grid' || $field->field_type == 'file_grid')\n\t\t\t{\n\t\t\t\tee()->load->model('grid_model');\n\t\t\t\t$affected_grid_rows = ee()->grid_model->search_and_replace(\n\t\t\t\t\t'channel',\n\t\t\t\t\t$field->getId(),\n\t\t\t\t\t$search,\n\t\t\t\t\t$replace_escaped\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// no valid $where\n\t\t\treturn FALSE;\n\t\t}\n\n\t\tif (isset($sql))\n\t\t{\n\t\t\t$this->db->query($sql);\n\t\t\t$rows = $this->db->affected_rows();\n\t\t}\n\n\t\tif (isset($affected_grid_rows))\n\t\t{\n\t\t\t$rows += $affected_grid_rows;\n\t\t}\n\n\t\treturn $rows;\n\t}", "title": "" }, { "docid": "e643356ca97c2e08169e85ff358fa6a0", "score": "0.51041377", "text": "function dbUpdate($tablename, array $updateParameters = array(), $whereCondition = '', array $whereParameters = array());", "title": "" }, { "docid": "29a27a8e30c9422f0aa725e97d8a408b", "score": "0.5102741", "text": "function prepare( $sql , $array )\n{\n\tforeach( $array as $k=>$v )\n\t\t$array[$k] = s($v);\n\t\n\t$reg = '/\\?([is])/i';\n\t$sql = preg_replace_callback( $reg , 'prepair_string' , $sql );\n\t$count = count( $array );\n\tfor( $i = 0 ; $i < $count; $i++ )\n\t{\n\t\t$str[] = '$array[' .$i . ']';\t\n\t}\n\t\n\t$statement = '$sql = sprintf( $sql , ' . join( ',' , $str ) . ' );';\n\teval( $statement );\n\treturn $sql;\n\t\n}", "title": "" }, { "docid": "71282db42194b6dbe20c5833fdb9bda4", "score": "0.5099032", "text": "function update($tableName, $mapArr, $object, $updatableFields) {\n $q = \"INSERT INTO {$tableName}(\";\n $valsPart = \"(\";\n\n $duplPart = '';\n if(!empty($updatableFields)) {\n $duplPart = \" ON DUPLICATE KEY UPDATE \";\n }\n\n foreach($mapArr as $tableField => $objField) {\n $q .= \"`$tableField`,\";\n $valsPart .= \":$tableField,\";\n\n if(in_array($tableField, (array) $updatableFields)) {\n $duplPart .= \"`$tableField` = :$tableField,\";\n }\n }\n\n $q = rtrim($q, ',');\n $valsPart = rtrim($valsPart, ',');\n $duplPart = rtrim($duplPart, ',');\n\n $q .= \")\";\n $valsPart .= \")\";\n\n $q = $q.' VALUES '.$valsPart;\n if(!empty($duplPart)) $q .= $duplPart;\n\n $stmt = $this->getPDO()->prepare($q);\n\n foreach($mapArr as $tableField => $objField) {\n\n if(!empty($objField) AND isset($object->$objField)) {\n $val = $object->$objField;\n }\n else {\n $val = '';\n }\n\n $stmt->bindValue(':'.$tableField, $val);\n }\n\n return $stmt->execute();\n }", "title": "" }, { "docid": "090167cd7e15576f22f9144b436542e5", "score": "0.5095872", "text": "public function replaceRow(int $rowIndex, array $row): void;", "title": "" }, { "docid": "08de72743dc703a66ef5378991749b2f", "score": "0.5080076", "text": "function test_callReplace()\n {\n //arrange\n $newFindReplace = new FindReplace(\"the\", \"fish\", \"The people went to the park\");\n\n //act\n $results = $newFindReplace->callReplace();\n\n //assert\n $this->assertEquals(\"fish people went to fish park\", $results);\n }", "title": "" }, { "docid": "8a9e93996672064af4b83f2f467a1805", "score": "0.5055086", "text": "public function auto_insert_replace (array $arg_arr_variables, $arg_str_table_name='', $arg_str_command='INSERT') {\t// returns insert id\r\n\t\t$arg_str_table_name = ($arg_str_table_name ? $arg_str_table_name : $this->__table);\r\n\t\tif(!$arg_str_table_name) throw new Exception('No Table to Use in Insert');\t// if there is not table name passed to the function\r\n\r\n\t\t$this->array_to_db($arg_arr_variables);\r\n\r\n\t\t// create the INSERT statement\r\n\t\tif(!is_array($arg_arr_variables)) throw new Exception('Nothing to insert in table <' . $arg_str_table_name . '> ');\r\n\r\n\t\t$str_fields = '';\t// the filed names\r\n\t\t$str_values = '';\t// the field values\r\n\t\t$str_fields = '`' . join('`, `', array_keys($arg_arr_variables)) . '`';\r\n\t\t$str_values = '\\'' . join('\\', \\'', array_values($arg_arr_variables)) . '\\'';\r\n\t\t$str_sql = $arg_str_command . ' INTO ' . $arg_str_table_name . ' (' . $str_fields . ') VALUES (' . $str_values . ')';\r\n\t\treturn $this->__DB->insert($str_sql);\r\n\t}", "title": "" }, { "docid": "6694c500b5916a3db4dbddb9fda438bb", "score": "0.50425446", "text": "function insert($values=false, $replace=false, $weak=false, $return_success=false) {\n if($values == false) $values = array();\n if(count($values)>0 && $weak == 1) {\n if($this->exists($values, false, true)) return ($return_success?false:null);\n }\n $vals = $this->collapse($values, false);\n $this->database->query(\t($replace == false ? \"INSERT\".($weak == 2 ? ' IGNORE':'').\" INTO \" : \"REPLACE \").\n \"`\".$this->name.\"`\".\n (count($values) > 0 ? \" SET \" . implode(\", \", $vals) : \" () VALUES ()\"));\n\n if($return_success) return (mysql_affected_rows($this->database->Connection)>0);\n\n if($this->database->resource) return mysql_insert_id($this->database->Connection);\n else return false;\n }", "title": "" }, { "docid": "5a307e3a47974c66f280d41679ab104e", "score": "0.5035711", "text": "function update($table, $array, $where = null) {\n $conn = connect();\n foreach ($array as $key => $val) {\n if ($str == null) {\n $sep = \"\";\n } else {\n $sep = \",\";\n }\n $str .= $sep . $key . \"='\" . $val . \"'\";\n }\n $sql = \"update {$table} set {$str} \" . ($where == null ? null : \"where \" . $where);\n return $conn->exec($sql);\n}", "title": "" }, { "docid": "f6b21c0c6b97ed7f50990e7e6f08d47f", "score": "0.50274485", "text": "function insertions_rempl($texte) {\r\n\t$ins = cs_lire_data_outil('insertions');\r\n\tif(!$ins) return $texte;\r\n\t$texte = str_replace($ins[0][0], $ins[0][1], $texte);\r\n\treturn preg_replace($ins[1][0], $ins[1][1], $texte);\r\n}", "title": "" }, { "docid": "704efdba6b98d033bf9fb9e19a15b291", "score": "0.50244594", "text": "public function upsertQuery(string $table, array &$rows): void\n {\n }", "title": "" }, { "docid": "1a19b8c51ee1e4e06ec084bf60eac46e", "score": "0.50230616", "text": "public function replace($query, $bindings = [])\n {\n return $this->statement($query, $bindings);\n }", "title": "" }, { "docid": "c702b26cfe12e736ecba335b894a39a2", "score": "0.5018959", "text": "function sqlCommandUpdate($strTableName,$arrFieldValue,$strWhere){\n\n\t$arrFieldValueTmp = \"\";\n\t$strFieldValueTmp = \"\";\n\n\tforeach ($arrFieldValue as $key => $value) {\n\t\t$arrFieldValueTmp[] = \"`$key`='$value'\";\n\t}\n\n\t$strFieldValueTmp = implode(\",\", $arrFieldValueTmp);\n\n\t$strSql = \"UPDATE `$strTableName` SET $strFieldValueTmp WHERE $strWhere\";\n\n\treturn $strSql;\n}", "title": "" }, { "docid": "7ea64264c89dcc00203d68de703d30a7", "score": "0.501257", "text": "function genericReplace() {\n\t\tglobal $wpdb;\n\t\t\n\t\t// Classic queries\n\t\t$wpdb->query(\"UPDATE `{$wpdb->options}` SET `option_value` = REPLACE(`option_value`, '\" . $this->_old_website_url . \"', '\" . $this->_new_website_url . \"') WHERE `option_value` NOT REGEXP '^([adObis]:|N;)';\");\n\t\t$wpdb->query(\"UPDATE `{$wpdb->posts}` SET `guid` = REPLACE(`guid`, '\" . $this->_old_website_url . \"', '\" . $this->_new_website_url . \"');\");\n\t\t$wpdb->query(\"UPDATE `{$wpdb->posts}` SET `post_content` = REPLACE(`post_content`, '\" . $this->_old_website_url . \"', '\" . $this->_new_website_url . \"');\");\n\t\t$wpdb->query(\"UPDATE `{$wpdb->comments}` SET `comment_author_url` = REPLACE(`comment_author_url`, '\" . $this->_old_website_url . \"', '\" . $this->_new_website_url . \"');\");\n\t\t$wpdb->query(\"UPDATE `{$wpdb->comments}` SET `comment_content` = REPLACE(`comment_content`, '\" . $this->_old_website_url . \"', '\" . $this->_new_website_url . \"');\");\n\t\t$wpdb->query(\"UPDATE `{$wpdb->links}` SET `link_url` = REPLACE(`link_url`, '\" . $this->_old_website_url . \"', '\" . $this->_new_website_url . \"');\");\n\t\t$wpdb->query(\"UPDATE `{$wpdb->postmeta}` SET `meta_value` = REPLACE(`meta_value`, '\" . $this->_old_website_url . \"', '\" . $this->_new_website_url . \"') WHERE `meta_value` NOT REGEXP '^([adObis]:|N;)';\");\n\t\t$wpdb->query(\"UPDATE `{$wpdb->commentmeta}` SET `meta_value` = REPLACE(`meta_value`, '\" . $this->_old_website_url . \"', '\" . $this->_new_website_url . \"') WHERE `meta_value` NOT REGEXP '^([adObis]:|N;)';\");\n\t\t$wpdb->query(\"UPDATE `{$wpdb->usermeta}` SET `meta_value` = REPLACE(`meta_value`, '\" . $this->_old_website_url . \"', '\" . $this->_new_website_url . \"') WHERE `meta_value` NOT REGEXP '^([adObis]:|N;)';\");\n\t}", "title": "" }, { "docid": "a3fc850a9a0b6fc00fddbff242de15ff", "score": "0.49915767", "text": "static function replaceParam($name, $value, $oldValue)\n\t\t{\n\t\t\tself::coreCache('getParam-'.$name, FALSE, 1);\n\t\t\t$value = (string) $value;\n\t\t\t$oldValue = (string) $oldValue;\n\t\t\t$sql = 'UPDATE {params} SET value = :value WHERE name = :name AND value = :compare';\n\t\t\t$data = array('name' => $name, 'value' => $value, 'compare' => $oldValue);\n\t\t\ttry {\n\t\t\t\treturn (SERIA_Base::db()->exec($sql, $data, true) ? true : false);\n\t\t\t} catch (PDOException $e) {\n\t\t\t\tif($e->getCode() == '42S02')\n\t\t\t\t{ // the table does not exist, create it\n\t\t\t\t\tself::db()->exec('CREATE TABLE {params} (name VARCHAR(100) PRIMARY KEY, value TEXT) DEFAULT CHARSET=utf8');\n\t\t\t\t\treturn (SERIA_Base::db()->exec($sql, $data, true) ? true : false);\n\t\t\t\t}\n\t\t\t\tthrow $e;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "84fdd2373eef61a2d36549fefb298baf", "score": "0.49723616", "text": "function getReplaceSql()\n {\n return $this->getGrammar()->toReplaceSql($this);\n }", "title": "" }, { "docid": "5a0b13fc5cce15b9cb5b0408160604a0", "score": "0.4965737", "text": "function addToFavorite($provider, $type, $refid, $title, $img = null)\r\n{\r\n $duneSerial = lookupDuneSerial();\r\n if( $duneSerial == null) die('addToFavorite(): Dune HD serial number cannot be null');\r\n \r\n $mysqli = connectToDb();\r\n \r\n /* create a prepared statement */\r\n if( $stmt = $mysqli->prepare(\"REPLACE INTO favorite (duneSerial, provider, type, refid, title, img) VALUES(?, ?, ?, ?, ?, ?)\") )\r\n {\r\n $stmt->bind_param('ssssss', $duneSerial, $provider, $type, $refid, $title, $img);\r\n\r\n /* execute query */\r\n $stmt->execute() or user_error('# Query Error (' . $mysqli->errno . ') '. $mysqli->error);\r\n\r\n $stmt->close();\r\n }\r\n else trigger_error('Prepare statement error (' . $mysqli->errno . ') '. $mysqli->error);\r\n \r\n $mysqli->close();\r\n}", "title": "" }, { "docid": "f97383fd33351b4a0bedd0a19ad79dc7", "score": "0.49606892", "text": "private function sqlParameterize($template, $params) {\r\n\t\tforeach ($params as $key => $value)\r\n\t\t\t$template = str_replace(\"##$key##\", mysql_real_escape_string($value, $this->dbSharedConnection), $template);\r\n\r\n\t\treturn $template;\r\n\t}", "title": "" }, { "docid": "727c926d59e6ddde99410157034f03d5", "score": "0.4952871", "text": "function replace_emailqueue($input_array){\t\t\t\t\t\t\t\t\t\t\n\t\tforeach($input_array as $key => $val) $append[] = $key . \" = \" . $val;\n $this->db->query(\"REPLACE INTO red_email_queue SET \" . implode(',',$append));\n\t\t//$this->db->insert('red_email_queue',$input_array);\n\t\treturn $this->db->insert_id();\n\t}", "title": "" }, { "docid": "5e69a76a5d9fac91db33a37b09a4ad04", "score": "0.49479148", "text": "function _update_taxonomic_field_table($table, $field_name, $replace_value, $find_value)\n{\n\n\t$update = db_update('field_' . $table .'_' . $field_name)->fields(array($field_name . '_tid' => $replace_value));\n\n\tif($find_value)\n\t\t$update->condition($field_name . '_tid', $find_value , '=');\n\n\t$update->execute();\n\n}", "title": "" }, { "docid": "81935195d220bf353054dfa65ee9d49c", "score": "0.4939998", "text": "public function insertInto($table);", "title": "" }, { "docid": "03a2d85e3be7e8ffe9ab0ef9f0696402", "score": "0.49372557", "text": "function Replace ($pREPLACEMENT) {\n\n global $zFOCUSUSER;\n\n global $gSITEDOMAIN;\n \n $DATA = new cDATACLASS ();\n\n $journalquery = \"UPDATE journalPost \" .\n \"SET userIcons_Filename = $pREPLACEMENT WHERE \" .\n \"userAuth_uID = \" . $zFOCUSUSER->uID . \" AND \" .\n \"userIcons_Filename = \" . $this->Filename;\n $DATA->Query ($journalquery); \n\n // Return FALSE if we get a MySQL error.\n if (mysql_errno()) return (FALSE);\n\n $commentquery = \"UPDATE commentInformation \" .\n \"SET Owner_Icon = $pREPLACEMENT WHERE \" .\n \"Owner_Username = \" . $zFOCUSUSER->Username . \" AND \" .\n \"Owner_Domain = \" . $gSITEDOMAIN . \" AND \" .\n \"Owner_Icon = \" . $this->Filename;\n $DATA->Query ($commentquery); \n\n unset ($DATA);\n\n return (TRUE);\n\n }", "title": "" }, { "docid": "f3e904f7d02c897ecebd3542bc6f1a2f", "score": "0.49337944", "text": "function replace(string $haystack, string $needle, string $replacement): string\n{\n return str_replace($needle, $replacement, $haystack);\n}", "title": "" }, { "docid": "7eea6a13c794449b6d0e02fee483e48a", "score": "0.49279097", "text": "public function replaceWith($new): Query\n\t{\n\t\t$data = $this->prepareInsert($new);\n\t\t$found = new SplObjectStorage();\n\t\tforeach ($this->matches as $m) {\n\t\t\t$parent = $m->parentNode;\n\t\t\t$parent->insertBefore($data->cloneNode(true), $m);\n\t\t\t$found->attach($parent->removeChild($m));\n\t\t}\n\n\t\treturn $this->inst($found, null);\n\t}", "title": "" }, { "docid": "440a2141d888120a0018ac1b6649f27a", "score": "0.49259847", "text": "public function insert($table, array $values, $ignore);", "title": "" }, { "docid": "9375a3567d3c592bd84b632e4a163d5d", "score": "0.4922036", "text": "public function testReplaceSubstitutesAllProvidedTokensAfterCommit()\n {\n $this->editor->replace(array(0, 1), 'a');\n $this->editor->commit();\n $this->assertEquals('a', $this->editor[0]);\n $this->assertEquals('a', $this->editor[1]);\n }", "title": "" }, { "docid": "ebb5341d0fe9d478f52bb1515581aa6c", "score": "0.49178705", "text": "public function tableUpdate($table,$data,$arguments);", "title": "" }, { "docid": "94142ad931abcd5181a06d8132305b09", "score": "0.4905988", "text": "public static function ll_replace( $a, $b ) {\n\t\tself::assertLLIsValid( $a );\n\t\tif ( $b !== null ) {\n\t\t\tself::assertLLIsValid( $b );\n\t\t\tself::ll_insert_before( $b, $a );\n\t\t}\n\t\tself::ll_remove( $a );\n\n\t\tself::assertLLIsValid( $a );\n\t\tif ( $b !== null ) {\n\t\t\tself::assertLLIsValid( $b );\n\t\t}\n\t}", "title": "" }, { "docid": "f5fa0679be452ba171f6a4e0a394c8ed", "score": "0.49051505", "text": "public function upsert($table, $input, $compare) {\n\t\t$this->conn->beginTransaction();\n\t\t$done = false;\n\n\t\tif (empty($compare)) {\n\t\t\t$compare = \\array_keys($input);\n\t\t}\n\n\t\t// Construct the update query\n\t\t$qbu = $this->conn->getQueryBuilder();\n\t\t$qbu->update($table);\n\t\tforeach ($input as $col => $val) {\n\t\t\t$qbu->set($col, $qbu->createParameter($col))\n\t\t\t->setParameter($col, $val);\n\t\t}\n\t\tforeach ($compare as $key) {\n\t\t\tif ($input[$key] === null || ($input[$key] === '' && $this->conn->getDatabasePlatform() instanceof OraclePlatform)) {\n\t\t\t\t$qbu->andWhere($qbu->expr()->isNull($key));\n\t\t\t} else {\n\t\t\t\tif ($this->conn->getDatabasePlatform() instanceof OraclePlatform) {\n\t\t\t\t\t$qbu->andWhere(\n\t\t\t\t\t\t$qbu->expr()->eq(\n\t\t\t\t\t\t\t// needs to cast to char in order to compare with char\n\t\t\t\t\t\t\t$qbu->createFunction('to_char(`'.$key.'`)'), // TODO does this handle empty strings on oracle correclty\n\t\t\t\t\t\t\t$qbu->expr()->literal($input[$key])));\n\t\t\t\t} else {\n\t\t\t\t\t$qbu->andWhere(\n\t\t\t\t\t\t$qbu->expr()->eq(\n\t\t\t\t\t\t\t$key,\n\t\t\t\t\t\t\t$qbu->expr()->literal($input[$key])));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Construct the insert query\n\t\t$qbi = $this->conn->getQueryBuilder();\n\t\t$qbi->insert($table);\n\t\tforeach ($input as $c => $v) {\n\t\t\t$qbi->setValue($c, $qbi->createParameter($c))\n\t\t\t\t->setParameter($c, $v);\n\t\t}\n\n\t\t$rows = 0;\n\t\t$count = 0;\n\t\t// Attempt 5 times before failing the upsert\n\t\t$maxTry = 5;\n\n\t\twhile (!$done && $count < $maxTry) {\n\t\t\ttry {\n\t\t\t\t// Try to update\n\t\t\t\t$rows = $qbu->execute();\n\t\t\t} catch (DriverException $e) {\n\t\t\t\t// Skip deadlock and retry\n\t\t\t\t// @TODO when we update to DBAL 2.6 we can use DeadlockExceptions here\n\t\t\t\tif ($e->getErrorCode() == 1213) {\n\t\t\t\t\t$count++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\t// We should catch other exceptions up the stack\n\t\t\t\t\t$this->conn->rollBack();\n\t\t\t\t\tthrow $e;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($rows > 0) {\n\t\t\t\t// We altered some rows, return\n\t\t\t\t$done = true;\n\t\t\t} else {\n\t\t\t\t// Try the insert\n\t\t\t\t$this->conn->beginTransaction();\n\t\t\t\ttry {\n\t\t\t\t\t// Execute the insert query\n\t\t\t\t\t$rows = $qbi->execute();\n\t\t\t\t\t$done = $rows > 0;\n\t\t\t\t} catch (UniqueConstraintViolationException $e) {\n\t\t\t\t\t// Catch the unique violation and try the loop again\n\t\t\t\t\t$count++;\n\t\t\t\t}\n\t\t\t\t// Other exceptions are not caught, they should be caught up the stack\n\t\t\t\t$this->conn->commit();\n\t\t\t}\n\t\t}\n\n\t\t// Pass through failures correctly\n\t\tif ($count === $maxTry) {\n\t\t\t$params = \\implode(',', $input);\n\t\t\t$updateQuery = $qbu->getSQL();\n\t\t\t$insertQuery = $qbi->getSQL();\n\t\t\tthrow new \\RuntimeException(\"DB upsert failed after $count attempts. UpdateQuery: $updateQuery InsertQuery: $insertQuery\");\n\t\t}\n\n\t\t$this->conn->commit();\n\t\treturn $rows;\n\t}", "title": "" }, { "docid": "bfc96001aa170e4c2bb036f02b0ee77f", "score": "0.4901515", "text": "function modifier($table,$data,$id,$id_name=\"id\"){\n$sets=\"set \".join(',',array_map('fusion',array_keys($data))). \" where $id_name=?\";\n$valeurs=array_values($data);\n$valeurs[]=$id;\n$sql=\"update $table $sets\";\ntry{\n\t\t$cnx=connecter_db();\n\t$rp=$cnx->prepare($sql);\n\t$rp->execute($valeurs);\n}catch(PDOException $e){\n die(\"Erreur d'ajout produit \".$e->getMessage());\n\t}\n}", "title": "" }, { "docid": "51429964d15283931e267e573cac1ade", "score": "0.4889701", "text": "function _foreach_replace($args)\r\n\t{\r\n\t\t$varname = $args[1];\r\n\t\treturn isset($this->tmp_replace[$varname])?$this->tmp_replace[$varname]:'';\r\n\t}", "title": "" }, { "docid": "82aa1a6e214f741e08d8f37b51951dd2", "score": "0.48895597", "text": "function update_table($table_name, $id, $updateValues) {\n $update = $this->DB->updateSQL(\"UPDATE \".$table_name.\" SET \".$updateValues.\" WHERE id='$id'\");\n return $update;\n\n}", "title": "" }, { "docid": "02c071aa053572595b0989170f91200d", "score": "0.48887414", "text": "function updateSQL($row, $tableName, $pkName, $db = null)\n {\n if (is_string_empty($db)) $db = new DBWrapper();\n generateUpdateSQL($row, $tableName, $pkName, $sql, $arrParam);\n $db->execute($sql, $arrParam);\n }", "title": "" }, { "docid": "fa3470266254b90be9b487a0862e1e99", "score": "0.4875622", "text": "public function auto_insert (array $arg_arr_variables, $arg_str_table_name='') {\r\n\t\treturn $this->auto_insert_replace($arg_arr_variables, $arg_str_table_name, 'INSERT');\r\n\t}", "title": "" }, { "docid": "d8e618d6b6b56a32f58ed941e4a3dd24", "score": "0.4873286", "text": "public function Update($table,$values){\n $exc = false;\n $sql = \"UPDATE \".$table.\" SET \"; // create sentence\n /*search params*/\n foreach($values as $param=>$value){\n /*validate last param in array*/\n if(end( $values ) == $value ){\n $sql = substr($sql,0,-1);\n $sql .=\"WHERE \".$param.\" = :\".$param;\n }\n else\n $sql .= $param.\" = :\". $param.\" ,\";\n }\n $stmt = $this->connect()->prepare($sql); //prepare sentence\n /*excute sentence with values*/\n if($stmt->execute($values))\n $exc = true;\n $this->closeConnection(); //close conection\n return json_encode($exc); //return response\n // echo $sql;\n }", "title": "" }, { "docid": "f6e0dce5351846c4b8828284d629dc34", "score": "0.48667914", "text": "public function upsert($table, $keyColumn, $valueColumn, array $dictionary)\n {\n try {\n\n $sql = sprintf(\n 'REPLACE INTO %s (%s, %s) VALUES %s',\n $this->escape($table),\n $this->escape($keyColumn),\n $this->escape($valueColumn),\n implode(', ', array_fill(0, count($dictionary), '(?, ?)'))\n );\n\n $values = array();\n\n foreach ($dictionary as $key => $value) {\n $values[] = $key;\n $values[] = $value;\n }\n\n $rq = $this->adodb->prepare($sql);\n $rq->execute($values);\n\n return true;\n }\n catch (ADODB_Exception $e) {\n return false;\n }\n }", "title": "" }, { "docid": "ef205f9f61eb3644e4f38ad0707ea0cd", "score": "0.48594588", "text": "private function startReplace($new)\n {\n $rows = $this->options->job->start + $this->settings->querySRLimit;\n $this->log(\n \"DB Search & Replace: Table {$new} {$this->options->job->start} to {$rows} records\"\n );\n\n // Search & Replace\n $this->searchReplace($new, $rows, []);\n\n // Set new offset\n $this->options->job->start += $this->settings->querySRLimit;\n }", "title": "" }, { "docid": "fed91ffb15abf4d8fd23c810cd2f2487", "score": "0.48431218", "text": "protected static function getSqlFromSqlTemplate($path, $table=null, $replacements=[]){\n\t\t// Statement\n\t\t$sqlT = \\lulo\\twig\\TwigTemplate::factoryHtmlResource($path);\n\t\tif(!is_null($table)){\n\t\t\t$replacements[\"table\"] = $table;\n\t\t}\n\t\t$sql = $sqlT->render($replacements);\n\t\treturn $sql;\n\t}", "title": "" } ]
c6f70509f16bac3d65f404e7dde5d158
Use the ContainerBuilder to ease constructing the Container.
[ { "docid": "ab993ede6748c49458bfa7a37b6a4c71", "score": "0.0", "text": "public function __construct(\n DefinitionManager $definitionManager,\n ProxyFactory $proxyFactory,\n ContainerInteropInterface $wrapperContainer = null\n ) {\n $this->definitionManager = $definitionManager;\n\n // Definition resolvers\n $wrapperContainer = $wrapperContainer ?: $this;\n $arrayDefinitionResolver = new ArrayDefinitionResolver($wrapperContainer);\n $this->definitionResolvers = array(\n 'DI\\Definition\\ValueDefinition' => new ValueDefinitionResolver(),\n 'DI\\Definition\\ArrayDefinition' => $arrayDefinitionResolver,\n 'DI\\Definition\\ArrayDefinitionExtension' => $arrayDefinitionResolver,\n 'DI\\Definition\\FactoryDefinition' => new FactoryDefinitionResolver($wrapperContainer),\n 'DI\\Definition\\AliasDefinition' => new AliasDefinitionResolver($wrapperContainer),\n 'DI\\Definition\\ClassDefinition' => new ClassDefinitionResolver($wrapperContainer, $proxyFactory),\n 'DI\\Definition\\FunctionCallDefinition' => new FunctionCallDefinitionResolver($wrapperContainer),\n 'DI\\Definition\\EnvironmentVariableDefinition' => new EnvironmentVariableDefinitionResolver($wrapperContainer),\n );\n\n // Auto-register the container\n $this->singletonEntries['DI\\Container'] = $this;\n $this->singletonEntries['DI\\ContainerInterface'] = $this;\n $this->singletonEntries['DI\\FactoryInterface'] = $this;\n $this->singletonEntries['DI\\InvokerInterface'] = $this;\n }", "title": "" } ]
[ { "docid": "516b473dd2c5e5f884557c89884affb0", "score": "0.7879532", "text": "public function build(ContainerBuilder $container)\n {\n }", "title": "" }, { "docid": "7619fd0bbaa676e217d5b68bdf9c2a9c", "score": "0.7451651", "text": "public function build(ContainerBuilder $container): void\n {\n parent::build($container);\n }", "title": "" }, { "docid": "988f3719280e0a92aed3dae6f173f135", "score": "0.7418932", "text": "private function registerContainerBuilder()\n {\n oxRegistry::set('container', new ContainerBuilder());\n }", "title": "" }, { "docid": "3a1674f2e820315b5a316e0e827a1fda", "score": "0.7197341", "text": "protected function getContainerBuilder()\n {\n return new \\Zikula_ServiceManager(new ParameterBag($this->getKernelParameters()));\n// return new ContainerBuilder(new ParameterBag($this->getKernelParameters()));\n }", "title": "" }, { "docid": "e5e4d6346ac03f17cd3edca33cdf7ab3", "score": "0.7092095", "text": "public function setContainerBuilder(ContainerBuilderContract $containerBuilder);", "title": "" }, { "docid": "4ab69b82d15022aad41ebec9cd92067a", "score": "0.70063394", "text": "public function build(ContainerBuilder $container)\n {\n // modules have to use DI Extensions\n }", "title": "" }, { "docid": "789e1e106199da32a5094e95feadbc38", "score": "0.69802684", "text": "protected function getContainerBuilder() {\n return new ContainerBuilder(new ParameterBag($this->getKernelParameters()));\n }", "title": "" }, { "docid": "48d784948c83c836ace28ac584b0e5e9", "score": "0.6809001", "text": "protected function createContainer(): ContainerInterface\n\t{\n\t\t$builder = new ContainerBuilder();\n\t\t$builder->addDefinitions([\n\t\t\t'env.SWYTCH_STATE_SECRET' => fn() => getenv('SWYTCH_STATE_SECRET') ?: throw new RuntimeException(\n\t\t\t\t'Missing STATE_SECRET env var'\n\t\t\t),\n\t\t\t'env.SWYTCH_DEFAULT_LANGUAGE' => fn() => getenv('SWYTCH_DEFAULT_LANGUAGE') ?: 'en',\n\t\t\t'env.SWYTCH_SUPPORTED_LANGUAGES' => fn() => explode(',', getenv('SWYTCH_SUPPORTED_LANGUAGES') ?: 'en'),\n\t\t\t'env.SWYTCH_LANGUAGE_DIR' => fn() => getenv('SWYTCH_LANGUAGE_DIR') ?: __DIR__ . '/Language',\n\t\t\t'req.ACCEPT_LANGUAGE' =>\n\t\t\t\tfn(ContainerInterface $c) => $_SERVER['HTTP_ACCEPT_LANGUAGE'] ?? $c->get('env.SWYTCH_DEFAULT_LANGUAGE'),\n\t\t\t'app.root' => $this->indexClass,\n\t\t\tStateProviderInterface::class => autowire(ValidatedState::class)\n\t\t\t\t->constructor(get('env.SWYTCH_STATE_SECRET'), get(Serializer::class)),\n\t\t\tSerializer::class => autowire(Serializer::class)\n\t\t\t\t->constructor([\n\t\t\t\t\tget(ArrayDenormalizer::class),\n\t\t\t\t\tget(BackedEnumNormalizer::class),\n\t\t\t\t\tget(ObjectNormalizer::class),\n\t\t\t\t]),\n\t\t\tLoggerInterface::class => autowire(NullLogger::class),\n\t\t\tLanguageAcceptor::class => autowire(LanguageAcceptor::class)\n\t\t\t\t->constructor(\n\t\t\t\t\tget('req.ACCEPT_LANGUAGE'),\n\t\t\t\t\tget('env.SWYTCH_SUPPORTED_LANGUAGES'),\n\t\t\t\t\tget('env.SWYTCH_LANGUAGE_DIR')\n\t\t\t\t),\n\t\t\tRenderer::class => autowire(Renderer::class)->method('setRoot', get('app.root')),\n\t\t\tLifecyleHooks::class => autowire(LifecyleHooks::class),\n\t\t\tHeaders::class => autowire(Headers::class),\n\t\t\tPsr17Factory::class => autowire(Psr17Factory::class),\n\t\t\tServerRequestFactoryInterface::class => autowire(Psr17Factory::class),\n\t\t\tUriFactoryInterface::class => autowire(Psr17Factory::class),\n\t\t\tUploadedFileFactoryInterface::class => autowire(Psr17Factory::class),\n\t\t\tStreamFactoryInterface::class => autowire(Psr17Factory::class),\n\t\t\tServerRequestCreatorInterface::class => autowire(ServerRequestCreator::class),\n\t\t\tResponseInterface::class => fn(Psr17Factory $factory) => $factory->createResponse(),\n\t\t\tEmitterInterface::class => autowire(SapiEmitter::class),\n\t\t\t...$this->dependencyInjection,\n\t\t]);\n\n\t\tif (!$this->debug) {\n\t\t\t$builder->enableCompilation('/tmp');\n\t\t}\n\n\t\treturn $this->container = $builder->build();\n\t}", "title": "" }, { "docid": "29d587f2fd62a526f44add5893058aaa", "score": "0.675571", "text": "private static function initializeContainer(): Container {\n\t\t$builder = new ContainerBuilder;\n\t\t$builder->useAnnotations( true );\n\t\t$builder->addDefinitions( __DIR__ . '/config.php' );\n\t\t$container = $builder->build();\n\n\t\treturn $container;\n\t}", "title": "" }, { "docid": "b0ef4c9e45fa4c0317fd18e26c0378ab", "score": "0.6745538", "text": "abstract protected function createContainer();", "title": "" }, { "docid": "08f4f3a0fe18c82f43a6459f00a693bd", "score": "0.6696364", "text": "function process(ContainerBuilder $container);", "title": "" }, { "docid": "f87fd768377f6a08ee2f3da989937403", "score": "0.6643066", "text": "protected function buildContainer()\n {\n // Get MicroCMS container builder\n $builder = new ContainerBuilder($this->getContainerBuilder());\n\n // Set file loader for config files\n $config_dirs = array($this->getSystemConfigDir(), $this->getConfigDir());\n $config_locator = new FileLocator($config_dirs);\n $builder->setConfigLocator($config_locator);\n\n // Finish container\n $container = $builder->prepareContainer();\n $container->set('kernel', $this);\n $container->set('kernel.config_locator', $config_locator);\n $container->compile();\n\n return($container);\n }", "title": "" }, { "docid": "ee90a78b51c6f3523e66b41507522401", "score": "0.6642145", "text": "public function build()\n {\n if (!empty($this->container)) {\n return $this->container;\n }\n\n $contents = array_map(function ($containerBuilder) {\n return $containerBuilder->build();\n }, $this->containerBuilders);\n\n $this->container = [\n 'type' => ContainerType::CAROUSEL,\n 'contents' => $contents,\n ];\n\n return $this->container;\n }", "title": "" }, { "docid": "d78d25eb64b8b3bfa97a0a0ad42013c1", "score": "0.6630699", "text": "private function getContainerBuilder()\n {\n $container = new ContainerBuilder();\n\n $container->setParameter('kernel.cache_dir', sys_get_temp_dir());\n\n return $container;\n }", "title": "" }, { "docid": "723ccc27f1b6bf1cf529aab9e423947e", "score": "0.6612837", "text": "protected function configureContainer(ContainerBuilder $builder): void\n {\n $dependencies = [\n /**\n * Holds your configuration settings\n */\n Config::class => function () {\n return new Config(ABSPATH.'/config/config.php');\n },\n\n /**\n * Views\n */\n Twig::class => function (Container $c, Config $config) {\n $view = new Twig(ABSPATH.'/views', $config->get('twig'));\n\n // Instantiate and add Slim specific extension\n $router = $c->get('router');\n\n $uri = \\Slim\\Http\\Uri::createFromEnvironment(new \\Slim\\Http\\Environment($_SERVER));\n\n $view->addExtension(new TwigExtension($router, $uri));\n\n return $view;\n },\n\n /**\n * Log management\n */\n Logger::class => function () {\n $logger = new Logger('slim-starter');\n $filename = ABSPATH.'/logs/error.log';\n $stream = new StreamHandler($filename, Logger::DEBUG);\n $fingersCrossed = new FingersCrossedHandler($stream, Logger::ERROR);\n $logger->pushHandler($fingersCrossed);\n\n return $logger;\n },\n\n /**\n * Database Connection\n */\n Medoo::class => function (Config $config) {\n return new Medoo($config->get('db'));\n },\n ];\n\n $builder->addDefinitions($this->definitions);\n $builder->addDefinitions($dependencies);\n }", "title": "" }, { "docid": "9eb301b684abc37dd9f70551db4d860e", "score": "0.65696174", "text": "public function getContainerBuilder(): ContainerBuilderContract;", "title": "" }, { "docid": "2d93e929e3cfcec17a738f1f2339b33c", "score": "0.6543225", "text": "protected function prepareContainerBuilder(ContainerBuilder $containerBuilder): void\n {\n }", "title": "" }, { "docid": "23cdc74958311ca3a5b05a9058fcddda", "score": "0.6542757", "text": "public function __construct(Container $container);", "title": "" }, { "docid": "29ad920d483955a4c449d6dce18491c8", "score": "0.6524726", "text": "public function build(ServiceContainer $serviceContainer) : void;", "title": "" }, { "docid": "dcf52fc2b3685896892db25b8c43ba85", "score": "0.64834714", "text": "public function build (ContainerBuilder $container)\n\t\t{\n\t\t\tparent::build($container);\n\n\t\t\t$container->addCompilerPass(new CatalogTypesPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 6);\n\t\t\t$container->addCompilerPass(new SpecRegistryPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 6);\n\t\t\t$container->addCompilerPass(new CatalogMenuBuilderPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 3);\n\t\t}", "title": "" }, { "docid": "22b423d4945ee50d0fe5bfb74c592e63", "score": "0.64196026", "text": "public function load(ContainerBuilder $container);", "title": "" }, { "docid": "22b423d4945ee50d0fe5bfb74c592e63", "score": "0.64196026", "text": "public function load(ContainerBuilder $container);", "title": "" }, { "docid": "94b3e8694f5bfc9e67276c3cbb20d8bb", "score": "0.6362313", "text": "function load(ContainerBuilder $container);", "title": "" }, { "docid": "cc5d7019a831d54a63ff7fb3e8f555ab", "score": "0.6307812", "text": "protected function initializeContainer()\n\t{\n\t\t$this->container = $this->getContainerBuilder();\n\n\t\t// load parameters config\n\t\t$this->registerContainerConfiguration($this->getContainerLoader($this->container));\n\t\t$this->registerServices();\n\t}", "title": "" }, { "docid": "9e291c87293bb83ca0c294e13f66a864", "score": "0.62441266", "text": "protected function compileContainer() {\n // We are forcing a container build so it is reasonable to assume that the\n // calling method knows something about the system has changed requiring the\n // container to be dumped to the filesystem.\n if ($this->allowDumping) {\n $this->containerNeedsDumping = TRUE;\n }\n\n $this->initializeServiceProviders();\n $container = $this->getContainerBuilder();\n $container->set('kernel', $this);\n $container->setParameter('container.modules', $this->getModulesParameter());\n $container->setParameter('install_profile', $this->getInstallProfile());\n\n // Get a list of namespaces and put it onto the container.\n $namespaces = $this->getModuleNamespacesPsr4($this->getModuleFileNames());\n // Add all components in \\Drupal\\Core and \\Drupal\\Component that have one of\n // the following directories:\n // - Element\n // - Entity\n // - Plugin\n foreach (['Core', 'Component'] as $parent_directory) {\n $path = 'core/lib/Drupal/' . $parent_directory;\n $parent_namespace = 'Drupal\\\\' . $parent_directory;\n foreach (new \\DirectoryIterator($this->root . '/' . $path) as $component) {\n /** @var \\DirectoryIterator $component */\n $pathname = $component->getPathname();\n if (!$component->isDot() && $component->isDir() && (\n is_dir($pathname . '/Plugin') ||\n is_dir($pathname . '/Entity') ||\n is_dir($pathname . '/Element')\n )) {\n $namespaces[$parent_namespace . '\\\\' . $component->getFilename()] = $path . '/' . $component->getFilename();\n }\n }\n }\n $container->setParameter('container.namespaces', $namespaces);\n\n // Store the default language values on the container. This is so that the\n // default language can be configured using the configuration factory. This\n // avoids the circular dependencies that would created by\n // \\Drupal\\language\\LanguageServiceProvider::alter() and allows the default\n // language to not be English in the installer.\n $default_language_values = Language::$defaultValues;\n if ($system = $this->getConfigStorage()->read('system.site')) {\n if ($default_language_values['id'] != $system['langcode']) {\n $default_language_values = ['id' => $system['langcode']];\n }\n }\n $container->setParameter('language.default_values', $default_language_values);\n\n // Register synthetic services.\n $container->register('class_loader')->setSynthetic(TRUE);\n $container->register('kernel', 'Symfony\\Component\\HttpKernel\\KernelInterface')->setSynthetic(TRUE);\n $container->register('service_container', 'Symfony\\Component\\DependencyInjection\\ContainerInterface')->setSynthetic(TRUE);\n\n // Register application services.\n $yaml_loader = new YamlFileLoader($container);\n foreach ($this->serviceYamls['app'] as $filename) {\n $yaml_loader->load($filename);\n }\n foreach ($this->serviceProviders['app'] as $provider) {\n if ($provider instanceof ServiceProviderInterface) {\n $provider->register($container);\n }\n }\n // Register site-specific service overrides.\n foreach ($this->serviceYamls['site'] as $filename) {\n $yaml_loader->load($filename);\n }\n foreach ($this->serviceProviders['site'] as $provider) {\n if ($provider instanceof ServiceProviderInterface) {\n $provider->register($container);\n }\n }\n\n // Identify all services whose instances should be persisted when rebuilding\n // the container during the lifetime of the kernel (e.g., during a kernel\n // reboot). Include synthetic services, because by definition, they cannot\n // be automatically re-instantiated. Also include services tagged to\n // persist.\n $persist_ids = [];\n foreach ($container->getDefinitions() as $id => $definition) {\n // It does not make sense to persist the container itself, exclude it.\n if ($id !== 'service_container' && ($definition->isSynthetic() || $definition->getTag('persist'))) {\n $persist_ids[] = $id;\n }\n }\n $container->setParameter('persist_ids', $persist_ids);\n\n $container->setParameter('app.root', $this->getAppRoot());\n $container->setParameter('site.path', $this->getSitePath());\n\n $container->compile();\n return $container;\n }", "title": "" }, { "docid": "08805b234c61fa25bee866dbd1b987af", "score": "0.62427557", "text": "public function build(ContainerBuilder $container)\n {\n if (!interface_exists('\\JsonSerializable')) {\n class_alias('Knp\\JsonSchemaBundle\\Model\\JsonSerializable', 'JsonSerializable');\n }\n\n $container->addCompilerPass(new Compiler\\RegisterPropertyHandlersPass());\n $container->addCompilerPass(new Compiler\\RegisterMappingsPass());\n }", "title": "" }, { "docid": "f8b11fb44f141fcb9b36a9e50f270062", "score": "0.6230073", "text": "protected function initializeContainer()\n {\n $this->container = $this->buildContainer();\n $this->container->compile();\n $this->container->set('kernel', $this);\n }", "title": "" }, { "docid": "149de24fe5c55de1ea52521b7b03ec78", "score": "0.62300503", "text": "public function process(ContainerBuilder $container)\n {\n $container->setDefinition(\n 'bldr.builder',\n new Definition(\n 'Bldr\\Service\\Builder',\n [\n new Reference('bldr.dispatcher'),\n new Reference('input'),\n new Reference('output'),\n $this->findBldrServices($container)\n ]\n )\n );\n }", "title": "" }, { "docid": "29b33602929024ba7e308d86b8497f58", "score": "0.62229925", "text": "public function __construct(ContainerInterface $container);", "title": "" }, { "docid": "3cd08d1329f83063fd01d333115b8024", "score": "0.6150032", "text": "public function make()\n {\n $this->container->add(HandlerLocator::class, InMemoryLocator::class);\n $this->container->add(MethodNameInflector::class, HandleInflector::class);\n $this->container->add(CommandNameExtractor::class, ClassNameExtractor::class);\n $this->container->add(CommandBusInterface::class, CommandBus::class)\n ->withArgument(MethodNameInflector::class)\n ->withArgument(CommandNameExtractor::class)\n ->withArgument(HandlerLocator::class)\n ->withArgument($this->container);\n }", "title": "" }, { "docid": "d5b9e79e14f0fa9b9933841996b1882d", "score": "0.61395484", "text": "abstract protected function createContainer(): ContainerInterface;", "title": "" }, { "docid": "de110d16def6569bbd60dc24a5d0775d", "score": "0.6134057", "text": "public function build(ContainerBuilder $container)\n {\n $container->addCompilerPass(\n new GenericCompilerPass(\n FilterTypeRegistry::class,\n 'sidus.filter_type',\n 'addFilterType'\n )\n );\n $container->addCompilerPass(\n new GenericCompilerPass(\n QueryHandlerRegistry::class,\n 'sidus.query_handler_factory',\n 'addQueryHandlerFactory'\n )\n );\n }", "title": "" }, { "docid": "c04168e94772930ec5441b34ba214979", "score": "0.6102471", "text": "public function setContainer(Container $container);", "title": "" }, { "docid": "34c552421ee1dcfc64d9efe09644c484", "score": "0.60711515", "text": "public function build(ContainerBuilder $container)\n {\n parent::build($container);\n\n $container->addCompilerPass(new AgentPass());\n }", "title": "" }, { "docid": "34b6b4f5580bf0507c458e565bb154c6", "score": "0.60522485", "text": "public function __construct(\\Rdb\\System\\Container $Container);", "title": "" }, { "docid": "18ac4ef062bda9aecb67757ad4879f6a", "score": "0.60515875", "text": "public function build(Container $container, string $key = null): mixed;", "title": "" }, { "docid": "c4c2552fb446c3f1ced651511589c707", "score": "0.6006226", "text": "public function build(ContainerBuilder $container)\n {\n parent::build($container);\n $container\n ->addCompilerPass(new WeaponCompilerPass())\n ->addCompilerPass(new BonusCompilerPass());\n }", "title": "" }, { "docid": "c66b30efe243a8ef210958ac73f47d31", "score": "0.5995277", "text": "protected function configureContainer() {\n $container = $this->instantiateContainer();\n \n /*\n * Framework's DI configuration.\n */\n $this->configureContainerWithFrameworkConfig($container);\n\n /*\n * Application's DI configuration.\n */\n $this->configureContainerWithApplicationConfig($container);\n\n /*\n * Get the true container to use because application's code may have overridden the container with a custom one.\n */\n /* @var $trueContainer Norma\\DI\\AbstractDependencyInjectionContainer */\n $trueContainer = $container->get(AbstractDependencyInjectionContainer::buildQualifiedComponentKey(['norma', 'framework', 'di', 'container', AbstractDependencyInjectionContainer::class]));\n if ($trueContainer !== $container) {\n // In the case of a custom container, the configuration process is repeated with the new container.\n $currentContainerConfig = $container->getConfig();\n $trueContainer->addConfig($currentContainerConfig);\n $this->configureContainerWithFrameworkConfig($trueContainer);\n $this->configureContainerWithApplicationConfig($trueContainer);\n $container = $trueContainer;\n }\n else {\n unset($trueContainer);\n }\n \n return $container;\n }", "title": "" }, { "docid": "340278e19c372878cd2aba4224c653ab", "score": "0.5983083", "text": "public function __construct( Container $container )\n\t{\n\t\t$this->container = $container;\n\t}", "title": "" }, { "docid": "a4d775507d57f38bce6773db8d80f2be", "score": "0.5977057", "text": "public static function container(): SniccoContainerAdapter\n {\n }", "title": "" }, { "docid": "2c477f86390f22bce51dde9c810c4baf", "score": "0.5975189", "text": "public function __invoke(): \\Slim\\Container\n {\n $settings = $this->setDefaultSettings();\n $container = new \\Slim\\Container($settings);\n \n\n //Init database driver, by default Eloquent ORM\n $container['db'] = $this->initializeEloquent($settings);\n #$container['db'] = $this->initializePDO();\n\n\n //Init view template engine, by default LeaguePlates\n $container['view'] = $this->initializeLeaguePlates();\n #$container['view'] = $this->initializeTwigTemplates(new Container());\n\n return $container;\n }", "title": "" }, { "docid": "ef9395c48aa7bc01f34fab870f85a76a", "score": "0.59654987", "text": "protected function bootstrapContainer()\n {\n static::setInstance($this);\n\n $this->instance('app', $this);\n\n $this->instance('filename', $this->filename);\n $this->instance('path', $this->path());\n\n\n $this->registerContainerAliases();\n $this->loadConfigurations();\n $this->make('db');\n }", "title": "" }, { "docid": "03f22d60d5de11cd41e76b2c744c5386", "score": "0.5949554", "text": "public function __construct(Container $container)\n {\n $this->container = $container;\n }", "title": "" }, { "docid": "03f22d60d5de11cd41e76b2c744c5386", "score": "0.5949554", "text": "public function __construct(Container $container)\n {\n $this->container = $container;\n }", "title": "" }, { "docid": "03f22d60d5de11cd41e76b2c744c5386", "score": "0.5949554", "text": "public function __construct(Container $container)\n {\n $this->container = $container;\n }", "title": "" }, { "docid": "03f22d60d5de11cd41e76b2c744c5386", "score": "0.5949554", "text": "public function __construct(Container $container)\n {\n $this->container = $container;\n }", "title": "" }, { "docid": "03f22d60d5de11cd41e76b2c744c5386", "score": "0.5949554", "text": "public function __construct(Container $container)\n {\n $this->container = $container;\n }", "title": "" }, { "docid": "03f22d60d5de11cd41e76b2c744c5386", "score": "0.5949554", "text": "public function __construct(Container $container)\n {\n $this->container = $container;\n }", "title": "" }, { "docid": "03f22d60d5de11cd41e76b2c744c5386", "score": "0.5949554", "text": "public function __construct(Container $container)\n {\n $this->container = $container;\n }", "title": "" }, { "docid": "03f22d60d5de11cd41e76b2c744c5386", "score": "0.5949554", "text": "public function __construct(Container $container)\n {\n $this->container = $container;\n }", "title": "" }, { "docid": "ef8242322de5745eeb74f983985a4932", "score": "0.5943148", "text": "protected function bootstrapContainer()\n {\n static::setInstance($this);\n\n $this->instance('app', $this);\n $this->instance(Container::class, $this);\n\n $this->instance(parent::class, $this);\n $this->instance(self::class, $this);\n $this->instance(static::class, $this);\n\n $this->instance(PackageManifest::class, new PackageManifest(\n new Filesystem(),\n $this->basePath(),\n $this->getCachedPackagesPath()\n ));\n\n $this->registerCoreContainerAliases();\n }", "title": "" }, { "docid": "32aa0b35426bddffffec4f3acb55a8fb", "score": "0.5942891", "text": "public function container()\r\n {\r\n include($this->dir_root.\"xesm/core/container.php\");\r\n $this->c = new \\xesm\\core\\container;\r\n }", "title": "" }, { "docid": "cd16cfaf8860f861434e9802a3dfc67a", "score": "0.5935879", "text": "abstract protected function configureContainer(ContainerBuilder $c, LoaderInterface $loader);", "title": "" }, { "docid": "b914d1812863c8e2273f28c2e5a57b49", "score": "0.5918542", "text": "private function createContainerBuilderMock()\n {\n return $this->getMockBuilder(ContainerBuilder::class)\n ->setMethods(['get'])\n ->getMock();\n }", "title": "" }, { "docid": "b198930e622d97082d6001fdb65128e4", "score": "0.5917125", "text": "private function createContainerBuilderMock()\n {\n return $this->getMockBuilder(ContainerBuilder::class)\n ->setMethods(['getDefinition'])\n ->getMock();\n }", "title": "" }, { "docid": "d793876f555c4a2028ec0bad888f3553", "score": "0.5909078", "text": "public function __construct($container) {\n $this->container = $container;\n }", "title": "" }, { "docid": "d493630b011c95f0c84f628d9dd27175", "score": "0.5907979", "text": "public static function diContainer(): Container\n {\n if (self::$diContainer) {\n return self::$diContainer;\n }\n\n self::build();\n\n return self::$diContainer;\n }", "title": "" }, { "docid": "7abec00aabe49bb0634fe5d45797bd0a", "score": "0.5904429", "text": "public function __construct($container)\r\n {\r\n $this->container = $container;\r\n }", "title": "" }, { "docid": "c320f684163b018ff1b18763f67a3b76", "score": "0.5901624", "text": "public function build(ContainerBuilder $container)\n {\n parent::build($container);\n $container->addCompilerPass(new AnalyticsCompilerPass());\n }", "title": "" }, { "docid": "fdc672e61857c72e3e7695df5c5754d9", "score": "0.5900376", "text": "protected abstract function get_container();", "title": "" }, { "docid": "175e5e28138aa3f9a4c0353bf2adaddc", "score": "0.5888755", "text": "public function process(ContainerBuilder $container)\n {\n $this->processRegisterApplicationFactory($container);\n }", "title": "" }, { "docid": "0f6b231db14acff02a7baa988e4d986f", "score": "0.58886844", "text": "public function getDockerfileBuilder()\n {\n return new DockerfileBuilder();\n }", "title": "" }, { "docid": "5a7b863403a2ed5c7970a40ee0f489ff", "score": "0.5879515", "text": "private function setContainerParameters(ContainerBuilder $container)\n {\n if (!$container->hasParameter('redis_session_type')\n || null === $container->getParameter('redis_session_type')\n ) {\n $container->setParameter('redis_session_type', StandaloneSetup::TYPE);\n }\n if (!$container->hasParameter('redis_cache_type')\n || null == $container->getParameter('redis_cache_type')\n ) {\n $container->setParameter('redis_cache_type', StandaloneSetup::TYPE);\n }\n if (!$container->hasParameter('redis_doctrine_type')\n || null == $container->getParameter('redis_doctrine_type')\n ) {\n $container->setParameter('redis_doctrine_type', StandaloneSetup::TYPE);\n }\n if (!$container->hasParameter('redis_layout_type')\n || null == $container->getParameter('redis_layout_type')\n ) {\n $container->setParameter('redis_layout_type', StandaloneSetup::TYPE);\n }\n }", "title": "" }, { "docid": "8cdd90aee0280454c6056dfe93892026", "score": "0.5867098", "text": "public function __construct(Container $container)\n {\n $this->container = $container;\n $this->handler = $container->make('orchestra.platform.menu');\n }", "title": "" }, { "docid": "b4021be224ab791eef8bcf1227e6439a", "score": "0.58627766", "text": "public function build(ContainerBuilder $container): void\n {\n $container->addCompilerPass(new ResourceMapperPass());\n $container->addCompilerPass(new ObjectMapperPass());\n }", "title": "" }, { "docid": "1c76d4c6e6728abedb5a99cf9ab629fd", "score": "0.58577985", "text": "protected function createFluentKitDriver()\n {\n return new Container($this->app);\n }", "title": "" }, { "docid": "66617a4af9495f8a732a5d2611511054", "score": "0.58530134", "text": "public function __construct(ContainerInterface $container)\n {\n parent::__construct(new Bootstrap($container));\n }", "title": "" }, { "docid": "b9dbdc2988ea1da8bf4fe42109e322e1", "score": "0.5838033", "text": "static function Container()\n {\n return new self(__FUNCTION__);\n }", "title": "" }, { "docid": "771160a200a354d14cbd0126f607f973", "score": "0.5830044", "text": "abstract public function build(BuilderInterface $builder);", "title": "" }, { "docid": "15846b6f5d0e5962499306146712f419", "score": "0.58146256", "text": "private function getContainer()\n {\n if (is_null($this->_container)) {\n $def = [\n 'configuration' => Definition::factory(\n ['Slick\\Configuration\\Configuration', 'get'],\n ['config', 'php']\n ),\n 'sharedEventManager' => Definition::object(\n 'Zend\\EventManager\\SharedEventManager'\n )\n ];\n $this->_container = ContainerBuilder::buildContainer($def);\n }\n return $this->_container;\n }", "title": "" }, { "docid": "e59d8e7a2a8733f99184f5ef0a1bf359", "score": "0.58063626", "text": "public function builder();", "title": "" }, { "docid": "92f5aff40cbd5793da3306a0260eaea3", "score": "0.5798437", "text": "public function getContainer();", "title": "" }, { "docid": "92f5aff40cbd5793da3306a0260eaea3", "score": "0.5798437", "text": "public function getContainer();", "title": "" }, { "docid": "58c996b4a0c4103e25245d20236ab97f", "score": "0.57870823", "text": "private function createContainerBuilderMock()\n {\n return $this->getMockBuilder(ContainerBuilder::class)\n ->setMethods(['addDefinitions'])\n ->getMock();\n }", "title": "" }, { "docid": "28b14fedae07daa396c8e0e636ce1678", "score": "0.5780148", "text": "public function __construct(ContainerBuilder $container, $prefix)\n {\n $this->prefix = $prefix;\n $this->container = $container;\n }", "title": "" }, { "docid": "dd307b46b7b068114e1126ae4b8885ce", "score": "0.57756877", "text": "public function __construct($container)\n {\n $this->container = $container;\n }", "title": "" }, { "docid": "244962b64d05e4fc66b7ca44181c378f", "score": "0.5770744", "text": "public function getContainer()\n {\n if(isset($this->oContainer) === false) {\n $this->oContainer = new BookMeContainer($this->getDoctrineConnection(),$this->getLogger(),$this->getEventDispatcher(),$this->getNow());\n $this->oContainer->boot();\n \n # register test services\n $this->oContainer->getDatabaseAdapter()->getConfiguration()->setSQLLogger(new DoctrineLogger($this->getLogger()));\n \n }\n \n return $this->oContainer;\n }", "title": "" }, { "docid": "e3d9004cca2f08d979a08b7749695f24", "score": "0.5764742", "text": "public function __construct(\\Slim\\Container $container) {\n $this->container = $container;\n $this->entityManager = $container['em'];\n $this->logger = $container['logger'];\n }", "title": "" }, { "docid": "b4f363930a4674ab6c7aad80df557cdd", "score": "0.5757432", "text": "public function getContainer() : Container;", "title": "" }, { "docid": "236a4795227efb28c9c9a4146cab3870", "score": "0.57466656", "text": "public function __construct()\n {\n $this->container = app();\n }", "title": "" }, { "docid": "1094d33d770559392c20a87355761c63", "score": "0.5733307", "text": "public function build() {\n \n }", "title": "" }, { "docid": "c0452704ef821c401f2dad3a36e70dde", "score": "0.5726247", "text": "protected function initializeContainer()\n {\n // todo - re-activate dumping\n\n $this->container = $this->buildContainer();\n $this->container->set('kernel', $this);\n }", "title": "" }, { "docid": "7d65720bf9209067f01a934986c4fe55", "score": "0.5722586", "text": "public function __construct(Container $container) // this is @service_container\n {\n $this->container = $container;\n }", "title": "" }, { "docid": "eaaf7d2b26800e9c3ddc55900480d938", "score": "0.57022053", "text": "public function setContainer(IContainer $container);", "title": "" }, { "docid": "e7732f189ea955372023fa2c012d159c", "score": "0.5679517", "text": "public function __construct(\\Nette\\DI\\Container $container) {\n\t\t\t$this->container = $container;\n\t}", "title": "" }, { "docid": "865d4f79b809064ba531210597feb5e4", "score": "0.5678827", "text": "public function __construct(\\Slim\\Container $container) \n {\n $this->container = $container;\n }", "title": "" }, { "docid": "7c4820367b96ad15aaf1cb71749869c1", "score": "0.5678541", "text": "public function build() { }", "title": "" }, { "docid": "57432584b6a0770896090248283520ac", "score": "0.567363", "text": "public function bootstrap(): Container\n {\n $container = Container::getInstance();\n $renderer = new Renderer();\n $router = new Router();\n\n $renderer->addGlobal('renderer', $renderer);\n $renderer->addGlobal('router', $router);\n $renderer->addGlobal('config', $this->config);\n\n $container[Renderer::class] = $renderer;\n $container[Router::class] = $router;\n $container[PDO::class] = new PDO(\n \"sqlite:\" . $this->config->get('database.path'),\n $this->config->get('database.user'),\n $this->config->get('database.pwd'),\n [\n PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,\n PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ\n ]\n );\n\n $container['config'] = $this->config;\n\n $app = new App($container, $this->config->get('modules', []));\n\n $container[App::class] = $app;\n\n return $container;\n }", "title": "" }, { "docid": "6659b4f4d70eed6b53b7cff4c3a7565e", "score": "0.5660219", "text": "public function process(ContainerBuilder $container)\n {\n $clientsConfiguration = $container->getParameter('redis.clients_configuration');\n\n foreach ($clientsConfiguration as $clientName => $clientConfiguration) {\n static::createClient(\n $container,\n $clientName,\n $clientConfiguration\n );\n }\n }", "title": "" }, { "docid": "f1ec073cc50063a101de9b79d85f572f", "score": "0.56528217", "text": "protected function bootstrapContainer()\n {\n static::setInstance($this);\n \n $this->instance('app', $this);\n \n $this->bootstrapEnvironment();\n \n $this->bindPathsInContainer();\n $this->registerContainerAliases();\n $this->registerCoreServices();\n $this->registerLogBindings();\n $this->registerTheme();\n }", "title": "" }, { "docid": "77b0f29651d593dc4a23356326e1d49a", "score": "0.5648295", "text": "public static function getContainer();", "title": "" }, { "docid": "21c4439ab2204836119c4c4a9ef14267", "score": "0.56433403", "text": "public function build()\n {\n }", "title": "" }, { "docid": "45fa1e12d3883d75cbedc4313e4f72a1", "score": "0.56406134", "text": "public static function container() : Container\n {\n if (isset(self::$instance)) {\n return self::$instance;\n }\n\n $builder = new ContainerBuilder();\n\n // TODO: Enable compilation in prod for performance.\n // Note that for this to work, we need to wipe the cache\n // folder every time the service definitions are updated\n // on the prod environment, so some extra logic is needed\n // to do this safely. See http://php-di.org/doc/performances.html\n // $builder->enableCompilation(__DIR__ . '/../cache');\n\n // Load DI configs\n $builder->addDefinitions(...array_merge(\n glob(__DIR__ . '/**/config.php'),\n glob(__DIR__ . '/**/**/config.php'),\n glob(__DIR__ . '/**/**/**/config.php'),\n glob(__DIR__ . '/**/**/**/**/config.php'),\n ));\n\n /** @noinspection PhpUnhandledExceptionInspection */\n $container = $builder->build();\n\n self::$instance = $container;\n\n // Register standard modules\n require_once __DIR__ . '/Modules/modules.php';\n\n return self::$instance;\n }", "title": "" }, { "docid": "35c604b5e1c509455b766e62049fa4e0", "score": "0.5636469", "text": "public function setContainer(Container $container): static\n {\n $this->container = $container;\n\n return $this;\n }", "title": "" }, { "docid": "083cdc337eafa0eb9e844f078559bcba", "score": "0.5625152", "text": "public function testGetContainerBuilder()\n {\n $reflection = new ReflectionMethod(\n get_class($this->command),\n 'getContainerBuilder'\n );\n\n $reflection->setAccessible(true);\n\n self::assertSame(\n $this->container,\n $reflection->invoke($this->command)\n );\n }", "title": "" }, { "docid": "aa0581f8b24f2558c09c92c94718bac9", "score": "0.5624666", "text": "public function __construct($container) {\n /* $this->config = $app->config; */\n $this->container = $container;\n }", "title": "" }, { "docid": "78739731c234690bac3f4b997103b9e2", "score": "0.56234914", "text": "private function compile()\n {\n $containerCache = $this->getLocalPath().'var/cache/container.php';\n $containerConfigCache = new ConfigCache($containerCache, self::DISABLE_CACHE);\n\n $containerClass = get_class($this).'Container';\n\n if (!$containerConfigCache->isFresh()) {\n $containerBuilder = new ContainerBuilder();\n $locator = new FileLocator($this->getLocalPath().'/config');\n $loader = new YamlFileLoader($containerBuilder, $locator);\n $loader->load('config.yml');\n $containerBuilder->compile();\n $dumper = new PhpDumper($containerBuilder);\n\n $containerConfigCache->write(\n $dumper->dump(['class' => $containerClass]),\n $containerBuilder->getResources()\n );\n }\n\n require_once $containerCache;\n $this->moduleContainer = new $containerClass();\n }", "title": "" }, { "docid": "2f60ace3a6977762e4b594195514b0a3", "score": "0.561484", "text": "public function __construct(ContainerInterface $container){\n\n $this->container=$container;\n $this->setMainInstances();\n $this->warehouseManager=$this->container['warehouse-manager'](['projectId'=>'estado-de-resultados-266105']);\n\n }", "title": "" }, { "docid": "7518d39f65913200e617acf503c8280e", "score": "0.56123346", "text": "public function __construct()\n {\n parent::__construct();\n\n $app = new Application();\n $app->bootstrap();\n\n /** @var \\Symfony\\Component\\DependencyInjection\\ContainerInterface $container */\n $this->container = $app->getContainer();\n }", "title": "" }, { "docid": "aa5c531c823aac85a5bb9599e1df3ad7", "score": "0.56091523", "text": "public static function di(...$args): ContainerInterface\n {\n return ContainerConfiguration::create(...$args)->container();\n }", "title": "" }, { "docid": "b780362f9b71655d0f089a067acdad2a", "score": "0.56082463", "text": "public function __construct()\n {\n $this->container = [];\n }", "title": "" } ]
6c98ec94ed0b3e5c30ab3f89d6c2df9e
safety check; we can't award points to anonymous authors
[ { "docid": "9e0ba31184e4b589958f6e3405c24a33", "score": "0.0", "text": "public function awardPoints(FeatureContent $content, $score) {\n\t\tif(!$content->getAuthorID()) return;\n\t\t// lets go\n\t\t$db = getDB();\n\t\t$stat = $db->prepare('INSERT INTO feature_checkin_success (user_account_id, feature_checkin_question_id, feature_content_id, score, created_at) '.\n\t\t\t\t'VALUES (:user_account_id, :feature_checkin_question_id, :feature_content_id, :score, :created_at)');\n\t\t$data = array(\n\t\t\t\t'user_account_id'=>$content->getAuthorID(), \n\t\t\t\t'feature_checkin_question_id'=>$this->getId(), \n\t\t\t\t'created_at'=>date('Y-m-d H:i:s'),\n\t\t\t\t'feature_content_id'=>$content->getId(),\n\t\t\t\t'score'=>$score,\n\t\t\t);\n\t\t$stat->execute($data);\n\t\t\n\t}", "title": "" } ]
[ { "docid": "1de0a0987199b140914411c0785f2346", "score": "0.65047944", "text": "function checkAuthors () {\n\t\tif ( count ( $this->authors) == 0 ) return ;\n\t\n\t\tif ( isset($this->existing_q) ) {\n\t\t\t$this->wd->loadItem ( $this->existing_q ) ;\n\t\t\t$i = $this->wd->getItem ( $this->existing_q ) ;\n\t\t\t$c1 = $i->getClaims ( $this->props['author'] ) ;\n\t\t\t$c2 = $i->getClaims ( $this->props['short author'] ) ;\n\t\t\t$this->invalidateExistingAuthors ( $c1 ) ;\n\t\t\t$this->invalidateExistingAuthors ( $c2 ) ;\n\t\t\t\n\t\t\t// Special case: Single author, one author already in item...\n\t\t\tif ( count($this->authors) == 1 && count($c1)+count($c2) == 1 ) {\n\t\t\t\t$this->authors[1]->hadthat = true ;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9acd55d940bf48f68604852244b1d2d3", "score": "0.63305897", "text": "protected function restrict_to_author() {\n if ($this->post->author_id != $this->current_user->id) {\n forbidden();\n }\n }", "title": "" }, { "docid": "77b61d4082712e2704283aa8ae33e072", "score": "0.62660545", "text": "public function testRequireAuthor()\n {\n $this->markTestIncomplete('Not yet implemented.');\n }", "title": "" }, { "docid": "0897d08e56934278028a400a10c2a599", "score": "0.62313354", "text": "public function whois_looking_check(){\n\t\tglobal $post;\n\t\t$post_id = get_the_ID();\n\t\t$current_user_id = get_current_user_id();\n\t\t$author_user_id = $post->post_author;\n\t\tif ($current_user_id == $author_user_id){\n\t\t\t$include_file = plugin_dir_path( __FILE__ ) . \"subscription_view_author.php\";\n\t\t\tinclude_once($include_file);\n\t\t\tif (isset ($$subscription_view_author)){return;}\n\t\t\t$subscription_view_author = new subscription_view_author($post_id);\n\t\t}\n\t}", "title": "" }, { "docid": "1ab6df1d94d40c2c529975ee163ae3a3", "score": "0.61370087", "text": "function the_author_aim()\n {\n }", "title": "" }, { "docid": "058d9c5a22a0351113781eaf878591f6", "score": "0.60182375", "text": "function publisher_userIsAuthor($itemObj)\r\n{\r\n global $xoopsUser;\r\n return (is_object($xoopsUser) && is_object($itemObj) && ($xoopsUser->uid() == $itemObj->uid()));\r\n}", "title": "" }, { "docid": "499e8a17df73298807d0fc3c3195c4cc", "score": "0.59505916", "text": "public function authorize()\n {\n if ( ! $this->getRelease()->belongsToYou()) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "de46103174d5ab8d747d56b3719b262c", "score": "0.5942439", "text": "protected function checkAuthorizathor(): void\n {\n if (!$this->authorizatorClient->authorizathor()) {\n throw AuthorizathorException::notAllowed();\n }\n }", "title": "" }, { "docid": "a8b5e584717ee8ef663b1ec56e19cff4", "score": "0.5899271", "text": "public function is_needed() {\n\t\tif ( ( $this->context->site_represents === 'person' ) || is_author() ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "13339a3932a5407fc344429cfc450e1e", "score": "0.5888429", "text": "function get_the_author_aim()\n {\n }", "title": "" }, { "docid": "5cb2cbec660d4fac3766655faea3b8aa", "score": "0.5857366", "text": "public function authorize()\n {\n return !Cache::has('announcement');\n }", "title": "" }, { "docid": "ad6f110180f02213edcee6ff7ddb925a", "score": "0.5839765", "text": "protected abstract function onAuthorizeMissingOwner(): Effect|Response;", "title": "" }, { "docid": "ffcd1247b1ff3460e45767fe25c64bdd", "score": "0.58336574", "text": "public function testPrivs()\n {\n return true; ///< Every client sees only it's own information\n }", "title": "" }, { "docid": "558ae6649c4b4300087adf3452aac996", "score": "0.5826547", "text": "public function check_afford_banner()\n {\n $after_deduction = available_points(get_member()) - intval(get_option('banner_setup'));\n\n if (($after_deduction < 0) && (!has_privilege(get_member(), 'give_points_self'))) {\n warn_exit(do_lang_tempcode('CANT_AFFORD'));\n }\n }", "title": "" }, { "docid": "be0c26a43e16a9c8ab54758c8b111287", "score": "0.5806886", "text": "public function isAuthor()\n {\n $int;\n foreach ( $this->u_r_id as $int)\n {\n if($int==3)\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "5196c685cbe3f3d65dce60b71f054fa7", "score": "0.57747275", "text": "private function checkOwner() {\r\n if (!$this->model->isOwner()) {\r\n $this->api->redirect('contact/home?message=Cannot Be Accessed');\r\n }\r\n }", "title": "" }, { "docid": "2587fa366157e1393097a7154eb1f067", "score": "0.57616186", "text": "public function authorizable(): bool\n {\n return false;\n }", "title": "" }, { "docid": "06dec1c404a4e2b58073fb42ab30dfa3", "score": "0.5753711", "text": "function the_author_yim()\n {\n }", "title": "" }, { "docid": "781694f7dc89420709adbc749dea1055", "score": "0.5748568", "text": "function isOmitted()\n\t{\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "01878bccc368ebf581dc32e14fc2f69e", "score": "0.5713202", "text": "public function testAuthorMutator()\n {\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "3e76d88e323881bd885a5ecac472eed2", "score": "0.57040393", "text": "public function authorize(): bool\n {\n return $this->user()->id === $this->article->user->id;\n }", "title": "" }, { "docid": "7471d4d1581b839e12afcda1c96cadbe", "score": "0.56895226", "text": "public static function authorizable()\n {\n return true;\n }", "title": "" }, { "docid": "74dc1f557f6d0b2bd266012b30502ae7", "score": "0.56828076", "text": "public function checkAccess()\n {\n // need to be modified for security\n }", "title": "" }, { "docid": "9a0e29c3520880f25db5ce1c16a3b1b7", "score": "0.5679758", "text": "function token_ensure_owner( $p_token_id, $p_owner_id ) {\r\n\t\t$c_token_id = db_prepare_int( $p_token_id );\r\n\t\t$t_tokens_table\t= config_get( 'mantis_tokens_table' );\r\n\r\n\t\t$query = \"SELECT owner\r\n\t\t\t\t \tFROM $t_tokens_table\r\n\t\t\t\t \tWHERE id='$c_token_id'\";\r\n\t\t$result = db_query( $query );\r\n\r\n\t\tif( db_result( $result ) != $p_owner_id ) {\r\n\t\t\ttrigger_error( ERROR_GENERIC, ERROR );\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "c346d8669b023bfc75b68f0b791d09e3", "score": "0.5669609", "text": "public function hasMaelstromAuthorization() {\n return $this->_has(9);\n }", "title": "" }, { "docid": "37628dceca35109e0640b04ac3481225", "score": "0.5643813", "text": "function mots_autoriser() {\n}", "title": "" }, { "docid": "f9aa01402fafe1cf7fe56a97b78c9daf", "score": "0.5642356", "text": "public function checkAuthor()\n {\n if ($this->author()) {\n return $this->author->name;\n }\n return 'N/A';\n }", "title": "" }, { "docid": "5012904ae92c208d1ae9f47d175bdb8c", "score": "0.5639888", "text": "function livraison_autoriser() {}", "title": "" }, { "docid": "b429c403964535ef90adf0e56048d018", "score": "0.5616327", "text": "public function test_if_a_member_has_less_than_18_years_old_and_does_not_has_a_guarantor()\n {\n $this->assertEquals(null, $this->useCase->execute(15, 0, false));\n }", "title": "" }, { "docid": "996d866410c03e7d764326e59f501816", "score": "0.560872", "text": "protected function isAuthor() {\n return $this->getSocialUser() &&\n $this->getSocialUser()->ID === (int)$this->connectObj->CreatedBySocialUser->ID;\n }", "title": "" }, { "docid": "916cece0f0bfb8415f78f17afb88cb3c", "score": "0.5591627", "text": "public function authorize()\n {\n return !empty(session(\"borrower_id\"));\n }", "title": "" }, { "docid": "5f2965cd840899cec7e35fa31fb15256", "score": "0.5578623", "text": "public function hasMaelstromAuthorization() {\n return $this->_has(11);\n }", "title": "" }, { "docid": "5a0e4e7bb51ae4fb0d627b020b8cb8cb", "score": "0.5559486", "text": "function cansigngb($uid, $who)\n{\n if(arebuds($uid, $who))\n {\n return true;\n }\n if($uid==$who)\n {\n return false; //imagine if someone signed his own gbook o.O\n }\n if(getplusses($uid)>=75)\n {\n return true;\n }\n return false;\n}", "title": "" }, { "docid": "b26e4d2781fb343306fc9d6a470f6879", "score": "0.55558425", "text": "function doAuthorizationChecks() \n\t{\n\t\tif (API_Operation::$docs_mode)\n\t\t\treturn API_Operation::$docs_mode->addOperationNote(\"This operation does not require the user to be authenticated.\");\n\t}", "title": "" }, { "docid": "b26e4d2781fb343306fc9d6a470f6879", "score": "0.55558425", "text": "function doAuthorizationChecks() \n\t{\n\t\tif (API_Operation::$docs_mode)\n\t\t\treturn API_Operation::$docs_mode->addOperationNote(\"This operation does not require the user to be authenticated.\");\n\t}", "title": "" }, { "docid": "b171f47af372c7f5d46d345916d23825", "score": "0.5546907", "text": "protected function _verifyAccess($poster, $action)\n {\n if($poster->user_id != $this->_currentUser->id \n and !$this->_helper->acl->isAllowed($action. 'Any')) {\n throw new Omeka_Controller_Exception_403;\n }\n }", "title": "" }, { "docid": "7c3ce27753bf971e552a7b23f30c5d9a", "score": "0.5536081", "text": "public function is_author($author = '')\n {\n }", "title": "" }, { "docid": "951b49fc8b7fbd8044ee5bce347fa908", "score": "0.5529016", "text": "public function is_author() {\n global $USER;\n return ($USER->id == $this->_authorid);\n }", "title": "" }, { "docid": "b3160eaa06332af8671ab691ba2fda0a", "score": "0.55210173", "text": "public function authorize()\n {\n // who can update ??\n // 1- admin\n if (auth()->user()->isAdmin()) {\n return true;\n }\n\n // 2- creator\n if ($this->offerItem->created_by == auth()->user()->id) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "6a37a320f1d3fa8e61fb324a94017965", "score": "0.5508559", "text": "protected function owner_matches_current_user()\n {\n }", "title": "" }, { "docid": "e8cecea668f746640ff2810598de5096", "score": "0.5503446", "text": "public function get_author_permastruct()\n {\n }", "title": "" }, { "docid": "f861314256f9ec84f54da908e89ca924", "score": "0.5502173", "text": "function dokan_is_seller_trusted( $user_id ) {\n $publishing = get_user_meta( $user_id, 'dokan_publishing', true );\n\n if ( $publishing == 'yes' ) {\n return true;\n }\n\n return false;\n}", "title": "" }, { "docid": "d7d7c8f09981e5fa1431a7a48b871486", "score": "0.5496748", "text": "function tickets_autoriser(){}", "title": "" }, { "docid": "907a25a635e3262422b37a5fa0086705", "score": "0.5477728", "text": "function cl_autoriser(){}", "title": "" }, { "docid": "1596ba885d90ea5565d6e132c7e58496", "score": "0.54689246", "text": "public function verifyAccess (\n\t)\t\t\t\t\t// RETURNS <void> redirects if user is not allowed editing access.\n\t\n\t// $contentForm->verifyAccess();\n\t{\n\t\tif(Me::$clearance >= 6) { return; }\n\t\t\n\t\t// Check if guest users are allowed to post on this site\n\t\tif(!$this->guestPosts) { $this->redirect(); }\n\t\t\n\t\t// Make sure you own this content\n\t\tif($this->contentData['uni_id'] != Me::$id)\n\t\t{\n\t\t\tAlert::error(\"Invalid User\", \"You do not have permissions to edit this content.\", 7);\n\t\t\t\n\t\t\t$this->redirect();\n\t\t}\n\t\t\n\t\t// If this entry is set to official, guest submitters cannot change it any longer\n\t\tif($this->contentData['status'] >= Content::STATUS_OFFICIAL)\n\t\t{\n\t\t\tAlert::saveInfo(\"Editing Disabled\", \"This entry is now an official live post, and cannot be edited.\");\n\t\t\t\n\t\t\t$this->redirect();\n\t\t}\n\t}", "title": "" }, { "docid": "b07a3e4d83dab6ad5d53a1ffda496e71", "score": "0.54639435", "text": "public function authorize()\n {\n $id = Auth::id();\n $livro = $this->route('livro');\n if ($livro!=NULL) {\n $author = $livro->user_id;\n return $author == $id ? true : false;\n }\n else\n return true;\n }", "title": "" }, { "docid": "983d4cced4fe3697707a143861bc036c", "score": "0.5452741", "text": "abstract protected function safetyCheck() : self;", "title": "" }, { "docid": "e087a8ec8e38f0705d8e7efb5edb9d08", "score": "0.54503965", "text": "public static function right_public(){return false;}", "title": "" }, { "docid": "0fd5683ec896688d491f91fa5c500eaf", "score": "0.543885", "text": "private function checkEventNotBookedByCreator(){\n $event = Event::find($this->id);\n\n return($event->host != Auth::id());\n }", "title": "" }, { "docid": "7644135b0f0c84f1652b9650fe461aa5", "score": "0.5438725", "text": "function is_verified()\n {\n return false;\n }", "title": "" }, { "docid": "461e85c335ef91707aa39e58439087b1", "score": "0.5429647", "text": "public function no_post_author_cannot_see_button_accept_answer()\n {\n $comment = factory(\\App\\Comment::class)->create();\n\n $this->actingAs(factory(\\App\\User::class)->create());\n\n $this->visit($comment->post->url);\n\n $this->dontSee('Aceptar respuesta');\n\n }", "title": "" }, { "docid": "5259029361ff8b1f5c533161bff483ae", "score": "0.54232323", "text": "function title_forbidden($book_details)\n{\n global $app;\n\n if (!is_authenticated()) {\n return false;\n }\n $user = $app->auth->getUserData();\n if (empty($user['languages']) && empty($user['tags'])) {\n return false;\n } else {\n if (!empty($user['languages'])) {\n $lang_found = false;\n foreach ($book_details['langcodes'] as $langcode) {\n if ($langcode === $user['languages']) {\n $lang_found = true;\n break;\n }\n }\n if (!$lang_found) {\n return true;\n }\n }\n if (!empty($user['tags'])) {\n $tag_found = false;\n foreach ($book_details['tags'] as $tag) {\n if ($tag->name === $user['tags']) {\n $tag_found = true;\n break;\n }\n }\n if ($tag_found) {\n return true;\n }\n }\n return false;\n }\n}", "title": "" }, { "docid": "ddd7ef9a0ef1298f8faed4a1b5fe0e83", "score": "0.54187727", "text": "public function authorize()\n { \n //放入購物車時驗證權限 無則發送403\n $v = Auth::user()->verify;\n if(!$v){\n return false;\n }\n return true;\n \n }", "title": "" }, { "docid": "75477caf02f5eef8888a0bb7740e6ad8", "score": "0.54176575", "text": "function approve(){\n\t\t$points= $this->ref('currently_requested_to_id')->get('points_available');\n\t\tif($points < 3000)\n\t\t\t$this->api->js()->univ()->errorMessage(\"Not suficcient points available, [ $points ]\")->execute();\n\t\t// Send point to the requester and less from your self ... \n\n\t\t$purchaser= $this->add('Model_MemberAll')->addCondition(\"id\",$this['request_from_id'])->tryLoadAny();\n\t\t$purchaser['points_available'] = $purchaser['points_available'] + 3000;\n\t\t$purchaser->save();\n\n\t\t$seller=$this->add('Model_MemberAll')->addCondition(\"id\",$this['currently_requested_to_id'])->tryLoadAny();\n\t\t$seller['points_available'] = $seller['points_available'] - 3000;\n\t\t$seller->save();\n\n\t\tif($this->api->auth->model->id == 1)\n\t\t\t$this['status']='Approved By Admin';\n\t\telse\n\t\t\t$this['status']='Approved';\n\n\t\t$this->save();\n\n\n\t}", "title": "" }, { "docid": "bfc30e034c35a8322a8641833c10cf05", "score": "0.5414425", "text": "public function hasAuthor(): bool\n {\n return null !== $this->author;\n }", "title": "" }, { "docid": "d8e3b08623b7829c5e480770395f3719", "score": "0.54106265", "text": "function ppmess_user_legality($message_id, $post_id, $logged_user){\n\t\n\tglobal $wpdb;\n\t\n\t$query = \"SELECT * FROM {$wpdb->prefix}private_messages WHERE (message_id = $message_id AND message_parent = 0 AND post_id = $post_id ) \n\t\t\t\tAND ( receiver_id = $logged_user OR sender_id = $logged_user ) LIMIT 1\";\n\t\t\t\n\t$result = $wpdb->get_results( $query, ARRAY_A );\n\t\n\tif($wpdb->num_rows == 1)\n\t\treturn TRUE;\n\telse \n\t\treturn FALSE;\n}", "title": "" }, { "docid": "09b754ab8a16d5aa2a5f9146e88944e0", "score": "0.54031885", "text": "public function verifiedAt();", "title": "" }, { "docid": "4b57e9b2e46af39dbb17c70403440f75", "score": "0.54018235", "text": "protected function _syncAuthor() {}", "title": "" }, { "docid": "c298ba35e621bc752f49a3ec9b21837a", "score": "0.5395419", "text": "function get_the_author_yim()\n {\n }", "title": "" }, { "docid": "c3f39420d637062619f5d86418236741", "score": "0.53861547", "text": "function _announcementIsValid(&$request, $announcementId) {\n\t\t// must be implemented by sub-classes\n\t\tassert(false);\n\t}", "title": "" }, { "docid": "d1578675ffe01a9e2fbc494379d81f5e", "score": "0.53751117", "text": "public function author();", "title": "" }, { "docid": "69c930b85526dc2118a0632f8f9a5c03", "score": "0.537173", "text": "protected function get_iauthority()\n {\n }", "title": "" }, { "docid": "69c930b85526dc2118a0632f8f9a5c03", "score": "0.537173", "text": "protected function get_iauthority()\n {\n }", "title": "" }, { "docid": "a2c7b6f4dec3cd34ef84c965af97c9a3", "score": "0.53697777", "text": "public function user_is_allowed()\n {\n //check if the record exist\n if (! $this->record) {\n $this->build_error('These record does not exist or it may not belong to you',404);\n }\n\n //check if the user is the owner of the entry\n if(!isOwner($this->record)) {\n $this->build_error('you are not the owner of this task');\n }\n\n //check if the incomming entries type is Array\n if (!is_array($this->request->entries)) {\n $this->build_error('Please the entries must be an Array');\n }\n }", "title": "" }, { "docid": "cd80d7ea42efcfd883cc8a78576cb849", "score": "0.5366371", "text": "public function testCopyleftWhenAuthorshipOptionEnabled()\n {\n $this->service->assignCopyleft($this->author, $this->resource, new Authorship(1));\n\n // use black box approach by testing transformation result\n $doc = new Document();\n $this->resource->build()->transform($doc);\n\n $body = $doc->getEntity('resource')->property('body')->getValue();\n\n $this->assertEquals(\n 1,\n preg_match('~' . $this->author->getFullName() . ', ' . self::AGENCY_NAME . '?\\.$~', strip_tags($body)),\n 'Author doesn\\'t exists in article copyleft'\n );\n }", "title": "" }, { "docid": "105d341c62d3a50ab420e23493005559", "score": "0.536248", "text": "private function authorize()\n {\n $authorized = FALSE;\n\n if ( in_array(ee()->session->userdata['group_id'], ee()->publisher_setting->can_admin_publisher()))\n {\n $authorized = TRUE;\n }\n\n if (ee()->session->userdata['group_id'] == 1)\n {\n $authorized = TRUE;\n }\n\n if ( !$authorized)\n {\n ee()->publisher_helper_url->redirect(ee()->publisher_helper_cp->mod_link('view_unauthorized'));\n }\n }", "title": "" }, { "docid": "2dc1d48d4ecdc0c842633052f49e814b", "score": "0.53616375", "text": "protected function isPermissionCorrect() {}", "title": "" }, { "docid": "f415a5c01ad546e2af33dcd1d634d771", "score": "0.53572834", "text": "function the_author_msn()\n {\n }", "title": "" }, { "docid": "f53cb9073c029325602117cc7e4816d4", "score": "0.5352078", "text": "public function hasUsageRights() {}", "title": "" }, { "docid": "3d9dde2899b4bbe925e66a9e4e9cd9d5", "score": "0.5351528", "text": "function redirect_if_not_author()\n {\n if ( isset( $_GET['post'] ) && $_GET['action'] === 'edit' && get_post( $_GET['post'] )->post_type === self::CPT_TYPE )\n {\n if( ! current_user_can( 'publish_posts' ) && get_post($_GET['post'])->post_author != get_current_user_id() )\n {\n wp_redirect( admin_url() );\n }\n }\n }", "title": "" }, { "docid": "1ef75bc60895b066a92f113f5bc451cf", "score": "0.5345956", "text": "private function checkAuthorTooShort($author)\r\n {\r\n return $this->checkTooShort($author, self::$authorMinLength); \r\n }", "title": "" }, { "docid": "5c747a16a96aa097ac7ba4db4ac4d0d2", "score": "0.53443813", "text": "function rnf_postie_inreach_author($email) {\n // So we can inspect the domain, refer to $domain[1]\n $domain = explode('@', $email);\n\n // Get the whitelisting options\n $options = get_option( 'rnf_postie_settings' );\n $accept_addresses = $options['emails'];\n $accept_domains = $options['domains'];\n\n // Test the email address and change it to mine if it's allowable.\n if (in_array($email, $accept_addresses) || in_array($domain[1], $accept_domains)) {\n // For a multi-author site, this should be a setting. For me, this is fine.\n $admin = get_userdata(1);\n return $admin->get('user_email');\n }\n return $email;\n}", "title": "" }, { "docid": "5cf6c9b564700ac2c73a57ef7453560d", "score": "0.534388", "text": "function valid()\n {\n if (isset($this->aid))\n return true;\n else\n return false;\n }", "title": "" }, { "docid": "d6849dcefe3fe218253fff285fd6d255", "score": "0.53430945", "text": "function rang_autoriser(){}", "title": "" }, { "docid": "9a3a6cf1b3df8ca809d93fbbdae15cad", "score": "0.53351265", "text": "function the_author_icq()\n {\n }", "title": "" }, { "docid": "97d6942de8b39c83d4360e4d8322abb2", "score": "0.53331864", "text": "public function viewableByOwnerOnly();", "title": "" }, { "docid": "7fa94e550ee66e62edf9709b75be7254", "score": "0.53306174", "text": "public function authorize()\n {\n /*\n if ($this->loan_id && is_numeric($this->loan_id) && $loan = Loan::whereId($this->loan_id)->first()) {\n // loan_id belongs to requesting user\n return $loan && $this->user()->id == $loan->user_id;\n }\n */\n return true; // let rules handle it\n }", "title": "" }, { "docid": "d82fda39fb87b3b84b94e3f829ed7c85", "score": "0.5326418", "text": "public function isAuthorized() {\n\t\t\n\t}", "title": "" }, { "docid": "98878ce05f8192abcfcfba14e51b8607", "score": "0.5325117", "text": "function is_entry_acceptable(array $winner) :bool\n{\n if (($winner['prize_year'] > 1968 && $winner['prize_year'] <= date(\"Y\"))\n && ($winner['author_name'] != \"\" && $winner['book_name'] != \"\" && $winner['author_nationality'] != \"\")\n && (strlen($winner['author_name']) > 6 && strlen($winner['author_name']) < 200)\n && (strlen($winner['book_name']) > 6 && strlen($winner['book_name']) < 300)\n && (strlen($winner['author_nationality']) > 2 && strlen($winner['author_nationality']) < 50))\n {\n return $acceptable = true;\n } else\n {\n return $acceptable = false;\n }\n}", "title": "" }, { "docid": "8591812abbe771ba58b71dca2f58df21", "score": "0.5324869", "text": "function check_user() {\n\treturn false; // update allowed\n\treturn true; //no update allowed\n}", "title": "" }, { "docid": "430ef1f737ab9ad4a2a137a7618b48fb", "score": "0.53236544", "text": "public function testGetAuthor(): void\n {\n $result = new ReachResult;\n $user = factory(User::class)->make();\n $tweet = factory(Tweet::class)->states(['deterministic'])->make();\n $tweet->user = $user;\n $result->setTweet($tweet);\n\n // Assertions\n $this->assertSame($user, $result->getAuthor());\n }", "title": "" }, { "docid": "5c945530f3e72d95f5c7dce3b4a1fee1", "score": "0.5322104", "text": "public function authorize()\n\t{\n\t\treturn true; //no user checking\n\t}", "title": "" }, { "docid": "99bcdbdae1db899087b0e010a241fe5f", "score": "0.5316681", "text": "public function testAuthor()\n {\n $feed = $this->eventFeed;\n\n // Assert that the feed's author is correct\n $feedAuthor = $feed->getAuthor();\n $this->assertEquals($feedAuthor, $feed->author);\n $this->assertEquals(1, count($feedAuthor));\n $this->assertTrue($feedAuthor[0] instanceof Zend_Gdata_App_Extension_Author);\n $this->verifyProperty2($feedAuthor[0], \"name\", \"text\", \"GData Ops Demo\");\n $this->verifyProperty2($feedAuthor[0], \"email\", \"text\", \"[email protected]\");\n\n // Assert that each entry has valid author data\n foreach ($feed as $entry) {\n $entryAuthor = $entry->getAuthor();\n $this->assertEquals(1, count($entryAuthor));\n $this->verifyProperty2($entryAuthor[0], \"name\", \"text\", \"GData Ops Demo\");\n $this->verifyProperty2($entryAuthor[0], \"email\", \"text\", \"[email protected]\");\n $this->verifyProperty($entryAuthor[0], \"uri\", null);\n }\n }", "title": "" }, { "docid": "b0e41740977285c58bd02ee6e04941c7", "score": "0.5311713", "text": "public function canUserAssignUsage()\n {\n $user = $this->getUser();\n\n return $user->isAdmin || \\in_array('tl_news::usage', $user->alexf, true);\n }", "title": "" }, { "docid": "5e823d904290588e83996a6af80d54d5", "score": "0.53098434", "text": "function capitalp_is_public_capitalist( $user_id ) {\n\treturn ! get_user_meta( $user_id, 'hidden_capitalist', true );\n}", "title": "" }, { "docid": "544ff2a1a823d72f256db8d07ca985c1", "score": "0.5308721", "text": "public function check_authorization_uri_to_show_a_person()\n {\n $person = create_person_with_nif_array();\n $this->check_json_api_uri_authorization('api/v1/person/','post', $person);\n }", "title": "" }, { "docid": "997695e047095d4f8f67ab18e15badb3", "score": "0.53022945", "text": "public function is_private()\n {\n }", "title": "" }, { "docid": "997695e047095d4f8f67ab18e15badb3", "score": "0.53022945", "text": "public function is_private()\n {\n }", "title": "" }, { "docid": "997695e047095d4f8f67ab18e15badb3", "score": "0.53022945", "text": "public function is_private()\n {\n }", "title": "" }, { "docid": "f1515d27933e364ffbfe8aad6d7f7c7c", "score": "0.5296516", "text": "protected function is_private()\n {\n }", "title": "" }, { "docid": "f1515d27933e364ffbfe8aad6d7f7c7c", "score": "0.5296516", "text": "protected function is_private()\n {\n }", "title": "" }, { "docid": "f1515d27933e364ffbfe8aad6d7f7c7c", "score": "0.5296516", "text": "protected function is_private()\n {\n }", "title": "" }, { "docid": "f1515d27933e364ffbfe8aad6d7f7c7c", "score": "0.5296516", "text": "protected function is_private()\n {\n }", "title": "" }, { "docid": "f1515d27933e364ffbfe8aad6d7f7c7c", "score": "0.5296516", "text": "protected function is_private()\n {\n }", "title": "" }, { "docid": "f1515d27933e364ffbfe8aad6d7f7c7c", "score": "0.5296516", "text": "protected function is_private()\n {\n }", "title": "" }, { "docid": "f1515d27933e364ffbfe8aad6d7f7c7c", "score": "0.5296516", "text": "protected function is_private()\n {\n }", "title": "" }, { "docid": "f1515d27933e364ffbfe8aad6d7f7c7c", "score": "0.5296516", "text": "protected function is_private()\n {\n }", "title": "" }, { "docid": "c8b6cb1a508ce1a245ecdd01d1e43b5d", "score": "0.5287426", "text": "private function allowed_to_view_matches(){\n if(!rcp_user_can_access($this->user_id, $this->security_form_id) || !rcp_user_can_access($this->user_id, $this->defendant_id)){\n $this->error_message = esc_html__('You do not have access to this report.', 'pprsus');\n return false;\n }\n //are the variables even set\n if($this->security_form_id == '' || $this->defendant_id == '' || $this->token == ''){\n $this->error_message = esc_html__('There was a problem retrieving the prison list. Please return to the dashboard and try again.', 'pprsus');\n return false;\n }\n\n //is this a security form post type\n if(get_post_type($this->security_form_id) != 'security'){\n $this->error_message = esc_html__('There was a problem retrieving the prison list. Please return to the dashboard and try again.', 'pprsus');\n return false;\n }\n\n //does the security form or defendant belong to the current user\n $security_form_author = get_post_field('post_author', $this->security_form_id);\n if($security_form_author != $this->user_id){\n $this->error_message = esc_html__('This security report belongs to another user.', 'pprsus');\n return false;\n }\n\n $defendant_author = get_post_field('post_author', $this->defendant_id);\n if($defendant_author != $this->user_id){\n $this->error_message = esc_html__('This defendant belongs to another user.', 'pprsus');\n return false;\n }\n\n //is the token valid\n $token_from_post = get_post_meta((int)$this->security_form_id, 'secret_token', true);\n if($token_from_post != $this->token){\n $this->error_message = esc_html__('There was a problem retrieving the prison list. Please return to the dashboard and try again.', 'pprsus');\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "f9196ae4d5f052f8b28a9fe99e77bca7", "score": "0.527956", "text": "private function isAuthor($id)\n {\n $article = Article::find($id);\n if(Auth::user()->id === $article->user_id):\n return true;\n else:\n return false;\n endif;\n }", "title": "" }, { "docid": "67fd75da37cc233ddebbb4c61a9b6811", "score": "0.52788544", "text": "public static function checkOwnerExisting()\n {\n global $mainframe;\n $db = JFactory::getDbo();\n $db->setQuery(\"Select count(id) from #__osrs_agents where agent_type <> '0' and published = '1'\");\n $count = $db->loadResult();\n if ($count > 0) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "e3a931df1aec2c558b24e13c1747aa8a", "score": "0.5276811", "text": "public function canMyLikes() {\n $viewer = Engine_Api::_()->user()->getViewer();\n if (!$viewer || !$viewer->getIdentity()) {\n return false;\n }\n\t\treturn true;\n }", "title": "" } ]
0da56fbe98d145b53d28c2a229228331
functions to handle bookings
[ { "docid": "2f556f45dbd96d22fa440b3f59b65c86", "score": "0.0", "text": "public function spa_pending_bookings(){\n if($this->session->userdata('user_type') == 'admin'){\n\n $result = $this->Bookings_model->spa_get_bookings('pending');\n $data['result'] = $result;\n \n $this->load->view('admin/header_main');\n $this->load->view('admin/spa_bookings/pending_bookings',$data);\n }\n else{\n redirect('Main/login');\n }\n }", "title": "" } ]
[ { "docid": "05871723776be36527db4b4b05c6a98b", "score": "0.67493546", "text": "function book($what, $from, $duration, $who, $comment) {\n global $Controller, $DB, $USER;\n $booking_id \t= uniqid();\n $book\t\t\t= array();\n\n $clearance = $this->getClearance($from, $duration, $who);\n if($clearance === false) {\n return false;\n }\n foreach($what as $obj_id) {\n if(!is_numeric($obj_id)) continue;\n if($obj = $Controller->$obj_id('Booking_Object')) {\n if(!$obj->isFree($from, $duration)) {\n Flash::create(__('Time is not free'), 'warning');\n return false;\n }\n $book[] = $obj_id;\n }\n }\n if(!$book) return true;\n $DB->booking_bookings->insertMultiple(array('id' => $book, 'b_id' => $booking_id, 'starttime' => $from, 'duration' => $duration, 'booked_by' => $USER->ID, 'booked_for' => $who, 'cleared_by' => $clearance, 'comment' => $comment));\n foreach($book as $b) {\n $o = $Controller->$b;\n $o->cascadeBooking($booking_id, $from, $duration, $who, $comment);\n }\n $_REQUEST->setType('viewBooking', 'string');\n if(!$clearance) {\n new Notification(\n __('Booking registered'),\n __('A new booking has been registered').': '.$this->link(false, array('viewBooking' => $booking_id)),\n //FIXME: Notifier recipient; 1019 = Bilansvarig\n $Controller->{\"1019\"}(OVERRIDE)\n );\n }\n return true;\n }", "title": "" }, { "docid": "89fb2e7173827d9a6970240ae139379e", "score": "0.6686198", "text": "public function listBookings(){\n $this->printMovieWelcomeScreen('Booking List');\n\n $this->getMovieList();\n\n output::message('What movie ID would you like to view bookings for?', 5);\n output::message('Hint: type 0 to display all bookings',5);\n $movieId = (new input())->getIntResponse(0,99)->getInputData();\n\n\n if( $movieId == 0 ) {\n $this->printMovieWelcomeScreen('Booking List: Viewing All');\n } else {\n $m = new movies();\n $m->loadMovieData($movieId);\n $this->printMovieWelcomeScreen('Booking List: ' . $m->getMovieTitle());\n }\n\n $booking = new bookings($this);\n $booking->getBookingList($movieId);\n\n\n $this->waitForReturnToMenu();\n }", "title": "" }, { "docid": "772547972b311a7c8d0e56a09b343177", "score": "0.6616182", "text": "function bookingPage() {\n global $DB, $USER, $CONFIG, $Controller;\n\n $_REQUEST->setType('startTime', 'numeric');\n $_REQUEST->setType('duration', 'numeric');\n $_REQUEST->setType('d', 'string');\n $_REQUEST->setType('refresh', 'any');\n $_POST->setType('bookObjs', 'numeric', true);\n $_POST->setType('who', array('numeric', '#^$#'));\n $_POST->setType('comment', 'string');\n\n $TimeStep\t\t\t= 30;\n\n if($_REQUEST['startTime'] && $_REQUEST['startTime'] >= time()) $startTime = $_REQUEST['startTime'];\n else $startTime = mktime(date('H'),(date('i') + ($TimeStep - (date('i') % $TimeStep))),0);\n if($_REQUEST['duration'] && $_REQUEST['duration']>0) $duration = $_REQUEST['duration'];\n else $duration = 60*$TimeStep;\n if($_POST['bookObjs'] && !$_REQUEST['refresh']) {\n if($this->book($_POST['bookObjs'], $startTime, $duration, (int)$_POST['who'], $_POST['comment'])) {\n if($_REQUEST['js']) {\n $nav = '<div class=\"nav\"><a href=\"javascript:window.close();\">'.icon('small/cancel').__('Close').'</a></div>';\n Head::add(\"window.opener.location = window.opener.location; setTimeout('window.close()', 8000);\", 'js-raw');\n Head::add(\"window.onblur=function(){window.close();}\", 'js-raw');\n } else {\n $nav = '<div class=\"nav\"><a href=\"'.url(null, array('id', 'viewDate')).'\">'.icon('small/arrow_up').__('Back').'</a></div>';\n }\n return $nav.'<h1>'.__('Booking confirmed.').'</h1>';\n } else {\n $_REQUEST['refresh'] = 'true';\n }\n }\n\n $endTime = $startTime + $duration;\n\n if($_REQUEST['js']) {\n $nav = '<div class=\"nav\"><a href=\"javascript:window.close();\">'.icon('small/cancel').__('Close').'</a></div>';\n } else {\n $nav = '<div class=\"nav\"><a href=\"'.url(null, array('id', 'viewDate')).'\">'.icon('small/arrow_up').__('Back').'</a></div>';\n }\n\n $this->loadBookingObject();\n $result = '';\n $result .= $nav;\n $form = new Form('booking', url(null, 'viewDate'), __('Book'));\n $result .= $form->open();\n $result .= '<div class=\"cal_bookable\"><ul>';\n\n $Objects = (array)$this->subBookables;\n array_unshift($Objects, $this);\n $no_free = true;\n foreach($Objects as $Obj) {\n if($Obj->isFree($startTime, $duration)) {\n $result .= '<li'.($Obj === $this ? ' class=\"cal_parent\"':'').'>'\n .new Minicheck($Obj, 'bookObjs[]', ($_REQUEST['bookObjs']?(in_array($Obj->ID, (array)$_POST['bookObjs'])):true), false, $Obj->ID, ($Obj === $this ? 'cal_parent': false))\n .'</li>';\n $no_free = false;\n }\n }\n $result .= '</ul></div>';\n\n $time_SelectValues = array();\n $limit = false;\n $this->loadDay($endTime);\n foreach($this->bookings as $booking) {\n if($booking['starttime']>$startTime) {\n if(!$limit || $limit > $booking['starttime']) {\n $limit = $booking['starttime'];\n }\n }\n }\n if(!$limit) $limit = mktime(0,0,0,date('m', $endTime),date('d', $endTime)+1,date('Y', $endTime));\n\n $time_SelectValues = array();\n if(date('Ymd', $startTime)!=date('Ymd', $endTime)) {\n $t = mktime(0,0,0,date('m', $endTime),date('d', $endTime),date('Y', $endTime));\n } else {\n $t = $startTime+60*$TimeStep;\n }\n while($t<=$limit) {\n $time_SelectValues[($t-$startTime)] = date('H:i', $t);\n $t += 60*$TimeStep;\n }\n\n if(empty($time_SelectValues) || $no_free) {\n $current = $this->getOnGoingBooking(($no_free?$startTime:$t));\n if($_REQUEST['d']=='l') $_REQUEST['startTime'] = $current['starttime'] - $duration;\n else $_REQUEST['startTime'] = $current['starttime'] + $current['duration'];\n return $this->bookingPage();\n }\n\n $personal_timelimit = $USER->settings['booking_timelimit'];\n if($personal_timelimit == '')\n $personal_timelimit = $Controller->{(string)MEMBER_GROUP}(OVERRIDE)->settings['booking_timelimit'];\n $canBookSelf = (bool)$personal_timelimit;\n $bookingGroups = array();\n foreach($USER->groups as $g) {\n if($g->ID != MEMBER_GROUP && $g->settings['booking_timelimit']) {\n $bookingGroups[] = $g;\n }\n elseif($g->ID == MEMBER_GROUP) {\n if(!$canBookSelf) $canBookSelf = (bool) $g->settings['booking_timelimit'];\n }\n }\n\n $result .= new Set(\n new Hidden('startTime', $startTime),\n new Hidden('endTime', $endTime),\n ((empty($bookingGroups) && $canBookSelf)\n ? new Hidden('who')\n : new Select(__('Who'), 'who', $bookingGroups, @$_POST['who'], false, ($canBookSelf?__('Yourself'):false))),\n strftime('%a, %e %b -%y', $startTime)\n .', <a href=\"'.url(array('startTime' => mktime(date('H', $startTime), date('i', $startTime) - $TimeStep, 0, date('m', $startTime), date('d', $startTime), date('Y', $startTime)), 'duration' => $duration, 'd' => 'l'), array('id', 'view', 'js')).'\">&laquo;</a> '\n .date('H:i', $startTime)\n .' <a href=\"'.url(array('startTime' => mktime(date('H', $startTime), date('i', $startTime) + $TimeStep, 0, date('m', $startTime), date('d', $startTime), date('Y', $startTime)), 'duration' => $duration), array('id', 'view', 'js')).'\">&raquo;</a>',\n (date('Ymd',$endTime)>date('Ymd', $startTime)?'<a href=\"'.url(array('startTime' => $startTime, 'duration' => $duration - 86400), array('id', 'view', 'js')).'\">':'').'&laquo;'.(date('Ymd',$endTime)>date('Ymd', $startTime)?'</a> ':' ')\n .strftime('%a, %e %b -%y', $endTime)\n .' <a href=\"'.url(array('startTime' => $startTime, 'duration' => $duration + 86400), array('id', 'view', 'js')).'\">&raquo;</a>'\n .(new Select(false, 'duration', $time_SelectValues, $duration)).' '\n .(new Submit(__('Check availability'), 'refresh')),\n new Textarea(__('Comment'), 'comment', '', 'mandatory')\n );\n\n $result .= $form->close();\n return $result;\n }", "title": "" }, { "docid": "2331817279a4761bd13f3446764f7143", "score": "0.65886736", "text": "public function getBookings()\n {\n\n $from = Util::getLatestRequestTime('booking');\n $to = Util::getNowTime();\n\n $client = new Client([\n 'base_uri' => $this->baseUrl,\n 'timeout' => $this->timeout\n ]);\n\n $url = $this->apiURL . 'bookings?from=' . $from . '&to=' . $to . '&with_items=true';\n\n $response = $client->request('GET', $url, [\n 'headers' => [\n 'Authorization' => $this->apiKey\n ]\n ]);\n\n $this->saveRequestTime($this->apiKey, 'booking');\n \n Booking::saveNewBookings($response->getBody());\n BookingItem::saveItems($response->getBody());\n }", "title": "" }, { "docid": "7ba43bd1327a7612a0b196d8181cb2a6", "score": "0.658065", "text": "function book_cottage($data){\n $cottage_id = $data['cottage_id'];\n $start_date = $data['start_date'];\n $end_date = $data['end_date'];\n if(!$this->_alreadyBooked($cottage_id)){\n $updateQuery = \"UPDATE cottages SET available='0',start_date='$start_date', end_date='$end_date' WHERE id='$cottage_id'\";\n $res = mysqli_query($this->conn,$updateQuery);\n if(mysqli_affected_rows($this->conn) > 0){\n $this->helper->create_response(true,\"Booked\",[]);\n }else{\n $this->helper->create_response(false,\"Booking Fail\",[]);\n }\n }else{\n $this->helper->create_response(true,\"Already Booked\",[]);\n }\n }", "title": "" }, { "docid": "8e91be7605061e11f27730fb95f3e51e", "score": "0.6510886", "text": "function book(\n //$room_name, $start_date, $end_date, $start_time, $end_time, $company_name, $phone, $email, $capacity, $more_information\n)\n{\n $room_name = sanitize($_POST['room_name']);\n $start_date = sanitize($_POST['start_date']);\n $end_date = sanitize($_POST['end_date']);\n $start_time = sanitize($_POST['start_time']);\n $end_time = sanitize($_POST['end_time']);\n $company_name = sanitize($_POST['company_name']);\n $phone = sanitize($_POST['phone']);\n $email = sanitize($_POST['email']);\n $capacity = sanitize($_POST['capacity']);\n $more_information = sanitize($_POST['more_information']);\n global $conn;\n global $errors;\n\n if (empty($room_name) || empty($start_date) || empty($end_date) || empty($start_time) || empty($end_time) || empty($company_name) || empty($phone) || empty($email) || empty($capacity)) {\n $errors[] = 'Every field is required.';\n }\n if ($room_name < 1 || $room_name > 6) {\n $errors[] = 'Invalid room selection.';\n }\n\n if (empty($errors)) {\n // run insert\n $booking = $conn->query(\"INSERT INTO apollo_confrence_facilities_bookings (`apollo_confrence_facilities_fk`, `start_date`, `end_date`, `start_time`, `end_time`, `company_name`, `phone_number`, `email`, `capacity`, `more_information` )\n VALUES ( '$room_name', '$start_date', '$end_date', '$start_time', '$end_time', '$company_name', '$phone', '$email', '$capacity', '$more_information') \");\n if ($booking) {\n $_SESSION['successMessage'] = 'Booking successful.';\n } else {\n $_SESSION['errorMessage'] = 'An error occurred. Please try again.';\n }\n }\n}", "title": "" }, { "docid": "68b9551143525108c6343ce09c08c7f9", "score": "0.6413763", "text": "private function handleBookRequest() {\r\n\r\n\r\n}", "title": "" }, { "docid": "08d4498b9467e2cc381f41f9d2f0013b", "score": "0.6396377", "text": "function findBookings()\n{\n\t$currentDate = date(\"Y-m-d\");\n\n\t$formId = FrmForm::getIdByKey(FF_FORM_AFTERNOON_TEA_KEY);\n\t$dateField = FrmField::getOne(FF_AFTERNOON_TEA_DATE_FIELD_KEY);\n\t$timeField = FrmField::getOne(FF_AFTERNOON_TEA_TIME_FIELD_KEY);\n\t$entries = FrmEntry::getAll(array('it.form_id' => $formId), \" ORDER BY meta_$dateField->id DESC\", \" LIMIT 1000\");\n\n\t// using the date, calculate the total bookings\n\t// if the total bookings for a time slot exceed the limit\n\t// all its slots filled\n\n\t$dateSlots = [];\n\n\tforeach ($entries as $entry) {\n\t\t$entry = FrmEntry::getOne($entry->id, true);\n\t\t$entryDate = $entry->metas[$dateField->id];\n\t\t$entryTime = $entry->metas[$timeField->id];\n\n\t\t// jump out if you've passed the date\n\t\t// because we're only ever looking at today and forward\n\t\t// and the list of $entries is sorted descending by date\n\t\tif ($entryDate < $currentDate) {\n\t\t\tbreak;\n\t\t}\n\n\t\tif (isset($dateSlots[$entryDate])) {\n\t\t\t$dateSlots[$entryDate]['count']--;\n\t\t\t$dateSlots[$entryDate]['times'][$entryTime]--;\n\t\t} else {\n\t\t\t$dateSlots[$entryDate] = ['count' => FF_AFTERNOON_TEA_DAY_BOOKING_MAX - 1, 'times' => [$entryTime => FF_AFTERNOON_TEA_SLOT_BOOKING_MAX - 1]];\n\t\t}\n\t}\n\n\treturn $dateSlots;\n}", "title": "" }, { "docid": "c3488db557f43d809fddab33ad0fb679", "score": "0.63581634", "text": "function book($username, $from, $to, $people){\r\n\t$conn=connectDB();\t\r\n\t$list=array();\r\n\ttry {\r\n\t\t// Disable autocommit\r\n\t\tmysqli_autocommit($conn, false);\r\n\t\t\t\t\r\n\t\t// Check if the user has already active bookings\r\n\t\tcheckBookings($conn, $username);\r\n\t\t\r\n\t\t// Check if the number of people doesn't exceed the actual capacity\r\n\t\t$list=checkPeople($conn, $from, $to, $people);\r\n\t\t\r\n\t\t// All conditions are satisfied: save the booking\r\n\t\t\r\n\t\t// There are new addresses, add them\r\n\t\tif($list!=0){\r\n\t\t\taddAddresses($conn, $from, $to, $list);\r\n\t\t}\r\n\t\t\t\r\n\t\t// Add the booking in the booking table\r\n\t\taddBooking($conn, $username, $from, $to, $people);\r\n\t\t\r\n\t\t// All ok commit\t\r\n\t\tmysqli_commit($conn);\r\n\t\t} catch (Exception $e) {\r\n\t\t\t// Rollback and give back the exception message\r\n\t\t\tmysqli_rollback($conn);\r\n\t\t\tmysqli_close($conn);\r\n\t\t\treturn $e->getMessage();\r\n\t\t}\r\n\t\treturn \"Your booking has been done successfully\";\r\n\t\tmysqli_close($conn); \r\n}", "title": "" }, { "docid": "188a337ffc2f4482616009bdc1268ec0", "score": "0.635522", "text": "public function getBookings(){\n $query = $this->db->query(\"SELECT * FROM \" . DB_PREFIX . \"booking ORDER BY date DESC, time ASC\");\n return $this->formatBookings($query->rows);\n }", "title": "" }, { "docid": "ad1142f863bf07ce4bfad5d2374e9fef", "score": "0.63030934", "text": "function book($user_id,$username,$pickup_date_time,$drop_area,$pickup_area,$time_type,$amount,$km,$pickup_lat,$pickup_longs,$drop_lat,$drop_longs,$isdevice,$approx_time,$flag,$taxi_type,$taxi_id,$purpose,$comment,$person,$payment_type,$transaction_id,$book_create_date_time,$area_id)\n {\n $table = 'bookingdetails';\n $insert_data = array(\n //'username'\t => $request->token,\n 'username' => $username,\n 'purpose' => $purpose,\n 'pickup_date_time' => $pickup_date_time,\n 'drop_area' => $drop_area,\n //'pickup_area' => $request->pickup_area,\n 'pickup_area' => $pickup_area,\n //'taxi_type' => $request->taxi_type,\n 'taxi_type' => $taxi_type,\n 'taxi_id' => $taxi_id,\n 'status' => \"1\",\n\t 'status_code' => \"pending\",\n //'book_create_date_time' => date('Y-m-d H:i:s'),\n\n //'timetype'\t\t=> $request->timetype,\n 'timetype' => $time_type,\n //'amount'\t\t => $request->amount,\n 'amount' => $amount,\n 'comment' => $comment,\n 'km' => $km,\n\t 'pickup_lat' => $pickup_lat,\n\t 'pickup_long' => $pickup_longs,\n\t 'drop_lat' => $drop_lat,\n\t 'drop_long' => $drop_longs,\n\t 'flag'=>$flag,\n\t 'person'=>$person,\n\t 'payment_type'=>$payment_type,\n\t 'transaction_id'=>$transaction_id,\n\t 'user_id'=>$user_id,\n\t 'isdevice' => $isdevice,\n 'approx_time' => $approx_time,\n 'area_id' =>$area_id\n );\n\t//print_r($insert_data);\n\n $this->insert_table($insert_data, $table);\n\n $book_id=$this->db->insert_id();\n $uniqid=uniqid();\n $insert_book=array(\n 'unique_id'=>$uniqid,\n 'booking_id'=>$book_id\n );\n $this->insert_table($insert_book, 'activity_stream');\n\n }", "title": "" }, { "docid": "2266dd91edd2d4ac20e3e44bd8bc66a6", "score": "0.6216115", "text": "function viewBooking($booking) {\n global $DB, $Controller, $USER;\n $res = $DB->booking_bookings->get(array('b_id' => $booking));\n $booking = false;\n $booked_items = array();\n $nr = 0;\n while(false !== ($r = Database::fetchAssoc($res))) {\n $booking = $r;\n $nr++;\n if($Controller->{$r['id']}) $booked_items[] = array('obj' => $Controller->{$r['id']}, 'id' => $r['id'], 'parent' => $Controller->{$r['id']}->parentBookID());\n }\n if(!$booking) return __('An error occured. Cannot find booking');\n $nav = '<div class=\"nav\">';\n\n $nav .= ($_REQUEST['js']\n ?'<a href=\"javascript:window.close();\">'.icon('small/cancel').__('Close').'</a>'\n :'<a href=\"'.url(null, array('viewDate', 'id')).'\">'.icon('small/arrow_left').__('Back').'</a>'\n )\n .($this->mayI(EDIT) || $booking['booked_by'] == $USER->ID || ($booking['booked_for'] && $Controller->{$booking['booked_for']}('Group') && $Controller->{$booking['booked_for']}->isMember($USER))\n ?'<a href=\"'.url(array('delbooking' => $booking['b_id']), array('viewDate', 'id', 'js')).'\">'.icon('small/delete').__('Delete booking').'</a>'\n .($nr>1\n ?'<a href=\"'.url(array('rembooking' => $booking['b_id']), array('viewDate', 'id', 'js')).'\">'.icon('small/cross').__('Remove from booking').'</a>'\n :'')\n :'')\n .(!$booking['cleared_by'] && $this->mayI(EDIT)\n ?'<a href=\"'.url(array('confirm' => $booking['b_id']), true).'\">'.icon('small/tick').__('Confirm').'</a>'\n :'');\n $nav .= '</div>';\n return $nav.new Set(\n ($booked_items\n ? new FormText(__('What'), listify(inflate($booked_items), false, true, 'obj', 'children'))\n : null\n ),\n ($Controller->{$booking['booked_by']}\n ?new FormText(__('Booked by'), $Controller->{$booking['booked_by']})\n :null\n ),\n ($booking['booked_for'] && $Controller->{$booking['booked_for']}\n ?new FormText(__('Booked for'), $Controller->{$booking['booked_for']})\n :null\n ),\n new FormText(__('Booked from'), date('Y-m-d, H:i', $booking['starttime'])),\n new FormText(__('Booked until'), date('Y-m-d, H:i', $booking['starttime'] + $booking['duration'])),\n ($booking['comment']\n ?new FormText(__('Comment'), $booking['comment'])\n :null\n )\n );\n }", "title": "" }, { "docid": "2469eee53588c75f789e70bab71896c6", "score": "0.6209426", "text": "function generateReservationStatus($book)\n{\n //if the book is currently available\n if ($book->getBookStatus() == 1) {\n return \"<a href='/library/forms/form_book_borrow.php?id={$book->getId()}&title={$book->getTitle()}&name={$book->getAuthor()->getName()}&surname={$book->getAuthor()->getSurname()}&isbn={$book->getIsbn()}'>Borrow</a>\";\n } else {\n if ($_SESSION['role'] == \"ADMIN\") {\n return \"<a href='/library/forms/form_book_return.php?id={$book->getId()}'>Return</a>\";\n } else if ($_SESSION['role'] == \"USER\") {\n return \"<span>Book is currently borrowed</span>\";\n }\n }\n}", "title": "" }, { "docid": "433532895ddfca00f63e166b80638518", "score": "0.6189266", "text": "public function bookerBookings($booker, $startTime = 0, $endTime = PHP_INT_MAX)\n {\n $return = false;\n if(Checker::isObject($booker, \"User\")) $booker = $booker->ID();\n $obs = $this->Bookings(\"booker\", $booker, $startTime, $endTime);\n if(Checker::isArray($obs, true, $this->ERROR_INFO(__FUNCTION__)))\n {\n $return = $obs;\n }\n return $return;\n }", "title": "" }, { "docid": "8612410937d2199a5571fb1cbdb28a7f", "score": "0.61716354", "text": "public function addBooking()\n {\n $this->printMovieWelcomeScreen('Movie List');\n $this->getMovieList();\n output::message('What movie ID would you like to book?', 5);\n $movieId = (new input())->getIntResponse(0, 99, true)->getInputData();\n\n if ($movieId) {\n $m = new movies();\n $m->loadMovieData($movieId);\n $booking = new bookings($m);\n\n $this->printMovieWelcomeScreen('Movie: ' . $m->getMovieTitle() . ', ' . $booking->availableSeats() . ' seats available. Date: ' . $m->getMovieDate() . ' @ ' . $m->getMovieTime());\n $booking->printBookingTable()->confirmBooking();\n\n\n if ($booking->getBookingId()) {\n $booking->printBookingDetails();\n }\n\n } else {\n $this->printInit();\n }\n }", "title": "" }, { "docid": "dfe12f5f0e8dbbea93647191d6697160", "score": "0.61468846", "text": "public function bookAction() {\n\t\t// Do nothing\n\t}", "title": "" }, { "docid": "917012415ba7fe58b8c5ca241abbbb7c", "score": "0.61459684", "text": "function bkap_calculate_bookings_for_resource( $resource_id ) {\n\n $booking_posts = bkap_booking_posts_for_resource( $resource_id );\n $dates = array();\n $datet = array();\n $day = date( 'Y-m-d', current_time( 'timestamp' ) );\n $daystr = strtotime( $day );\n $bkap_booking_placed = \"\";\n $bkap_locked_dates = \"\";\n $bkap_time_booking_placed = $bkap_time_locked_dates = \"\";\n $booking_resource_booking_dates = array( 'bkap_booking_placed' => '',\n 'bkap_locked_dates' => ''\n );\n\n $bkap_resource_availability = get_post_meta( $resource_id, '_bkap_resource_qty', true );\n\n\n foreach ( $booking_posts as $booking_key => $booking ) {\n\n if( $booking->start >= $daystr ){\n $qty = $booking->qty;\n $tqty = $booking->qty;\n\n $start_time = ( $booking->get_start_time() != \"\" ) ? $booking->get_start_time() : \"\";\n $end_time = ( $booking->get_end_time() != \"\" ) ? $booking->get_end_time() : \"\";\n\n $time_slot = $start_time . \" - \" . $end_time;\n\n $start_dny = date( 'd-n-Y', $booking->start );\n $end_dny = date( 'd-n-Y', $booking->end );\n\n $get_days = bkap_common::bkap_get_betweendays( $start_dny, $end_dny );\n\n foreach ( $get_days as $days ) {\n\n $Ymd_format = date( 'j-n-Y', strtotime( $days ) );\n\n if ( array_key_exists( $Ymd_format, $dates ) ) {\n\n $dates[ $Ymd_format ] += $qty;\n\n if ( $start_time != \"\" ) {\n\n if ( array_key_exists( $Ymd_format, $datet ) ) {\n if ( array_key_exists( $time_slot, $datet[$Ymd_format] ) ) {\n $datet[$Ymd_format][$time_slot] += $tqty;\n } else {\n $datet[$Ymd_format][$time_slot] = $tqty;\n }\n } else {\n $datet[$Ymd_format][$time_slot] = $tqty;\n }\n }\n } else {\n $dates[$Ymd_format] = $qty;\n $datet[$Ymd_format][$time_slot] = $tqty;\n }\n }\n }\n }\n\n // Date calculations\n foreach ( $dates as $boking_date => $booking_qty ) {\n $bkap_booking_placed .= '\"' . $boking_date . '\"=>'.$booking_qty.',';\n\n if ( $bkap_resource_availability <= $booking_qty ) {\n $bkap_locked_dates .= '\"' . $boking_date . '\",';\n }\n }\n\n // Timeslots calculations\n foreach ( $datet as $boking_date => $booking_time ) {\n\n foreach ( $booking_time as $b_time => $b_qty ){\n $bkap_time_booking_placed .= '\"' . $boking_date . '\"=>'.$b_time . '=>' . $b_qty . ',';\n }\n\n\n if ( $bkap_resource_availability <= $b_qty ) {\n $bkap_time_locked_dates .= '\"' . $boking_date . '\"=>'.$b_time.',';\n }\n }\n\n $bkap_booking_placed = substr_replace( $bkap_booking_placed, '', -1 );\n $bkap_locked_dates = substr_replace( $bkap_locked_dates, '', -1 );\n\n $bkap_time_booking_placed = substr_replace( $bkap_time_booking_placed, '', -1 );\n $bkap_time_locked_dates = substr_replace( $bkap_time_locked_dates, '', -1 );\n\n $booking_resource_booking_dates['bkap_booking_placed'] = $bkap_booking_placed;\n $booking_resource_booking_dates['bkap_locked_dates'] = $bkap_locked_dates;\n $booking_resource_booking_dates['bkap_time_booking_placed'] = $bkap_time_booking_placed;\n $booking_resource_booking_dates['bkap_time_locked_dates'] = $bkap_time_locked_dates;\n $booking_resource_booking_dates['bkap_date_time_array'] = $datet;\n $booking_resource_booking_dates['bkap_date_array'] = $dates;\n\n return $booking_resource_booking_dates;\n}", "title": "" }, { "docid": "9538c879938ee1663b6a13e7e74ba14b", "score": "0.60560584", "text": "public function update(BookingsRequest $request,Booking $booking)\n\t{\n\t $data = $request->all();\n\t\t$start_date = new Carbon($data[\"start_date\"]);\n\t $end_date = new Carbon($data[\"end_date\"]);\n\t\tif($start_date < Date(\"Y-m-d\")){\n\t \treturn redirect()->back()->withInput()->withErrors('start date cannot be prior to todays date');\n\t }\n\t $user = User::find($data[\"booker_id\"]);\n\t // $data[\"booking_number\"] = $this->booking_number();\n\t if(Book::all()->count()==0){\n\t \treturn redirect()->back()->withInput()->withErrors('There are no books available');\n\t }\n\t $book = Book::find($data[\"book_id\"]);\n\t $book->increment(\"avail_books\",$booking->num_booked);\n\t $book->save(); \n\n\t $data[\"booker_id\"] = $user->id;\n\t $num_days = $start_date->diff($end_date)->days;\n \n if($data[\"num_booked\"]<=0){\n \t // dd($book->avail_books >= $data[\"num_booked\"]);\n \treturn redirect()->back()->withInput()->withErrors('You cannot book zero or negative boooks');\n }\n\t if($data[\"num_booked\"]> $book->avail_books){\n\t\t // dd($book->avail_books >= $data[\"num_booked\"]);\n\t \treturn redirect()->back()->withInput()->withErrors('There are not enough books available');\n\t }\n\n\t if($end_date < $start_date){\n\t \treturn redirect()->back()->withInput()->withErrors('start date must not be after end date');\n\t }\n\t $num_days = $start_date->diff($end_date)->days;\n\t\tif($num_days <= 0)\n\t\t{\n\t\t\treturn redirect()->back()->withInput()->withErrors('start date and end date must not be the same');\n\t\t}\n\t $amount = ($num_days * $book->price) * $data[\"num_booked\"] ;\n $discount = 0;\n\t if($user->isLecturer()){\n $discount = $amount * 0.1;\n $data[\"has_discount\"]\t= \"Y\";\n\t }\n\t else{\n\t \t$data[\"has_discount\"]\t= \"N\";\n\t }\n\t $data[\"amount\"] = $amount - $discount;\n\n\t\t$booking->update($data);\n\n\t\t// dd($booking);\n\n\t\t// $user->bookings()->attach($booking);\n\t\t// $booking->book()->attach($book);\n $book->decrement(\"avail_books\",$data[\"num_booked\"]);\n $book->save(); \n $send_data =[\"user\" => $user,\"book\" => $book,\"booking\" => $booking];\n\n \\Mail::send(\"emails.booking\", $send_data, function($message) use ($send_data)\n {\n $message->to($send_data[\"user\"]->email, 'Buang Library')->subject('Booking');\n });\n\t\treturn redirect()->route(\"admin.bookings.index\")->with('flash_notice', 'A booking has been updated');\n\t}", "title": "" }, { "docid": "eb82b1b357965ff0e444e7d4cff53d9e", "score": "0.6032309", "text": "public function fetchBookings(){\n $filter=null;\n\n if(isset($_GET[\"filterBy\"])&&isset($_GET[\"val\"])){\n $filter[\"key\"]=$_GET[\"filterBy\"];\n $filter[\"value\"]=$_GET[\"val\"];\n }\n\n $bookings = $this->bookings->fetch($filter); \n\n if($filter){//if bookings are filtered, sum up participation fees and add it as last element to the bookings array to show in ui\n $participation_fee_obj = [\n \"employee_name\"=>\"\",\n \"employee_mail\"=>\"\",\n \"event_name\"=>\"<h4 style='text-align:right'>Total Price:</h4>\", \n \"participation_fee\"=>\"<h4>\".number_format($this->sumParticipationFee($bookings),2).\"<h4>\", \n \"event_date\"=>\"\",\n \"version\"=>\"\",\n ];\n array_push($bookings,$participation_fee_obj);\n }\n\n return $bookings;\n }", "title": "" }, { "docid": "9ce4d482aa169bde59b97c9570fd3550", "score": "0.60091954", "text": "function print_booking_info($booking){\r\n\techo \"<br>\";\r\n\techo (\"<tr><b>Guests:</b></tr>\");\r\n\t$guests = $booking->get_occupants();\r\n\t// Print each occupant\r\n\tforeach($guests as $currentGuest){\r\n\t\techo (\"<br>\".$currentGuest);\r\n\t}\r\n\t// Print the patient associated with the booking\r\n\t$patient = $booking->get_patient();\r\n\techo (\"<br><br><b>Patient: </b><br>\". $patient.\"<br>\");\r\n\t\r\n\t// print the loaners associated with the booking\r\n//\t$loaners = $booking->get_loaners();\r\n//\techo (\"Loaners: \");\r\n//\tforeach($loaners as $loaner){\r\n//\t\techo ($loaner.\",\");\r\n//\t}\r\n\r\n}", "title": "" }, { "docid": "64ad9154741380b539af612ecdfc46fd", "score": "0.59929407", "text": "public function bookTicket()\n\t{\n\t\t// Bestellnummer erstellen - muss unoques sein\n\t\t$timestamp = strtotime(date('Y-m-d H:i:s'));\n\n\t\t// Hilfsvariablen\n\t\t$a_return \t= array();\n\t\t$s_message \t= '';\n\t\t$a_daten\t\t= array('ticket_state' => 0,\n\t\t\t\t\t\t\t\t\t\t\t\t'order_number' => $timestamp);\n\n\t\t// Aktion nur mit eingeloggtem USer möglich\n\t\tif($this->\n\t\t\t data['i_active_user_id'] > -1)\n\t\t{\n\t\t\t// alle Tickets des angemeldeten Users auf Status 2 updaten\n\t\t\t$a_return = $this->\n\t\t\t\t\t\t\t\t\tTicket_model->\n\t\t\t\t\t\t\t\t\tbookTicket($a_daten);\n\n\t\t\t// Validierung der Message\n\t\t\t// Aktion war erfogreich\n\t\t\tif ($a_return['i_status'] == 0)\n\t\t\t{\n\t\t\t\t$s_message = \"Tickets wurden gebucht\";\n\n\t\t\t// Zu Viele Tickets vorhanden - überbuchung\n\t\t\t} else if($a_return['i_status'] == 4) {\n\n\t\t\t\t$s_message = \"Keine Freien Tickets mehr, versuchen Sie es später nocheinamal\";\n\n\t\t\t} else {\n\n\t\t\t\t$s_message = \"Unbekannter Fehler\";\n\t\t\t}\n\n\t\t// Kein User angemeldet - Keine BErechtigung\n\t\t} else {\n\t\t\t$s_message = 'Sie müssen angemeldet sein für diese Aktion';\n\t\t}\n\n\t\t// Daten aufbereiten\n\t\t$this->\n\t\tsession->\n\t\tset_flashdata('message',\n\t\t\t\t\t\t\t\t\t$s_message);\n\n\t\t// Redirect. damit Formular nich zweimal geschickt wird\n\t \tredirect(site_url() . 'Ticket');\n\t}", "title": "" }, { "docid": "808bb4acc0200910125ca566cd470e71", "score": "0.598357", "text": "function ch_booking_details_content() {\n\techo '<h3>Bookings</h3>';\n\t\n\t\t$current_user = get_current_user_id();\n\tif (function_exists('ch_get_bookings_data')) { \n\t\t$bookings_data = ch_get_bookings_data('bookings');\n\t?>\n\t<table id=\"example\" class=\"table table-striped table-bordered\" cellspacing=\"0\" width=\"100%\">\n\t\t<thead>\n\t\t\t<tr>\n\t\t\t\t<th>Name</th>\n\t\t\t\t<th>Meeting Start DateTime</th>\n\t\t\t\t<th>Meeting End DateTime</th>\n\t\t\t\t<th>Price</th>\n\t\t\t\t<th>Join</th>\n\t\t\t\t<th>Invite</th>\n\t\t\t</tr>\n\t\t</thead>\n\t\t<tbody>\n\t\t<?php\n\t\tforeach($bookings_data as $booking_id => $booking_value){\n\t\t\t//echo'<pre>';var_dump($booking_value);echo'</pre>';\n\t\t\t$user_id = $booking_value->host_id;\n\t\t\t$event_id = $booking_value->event_id;\n\t\t\t$meeting_start = $booking_value->start_time;\n\t\t\t$meeting_end = $booking_value->end_time;\n\t\t\t$host_url = $booking_value->host_url;\n\t\t\t$participant_url = $booking_value->participant_url;\n\t\t\t\n\t\t\t$event_name = '';\n\t\t\t$event_price = '';\n\t\t\t$order = new WC_Order( $event_id );\n\t\t\t$items = $order->get_items();\n\t\t\t\n\t\t\tforeach($items as $k=>$val){\n\t\t\t\t$event_name = $val['name'];\n\t\t\t\t$event_price = $val['total'];\n\t\t\t}\n\t\t\t$user = get_userdata($current_user);\n\t\t\t$user_name = $user->data->display_name;\n\t\t\t$join_url = '';\n\t\t\tif($current_user == $user_id){\n\t\t\t\t//var_dump($host_url);\n\t\t\t\t\n\t\t\t\t$start_date = new DateTime();\n\t\t\t\t\n\t\t\t\t$since_start = $start_date->diff(new DateTime($meeting_start));\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif($since_start->h == 0 && $since_start->i == 10){\n\t\t\t\t\t$join_url = '<a href=\"'.$host_url.'&userId='.$user_id.'&nickName='.$user_id.'\" target=\"_blank\">Join</a>';\n\t\t\t\t}else{\n\t\t\t\t\t$join_url = '<a href=\"#\">Join</a>';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t?>\n\t\t\t\t<tr>\n\t\t\t\t\t<td><?php echo $event_name; ?></td>\n\t\t\t\t\t<td><?php echo $meeting_start; ?></td>\n\t\t\t\t\t<td><?php echo $meeting_end; ?></td>\n\t\t\t\t\t<td>$<?php echo $event_price; ?></td>\n\t\t\t\t\t<td><?php echo $join_url; ?></td>\n\t\t\t\t\t<td><a id =\"participant_popup\" class=\"modal-toggle\" >Invite</a></td>\n\t\t\t\t</tr>\n\t\t\t\t<?php\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t?>\n\t\t\n\t\t <div class=\"moda\">\n\t\t\t<div class=\"modal-overlay modal-toggle\"></div>\n\t\t\t<div class=\"modal-wrapper modal-transition\">\n\t\t\t <div class=\"modal-header\">\n\t\t\t\t<button class=\"modal-close modal-toggle\"><svg class=\"icon-close icon\" viewBox=\"0 0 32 32\"><use xlink:href=\"#icon-close\"></use></svg></button>\n\t\t\t\t<h2 class=\"modal-heading\">Send Invitations</h2>\n\t\t\t </div>\n\t\t\t \n\t\t\t <div class=\"modal-body\">\n\t\t\t\t<div class=\"modal-content\">\n\t\t\t\t <form action=\"<?php echo $_SERVER['REQUEST_URI']; ?>\" method=\"post\" class=\"invite_wrap\">\n\t\t\t\t\t\t<div class=\"invite_wrap_inner\">\n\t\t\t\t\t\t <div>\n\t\t\t\t\t\t\t<input type=\"text\" name=\"participant_name[]\" id=\"\" required />\n\t\t\t\t\t\t\t<input type=\"email\" name=\"participant_email[]\" id=\"\" required />\n\t\t\t\t\t\t\t<input type=\"hidden\" name=\"participant_id[]\" value=\"\" id=\"\" />\n\t\t\t\t\t\t\t<a href=\"javascript:void(0);\" class=\"add_input_button\" title=\"Add field\"><i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i>Add More</a>\n\t\t\t\t\t\t </div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<input type=\"hidden\" name=\"host_id\" value=\"<?php echo $current_user; ?>\" id=\"host_id\" />\n\t\t\t\t\t\t<input type=\"hidden\" name=\"event_id\" value=\"<?php echo $event_id; ?>\" id=\"event_id\" />\n\t\t\t\t\t\t<input type=\"submit\" value=\"Send Invitation\" name=\"submitted\" id=\"invite_btn\" />\n\t\t\t\t </form>\n\t\t\t\t <div class=\"response_div\"></div>\n\t\t\t\t</div>\n\t\t\t </div>\n\t\t\t</div>\n\t\t </div>\t\t\t\n\t\t</tbody>\n\t</table>\n\t<?php\n\t}\t\n}", "title": "" }, { "docid": "6707c124f3a8d49bcd5b42671a65f838", "score": "0.59786254", "text": "Public function book_now(Request $request) {\n\n\t\t$rules = array(\n\n\t\t\t'room_id' => 'required|exists:rooms,id',\n\n\t\t\t'card_type' => 'required',\n\n\t\t\t'check_in' => 'required|date_format:d-m-Y',\n\n\t\t\t'check_out' => 'required|date_format:d-m-Y|after:today|after:check_in',\n\n\t\t\t'number_of_guests' => 'required|integer|between:1,16',\n\n\t\t\t'country' => 'required|exists:country,long_name',\n\n\t\t);\n\n\t\t$niceNames = array('room_id' => 'Room Id');\n\n\t\t$messages = array('required' => ':attribute is required.');\n\n\t\t$validator = Validator::make($request->all(), $rules, $messages);\n\n\t\t$validator->setAttributeNames($niceNames);\n\n\t\tif ($validator->fails()) {\n\n\t\t\t$error = $validator->messages()->toArray();\n\n\t\t\tforeach ($error as $er) {\n\t\t\t\t$error_msg[] = array($er);\n\n\t\t\t}\n\t\t\treturn response()->json([\n\n\t\t\t\t'success_message' => $error_msg['0']['0']['0'],\n\n\t\t\t\t'status_code' => '0']);\n\n\t\t} else {\n\n\t\t\t//validate for payment card type\n\t\t\tif ($request->card_type != 'Credit Card' && $request->card_type != 'PayPal') {\n\n\t\t\t\treturn response()->json([\n\n\t\t\t\t\t'success_message' => 'Invalid Card Type Name Only Allowed Credit Card or PayPal',\n\n\t\t\t\t\t'status_code' => '0',\n\n\t\t\t\t]);\n\n\t\t\t}\n\n\t\t\t$user = JWTAuth::parseToken()->authenticate();\n\n\t\t\t$currency_details = @Currency::where('code', $user->currency_code)->first();\n\n\t\t\t$user_profile_picture = @ProfilePicture::where('user_id', $user->id)->first();\n\n\t\t\t$rooms_info = @Rooms::where('id', $request->room_id)->first();\n\n\t\t\t// prevent from host booking own room\n\t\t\tif (@$user->id == @$rooms_info->user_id) {\n\n\t\t\t\treturn response()->json([\n\n\t\t\t\t\t'success_message' => 'You Can Not Book Your Own Listing',\n\n\t\t\t\t\t'status_code' => '0',\n\n\t\t\t\t]);\n\t\t\t}\n\t\t\t//check rooms date is available or not\n\t\t\t$data = $this->payment_helper->price_calculation(\n\t\t\t\t$request->room_id,\n\t\t\t\t$request->check_in,\n\t\t\t\t$request->check_out,\n\t\t\t\t$request->number_of_guests,\n\t\t\t\t''\n\t\t\t);\n\n\t\t\t$data = json_decode($data, TRUE);\n\n\t\t\t$result = @$data['status'];\n\n\t\t\tif ((isset($data['status'])) && ($result == 'Not available')) {\n\n\t\t\t\treturn response()->json([\n\n\t\t\t\t\t'success_message' => 'Dates Not Available',\n\n\t\t\t\t\t'status_code' => '0',\n\n\t\t\t\t]);\n\t\t\t}\n\n\t\t\tSession::flush();\n\t\t\t//In mobile app booking\n\t\t\t$s_key = $request->s_key ?: time() . $request->id . str_random(4);\n\n\t\t\t$mobile_payment_counry_code = Country::where('long_name', $request->country)->pluck('short_name');\n\t\t\t$payment = array(\n\t\t\t\t'payment_room_id' => $request->room_id,\n\t\t\t\t'payment_checkin' => $request->check_in,\n\t\t\t\t'payment_checkout' => $request->check_out,\n\t\t\t\t'payment_number_of_guests' => $request->number_of_guests,\n\t\t\t\t'payment_special_offer_id' => $request->special_offer_id,\n\t\t\t\t'payment_booking_type' => $request->payment_booking_type,\n\t\t\t\t'payment_reservation_id' => $request->reservation_id,\n\t\t\t\t'payment_cancellation' => ($request->cancellation != '') ? $request->cancellation : $rooms_info->cancel_policy,\n\t\t\t\t'currency' => @$user->currency_code,\n\t\t\t\t'currency_symbol' => @$currency_details->original_symbol,\n\t\t\t\t'mobile_auth_user_id' => $user->id,\n\t\t\t\t'mobile_user_image' => $user_profile_picture->email_src,\n\t\t\t\t'mobile_guest_message' => $request->message,\n\t\t\t\t'payment_card_type' => $request->card_type,\n\t\t\t\t'payment_country' => $request->country,\n\t\t\t\t'payment_message_to_host' => $request->message,\n\t\t\t\t'mobile_payment_counry_code' => $mobile_payment_counry_code,\n\t\t\t\t'user_token' => $request->token,\n\t\t\t);\n\n\t\t\tSession::put('payment.' . $s_key, $payment);\n\n\t\t\tSession::put('s_key', $s_key);\n\t\t\tSession::put('get_token', $request->token);\n\t\t\treturn redirect('api_payments/book/' . $request->room_id . '?s_key=' . $s_key.'&token='.$request->token);\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "63388ba63cb33898bbd1563dea8f3183", "score": "0.5963071", "text": "public function mybookings($message = \"\")\r\n\t\t{\r\n\t\t\t// just a place holder for data \r\n\t\t\t$start_date = Date(\"Y-m-d\");\r\n\t\t\t$end_date = Date(\"2099-12-31\");\r\n\t\t\techo \"this is the message: \" + $message;\r\n\r\n\t\t\t// gets the member id\r\n\t\t\t$user_id = $this->session->userdata('user_id');\r\n\t\t\t$data['message'] = $message;\r\n\t\t\t// gets all the facilitators corresponding to the member id\r\n\t\t\t$facilitator_ids = $this->member_model-> get_facilitators($user_id);\r\n\t\t\t$mybookings_data = $this->member_model->my_bookings_data($facilitator_ids,$start_date,$end_date);\r\n\t\t\t$data['mybookings_data'] = $this->convert_displayable($mybookings_data);\r\n\t\t\t// Check if someone is currently logged in \r\n\t\t\tif (empty($mybookings_data))\r\n\t\t\t{\r\n\t\t\t\t\t\t$data['message'] = 'You are not signed up for any slots in this time range!';\r\n\t\t\t}\r\n\r\n\t\t \t$this->check_login();\r\n\t\t\t//$this->load->view( $this->member_views . 'my_booking_head'); \r\n\t\t\t//$this->load_header();\r\n\t\t\t$this->load->view($this->member_views . 'member_sidebar');\r\n\t\t\t$this->load->view( $this->member_views . 'my_booking_body', $data);\r\n\t\t}", "title": "" }, { "docid": "d332639dda18488d3ea6a773799f5730", "score": "0.59603995", "text": "public function store(BookingsRequest $request)\n\t{\n\t $data = $request->all();\n\t\t$start_date = new Carbon($data[\"start_date\"]);\n\t $end_date = new Carbon($data[\"end_date\"]);\n\t\tif($start_date < Date(\"Y-m-d\")){\n\t \treturn redirect()->back()->withInput()->withErrors('start date cannot be prior to todays date');\n\t }\n\t if(Book::all()->count()==0){\n\t \treturn redirect()->back()->withInput()->withErrors('There are no books available');\n\t }\n\t $book = Book::find($data[\"book_id\"]);\n\t if(!array_key_exists(\"booker_id\" ,$data)){\n\t \treturn redirect()->back()->withInput()->withErrors(\"No user was selected\");\n\t }\n\t\t$user = User::find($data[\"booker_id\"]);\n\t $data[\"booker_id\"] = $user->id;\n\n\t $data[\"booking_number\"] = $this->booking_number();\n\n\t // dd($data);\n\t if($end_date < $start_date){\n\t \treturn redirect()->back()->withInput()->withErrors('start date must not be after end date');\n\t }\n\n\t $num_days = $start_date->diff($end_date)->days;\n\t // dd($num_days);\n\t\tif($num_days <= 0)\n\t\t{\n\t\t\treturn redirect()->back()->withInput()->withErrors('start date and end date must not be the same');\n\t\t}\n\n\t\tif($data[\"num_booked\"] > $book->avail_books ){\n\t \treturn redirect()->back()->withInput()->withErrors('There are not enough books available');\n\t }\n\t $amount = ($num_days * $book->price) * $data[\"num_booked\"] ;\n\t $discount = 0;\n\t if($user->isLecturer()){\n $discount = $amount * 0.1;\n $data[\"has_discount\"]\t= \"Y\";\n\t }else{\n\t \t$data[\"has_discount\"]\t= \"N\";\n\t }\n\t $data[\"amount\"] = $amount - $discount;\n\t $data[\"state\"] = \"pending\";\n\n\t $duplicate= $this->find_duplicate($data[\"booker_id\"],$data[\"book_id\"],$data[\"start_date\"],$data[\"end_date\"]);\n\t // dd($duplicate->isEmpty());\n\t if($duplicate->isEmpty()==false)\n\t {\n return redirect()->back()->withInput()->withErrors('cannot book now because you have booked this book - Please call (+27) 0701694624 and have your booking number ready');\n\t }\n\t\t$booking = Booking::create($data);\n\t\t$user->bookings()->attach($booking);\n\t\t$booking->book()->attach($book);\n $book->decrement(\"avail_books\",$data[\"num_booked\"]);\n $book->save();\n \n $send_data =[\"user\" => $user,\"book\" => $book,\"booking\" => $booking ];\n // return view(\"admin.pages.bookings.partials._email\",compact(\"send_data\"));\n \\Mail::send(\"emails.booking\", $send_data, function($message) use ($send_data)\n {\n $message->to($send_data[\"user\"]->email, 'Buang Library')->subject('Booking');\n });\n\t\tSession::flash('flash_notice', 'Successfully booked this book!');\n return redirect()->route(\"admin.bookings.index\");\n\t}", "title": "" }, { "docid": "636b4e20b7acffba6defed3c6736b7a1", "score": "0.5948527", "text": "public function complete_booking()\n\t\t{\n\t\t\t$result = $this->LockerModel->Complete_Booking();\n\t\t\t//Deduct from ewallet\n\t\t\t$result = $this->Retrieve_model->updated_price($this->session->userdata('Username'));\n\t\t\t\n\t\t\tredirect('Home');\n\t\t}", "title": "" }, { "docid": "4301324611143d186e34cd4374097911", "score": "0.5945327", "text": "function user_bookings_list($app, $userid) {\n\t$sql = \"SELECT bi.rocbookinginfoid as bid, bi.roctransactionid as transid, bi.rocservicetype as serviceid, cs.roccabservices as servicetype, bi.rocservicename as servicename, bi.rocservicechargeperkm scpkm, bi.rocservicekm as servicekm, bi.rocservicestimatedrs as sers, bi.rocbookingfromlocation bfl, bi.rocbookingtolocation as btl, bi.rocserviceclass as sc, bi.rocuserid as uid, bi.rocvendorid as vid, bi.rocbookingdatetime as bdatetime, bi.rocbookingstatus bstatus FROM rocbookinginfo bi, roccabservices cs WHERE bi.rocservicetype = cs.roccabservicesid AND bi.rocuserid = :rocuserid\";\n\ttry {\n\t\t$db = getDB();\n\t\t$stmt = $db->prepare($sql);\n\t\t$stmt->bindParam(\":rocuserid\", $userid);\n\t\t$stmt->execute();\n\t\t$booking_data = $stmt->fetchAll(PDO::FETCH_OBJ);\n\t\t$db = null;\n\t\t$count = count($booking_data);\n\t\tif($count) {\n\t\t\t$booking_data = array(\"total\" => $count, \"results\" => $booking_data);\n\t\t\techo json_encode($booking_data);\n\t\t\t$app->response->setStatus(200);\n\t\t}\n\t\telse {\n\t\t\t$booking_data = array(\"total\" => 0, \"results\" => array());\n\t\t\techo json_encode($booking_data);\n\t\t\t$app->response->setStatus(200);\n\t\t}\n\t} catch(PDOException $e) {\n\t //error_log($e->getMessage(), 3, '/var/tmp/php.log');\n\t\techo '{\"error\":{\"message\":\"'. $e->getMessage() .'\"}}'; \n\t\t$app->response->setStatus(500);\n\t}\n}", "title": "" }, { "docid": "675f229a1bc847374f4f723db84410dd", "score": "0.594242", "text": "function makeBooking($memberNo,$car,$bayID,$bookingDate,$bookingHour,$duration) {\r\n \r\n $db = connect();\r\n //Start a new transaction\r\n $db->beginTransaction();\r\n//Check that the bayId exists and get the bay dimensions\r\ntry {\r\n $stmt = $db->prepare('SELECT length, width, height FROM ParkBay WHERE bayID=:bayID');\r\n\r\n $stmt->bindValue(':bayID', $bayID);\r\n\r\n $stmt->execute();\r\n \r\n $bayDimensions = $stmt->fetchAll();\r\n \r\n $stmt->closeCursor();\r\n if($bayDimensions == array()){\r\n $success = 'fail';\r\n print \"No Bay With That ID Exists. Please Use Search Page To Find A Bay.\"; \r\n $db->rollBack();\r\n return;\r\n }else{\r\n $success = 'success'; \r\n }\r\n\r\n\r\n }catch (PDOException $e) { \r\n print \"No Bay With That ID Exists. Please Use Search Page To Find A Bay.\"; \r\n $db->rollBack();\r\n return;\r\n }\r\n\r\n //Check that the bay is available for the requested time\r\n try {\r\n\r\n $stmt = $db->prepare('SELECT avail_wk_start, avail_wk_end\r\n FROM ParkBay\r\n WHERE bayID=:bayID');\r\n //WHERE (avail_wk_start, avail_wk_end) OVERLAPS (:bookingHour, :bookingEnd)\");');\r\n //WHERE (:bookingHour, :bookingHour+:duration) OVERLAPS ( avail_wk_start, avail_wk_end)\");');\r\n\r\n $stmt->bindValue(':bayID', $bayID);\r\n $stmt->execute();\r\n $results = $stmt->fetchAll();\r\n $stmt->closeCursor();\r\n\r\n\r\n if($results[0]['avail_wk_start'] <= $bookingHour && $results[0]['avail_wk_end'] >= ($bookingHour + $duration)){\r\n $success = 'success';\r\n }else{\r\n $success = 'fail';\r\n print \"The Bay Is Unavailable For The Requested Time\";\r\n $db->rollBack();\r\n return;\r\n }\r\n \r\n } catch (PDOException $e) { \r\n $success = 'fail';\r\n print \"The Bay Is Unavailable For The Requested Time\"; \r\n $db->rollBack();\r\n return;\r\n }\r\n\r\n //Get the car dimensions\r\ntry {\r\n $stmt = $db->prepare('SELECT length, width, height FROM CarType NATURAL JOIN Car WHERE memberNo=:memberNo AND name=:car');\r\n\r\n $stmt->bindValue(':memberNo', $memberNo);\r\n $stmt->bindValue(':car', $car);\r\n\r\n $stmt->execute();\r\n \r\n $carDimensions = $stmt->fetchAll();\r\n \r\n $stmt->closeCursor();\r\n\r\n if($carDimensions == array()){\r\n print \"You Do Not Own A Car With That Name.\"; \r\n $db->rollBack();\r\n return;\r\n }\r\n\r\n\r\n }catch (PDOException $e) { \r\n print \"Error Fecthing Car Dimensions: \"; \r\n $db->rollBack();\r\n return;\r\n }\r\n\r\n//Compare the car and bay dimensions\r\n for($i = 0; $i < 3; $i++){\r\n if($carDimensions[0][$i] > $bayDimensions[0][$i]){\r\n\r\n print \"Car dimesions too large for bay\";\r\n $db->rollBack();\r\n return;\r\n }\r\n }\r\n\r\n//Check that the bay is not already booked at that time\r\n \r\ntry {\r\n\r\n $stmt = $db->prepare('SELECT bookingHour, duration\r\n FROM Booking \r\n WHERE bayID=:bayID AND bookingDate=:bookingDate');\r\n\r\n $stmt->bindValue(':bayID', $bayID);\r\n $stmt->bindValue(':bookingDate', $bookingDate);\r\n //$stmt->bindValue(':bookingHour', $bookingHour);\r\n //$stmt->bindValue(':duration', $duration);\r\n //$stmt->bindValue(':memberNo', $memberNo);\r\n //$stmt->bindValue(':car', $car);\r\n\r\n\r\n\r\n $stmt->execute();\r\n $bookingInfo = $stmt->fetchAll();\r\n $stmt->closeCursor();\r\n\r\n if($bookingInfo == array()){\r\n //Then no booking for the selected ParkBay on this date and the user can book it\r\n $success = 'success';\r\n }else{\r\n foreach($bookingInfo as $booking) {\r\n \r\n\r\n \r\n if(($booking['bookinghour'] + $booking['duration']) >= $bookingHour || ($bookingHour + $duration) <= $booking['bookinghour']){\r\n //The selected times overlap with a previous booking and the booking cannot be made\r\n print \"Error Creating Booking, The Park Bay Is Already Booked At This Time.\";\r\n $db->rollBack(); \r\n return;\r\n } \r\n }\r\n }\r\n \r\n // $stmt = $db->prepare('SELECT bookingID\r\n // FROM Booking \r\n // WHERE bayID=:bayID AND bookingDate=:bookingDate \r\n // AND (:bookingStart, :bookingEnd) OVERLAPS ( bookingHour, (bookingHour + duration))');\r\n\r\n\r\n\r\n // $stmt = $db->prepare('SELECT bookingID\r\n // FROM Booking \r\n // WHERE bayID=:bayID AND bookingDate=:bookingDate \r\n // AND (:bookingStart, :bookingEnd) OVERLAPS ( bookingHour, (bookingHour + duration))');\r\n // // WHERE (bookingDate, bookingDate) OVERLAPS ( '2007-01-01'::Date, '2008-04-12'::Date)\");\r\n\r\n // $stmt->bindValue(':bayID', $bayID);\r\n // $stmt->bindValue(':bookingDate', $bookingDate);\r\n // $stmt->bindValue(':bookingStart', $bookingHour);\r\n // $stmt->bindValue(':bookingEnd', ($bookingHour + $duration));\r\n // //$stmt->bindValue(':memberNo', $memberNo);\r\n // //$stmt->bindValue(':car', $car);\r\n\r\n\r\n\r\n // $stmt->execute();\r\n // $bookingInfo = $stmt->fetchAll();\r\n // $stmt->closeCursor();\r\n\r\n // if($bookingInfo == array()){\r\n // //Then no booking for the selected ParkBay on this date and the user can book it\r\n // $success = 'success';\r\n // }else{\r\n // print \"Error Creating Booking, The Park Bay Is Already Booked At This Time.\"; \r\n // return;\r\n // }\r\n \r\n } catch (PDOException $e) { \r\n $success = 'fail';\r\n print(\"hey\");\r\n print \"Error creating booking: That booking already exists\";\r\n $db->rollBack(); \r\n return;\r\n }\r\n\r\n \r\n try {\r\n\r\n $stmt = $db->prepare('INSERT INTO Booking VALUES (DEFAULT, :bayID, :bookingDate, :bookingHour, :duration, :memberNo, :car)');\r\n //INSERT INTO Booking VALUES (DEFAULT, 20, CURRENT_DATE, 9, 2, 1, 'Lance the Yaris')\r\n\r\n $stmt->bindValue(':bayID', $bayID);\r\n $stmt->bindValue(':bookingDate', $bookingDate);\r\n $stmt->bindValue(':bookingHour', $bookingHour);\r\n $stmt->bindValue(':duration', $duration);\r\n $stmt->bindValue(':memberNo', $memberNo);\r\n $stmt->bindValue(':car', $car);\r\n\r\n\r\n $success = 'success';\r\n\r\n $stmt->execute();\r\n \r\n $stmt->closeCursor();\r\n \r\n } catch (PDOException $e) { \r\n $success = 'fail';\r\n print \"\\nError creating booking: That booking already exists\";\r\n $db->rollBack(); \r\n return;\r\n }\r\n\r\n try { //Use the unique triple of bayID, bookingDate and bookingHour to obtain the default created bookingID\r\n $stmt = $db->prepare('SELECT BookingID FROM Booking WHERE bayID=:bayID AND bookingDate=:bookingDate AND bookingHour=:bookingHour');\r\n \r\n $stmt->bindValue(':bayID', $bayID);\r\n $stmt->bindValue(':bookingDate', $bookingDate);\r\n $stmt->bindValue(':bookingHour', $bookingHour);\r\n \r\n\r\n $stmt->execute();\r\n \r\n $bookingID = $stmt->fetchColumn();\r\n \r\n $stmt->closeCursor();\r\n\r\n } catch (PDOException $e) { \r\n $success = 'fail';\r\n print \"Error Reading Booking ID\";\r\n $db->rollBack(); \r\n return;\r\n }\r\n\r\n\r\n try {\r\n $stmt = $db->prepare('SELECT hourly_rate FROM Member LEFT OUTER JOIN MembershipPlan ON (plan = title) WHERE memberNo=:memberNo');\r\n\r\n \r\n $stmt->bindValue(':memberNo', $memberNo);\r\n\r\n $stmt->execute();\r\n \r\n $results = $stmt->fetchColumn();\r\n \r\n $stmt->closeCursor();\r\n \r\n $cost = $results * $duration;\r\n\r\n\r\n\r\n } catch (PDOException $e) { \r\n $success = 'fail';\r\n print \"Error creating Booking\"; \r\n $db->rollBack();\r\n return;\r\n }\r\n\r\n //Commit the transaction if everything worked\r\n $db->commit();\r\n\r\n return array(\r\n 'status'=>$success,\r\n 'bookingID'=>$bookingID,\r\n 'bayID'=>$bayID,\r\n 'car'=>$car,\r\n 'bookingDate'=>$bookingDate,\r\n 'bookingHour'=>$bookingHour,\r\n 'duration'=>$duration,\r\n 'cost'=>$cost\r\n );\r\n}", "title": "" }, { "docid": "c196c3bdef50854113fda2279a1fdea7", "score": "0.59202766", "text": "function doBooking($db, $date, $hourStr, $student) {\n try {\n $db->beginTransaction();\n // Convert hour \"11:30\" to integer 1130\n $val = explode(\":\", $hourStr);\n $time = $val[0] * 100 + $val[1];\n\n // Get details for available hour from database\n $sql = \"SELECT * FROM calendar WHERE date = ? AND time = ? AND student = ?;\";\n $res = $db->executeFetch($sql, [$date, $time, \"admin\"]);\n if (!$res) {\n throw new Exception();\n }\n\n // Update first slot\n $now = date(\"Y-m-d H:i:s\");\n $sql = \"UPDATE calendar SET student = ?, bookdate = ? WHERE date = ? AND time = ? AND student = ?;\";\n $db->execute($sql, [$student, $now, $date, $time, \"admin\"]);\n // Update second slot\n if ($res->duration == 60) {\n $time2 = ($time % 100 == 0) ? $time + 30 : $time + 70;\n $db->execute($sql, [$student, $now, $date, $time2, \"admin\"]);\n }\n $db->commit();\n // Redirect\n header(\"Location: ?route=admin_calendar_2&selDate=$date\");\n } catch (Exception $ex) {\n $db->rollBack();\n throw new Exception(\"Booking failed: time no longer available.\");\n }\n}", "title": "" }, { "docid": "2c618ced83ae71c5d8b6dffbfdc91e06", "score": "0.59140235", "text": "function testdbBookingsModule() {\n $today = date('y-m-d');\n $b = new Booking($today,\"\",\"Meghan2075551234\",\"pending\",\"\",\"Tiny\",\n array(\"Meghan:mother\", \"Jean:father\", \"Teeny:sibling\"),\n array(), \"\", \"\", \"Millie2073631234\",\"Maine Med\", \"SCU\", \"00000000000\",\n \"$10 per night\", \"\",\"\",\"\",\"new\");\n $this->assertTrue(insert_dbBookings($b));\n $this->assertTrue(retrieve_dbBookings($b->get_id()));\n //$this->assertTrue(in_array(\"Meghan2077291234\", $b->get_guest_id()));\n \n //checks that the initial status is \"pending\"\n $this->assertTrue(retrieve_dbBookings($b->get_id())->get_status(), \"pending\");\n \n //checks that initial flag is \"new\"\n $this->assertTrue(retrieve_dbBookings($b->get_id())->get_flag(), \"new\");\n $pending_bookings = retrieve_all_pending_dbBookings();\n // $this->assertEqual($pending_bookings[0]->get_id(), $b->get_id());\n \n // make some changes and test updating it in the database\n // Add a loaner to the booking\n\t\t$b->add_loaner(\"remote3\");\n\t\t$b->add_occupant(\"Jordan\",\"brother\");\n\t\t$b->set_flag(\"viewed\");\n $this->assertTrue($b->assign_room(\"126\",$today));\n $bretrieved = retrieve_dbBookings($b->get_id());\n $this->assertTrue(in_array(\"Jordan: brother\", $bretrieved->get_occupants()));\n $this->assertTrue(in_array(\"remote3\", $bretrieved->get_loaners()));\n $this->assertEqual($bretrieved->get_status(),\"active\");\n $this->assertEqual($bretrieved->get_id(), $b->get_id());\n $this->assertEqual($bretrieved->get_room_no(), \"126\");\n $today = date('y-m-d');\n $this->assertEqual($bretrieved->get_date_in(), $today);\n $this->assertEqual($bretrieved->get_flag(), \"viewed\");\n \n //tests updating after a checkout\n $this->assertTrue($bretrieved->check_out($today));\n $bretrieved2 = retrieve_dbBookings($b->get_id());\n $this->assertEqual($bretrieved2->get_status(), \"closed\");\n $this->assertEqual($bretrieved2->get_date_out(),$today);\n \n //tests the delete function\n $this->assertTrue(delete_dbBookings($b->get_id()));\n $this->assertFalse(retrieve_dbBookings($b->get_id()));\n \n \n \n echo (\"testdbBookings complete\");\n }", "title": "" }, { "docid": "99708f033ec514b7a926225e93a334fd", "score": "0.59074813", "text": "public function submitted_booking()\n {\n $submittedBooking1 = Booking::factory()->submitted()->create();\n $submittedBooking2 = Booking::factory()->submitted()->create();\n $confirmedBooking = Booking::factory()->confirmed()->create();\n\n $submittedBookings = Booking::submitted()->get();\n\n $this->assertTrue($submittedBookings->contains($submittedBooking1));\n $this->assertTrue($submittedBookings->contains($submittedBooking2));\n $this->assertFalse($submittedBookings->contains($confirmedBooking));\n }", "title": "" }, { "docid": "e5b7fa36be22d5a826e44b27fa4aa47a", "score": "0.5898659", "text": "function schedToBooklet(){\n\t$formData = processCsv('sched final.csv');\n\n\t// See what is there\n\t//print_r($formData);\n\t\n\t// Get the number read in\n\t$numEvents = count($formData);\n\t\n\t// Sort the events based on start time\n\tusort($formData, 'date_compare');\n\t\n\t// Loop through each event, print out a description\n\tfor($i=0; $i<$numEvents; $i++){\n\t\t\n\t\t// Skip events without names\n\t\tif($formData[$i][\"name\"] != \"\")\t\t\n\t\t\techo printEvent($formData, $i);\n\t\t\n\t}\n\t\n}", "title": "" }, { "docid": "de68b719dfe3dcc1701429a42b4edecb", "score": "0.58783203", "text": "public function bookings(){\n return view('pages.bookings');\n }", "title": "" }, { "docid": "7f2bd679b46215ecc0a82d4a7528bfaa", "score": "0.5859511", "text": "public function book_meeting_room(){\n\t\tauthenticate(array('ut5'));\n\t\t$userId = $this->session->userdata(\"userId\");\n\t\t$userTypeId = $this->session->userdata(\"userTypeId\");\n\t\t$data['userData'] = $this->receptionist_login->getUserProfile($userId);\n\t\t$data['location']=$this->lm->getlocationbycity($data['userData']['city_id']); \n\t\t$data['cities']=$this->lm->getcities();\n\t\t\n\t\t$data['business_data']=$this->client_model->getbusinessbyuserlocation($data['userData']['city_id'],$data['userData']['location_id']); \n\t\t$data['meeting_data']=$this->client_model->getmeetingbybusiness($data['business_data'][0]['business_id']);\n\t\tif(!empty($data['meeting_data'])){\n\t\t\t$starttime = strtotime($data['meeting_data'][0]['start_time']); \n\t\t\t$endtime = strtotime($data['meeting_data'][0]['end_time']); \n\t\t\t$data['diff'] = abs($endtime - $starttime) / 3600;\n\t\t}\n\t\t$this->load->view(\"book_meeting_room\",$data);\t \n\t}", "title": "" }, { "docid": "c59fc807d5929ce6b9e9f5576a82dbb5", "score": "0.5856072", "text": "public function book(Request $request)\n {\n $appointment = new Appointment;\n $appointment->name = $request->input('user.firstname') . ' ' . $request->input('user.surname') . ' - ' . $request->input('appointment.appointmentType.name');\n $appointment->employee_id = $request->input('appointment.employee.id');\n $appointment->customer_id = $request->input('user.id');\n $appointment->appointment_type_id = $request->input('appointment.appointmentType.id');\n\n $date = Carbon::parse($request->input('appointment.date'));\n list($hour, $minute) = explode(':', $request->input('appointment.from'));\n $date->setTime($hour, $minute);\n\n $appointment->scheduled_at = $date->toDateTimeString();\n $appointment->save();\n\n return 'Succesfully booked';\n }", "title": "" }, { "docid": "7853a5ea3ba3024ceb15ae7fd45e458d", "score": "0.5852523", "text": "public function myBookings() {\n $this->layout = \"merchant_front\";\n $merchantId = $this->Session->read('hq_id');\n $user_id = AuthComponent::User('id');\n if (empty($merchantId) && empty($user_id)) {\n $this->merchant();\n }\n $this->loadModel('Booking');\n $this->Booking->bindModel(array('belongsTo' => array('BookingStatus' => array('className' => 'BookingStatus',\n 'fields' => array('id', 'name')))), false);\n $this->Store->unbindModel(array('hasOne' => array('SocialMedia'), 'belongsTo' => array('StoreTheme', 'StoreFont'), 'hasMany' => array('StoreGallery', 'StoreContent')));\n $this->Booking->bindModel(array(\n 'belongsTo' => array(\n 'Store' => array(\n 'className' => 'Store',\n 'foreignKey' => 'store_id',\n 'fields' => array('id', 'store_name'),\n 'type' => 'INNER',\n 'conditions' => array('Store.is_deleted' => 0, 'Store.is_active' => 1)\n ))\n ), false);\n\n $value = \"\";\n $fromdate = \"\";\n $enddate = \"\";\n $encryptedlock_storeId = \"\";\n if (isset($this->params->pass[0]) && !empty($this->params->pass[0])) {\n if ($this->params->pass[0] == 'clear') {\n $this->Session->delete('HqMyreservationSearchData');\n }\n }\n if ($this->Session->read('HqMyreservationSearchData') && !$this->request->is('post')) {\n $this->request->data = json_decode($this->Session->read('HqMyreservationSearchData'), true);\n } else {\n $this->Session->delete('HqMyreservationSearchData');\n }\n\n if ($this->Session->read('HqMyreservationSearchData') && !$this->request->is('post')) {\n $this->request->data = json_decode($this->Session->read('HqMyreservationSearchData'), true);\n } else {\n $this->Session->delete('HqMyreservationSearchData');\n }\n\n if (!empty($this->request->data)) {\n $conditions1 = array();\n $this->Session->write('HqMyreservationSearchData', json_encode($this->params->query));\n if (!empty($this->request->data['MyBooking']['from_date'])) {\n $fromdate = $this->Dateform->formatDate(trim($this->request->data['MyBooking']['from_date']));\n $conditions1['Date(Booking.reservation_date) >='] = $fromdate;\n }\n\n if (!empty($this->request->data['MyBooking']['to_date'])) {\n $enddate = $this->Dateform->formatDate(trim($this->request->data['MyBooking']['to_date']));\n $conditions1['Date(Booking.reservation_date) <='] = $enddate;\n }\n\n if (!empty($this->request->data['Merchant']['store_id'])) {\n $conditions = array('Booking.is_deleted' => 0, 'Booking.is_active' => 1, 'Booking.user_id' => $user_id, 'Booking.store_id' => $this->Encryption->decode($this->request->data['Merchant']['store_id']));\n $conditions = array_merge($conditions, $conditions1);\n $this->paginate = array(\n 'conditions' => $conditions,\n 'order' => 'Booking.created DESC',\n 'limit' => 10\n );\n } else {\n $conditions = array('Booking.is_deleted' => 0, 'Booking.is_active' => 1, 'Booking.user_id' => $user_id);\n $conditions = array_merge($conditions1, $conditions);\n $this->paginate = array(\n 'conditions' => $conditions,\n 'order' => 'Booking.created DESC',\n 'limit' => 10\n );\n }\n } else {\n $this->paginate = array(\n 'conditions' => array('Booking.user_id' => $user_id, 'Booking.is_active' => 1, 'Booking.is_deleted' => 0),\n 'order' => 'Booking.created DESC',\n 'limit' => 10\n );\n }\n $myBookings = $this->paginate('Booking');\n $this->set(compact('myBookings'));\n }", "title": "" }, { "docid": "a5b591552614685ed5b30fabfe0a6e7d", "score": "0.5846681", "text": "function hookBook()\n {\n _trace('hookBook()');\n \n if ($this->_stayInState)\n {\n _trace('stayInState');\n // In this case, we came from the bookExtension.inc\n // and we just want to extract and return the swf data\n // for the book - we don't want to move to the next state.\n global $gBookId;\n global $gReturnValue;\n \n // Fine the position of ...\n $pos = strpos($gReturnValue, '&serverTimeOffset=');\n \n // Get everthing before the stirng\n $beforePos = substr($gReturnValue, 0, $pos);\n \n // Get everything after the string\n $afterPos = substr($gReturnValue, $pos, strlen($gReturnValue));\n \n // Generate our extension arguments for the swf.\n $currentStateId = $this->_stateMachine->getStateAsInteger();\n $gameWinSwf = sprintf('_%sGameWinSwf', TransformXML::lcfirst(career::mapIntegerToTaskString($currentStateId)));\n $args = sprintf('&extensionMovieClip=%s',\n urlencode(IMAGE_HOST . $this->$gameWinSwf)); \n // Re-assemble the string.\n $gReturnValue = $beforePos . $args . $afterPos; \n }\n else\n {\n _trace('going to next state');\n // In this case we came from the API, and we can go to the next state.\n list($state, $job) = career::mapTaskToStateClass($this->_id,\n (($this->_stateMachine->getStateAsInteger())+1)); // we want the NEXT state\n \n include_once(sprintf('%s%sStateMachine/States/%s%s.class.inc', ROOT, CD_PATH, $job, $state));\n $newState = sprintf('%s%s', $job, $state);\n $c = new $newState;\n $this->_stateMachine->changeState($c, $this);\n } \n }", "title": "" }, { "docid": "8563f211551d520eae7813e9fa9548cb", "score": "0.5842273", "text": "function ticket_booking() {\n //print_r($this->request->getUserAgent()->getReferrer()); die;\n \n $data = [];\n $_SESSION['ccancel_url'] = $this->request->getUserAgent()->getReferrer();\n $data['time'] = $this->request->getVar('rtime');\n $data['rdate'] = $this->request->getVar('rdate');\n $data['content'] = $this->request->getVar('content');\n $data['priceset'] = $this->request->getVar('priceset');\n $data['location'] = $this->request->getVar('location');\n $data['showid'] = $this->request->getVar('showid');\n $data['pcount'] = $this->request->getVar('pcount');\n $data['venueid'] = $this->request->getVar('venueid');\n $data['venue_details'] = $this->model->get_venue($data['venueid']);\n \n $data['page_title'] = 'POS - Ticket Booking';\n $data['search_url'] = base_url().'/shows/search';\n $_SESSION['chart_type'] = @$data['venue_details'][0]->chart_type;\n if($_SESSION['chart_type'] == 'seats') {\n $data['form_action'] = base_url().'/seatings';\n $data['sectype'] = 1;\n } else {\n $data['form_action'] = base_url().'/cart';\n $data['sectype'] = 2;\n }\n \n $data['current'] = 'ticket';\n $data['referrer'] = current_url();\n $data['go_back'] = $this->request->getUserAgent()->getReferrer();\n $data['categories'] = $this->model->get_categories();\n $data['get_price_details'] = $this->model->get_price_data($data['priceset']);\n $data['content_detail'] = $this->model->get_show($data['content']);\n \n $data['price_seg']= [];\n $data['price_type'] = [];\n $data['pcount'] = 0;\n \n if(!empty($data['get_price_details'][0]->price1)) { \n $data['pcount']++;\n $data['price_seg'][$data['pcount']] = $data['get_price_details'][0]->price1;\n $data['price_type'][$data['pcount']] = $data['get_price_details'][0]->type1;\n\n }\n if(!empty($data['get_price_details'][0]->price2)) { \n $data['pcount']++;\n $data['price_seg'][$data['pcount']] = $data['get_price_details'][0]->price2;\n $data['price_type'][$data['pcount']] = $data['get_price_details'][0]->type2;\n\n }\n if(!empty($data['get_price_details'][0]->price3)) { \n $data['pcount']++;\n $data['price_seg'][$data['pcount']] = $data['get_price_details'][0]->price3;\n $data['price_type'][$data['pcount']] = $data['get_price_details'][0]->type3;\n \n if (strpos($data['get_price_details'][0]->type3, 'Family') !== false) {\n $data['no_of_seats'][$data['pcount']] = 0; \n }\n\n }\n if(!empty($data['get_price_details'][0]->price4)) { \n $data['pcount']++;\n $data['price_seg'][$data['pcount']] = $data['get_price_details'][0]->price4;\n $data['price_type'][$data['pcount']] = $data['get_price_details'][0]->type4;\n if (strpos($data['get_price_details'][0]->type4, 'Family') !== false) {\n $data['no_of_seats'][$data['pcount']] = 0; \n }\n }\n if(!empty($data['get_price_details'][0]->price5)) { \n $data['pcount']++;\n $data['price_seg'][$data['pcount']] = $data['get_price_details'][0]->price5;\n $data['price_type'][$data['pcount']] = $data['get_price_details'][0]->type5;\n if (strpos($data['get_price_details'][0]->type5, 'Family') !== false) {\n $data['no_of_seats'][$data['pcount']] = 0; \n }\n }\n\n if(!empty($data['get_price_details'][0]->price6)) { \n $data['pcount']++;\n $data['price_seg'][$data['pcount']] = $data['get_price_details'][0]->price6;\n $data['price_type'][$data['pcount']] = $data['get_price_details'][0]->type6;\n if (strpos($data['get_price_details'][0]->type6, 'Family') !== false) {\n $data['no_of_seats'][$data['pcount']] = 0; \n }\n }\n\n if(!empty($data['get_price_details'][0]->price7)) { \n $data['pcount']++;\n $data['price_seg'][$data['pcount']] = $data['get_price_details'][0]->price7;\n $data['price_type'][$data['pcount']] = $data['get_price_details'][0]->type7;\n if (strpos($data['get_price_details'][0]->type7, 'Family') !== false) {\n $data['no_of_seats'][$data['pcount']] = 0; \n }\n }\n //echo \"<pre>\"; print_r($data); \"</pre>\"; die;\n return view('ticket_booking',$data);\n }", "title": "" }, { "docid": "0c8b801398fa01d00b8f4ccf69500e15", "score": "0.5817992", "text": "function addBook($title, $quantity, $a_name, $a_surname, $publisher_name) {\r\n\t\r\n\tif(($title == NULL) || ($a_name == NULL) || ($a_surname == NULL) || ($publisher_name == NULL)) { /* control params - just in case */\r\n\t\treturn -1;\r\n\t}\r\n\t$p_id = -1;\r\n\t$a_id = -1;\r\n\t$p_id = getPublisherId($publisher_name);\r\n\tif($p_id < 1) { /* failed getting id of publisher */\r\n\t\treturn -1;\r\n\t}\r\n\t\r\n\t$a_id = getAuthorId($a_name, $a_surname);\r\n\tif($a_id < 1) { /* failed getting id of author */\r\n\t\treturn -1;\r\n\t}\r\n\t\r\n\t$sql = mysqli_query($_SESSION[\"conn\"], \"select bookID, stock_num \r\n\t\t\t\t\t\t\t\t\t\t\tfrom books \r\n\t\t\t\t\t\t\t\t\t\t\twhere title = '\".$title.\"' \r\n\t\t\t\t\t\t\t\t\t\t\tand authorID = '\".$a_id.\"' \r\n\t\t\t\t\t\t\t\t\t\t\tand publisherID = '\".$p_id.\"' \");\r\n\tif(mysqli_num_rows($sql)) { /* if a record already exist */\r\n\t\r\n\t\t$result = mysqli_fetch_object($sql);\r\n\t\t$b_id = $result->bookID; /* return id of book */\r\n\t\t$stock_num = $result->stock_num; /* return stock number of book */\r\n\t\t\r\n\t\tif(($stock_num == NULL) || ($b_id == NULL)) {\t\r\n\t\t\t/* something is wrong */\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\t/* increase stock number of related book */\r\n\t\t$new_quantity = $quantity + $stock_num;\r\n\t\t$update = mysqli_query($_SESSION[\"conn\"], \"UPDATE books SET stock_num = \".$new_quantity.\" where bookID = \".$b_id.\"\");\r\n\t\t\r\n\t\t/* give book to users */\r\n\t\t\r\n\t\t$query2 = \"select userID from waitings where bookID = \".$b_id.\" order by waitingID asc\";\r\n\t\t$users= mysqli_query($_SESSION[\"conn\"], $query2);\r\n\t\t\r\n\t\tif(mysqli_num_rows($users)) {\r\n\t\t\t\r\n\t\t\t$counter = 0;\r\n\t\t\twhile($row = mysqli_fetch_array($users)){\r\n\t\t\t\t\r\n\t\t\t\t$res = borrowBook($row[\"userID\"], $b_id);\r\n\t\t\t\tif($res == 1) $counter++;\r\n\t\t\t\t\r\n\t\t\t\tif($counter >= $quantity) break;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn 1;\r\n\t}\r\n\telse {\t/* record does not exist */\r\n\t\t/* create new book record */\r\n\t\t$insert = mysqli_query($_SESSION[\"conn\"], \"insert into books(title, stock_num, authorID, publisherID) values('\".$title.\"', \".$quantity.\", \".$a_id.\", \".$p_id.\")\");\r\n\t\t\r\n\t\tif($insert == NULL) { /* insertion failed */\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\telse { /* insertion success */\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t}\r\n}", "title": "" }, { "docid": "1e4ad7557935d13dcbc000a62ea25138", "score": "0.5792895", "text": "function handleExpire ($dbh) {\r\n $records_with_available_and_expire = array();\r\n $sql = \"select * from book_reserved where status = 'available' and date_format(date_expire,'%Y%m%d') <= date_format(curdate(),'%Y%m%d')\";\r\n foreach($dbh->query($sql) as $row){\r\n array_push($records_with_available_and_expire, $row);\r\n // fields : reservation_id, member_id, accession_id, ISBN, date_reserved, date_available, date_expire, status\r\n }\r\n\r\n //counting number of records that satisfy the above query\r\n $count = $dbh->query(\"select count(*) from book_reserved where status = 'available' and date_format(date_expire,'%Y%m%d') <= date_format(curdate(),'%Y%m%d')\")->fetchColumn();\r\n\r\n\r\n if($count >= 1){\r\n foreach($records_with_available_and_expire as $record_with_available_and_expire){\r\n\r\n //fetching the book record\r\n $sql = \"select * from book_basic where ISBN = :ISBN\";\r\n $stmt = $dbh->prepare($sql);\r\n $stmt->execute(array(\":ISBN\" => $record_with_available_and_expire['ISBN']));\r\n $book = $stmt->fetch();\r\n\r\n //changing status available -> cancelled\r\n $dbh->query(\"update book_reserved set accession_id = null, status = 'cancelled' where reservation_id = \".$record_with_available_and_expire['reservation_id']);\r\n\r\n //and send notification for it\r\n $dbh->query(\"insert into notification (member_id, message, date_notif, href) values('\".$record_with_available_and_expire['member_id'].\"', 'I am sorry. \".$book['title'].\" you have reserved already expired.', now(), 'member_book_details.php?isbn=\".$record_with_available_and_expire['ISBN'].\"' )\");\r\n\r\n //fetching reservation record of the person who is the first in Line\r\n $sql = \"select * from book_reserved r, member_basic m where m.member_id = r.member_id and ISBN = :ISBN and status = 'waiting' ORDER BY case member_type when 'Faculty' then 1 when 'Staff' then 1 else 2 end, date_reserved limit 1\";\r\n $stmt = $dbh->prepare($sql);\r\n $stmt->execute(array(\":ISBN\" => $record_with_available_and_expire['ISBN']));\r\n $reservation_record_who_firstinLine = $stmt->fetch();\r\n\r\n $inLine_rowCount = $dbh->query(\"select count(*) from (select r.* from book_reserved r, member_basic m where m.member_id = r.member_id and ISBN = '\".$record_with_available_and_expire['ISBN'].\"' and status = 'waiting' ORDER BY case member_type when 'Faculty' then 1 when 'Staff' then 1 else 2 end, date_reserved) as count\")->fetchColumn();\r\n\r\n\r\n\r\n //if there are people in Line\r\n if($inLine_rowCount >= 1){\r\n\r\n //assigning accession_id, new status, date available to the person who's first in Line\r\n $dbh->query(\"update book_reserved set accession_id = \".$record_with_available_and_expire['accession_id'].\", status = 'available', date_available = now(), date_expire = date_add(now(), interval \".getExpire().\" day) where reservation_id = \".$reservation_record_who_firstinLine['reservation_id']);\r\n\r\n $dbh->query(\"insert into notification (member_id, message, date_notif, href) values('\".$reservation_record_who_firstinLine['member_id'].\"', '\".$book['title'].\" is now available!', now(), 'member_book_details.php?isbn=\".$record_with_available_and_expire['ISBN'].\"' )\");\r\n\r\n } else /*if there's no people in line, just change the availability status */ {\r\n\r\n $dbh->query(\"update book_each set availability = 'available' where accession_id = \".$reservation_record_who_cancelled['accession_id']);\r\n\r\n }\r\n }\r\n }\r\n}", "title": "" }, { "docid": "feabccc9f883538368cf2ba7335782d3", "score": "0.576449", "text": "public static function createPaymentsAndMissions() {\n\n $bookings = Booking::getPayableBookings();\n\n $allBookings = Booking::model()->findAll();\n\n $notTaken = array();\n $rawData = array();\n\n foreach ($allBookings as $bk) {\n\n $found = false;\n\n foreach ($bookings as $booking) {\n\n if ($bk->id == $booking->id) {\n $found = true;\n break;\n }\n }\n\n if ($found) {\n\n $row = array();\n\n $row['id'] = $booking->id;\n $row['dates'] = $booking->displayDates(true);\n\n $mission = Booking::getLastMission($booking->id);\n\n $row['lastMissionDates'] = $mission->displayDates2(true);\n\n $nextSlot = $booking->getNextMissionSlot();\n\n if ($nextSlot == null) {\n $row['nextSlot'] = 'No slot - finished';\n } else {\n\n //check next slot is creatable\n $payInAdvanceHours = BusinessRules::getCronPaymentInAdvanceInHours();\n\n //overall rule: create mission if next slot's start date is between 7 and 14 days from now\n //if now and next slot start date < 14 days: ok to create, otherwise too soon\n if (Calendar::hoursBetween_DBDateTime(Calendar::today(Calendar::FORMAT_DBDATETIME), $nextSlot->startDateTime) <= $payInAdvanceHours) {\n\n $delayHours = BusinessRules::getNewBookingDelayLiveInHours();\n\n //if now and next slot start date < 7 days\n if (Calendar::hoursBetween_DBDateTime(Calendar::today(Calendar::FORMAT_DBDATETIME), $nextSlot->startDateTime) <= $delayHours) {\n\n $row['nextSlot'] = 'Too late to create, start date in less than ' . BusinessRules::getNewBookingDelayLiveInDays() . ' days. Start date: ' . Calendar::convert_DBDateTime_DisplayDateTimeText($nextSlot->startDateTime) . ' Today is ' . Calendar::convert_DBDateTime_DisplayDateText(Calendar::today(Calendar::FORMAT_DBDATE));\n } else {\n $result = Calendar::convert_DBDateTime_DisplayDateTimeText($nextSlot->startDateTime);\n $result .= ' - ';\n $result .= Calendar::convert_DBDateTime_DisplayDateTimeText($nextSlot->endDateTime);\n\n //check credit card expiry date\n $id = $booking->id;\n $creditCard = $booking->creditCard;\n\n $creditCard->handleExpiry();\n\n if ($creditCard->hasExpired()) {\n\n $result .= ' - Credit Card expired';\n } else {\n\n //cron job only\n $paymentResult = BookingHandler::handleNextMission($booking->id);\n\n if ($paymentResult === true) {\n $result .= ' - Payment Successful';\n } else {\n $result .= ' - Payment error' . $paymentResult;\n }\n }\n\n $row['nextSlot'] = $result;\n }\n } else {\n $row['nextSlot'] = 'Too soon to create Mission. It starts in more than ' . BusinessRules::getCronPaymentInAdvanceInDays() . ' days. Start date: ' . Calendar::convert_DBDateTime_DisplayDateTimeText($nextSlot->startDateTime) . ' Today is ' . Calendar::convert_DBDateTime_DisplayDateText(Calendar::today(Calendar::FORMAT_DBDATE));\n }\n\n $rawData[] = $row;\n }\n\n\n //create mission\n } else {\n\n $notTaken[] = $bk;\n }\n }\n\n //not taken\n echo 'Not taken <p><p>';\n\n foreach ($notTaken as $not) {\n\n echo $not->id . ' - ' . $not->displayDates();\n echo '<p>';\n }\n\n return $rawData;\n }", "title": "" }, { "docid": "0a9008660f57680c33a72ecb7895df9c", "score": "0.5754104", "text": "public function book(Request $request) \n {\n if ($request->input('date') == null) {\n return \"No Time selected\";\n }\n // dd($request->input());\n // echo \"tja detta är book\";\n // dd($request->input());\n // scheduled::create([\n // ]);\n $id = $this->patientExist($request);\n // echo $id->id;\n if ($id != \"Patient Credidentials Are wrong\" && $id != \"Fill out the patient creditentials\") {\n if ($request->input('disease') != null) {\n schedule::make([\n 'patient'=> $id->id,//create staff it doesn't exist\n 'disease'=> $request->input('disease'),\n 'booked'=> $request->input('date')\n ])->save();\n return \"The time you booked is: \" . $request->input('date');\n } else {\n return \"No vaccine selected\";\n }\n } else {\n return $id;\n }\n }", "title": "" }, { "docid": "b5e0f2201d2093f620edf302da7a6e70", "score": "0.57440156", "text": "function checkBookings($checkDate) {\n\n $bookingArr = getBookings();\n $personBooked = \"\";\n $bookingDetails = array();\n\n while (list($index) = each($bookingArr)) {\n\n if ($checkDate == $bookingArr[$index][\"booked_date\"]) {\n $bookingDetails[\"bookingId\"] = $bookingArr[$index][\"id\"];\n $bookingDetails[\"personBooked\"] = $bookingArr[$index][\"first_name\"] . \" \" . $bookingArr[$index][\"last_name\"];\n } // if\n\n } // while\n\n reset($bookingArr);\n return $bookingDetails;\n}", "title": "" }, { "docid": "69724f986cd86ee2b67b1debc09cc265", "score": "0.5739049", "text": "public function getAllMyBookings($params)\n {\n $hotelsList=array();\n $flightsList=array();\n $flightsCount=0;\n if (isset($params['count']) && $params['count'] != '') {\n $hotelsList[0]['count(1)']=0;\n }\n if (!isset($params['types'])) {\n $hotelsList=$this->getBookedHotels($params);\n $flightsList=$this->getBookedFlights($params);\n $flightsCount=$this->getBookedFlightsCount($params);\n } elseif (isset($params['types']) && $params['types'] && count($params['types']) < 3) {\n foreach ($params['types'] as $types) {\n if ($types == $this->container->getParameter('MODULE_HOTELS')) {\n $hotelsList=$this->getBookedHotels($params);\n\n }\n if ($types == $this->container->getParameter('MODULE_FLIGHTS')) {\n $flightsList=$this->getBookedFlights($params);\n $flightsCount=$this->getBookedFlightsCount($params);\n }\n }\n }\n $result=array_merge($hotelsList,$flightsList);\n\n if (!empty($result) && isset($result)) {\n if (isset($params['count']) && $params['count'] != '') {\n\n return $hotelsList[0]['count(1)'] + $flightsCount;\n\n } else {\n return $result;\n }\n } else {\n return array();\n }\n }", "title": "" }, { "docid": "33502404a410143e3bea832c4a8517cd", "score": "0.5737337", "text": "public function show(booking $booking)\n {\n //\n }", "title": "" }, { "docid": "8fc5c02431d990f4357dd505ef9e8545", "score": "0.5736911", "text": "public function book_facilitation(){\r\n\r\n\t\t\t// Gather form data \r\n\t\t\t$slot_id = $this->input->post('s_id');\r\n\t\t\t$notes = $this->input->post('comments');\r\n\t\t\t$facilitator_id = $this->input->post('f_id');\r\n\r\n\t\t\t// Insert into database if there aren't any conflicts \r\n\t\t\t$this->member_model->book($slot_id, $notes, $facilitator_id);\r\n\t\t}", "title": "" }, { "docid": "4883d0f78f25e4db91ef6187eb525cdd", "score": "0.57260585", "text": "public function store(Request $request)\n {\n\n $room_id = Room::where('room_number',$request->input('roomnumber'))->pluck('id');\n $dy = $room_id[0];\n \n $check = Booking::where('room_id',$dy)->first();\n $start = Carbon::parse($request->input('checkin'));\n if($check == null){\n if(Carbon::parse($request->input('checkin')) < Carbon::now() || Carbon::parse($request->input('checkout')) < Carbon::now() ){\n return redirect()->to('/bookings')->with('bad','!!!! Dates are Past');\n }else{\n $booking = new Booking();\n $customer_id = Customer::where('firstname',$request->input('cus'))->pluck('id');\n $booking->user_id = Auth::user()->id;\n $booking->customer_id = $customer_id[0];\n $booking->room_id = $room_id[0];\n $booking->check_out = $request->input('checkout');\n $booking->check_in = $request->input('checkin');\n $end = Carbon::parse($request->input('checkout'));\n $start = Carbon::parse($request->input('checkin'));\n $days = $end->diffInDays($start);\n $booking->days = $days;\n $booking->save();\n return redirect()->to('/bookings')->with('success','Booking Added Succesfully');\n }\n }\n $next = Carbon::parse($check->check_out);\n $pass = $next->diffInDays($start);\n if($pass == 0 || $pass < 0){\n if(Carbon::parse($request->input('checkin')) < Carbon::now() || Carbon::parse($request->input('checkout')) < Carbon::now() ){\n return redirect()->to('/bookings')->with('bad','!!!! Checkin Dates Are Past');\n }else{\n $booking = new Booking();\n $customer_id = Customer::where('firstname',$request->input('cus'))->pluck('id');\n \n $booking->user_id = Auth::user()->id;\n $booking->customer_id = $customer_id[0];\n $booking->room_id = $room_id[0];\n $booking->check_out = $request->input('checkout');\n $booking->check_in = $request->input('checkin');\n $end = Carbon::parse($request->input('checkout'));\n $start = Carbon::parse($request->input('checkin'));\n $days = $end->diffInDays($start);\n $booking->days = $days;\n }\n \n \n \n \n }else{\n\n return redirect()->to('/bookings')->with('bad','!!!! Room is Occupied');\n }\n\n \n }", "title": "" }, { "docid": "83a4fa60356a90e5ae22f6f0483af464", "score": "0.57258", "text": "function getBookings($storagePid, $uid, $interval) {\n\n\t\t$bookingsRaw = array();\n\n\t\tif ($storagePid != '' && $uid != '') {\n\t\t\t// SELECT\n\t\t\t// 1. get for bookings for these uids/pids\n\t\t\t$query = 'pid IN ('. $storagePid .') AND uid_foreign IN ('.$uid.')';\n\t\t\t$query .= ' AND deleted=0 AND hidden=0 AND uid=uid_local';\n\t\t\t$query .= ' AND ( enddate >=('.$interval['startList'].') AND startdate <=('.$interval['endList'].'))';\n\n\t\t\t$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('DISTINCT uid_foreign as cat, uid_local as uid, startdate, enddate, title','tx_abbooking_booking, tx_abbooking_booking_productid_mm',$query,'','startdate','');\n\t\t\t// one array for start and end dates. one for each pid\n\t\t\twhile (($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res))) {\n\t\t\t\t$bookingsRaw[] = $row;\n\t\t\t};\n\n\t\t}\n\n\t\t$localbookings = $bookingsRaw;\n\n \t\treturn $localbookings;\n\n\t}", "title": "" }, { "docid": "c58e337288fb90c24d648271e3fdd3fc", "score": "0.5721758", "text": "public function bookNow(Request $request){\n $id=$request->vendor_id;\n do{\n $client_id=rand(100000000,9999999999);\n $count=booking_event::where('client_id','LIKE',$client_id)->count();\n }while($count>'0');\n $venue=vendor_model::where('id','LIKE',$id)->first();\n date_default_timezone_set('Asia/Kolkata');\n $booking_date=$request->booking_date;\n $booking_date_time=date('jS M Y h:i:s A',strtotime($booking_date));\n $booking_date=date('Y-m-d h:i:s A',strtotime($booking_date));\n $booked_date=$request->booked_date;\n $booked_time=$request->booked_time;\n $combo=$request->combo;\n do{\n $random=rand(100000000000,9999999999999);\n $count=booking_event::where('client_id','LIKE',$random)->count();\n }while($count=='1');\n $unique=$request->u;\n $total_person=$request->person;\n $customer_name=$request->name;\n $bashindia_promo=$request->bash;\n $customer_email=$request->email;\n $customer_phone=$request->phone;\n $budget_person=$request->budget_person;\n $total_cost=$request->total_cost;\n $final_cost=$request->final_cost;\n $advance_payment=$request->advance_payment;\n $buffet=$request->combo;\n $combo_num=combo::where('vendor_id','LIKE',$id)->where('combo','LIKE',$buffet)->first();\n $vs=$request->veg_starter;\n $nvs=$request->non_veg_starter;\n $vmc=$request->veg_main_course;\n $nvmc=$request->non_veg_main_course;\n $bread=$request->bread;\n $salad=$request->salad;\n $dessert=$request->dessert;\n $rice=$request->rice;\n $sd=$request->soft_drinks;\n $hd=$request->hard_drinks;\n $promo_code=$request->promo_code;\n $promo_discount='0';\n\n if($total_cost>$final_cost) {\n $promo_discount = promo::where('code', 'LIKE', $promo_code)->value('amount');\n $promo_applied = promo::where('code', 'LIKE', $promo_code)->value('applied');\n $p = $promo_applied + 1;\n promo::where('code', 'LIKE', $promo_code)->update(['applied' => $p]);\n }\n $tdr=$this->tdr_percent;\n if($promo_code==''){\n $promo_discount='0';\n }\n flash()->error('Waiting to upgrade the merchant on the website');\n return back();\n booking_event::insert([\n 'id'=>$unique,\n 'client_id'=>$client_id,\n 'event_name'=>'',\n 'website_booking'=>$booking_date,\n 'client_name'=>$customer_name,\n 'mobile'=>$customer_phone,\n 'email'=>$customer_email,\n 'vendor_id'=>$id,\n 'party_booking_date'=>$booked_date,\n 'time'=>$booked_time,\n 'total_person'=>$total_person,\n 'total_bill'=>$total_cost,\n 'final_bill'=>$final_cost,\n 'paid'=>$advance_payment,\n 'combo'=>$combo,\n 'order'=>'No',\n 'invalid'=>'No',\n 'manager_respond'=>'No',\n 'payment_tdr'=>'Null',\n 'payment_name'=>'Null',\n 'coupon_name'=>$promo_code,\n 'coupon_discount'=>$promo_discount,\n 'invalid'=>'No',\n 'completed_successfully'=>'No'\n ]);\n booked_date::insert([\n 'vendor_id'=>$id,\n 'date'=>$booked_date,\n 'time'=>$booked_time,\n ]);\n $c=subscribe::where('email','LIKE',$customer_email)->count();\n if($c=='0') {\n subscribe::insert([\n 'email' => $customer_email\n ]);\n }\n $vss='';\n $nvss='';\n $vmcs='';\n $nvmcs='';\n $breads='';\n $rices='';\n $salads='';\n $desserts='';\n $sds='';\n $hds='';\n if($vs!='') {\n $vss = implode(';', $vs);\n }\n if($nvs!='') {\n $nvss = implode(';', $nvs);\n }\n if($hd!='') {\n $hds=implode(';',$hd);\n }\n if($sd!='') {\n $sds=implode(';',$sd);\n }\n if($nvmc!='') {\n $nvmcs=implode(';',$nvmc);\n }\n if($vmc!='') {\n $vmcs=implode(';',$vmc);\n }\n if($nvs!='') {\n $nvss = implode(';', $nvs);\n }\n if($dessert!='') {\n $desserts=implode(';',$dessert);\n }\n if($bread!='') {\n $breads=implode(';',$bread);\n }\n if($rice!='') {\n $rices=implode(';',$rice);\n }\n if($salad!='') {\n $salads=implode(';',$salad);\n }\n sel_combo::insert([\n 'client_id'=>$unique,\n 'veg_starter'=>$vss,\n 'non_veg_starter'=>$nvss,\n 'veg_main_course'=>$vmcs,\n 'non_veg_main_course'=>$nvmcs,\n 'bread'=>$breads,\n 'rice'=>$rices,\n 'salad'=>$salads,\n 'dessert'=>$desserts,\n 'soft_drinks'=>$sds,\n 'hard_drinks'=>$hds,\n ]);\n $bash=$this->bill($id,$unique,$total_cost,$final_cost,$advance_payment,$promo_discount,$tdr,$bashindia_promo);\n $vendor_email=vendor_model::where('id','LIKE',$id)->value('email');\n Mail::queue('emails.booked_email',array('final_cost'=>$final_cost,'sd'=>$sd,\n 'hd'=>$hd,'dessert'=>$dessert,'salad'=>$salad,'rice'=>$rice,'bread'=>$bread,'nvmc'=>$nvmc,'vmc'=>$vmc,\n 'nvs'=>$nvs,'vs'=>$vs,'buffet'=>$buffet,'nvss'=>$nvss,'random'=>$random,'venue'=>$venue,'booking_date_time'=>$booking_date_time,\n 'booked_date'=>$booking_date,'booked_time'=>$booked_time, 'total_person'=>$total_person,'customer_name'=>$customer_name,\n 'advance_payment'=>$advance_payment), function ($m) use ($customer_email){\n $m->from('[email protected]', 'Team BashIndia');\n\n $m->to($customer_email)->subject('Bash India New registration');\n });\n Mail::queue('emails.vendor_email',array('final_cost'=>$final_cost,'bash'=>$bash,'sd'=>$sd,\n 'hd'=>$hd,'dessert'=>$dessert,'salad'=>$salad,'rice'=>$rice,'bread'=>$bread,'nvmc'=>$nvmc,'vmc'=>$vmc,'nvs'=>$nvs,\n 'vs'=>$vs,'buffet'=>$buffet,'nvss'=>$nvss,'random'=>$random,'venue'=>$venue,'booking_date_time'=>$booking_date_time,\n 'booked_date'=>$booking_date,'booked_time'=>$booked_time, 'total_person'=>$total_person,'customer_name'=>$customer_name,\n 'customer_email'=>$customer_email,'customer_phone'=>$customer_phone,'advance_payment'=>$advance_payment,\n 'total_cost'=>$total_cost), function ($m) use ($vendor_email){\n $m->from('[email protected]', 'Team BashIndia');\n $m->to($vendor_email)->subject('Bash India New registration');\n });\n $message=\"New booking, ticket: \".$random;\n $this->bashsms(\"8800355421\",$message);\n $this->bashsms($venue->mobile,$message);\n $message=\"Thanks for booking. Your ticket is \".$random;\n $this->bashsms($customer_phone,$message);\n flash()->success('Congratulation your ticket is booked.Email is sent to <b>'.$customer_email.'</b>.Pease check your email');\n return view('book.your-ticket-is-booked',compact('bash','unique','client_id','final_cost','sd','hd','dessert','salad','rice','bread',\n 'nvmc','vmc','combo_num','nvs','vs','buffet','nvss','random','venue','booking_date_time',\n 'booked_date','booked_time','combo', 'total_person','customer_name',\n 'customer_email','customer_phone','budget_person','advance_payment','total_cost'))\n ->with('title','Ticket booked');\n }", "title": "" }, { "docid": "741af288b29ada1e6af9208ac44d39c1", "score": "0.5720508", "text": "public function creating($book)\n{\n}", "title": "" }, { "docid": "405d5707eb2658cecd8f15c9923bd220", "score": "0.5708684", "text": "public static function get_bookings_details()\n {\n $currntdate=date(\"Y-m-d\"); \n $nextdate=date('Y-m-d', strtotime('today + 30 days'));\n return Bookings::select('id','booking_start_date','guest_name','booking_type','booking_id')->where('status','1')->whereDate('booking_start_date', '>=', $currntdate)->whereDate('booking_start_date', '<=', $nextdate)->get();\n }", "title": "" }, { "docid": "e426dcd834a59ffacce742b6f3ac67ef", "score": "0.5700937", "text": "public function saving($book) {\n}", "title": "" }, { "docid": "7d1c077cd39d87cf2106300f48d323b7", "score": "0.5696667", "text": "function wlms_accepted_requested_books_by_selected_id()\n{\n check_ajax_referer( 'eLibrary_ajax_call', 'security' );\n if(isset($_REQUEST['sParms']) && isset($_REQUEST['member']))\n {\n global $wpdb;\n $book_array = array();\n $issues = '';\n \n $caps = get_user_meta($_REQUEST['member'], 'wp_capabilities', true);\n $roles = array_keys((array)$caps);\n \n $get_issues_sql = $wpdb->prepare( \"SELECT * FROM {$wpdb->prefix}wlms_member_issues_settings\", '');\n $entries_for_issues = $wpdb->get_results( $get_issues_sql );\n \n $get_requested_books_sql = $wpdb->prepare( \"SELECT * FROM {$wpdb->prefix}wlms_member_requested_books WHERE id = %d \", $_REQUEST['sParms'] );\n $entries_for_request_book = $wpdb->get_row( $get_requested_books_sql );\n \n \n \n if($entries_for_issues)\n {\n $issues = $entries_for_issues;\n }\n \n\n $get_total_pending_sql = $wpdb->prepare( \"SELECT {$wpdb->prefix}wlms_borrow_details.book_id FROM {$wpdb->prefix}wlms_borrow_details INNER JOIN {$wpdb->prefix}wlms_borrow ON {$wpdb->prefix}wlms_borrow_details.borrow_id = {$wpdb->prefix}wlms_borrow.borrow_id WHERE {$wpdb->prefix}wlms_borrow.member_id = '\". $_REQUEST['member'] .\"' AND {$wpdb->prefix}wlms_borrow_details.borrow_status = 'pending'\", '');\n $total_pending = $wpdb->get_results( $get_total_pending_sql, ARRAY_A );\n \n\n if(count($total_pending)>0)\n {\n foreach($total_pending as $row)\n {\n array_push($book_array, $row['book_id']);\n }\n }\n \n \n $data = get_allocated_books_total($issues, $roles[0]);\n \n \n if(count($total_pending) < $data['books_borrow'])\n {\n if(!in_array($entries_for_request_book->book_id, $book_array))\n {\n $wpdb->query( $wpdb->prepare( \n \"\n INSERT INTO {$wpdb->prefix}wlms_borrow\n ( member_id, date_borrow, due_date, filter_date )\n VALUES ( %d, %s, %s, %s )\n \", \n array(\n $_REQUEST['member'], \n date(\"Y-m-d H:i:s\"),\n date('Y-m-d', strtotime('+'. $data['returned_days'] .' days') ),\n date(\"Y-m-d\")\n ) \n ) );\n \n $get_borrow_sql = $wpdb->prepare( \"SELECT * FROM {$wpdb->prefix}wlms_borrow ORDER BY borrow_id DESC LIMIT 1\", '');\n $get_borrow = $wpdb->get_row( $get_borrow_sql );\n $borrow_id = $get_borrow->borrow_id;\n \n \n $wpdb->query( $wpdb->prepare( \n \"\n INSERT INTO {$wpdb->prefix}wlms_borrow_details\n ( book_id, borrow_id, borrow_status )\n VALUES ( %d, %d, %s )\n \", \n array(\n $entries_for_request_book->book_id,\n $borrow_id,\n 'pending' \n ) \n ) );\n \n $wpdb->query(\n $wpdb->prepare(\n \"UPDATE {$wpdb->prefix}wlms_member_requested_books SET reply_date = %s, status = %d WHERE id= %d\",\n date(\"Y-m-d\"), 1, absint($_REQUEST['sParms'])\n )\n );\n \n echo 'Successfully added for your selected member';\n \n }\n else {\n echo 'Already pending this book, please try another';\n }\n }\n else\n {\n echo 'There are '. $data['books_borrow'] .' books pending of this member, already exceeded the limit';\n }\n \n }\n exit;\n}", "title": "" }, { "docid": "d4f26468dca5af38ed8719ff9ddf7112", "score": "0.5687899", "text": "function cascadeBooking($booking_id, $from, $duration, $who, $comment) {\n global $DB, $USER;\n $this->loadBookingObject();\n $what = $this->subBookables;\n if(!$what) return true;\n $book\t\t\t= array();\n\n foreach($what as $obj_id) {\n if(!is_numeric($obj_id)) continue;\n if($obj = $Controller->$obj_id('Booking_Object')) {\n if(!$obj->isFree($from, $duration)) {\n return false;\n }\n $book[] = $obj_id;\n }\n }\n if(!$book) return true;\n $DB->booking_bookings->insertMultiple(array('id' => $book, 'b_id' => $booking_id, 'starttime' => $from, 'duration' => $duration, 'booked_by' => $USER->ID, 'booked_for' => $who));\n foreach($book as $b) {\n $o = $Controller->$b;\n $o->cascadeBooking($booking_id, $from, $duration, $who, $comment);\n }\n return true;\n }", "title": "" }, { "docid": "47e4b9a3ed0cfb066beb062c352b707f", "score": "0.56836075", "text": "public function index()\n {\n $context = [];\n if(Auth::user()->is_admin) {\n $context = [\n 'queue' => Booking::where('status', Booking::ACKNOWLEDGED_STATUS)->orderBy('updated_at', 'asc')->get(),\n 'history' =>\n Booking::where('status', '<>', Booking::INCOMPLETE_STATUS)\n ->where('status', '<>', Booking::ACKNOWLEDGED_STATUS)\n ->orderBy('updated_at', 'dsc')->take(100)->get(),\n ];\n } else {\n $context = [\n 'drafts' => BookingDraft::where('booker_id', Auth::user()->id)->where('committed', false)->get(),\n 'incompletes' => Booking::whereHas('details', function($query) {\n $query->where('booker_id', Auth::user()->id);\n })->where('status', Booking::INCOMPLETE_STATUS)->get(),\n 'completes' => Booking::whereHas('details', function($query) {\n $query->where('booker_id', Auth::user()->id);\n })->where('status', '<>', Booking::INCOMPLETE_STATUS)->get(),\n ];\n }\n return view('dashboard.booking.index', self::getContextData($context));\n }", "title": "" }, { "docid": "3c86193391e2d9db307f3e19337220bc", "score": "0.566351", "text": "function bkap_get_posted_availability() {\n\n $availability = array();\n $row_size = isset( $_POST['wc_booking_availability_type'] ) ? sizeof( $_POST['wc_booking_availability_type'] ) : 0;\n\n $_POST['wc_booking_availability_bookable'] = $_POST['wc_booking_availability_bookable_hidden']; // Assiging hidden values for bookable data.\n\n for ( $i = 0; $i < $row_size; $i ++ ) {\n\n $availability[ $i ]['bookable'] = 0;\n\n if( isset( $_POST['wc_booking_availability_bookable'] ) ) {\n $availability[ $i ]['bookable'] = wc_clean( $_POST['wc_booking_availability_bookable'][ $i ] );\n }\n\n $availability[ $i ]['type'] = wc_clean( $_POST['wc_booking_availability_type'][ $i ] );\n\n $availability[ $i ]['priority'] = intval( $_POST['wc_booking_availability_priority'][ $i ] );\n\n switch ( $availability[ $i ]['type'] ) {\n case 'custom' :\n $availability[ $i ]['from'] = wc_clean( $_POST['wc_booking_availability_from_date'][ $i ] );\n $availability[ $i ]['to'] = wc_clean( $_POST['wc_booking_availability_to_date'][ $i ] );\n break;\n case 'months' :\n $availability[ $i ]['from'] = wc_clean( $_POST['wc_booking_availability_from_month'][ $i ] );\n $availability[ $i ]['to'] = wc_clean( $_POST['wc_booking_availability_to_month'][ $i ] );\n break;\n case 'weeks' :\n $availability[ $i ]['from'] = wc_clean( $_POST['wc_booking_availability_from_week'][ $i ] );\n $availability[ $i ]['to'] = wc_clean( $_POST['wc_booking_availability_to_week'][ $i ] );\n break;\n case 'days' :\n $availability[ $i ]['from'] = wc_clean( $_POST['wc_booking_availability_from_day_of_week'][ $i ] );\n $availability[ $i ]['to'] = wc_clean( $_POST['wc_booking_availability_to_day_of_week'][ $i ] );\n break;\n case 'time' :\n case 'time:1' :\n case 'time:2' :\n case 'time:3' :\n case 'time:4' :\n case 'time:5' :\n case 'time:6' :\n case 'time:7' :\n $availability[ $i ]['from'] = wc_booking_sanitize_time( $_POST['wc_booking_availability_from_time'][ $i ] );\n $availability[ $i ]['to'] = wc_booking_sanitize_time( $_POST['wc_booking_availability_to_time'][ $i ] );\n break;\n case 'time:range' :\n $availability[ $i ]['from'] = wc_booking_sanitize_time( $_POST['wc_booking_availability_from_time'][ $i ] );\n $availability[ $i ]['to'] = wc_booking_sanitize_time( $_POST['wc_booking_availability_to_time'][ $i ] );\n\n $availability[ $i ]['from_date'] = wc_clean( $_POST['wc_booking_availability_from_date'][ $i ] );\n $availability[ $i ]['to_date'] = wc_clean( $_POST['wc_booking_availability_to_date'][ $i ] );\n break;\n }\n }\n return $availability;\n}", "title": "" }, { "docid": "13f5d426e784eeb73a1c94bbd3286617", "score": "0.56610197", "text": "public function getBookings()\n {\n return $this->hasMany(Booking::className(), ['id' => 'booking_id'])->viaTable('{{%booking_guest}}', ['guest_id'=>'id']);\n }", "title": "" }, { "docid": "dc4739cae384716689f8b9a9fdfd187c", "score": "0.56575036", "text": "public function getBooking()\n {\n return $this->booking;\n }", "title": "" }, { "docid": "73004712be2e9555e96ff9f608d33945", "score": "0.5653665", "text": "abstract function book(Request $request);", "title": "" }, { "docid": "a18c374bfc57d20b91d0ada91cfd09b2", "score": "0.5650867", "text": "private function checkAvailability(){\n\t\t$sql = \"\n\t\tSELECT resv.room_id\n\t\t FROM bsi_reservation resv, bsi_bookings boks\n\t\t WHERE resv.bookings_id = boks.booking_id\n\t\t\t AND ((NOW() - boks.booking_time) < \".$this->expTime.\")\n\t\t\t AND boks.is_deleted = FALSE\n\t\t\t AND resv.room_id IN (\".$this->roomIdsOnly.\")\n\t\t\t AND (('\".$this->mysqlCheckInDate.\"' BETWEEN boks.start_date AND DATE_SUB(boks.end_date, INTERVAL 1 DAY))\n\t\t\t\tOR (DATE_SUB('\".$this->mysqlCheckOutDate.\"', INTERVAL 1 DAY) BETWEEN boks.start_date AND DATE_SUB(boks.end_date, INTERVAL 1 DAY))\n\t\t\t\tOR (boks.start_date BETWEEN '\".$this->mysqlCheckInDate.\"' AND DATE_SUB('\".$this->mysqlCheckOutDate.\"', INTERVAL 1 DAY))\n\t\t\t\tOR (DATE_SUB(boks.end_date, INTERVAL 1 DAY) BETWEEN '\".$this->mysqlCheckInDate.\"' AND DATE_SUB('\".$this->mysqlCheckOutDate.\"', INTERVAL 1 DAY)))\";\t\t\t\t\n\t\t$sql = mysql_query($sql);\n\t\t\t\n\t\tif(mysql_num_rows($sql)){\t\n\t\t\tmysql_free_result($sql);\n\t\t\t$this->invalidRequest(13);\n\t\t\tdie;\n\t\t}\n\t\tmysql_free_result($sql);\n\t}", "title": "" }, { "docid": "740b04ca54e23cd5a4f6acb15e277c33", "score": "0.56499517", "text": "function borrowBook($userID, $bookID) {\r\n\t$control_query = \"select count(*) as borrow_count \r\n\t\t\t\t\t\tfrom borrows \r\n\t\t\t\t\t\twhere userID = \".$userID.\"\";\r\n\t\t\t\t\t\t\r\n\t$borrow_check_sql = mysqli_query($_SESSION[\"conn\"], $control_query);\r\n\t\r\n\tif(mysqli_fetch_array($borrow_check_sql)[\"borrow_count\"] >= 3) { \r\n\t\t/* users cannot borrow more than 3 books */\r\n\t\treturn -1;\r\n\t}\r\n\t\r\n\t\r\n\t/* check if user already have the same book */\r\n\t$control_query2 = \"select * \r\n\t\t\t\t\t\tfrom borrows \r\n\t\t\t\t\t\twhere userID = \".$userID.\" and bookID = \".$bookID.\"\";\r\n\t\t\t\t\t\t\r\n\t$borrow_check_sql2 = mysqli_query($_SESSION[\"conn\"], $control_query2);\r\n\t\r\n\tif(mysqli_num_rows($borrow_check_sql2)) {\r\n\t\t/* book is already borrowed by the same user */\r\n\t\treturn -1;\r\n\t}\r\n\t\r\n\t\r\n\t/* else borrowing is available */\r\n\t$query = \"insert into borrows(userID, bookID) values(\".$userID.\", \".$bookID.\")\";\r\n\t\r\n\tif(mysqli_query($_SESSION[\"conn\"], $query)) {\r\n\t\t/* borrowing success */\r\n\t\t\r\n\t\t/* get stock count of book */\r\n\t\t$query = \"select stock_num \r\n\t\t\t\t\tfrom books \r\n\t\t\t\t\twhere bookID = \".$bookID.\"\";\r\n\t\t\r\n\t\t$quantity = mysqli_fetch_array(mysqli_query($_SESSION[\"conn\"], $query))[\"stock_num\"];\r\n\t\t$new_quantity = $quantity - 1;\r\n\t\t\r\n\t\t/* reduce stock count of book */\r\n\t\t$update = \"update books\r\n\t\t\t\tset stock_num=\".$new_quantity.\"\r\n\t\t\t\twhere bookID = \".$bookID.\"\";\r\n\t\t\r\n\t\tmysqli_query($_SESSION[\"conn\"], $update);\r\n\t\t\r\n\t\t\r\n\t\t/* delete the request from waiting list if exists */\r\n\t\t$delete_waiting = \"delete from waitings \r\n\t\t\t\t\t\t\twhere userID = \".$userID.\" and bookID = \".$bookID.\"\";\r\n\t\t\t\t\t\t\t\r\n\t\tmysqli_query($_SESSION[\"conn\"], $delete_waiting);\r\n\t\t\r\n\t\t\r\n\t\treturn 1;\r\n\t}else {\r\n\t\t/* borrowing failed */\r\n\t\treturn -1;\r\n\t}\r\n}", "title": "" }, { "docid": "a0e969f9684879623f15949a7fdb8edb", "score": "0.5648463", "text": "public function getBookings()\n {\n $user = auth()->user();\n\n $bookings = $user->hasRole('superadmin|admin') ?\n Booking::withTrashed()->get() : Booking::where('booked_by', '=', $user->id)->withTrashed()->get();\n return DataTables::of($bookings)\n ->addColumn('room_name', function ($booking) {\n return $booking->room->name;\n })\n ->removeColumn('room_id')\n ->editColumn('booked_by', function ($booking) {\n return $booking->user->name;\n })\n ->editColumn('start_date', function ($booking) {\n return isset($booking->start_date) ?\n $booking->start_date->format(Booking::DATE_FORMAT) : '';\n })\n ->editColumn('end_date', function ($booking) {\n return isset($booking->end_date) ?\n $booking->end_date->format(Booking::DATE_FORMAT) : '';\n })\n ->addColumn('duration', function ($booking) {\n return $booking->getDuration();\n })\n ->editColumn('status', function ($booking) {\n return $booking->getStatusTextualRepresentation();\n })\n ->addColumn('action', function ($booking) {\n $editText = __('Edit');\n $cancelText = __('Cancel');\n\n $editUrl = route('bookings.edit', ['id' => $booking->id]);\n $deleteUrl = route('bookings.destroy', ['id' => $booking->id]);\n\n $editBtn = '<a class=\"btn btn-primary btn-xs\" href=\"'. $editUrl .'\"><span class=\"glyphicon glyphicon-edit\"></span> '.$editText.'</a>';\n $cancelBtn = '<button class=\"btn btn-danger btn-xs btn-delete\" data-remote=\"'. $deleteUrl .'\"><span class=\"glyphicon glyphicon-remove\"></span> '.$cancelText.'</button>';\n\n $actionBtn = $booking->status === BookingStatus::OPTION ? $cancelBtn . $editBtn: '';\n return auth()->user()->canDeleteBooking() ? $actionBtn : '';\n })\n ->make(true);\n }", "title": "" }, { "docid": "dd04221cc2bb0fe57fdee07302d6c86b", "score": "0.56413203", "text": "public function get_all_bookings_api(){\r\t\t$query=\"select DISTINCT `p`.`order_id`, `b`.`booking_date_time`, `b`.`booking_status`, `b`.`rejed4mreason`,`s`.`title`,`p`.`net_amount` as `total_payment`,`b`.`gc_event_id`,`b`.`gc_staff_event_id`,`b`.`staff_ids` from `d4mbookings` as `b`,`d4mpayments` as `p`,`d4mservices` as `s`,`d4musers` as `u` where `b`.`client_id` = `u`.`id` and `b`.`service_id` = `s`.`id` and `b`.`order_id` = `p`.`order_id` order by `b`.`order_id` desc limit \".$this->limit.\" offset \".$this->offset;\r\t\t$result = mysqli_query($this->conn,$query);\r\t\treturn $result;\r\t}", "title": "" }, { "docid": "779ed535fb9a8a4c68592241c4a34a54", "score": "0.5631363", "text": "public function ajax_check_availability() {\n\t\t$post = filter_input_array( INPUT_POST );\n\t\t$found = TRUE;\n\t\t\n\t\t// 1. build pivot table\n\t\t$this->booking_post->create_live_bookings_table();\n\t\t// 1.A. remove bookings belonging to this post_id from pivot table\n\t\t$this->booking_post->remove_live_booking( $post['post_id'] );\n\t\t\n\t\t// 2. if checked_rooms exist, add as live booking\n\t\tif ( isset( $post['checked_rooms'] ) && count( $post['checked_rooms'] ) > 0 ) {\n\t\t\t// convert dates to unix time\n\t\t\tforeach ( $post['checked_rooms'] as $checked_room ) {\n\t\t\t\t$checked_room['checkin'] = Quitenicebooking_Utilities::to_timestamp($checked_room['checkin'], $this->settings);\n\t\t\t\t$checked_room['checkout'] = Quitenicebooking_Utilities::to_timestamp($checked_room['checkout'], $this->settings);\n\t\t\t\t$this->booking_post->add_live_booking($checked_room);\n\t\t\t}\n\t\t}\n\t\t// 3. get the requested room\n\t\t$this_room = $this->accommodation_post->get_single_accommodation($post['current_room']['type'], TRUE);\n\t\t// 4. make collision summary\n\t\t// convert dates to unix time\n\t\t$post['current_room']['checkin'] = Quitenicebooking_Utilities::to_timestamp($post['current_room']['checkin'], $this->settings);\n\t\t$post['current_room']['checkout'] = Quitenicebooking_Utilities::to_timestamp($post['current_room']['checkout'], $this->settings);\n\t\t$usage = $this->booking_post->make_collision_summary(\n\t\t\t$post['current_room']['checkin'],\n\t\t\t$post['current_room']['checkout'],\n\t\t\tarray_keys($this_room)\n\t\t);\n\n\t\t// 5.A. check if room is blocked\n\t\tif (is_object($this->booking_post->booking_block) && $this->booking_post->booking_block->is_blocked($post['current_room']['checkin'], $post['current_room']['checkout'], $post['current_room']['type'])) {\n\t\t\t$found = 'room_blocked';\n\t\t}\n\n\t\t// 5. subtract collision summary from this_room\n\t\t// if total_guests > room_occupancy\n\t\tif ( $usage[ $post['current_room']['type'] ]['max_concurrent_rooms'] >= $this_room[ $post['current_room']['type'] ]['quitenicebooking_room_quantity']) {\n\t\t\t// if usage > rooms_available\n\t\t\t$found = 'room_qty';\n\t\t} elseif ( $post['current_room']['adults'] + $post['current_room']['children'] > $this_room[ $post['current_room']['type'] ]['quitenicebooking_max_occupancy'] ) {\n\t\t\t$found = 'guest_qty';\n\t\t}\n\t\t\n\t\t// return the result\n\t\techo json_encode( $found );\n\t\texit;\n\t}", "title": "" }, { "docid": "498f9b1a62e640d5bbb07b2b457e584d", "score": "0.56188965", "text": "function save_booking($app_booking_id, $params, $module) {\n //debug($params);exit;\n // error_reporting(E_ALL);\n // debug($params);exit;\n $CI = & get_instance();\n //Need to return following data as this is needed to save the booking fare in the transaction details\n $response['fare'] = $response['domain_markup'] = $response['level_one_markup'] = 0;\n\n $domain_origin = $params['temp_booking_cache']['domain_list_fk'];\n $status = BOOKING_CONFIRMED;\n $app_reference = $app_booking_id;\n $booking_source = $params['temp_booking_cache']['booking_source'];\n $pnr = $params['result']['PNRNo'];\n $ticket = $params['result']['TicketNo'];\n $transaction = $params['result']['TicketNo'];\n $total_fare = $params['result']['TotalFare'];\n $currency_obj = $params['currency_obj'];\n $deduction_cur_obj = clone $currency_obj;\n $promo_currency_obj = $params['promo_currency_obj'];\n //PREFERRED TRANSACTION CURRENCY AND CURRENCY CONVERSION RATE\n $transaction_currency = get_application_currency_preference();\n $application_currency = admin_base_currency();\n $currency_conversion_rate = $currency_obj->transaction_currency_conversion_rate();\n $domain_markup = array();\n $level_one_markup = array();\n $total_fare = array();\n $currency = $transaction_currency;\n\n $journey_datetime = date('Y-m-d H:i:s', strtotime($params['temp_booking_cache']['book_attributes']['token']['JourneyDate']));\n $departure_datetime = date('Y-m-d H:i:s', strtotime($params['temp_booking_cache']['book_attributes']['token']['DepartureTime']));\n $arrival_datetime = date('Y-m-d H:i:s', strtotime($params['temp_booking_cache']['book_attributes']['token']['ArrivalTime']));\n $departure_from = $params['temp_booking_cache']['book_attributes']['token']['departure_from'];\n $arrival_to = $params['temp_booking_cache']['book_attributes']['token']['arrival_to'];\n $boarding_from = (empty($params['temp_booking_cache']['book_attributes']['token']['boarding_from']) == false ? $params['temp_booking_cache']['book_attributes']['token']['boarding_from'] : '').@$params['result']['ServiceProviderContact'];\n $dropping_at = (empty($params['temp_booking_cache']['book_attributes']['token']['dropping_to']) == false ? $params['temp_booking_cache']['book_attributes']['token']['dropping_to'] : $params['temp_booking_cache']['book_attributes']['token']['arrival_to']);\n $bus_type = $params['temp_booking_cache']['book_attributes']['token']['bus_type'];\n $operator = $params['temp_booking_cache']['book_attributes']['token']['operator'];\n $attributes = '';\n\n $CI->bus_model->save_booking_itinerary_details($app_reference, $journey_datetime, $departure_datetime, $arrival_datetime, $departure_from, $arrival_to, $boarding_from, $dropping_at, $bus_type, $operator, $attributes);\n\n // debug($params);exit;\n $passengers = force_multple_data_format($params['result']['Passengers']);\n\n $ResponseMessage = $params['result']['ticket_details'];\n\n $SeatFare = @$ResponseMessage['seat_fare_details'];\n \n $SeatFareDetails = $params['temp_booking_cache']['book_attributes']['token']['seat_attr']['seats'];\n \n if (valid_array($passengers) == true) {\n $pass_count = count($passengers);\n $extra_markup = $params['temp_booking_cache']['book_attributes']['markup']/$pass_count;\n foreach ($passengers as $key => $passenger) {\n $SeatNo = $passenger['SeatNo'];\n $SeatNos = explode('_', $SeatNo);\n if(isset($SeatNos[0])){\n $SeatNo = $SeatNos[0];\n }\n else{\n $SeatNo = $SeatNo;\n }\n //$title = get_enum_list('title', $params['temp_booking_cache']['book_attributes']['pax_title'][$pass_count-1]);\n \n // echo 'Seat_number'.$SeatNo;exit; \n $current_seat_fare = @$SeatFareDetails[$SeatNo]; //FIXME: Values are not coming\n \n $name = $passenger['Name'];\n $age = $passenger['Age'];\n $gender = ($passenger['Gender'] == 'F' ? 2 : 1);\n $seat_no = $passenger['SeatNo'];\n $fare = @$current_seat_fare['Fare'];\n $status = BOOKING_CONFIRMED;\n $seat_type = $passenger['SeatType'];\n $is_ac_seat = $passenger['IsAcSeat'];\n $attr = ($current_seat_fare);\n $admin_tds = 0;\n $agent_tds = 0;\n\n if($gender == 1){\n $title = 1;\n }else if($gender == 2){\n $title = 2;\n }\n \n if ($module == 'b2c') {\n //Agent commission is set to 0 in b2c\n $agent_commission = 0;\n $agent_markup = 0;\n $no_of_seats = count($params['result']['ticket_details']['seat_fare_details']);\n $admin_commission = $params['temp_booking_cache']['book_attributes']['token']['CommAmount'];\n $admin_markup = $currency_obj->get_currency($current_seat_fare['Fare']);\n $admin_markup = floatval($admin_markup['default_value'] - $current_seat_fare['Fare']);\n $total_markup = $admin_markup;\n \n $total_fare[] = ($current_seat_fare['Fare']);\n //$domain_markup[] = ($admin_commission+$admin_markup);\n //$level_one_markup[] = ($agent_commission+$agent_markup);\n\n $domain_markup[] = ($admin_markup);\n $level_one_markup[] = ($agent_markup);\n } elseif ($module == 'b2b') {\n \n //B2B Calculation\n $this->commission = $currency_obj->get_commission();\n //Commission\n $no_of_seats = count($params['result']['ticket_details']['seat_fare_details']);\n $tieup_agent_commission_percentage = $params['result']['ticket_details']['commission'];\n $seat_fare_data = $current_seat_fare;\n \n \n // $admin_commission = $seat_fare_data['_Commission'];\n $admin_commission = $seat_fare_data['_AdminCommission'];\n $agent_commission = $seat_fare_data['_Commission'];\n // $agent_commission = $this->calculate_commission($admin_commission);\n \n //Markup\n //Admin\n $admin_markup = $currency_obj->get_currency($seat_fare_data['Fare'], true, true, false);\n $price_with_admin_markup = $admin_markup['default_value'];\n $admin_markup = floatval($price_with_admin_markup - $seat_fare_data['Fare']);\n //Agent\n $agent_markup = $currency_obj->get_currency($price_with_admin_markup, true, false, true);\n // $agent_markup = floatval($agent_markup['default_value'] - $price_with_admin_markup);\n $agent_markup = $agent_markup['original_markup']+$extra_markup;\n\t\t\t\t\t//$agent_markup = $seat_fare_data['_AgentMarkup']+$extra_markup\n // debug($seat_fare_data);exit;\n //Transaction Details\n $gst_percent = $GLOBALS['CI']->custom_db->single_table_records('gst_master', '*', array('module' => 'bus'))[\"data\"][0][\"gst\"];\n\n $gst_amount = ($admin_markup/100)*$gst_percent;\n \n $total_fare[] = ($seat_fare_data['Fare']);\n $total_markup = $admin_markup + $agent_markup;\n $gst_value_fare [] = $gst_amount;\n //Adding GST\n \n //$domain_markup[] = ($admin_commission+$admin_markup);\n //$level_one_markup[] = ($agent_commission+$agent_markup);\n\n $domain_markup[] = ($admin_markup);\n $level_one_markup[] = ($agent_markup);\n }\n \n //TDS Calculation\n $admin_tds = $currency_obj->calculate_tds($admin_commission);\n $agent_tds = $currency_obj->calculate_tds($agent_commission);\n \n //Need to store fare also\n $CI->bus_model->save_booking_customer_details($app_reference, $title, $name, $age, $gender, $seat_no, $fare, $status, $seat_type, $is_ac_seat, $admin_commission, $admin_markup, $agent_commission, $agent_markup, $currency, $attr, $admin_tds, $agent_tds);\n $pass_count--;\n }\n }\n \n $total_fare = array_sum($total_fare);\n \n $domain_markup = array_sum($domain_markup);\n $level_one_markup = array_sum($level_one_markup);\n \n // echo $params['temp_booking_cache']['book_attributes']['token']['CancPolicy'];exit;\n $phone_number = $params['temp_booking_cache']['book_attributes']['passenger_contact'];\n $phone_code = $params['temp_booking_cache']['book_attributes']['phone_country_code'];\n $alternate_number = $params['temp_booking_cache']['book_attributes']['alternate_contact'];\n $payment_mode = $params['temp_booking_cache']['book_attributes']['payment_method'];\n $email = @$params['temp_booking_cache']['book_attributes']['billing_email'];\n $canacel_policy = $params['temp_booking_cache']['book_attributes']['token']['CancPolicy'];\n $selected_pm = $params['temp_booking_cache']['book_attributes']['selected_pm'];\n\n $created_by_id = intval(@$CI->entity_user_id);\n $bus_booking_origin = $CI->bus_model->save_booking_details($domain_origin, $status, $app_reference, $booking_source, $pnr, $ticket, $transaction, $phone_number, $alternate_number, $payment_mode, $created_by_id, $email, $transaction_currency, $currency_conversion_rate, $canacel_policy, $phone_code, $selected_pm);\n /**\n * ************ Update Convinence Fees And Other Details Start *****************\n */\n // Convinence_fees to be stored and discount\n $convinence = 0;\n $discount = 0;\n $convinence_value = 0;\n $convinence_type = 0;\n $convinence_per_pax = 0;\n $gst_value = 0;\n \n if ($module == 'b2c') {\n $master_search_id = 111;\n $total_transaction_amount = $total_fare+$domain_markup;\n \n $bd_attrs = $params['temp_booking_cache']['book_attributes'];\n //debug($bd_attrs); exit;\n $pg_name = $bd_attrs[\"selected_pm\"];\n $payment_method = $bd_attrs[\"payment_method\"];\n $bank_code = $bd_attrs[\"bank_code\"];\n if($payment_method == \"credit_card\")\n $method = \"CC\";\n if($payment_method == \"debit_card\")\n $method = \"DC\";\n if($payment_method == \"paytm_wallet\")\n $method = \"PPI\";\n if($payment_method == \"wallet\")\n $method = \"wallet\";\n /*$convinence = $currency_obj->convenience_fees($total_transaction_amount, $master_search_id, $no_of_seats, $pg_details);*/\n $convinence_array = $currency_obj->get_instant_recharge_convenience_fees($total_transaction_amount, $method, $bank_code);\n $convinence = $convinence_array[\"cf\"];\n $supplier_fees = $convinence_array[\"sf\"];\n $pace_fees = $convinence_array[\"pf\"];\n $convinence_type = \"plus\"; //$convinence_row['type'];\n $convinence_per_pax = 0; //$convinence_row['per_pax'];\n\t\t\t\n if($params['temp_booking_cache']['book_attributes']['promo_actual_value']){\n $discount = get_converted_currency_value ( $promo_currency_obj->force_currency_conversion ( $params['temp_booking_cache']['book_attributes']['promo_actual_value']) );\n }\n //$discount = @$params ['booking_params'] ['promo_code_discount_val'];\n $promo_code = @$params['temp_booking_cache']['book_attributes']['promo_code'];\n //GST Calculation\n if($total_markup > 0 ){\n $total_markup = $no_of_seats*$total_markup;\n $gst_details = $GLOBALS['CI']->custom_db->single_table_records('gst_master', '*', array('module' => 'bus'));\n if($gst_details['status'] == true){\n if($gst_details['data'][0]['gst'] > 0){\n $gst_value = (($total_markup)* $gst_details['data'][0]['gst'])/100 ;\n }\n }\n }\n } elseif ($module == 'b2b') {\n \t$tta_temp = $total_fare+$domain_markup+$level_one_markup;\n \t$bd_attrs = $params['temp_booking_cache']['book_attributes'];\n \t//debug($bd_attrs); exit;\n \t$pg_name = $bd_attrs[\"selected_pm\"];\n \t$payment_method = $bd_attrs[\"payment_method\"];\n \t$bank_code = $bd_attrs[\"bank_code\"];\n \tif($payment_method == \"credit_card\")\n \t\t$method = \"CC\";\n \tif($payment_method == \"debit_card\")\n \t\t$method = \"DC\";\n \tif($payment_method == \"paytm_wallet\")\n \t\t$method = \"PPI\";\n if($payment_method == \"wallet\")\n $method = \"wallet\";\n /*$convinence = $currency_obj->convenience_fees($total_transaction_amount, $master_search_id, $no_of_seats, $pg_details);*/\n $convinence_array = $currency_obj->get_instant_recharge_convenience_fees($tta_temp, $method, $bank_code);\n $convinence = $convinence_array[\"cf\"];\n $supplier_fees = $convinence_array[\"sf\"];\n $pace_fees = $convinence_array[\"pf\"];\n //debug($bd_attrs); exit;\n //$convinence_row = $currency_obj->get_convenience_fees();\n $convinence_value = $convinence; //$convinence_row['value'];\n $convinence_type = \"plus\"; //$convinence_row['type'];\n $convinence_per_pax = 0; //$convinence_row['per_pax'];\n $gst_value = array_sum($gst_value_fare);\n $promo_code ='';\n }\n\n $GLOBALS ['CI']->load->model ( 'transaction' );\n // SAVE Booking convinence_discount_details details\n $GLOBALS ['CI']->transaction->update_convinence_discount_details ( 'bus_booking_details', $app_reference, $discount, $promo_code, $convinence, $convinence_value, $convinence_type, $convinence_per_pax, $gst_value, $pace_fees, $supplier_fees );\n /**\n * ************ Update Convinence Fees And Other Details End *****************\n */\n\n $response['name'] = $name;\n $response['fare'] = $total_fare;\n $response['domain_markup'] = $domain_markup;\n $response['level_one_markup'] = $level_one_markup;\n $response['convinence'] = $convinence;\n $response['gst_value'] = $gst_value;\n $response['phone'] = $phone_number;\n $response['transaction_currency'] = $transaction_currency;\n $response['currency_conversion_rate'] = $currency_conversion_rate;\n //$response['email'] = $email;\n \n return $response;\n }", "title": "" }, { "docid": "18a25167df2f07e3e9947f852d7cadc5", "score": "0.5617855", "text": "public function __construct($booking)\n {\n $this->booking = $booking;\n }", "title": "" }, { "docid": "764b9b4b95aac461fa5415325731ad1f", "score": "0.5616109", "text": "public function run() {\n $report = [];\n $bookers = [];\n $bookings = [];\n $items = [];\n\n\n // Load all bookings\n $bookings_raw = $this->db->prepare('SELECT * FROM bookings')->run();\n foreach($bookings_raw as $b) {\n $bookings[$b->id] = $b;\n }\n\n\n // Load all bookingitems\n $items_raw = $this->db->prepare('SELECT * FROM bookingitems')->run();\n foreach($items_raw as $item) {\n $booking = $bookings[$item->booking_id];\n if(!isset($bookers[$booking->booker_id])) {\n $bookers[$booking->booker_id] = [\n 'first_booking' => null,\n 'bookings' => [],\n 'sum' => []\n ];\n }\n $booker = &$bookers[$booking->booker_id];\n\n // Saving first booking\n if($booker['first_booking'] > $item->end_timestamp || is_null($booker['first_booking'])) {\n $booker['first_booking'] = $item->end_timestamp;\n }\n\n // I'd consider here that \"average number of bookings\" in the report is actually number of bookings, not items\n $day = (int) date(\"Ymd\", $item->end_timestamp); // for grouping\n $booker['bookings'][$day][$booking->id] = 1;\n if(!isset($booker['sum'][$day])) {\n $booker['sum'][$day] = 0;\n }\n $booker['sum'][$day] += $item->locked_total_price;\n }\n\n\n // Mix it!\n $today = (int) date(\"Ym\");\n $maximum_first_date = (new DateTime())\n ->sub(new DateInterval('P' . $this->period . 'M'))\n ->modify('midnight')\n ->format(\"U\");\n foreach($bookers as $id => $booker) {\n if($booker['first_booking'] >= $maximum_first_date) {\n continue;\n }\n $maximum_day = (new DateTime('@' . $booker['first_booking']))\n ->add(new DateInterval('P' . $this->period . 'M'))\n ->format(\"Ymd\");\n $report_month = date(\"Y-m\", $booker['first_booking']);\n $booker_bookings = [];\n $booker_sum = 0;\n // Filtering only bookings for period\n foreach($booker['bookings'] as $day => $bkngs) {\n if($day <= $maximum_day) {\n foreach($bkngs as $id => $v) {\n $booker_bookings[$id] = $v;\n }\n $booker_sum += $booker['sum'][$day];\n }\n }\n $report[$report_month]['bookers'][$id] = [ 'bookings' => $booker_bookings, 'sum' => $booker_sum ];\n }\n\n\n // Generate a report\n $result = [];\n $rows = array_keys($report);\n sort($rows);\n foreach($rows as $month) {\n $bookers_count = count($report[$month]['bookers']);\n $bookings_count = array_sum(array_map(function($i) { return count($i['bookings']); }, $report[$month]['bookers']));\n $bookings_sum = array_sum(array_map(function($i) { return $i['sum']; }, $report[$month]['bookers']));\n $this->add(\n $month,\n $bookers_count,\n $bookers_count > 0 ? ($bookings_count/$bookers_count) : 0,\n $bookings_count > 0 ? ($bookings_sum/$bookings_count) : 0,\n $bookings_count > 0 ? ($this->commission * $bookings_sum/$bookings_count) : 0\n );\n }\n }", "title": "" }, { "docid": "b3c3fd4e2c8b73868da4b1ded7916140", "score": "0.56112605", "text": "protected function getConflicting(Booking $booking)\n\t{\n\t\n\t\t$repo = $this->getDoctrine()->getRepository('AppBundle:Booking');\n\t\t$builder = $repo->createQueryBuilder('b')\n\t\t->andWhere('b.date = :date')\n\t\t->setParameter(\"date\", $booking->getDate())\n\t\t->andWhere('b.boat = :boat')\n\t\t->setParameter(\"boat\", $booking->getBoat());\n\t\t\n\t\t// Only match non cancelled bookings.\n\t\t$builder->andWhere($builder->expr()->in('b.status', array(\n\t\t\t\tBooking::STATUS_CLOSED,\n\t\t\t\tBooking::STATUS_CONFIRMED,\n\t\t\t\tBooking::STATUS_DELIVERED\n\t\t)));\n\t\t\n\t\t// If we are booking a fishing booking, other fishing bookings are not conflicting.\n\t\tif($booking->getType() == Booking::TYPE_FISHING)\n\t\t\t$builder->andWhere($builder->expr()->neq('b.type', \":type\"))\n\t\t\t->setParameter(\"type\", Booking::TYPE_FISHING);\n\t\n\t\t// Lookup bookings which (partially) overlap the selected period. Either their start and/or end time fall within\n\t\t// an existing booking, or they completely overlap and existing booking.\n\t\t$builder->andWhere(\n\t\t\t\t$builder->expr()->orX(\n\t\t\t\t\t\t$builder->expr()->andX(\n\t\t\t\t\t\t\t\t$builder->expr()->gt(\"b.start\", \":start\"),\n\t\t\t\t\t\t\t\t$builder->expr()->lt(\"b.start\", \":end\")\n\t\t\t\t\t\t),\n\t\t\t\t\t\t$builder->expr()->andX(\n\t\t\t\t\t\t\t\t$builder->expr()->gt(\"b.end\", \":start\"),\n\t\t\t\t\t\t\t\t$builder->expr()->lt(\"b.end\", \":end\")\n\t\t\t\t\t\t),\n\t\t\t\t\t\t$builder->expr()->andX(\n\t\t\t\t\t\t\t\t$builder->expr()->lte(\"b.start\", \":start\"),\n\t\t\t\t\t\t\t\t$builder->expr()->gte(\"b.end\", \":end\")\n\t\t\t\t\t\t)\n\t\t\t\t)\n\t\t)\n\t\t->setParameter(\"start\", $booking->getStart())\n\t\t->setParameter(\"end\", $booking->getEnd());\n\t\t\n\t\t// Exclude the current booking in case it is already persisted.\n\t\tif($booking->getId() != null)\n\t\t{\n\t\t\t$builder->andWhere('b.id != :id')\n\t\t\t->setParameter(\"id\", $booking->getId());\n\t\t}\n\t\t\n\t\t$query = $builder->getQuery();\n\t\treturn $query->getResult();\n\t}", "title": "" }, { "docid": "955602ba422141baa1ebdd91b033436a", "score": "0.560265", "text": "public function book_day_office(){\n\t\tauthenticate(array('ut5'));\n\t\t$userId = $this->session->userdata(\"userId\");\n\t\t$userTypeId = $this->session->userdata(\"userTypeId\");\n\t\t$data['userData'] = $this->receptionist_login->getUserProfile($userId);\n\t\t$data['location']=$this->lm->getlocationbycity($data['userData']['city_id']); \n\t\t$data['cities']=$this->lm->getcities();\n\t\t\n\t\t$data['business_data']=$this->client_model->getbusinessbyuserlocation($data['userData']['city_id'],$data['userData']['location_id']); \n\t\t$data['dayoffice_data']=$this->client_model->getdayofficebybusiness($data['business_data'][0]['business_id']);\n\t\tif(!empty($data['conference_data'])){\n\t\t\t$starttime = strtotime($data['conference_data'][0]['start_time']); \n\t\t\t$endtime = strtotime($data['conference_data'][0]['end_time']); \n\t\t\t$data['diff'] = abs($endtime - $starttime) / 3600;\n\t\t}\n\t\t$this->load->view(\"book_dayoffice_room\",$data);\n\t}", "title": "" }, { "docid": "858eee5201cc4c15397919beec52dc8a", "score": "0.5577315", "text": "public function booking() {\n\t\t$packages = $this->packageService->getPackageList();\n\t\t$bookings = $this->bookingService->getBookingListById();\n\t\t$destinations = $this->destinationService->getDestinationList();\n\t\treturn view('User.booking', compact('packages', 'bookings', 'destinations'))\n\t\t->with('i', 0);\n\t}", "title": "" }, { "docid": "d36bac13f74366ff05f48951248abdd0", "score": "0.55763984", "text": "function display_book($bookID = null){\n include_once(\"apresentacao/chapter.php\");\n $book = getBookInfo($bookID);\n if(!$book) {\n display_error(\"The Book requested doesn't exist or was deleted!\");\n return;\n }\n echo \"\n <form id='PageInfo'><input type='hidden' name='BookPageMarker' class='book' id='$bookID' value='{$book['title']}'></form>\n <div class='book-title-container'>\n <div id='title' width=40%><a href='book-list/?title={$book['title']}'>{$book['title']}</a></div>\n <div id='author' width=40%>By: {$book['author']}</div>\n <div id='stars' width=10%>\";starIndicator('T'.$book['title'],$book['popularity']);\n echo \"</div>\";\n echo \"\n <div class= 'float-right button library-icon-container' onclick='toggleBookOnLibrary($bookID);'><span style='display:inherit'>\n <i id='library-icon' class='big-logo library'></i>\n <i id='library-status-icon2' class='logo \".( userAuthenticationStatus()? (getBookAddedToLibraryState($bookID)?\"right\":\"remove\"):\"no-go\") .\"'></i>\n </span>\n </div>\";\n echo \"\n </div>\n <div>\n <div class='float border' style='width:250px;max-height:350px;margin-left: 20px;'>\n <img src='{$book['cover']}' alt='img/cover.png'>\n </div>\n <div class='float' style='min-width: 70%;width:calc(100% - 250px - 20px)'>\n <div class='green title' style='margin-right:50%;'>Synopsis</div>\n <div class='green description' style='min-height:250px;'><p>\n {$book['synopsis']}</p><br><br>\n <div class='title black' style='position:relative;right:1%;bottom:1%;display:inline-block;'><p>Rate this book:<p>\n \";starRating($bookID,'bookid',(userAuthenticationStatus()?getUserBookRate($bookID):0)); echo \"\n </div>\n <div class='title no-border' style='margin-bottom:2em;margin-right:2em;padding:0em;'>Genres:</div>\";\n $result = getGenreList($bookID);\n $num_linhas = pg_numrows($result);\n $i = 0;\n while ($i < $num_linhas) {\n $row = pg_fetch_assoc($result);\n $genreX = $row['genre'];\n echo \"\n <a style='padding:5px;display:inline-block;width:auto;' class='button button1'>\".$genreX.\"</a>\";\n $i++;\n }\n echo \"\n </div>\n </div>\n </div>\n\n \";\n display_chapter_list($book);\n}", "title": "" }, { "docid": "4e07aa9117806b50924bdc114c8948a5", "score": "0.55678797", "text": "public function show(Booking $booking)\n {\n //\n }", "title": "" }, { "docid": "4e07aa9117806b50924bdc114c8948a5", "score": "0.55678797", "text": "public function show(Booking $booking)\n {\n //\n }", "title": "" }, { "docid": "4e07aa9117806b50924bdc114c8948a5", "score": "0.55678797", "text": "public function show(Booking $booking)\n {\n //\n }", "title": "" }, { "docid": "4e07aa9117806b50924bdc114c8948a5", "score": "0.55678797", "text": "public function show(Booking $booking)\n {\n //\n }", "title": "" }, { "docid": "18734ed404ce1a9ae09d997f376eb600", "score": "0.556452", "text": "function add_bookings($params)\n {\n $this->db->insert('bookings', $params);\n $id = $this->db->insert_id();\n $db_error = $this->db->error();\n if (! empty($db_error['code'])) {\n echo 'Database error! Error Code [' . $db_error['code'] . '] Error: ' . $db_error['message'];\n exit();\n }\n return $id;\n }", "title": "" }, { "docid": "92b9e18be2289f612f09f4499f768834", "score": "0.55633944", "text": "public function bookingActions(Request $request)\n {\n\n $bookingId = $request->input('id');\n $amount = $request->input('amount');\n $status = $request->input('status');\n\n if ($status == 'confirmed') {\n\n $status = Status::where('name', 'confirmed')->first();\n } else {\n $status = Status::where('name', 'rejected')->first();\n\n }\n\n\n $artistBooking = ArtistBooking::where('id', $bookingId)->first();\n\n if ($artistBooking->artist->user->id == Auth::id()) {\n\n $artistBooking->amount = $amount;\n $artistBooking->status_id = $status->id;\n\n\n $artistBooking->save();\n\n Mail::to($artistBooking->email)->send(new ArtistDetailsMail($artistBooking));\n\n return response()->json([\n 'created' => true\n ]);\n\n } else {\n return response()->json([\n 'error' => 'unauthenticated'\n ]);\n }\n\n }", "title": "" }, { "docid": "b24c6749b98e8cbfda686950acb2a1b5", "score": "0.5563281", "text": "function getOpenBookings($memberNo) {\r\n\r\n\t$db = connect();\r\n\r\n\ttry{\r\n\t\t// $stmt = $db->prepare('SELECT car, bookingID, bookingDate FROM Booking WHERE memberNo=:memberNo');\r\n\t\t$stmt = $db->prepare('SELECT car, bookingID, bookingDate, address FROM Booking NATURAL JOIN ParkBay WHERE memberNo=:memberNo');\r\n//bayLocation,\r\n\t\t$stmt->bindValue(':memberNo', $memberNo);\r\n\r\n\t\t$stmt->execute();\r\n\r\n\t\t$results = $stmt->fetchAll();\r\n\r\n\t\t$stmt->closeCursor();\r\n\t}catch (PDOException $e) { \r\n print \"Error Fetching Current Bookings.\" ; \r\n return;\r\n }\r\n \r\n return $results;\r\n}", "title": "" }, { "docid": "858301933f41bdce63b99181fc48f4c9", "score": "0.55629236", "text": "function _guestbook_records($order, $start, $perpage) {\n\n\tglobal $mysql, $tpl, $userROW, $config, $parse;\n\tforeach ($mysql->select(\"SELECT * FROM \" . prefix . \"_guestbook WHERE status = 1 ORDER BY id {$order} LIMIT {$start}, {$perpage}\") as $row) {\n\t\tif (pluginGetVariable('guestbook', 'usmilies')) {\n\t\t\t$row['message'] = $parse->smilies($row['message']);\n\t\t}\n\t\tif (pluginGetVariable('guestbook', 'ubbcodes')) {\n\t\t\t$row['message'] = $parse->bbcodes($row['message']);\n\t\t}\n\t\t$editlink = checkLinkAvailable('guestbook', 'edit') ?\n\t\t\tgeneratePluginLink('guestbook', 'edit', array('id' => $row['id']), array()) :\n\t\t\tgenerateLink('core', 'plugin', array('plugin' => 'guestbook', 'handler' => 'edit'), array('id' => $row['id']));\n\t\t$dellink = generateLink('core', 'plugin', array('plugin' => 'guestbook'), array('action' => 'delete', 'id' => $row['id']));\n\t\t$comnum++;\n\t\t// get fields\n\t\t$data = $mysql->select(\"select * from \" . prefix . \"_guestbook_fields\");\n\t\t$fields = array();\n\t\tforeach ($data as $num => $value) {\n\t\t\t$fields[$value['id']] = $value['name'];\n\t\t}\n\t\t$comment_fields = array();\n\t\tforeach ($fields as $fid => $fname) {\n\t\t\t$comment_fields[$fid] = array(\n\t\t\t\t'id' => $fid,\n\t\t\t\t'name' => $fname,\n\t\t\t\t'value' => $row[$fid],\n\t\t\t);\n\t\t}\n\t\t// set date format\n\t\t$date_format = pluginGetVariable('guestbook', 'date');\n\t\tif (empty($date_format)) {\n\t\t\t$date_format = 'j Q Y';\n\t\t}\n\t\t// get social data\n\t\t$social = unserialize($row['social']);\n\t\t$profiles = array();\n\t\tforeach ($social as $name => $id) {\n\t\t\t$img = $mysql->record(\"SELECT name, description FROM \" . prefix . \"_images WHERE id = {$id}\");\n\t\t\t$profiles[$name] = array(\n\t\t\t\t'photo' => $config['images_url'] . '/' . $img['name'],\n\t\t\t\t'link' => $img['description'],\n\t\t\t);\n\t\t}\n\t\t$comments[] = array(\n\t\t\t'id' => $row['id'],\n\t\t\t'date' => LangDate($date_format, $row['postdate']),\n\t\t\t'message' => $row['message'],\n\t\t\t'answer' => $row['answer'],\n\t\t\t'author' => $row['author'],\n\t\t\t'ip' => $row['ip'],\n\t\t\t'comnum' => $comnum,\n\t\t\t'edit' => $editlink,\n\t\t\t'del' => $dellink,\n\t\t\t'fields' => $comment_fields,\n\t\t\t'social' => $profiles\n\t\t);\n\t}\n\n\treturn $comments;\n}", "title": "" }, { "docid": "5f93d45ff9fdd1c7e52fe8ca17701be3", "score": "0.5561345", "text": "public function main() {\n\n\t\t$GLOBALS['TSFE']->fe_user = tslib_eidtools::initFeUser();\n\n\t\t$fegroup = $_REQUEST['fegroup'];\n\t\t$storagePid = $_REQUEST['storagePid'];\n//~ print_r($_REQUEST);\n\t\tif (!in_array($fegroup, explode(',', $GLOBALS['TSFE']->fe_user->user['usergroup'])))\n\t\t\treturn;\n\n\t\tif ($_SERVER['REQUEST_METHOD'] == 'POST') {\n\t\t\t$this->updateBookingDetails($storagePid);\n\t\t\treturn;\n\t\t}\n\n\t\t$start = $_GET['start'];\n\t\t$stop = $_GET['end'];\n\t\t$uids = $_GET['uids'];\n\n\t\ttslib_eidtools::connectDB(); //Connect to database\n\n\t\t$interval['startList'] = $start;\n\t\t$interval['endList'] = $stop;\n\t\t$bookedPeriods = $this->getBookings($storagePid, $uids, $interval);\n\t\t$jsonevent = array();\n\n\t\tforeach ($bookedPeriods as $booking) {\n\n\t\t\t$foundevent = array();\n\n\t\t\t$foundevent['id'] = $booking['uid'];\n\t\t\t$titleinfo = explode(',', $booking['title']);\n\t\t\t$foundevent['title'] = trim($titleinfo[1]);\n\n\t\t\t$foundevent['description'] .= '<form id = \"submitForm' . $booking['uid'] . '\" action=\"?eID=ab_booking\" method=\"POST\">';\n\t\t\t$bookingDetails = $this->getBookingDetails($storagePid, $booking['uid']);\n\t\t\tforeach ($bookingDetails as $key => $detail) {\n\t\t\t\tswitch ($key) {\n\t\t\t\t\tcase 'message': $foundevent['description'] .= $key.' = <textarea type=\"text\" cols=\"60\" rows=\"5\" name=\"'.$key.'\">'.$detail.'</textarea>' . \"<br />\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'checkinDate': $foundevent['description'] .= $key.' = <input class=\"'.$cssError.' datepicker\" name=\"'.$key.'\" type=\"'.$input.'\" value=\"'.strftime('%x', $booking['startdate']).'\" /> <br /> ';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'daySelector': $foundevent['description'] .= $key.' = <input class=\"'.$cssError.' datepicker\" name=\"'.$key.'\" type=\"'.$input.'\" value=\"'.strftime('%x', $booking['enddate']).'\" /> <br /> ';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\t\t$foundevent['description'] .= $key.' = <input type=\"text\" name=\"'.$key.'\" value=\"'.$detail.'\" />' . \"<br />\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$foundevent['description'] .= '<input type=\"hidden\" name=\"uid\" value=\"'.$booking['uid'].'\">';\n\t\t\t$foundevent['description'] .= '<input type=\"hidden\" name=\"fegroup\" value=\"'.$fegroup.'\">';\n\t\t\t$foundevent['description'] .= '<input type=\"hidden\" name=\"storagePid\" value=\"'.$storagePid.'\">';\n\t\t\t$foundevent['description'] .= '<input type=\"submit\">';\n\n\t\t\t$foundevent['description'] .= '\n\t\t\t<script>\n\t\t\t$(\"#submitForm' . $booking['uid'].'\").submit(function() {\n\t\t\t\tvar url = \"?eID=ab_booking\"\n\t\t\t\t$.ajax({\n\t\t\t\t\t type: \"POST\",\n\t\t\t\t\t url: url,\n\t\t\t\t\t data: $(\"#submitForm' . $booking['uid'].'\").serialize(),\n\t\t\t\t\t success: function(dd) {\n\t\t\t\t\t\t\talert(dd);\n\t\t\t\t\t\t\tparent.$.fancybox.close();\n\t\t\t\t\t }\n\t\t\t\t\t });\n\n\t\t\t\treturn false;\n\t\t\t});\n\t\t\t</script>\n\t\t\t';\n\t\t\t$foundevent['description'] .= '</form>';\n\t\t\t//~ $foundevent['description'] = trim($titleinfo[1]) . \"\\n\" . trim($titleinfo[2])\n\t\t\t//~ . \"\\n\" . trim($titleinfo[3])\n\t\t\t//~ . \"\\n\" . trim($titleinfo[4])\n\t\t\t//~ . \"\\n\" . trim($titleinfo[5])\n\t\t\t//~ ;\n\t\t\t$foundevent['start'] = $booking['startdate'];\n\t\t\t$foundevent['className'] = 'category-' . $booking['cat'];\n\t\t\t$foundevent['end'] = $booking['enddate'] -10;\n\n\t\t\t$foundevent['allDay'] = true;\n\n\t\t\t$jsonevent[] = $foundevent;\n\n\t\t}\n\t\tprint json_encode($jsonevent);\n\t}", "title": "" }, { "docid": "10f17a78fc0e70499ef843f61a020829", "score": "0.5557005", "text": "public function borrow_book()\n {\n $ISBN = $_GET[\"ISBN\"];\n $result = Book::borrowBook($ISBN);\n echo \"<script language='javascript'>alert('$result')</script>\";\n $_POST[\"ISBN\"] = $ISBN;\n BookController::bookStatusPage();\n }", "title": "" }, { "docid": "12eb0095a40c47c76a3052affd8cb6da", "score": "0.55538034", "text": "public function render_bookings_dashboard_widget() {\n\t\tif ( false === ( $bookings = get_transient( 'wcpv_reports_bookings_wg_' . WC_Product_Vendors_Utils::get_logged_in_vendor() ) ) ) {\n\t\t\t$args = array(\n\t\t\t\t'post_type' => 'wc_booking',\n\t\t\t\t'posts_per_page' => 20,\n\t\t\t\t'post_status' => array( 'pending', 'publish', 'future', 'private' ),\n\t\t\t);\n\n\t\t\t$bookings = get_posts( apply_filters( 'wcpv_bookings_list_widget_args', $args ) );\n\n\t\t\tif ( ! empty( $bookings ) ) {\n\t\t\t\t// filter out only bookings with products of the vendor.\n\t\t\t\t$bookings = array_filter( $bookings, array( $this, 'filter_booking_products' ) );\n\t\t\t}\n\n\t\t\tset_transient( 'wcpv_reports_bookings_wg_' . WC_Product_Vendors_Utils::get_logged_in_vendor(), $bookings, DAY_IN_SECONDS );\n\t\t}\n\n\t\tif ( empty( $bookings ) ) {\n\t\t\techo '<p>' . __( 'There are no bookings available.', 'woocommerce-product-vendors' ) . '</p>';\n\n\t\t\treturn;\n\t\t}\n\t\t?>\n\n\t\t<table class=\"wcpv-vendor-bookings-widget wp-list-table widefat fixed striped posts\">\n\t\t\t<thead>\n\t\t\t\t<tr>\n\t\t\t\t\t<th><?php esc_html_e( 'Booking ID', 'woocommerce-product-vendors' ); ?></th>\n\t\t\t\t\t<th><?php esc_html_e( 'Booked Product', 'woocommerce-product-vendors' ); ?></th>\n\t\t\t\t\t<th><?php esc_html_e( '# of Persons', 'woocommerce-product-vendors' ); ?></th>\n\t\t\t\t\t<th><?php esc_html_e( 'Booked By', 'woocommerce-product-vendors' ); ?></th>\n\t\t\t\t\t<th><?php esc_html_e( 'Order', 'woocommerce-product-vendors' ); ?></th>\n\t\t\t\t\t<th><?php esc_html_e( 'Start Date', 'woocommerce-product-vendors' ); ?></th>\n\t\t\t\t\t<th><?php esc_html_e( 'End Date', 'woocommerce-product-vendors' ); ?></th>\n\t\t\t\t</tr>\n\t\t\t</thead>\n\n\t\t\t<tbody id=\"the-list\">\n\t\t\t\t<?php\n\t\t\t\tforeach ( $bookings as $booking ) {\n\t\t\t\t\t$booking_item = get_wc_booking( $booking->ID );\n\t\t\t\t\t?>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td><a href=\"<?php echo get_edit_post_link( $booking->ID ); ?>\" title=\"<?php esc_attr_e( 'Edit Booking', 'woocommerce-product-vendors' ); ?>\"><?php printf( __( 'Booking #%d', 'woocommerce-product-vendors' ), $booking->ID ); ?></a></td>\n\n\t\t\t\t\t\t<td><a href=\"<?php echo get_edit_post_link( $booking_item->get_product()->get_id() ); ?>\" title=\"<?php esc_attr_e( 'Edit Product', 'woocommerce-product-vendors' ); ?>\"><?php echo $booking_item->get_product()->post->post_title; ?></a></td>\n\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\tif ( $booking_item->has_persons() ) {\n\t\t\t\t\t\t\t\techo $booking_item->get_persons_total();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tesc_html_e( 'N/A', 'woocommerce-product-vendors' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t</td>\n\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\tif ( $booking_item->get_customer() ) {\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t<a href=\"mailto:<?php echo esc_attr( $booking_item->get_customer()->email ); ?>\"><?php echo $booking_item->get_customer()->name; ?></a>\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tesc_html_e( 'N/A', 'woocommerce-product-vendors' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t</td>\n\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\tif ( $booking_item->get_order() ) {\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t<a href=\"<?php echo admin_url( 'admin.php?page=wcpv-vendor-order&id=' . $booking_item->order_id ); ?>\" title=\"<?php esc_attr_e( 'Order Detail', 'woocommerce-product-vendors' ); ?>\"><?php printf( __( '#%d', 'woocommerce-product-vendors' ), $booking_item->order_id ); ?></a> &mdash; <?php echo WC_Product_Vendors_Utils::format_order_status( $booking_item->get_order()->get_status() ); ?>\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tesc_html_e( 'N/A', 'woocommerce-product-vendors' );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t</td>\n\n\t\t\t\t\t\t<td><?php echo $booking_item->get_start_date(); ?></td>\n\t\t\t\t\t\t<td><?php echo $booking_item->get_end_date(); ?></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<?php\n\t\t\t\t}\n\t\t\t\t?>\n\t\t\t</tbody>\n\t\t</table>\n\t\t<?php\n\t}", "title": "" }, { "docid": "6d8dbcf015a9e49f8a88e3ad1b5480c0", "score": "0.5547177", "text": "function borrowBook($data)\n {\n $currentDate = $this->db->query(\"SELECT CURRENT_DATE\")->row();\n $dataToBeInserted = array(\n \"idbooks\" => $data['idbooks'],\n \"userid\" => $data['userid'],\n \"issue_date\" => $currentDate->CURRENT_DATE\n );\n\n $insertRecord = $this->db->insert(\"user_book\", $dataToBeInserted);\n }", "title": "" }, { "docid": "2278dde7e3103e7a567f72931045ce8c", "score": "0.5544489", "text": "function listAvailableBooks($str) {\r\n\t\r\n\t$books = getAvailableBooks($str);\r\n\t\r\n\tif(mysqli_num_rows($books)) {\t/* any records exist? */\r\n\t\t/* start printing table */\r\n\t\techo '<tr>\r\n\t\t\t\t<th>Title</th>\r\n\t\t\t\t<th>Author</th>\r\n\t\t\t\t<th>Publisher</th>\r\n\t\t\t\t<th>Quantity</th>\r\n\t\t\t\t<th></th>\r\n\t\t\t</tr>\r\n\t\t <tbody>';\r\n\t\twhile($row = mysqli_fetch_array($books)) {\t/* for every book */\r\n\t\t\t/* show book properties */\r\n\t\t\techo '<tr>\r\n\t\t\t\t\t<td>'.$row[\"title\"].'</td>\r\n\t\t\t\t\t<td>'.$row[\"a_name\"].' '.$row[\"a_surname\"].'</td>\r\n\t\t\t\t\t<td>'.$row[\"p_name\"].'</td>\r\n\t\t\t\t\t<td>'.$row[\"stock_num\"].'</td>\r\n\t\t\t\t\t<td>\r\n\t\t\t\t\t\t<form action=\"borrow_book_confirm.php\" method=\"POST\">\r\n\t\t\t\t\t\t\t<input type=\"hidden\" id=\"bookID\" name=\"bookID\" value=\"'.$row['bookID'].'\">\r\n\t\t\t\t\t\t\t<input type=\"hidden\" id=\"title\" name=\"title\" value=\"'.$row['title'].'\">\r\n\t\t\t\t\t\t\t<input type=\"hidden\" id=\"author\" name=\"author\" value=\"'.$row[\"a_name\"].' '.$row[\"a_surname\"].'\">\r\n\t\t\t\t\t\t\t<input type=\"hidden\" id=\"publisher\" name=\"publisher\" value=\"'.$row['p_name'].'\">\r\n\t\t\t\t\t\t\t<button class=\"modify_btn\" type=\"submit\" style=\"letter-spacing: 0px;\">BORROW</button>\r\n\t\t\t\t\t\t</form>\r\n\t\t\t\t\t</td>\r\n\t\t\t </tr>';\r\n\t\t}\r\n\t\techo '</tbody>';\r\n\t}else {\t/* no record found */\r\n\t\t/* inform admin */\r\n\t\techo'<tr><td style=\"padding-top: 15px; padding: 10px; font-size: 14px; color: red;\">No book has found!</td></tr>';\r\n\t}\r\n}", "title": "" }, { "docid": "d8abfbb02b3e7af98754d3f52a68e1ca", "score": "0.5541075", "text": "function viewAllbookingsForNext3Hours($conn){\r\n\t\t\t\t\t\t\t\t// sets default time zone to Melbourne Victoria\r\n\t\t\t\t\t\t\t\tdate_default_timezone_set ( \"Australia/Victoria\" );\r\n\t\t\t\t\t\t\t\t// current time is stored\r\n\t\t\t\t\t\t\t\t$currentTime = date(\"Y-m-d H:i:s\");\r\n\t\t\t\t\t\t\t\t// to store the time after 3 hours from current time\r\n\t\t\t\t\t\t\t\t$uppetTimeLimit = date(\"Y-m-d H:i:s\",strtotime(\"+3 hours\"));\r\n\t\t\t\t\t\t\t\t// query to display all the unallocated bookings for the next 3 hours\r\n\t\t\t\t\t\t\t\t$listQuery = \"SELECT c.customername, b.refno, b.passengername, b.contactno, b.unitno,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tb.streetno, b.streetname, b.suburb, b.destinationsuburb, b.pickupon\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tFROM customer c\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tINNER JOIN cabBooking b\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tON c.email = b.email\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE b.status = 'UNALLOCATED'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAND b.pickupon BETWEEN '$currentTime' AND '$uppetTimeLimit';\";\r\n\t\t\t\t\t\t\t\t$result = mysqli_query($conn, $listQuery);\r\n\r\n\t\t\t\t\t\t\t\t// printing out the table\r\n\t\t\t\t\t\t\t\tif ($result) {\r\n\t\t\t\t\t\t\t\t\t\techo \"<h1>List of Bookings for the next 3 hours</h1>\";\r\n\t\t\t\t\t\t\t\t\t\techo \"<table>\";\r\n\t\t\t\t\t\t\t\t\t\techo \"<thead>\";\r\n\t\t\t\t\t\t\t\t\t\techo \"<tr>\";\r\n\t\t\t\t\t\t\t\t\t\techo \"<th>Reference No</th>\";\r\n\t\t\t\t\t\t\t\t\t\techo \"<th>Customer Name</th>\";\r\n\t\t\t\t\t\t\t\t\t\techo \"<th>Passenger Name</th>\";\r\n\t\t\t\t\t\t\t\t\t\techo \"<th>Passenger Contact Phone</th>\";\r\n\t\t\t\t\t\t\t\t\t\techo \"<th>Pick up Address</th>\";\r\n\t\t\t\t\t\t\t\t\t\techo \"<th>Destination suburb</th>\";\r\n\t\t\t\t\t\t\t\t\t\techo \"<th>Pick up time</th>\";\r\n\t\t\t\t\t\t\t\t\t\techo \"</tr>\";\r\n\t\t\t\t\t\t\t\t\t\techo \"</thead>\";\r\n\t\t\t\t\t\t\t\t\t\techo \"<tbody>\";\r\n\r\n\t\t\t\t\t\t\t\t\t\t// reading row by row and displaying in a table format\r\n\t\t\t\t\t\t\t\t\t\twhile ($row = mysqli_fetch_assoc($result)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\techo \"<tr>\";\r\n\t\t\t\t\t\t\t\t\t\t\t\techo \"<td>\", $row[\"refno\"], \"</td>\";\r\n\t\t\t\t\t\t\t\t\t\t\t\techo \"<td>\", $row[\"customername\"], \"</td>\";\r\n\t\t\t\t\t\t\t\t\t\t\t\techo \"<td>\", $row[\"passengername\"], \"</td>\";\r\n\t\t\t\t\t\t\t\t\t\t\t\techo \"<td>\", $row[\"contactno\"], \"</td>\";\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t// formating the address based on whether the unit number is present or not\r\n\t\t\t\t\t\t\t\t\t\t\t\tif(is_null($row[\"unitno\"]) || $row[\"unitno\"]==\"\"){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t$pickUpAddress = $row[\"streetno\"].\" \".$row[\"streetname\"].\", \".$row[\"suburb\"];\r\n\t\t\t\t\t\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t$pickUpAddress = $row[\"unitno\"].\"/\".$row[\"streetno\"].\" \".$row[\"streetname\"].\", \".$row[\"suburb\"];\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\techo \"<td>\", $pickUpAddress, \"</td>\";\r\n\t\t\t\t\t\t\t\t\t\t\t\techo \"<td>\", $row[\"destinationsuburb\"], \"</td>\";\r\n\t\t\t\t\t\t\t\t\t\t\t\techo \"<td>\", $row[\"pickupon\"], \"</td>\";\r\n\t\t\t\t\t\t\t\t\t\t\t\techo \"</tr>\";\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\techo \"</tbody>\";\r\n\t\t\t\t\t\t\t\t\t\techo \"</table>\";\r\n\t\t\t\t\t\t\t\t\t\tmysqli_free_result($result);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "de2000b23783e2948bc72bdb2f2f36ec", "score": "0.55390614", "text": "private function handleShowBookedReportRequest() {\r\n\r\n}", "title": "" }, { "docid": "6086d80410ca4054f00a8c33d35ef87b", "score": "0.5532078", "text": "function bookingExists($booking) {\n $this->loadBookingObject();\n $this->loadBookings(mktime(0,0,0, date('m', $booking['starttime']), date('d', $booking['starttime']), date('Y', $booking['starttime'])), mktime(0,0,0, date('m', $booking['starttime']+$booking['duration']), date('d', $booking['starttime']+$booking['duration'])+1, date('Y', $booking['starttime']+$booking['duration'])));\n if(in_array($booking['b_id'], arrayExtract($this->bookings, 'b_id'))) return true;\n else return false;\n }", "title": "" }, { "docid": "499b59b4a796577402250cb4b2396923", "score": "0.5525471", "text": "public function booking() {\n $data = array(\n 'booking_number' => $this->input->post('booking_number'),\n 'status' => $this->input->post('status'),\n 'product' => $this->input->post('product'),\n 'users' => $this->input->post('user'),\n );\n $this->db->insert('booking', $data);\n }", "title": "" }, { "docid": "b993c8d88b87903c7df64448b2b1738d", "score": "0.55210733", "text": "public function testGetBookings()\n {\n $Start = new \\DateTime('24-08-2018');\n $End = new \\DateTime('24-09-2018');\n $Resource = $this->Booking->getResource('double_room');\n\n $Reservation = $this->Booking->getReservations($Resource, $Start, $End);\n $this->assertTrue(is_string(\"No exceptions so far!\")); // always passes, just making sure we can get to here!\n }", "title": "" }, { "docid": "c50a473346ac05202232e5b8ef49e04c", "score": "0.5513082", "text": "public function index()\r\n {\r\n\r\n \t\t// PLEASE NOTE: If you want another page to show up first, links will need to be changed! PLEASE BE CAREFUL!!!\r\n\t\t\tredirect('member_controller/mybookings');\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "5a528db1021a44b812766e8d34d2bcaf", "score": "0.55130386", "text": "function getBookingInfo($bookingID) {\r\n // STUDENT TODO:\r\n // Replace lines below with code to get the detail about the booking.\r\n // Example booking info - this should come from a query. Format is\r\n\t// (bookingID, bay Location, booking Date, booking Hour, duration, car, member Name)\r\n\t\t$db = connect();\r\n\r\n\ttry{\r\n\t\t\r\n\t\t//$stmt = $db->prepare('SELECT bookingID, address, car, nameGiven, bookingDate, bookingHour, duration FROM Booking NATURAL JOIN ParkBay NATURAL JOIN Member WHERE bookingID=:bookingNo');\r\n\t\t$stmt = $db->prepare('SELECT bookingID, car, nameGiven, bookingDate, bookingHour, duration, site, address FROM Booking NATURAL JOIN Member Natural JOIN ParkBay WHERE bookingID=:bookingID');\r\n\t\t$stmt->bindValue(':bookingID', $bookingID);\r\n\r\n\t\t$stmt->execute();\r\n\r\n\t\t$results = $stmt->fetchAll();\r\n\r\n\t\t$stmt->closeCursor();\r\n\t}catch (PDOException $e) { \r\n print \"Error Fecthing Current Bookings.\" ; \r\n return;\r\n }\r\n\r\n //print_r($results);\r\n \r\n return $results;\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n //return array('bookingID'=>1, 'bayLocation'=>'CBD', 'bookingDate'=> '10/05/2015','bookingHour'=>'10:01','duration'=>2,'car'=> 'Harry the Goat','memberName'=>'Uwe');\r\n}", "title": "" }, { "docid": "b62ceeec3112b6341d6e93d5f0d84386", "score": "0.5512686", "text": "public function onUpdateBookable()\n {\n $trackday = $this->getBaseModel()->where('id', post('id'))->first();\n\n if (empty($trackday)) {\n return;\n }\n\n $trackday->bookable = !$trackday->bookable;\n\n $trackday->save();\n\n $this->reloadTable();\n }", "title": "" }, { "docid": "e1035ec2c221bae5fce6515e0020beb1", "score": "0.55085254", "text": "public function booking_step_2_find_rooms($checkin, $checkout, $total_guests, $live_bookings) {\n\t\tglobal $wpdb;\n\n\t\t// 1.\n\t\t// create a pivot table of the existing bookings\n\t\t$this->booking_post->create_live_bookings_table();\n\t\t\n\t\t// 2.\n\t\t// for each of the live bookings made, insert them into the pivot table\n\t\tfor ($l = 1; $l <= count($live_bookings); $l ++) {\n\t\t\t// convert dates to unix time\n\t\t\t$live_bookings[$l]['checkin'] = Quitenicebooking_Utilities::to_timestamp($live_bookings[$l]['checkin'], $this->settings);\n\t\t\t$live_bookings[$l]['checkout'] = Quitenicebooking_Utilities::to_timestamp($live_bookings[$l]['checkout'], $this->settings);\n\t\t\t\n\t\t\t$this->booking_post->add_live_booking($live_bookings[$l]);\n\t\t}\n\n\t\t// 3.\n\t\t// bring all the accomodations into all_rooms\n\t\t// it's needed as an argument to the collision summary table\n\t\t// all_rooms is also needed later when the collisions are subtracted from it\n\t\t$all_rooms = $this->accommodation_post->get_all_accommodations();\n\n\t\t// 4.\n\t\t// get the collision summary table\n\t\t// convert all dates to unix time\n\t\t$datefrom = Quitenicebooking_Utilities::to_timestamp($checkin, $this->settings);\n\t\t$dateto = Quitenicebooking_Utilities::to_timestamp($checkout, $this->settings);\n\t\t\n\t\t$usage = $this->booking_post->make_collision_summary($datefrom, $dateto, array_keys($all_rooms));\n\n\t\t// 5.\n\t\t// now, to subtract the collision summary data from the accommodation data\n\t\t// interate through all_rooms, and delete any rooms where:\n\t\t// 1. total_guests > room_occupancy\n\t\t// 2. $usage > rooms_available\n\t\t// 3. blocked\n\t\t// for any rooms that don't get deleted, decrement the bed counter and room counter\n\t\tforeach ($all_rooms as $room => &$v) {\n\t\t\t// delete room if: 3. blocked\n\t\t\tif (is_object($this->booking_post->booking_block) && $this->booking_post->booking_block->is_blocked($datefrom, $dateto, $v['id'])) {\n\t\t\t\tunset($all_rooms[$room]);\n\t\t\t} elseif ($total_guests > $v['quitenicebooking_max_occupancy']) {\n\t\t\t\t// delete room if: 1. total_guests > room_occupancy\n\t\t\t\tunset($all_rooms[$room]);\n\t\t\t} elseif ($usage[$room]['max_concurrent_rooms'] >= $v['quitenicebooking_room_quantity']) {\n\t\t\t\t// delete room if: 2. $usage > rooms_available\n\t\t\t\tunset($all_rooms[$room]);\n\t\t\t} else {\n\t\t\t\t// retain room\n\t\t\t\t// decrement room counter\n\t\t\t\t$v['quitenicebooking_room_quantity'] -= $usage[$room]['max_concurrent_rooms'];\n\t\t\t}\n\t\t}\n\t\tunset($v);\n\n\t\treturn $all_rooms;\n\t}", "title": "" }, { "docid": "e961bb28aa5d4f8c84dc9251c51c4dfb", "score": "0.5504482", "text": "function get_slot_availability( $product_id, $date, $slot, $bookings ) {\n // default\n $available_bookings = 0;\n \n // default total bookings placed to 0\n $total_bookings = 0;\n \n $date_ymd = date( 'Ymd', strtotime( $date ) );\n $weekday = date( 'w', strtotime( $date ) );\n $weekday = \"booking_weekday_$weekday\";\n \n // bookings have been placed for that date\n if ( is_array( $bookings ) && count( $bookings ) > 0 ) {\n \n if ( array_key_exists( $date_ymd, $bookings ) ) {\n if( array_key_exists( $slot, $bookings[ $date_ymd ] ) ) {\n $total_bookings = $bookings[ $date_ymd ][ $slot ];\n } \n } \n }\n \n $lockout = get_slot_lockout( $product_id, $date, $slot );\n \n $available_bookings = ( absint( $lockout ) > 0 ) ? $lockout - $total_bookings : 'Unlimited';\n\n if ( $available_bookings === 'Unlimited' ) {\n $unlimited = 'YES';\n $available = 0;\n }else {\n $unlimited = 'NO';\n $available = $available_bookings;\n }\n\n return array( 'unlimited' => $unlimited,\n 'available' => $available );\n}", "title": "" }, { "docid": "5c1f0cf24df9339b36f6daa7476651fd", "score": "0.55038154", "text": "public function bookings()\n {\n return $this->hasMany('App\\Entities\\Booking');\n }", "title": "" }, { "docid": "91ae923e4919e941dccb20c834dc1b96", "score": "0.5490166", "text": "public function index()\n {\n $bookings = auth('ambulatory')->user()\n ->inbox()\n ->with('schedule.doctor', 'schedule.healthFacility')\n ->paginate(25);\n\n return BookingResource::collection($bookings);\n }", "title": "" }, { "docid": "16b89ef91bae4fb5b14c0939bef0ee14", "score": "0.5489971", "text": "function queueUp($userID, $bookID) {\r\n\t$control_query = \"select count(*) as book_count \r\n\t\t\t\t\t\tfrom waitings \r\n\t\t\t\t\t\twhere userID = \".$userID.\"\";\r\n\t\t\t\t\t\t\r\n\t$queue_check_sql = mysqli_query($_SESSION[\"conn\"], $control_query);\r\n\t\r\n\tif(mysqli_fetch_array($queue_check_sql)[\"book_count\"] >= 10) { \r\n\t\t/* users cannot queue up more than 10 books */\r\n\t\treturn -1;\r\n\t}\r\n\t\r\n\t/* check if user already have the same book */\r\n\t$control_query2 = \"select * \r\n\t\t\t\t\t\tfrom borrows \r\n\t\t\t\t\t\twhere userID = \".$userID.\" and bookID = \".$bookID.\"\";\r\n\t\t\t\t\t\t\r\n\t$borrow_check_sql2 = mysqli_query($_SESSION[\"conn\"], $control_query2);\r\n\t\r\n\tif(mysqli_num_rows($borrow_check_sql2)) {\r\n\t\t/* book is already borrowed by the same user */\r\n\t\treturn -1;\r\n\t}\r\n\t\r\n\t/* check if user already in queue for the same book */\r\n\t$control_query3 = \"select * \r\n\t\t\t\t\t\tfrom waitings \r\n\t\t\t\t\t\twhere userID = \".$userID.\" and bookID = \".$bookID.\"\";\r\n\t\t\t\t\t\t\r\n\t$borrow_check_sql3 = mysqli_query($_SESSION[\"conn\"], $control_query3);\r\n\t\r\n\tif(mysqli_num_rows($borrow_check_sql3)) {\r\n\t\t/* the user is already in queue */\r\n\t\treturn -1;\r\n\t}\r\n\t\r\n\t/* else queue up is available */\r\n\t$query = \"insert into waitings(userID, bookID) values(\".$userID.\", \".$bookID.\")\";\r\n\t\r\n\tif(mysqli_query($_SESSION[\"conn\"], $query)) {\r\n\t\t/* success */\r\n\t\treturn 1;\r\n\t}else {\r\n\t\t/* failed */\r\n\t\treturn -1;\r\n\t}\r\n}", "title": "" }, { "docid": "cee249aa5eed98b31b45af8ba705289e", "score": "0.5488624", "text": "function get_bookings($id)\n {\n $result = $this->db->get_where('bookings', array(\n 'id' => $id\n ))->row_array();\n $db_error = $this->db->error();\n if (! empty($db_error['code'])) {\n echo 'Database error! Error Code [' . $db_error['code'] . '] Error: ' . $db_error['message'];\n exit();\n }\n return $result;\n }", "title": "" }, { "docid": "dda515d039584790829edf7084f5059d", "score": "0.5479254", "text": "function submit(){\r\n\r\n\t\t$action = $this->input->post('action');\t\t\r\n\t\t\r\n\t\tif($action == 'book') {\r\n\t\t\t\r\n\t\t\t$this->_book();\r\n\t\t}\r\n\t\r\n\t\t\r\n\t\t$data = $this->_set_common_data_4_submit();\r\n\t\t\r\n\t\t$data['my_booking'] = get_my_booking();\r\n\t\t\r\n\t\tif(count($data['my_booking']) == 0){\r\n\t\t\t\r\n\t\t\tredirect(site_url('my-booking').'/');\r\n\t\t}\r\n\t\t\r\n\t\tusort($data['my_booking'], array($this,\"sortBooking\"));\r\n\t\t\r\n\t\t$data['booking_info'] = $this->_get_booking_info($data['my_booking'], true);\r\n\t\t\r\n\t\t// show progress tracker bar\r\n\t\t$data['progress_tracker_id'] = 4;\r\n\t\t$data['progress_tracker'] = $this->load->view('common/progress_tracker', $data, TRUE);\r\n\t\r\n\t\t\r\n\t\t$data['inc_css'] = get_static_resources('tour_booking.min.28102013.css');\r\n\t\t\r\n\t\t$data['main'] = $this->load->view('common/submit_booking', $data, TRUE);\r\n\t\t\r\n\t\t$this->load->view('template', $data);\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "ec3e274c626ca08f7e7da8d370854eeb", "score": "0.54737186", "text": "public function action_webBooking()\n {\n /**To check Whether the user is logged in or not**/\n if ( !isset( $this->session ) || !$this->session->get( 'id' ) ) {\n Message::error( __( 'login_access' ) );\n $this->request->redirect( \"/users/login/\" );\n }\n $motorid = 1;\n /**function to get the selected model fare details**/\n $getModelDetails = $this->findMdl->getmodel_details( $motorid );\n $passengerId = $this->session->get( 'id' );\n $passengerName = $this->session->get( 'passenger_name' );\n $passengerEmail = $this->session->get( 'passenger_email' );\n $passengerPhone = $this->session->get( 'passenger_phone' );\n $passengerPhCode = $this->session->get( 'passenger_phone_code' );\n $val = array();\n $val['driver_status'] = 'F';\n $driverList = $this->taxidispatchMdl->driver_status_details( $val );\n $this->template->content = View::factory( USERVIEW . 'web_booking' )->bind( 'getmodel_details', $getModelDetails )->bind( 'driverList', $driverList )->bind( 'passengerId', $passengerId )->bind( 'passengerName', $passengerName )->bind( 'passengerEmail', $passengerEmail )->bind( 'passengerPhone', $passengerPhone )->bind( 'passengerPhCode', $passengerPhCode );\n }", "title": "" }, { "docid": "233eecc22a19b60aa1fd6041fd9ee860", "score": "0.5467675", "text": "public function bookStatusPage()\n {\n $ISBN = $_POST[\"ISBN\"];\n $book = Book::getByISBN($ISBN);\n require('views/book/bookStatus.php');\n }", "title": "" } ]
f78faae5f90f21cd1d8b723ef0f08f00
Create test case without detail. Test case should be created.
[ { "docid": "bd8941bb4dd60d110945d6c4b66e754f", "score": "0.7955548", "text": "public function testCreateTestCaseWithoutDetails()\n {\n $user = factory(App\\User::class)->create();\n\n $this->actingAs($user)\n ->visit('/library')\n ->click('#newCase')\n ->seePageIs('/library/testcase/create')\n ->type('TestCase1', 'name1')\n ->select('1', 'testSuite1')\n ->press('submit');\n\n $this->seeInDatabase('TestCase', [\n 'Name' => 'TestCase1',\n 'TestSuite_id' => '1'\n ]);\n }", "title": "" } ]
[ { "docid": "2e6a0e22677d760780b404a3894d0c90", "score": "0.73327464", "text": "public function testCreateTestCaseWithoutName()\n {\n $user = factory(App\\User::class)->create();\n\n $this->actingAs($user)\n ->visit('/library')\n ->click('#newCase')\n ->seePageIs('/library/testcase/create')\n ->type('someRandomDecription', 'description1')\n ->type('someRandomPrefixes','prefixes1')\n ->type('someRandomSteps','steps1')\n ->press('submit')\n ->seePageIs('/library/testcase/create');\n\n\n $this->dontSeeInDatabase('TestCaseHistory', [\n 'TestCaseDescription' => 'someRandomDecription',\n 'TestCasePrefixes' => 'someRandomPrefixes'\n ]);\n\n }", "title": "" }, { "docid": "1e511cd880b768d84e90866a4be6c453", "score": "0.6871635", "text": "public function testCreate()\n\t{\n\t\t// Remove the following lines when you implement this test.\n\t\t$this->markTestIncomplete(\n\t\t\t'This test has not been implemented yet.'\n\t\t);\n\t}", "title": "" }, { "docid": "cb27f0dae336cb7ab01efdcd0034880a", "score": "0.67801696", "text": "protected function createTest()\n {\n $name = Str::studly($this->argument('name'));\n\n $this->call('make:test', [\n 'name' => 'Controllers\\\\' . $name . 'Test',\n '--unit' => false,\n ]);\n }", "title": "" }, { "docid": "0c36a3aae80d8fafb159090318b79d23", "score": "0.6725691", "text": "public function testCreateTestSuiteWithoutName()\n {\n $user = factory(App\\User::class)->create();\n\n $this->actingAs($user)\n ->visit('/library')\n ->seePageIs('/library')\n ->click('#newSuite')\n ->seePageIs('/library/testsuite/create')\n ->type('someFailDescription', 'description')\n ->type('someFailGoals', 'goals')\n ->press('submit');\n\n $this->dontSeeInDatabase('TestSuite', [\n 'TestSuiteDocumentation' => 'someFailDescription',\n 'TestSuiteGoals' => 'someFailGoals'\n ]);\n }", "title": "" }, { "docid": "502222cd26865fd7b447dc846c5318f0", "score": "0.6712648", "text": "protected function createFeatureTest()\n {\n $model_name = Str::studly(class_basename($this->argument('name')));\n $name = Str::contains($model_name, ['\\\\']) ? Str::afterLast($model_name, '\\\\') : $model_name;\n\n $this->call('make:test', [\n 'name' => \"{$model_name}Test\",\n ]);\n\n $path = base_path() . \"/tests/Feature/{$model_name}Test.php\";\n $this->cleanupDummy($path, $name);\n }", "title": "" }, { "docid": "643cc7a0fa5b045b3810bb1570ceb3fa", "score": "0.65747756", "text": "public function testCreateNew()\n {\n $diagramApi = TestBase::getDiagramApi();\n $json = $diagramApi->createNew(DrawingTest::$fileName,TestBase::$storageTestFOLDER,\"true\");\n $result = json_decode($json);\n $this->assertNotEmpty( $result->Created);\n TestBase::PrintDebugInfo(\"TestCreateNew result:\".$json);\n\n }", "title": "" }, { "docid": "6e6320e89e991794d1d9cfd2bd4d36c0", "score": "0.64811337", "text": "public function testCreateTestSuite()\n {\n Artisan::call('migrate');\n $user = factory(App\\User::class)->create();\n\n $this->actingAs($user)\n ->visit('/library')\n ->seePageIs('/library')\n ->click('#newSuite')\n ->seePageIs('/library/testsuite/create')\n ->type('TestSuite1', 'name')\n ->type('someDescription', 'description')\n ->type('someGoals', 'goals')\n ->press('submit');\n\n $this->seeInDatabase('TestSuite', [\n 'Name' => 'TestSuite1',\n 'TestSuiteDocumentation' => 'someDescription',\n 'TestSuiteGoals' => 'someGoals'\n ]);\n }", "title": "" }, { "docid": "747325f3cfd0119233a7d361734dad40", "score": "0.6476624", "text": "public function createAction() {\n\n $this->validateUser();\n\n $form = new Yourdelivery_Form_Testing_Create();\n if ($this->getRequest()->isPost()) {\n if ($form->isValid($this->getRequest()->getPost())) {\n if ($form->getValue('tag') && $this->getRequest()->getParam('proceed') == 'false') {\n $tags = Yourdelivery_Model_Testing_TestCase::searchForTags($form->getValue('tag'));\n\n if ($tags) {\n foreach ($tags as $tag) {\n $ids .= sprintf('<a href=\"/testing_cms/overview/id/%s\" target=\"blank\">%s</a> ', $tag['id'], $tag['id']);\n }\n $this->warn('Tag already in use for testcase ' . $ids);\n $this->_redirect(vsprintf('testing_cms/create/title/%s/author/%s/description/%s/priority/%s/tag/%s/proceed/true', $form->getValues()));\n }\n }\n\n $testCase = new Yourdelivery_Model_Testing_TestCase();\n $testCase->setData($form->getValues());\n $id = $testCase->save();\n $this->success('Testcase successfully created.');\n $this->_redirect('testing_cms/add/id/' . $id);\n } else {\n $this->error($form->getMessages());\n }\n }\n $this->view->post = $this->getRequest()->getParams();\n }", "title": "" }, { "docid": "b4f7b0e74525503469b7bc331a589a3c", "score": "0.6463365", "text": "public function testCreateTestCaseWithDetails()\n {\n $user = factory(App\\User::class)->create();\n\n $this->actingAs($user)\n ->visit('/library')\n ->click('#newCase')\n ->seePageIs('/library/testcase/create')\n ->type('TestCase2', 'name1')\n ->select('1', 'testSuite1')\n ->type('someDecription','description1')\n ->type('somePrefixes','prefixes1')\n ->type('someSteps','steps1')\n ->type('someResult','expectedResult1')\n ->type('someSuffixes','suffixes1')\n ->press('submit');\n\n $this->seeInDatabase('TestCaseHistory', [\n 'TestCaseDescription' => 'someDecription',\n 'TestCasePrefixes' => 'somePrefixes',\n 'TestSteps' => 'someSteps',\n 'ExpectedResult' => 'someResult',\n 'TestCaseSuffixes' => 'someSuffixes'\n ]);\n }", "title": "" }, { "docid": "4ebdf5afc15cefc6026d3c425b19b6e1", "score": "0.6395464", "text": "protected function createTests()\n {\n $name = $this->getNameInput();\n\n $this->call('make:test', [\n 'name' => \"Api/{$name}/Store{$name}Test\",\n '--model' => $name,\n '--type' => 'store',\n ]);\n\n $this->call('make:test', [\n 'name' => \"Api/{$name}/Update{$name}Test\",\n '--model' => $name,\n '--type' => 'update',\n ]);\n\n $this->call('make:test', [\n 'name' => \"Api/{$name}/View{$name}Test\",\n '--model' => $name,\n '--type' => 'view',\n ]);\n\n $this->call('make:test', [\n 'name' => \"Api/{$name}/Delete{$name}Test\",\n '--model' => $name,\n '--type' => 'delete',\n ]);\n }", "title": "" }, { "docid": "ccee7008e44431c05d1e77f221d30d4e", "score": "0.6297157", "text": "protected function createTests() :void\n {\n $directory = app_path('tests');\n\n Storage::makeDirectory($directory, true);\n PhpUnit::create('phpunit', app_path());\n }", "title": "" }, { "docid": "dfbf4693c0dbf521933fe1adb603dcdb", "score": "0.6236245", "text": "public function testQuarantineCreate()\n {\n\n }", "title": "" }, { "docid": "37bc8ac03409f3404d9ab9c253b81886", "score": "0.6226836", "text": "public function testCreateScenario()\n {\n $client = static::createClient();\n }", "title": "" }, { "docid": "6aa484da2102ae0f2f277ae7abd6056a", "score": "0.62085295", "text": "function TestCaseRun_create($assignee, $build_id, $case_id, $case_text_version, $environment_id, $run_id, $canview = NULL, $close_date = NULL, $iscurrent = NULL, $notes = NULL, $sortkey = NULL, $testedby = NULL) {\n\t$varray = array(\"assignee\" => \"int\", \"build_id\" => \"int\", \"case_id\" => \"int\", \"case_text_version\" => \"int\", \"environment_id\" => \"int\", \"run_id\" => \"int\", \"canview\" => \"int\", \"close_date\" => \"string\", \"iscurrent\" => \"int\", \"notes\" => \"string\", \"sortkey\" => \"int\", \"testedby\" => \"int\");\n\tforeach($varray as $key => $val) {\n\t\tif (isset(${$key})) {\n\t\t\t$carray[$key] = new xmlrpcval(${$key}, $val);\n\t\t}\n\t}\n\t// Create call\n\t$call = new xmlrpcmsg('TestCaseRun.create', array(new xmlrpcval($carray, \"struct\")));\n\n\t// Do call and return value\n\treturn do_call($call);\n}", "title": "" }, { "docid": "3506d7396dd161f9214f2f62a3090345", "score": "0.619229", "text": "public function test_create_item() {}", "title": "" }, { "docid": "3506d7396dd161f9214f2f62a3090345", "score": "0.619229", "text": "public function test_create_item() {}", "title": "" }, { "docid": "3dd7157fa5604316b06d1b974ab9453d", "score": "0.61387295", "text": "public function testCreateWithoutDescription()\n {\n\n $this->call('POST', '/api/role', array(\n 'action' => $this->createAction,\n 'name' => $this->testRoleName,\n ));\n\n $this->assertDatabaseMissing('roles', [\n 'name' => $this->testRoleName,\n ]);\n\n }", "title": "" }, { "docid": "0e3249799653bcb2a464fafd40c79fac", "score": "0.6137563", "text": "protected function createDefaultTests() :void\n {\n $target = app_path('Resources/Default/Tests');\n $directory = app_path('tests/Default');\n\n Storage::makeDirectory($directory, true);\n ResourceTest::create('Default', $directory, ['response' => '$this->app->version()'])->link($target);\n }", "title": "" }, { "docid": "80068bac8eb82bf91cef2bf5fcc301e4", "score": "0.6124702", "text": "public function testNewObject()\n {\n $this->skip('abstract method');\n }", "title": "" }, { "docid": "b1537d23a614365fb44d4b23e67d3b4d", "score": "0.6116614", "text": "function TestCase_create($author_id, $case_status_id, $category_id, $isautomated, $plan_id, $alias = NULL, $arguments = NULL, $canview = NULL, $creation_date = NULL, $default_tester_id = NULL, $priority_id = NULL, $requirement = NULL, $script = NULL, $summary = NULL, $sortkey = NULL) {\n\t$varray = array(\"author_id\" => \"int\", \"case_status_id\" => \"int\", \"category_id\" => \"int\", \"isautomated\" => \"int\", \"plan_id\" => \"int\", \"alias\" => \"string\", \"arguments\" => \"string\", \"canview\" => \"int\", \"creation_date\" => \"string\", \"default_tester_id\" => \"int\", \"priority_id\" => \"int\", \"requirement\" => \"string\", \"script\" => \"string\", \"summary\" => \"string\", \"sortkey\" => \"int\");\n\tforeach($varray as $key => $val) {\n\t\tif (isset(${$key})) {\n\t\t\t$carray[$key] = new xmlrpcval(${$key}, $val);\n\t\t}\n\t}\n\t// Create call\n\t$call = new xmlrpcmsg('TestCase.create', array(new xmlrpcval($carray, \"struct\")));\n\n\t// Do call and return value\n\treturn do_call($call);\n}", "title": "" }, { "docid": "87b1fff2b9c5413f9c746f702484c605", "score": "0.61059123", "text": "public function testCreateChallengeActivityTemplate()\n {\n }", "title": "" }, { "docid": "23cfed4d3f68b0cfa73cee0c03f12b15", "score": "0.61039406", "text": "public function testCreate()\n {\n $model = $this->makeFactory();\n \n $this->json('POST', static::ROUTE, $model->toArray(), [\n 'Authorization' => 'Token ' . self::getToken()\n ])\n ->seeStatusCode(JsonResponse::HTTP_CREATED) \n ->seeJson($model->toArray());\n }", "title": "" }, { "docid": "bfc2fe6b491d4f0394ff6a4a07671009", "score": "0.6098742", "text": "public function testCreateAction()\n {\n $res = $this->controller->createAction();\n $this->assertContains(\"Create\", $res->getBody());\n }", "title": "" }, { "docid": "2d1546c76eb2990ae1f6e490d7061f38", "score": "0.6061224", "text": "public function testCreateWithoutRequiredFields(): void\n {\n $requiredFields = static::getRequiredFields();\n\n if(count($requiredFields) > 0) {\n foreach ($requiredFields as $key => $value) {\n\n if(is_int($key)) {\n $requiredField = $value;\n $errorMessage = 'core.error.'.static::getDataClassShortName().\".{$requiredField}.required\";\n } else {\n $requiredField = $key;\n $errorMessage = $value;\n }\n\n $data = $this->getDataSent('createWithAllFields.json', 'Create');\n unset($data[$requiredField]);\n\n $apiOutput = self::httpPost(['name' => static::getCreateRouteName()], $data);\n\n $result = $apiOutput->getData();\n static::assertEquals(Response::HTTP_UNPROCESSABLE_ENTITY, $apiOutput->getStatusCode());\n static::assertEquals(['errors' => [$errorMessage]], $result);\n }\n } else {\n self::markTestSkipped('Cannot be tested : no required fields defined, please set static var requiredFields with required fields if necessary.');\n }\n }", "title": "" }, { "docid": "0d418aabcd1733769697068ed30e7f00", "score": "0.6056557", "text": "public function testCreateTask()\n {\n }", "title": "" }, { "docid": "b774850add25f2c39fa69530031c7733", "score": "0.60356635", "text": "public function create(): void\n {\n if (!is_dir(DIR_TESTS . '/' . $this->module)) {\n throw new \\RuntimeException('Error while creating ' . $this->getFilename() . ' : Module doesn\\'t exists.');\n }\n\n if (!is_dir(DIR_TESTS . '/' . $this->module . '/Controller')) {\n mkdir(DIR_TESTS . '/' . $this->module . '/Controller');\n }\n\n parent::create();\n }", "title": "" }, { "docid": "ea971b5c0623daa3f7d4f797838816fc", "score": "0.6030708", "text": "public function notATestCase() {}", "title": "" }, { "docid": "2e3cfe5d2fa1588bca908c71bd19cc4e", "score": "0.6014371", "text": "public function testCreate()\n {\n \n $response = factory(\\App\\Models\\Ticket::class)->create([\n 'name' => 'Test Ticket',\n 'email' => '[email protected]',\n 'title' => 'Test ticket title',\n 'content' => 'Test ticket content'\n ]);\n \n \n $response->assertOk();\n\n }", "title": "" }, { "docid": "72f8408f5bf3f7437fdc5af5589bd44b", "score": "0.59598786", "text": "public function actionCreate()\n {\n $model = new Test();\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": "c8a8d953fa9acc996c2ab65705e39d4c", "score": "0.5950392", "text": "public function testCreateNewPost()\n {\n $response = $this->call('Post', '/post', [\n 'title' => 'Php Unit test',\n 'body' => 'Php unit test body',\n 'tag' => 'phpunit,test'\n ]);\n \n $this->seeHeader('content-type', 'application/json');\n $this->seeStatusCode(200);\n $this->seeInDatabase('posts', ['title' => 'Php Unit test']);\n \n $data = json_decode($response->getContent(true), true);\n $this->assertArrayHasKey('id', $data['data']);\n \n \n }", "title": "" }, { "docid": "9f688b35aa54e7a7e29ac3dea1cb08c7", "score": "0.59447384", "text": "public function create()\n {\n //\n ;\n }", "title": "" }, { "docid": "fb635760daa3af7d2706b9a4bda5f012", "score": "0.5924013", "text": "public function testCreateChallengeActivity()\n {\n }", "title": "" }, { "docid": "f8f619e1aaa07d0c5f189c4e0fa1876d", "score": "0.59232956", "text": "public function create($tc_id)\n\t{\t\n\t\tif($tc_id != null)\n\t\t\t$cases = \\App\\TestCase::where('tc_id' , $tc_id)->get();\n\t\telse\t\t\n\t\t\t$cases = \\App\\TestCase::where('tp_id' , session()->get('open_project'))->get();\n\t\treturn view('forms.teststep', ['cases' =>$cases]);\n\t}", "title": "" }, { "docid": "9681ba39bb17b9c4cb7d67db26e0b003", "score": "0.5909037", "text": "public function testCreate()\n\t{\n\t\t$this->dispatchWithExpectedException(\"/comment/create\", 'Bootstrap_Service_Exception_Authorization');\n\t}", "title": "" }, { "docid": "52327e3524c72a89887d5a64b1cd34aa", "score": "0.5900903", "text": "public function createNew() {\n\t}", "title": "" }, { "docid": "a2a4d5e89c8b6042e945edcbfafb7eed", "score": "0.5900477", "text": "public function testCreate()\n {\n $this->specify(\"we want to add the history record\", function () {\n /** @var History $history history record */\n $history = Yii::createObject('inblank\\team\\models\\History');\n expect(\"we can't add the history without team or user\", $history->save())->false();\n expect(\"we must see error message `team_id`\", $history->getErrors('team_id'))->notEmpty();\n expect(\"we must see error message `user_id`\", $history->getErrors('user_id'))->notEmpty();\n $history->team_id = 999;\n $history->user_id = 999;\n expect(\"we can't add the history with not existing team or user\", $history->save())->false();\n expect(\"we must see error message `team_id`\", $history->getErrors('team_id'))->notEmpty();\n expect(\"we must see error message `user_id`\", $history->getErrors('user_id'))->notEmpty();\n $history->team_id = 1;\n $history->user_id = 2;\n expect(\"we can't add the history if user not in team\", $history->save())->false();\n expect(\"we must see error message `user_id`\", $history->getErrors('user_id'))->notEmpty();\n $history->user_id = 1;\n expect(\"we can't add the history without action\", $history->save())->false();\n expect(\"we must see error message `action`\", $history->getErrors('action'))->notEmpty();\n $history->action = History::ACTION_ADD;\n expect(\"we can add the history\", $history->save())->true();\n });\n }", "title": "" }, { "docid": "b6e4cd706a9e8ddc926fb85cac17c75e", "score": "0.5897786", "text": "public function testCreateWithoutName()\n {\n\n $this->call('POST', '/api/role', array(\n 'action' => $this->createAction,\n 'description' => $this->testRoleDesc\n ));\n\n $this->assertDatabaseMissing('roles', [\n 'name' => $this->testRoleName,\n 'description' => $this->testRoleDesc\n ]);\n }", "title": "" }, { "docid": "811ef264093ffe161481f3e1b5321ebb", "score": "0.5888086", "text": "public function testCreateNew(): void\n {\n $requestHandler = $this->createInstance();\n $request = $requestHandler->create();\n\n self::assertInstanceOf(ActivityStub::class, $request);\n }", "title": "" }, { "docid": "8aba16051335ccc7225fe220d0c051a5", "score": "0.5882906", "text": "public function testNewTask()\n {\n $userId = User::first()->value('id');\n\n $response = $this->json('POST', '/api/v1.0.0/users/'.$userId.'/tasks', [\n 'description' => 'A new task from PHPUnit',\n ]);\n\n $response\n ->assertStatus(200)\n ->assertJson([\n 'description' => 'A new task from PHPUnit',\n ]);\n }", "title": "" }, { "docid": "5dda17a02ce8e7365e5a39c0a7d3cc03", "score": "0.5877862", "text": "public function testCreate(): void\n {\n $this->markTestSkipped('Skipping as PostsService::create() is not yet ready for prod/testing');\n// $this->mock(PostsRepository::class, static function ($mock) {\n// $mock->shouldReceive('create')->once();\n// });\n//\n// $service = resolve(PostsService::class);\n//\n// $request = $this->createRequest($this->createParams());\n//\n// $service->create($request, null);\n }", "title": "" }, { "docid": "a20db2b95f75d875e566f775f5432887", "score": "0.58642787", "text": "public function testCreateMyClass() {\n }", "title": "" }, { "docid": "8b082d8a61d4a64875ceb4e308f86f4d", "score": "0.58594304", "text": "function test($title, $fn=null) {\n $case = new TestCase($title, $fn);\n if (!$fn) {\n Util::set_default_filename_and_lineno($case, debug_backtrace());\n }\n Preview::$world->current()->add($case);\n return new TestAPI($case);\n}", "title": "" }, { "docid": "97cb24a29f2f532fc0c89fa0e68ff37a", "score": "0.5853647", "text": "public function actionCreate() {\n $test = $this->tests->add($this->user->id);\n $values['test_id'] = $test->id;\n $this->questions->add($values);\n $this->redirect('Test:edit', $test->id);\n }", "title": "" }, { "docid": "cae2a48bbac5168938a374bc0cbcb065", "score": "0.58351773", "text": "public function testCreate()\n {\n $this->visit('/admin/school/create')\n ->submitForm($this->saveButtonText, $this->school)\n ->seePageIs('/admin/school')\n ;\n\n $this->seeInDatabase('schools', $this->school);\n }", "title": "" }, { "docid": "eebcd827720b72ea0cc00353bb492096", "score": "0.58314794", "text": "abstract protected function constructTestHelper();", "title": "" }, { "docid": "5e24b35fadf0d3ed37404cfdd6a92694", "score": "0.58220595", "text": "public function testIntegrationCreate()\n {\n $this->visit('user/create')\n ->see('Create New Account');\n $this->assertResponseOk();\n $this->assertViewHas('model');\n }", "title": "" }, { "docid": "b5162feb080b7ad10ca2e2d25939b7a1", "score": "0.581894", "text": "public function testCreate()\n {\n\n $data = array(\n 'achRoutingNumber' => '987654321',\n 'achAccountNumber' => '123456789',\n 'achAccountType' => 'CHECKING',\n 'foo' => 'bar'\n );\n\n $transaction = $this->client->transaction()->create($data);\n $this->assertEquals($data, get_object_vars($transaction->post), 'Passed variables are not correct');\n $this->assertEquals('POST', $transaction->request_method, 'The PHP Verb Is Incorrect');\n $this->assertEquals('/transactions', $transaction->path, 'The path is incorrect');\n }", "title": "" }, { "docid": "0e28f595a4a33f864e75455dd71ac9e6", "score": "0.5818532", "text": "public function testCreate()\n {\n $this->createInstance();\n $user = $this->createAndLogin();\n\n //test creation as admin\n $res = $this->fConnector->getDiscussionManagement()->postTopic('Hello title', 'My content', [$this->configTest['testTagId']],null)->wait();\n $this->assertInstanceOf(FlarumDiscussion::class,$res);\n $this->assertEquals('Hello title',$res->title, 'Testing discussion creation with admin');\n\n //test creation as user\n $res = $this->fConnector->getDiscussionManagement()->postTopic('Hello title', 'My content', [$this->configTest['testTagId']],$user->userId)->wait();\n $this->assertInstanceOf(FlarumDiscussion::class,$res);\n $this->assertEquals('Hello title',$res->title, 'Testing discussion creation with user');\n\n\n\n }", "title": "" }, { "docid": "83985f506f14090e01616e884a27cc87", "score": "0.5818214", "text": "public function run()\n {\n // $faker = \\Faker\\Factory::create();\n // Assessment::create([\n // 'teacher_id' => rand(0, 10),\n // 'pupil_id' => rand(0, 10),\n // 'test_id' => rand(0, 10),\n // 'assessment_no' => rand(0, 120),\n // 'assessment_date' => $faker->date,\n // ]);\n factory(App\\Models\\Assessment::class, 10)->create();\n }", "title": "" }, { "docid": "5c0656164a8b49ef239bd98f1b81bde5", "score": "0.58077925", "text": "public function create()\n\t{\n\t\t//\n\t\techo \"create\";\n\t}", "title": "" }, { "docid": "ae2a042b2d51d99f705ff31375320812", "score": "0.5804238", "text": "public function testCreatePayrun()\n {\n }", "title": "" }, { "docid": "7952e87f7d7da3160beac069fefd54d5", "score": "0.57910264", "text": "public function testInstrumentCreate()\n {\n $this->browse(function (Browser $browser) {\n $user = User::find(1);\n $browser->loginAs($user)\n ->visit(new instrumentManagementPage())\n ->assertSee('Instruments')\n ->press('@actions-button')\n ->press('@actions-create-menu')\n ->assertSee('New Instrument')\n ->type('@code',uniqid('TestInstrument_'))\n ->type('@category', 'Dusk Testing')\n ->type('@module','Summer Capstone')\n ->type('@reference','Test - safe to delete')\n ->press('Save')\n //->press('@save-button') //TODO: use this once DUSK tag is fixed\n ->assertsee('View Instrument - TestInstrument_');\n });\n }", "title": "" }, { "docid": "c46f83fa76b75873c0c52555789c2126", "score": "0.57852405", "text": "public function testInstantiation()\n {\n $command = new CreateRule('dummy name');\n }", "title": "" }, { "docid": "7e85c5f9318dd0d302589cfab04ec245", "score": "0.57847327", "text": "public function testCreateSuperfund()\n {\n }", "title": "" }, { "docid": "2acf3363fa927bcf00ff64e440aae1b3", "score": "0.57716084", "text": "public function testRefuseCreation()\n {\n $newActor = new \\eddie\\Models\\Actor();\n $newActor->save();\n }", "title": "" }, { "docid": "3be3b395f8251cf61c4825a809854cd8", "score": "0.57689214", "text": "public function testProfileCreate()\n {\n\n }", "title": "" }, { "docid": "87209f6946b7ac898863c4f6ca65e50d", "score": "0.5759905", "text": "public function create()\n {\n $this->validate();\n Contest::create($this->modelData());\n $this->modalFormVisible = false;\n $this->resetVars();\n }", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.5744221", "text": "public function create(){}", "title": "" }, { "docid": "659072f518218658c08739611daa5c2c", "score": "0.5734598", "text": "public function testCreate()\n {\n $aircraft = new Aircraft();\n $this->assertFalse($aircraft->save());\n\n $aircraft = factory(\\App\\Aircraft::class)->create();\n $this->assertTrue($aircraft->save());\n }", "title": "" }, { "docid": "f883803614b9bbe36e2514fef6f60c9a", "score": "0.572665", "text": "public function testDeleteChallengeActivityTemplate()\n {\n }", "title": "" }, { "docid": "2875753eec02f578dbe96925ebde310a", "score": "0.5723384", "text": "public function testNothing()\n {\n }", "title": "" }, { "docid": "1351d1a017631af03b7c451e76141c55", "score": "0.5718498", "text": "public function create()\n {}", "title": "" }, { "docid": "f6607b68adf4953f1da0eba798b2ca22", "score": "0.57017076", "text": "public function testCanBeCreated()\n {\n $subject = $this->createInstance();\n\n $this->assertInstanceOf('Dhii\\\\SimpleTest\\\\Locator\\\\ResultSetInterface', $subject, 'Subject is not a valid locator result set');\n $this->assertInstanceOf('Dhii\\\\SimpleTest\\\\Test\\\\SourceInterface', $subject, 'Subject is not a valid test source');\n }", "title": "" }, { "docid": "5422caefb8cc5d7c7450d3c6e8ab4497", "score": "0.57003665", "text": "public function testCreateNoTitle()\n {\n // Do Request\n $this->_request('POST', '/api/1.5.0/news-create',['token' => '123'])\n ->_result(['error' => 'no-title']);\n }", "title": "" }, { "docid": "f1ecad463ce165845aa4315ebcbe5dd9", "score": "0.568736", "text": "public function testUnitCreate()\n {\n $model = Mockery::mock('Suitcoda\\Model\\User');\n $user = new UserController($model);\n\n $this->assertInstanceOf('Illuminate\\View\\View', $user->create());\n }", "title": "" }, { "docid": "b9d75422a9df7a36f5d6e14a25f2e544", "score": "0.5686834", "text": "public function testCreateExpedicao()\n {\n }", "title": "" }, { "docid": "231a709986bc2be91af68f12fc1ae0a8", "score": "0.5683951", "text": "public function createNew();", "title": "" }, { "docid": "dbfc856af99caf2a07d51a9f6fb5e587", "score": "0.5682312", "text": "public function create() {\n //not implemented\n }", "title": "" }, { "docid": "dbb77c500ae6f60884fbebf4d39a2f79", "score": "0.5680014", "text": "public function testCreateSurvey0()\n {\n }", "title": "" }, { "docid": "dbb77c500ae6f60884fbebf4d39a2f79", "score": "0.5680014", "text": "public function testCreateSurvey0()\n {\n }", "title": "" }, { "docid": "62f2c3786152a696d9337ffe6759008d", "score": "0.566746", "text": "public function generateTestClass($testClass, $testCases);", "title": "" }, { "docid": "33bb6a18de40ef5959942066a033ee2f", "score": "0.5662044", "text": "public function create()\n {\n $this->authorize('create', Test::class); \n return view('test.create');\n }", "title": "" }, { "docid": "4b8c13290814d2466e5301e98b9805da", "score": "0.5656172", "text": "public function testGetChallengeActivityTemplate()\n {\n }", "title": "" }, { "docid": "3cf7ba68a3e1283067a5460048d04d75", "score": "0.56472796", "text": "public function create()\r\r\n\t{\r\r\n\t\t//\r\r\n\t}", "title": "" }, { "docid": "35db8f5077d6e0c2dff1e2104906cd75", "score": "0.56428975", "text": "public function create()\n {\n echo 'test';\n }", "title": "" }, { "docid": "955136e83b5ac33b4403a2c7a637d8b1", "score": "0.5642069", "text": "public function create()\n\t{\n // Just hard coding some arbitrary value for now...\n $test = new Test;\n $test->email = '[email protected]';\n\n if($test->save()) {\n return 'Saved.';\n }\n\t}", "title": "" }, { "docid": "71eed1b4573f49ae618e1e46c1fcfef3", "score": "0.56420183", "text": "public function testInstrumentCreateFail()\n {\n $this->browse(function (Browser $browser) {\n $user = User::find(1);\n $browser->loginAs($user)\n ->visit(new instrumentManagementPage())\n ->assertSee('Instruments')\n ->press('@actions-button')\n ->press('@actions-create-menu')\n ->assertSee('New Instrument')\n\n //Trying when leaving the Code field empty\n //->type('@code', 'Fail Test')\n ->type('@category', 'Fail Test')\n ->type('@module','Fail Test')\n ->type('@reference','Fail Test')\n ->press('Save')\n //->press('@save-button') //TODO: use this once DUSK tag is fixed\n ->assertsee('New Instrument');\n\n //Trying when leaving the Category field empty\n $browser->loginAs($user)\n ->visit(new instrumentManagementPage())\n ->assertSee('Instruments')\n ->press('@actions-button')\n ->press('@actions-create-menu')\n ->assertSee('New Instrument')\n ->type('@code', 'Fail Test')\n //->type('@category', 'Fail Test')\n ->type('@module','Fail Test')\n ->type('@reference','Fail Test')\n ->press('Save')\n //->press('@save-button') //TODO: use this once DUSK tag is fixed\n ->assertsee('New Instrument');\n\n //Trying when leaving the Module field empty\n $browser->loginAs($user)\n ->visit(new instrumentManagementPage())\n ->assertSee('Instruments')\n ->press('@actions-button')\n ->press('@actions-create-menu')\n ->assertSee('New Instrument')\n ->type('@code', 'Fail Test')\n ->type('@category', 'Fail Test')\n //->type('@module','Fail Test')\n ->type('@reference','Fail Test')\n ->press('Save')\n //->press('@save-button') //TODO: use this once DUSK tag is fixed\n ->assertsee('New Instrument');\n });\n }", "title": "" }, { "docid": "c9615810af79051c6157d04544ac2388", "score": "0.5641419", "text": "public function testBasicTest()\n {\n\n }", "title": "" }, { "docid": "af9e34018e5066587076f9f3ca5f12f1", "score": "0.56337976", "text": "public function create()\n\t{\n\n\n\t}", "title": "" }, { "docid": "4279a37ac41ed65e9950ef2fb68f7d58", "score": "0.56317955", "text": "public function create()\n\t{\n\t}", "title": "" }, { "docid": "4279a37ac41ed65e9950ef2fb68f7d58", "score": "0.56317955", "text": "public function create()\n\t{\n\t}", "title": "" }, { "docid": "4279a37ac41ed65e9950ef2fb68f7d58", "score": "0.56317955", "text": "public function create()\n\t{\n\t}", "title": "" }, { "docid": "4279a37ac41ed65e9950ef2fb68f7d58", "score": "0.56317955", "text": "public function create()\n\t{\n\t}", "title": "" }, { "docid": "4279a37ac41ed65e9950ef2fb68f7d58", "score": "0.56317955", "text": "public function create()\n\t{\n\t}", "title": "" }, { "docid": "4279a37ac41ed65e9950ef2fb68f7d58", "score": "0.56317955", "text": "public function create()\n\t{\n\t}", "title": "" }, { "docid": "4279a37ac41ed65e9950ef2fb68f7d58", "score": "0.56317955", "text": "public function create()\n\t{\n\t}", "title": "" }, { "docid": "4279a37ac41ed65e9950ef2fb68f7d58", "score": "0.56317955", "text": "public function create()\n\t{\n\t}", "title": "" }, { "docid": "4279a37ac41ed65e9950ef2fb68f7d58", "score": "0.56317955", "text": "public function create()\n\t{\n\t}", "title": "" }, { "docid": "4279a37ac41ed65e9950ef2fb68f7d58", "score": "0.56317955", "text": "public function create()\n\t{\n\t}", "title": "" }, { "docid": "4279a37ac41ed65e9950ef2fb68f7d58", "score": "0.56317955", "text": "public function create()\n\t{\n\t}", "title": "" }, { "docid": "4279a37ac41ed65e9950ef2fb68f7d58", "score": "0.56317955", "text": "public function create()\n\t{\n\t}", "title": "" }, { "docid": "4279a37ac41ed65e9950ef2fb68f7d58", "score": "0.56317955", "text": "public function create()\n\t{\n\t}", "title": "" }, { "docid": "4279a37ac41ed65e9950ef2fb68f7d58", "score": "0.56317955", "text": "public function create()\n\t{\n\t}", "title": "" }, { "docid": "cbda69a95bb881bfbf010e87de5d6044", "score": "0.5622365", "text": "public function create()\n\t\t{\n\t\t\t//\n\t\t}", "title": "" }, { "docid": "cbda69a95bb881bfbf010e87de5d6044", "score": "0.5622365", "text": "public function create()\n\t\t{\n\t\t\t//\n\t\t}", "title": "" }, { "docid": "64d62eb5fc70e6b1cd8bb03bc5c34c01", "score": "0.5621793", "text": "public function testActCreate()\n {\n $this->browse(function (Browser $browser) {\n $bill = Bill::factory()->create([\n 'contract_id' => $this->contract->id,\n 'requisite_id' => $this->requisite->id,\n 'tenant_id' => $this->tenant->id,\n ]);\n $service = $bill->services()->save(Service::factory()->make([\n 'name' => 'Rent',\n 'quantity' => '2',\n 'measure' => 'pc',\n 'price' => '1234'\n ]));\n\n $browser->loginAs($this->user)\n ->visit('/tenants/'.$this->tenant->id.'?tab=bills#tab')\n ->press('Создать')\n ->clickLink('Загрузить')\n ->assertPathIs($bill->act->document_url)\n ->assertSee('Акт');\n });\n }", "title": "" }, { "docid": "e6521783e56af0d8f907315d16848595", "score": "0.562179", "text": "public function test___construct() {\n\t\t}", "title": "" }, { "docid": "e6521783e56af0d8f907315d16848595", "score": "0.562179", "text": "public function test___construct() {\n\t\t}", "title": "" }, { "docid": "476a9f747ac18934c941b85df8ad93ee", "score": "0.56200665", "text": "public function create()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "e5da2e7f08a8fe2b9a96a525cfe7690b", "score": "0.5618848", "text": "public function testCreate()\n\t{\n\t\tRoute::enableFilters();\n\t\tEvaluationTest::adminLogin();\n\t\t$response = $this->call('GET', '/evaluation/create');\n\t\t\n\t\t$this->assertResponseOk();\n\n\t\tSentry::logout();\n\t\t\n\t\t//tesing that a normal user can't retrieve a form to create \n\t\t//an evaluation and that a page displays a message as to why they can't\n\t\tEvaluationTest::userLogin();\n\t\t$crawler = $this->client->request('GET', '/evaluation/create');\n\t\t$message = $crawler->filter('body')->text();\n\n\t\t$this->assertFalse($this->client->getResponse()->isOk());\n\t\t$this->assertEquals(\"Access Forbidden! You do not have permissions to access this page!\", $message);\n\n\t\tSentry::logout();\n\t}", "title": "" } ]
b40d259f7f23b3630c7a9d77ff248faa
Adds a JOIN clause to the query using the VldInpassing relation
[ { "docid": "719ff9009dc99ce43a3b71b2ac8da4d6", "score": "0.69816464", "text": "public function joinVldInpassing($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n {\n $tableMap = $this->getTableMap();\n $relationMap = $tableMap->getRelation('VldInpassing');\n\n // create a ModelJoin object for this join\n $join = new ModelJoin();\n $join->setJoinType($joinType);\n $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n if ($previousJoin = $this->getPreviousJoin()) {\n $join->setPreviousJoin($previousJoin);\n }\n\n // add the ModelJoin to the current object\n if ($relationAlias) {\n $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n $this->addJoinObject($join, $relationAlias);\n } else {\n $this->addJoinObject($join, 'VldInpassing');\n }\n\n return $this;\n }", "title": "" } ]
[ { "docid": "6af0fcb17d618782ab6eca713b0e4888", "score": "0.7094782", "text": "public function useVldInpassingQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n {\n return $this\n ->joinVldInpassing($relationAlias, $joinType)\n ->useQuery($relationAlias ? $relationAlias : 'VldInpassing', '\\DataDikdas\\Model\\VldInpassingQuery');\n }", "title": "" }, { "docid": "43d4a6b381332ba42882ed5c94eec3f6", "score": "0.64721787", "text": "public function addJoinClause($local_table,$local_key,$foreign_table,$foreign_table_alias,$foreign_key,$join_type,$database=null);", "title": "" }, { "docid": "986bfc4f7ff3f5086950c8224da1a24d", "score": "0.6402161", "text": "protected abstract function getJoinStatement();", "title": "" }, { "docid": "fc471f5a4e0eaa670b10bd54bf3183a2", "score": "0.6282538", "text": "function join($column,$filter,$foreign_column, $kind='inner', $filter_in_join=false)\n \t{\n \t\t$this->joins[]=new Join($column,$filter,$foreign_column,$kind, $filter_in_join);\n \t}", "title": "" }, { "docid": "b1997e2d45d03d8226858a5c5388c0c4", "score": "0.60519433", "text": "abstract protected function addJoinStatement($joinTableAlias, $joinFieldName, $joinAlias);", "title": "" }, { "docid": "c764ca4494444d65fb451ad9ed201f35", "score": "0.59764194", "text": "function inner_join($join, $query){\r\n\t\tglobal $deal_category;\r\n\t\tglobal $wpdb;\r\n\t\t$table = $wpdb->prefix . 'trdmdeals';\r\n\t\t$join .= ' INNER JOIN ' . $table . ' ON (' . $wpdb->posts . '.ID = ' . $table . '.post_id)';\r\n\t\t\r\n\t\treturn $join;\r\n\t}", "title": "" }, { "docid": "8c803be2299d96cee0e20488026b8e71", "score": "0.594008", "text": "function inspiry_search_join( $join ) {\n\tglobal $wpdb;\n\tif ( is_prop_index() ) {\n\t\t$join .= ' LEFT JOIN ' . $wpdb->postmeta . ' ON ' . $wpdb->posts . '.ID = ' . $wpdb->postmeta . '.post_id ';\n\t}\n\treturn $join;\n}", "title": "" }, { "docid": "802a703548ceed032515e926becfcedc", "score": "0.587525", "text": "function join(JoinType $joinType, Table $table, Condition $condition = null) ;", "title": "" }, { "docid": "e0287cd69e0e6e66a6c9a4bb626f4144", "score": "0.58007354", "text": "private function joinClause()\n\t{\n\t\t$lines = [];\n\t\tforeach ($this->query->joins() as $join) {\n\t\t\t$foreignTable = $join->foreignTable();\n\t\t\t$foreignDbName = $foreignTable->db()->schemaName();\n\t\t\t$foreignKeys = $join->foreignKeys();\n\t\t\t$localTable = $join->localTable() ? $join->localTable() : $this->query->table();\n\t\t\t$localKeys = $join->localKeys();\n\t\t\t$conditions = [];\n\t\t\t$isVirtual = $foreignTable instanceof VirtualTable;\n\t\t\t\n\t\t\tforeach ($foreignKeys as $i => $foreignKey) {\n\t\t\t\tif (!isset($localKeys[$i])) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$localKey = $localKeys[$i];\n\t\t\t\t\n\t\t\t\tif (!($foreignKey instanceof Column)) {\n\t\t\t\t\t$foreignKey = $foreignTable->column($foreignKey);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (!($localKey instanceof Column)) {\n\t\t\t\t\t$localKey = $localTable->column($localKey);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$foreignPath = $foreignKey->fullName(true);\n\t\t\t\tif ($foreignTable->name() !== $foreignTable->alias() || $isVirtual) {\n\t\t\t\t\t$foreignPath = \"`{$foreignTable->alias()}`.`\". $foreignKey->name() .\"`\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$join->where($localKey->fullName(true) .\" = \". $foreignPath);\n\t\t\t}\n\t\t\t\n\t\t\tswitch ($join->type()) {\n\t\t\t\tcase SelectQuery::JOIN_LEFT:\n\t\t\t\t\t$expr = \"LEFT JOIN\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase SelectQuery::JOIN_RIGHT:\n\t\t\t\t\t$expr = \"RIGHT JOIN\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase SelectQuery::JOIN_DEFAULT:\n\t\t\t\tdefault:\n\t\t\t\t\t$expr = \"JOIN\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t$whereClauseGenerator = new WhereClauseGenerator($foreignTable, $join->whereGroups());\n\t\t\t$whereClause = $whereClauseGenerator->generate(\"ON\");\n\t\t\t$tableExpr = $foreignTable->fullName(true);\n\t\t\t\n\t\t\tif ($foreignTable instanceof VirtualTable) {\n\t\t\t\t$tableExpr = \"(\". $foreignTable->query()->generateSql() .\")\";\n\t\t\t}\n\t\t\n\t\t\t$lines[] = \"{$expr} {$tableExpr} AS `{$foreignTable->alias()}` {$whereClause}\";\n\t\t}\n\t\t\n\t\treturn implode(\"\\n\", $lines);\n\t}", "title": "" }, { "docid": "514f4b231dd874a89932ad0367e70a40", "score": "0.57428354", "text": "function slt_se_join_sql( $join, $query ) {\n\n\tif ( slt_se_apply_hook( $query, 'join' ) ) {\n\t\tglobal $wpdb;\n\t\t$join .= \", $wpdb->postmeta \";\n\t}\n\n\treturn $join;\n}", "title": "" }, { "docid": "e7db16321c6e3de04585a55f43f9969a", "score": "0.5648415", "text": "public function addJoin(JoinQueryComponent $component) { $this->joins[] = $component; }", "title": "" }, { "docid": "279c4284bd3c941c2a23c56cc131b56f", "score": "0.5644219", "text": "public function joinInscripto($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n\t{\n\t\t$tableMap = $this->getTableMap();\n\t\t$relationMap = $tableMap->getRelation('Inscripto');\n\n\t\t// create a ModelJoin object for this join\n\t\t$join = new ModelJoin();\n\t\t$join->setJoinType($joinType);\n\t\t$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n\t\tif ($previousJoin = $this->getPreviousJoin()) {\n\t\t\t$join->setPreviousJoin($previousJoin);\n\t\t}\n\n\t\t// add the ModelJoin to the current object\n\t\tif($relationAlias) {\n\t\t\t$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n\t\t\t$this->addJoinObject($join, $relationAlias);\n\t\t} else {\n\t\t\t$this->addJoinObject($join, 'Inscripto');\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "9e2f0cca2966d64c943dc59f35865131", "score": "0.56116587", "text": "protected function build_join()\n {\n }", "title": "" }, { "docid": "414cf8145fcdc4f54491aebb88c8d2ec", "score": "0.5602421", "text": "function get_join() {\n // get the join from this table that links back to the base table.\n // Determine the primary table to seek\n if (empty($this->query->relationships[$this->relationship])) {\n $base_table = $this->query->base_table;\n }\n else {\n $base_table = $this->query->relationships[$this->relationship]['base'];\n }\n\n $join = views_get_table_join($this->table, $base_table);\n if ($join) {\n return drupal_clone($join);\n }\n }", "title": "" }, { "docid": "886c6ac31599360c87e7551118fb1858", "score": "0.55985713", "text": "protected function buildJoinClause () { \n\t\t$stageSuffix = $this->getStageSuffix(); \n\t\t\n\t\t$joinTable = self::$class_name . \"_MenuEntries\";\n\t\treturn \"LEFT JOIN {$joinTable} ON SiteTree{$stageSuffix}.ID = {$joinTable}.BlogEntryID\";\n\t}", "title": "" }, { "docid": "c79e0331d97ce203df14a4a3ed10df15", "score": "0.55972445", "text": "function summary_join() {\n $field = $this->handler->table . '.' . $this->handler->field;\n $join = $this->get_join();\n\n // shortcuts\n $options = $this->handler->options;\n $view = &$this->handler->view;\n $query = &$this->handler->query;\n\n if (!empty($options['require_value'])) {\n $join->type = 'INNER';\n }\n\n if (empty($options['add_table']) || empty($view->many_to_one_tables[$field])) {\n return $query->ensure_table($this->handler->table, $this->handler->relationship, $join);\n }\n else {\n if (!empty($view->many_to_one_tables[$field])) {\n foreach ($view->many_to_one_tables[$field] as $value) {\n $join->extra = array(\n array(\n 'field' => $this->handler->real_field,\n 'operator' => '!=',\n 'value' => $value,\n 'numeric' => !empty($this->definition['numeric']),\n ),\n );\n }\n }\n return $this->add_table($join);\n }\n }", "title": "" }, { "docid": "1d3b67756226580d323bb5a0002aae52", "score": "0.55816156", "text": "protected function addJoinStatements()\n {\n foreach ($this->tableAliases as $joinId => $alias) {\n if ($joinId !== '') {\n $parentJoinId = $this->getParentJoinIdentifier($joinId);\n $this->addJoinStatement(\n $this->tableAliases[$parentJoinId],\n $this->getFieldName($joinId),\n $alias\n );\n }\n }\n }", "title": "" }, { "docid": "22406cd0c82b41114514408e66e3157a", "score": "0.5576209", "text": "public function join()\n\t{\n\t\tif(func_num_args() == 0) show_error('Using JOIN statement, without passing any parameter(s).');\n\n\t\t$this->_is_join = TRUE;\n\t\t\n\t\tif(func_num_args() == 1)\n\t\t{\n\t\t\t$join_clause = func_get_arg(0);\n\t\t\t$this->_db->join($join_clause, $join_clause.'.id = '.$this->table.'.id');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$join_args = func_get_args();\n\t\t\tcall_user_func_array(array($this->_db, 'join'), $join_args);\n\t\t}\n\t\t$this->_locked_join = $this->_db->ar_join;\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "90e5b59288201fd025033879c6fcaa07", "score": "0.55470103", "text": "protected function currentJoinSQL() {\n\t\tDeprecation::notice('3.1', \"No longer in use\");\n\t}", "title": "" }, { "docid": "478c7d0a0dbbae4cef916acb30d780ab", "score": "0.5528211", "text": "public function joiningTable($related)\n {\n\n }", "title": "" }, { "docid": "8d243f5ea2d895e8c5c549d81eee58f3", "score": "0.55201644", "text": "public function filterByVldInpassing($vldInpassing, $comparison = null)\n {\n if ($vldInpassing instanceof VldInpassing) {\n return $this\n ->addUsingAlias(InpassingPeer::INPASSING_ID, $vldInpassing->getInpassingId(), $comparison);\n } elseif ($vldInpassing instanceof PropelObjectCollection) {\n return $this\n ->useVldInpassingQuery()\n ->filterByPrimaryKeys($vldInpassing->getPrimaryKeys())\n ->endUse();\n } else {\n throw new PropelException('filterByVldInpassing() only accepts arguments of type VldInpassing or PropelCollection');\n }\n }", "title": "" }, { "docid": "5177cc4975090239a7ffa1f43faf9d54", "score": "0.55196303", "text": "private function _set_join(&$v, $k)\n\t{\n\t\t$v = str_replace('`'.$this->primary_key.'`', '`'.$this->table.'`.`'.$this->primary_key.'`', $v);\n\t}", "title": "" }, { "docid": "ba588c72bfd131b342301f01aa4e6ee8", "score": "0.55129206", "text": "function join($table, &$query) {\n if (empty($this->definition['table formula'])) {\n $right_table = \"{\" . $this->table . \"}\";\n }\n else {\n $right_table = $this->definition['table formula'];\n }\n\n if ($this->left_table) {\n $left = $query->get_table_info($this->left_table);\n $left_field = \"$left[alias].$this->left_field\";\n }\n else {\n // This can be used if left_field is a formula or something. It should be used only *very* rarely.\n $left_field = $this->left_field;\n }\n\n $output = \" $this->type JOIN $right_table $table[alias] ON $left_field = $table[alias].$this->field\";\n\n // Load query tokens replacements.\n $view = views_get_current_view();\n $replacements = array();\n if (!empty($view)) {\n $replacements = $view->substitutions();\n }\n else {\n vpr('The current view is not set, maybe some code missed to execute $view->pre_execute()');\n }\n\n // Tack on the extra.\n if (isset($this->extra)) {\n if (is_array($this->extra)) {\n $extras = array();\n foreach ($this->extra as $info) {\n $extra = '';\n // Figure out the table name. Remember, only use aliases provided\n // if at all possible.\n $join_table = '';\n if (!array_key_exists('table', $info)) {\n $join_table = $table['alias'] . '.';\n }\n elseif (isset($info['table'])) {\n $join_table = $info['table'] . '.';\n }\n\n // Apply query token replacements.\n $info['value'] = str_replace(array_keys($replacements), $replacements, $info['value']);\n\n // And now deal with the value and the operator. Set $q to\n // a single-quote for non-numeric values and the\n // empty-string for numeric values, then wrap all values in $q.\n if (empty($info['raw'])) {\n $raw_value = $this->db_safe($info['value'], $info);\n $q = (empty($info['numeric']) ? \"'\" : '');\n }\n else {\n $raw_value = $info['value'];\n $q = '';\n }\n\n if (is_array($raw_value)) {\n $operator = !empty($info['operator']) ? $info['operator'] : 'IN';\n // Transform from IN() notation to = notation if just one value.\n if (count($raw_value) == 1) {\n $value = $q . array_shift($raw_value) . $q;\n $operator = $operator == 'NOT IN' ? '!=' : '=';\n }\n else {\n $value = \"($q\" . implode(\"$q, $q\", $raw_value) . \"$q)\";\n }\n }\n else {\n $operator = !empty($info['operator']) ? $info['operator'] : '=';\n $value = \"$q$raw_value$q\";\n }\n $extras[] = \"$join_table$info[field] $operator $value\";\n }\n\n if ($extras) {\n if (count($extras) == 1) {\n $output .= ' AND ' . array_shift($extras);\n }\n else {\n $output .= ' AND (' . implode(' ' . $this->extra_type . ' ', $extras) . ')';\n }\n }\n }\n else if ($this->extra && is_string($this->extra)) {\n $output .= \" AND ($this->extra)\";\n }\n }\n return $output;\n }", "title": "" }, { "docid": "51d3856b85b1cba543a161b480672cf3", "score": "0.5496108", "text": "function cf_search_join( $join ) {\n global $wpdb;\n\n if ( is_search() ) { \n $join .=' LEFT JOIN '.$wpdb->postmeta. ' ON '. $wpdb->posts . '.ID = ' . $wpdb->postmeta . '.post_id ';\n }\n \n return $join;\n}", "title": "" }, { "docid": "7a2d193180615cdb014e3f91dad1a9a9", "score": "0.5463761", "text": "function _get_join_query($join) {\n global $wpdb;\n $table = $wpdb->prefix . 'ts_room_availability';\n $table2 = $wpdb->prefix . 'ts_hotel';\n $table3 = $wpdb->prefix . 'hotel_room';\n $disable_avai_check = get_option('disable_availability_check');\n if (!$disable_avai_check == 'on') {\n $join .= \" INNER JOIN {$table} as tb ON {$wpdb->prefix}posts.ID = tb.parent_id AND status = 'available'\";\n $join .= \" INNER JOIN {$table3} as tb3 ON (tb.post_id = tb3.post_id and tb3.`status` IN ('publish', 'private'))\";\n }\n $join .= \" INNER JOIN {$table2} as tb2 ON {$wpdb->prefix}posts.ID = tb2.post_id\";\n return $join;\n}", "title": "" }, { "docid": "4d47b88ac6f94267903e2be58f42849d", "score": "0.5462217", "text": "private function _joinTable()\n {\n foreach($this->tables_join as $tJoin) {\n $this->dao->join( $tJoin[0], $tJoin[1], $tJoin[2] );\n }\n }", "title": "" }, { "docid": "dc3d571e6fde08bdca0d03067364d90f", "score": "0.5452194", "text": "function cf_search_join( $join ) {\n global $wpdb;\n\n if ( is_search() ) { \n $join .=' LEFT JOIN '.$wpdb->postmeta. ' ON '. $wpdb->posts . '.ID = ' . $wpdb->postmeta . '.post_id ';\n }\n\n return $join;\n}", "title": "" }, { "docid": "6fdd1f7421d655ac7973c78a952b56df", "score": "0.5447643", "text": "protected function addSearchJoin(Builder $query, $joining_table, $foreign_key, $related_key, $alias)\n {\n // We need to join to the intermediate table\n $local_table = $this->getModel()->getTable();\n\n // Set the way the table will be join, with an alias or without\n $table = $alias ? \"{$joining_table} as {$alias}\" : $joining_table;\n\n // Create an alias for the join\n $alias = $alias ?: $joining_table;\n\n // Create the join\n $query->join($table, \"{$alias}.{$foreign_key}\", \"{$local_table}.{$related_key}\");\n\n return $alias;\n }", "title": "" }, { "docid": "3132fd5c1249f6d4aa455cc30d8da239", "score": "0.5447247", "text": "public function addInnerJoin($table1,$table2);", "title": "" }, { "docid": "1bb8d7c0964e1b6498adeeba9adb4e3b", "score": "0.54455096", "text": "public function join($table, $constraint, $tableAlias = null);", "title": "" }, { "docid": "7c15ff9cb3b4c66525c109898bfa6232", "score": "0.543308", "text": "public function setJoin(){\r\n\t\t$tmpArgArr = func_get_args();\r\n $this->joinFunc = isset($tmpArgArr[0]) && is_string($tmpArgArr[0]) && stripos($tmpArgArr[0], 'JOIN') !== false ? $tmpArgArr[0] : '';\r\n }", "title": "" }, { "docid": "0e0d595fe4d797e8fd89d1c095635104", "score": "0.5426687", "text": "protected function add_join_source($join_operator, $table, $constraint, $table_alias = null)\n {\n }", "title": "" }, { "docid": "0d2761e363e6da9b49229fc82d6daee2", "score": "0.5420208", "text": "public function buildJoin()\n {\n if (false === empty($this->temp_sql_array[$this->sections->join])) {\n $sql_setting = $this->temp_sql_array[$this->sections->join];\n $this->temp_sql_statement_array[$this->sections->join] = '';\n\n foreach ($sql_setting as $row) {\n $this->temp_sql_statement_array[$this->sections->join] .=\n sprintf('%s %s ON %s = %s ', $row[0], $row[1], $row[2], $row[3]);\n }\n }\n else {\n $this->noneSection($this->sequence->join);\n }\n }", "title": "" }, { "docid": "8211174d1879ac983ec91140c8b9d2e3", "score": "0.540896", "text": "private function _addJoinQuery($select, array $params = array()) {\n if (isset($params['joinTables']) && count($params['joinTables']))\n $this->_joinTables = $params['joinTables'];\n\n /* If needs to add some data from other table, tests the joinTables\n * property. If not empty add tables and join clauses.\n */\n if (count($this->_joinTables) > 0) {\n // Get the constraint attribute = foreign key to link tables.\n $foreignKey = $params['foreignKey'];\n // Loop on tables list(given by object class) to build the query\n foreach ($this->_joinTables as $key => $object) {\n //Create an object and fetch data from object.\n $tmpObject = new $object['name']();\n $tmpDataTable = $tmpObject->getDataTableName();\n $tmpIndexTable = $tmpObject->getIndexTableName();\n $tmpColumnData = $tmpObject->getDataColumns();\n $tmpColumnIndex = $tmpObject->getIndexColumns();\n //Add data to tables list\n $this->_tables[$tmpDataTable] = $tmpColumnData;\n if (!empty($tmpColumnIndex))\n $this->_tables[$tmpIndexTable] = $tmpColumnIndex;\n\n if (isset($object['clause']))\n $tmpObject->setClause($object['clause']);\n //Get the primary key of the first data object to join table\n $tmpDataId = $tmpObject->getDataId();\n // If it's the first loop, join first table to the current table\n if ($key == 0) {\n $select->joinRight($tmpDataTable, $tmpDataId . ' = ' . $foreignKey . $tmpObject->getClause(), array());\n //If there's an index table then it too and filter according language\n if (!empty($tmpIndexTable)) {\n $tmpIndexId = $tmpObject->getIndexId();\n $select->joinLeft(\n $tmpIndexTable, $tmpDataId . ' = ' . $tmpIndexId, array());\n $select->where(\n $tmpIndexTable . '.' . $tmpObject->getIndexLanguageId() . ' = ?', $this->_lang);\n }\n } elseif ($key > 0) {\n // We have an other table to join to previous.\n $tmpDataId = $tmpObject->getDataId();\n\n $select->joinRight(\n $tmpDataTable, $tmpDataId . ' = ' . $foreignKey . $tmpObject->getClause(), array());\n\n if (!empty($tmpIndexTable)) {\n $tmpIndexId = $tmpObject->getIndexId();\n $select->joinLeft(\n $tmpIndexTable);\n\n $select->where(\n $tmpIndexTable . $tmpObject->getIndexLanguageId() . ' = ?', $this->_lang);\n }\n }\n }\n }\n\n return $select;\n }", "title": "" }, { "docid": "9b865181e5d5385cf24f1615908357c8", "score": "0.5387996", "text": "public function join($arg) {\n\t\tif(is_array($arg)) {\n\t\t\t$this->_selectQuery['join'] = array_merge($this->_selectQuery['join'], $arg);\n\t\t}\n\t\telse {\n\t\t\t$this->_selectQuery['join'][] = $arg;\n\t\t}\t\t\n\t\treturn $this;\t\t \n\t}", "title": "" }, { "docid": "8a0d0229abde1e825a78bd8e0793c31e", "score": "0.5387844", "text": "function convertJoins() {\n foreach ($this->sql_object->tables as $key => $table) {\n // Reset the placeholders.\n // @todo Does this have side effects on the arguments passed to the function later?\n $this->placeholders = array();\n // Only convert tables that have a join.\n if ($table->join) {\n switch ($table->join) {\n case 'join':\n case 'inner join':\n $join_statement = '$query->join(';\n break;\n\n case 'left join':\n $join_statement = '$query->leftJoin(';\n break;\n\n case 'right join':\n $join_statement = '$query->rightJoin(';\n break;\n }\n $right_table_alias = $this->getTableAlias($key);\n $left_table_alias = $this->getTableAlias($key - 1);\n\n $join_statement .= \"'\" . $table->name . \"', \";\n $join_statement .= \"'\" . $right_table_alias . \"', \";\n\n // Add join condition.\n if ($table->join_conditional->type == 'using') {\n $join_conditions = array();\n foreach ($table->join_conditional->columns as $column) {\n // @todo Are the left and right column names always the same (in this code anyhow)?\n $join_conditions[] = $left_table_alias . '.' . $column . ' = ' . $right_table_alias . '.' . $column;\n }\n $join_statement .= \"'\" . join(' AND ', $join_conditions) . \"'\";\n }\n else {\n // Convert any placeholders and literals in the join conditional \n // statement to Drupal 7 placeholders. This will set the \n // $this->placeholders array with the new placeholders, which can then \n // be used to generate the arguments array.\n $this->convertConditionalPlaceholders($table->join_conditional);\n // @todo There's probably a better way to remove the trailing \" ON \" \n // from the generated join conditional.\n $join_statement .= \"'\" . substr($table->join_conditional, 4) . \"'\";\n if (!empty($this->placeholders)) {\n $join_statement .= ', ' . $this->getPlaceholderArray();\n }\n }\n\n $join_statement .= \");\";\n\n $this->output[] = $join_statement;\n }\n }\n }", "title": "" }, { "docid": "474093f9183cbbab3e22ab938ae24397", "score": "0.53785443", "text": "private function joinRelatedTable($currentTable, $referencingColumn, $targetTable, $targetTablePrimaryKey, $filters = [], $joinImmediately = true)\n\t{\n\t\tif (!$this->getTableAlias($currentTable, $targetTable, $referencingColumn, $globalKey, $alias)) {\n\t\t\tif (empty($filters)) {\n\t\t\t\t// Do simple join.\n\t\t\t\t// In few cases there is no need to do join immediately -> register join\n\t\t\t\t// to decide later.\n\t\t\t\t$this->registerJoin($currentTable, $referencingColumn, $targetTable, $targetTablePrimaryKey, $globalKey, $alias);\n\t\t\t\t$joinImmediately && $this->triggerJoin();\n\t\t\t} else {\n\t\t\t\t// Join sub-query due to applying implicit filters.\n\t\t\t\t$subFluent = new Fluent($this->fluent->getConnection());\n\t\t\t\t$subFluent->select('%n.*', $targetTable)->from($targetTable);\n\n\t\t\t\t// Apply implicit filters.\n\t\t\t\t$targetedArgs = [];\n\t\t\t\tif ($filters instanceof ImplicitFilters) {\n\t\t\t\t\t$targetedArgs = $filters->getTargetedArgs();\n\t\t\t\t\t$filters = $filters->getFilters();\n\t\t\t\t}\n\t\t\t\tforeach ($filters as $filter) {\n\t\t\t\t\t$args = [$filter];\n\t\t\t\t\tif (is_string($filter) && array_key_exists($filter, $targetedArgs)) {\n\t\t\t\t\t\t$args = array_merge($args, $targetedArgs[$filter]);\n\t\t\t\t\t}\n\t\t\t\t\tcall_user_func_array([$subFluent, 'applyFilter'], $args);\n\t\t\t\t}\n\t\t\t\t$this->fluent->leftJoin($subFluent, \"[$alias]\")\n\t\t\t\t\t->on(\"[$currentTable].[$referencingColumn] = [$alias].[$targetTablePrimaryKey]\");\n\t\t\t\t$this->tryAddGroupBy($this->fluent, $currentTable);\n\t\t\t\t$this->registerTableAlias($globalKey, $alias);\n\t\t\t}\n\t\t}\n\t\treturn $alias;\n\t}", "title": "" }, { "docid": "612119089b34d66a7e13851df228cf91", "score": "0.5374753", "text": "function InnerJoin($tag = \"join\")\n\t{\n\t\t$this->tag = $tag;\n\t}", "title": "" }, { "docid": "b2a3dd09ec7862ba61c3a2d00d5e160a", "score": "0.5290955", "text": "public function join($table, $constraint, $table_alias = null)\n {\n }", "title": "" }, { "docid": "296c86a4fc151b2f878c834864b6f8b3", "score": "0.52817833", "text": "public function innerJoin($fromAlias, $join, $alias, $condition = null)\n {\n return $this->add('join', [\n $fromAlias => [\n 'joinType' => 'inner',\n 'joinTable' => $join,\n 'joinAlias' => $alias,\n 'joinCondition' => $condition,\n ],\n ], true);\n }", "title": "" }, { "docid": "f3f312e6d32a6dadd63c85f914ca0b39", "score": "0.52815825", "text": "function _addJoin($left, $spec, $type, &$left_alias) {\n\n\t\t$right = $left->config->getEntity($spec['entity']);\n\n\t\t$left_field = $left->getDBColumn($spec['local_field']);\n\t\t$right_field = $right->getDBColumn($spec['remote_field']);\n\n\t\t$key = \"{$left->name}.{$spec['local_field']}__{$spec['entity']}.{$spec['remote_field']}\";\n\n\t\tif(isset($this->aliases[$key])) {\n\t\t\t$left_alias = $this->aliases[$key];\n\t\t} else {\n\t\t\t$right_alias = \"t\" . $this->next_alias++;\n\t\t\t$this->query['join'][] = \"{$type} JOIN {{$right->table}} AS {$right_alias} ON {$left_alias}.{{$left_field}}={$right_alias}.{{$right_field}}\";\n\t\t\t$this->aliases[$key] = $right_alias;\n\t\t\t$left_alias = $right_alias;\n\t\t}\n\n\t\tself::$logger && self::$logger->log(\"_addJoin() {$left->name} -> {$right->name} AS {$left_alias}\");\n\t\treturn $right;\n\t}", "title": "" }, { "docid": "ee6c68e24c71058947916400cb47516c", "score": "0.52503866", "text": "function join($join) {\r\n\t\tglobal $wpdb;\r\n\r\n\t\t$showUngroupedPosts = (0 == (int)get_option('pg_hide_ungrouped_posts'));\r\n\t\t$p2pg = PostGroups::post2postgroup_table();\r\n\t\t$pg = PostGroups::postgroups_table();\r\n\t\t$joinType = ' INNER';\r\n\r\n\t\tif($showUngroupedPosts || is_page() || is_admin()) {\r\n\t\t\t$joinType = ' LEFT';\r\n\t\t}\r\n\r\n\t\t$join .= \"$joinType JOIN $p2pg ON ($wpdb->posts.ID = $p2pg.post_id)\";\r\n\t\t$join .= \"$joinType JOIN (SELECT id AS postgroup_id, groupname FROM $pg) $pg ON ($p2pg.postgroup_id = $pg.postgroup_id)\";\r\n\r\n\t\treturn $join;\r\n\t}", "title": "" }, { "docid": "870eb904dcd5ae8630698719b059872b", "score": "0.52424216", "text": "protected function addDoSelectJoin(&$script)\n {\n $table = $this->getTable();\n $className = $this->getObjectClassname();\n $countFK = count($table->getForeignKeys());\n $join_behavior = $this->getJoinBehavior();\n\n if ($countFK >= 1) {\n\n foreach ($table->getForeignKeys() as $fk) {\n\n $joinTable = $table->getDatabase()->getTable($fk->getForeignTableName());\n\n if (!$joinTable->isForReferenceOnly()) {\n\n // This condition is necessary because Propel lacks a system for\n // aliasing the table if it is the same table.\n if ($fk->getForeignTableName() != $table->getName()) {\n\n $thisTableObjectBuilder = $this->getNewObjectBuilder($table);\n $joinedTableObjectBuilder = $this->getNewObjectBuilder($joinTable);\n $joinedTablePeerBuilder = $this->getNewPeerBuilder($joinTable);\n\n $joinClassName = $joinedTableObjectBuilder->getObjectClassname();\n\n $script .= \"\n\n /**\n * Selects a collection of $className objects pre-filled with their $joinClassName objects.\n * @param Criteria \\$criteria\n * @param PropelPDO \\$con\n * @param String \\$join_behavior the type of joins to use, defaults to $join_behavior\n * @return array Array of $className objects.\n * @throws PropelException Any exceptions caught during processing will be\n *\t\t rethrown wrapped into a PropelException.\n */\n public static function doSelectJoin\" . $thisTableObjectBuilder->getFKPhpNameAffix($fk, $plural = false) . \"(Criteria \\$criteria, \\$con = null, \\$join_behavior = $join_behavior)\n {\n \\$criteria = clone \\$criteria;\n\n // Set the correct dbName if it has not been overridden\n if (\\$criteria->getDbName() == Propel::getDefaultDB()) {\n \\$criteria->setDbName(\" . $this->getPeerClassname() . \"::DATABASE_NAME);\n }\n\n \" . $this->getPeerClassname() . \"::addSelectColumns(\\$criteria);\n \\$startcol = \" . $this->getPeerClassname() . \"::NUM_HYDRATE_COLUMNS;\n \" . $joinedTablePeerBuilder->getPeerClassname() . \"::addSelectColumns(\\$criteria);\n\";\n\n $script .= $this->addCriteriaJoin($fk, $table, $joinTable, $joinedTablePeerBuilder);\n\n // apply behaviors\n $this->applyBehaviorModifier('preSelect', $script);\n\n $script .= \"\n \\$stmt = \" . $this->basePeerClassname . \"::doSelect(\\$criteria, \\$con);\n \\$results = array();\n\n while (\\$row = \\$stmt->fetch(PDO::FETCH_NUM)) {\n \\$key1 = \" . $this->getPeerClassname() . \"::getPrimaryKeyHashFromRow(\\$row, 0);\n if (null !== (\\$obj1 = \" . $this->getPeerClassname() . \"::getInstanceFromPool(\\$key1))) {\n // We no longer rehydrate the object, since this can cause data loss.\n // See http://www.propelorm.org/ticket/509\n // \\$obj1->hydrate(\\$row, 0, true); // rehydrate\n } else {\n\";\n if ($table->getChildrenColumn()) {\n $script .= \"\n \\$omClass = \" . $this->getPeerClassname() . \"::getOMClass(\\$row, 0);\n \\$cls = substr('.'.\\$omClass, strrpos('.'.\\$omClass, '.') + 1);\n\";\n } else {\n $script .= \"\n \\$cls = \" . $this->getPeerClassname() . \"::getOMClass();\n\";\n }\n $script .= \"\n \" . $this->buildObjectInstanceCreationCode('$obj1', '$cls') . \"\n \\$obj1->hydrate(\\$row);\n \" . $this->getPeerClassname() . \"::addInstanceToPool(\\$obj1, \\$key1);\n } // if \\$obj1 already loaded\n\n \\$key2 = \" . $joinedTablePeerBuilder->getPeerClassname() . \"::getPrimaryKeyHashFromRow(\\$row, \\$startcol);\n if (\\$key2 !== null) {\n \\$obj2 = \" . $joinedTablePeerBuilder->getPeerClassname() . \"::getInstanceFromPool(\\$key2);\n if (!\\$obj2) {\n\";\n if ($joinTable->getChildrenColumn()) {\n $script .= \"\n \\$omClass = \" . $joinedTablePeerBuilder->getPeerClassname() . \"::getOMClass(\\$row, \\$startcol);\n \\$cls = substr('.'.\\$omClass, strrpos('.'.\\$omClass, '.') + 1);\n\";\n } else {\n $script .= \"\n \\$cls = \" . $joinedTablePeerBuilder->getPeerClassname() . \"::getOMClass();\n\";\n }\n\n $script .= \"\n \" . $this->buildObjectInstanceCreationCode('$obj2', '$cls') . \"\n \\$obj2->hydrate(\\$row, \\$startcol);\n \" . $joinedTablePeerBuilder->getPeerClassname() . \"::addInstanceToPool(\\$obj2, \\$key2);\n } // if obj2 already loaded\n\n // Add the \\$obj1 (\" . $this->getObjectClassname() . \") to \\$obj2 (\" . $joinedTablePeerBuilder->getObjectClassname() . \")\";\n if ($fk->isLocalPrimaryKey()) {\n $script .= \"\n // one to one relationship\n \\$obj1->set\" . $joinedTablePeerBuilder->getObjectClassname() . \"(\\$obj2);\";\n } else {\n $script .= \"\n \\$obj2->add\" . $joinedTableObjectBuilder->getRefFKPhpNameAffix($fk, $plural = false) . \"(\\$obj1);\";\n }\n $script .= \"\n\n } // if joined row was not null\n\n \\$results[] = \\$obj1;\n }\n \\$stmt->closeCursor();\n\n return \\$results;\n }\n\";\n } // if fk table name != this table name\n } // if ! is reference only\n } // foreach column\n } // if count(fk) > 1\n\n }", "title": "" }, { "docid": "17744756647488ba9036a5eb7f199747", "score": "0.5236622", "text": "function _node_access_join_sql($node_alias = 'n', $node_access_alias = 'na') {\n if (user_access('administer nodes')) {\n return '';\n }\n\n return 'INNER JOIN {node_access} '. $node_access_alias .' ON '. $node_access_alias .'.nid = '. $node_alias .'.nid';\n}", "title": "" }, { "docid": "f4a760b8ba506252b1797276a98e1489", "score": "0.5230519", "text": "private function _join_role()\n\t{\n\t\t$this->{$this->db_group}->select('role_code, role_name, role_description, role_level');\n\n\t\t$this->{$this->db_group}->join(\n\t\t\tself::$ROLE_TABLE,\n\t\t\tself::$ROLE_TABLE.'.id_role = ' . $this->get_table() . '.id_role',\n\t\t\t'left'\n\t\t);\n\t}", "title": "" }, { "docid": "c4d87aa18c6234848c123a637f806c5c", "score": "0.5216652", "text": "function join_setting() {\n\t\t$this->db->join('member m' , 'm.m_id = transaction.m_id' , 'left');\n\t\t//$this->db->join('product p' , 'p.p_id = transaction_detail.p_id' , 'left');\n\t}", "title": "" }, { "docid": "a58dfc127abab3dbcc5c9cd0138aab5c", "score": "0.5203841", "text": "public function joinAdvogado($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n\t{\n\t\t$tableMap = $this->getTableMap();\n\t\t$relationMap = $tableMap->getRelation('Advogado');\n\n\t\t// create a ModelJoin object for this join\n\t\t$join = new ModelJoin();\n\t\t$join->setJoinType($joinType);\n\t\t$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n\t\tif ($previousJoin = $this->getPreviousJoin()) {\n\t\t\t$join->setPreviousJoin($previousJoin);\n\t\t}\n\n\t\t// add the ModelJoin to the current object\n\t\tif($relationAlias) {\n\t\t\t$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n\t\t\t$this->addJoinObject($join, $relationAlias);\n\t\t} else {\n\t\t\t$this->addJoinObject($join, 'Advogado');\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "a60e9c097fd81e0060c55803302f3f45", "score": "0.5194922", "text": "private static function _getChildJoin(Core_Entity_Mapper_Abstract $mapper, $config, Core_Entity_Mapper_Abstract $related, $bindPath, $alias, $bindName)\n {\n $joinItem = new stdClass();\n $joinItem\n ->table = array(\n $bindPath . $alias => $related->getStorage()->info(self::NAME)\n );\n\n $joinItem\n ->type = ((strtolower($config['load']) != self::JOIN_INNER) ? self::JOIN_LEFT : self::JOIN_INNER);\n\n $joinItem\n ->rule = '`' . (empty($bindName) ? $mapper->getStorage()->info(self::NAME) : $bindName) . '`.`' . $mapper->map($config['key']) . '` = `' . $bindPath . $alias . '`.`' . $related->map($config['fKey']) . '`';\n\n if(isset($config['filter']) && is_array($config['filter']))\n {\n $filter = new Core_Entity_Storage_DbSelect_Filter(\n array(\n Core_Entity_Storage_DbSelect_Filter::MAPPER => $related,\n Core_Entity_Storage_DbSelect_Filter::TABLE_ALIAS => $bindPath . $alias,\n Core_Entity_Storage_DbSelect_Filter::FILTER => $config['filter']\n )\n );\n $joinItem->rule .= ' AND ' . $filter->assemble();\n }\n foreach($related->getFields() as $relatedAlias => $realtedField)\n {\n $joinItem->fields[$bindPath . $alias . ':' . $relatedAlias] = $bindPath . $alias . '.' . $realtedField;\n }\n return $joinItem;\n }", "title": "" }, { "docid": "20e6e62314c30eeb2f78395d2675f598", "score": "0.51904225", "text": "public function search_acf_fields_join( $join, $query ) {\n\t\tif ( $this->search_custom_columns( $query ) ) {\n\t\t\tglobal $wpdb;\n\t\t\t$join .= \" JOIN {$wpdb->prefix}{$this->acf_meta_table} acfcourse ON acfcourse.post_id = {$wpdb->posts}.ID\";\n\t\t}\n\n\t\treturn $join;\n\t}", "title": "" }, { "docid": "2c923ba67da006991ea7e41e3dc0eae8", "score": "0.518918", "text": "function customJoiners($t,$searchda){\r\n\tswitch($t){\r\n\t\tcase \"inventory\":\r\n\t\t#only use if the search is based on a joined field.\r\n\t\tif($searchda[\"searchaltprodid\"]!=\"\"){\r\n\t\t\t#return;\r\n\t\t\t$j=\" left outer join prodsuppliers as ps on i.prodid=ps.prodid\";\r\n\t\t\t$j.=\" left outer join customer as c on ps.supplierid=c.customerid\";\r\n\t\t\t$invF=key2val(tfa(\"inventory\"));\r\n\t\t\t$fx=\"i.\".implode(\",i.\",$invF);\r\n\t\t\t$fx.=\",ps.altprodid,c.companyname\";\r\n\t\t\t$this->namedSearchFields=$fx;\r\n\t\t}else{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tbreak;\r\n\r\n\t\tcase \"sitecont\";\r\n\t\t$j.=\" left outer join customer as c on i.customerid=c.customerid\";\r\n\t\tbreak;\r\n\t}\r\n\treturn $j;\r\n}", "title": "" }, { "docid": "7791b7838a1bb227ea87dbb4b9491af0", "score": "0.51828", "text": "protected static function buildJoins() {\n $query = db_select('campaignion_activity', 'a')\n ->fields('a');\n return $query;\n }", "title": "" }, { "docid": "3c27e79d247201f255abc7fadc5d1914", "score": "0.5161103", "text": "public function join($jointable,$joinCol,$operator,$local,$type='INNER')\n\t{\n\t\t//INNER JOIN Customers ON Orders.CustomerID=Customers.CustomerID;\n\t\t$joinFormat=\" {$type} JOIN %s ON %s %s %s\";\n\n //check local table has dot or not\n if (strpos($local, '.') !== false) {\n $localCol = $local;\n }\n else //add the table name\n {\n $localCol = \"{$this->table}.{$local}\";\n }\n\n //check join column has dot or not\n if (strpos($joinCol, '.') !== false) {\n $joinRef = $joinCol;\n }\n else //add the table name\n {\n $joinRef = \"{$jointable}.{$joinCol}\";\n }\n\t\t$this->joinSql .= sprintf($joinFormat,$jointable,$joinRef,$operator,$local);\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "9b9f4e8017ae1ef527cbb44eedc65c1e", "score": "0.51371646", "text": "public function join_filter_provider() {\n $tests = array();\n\n // Simple join.\n $tests[] = array(\n array('id', 'foreign', 'foreignid'),\n array(\n 'where' => 'id IN (SELECT table_1.foreignid FROM {foreign} table_1 )',\n 'where_parameters' => array()\n ),\n array(\n 'join' => 'JOIN {foreign} table_1 ON table_1.foreignid = id',\n 'join_parameters' => array()\n ),\n array(\n 'where' => \"EXISTS (SELECT 'x' FROM {foreign} table_1 WHERE table_1.foreignid = x.id)\",\n 'where_parameters' => array()\n ),\n array(\n 'join' => 'JOIN {foreign} table_1 ON table_1.foreignid = x.id',\n 'join_parameters' => array()\n )\n );\n\n // Use nonunique table (so can't use join).\n $tests[] = array(\n array('id', 'foreign', 'foreignid', null, false, false),\n array(\n 'where' => 'id IN (SELECT table_1.foreignid FROM {foreign} table_1 )',\n 'where_parameters' => array()\n ),\n array(\n 'where' => 'id IN (SELECT table_1.foreignid FROM {foreign} table_1 )',\n 'where_parameters' => array()\n ),\n array(\n 'where' => \"EXISTS (SELECT 'x' FROM {foreign} table_1 WHERE table_1.foreignid = x.id)\",\n 'where_parameters' => array()\n ),\n array(\n 'where' => \"EXISTS (SELECT 'x' FROM {foreign} table_1 WHERE table_1.foreignid = x.id)\",\n 'where_parameters' => array()\n )\n );\n\n // Left join.\n $tests[] = array(\n array('id', 'foreign', 'foreignid', null, true),\n array(\n 'where' => 'id NOT IN (SELECT table_1.foreignid FROM {foreign} table_1 )',\n 'where_parameters' => array()\n ),\n array(\n 'join' => 'LEFT JOIN {foreign} table_1 ON table_1.foreignid = id ',\n 'join_parameters' => array(),\n 'where' => 'table_1.id IS NULL',\n 'where_parameters' => array()\n ),\n array(\n 'where' => \"NOT EXISTS (SELECT 'x' FROM {foreign} table_1 WHERE table_1.foreignid = x.id)\",\n 'where_parameters' => array()\n ),\n array(\n 'join' => 'LEFT JOIN {foreign} table_1 ON table_1.foreignid = x.id',\n 'join_parameters' => array(),\n 'where' => 'table_1.id IS NULL',\n 'where_parameters' => array()\n )\n );\n\n // Sub joins.\n $tests[] = array(\n array('id', 'foreign', 'foreignid', new join_filter('id', 'ff', 'ffid')),\n array(\n 'where' => 'id IN (SELECT table_1.foreignid\n FROM {foreign} table_1\n JOIN {ff} table_3\n ON table_3.ffid = table_1.id)',\n 'where_parameters' => array()\n ),\n array(\n 'join' => 'JOIN {foreign} table_1\n ON table_1.foreignid = id\n JOIN {ff} table_2\n ON table_2.ffid = table_1.id',\n 'join_parameters' => array()\n ),\n array(\n 'where' => \"EXISTS (SELECT 'x'\n FROM {foreign} table_1\n JOIN {ff} table_2\n ON table_2.ffid = table_1.id\n WHERE table_1.foreignid = x.id)\",\n 'where_parameters' => array()\n ),\n array(\n 'join' => 'JOIN {foreign} table_1\n ON table_1.foreignid = x.id\n JOIN {ff} table_2\n ON table_2.ffid = table_1.id',\n 'join_parameters' => array()\n )\n );\n\n // Left join with subjoin.\n $tests[] = array(\n array('id', 'foreign', 'foreignid', new join_filter('id', 'ff', 'ffid'), true),\n array(\n 'where' => 'id NOT IN (SELECT table_1.foreignid\n FROM {foreign} table_1\n JOIN {ff} table_3\n ON table_3.ffid = table_1.id)',\n 'where_parameters' => array()\n ),\n array(\n // Gross SQL.\n 'join' => \"LEFT JOIN {foreign} table_1\n ON table_1.foreignid = id\n AND (EXISTS (SELECT 'x'\n FROM {ff} table_2\n WHERE table_2.ffid = table_1.id))\",\n 'join_parameters' => array(),\n 'where' => 'table_1.id IS NULL',\n 'where_parameters' => array()\n ),\n array(\n 'where' => \"NOT EXISTS (SELECT 'x'\n FROM {foreign} table_1\n JOIN {ff} table_2\n ON table_2.ffid = table_1.id\n WHERE table_1.foreignid = x.id)\",\n 'where_parameters' => array()\n ),\n array(\n 'join' => \"LEFT JOIN {foreign} table_1\n ON table_1.foreignid = x.id\n AND (EXISTS (SELECT 'x'\n FROM {ff} table_2\n WHERE table_2.ffid = table_1.id))\",\n 'join_parameters' => array(),\n 'where' => 'table_1.id IS NULL',\n 'where_parameters' => array()\n )\n );\n\n return $tests;\n }", "title": "" }, { "docid": "85babe782e03f8d1f506c3f6f7514aed", "score": "0.5134266", "text": "public function joinNotasBoletin($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n\t{\n\t\t$tableMap = $this->getTableMap();\n\t\t$relationMap = $tableMap->getRelation('NotasBoletin');\n\t\t\n\t\t// create a ModelJoin object for this join\n\t\t$join = new ModelJoin();\n\t\t$join->setJoinType($joinType);\n\t\t$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n\t\tif ($previousJoin = $this->getPreviousJoin()) {\n\t\t\t$join->setPreviousJoin($previousJoin);\n\t\t}\n\t\t\n\t\t// add the ModelJoin to the current object\n\t\tif($relationAlias) {\n\t\t\t$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n\t\t\t$this->addJoinObject($join, $relationAlias);\n\t\t} else {\n\t\t\t$this->addJoinObject($join, 'NotasBoletin');\n\t\t}\n\t\t\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "e4d0d2d4c7d9eed1ae38aa77372a8f18", "score": "0.511654", "text": "private function buildJoin($join, $table, $field=null, $op=null, $value=null, $bind_value=true, $escape=true) {\n\t\t\n\t\tif ($field != null)\n\t\t\t$this->on($field, $op, $value, $bind_value, $escape);\n\t\t\n\t\t$this->join_sql .= ($this->join_sql != \"\" ? \" \" : \"\") . ($join ? $join . \" \" : \"\") . \"JOIN \" . (is_array($table) ? $this->buildSubquery($table) : $this->escapeField($table));\n\t\t\n\t\tif (!empty($this->on))\n\t\t\t$this->join_sql .= \" ON \" . $this->buildConditionals($this->on);\n\t\t\t\n\t\t// Reset the conditionals\n\t\t$this->on = array();\n\t}", "title": "" }, { "docid": "42ece7bd294176944eaaa4e0d3b5833d", "score": "0.5112714", "text": "function query() {\r\n // Figure out what base table this relationship brings to the party.\r\n $table_data = views_fetch_data($this->definition['base']);\r\n $base_field = empty($this->definition['base field']) ? $table_data['table']['base']['field'] : $this->definition['base field'];\r\n\r\n $this->ensure_my_table();\r\n\r\n $def = $this->definition;\r\n $def['table'] = $this->definition['base'];\r\n $def['field'] = $base_field;\r\n $def['left_table'] = $this->table_alias;\r\n $def['left_field'] = $this->field;\r\n if (!empty($this->options['required'])) {\r\n $def['type'] = 'INNER';\r\n }\r\n\r\n if (!empty($this->definition['left query'])) {\r\n $def['left query'] = $this->definition['left query'];\r\n }\r\n else {\r\n $def['left query'] = $this->left_query();\r\n }\r\n\r\n if (!empty($def['join_handler']) && class_exists($def['join_handler'])) {\r\n $join = new $def['join_handler'];\r\n }\r\n else {\r\n $join = new image_gallery_join_subquery();\r\n }\r\n\r\n $join->definition = $def;\r\n $join->construct();\r\n $join->adjusted = TRUE;\r\n\r\n // use a short alias for this:\r\n $alias = $def['table'] . '_' . $this->table;\r\n\r\n $this->alias = $this->query->add_relationship($alias, $join, $this->definition['base'], $this->relationship);\r\n }", "title": "" }, { "docid": "5ea886e5a9c8fef9a8c3848b9f732c8d", "score": "0.5109267", "text": "public function innerJoin($join)\n {\n return $this->join($join, 'inner');\n }", "title": "" }, { "docid": "e321ad033603d8ab01d775c76bb949f2", "score": "0.5104685", "text": "function get_sql_join ( $table, $join, &$aliases ) {\n\t\t$rT =& $this->refTable;\n\t\t$aT =& $this->authorTable;\n\t\t$sT =& $this->aShipTable;\n\n\t\t$js = '';\n\n\t\tif ( in_array ( $join['alias'], $aliases ) )\n\t\t\treturn '';\n\n\t\t// The match fields\n\t\t$t_mf = '';\n\t\t$j_mf = '';\n\n\t\tswitch ( $table['table'] ) {\n\t\t\tcase $rT:\n\t\t\t\tswitch ( $join['table'] ) {\n\t\t\t\t\tcase $sT:\n\t\t\t\t\t\t$t_mf = 'uid';\n\t\t\t\t\t\t$j_mf = 'pub_id';\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase $sT:\n\t\t\t\tswitch ( $join['table'] ) {\n\t\t\t\t\tcase $rT:\n\t\t\t\t\t\t$t_mf = 'pub_id';\n\t\t\t\t\t\t$j_mf = 'uid';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase $aT:\n\t\t\t\t\t\t$t_mf = 'author_id';\n\t\t\t\t\t\t$j_mf = 'uid';\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase $aT:\n\t\t\t\tswitch ( $join['table'] ) {\n\t\t\t\t\tcase $sT:\n\t\t\t\t\t\t$t_mf = 'uid';\n\t\t\t\t\t\t$j_mf = 'author_id';\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\n\t\t$aliases[] = $join['alias'];\n\t\t$js .= ' INNER JOIN ' . $join['table'] . ' AS ' . $join['alias'];\n\t\t$js .= ' ON ' . $table['alias'] . '.' . $t_mf;\n\t\t$js .= '=' . $join['alias'] . '.' . $j_mf;\n\t\t$js .= \"\\n\";\n\n\t\treturn $js;\n\t}", "title": "" }, { "docid": "e04d50555c0ad8f7baaa16a0f1a92330", "score": "0.51042694", "text": "private static function _getParentJoin(Core_Entity_Mapper_Abstract $mapper, $config, Core_Entity_Mapper_Abstract $related, $bindPath, $alias, $bindName)\n {\n $joinItem = new stdClass();\n $joinItem\n ->table = array(\n $bindPath . $alias => $related->getStorage()->info(self::NAME)\n );\n\n $joinItem\n ->type = ((strtolower($config['load']) != self::JOIN_INNER) ? self::JOIN_LEFT : self::JOIN_INNER);\n $joinItem->rule = '`' . (empty($bindName) ? $mapper->getStorage()->info(self::NAME) : $bindName) . '`.`' . $mapper->map($config['fKey']) . '` = `' . $bindPath . $alias . '`.`' . $related->map($config['key']) . '`';\n\n if(isset($config['filter']) && is_array($config['filter']))\n {\n $filter = new Core_Entity_Storage_DbSelect_Filter(\n array(\n Core_Entity_Storage_DbSelect_Filter::MAPPER => $related,\n Core_Entity_Storage_DbSelect_Filter::TABLE_ALIAS => $bindPath . $alias,\n Core_Entity_Storage_DbSelect_Filter::FILTER => $config['filter']\n )\n );\n $joinItem->rule .= ' AND ' . $filter->assemble();\n }\n foreach($related->getFields() as $relatedAlias => $realtedField)\n {\n $joinItem->fields[$bindPath . $alias . ':' . $relatedAlias] = $bindPath . $alias . '.' . $realtedField;\n }\n return $joinItem;\n }", "title": "" }, { "docid": "76956c0fd4b9b506675d5eb4e8b9234c", "score": "0.5103892", "text": "public function join($fromAlias, $join, $alias, $condition = null)\n {\n return $this->innerJoin($fromAlias, $join, $alias, $condition);\n }", "title": "" }, { "docid": "0bf18ff83b061abf30d2c1c03b2cf015", "score": "0.5102384", "text": "public function raw_join($table, $constraint, $table_alias, $parameters = [])\n {\n }", "title": "" }, { "docid": "8e13042899408da5a03bc760fa34b40e", "score": "0.509004", "text": "public function test_join_condition()\n {\n\n $model = m::mock('Illuminate\\Database\\Eloquent\\Model');\n $compiler = new CollectionCompiler($model);\n\n /*\n |------------------------------------------------------------\n | Expectation\n |------------------------------------------------------------\n */\n\n $criteria = Criteria::create()\n ->join('table2', function (Criteria $criteria) {\n return $criteria->on('table1.id', '=', 'table2.id');\n });\n\n /*\n |------------------------------------------------------------\n | Assertion\n |------------------------------------------------------------\n */\n\n $this->assertSame($model, $compiler->push($criteria)->apply());\n }", "title": "" }, { "docid": "927dbf7c8eab2d929129dcd0f52357be", "score": "0.5088548", "text": "protected function _buildQueryJoins(&$query)\r\n {\r\n }", "title": "" }, { "docid": "e9347af0568214910febfb131df75174", "score": "0.5086487", "text": "protected function _buildQueryJoins(&$query)\n {\n \n\t\t\n }", "title": "" }, { "docid": "c788c9ea5e2cd2c7b5a91f9589ea4ee1", "score": "0.5085811", "text": "public function Join($table1, $table2, $condition, $join_name = \"\"){\n\n if(empty($join_name)) {\n \n $this->Query = $this->db->prepare(\"SELECT * FROM \" . $table1 . \" INNER JOIN \" . $table2 . \" ON \" . $condition);\n return $this->Query->execute();\n } else if($join_name == \"LEFT JOIN\"){\n $this->Query = $this->db->prepare(\"SELECT * FROM \" . $table1 . \" LEFT JOIN \" . $table2 . \" ON \" . $condition);\n return $this->Query->execute();\n } else if($join_name == \"RIGHT JOIN\"){\n $this->Query = $this->db->prepare(\"SELECT * FROM \" . $table1 . \" RIGHT JOIN \" . $table2 . \" ON \" . $condition);\n return $this->Query->execute();\n }\n \n }", "title": "" }, { "docid": "fe2aec8751d7a1e3fca8d5ffb33c2898", "score": "0.50709623", "text": "public function testJoinSetsJoinType(): void\n {\n $this->set_reflection_property_value('join_type', 'on');\n\n $method = $this->get_accessible_reflection_method('sql_join');\n\n $method->invokeArgs($this->class, [ 'table', 'INNER' ]);\n\n $this->assertTrue($this->get_reflection_property_value('is_unfinished_join'));\n $this->assertSame('', $this->get_reflection_property_value('join_type'));\n }", "title": "" }, { "docid": "f8ca768a4b6c685a39c0f9069d3c32ea", "score": "0.50637376", "text": "public function posts_join( $join, $query ) {\r\n\t\tglobal $wpdb;\r\n\r\n\t\t// is it sorted by post views?\r\n\t\tif ( isset( $query->order_by_post_views ) && $query->order_by_post_views )\r\n\t\t\t$join .= \" LEFT JOIN \" . $wpdb->prefix . \"post_views pvc ON pvc.id = \" . $wpdb->prefix . \"posts.ID AND pvc.type = 4\";\r\n\r\n\t\treturn $join;\r\n\t}", "title": "" }, { "docid": "f7ef2d4e1671b123914022e6d24fe3be", "score": "0.5062579", "text": "public function posts_join( $join, $query ) {\r\n\t\t// is it sorted by post views?\r\n\t\tif ( ( isset( $query->post_ratings ) && $query->post_ratings ) || apply_filters( 'post_ratings_extend_post_object', false, $query ) === true ) {\r\n\t\t\tglobal $wpdb;\r\n\t\t\t\r\n\t\t\t$join .= \"\r\n\t\t\t\tLEFT JOIN(\r\n\t\t\t\t\tSELECT DISTINCT post_id,\r\n\t\t\t\t\t(SELECT CAST(meta_value AS DECIMAL(10)) FROM {$wpdb->postmeta} WHERE {$wpdb->postmeta}.post_id = meta.post_id AND meta_key ='votes') AS votes,\r\n\t\t\t\t\t(SELECT CAST(meta_value AS DECIMAL(10,2)) FROM {$wpdb->postmeta} WHERE {$wpdb->postmeta}.post_id = meta.post_id AND meta_key ='rating') AS rating\r\n\t\t\t\tFROM {$wpdb->postmeta} meta )\r\n\t\t\t\tAS ratingmeta ON {$wpdb->posts}.ID = ratingmeta.post_id\";\r\n\t\t}\r\n\t\treturn $join;\r\n\t}", "title": "" }, { "docid": "0c1a45d924539dce9d08b484299a9e79", "score": "0.5062056", "text": "public static function join($table = 0, &$operand = null) {\n\t\t$f = new \\Glue\\DB\\Fragment_Builder_Join();\n\t\tif (func_num_args() > 0)\n\t\t\treturn $f->init($table, $operand);\n\t\telse\n\t\t\treturn $f;\n\t}", "title": "" }, { "docid": "6c77377ec3905ea78fdbd1966c45db51", "score": "0.5061447", "text": "public function inner_join_2($dv)\n {\n return \"\n INNER JOIN (\n SELECT \n \n MAX(jeux) as jeux,\n MAX(name_game) as name_game,\n MAX(regie) as regie,\n id\n\n FROM reporting$dv\n WHERE display = 1\n GROUP BY id\n\n UNION\n SELECT jeux, 'AUTOPROMO' ,'Autopromo',1000\n FROM reporting_data$dv\n WHERE jeux ='AUTOPROMO'\n )\";\n }", "title": "" }, { "docid": "32f0939bacdf489a059a003a7552a075", "score": "0.50500375", "text": "public function join($relations, $type = 'inner');", "title": "" }, { "docid": "43353685ef04a57ea8c8b5cd81e597b9", "score": "0.5036342", "text": "protected function _joinLinks()\n {\n $select = $this->getSelect();\n $adapter = $select->getAdapter();\n\n $joinCondition = array(\n 'links.linked_product_id = e.entity_id',\n $adapter->quoteInto('links.link_type_id = ?', $this->_linkTypeId)\n );\n $joinType = 'join';\n if ($this->getProduct() && $this->getProduct()->getId()) {\n $productId = $this->getProduct()->getId();\n if ($this->_isStrongMode) {\n $this->getSelect()->where('links.product_id = ?', (int)$productId);\n } else {\n $joinType = 'joinLeft';\n $joinCondition[] = $adapter->quoteInto('links.product_id = ?', $productId);\n }\n $this->addFieldToFilter('entity_id', array('neq' => $productId));\n } else if ($this->_isStrongMode) {\n $this->addFieldToFilter('entity_id', array('eq' => -1));\n }\n if($this->_hasLinkFilter) {\n $select->$joinType(\n array('links' => $this->getTable('catalog/product_link')),\n implode(' AND ', $joinCondition),\n array('link_id')\n );\n $this->joinAttributes();\n }\n return $this;\n }", "title": "" }, { "docid": "f7e30408284c40613aad7367472ea067", "score": "0.5032251", "text": "protected function join($idSql)\n\t{\n\t\t\n\t\t/*\n\t\tExample:\n\t\t$value = $this->filter['tag']->getValue();\n\t\tif(!empty($value)) {\n\t\t\t$join = 'LEFT JOIN articles_tags ag ON ag.article = a.id';\n\t\t\t$idSql = preg_replace('/WHERE/i', ' '.$join.' WHERE', $idSql);\t\t\t \n\t\t}\n\t\t*/\n\t\treturn $idSql;\n\t}", "title": "" }, { "docid": "4e3bba5958721a17d9f72f91661692fa", "score": "0.50271046", "text": "public function joinPodcastIgreja($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n\t{\n\t\t$tableMap = $this->getTableMap();\n\t\t$relationMap = $tableMap->getRelation('PodcastIgreja');\n\n\t\t// create a ModelJoin object for this join\n\t\t$join = new ModelJoin();\n\t\t$join->setJoinType($joinType);\n\t\t$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n\t\tif ($previousJoin = $this->getPreviousJoin()) {\n\t\t\t$join->setPreviousJoin($previousJoin);\n\t\t}\n\n\t\t// add the ModelJoin to the current object\n\t\tif($relationAlias) {\n\t\t\t$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n\t\t\t$this->addJoinObject($join, $relationAlias);\n\t\t} else {\n\t\t\t$this->addJoinObject($join, 'PodcastIgreja');\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "89d123ef4dea1f1242627fca63ddb219", "score": "0.50244284", "text": "public function join($type, $table, array $joins, $alias = null);", "title": "" }, { "docid": "9f0adc8e8aef4203fa53a25d7b6446af", "score": "0.50207025", "text": "protected function _buildDependancyJoins()\n\t{\n\t\t$table = new Zend_Db_Table($this->_name);\n\t\t$select = $table->getAdapter()\n\t\t\t\t->select()\n\t\t\t\t->from(array ($this->_name => $this->_name));\n\t\tforeach ($this->dependancyChain as $chain => $referenceMap)\n\t\t{\n\t\t\t$chainLen = count($referenceMap) - 1;\n\t\t\tforeach ($referenceMap as $joinId => $joinSpec)\n\t\t\t{\n\t\t\t\tif ($joinId == $chainLen)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t$classname = $joinSpec['refTableClass'];\n\t\t\t\t$joinTable = new $classname();\n\t\t\t\t$tableName = $joinTable->getTableName();\n\t\t\t\t$ref_table_prepend = str_replace(\n\t\t\t\t\t\t$tableName . '_id',\n\t\t\t\t\t\t'',\n\t\t\t\t\t\t$joinSpec['columns']\n\t\t\t\t\t\t);\n\t\t\t\t$dbFieldName = $referenceMap[$joinId + 1]['columns'];\n\t\t\t\t/* $joinType = $this->_metadata[$joinSpec['columns']]['NULLABLE']\n\t\t\t\t\t? 'outer'\n\t\t\t\t\t: 'inner';\n\t\t\t\tif ('inner' == $joinType)\n\t\t\t\t{\n\t\t\t\t\t$select->join(\n\t\t\t\t\t\t\tarray ($ref_table_prepend . $tableName => $tableName),\n\t\t\t\t\t\t\t$ref_table_prepend . \"$tableName.id = $this->_name.\" . $joinSpec['columns'],\n\t\t\t\t\t\t\t$dbFieldName\n\t\t\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{ */\n\t\t\t\t\t$select->joinLeft(\n\t\t\t\t\t\t\tarray ($ref_table_prepend . $tableName => $tableName),\n\t\t\t\t\t\t\t$ref_table_prepend . \"$tableName.id = $this->_name.\" . $joinSpec['columns'],\n\t\t\t\t\t\t\t$dbFieldName\n\t\t\t\t\t\t\t);\n\t\t\t\t//}\n\t\t\t}\n\t\t}\n\n\t\t#-> Fin\n\t\treturn $select;\n\t}", "title": "" }, { "docid": "f62acefcabd811106ed42fc735a7185a", "score": "0.5018165", "text": "public function register_joins() {\n\t}", "title": "" }, { "docid": "6828cb41cea7f7d621ad037ac61c2727", "score": "0.501751", "text": "protected function parse_field($_VTO, $_field, $_query, &$joined_tables, $_options = NULL)\n {\n // ID of the last included table (last element of the join chain)\n $from_table_id = $_VTO->id;\n // ID of the new included table (element to append to the join chain)\n $to_table_id = NULL;\n\n // Data\n $last_child_id = $from_table_id;\n $last_parent_to_link = NULL;\n $last_parent_from_link = NULL;\n $first_parent_from_link = NULL;\n $first_parent_to_link = NULL;\n $last_link_type = NULL;\n \n // Compute need JOINs\n for($i = 0; $i < count($_field) - 1; ++$i) {\n // Update 'as' ID of the next joined table\n $to_table_id .= $_field[$i];\n\n // Check if the table is a child\n $link = $_VTO->children[$_field[$i]];\n if(isset($link)) {\n $first_parent_from_link = NULL;\n $first_parent_to_link = NULL;\n $last_child_id = $to_table_id;\n $last_link_type = VTOL_CHILD;\n }\n // Check if the table is a parent\n else {\n $link = $_VTO->parents[$_field[$i]];\n $last_link_type = VTOL_PARENT;\n }\n // Link not found\n if(!isset($link)) {\n $this->VTM->throw_error('Invalid link', $_field[$i]);\n }\n // Load table\n $link_VTO = $this->VTM->require($link->table);\n\n // If table is not already joined (from other fields) then join it\n if(!isset($joined_tables[$to_table_id])) {\n // Compute join condition\n $condition = '';\n // Add custom condition\n if(isset($link->condition[$_query])) {\n // Replace joined table id with computed to table id and active table id with from table id\n $condition .= '(' . str_replace([$_field[$i].'.', $_VTO->id.'.'], [$to_table_id.'.', $from_table_id.'.'], $link->condition[$_query]) . ')';\n }\n // If is a parent table then add default join condition: parent.ID_to = child.ID_from\n if($last_link_type === VTOL_PARENT) {\n if(isset($link->condition[$_query])) {\n $condition.= ' AND ';\n }\n // child.ID_from\n $last_parent_from_link = $from_table_id . '.' . $link->from_field;\n $first_parent_from_link = $first_parent_from_link ?: $last_parent_from_link;\n // parent.ID_to\n $last_parent_to_link = $to_table_id . '.' . $link->to_field;\n $first_parent_to_link = $first_parent_to_link ?: $last_parent_to_link;\n // parent.ID_to = child.ID_from\n $condition .= $last_parent_to_link . ' = ' . $last_parent_from_link;\n }\n else if(!count($condition)) {\n $this->throw_error('Children join condition not provided', $_field[$i]);\n $condition = '0';\n }\n\n // Join table\n $joined_tables[$to_table_id] = ' INNER JOIN ' . $link_VTO->name . ' AS ' . $to_table_id . ' ON ' . $condition; //TODO option for INNER\n }\n\n // Update values for next iteration\n $_VTO = $link_VTO;\n $from_table_id = $to_table_id;\n }\n\n switch ($_query) {\n case VTOQ_GET:\n // SELECT\n // Field is last_joined_table.query_field\n $field = $from_table_id . '.' . $_field[$i];\n break;\n \n case VTOQ_POST:\n // INSERT\n // Same as UPDATE: instead of updating an existing value you create it, but sintax is the same (a few edits happen in the post function)\n case VTOQ_PUT:\n // UPDATE\n // If last_joined_table is a parent then you want to select one of its element based on the query_field, and update the query_field with the field value of the\n // first parent table after the last child table in the join chain\n if($last_link_type === VTOL_PARENT) {\n // Field to update = link field of the first parent table\n // last_child_table.first_link_from = first_link_to \n $field = [$first_parent_from_link, $first_parent_to_link]; // ??? was [$last_child_id . '.' . $first_parent_from_link, $last_parent_to_link]\n // Last table joined needs to be joined on last_parent_table.query_field = query_var\n // instead of last_parent_table.link_to = link_from (2 replaces)\n $joined_tables[$from_table_id] = str_replace([$last_parent_from_link, '.' . $link->to_field], [':' . $_options['as'], '.' . $_field[$i]], $joined_tables[$from_table_id]);\n }\n // If last_joined_table is a child then just update the selected field\n else {\n // last_joined_table.query_field = query_var\n $field = [$from_table_id . '.' . $_field[$i], ':' . $_options['as']];\n }\n break;\n \n case VTOQ_DELETE:\n $field = $from_table_id;\n break;\n }\n\n return $field;\n }", "title": "" }, { "docid": "b4d748465fd49e8162f4fcb2f1d6379e", "score": "0.5006234", "text": "protected function has_many_through($associated_class_name, $join_class_name = null, $key_to_base_table = null, $key_to_associated_table = null, $key_in_base_table = null, $key_in_associated_table = null)\n {\n }", "title": "" }, { "docid": "9ea68cf015ee296a345ff34e5e019758", "score": "0.49802196", "text": "public function join($options): Query\n {\n if (is_string($options)) {\n $options = ['table' => $options];\n }\n\n # Add default Options\n $options += [\n 'table' => null,\n 'alias' => null,\n 'type' => 'INNER',\n 'fields' => [],\n 'conditions' => []\n ];\n\n if (empty($options['table'])) {\n throw new InvalidArgumentException('No table name provided');\n }\n\n if (empty($options['alias'])) {\n $options['alias'] = $options['table'];\n }\n\n if (empty($options['conditions'])) {\n $tableAlias = Inflector::tableName($this->model->alias());\n $foreignKey = Inflector::singular($options['table']) . '_id';\n $options['conditions'] = [\n \"{$tableAlias}.{$foreignKey} = {$options['alias']}.id\"\n ];\n }\n \n $this->query['joins'][] = $options;\n \n return $this;\n }", "title": "" }, { "docid": "fdf1ab25860b06d6559cfe9a679ea6c7", "score": "0.4969864", "text": "private function setManyToManyJoin($table, $alias, $condition = null)\n {\n if (!in_array($alias, $this->tables)) {\n if ($condition) {\n $this->queryBuilder->join($table, $alias, 'WITH', $condition);\n } else {\n $this->queryBuilder->join($table, $alias);\n }\n $this->tables[] = $alias;\n }\n }", "title": "" }, { "docid": "6b741ae07528947496b46626616efb22", "score": "0.49661973", "text": "public function testJoinSetsUnfinishedJoinWithNaturalJoin(): void\n {\n $method = $this->get_accessible_reflection_method('sql_join');\n\n $method->invokeArgs($this->class, [ 'table', 'NATURAL LEFT JOIN' ]);\n\n $this->assertFalse($this->get_reflection_property_value('is_unfinished_join'));\n }", "title": "" }, { "docid": "5b0399d23596d2599627349cae08c3c3", "score": "0.49642238", "text": "protected function add_join_source( $join_operator, $table, $constraint, $table_alias = null ) {\n\t\t$join_operator = \\trim( \"{$join_operator} JOIN\" );\n\t\t$table = $this->quote_identifier( $table );\n\t\t// Add table alias if present.\n\t\tif ( ! \\is_null( $table_alias ) ) {\n\t\t\t$table_alias = $this->quote_identifier( $table_alias );\n\t\t\t$table .= \" {$table_alias}\";\n\t\t}\n\t\t// Build the constraint.\n\t\tif ( \\is_array( $constraint ) ) {\n\t\t\tlist( $first_column, $operator, $second_column ) = $constraint;\n\n\t\t\t$first_column = $this->quote_identifier( $first_column );\n\t\t\t$second_column = $this->quote_identifier( $second_column );\n\t\t\t$constraint = \"{$first_column} {$operator} {$second_column}\";\n\t\t}\n\t\t$this->join_sources[] = \"{$join_operator} {$table} ON {$constraint}\";\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "96cd4ea2dff1f9ed57fab7155d4a7885", "score": "0.49641222", "text": "public function joinIngresoEgreso($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n\t{\n\t\t$tableMap = $this->getTableMap();\n\t\t$relationMap = $tableMap->getRelation('IngresoEgreso');\n\t\t\n\t\t// create a ModelJoin object for this join\n\t\t$join = new ModelJoin();\n\t\t$join->setJoinType($joinType);\n\t\t$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n\t\tif ($previousJoin = $this->getPreviousJoin()) {\n\t\t\t$join->setPreviousJoin($previousJoin);\n\t\t}\n\t\t\n\t\t// add the ModelJoin to the current object\n\t\tif($relationAlias) {\n\t\t\t$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n\t\t\t$this->addJoinObject($join, $relationAlias);\n\t\t} else {\n\t\t\t$this->addJoinObject($join, 'IngresoEgreso');\n\t\t}\n\t\t\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "94210297597c7527e1738383bc9985f9", "score": "0.4956348", "text": "function PostsJoin($join){\r\n\t\t\tif (!empty($GLOBALS['wp_query']->query_vars['s'])) {\r\n\t\t\t\t$join = ' , '.$GLOBALS['table_prefix'].'postmeta pm '.$join;\r\n\t\t\t}\r\n return $join;\r\n\r\n\t\t}", "title": "" }, { "docid": "2ea4bc6c5b036d49848620c19b1d11ed", "score": "0.49492696", "text": "protected function _joinFields()\n {\n $reviewTable = Mage::getSingleton('core/resource')->getTableName('review/review');\n $reviewDetailTable = Mage::getSingleton('core/resource')->getTableName('review/review_detail');\n\n $this->addAttributeToSelect('name')\n ->addAttributeToSelect('sku');\n\n $this->getSelect()\n ->join(array('rt' => $reviewTable),\n 'rt.entity_pk_value = e.entity_id',\n array('rt.review_id', 'review_created_at'=> 'rt.created_at', 'rt.entity_pk_value', 'rt.status_id'))\n ->join(array('rdt' => $reviewDetailTable),\n 'rdt.review_id = rt.review_id',\n array('rdt.title','rdt.nickname', 'rdt.detail', 'rdt.customer_id', 'rdt.store_id', 'rdt.location')); // AX 4.14. 13 added rdt.location\n return $this;\n }", "title": "" }, { "docid": "60b56adbf1095c497e35a63f9145e7dd", "score": "0.4948957", "text": "protected function joinQuery()\n {\n return '';\n }", "title": "" }, { "docid": "75d7e60a59f4c4cf086b0e5efaf8d697", "score": "0.49484047", "text": "public function joinVldRombel($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n {\n $tableMap = $this->getTableMap();\n $relationMap = $tableMap->getRelation('VldRombel');\n\n // create a ModelJoin object for this join\n $join = new ModelJoin();\n $join->setJoinType($joinType);\n $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);\n if ($previousJoin = $this->getPreviousJoin()) {\n $join->setPreviousJoin($previousJoin);\n }\n\n // add the ModelJoin to the current object\n if ($relationAlias) {\n $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());\n $this->addJoinObject($join, $relationAlias);\n } else {\n $this->addJoinObject($join, 'VldRombel');\n }\n\n return $this;\n }", "title": "" }, { "docid": "6c6efb160cfc553be3f99c76ba842b0f", "score": "0.494372", "text": "public function getCheckinJoinQuery() {\n\n return Delegate::where('delegates.event_id', $this->id)\n ->join('transactions', 'delegates.id', '=',\n 'transactions.payee_id')\n ->where('transactions.payee_type', Delegate::class)\n ->join('check_in', 'check_in.transaction_id', '=',\n 'transactions.id')\n ->join('tickets', 'tickets.id', '=',\n 'transactions.ticket_id')\n ->joinSub(function ($query) {\n\n $part = config('database.default') === 'sqlite' ?\n \"transaction_id || DATE(created_at)\" :\n \"CONCAT(transaction_id, DATE(created_at))\";\n\n $str = 'transaction_id_date';\n $sql = \"{$part} {$str}, MIN(id) first\";\n $query->selectRaw($sql)\n ->from('check_in')\n ->groupBy('' . $str . '');\n }, 'temp', 'temp.first', '=', 'check_in.id');\n\n }", "title": "" }, { "docid": "8ad966c1f0fe1258288763ca91857ceb", "score": "0.49322352", "text": "function join( $table, $cond, $type = '', $escape = TRUE )\n\t{\n\t\tif ( $type != '' )\n\t\t{\n\t\t\t$type = strtoupper(trim($type));\n\n\t\t\tif ( ! in_array($type, array('LEFT', 'RIGHT', 'OUTER', 'INNER', 'LEFT OUTER', 'RIGHT OUTER')) )\n\t\t\t{\n\t\t\t\t$type = '';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$type .= ' ';\n\t\t\t}\n\t\t}\n\n\t\t// Extract any aliases that might exist. We use this information\n\t\t// in the _protect_identifiers to know whether to add a table prefix \n\t\t$this->_track_aliases($table);\n\n\t\t// Strip apart the condition and protect the identifiers\n\t\tif ( preg_match('/([\\w\\.]+)([\\W\\s]+)(.+)/', $cond, $match) )\n\t\t{\n\t\t\t$match[1] = ($escape ? $this->_protect_identifiers($match[1]) : $match[1]);\n\t\t\t$match[3] = ($escape ? $this->_protect_identifiers($match[3]) : $match[3]);\n\t\t\n\t\t\t$cond = $match[1] . $match[2] . $match[3];\t\t\n\t\t}\n\t\t\n\t\t// Assemble the JOIN statement\n\t\t$join = $type . 'JOIN ' . $this->_protect_identifiers($table, TRUE, NULL, FALSE) . ' ON ' . $cond;\n\n\t\t$this->ar_join[] = $join;\n\t\tif ($this->ar_caching === TRUE)\n\t\t{\n\t\t\t$this->ar_cache_join[] = $join;\n\t\t\t$this->ar_cache_exists[] = 'join';\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "d3bbb62b72c17b24b33db4100fda0c30", "score": "0.49318588", "text": "public function joinOn($src, $srcField, $target, $targetField, $where = null, $alias = null)\n {\n\n $key = $alias?$alias:$target;\n\n if (isset($this->joinIndex[$key.'.'.$srcField])) {\n Log::warn('Tried to join an allready joined table, that can be an error');\n\n return $this;\n } else {\n $this->joinIndex[$key.'.'.$srcField] = true;\n }\n\n $this->joinOn[] = array(null, $src, $srcField, $target, $targetField, $where, $alias);\n\n return $this;\n\n }", "title": "" }, { "docid": "7114bd712d0e96d2b544c950f7fd13f0", "score": "0.4928216", "text": "private function addToJoin($model) {\n if ($model != $this->controller->modelClass && !in_array($model, array_keys($this->joins))) {\n if (empty($this->configuration[$model]['join']['table'])) {\n $this->joins[$model]['table'] = Inflector::tableize($model);\n } else {\n $this->joins[$model]['table'] = $this->configuration[$model]['join']['table'];\n }\n if (empty($this->configuration[$model]['join']['alias'])) {\n $this->joins[$model]['alias'] = $model;\n } else {\n $this->joins[$model]['alias'] = $this->configuration[$model]['join']['alias'];\n }\n if (empty($this->configuration[$model]['join']['type'])) {\n $this->joins[$model]['type'] = $this->defaultJoin['type'];\n } else {\n $this->joins[$model]['type'] = $this->configuration[$model]['join']['type'];\n }\n if (empty($this->configuration[$model]['join']['conditions'])) {\n $this->joins[$model]['conditions'][] = sprintf($this->defaultJoin['conditions']['fk_in_this_table'], Inflector::singularize(Inflector::underscore($model)), $model);\n } elseif ($this->configuration[$model]['join']['conditions'] == 'fk_in_this_table') {\n $this->joins[$model]['conditions'][] = sprintf($this->defaultJoin['conditions']['fk_in_this_table'], Inflector::singularize(Inflector::underscore($model)), $model);\n } elseif ($this->configuration[$model]['join']['conditions'] == 'fk_in_the_other_table') {\n $this->joins[$model]['conditions'][] = sprintf($this->defaultJoin['conditions']['fk_in_the_other_table'], $model);\n } else {\n $this->joins[$model]['conditions'] = $this->configuration[$model]['join']['conditions'];\n }\n }\n }", "title": "" }, { "docid": "34bb09a825e230e5879d34bbf47007ea", "score": "0.49282128", "text": "protected function localiseJoin(SQLQuery &$query, $locale, $includedTables)\n {\n $fromArray \t= $query->getFrom();\n \n $isLiveMod\t= ( Versioned::current_stage() == 'Live' ) ? true : false;\n \n $default = Fluent::default_locale();\n\n if(count($fromArray)){\n foreach ($fromArray as $table => $config){\n // get DB table name\n if(is_array($config) && isset($config['table']) && $config['table']){\n $primaryTable \t= $config['table'];\n }else{\n $primaryTable \t= $table;\n }\n \n //check if this table require fluent translation\n if( ! isset($includedTables[$primaryTable])){\n continue;\n }\n \n // join locale table\n $localeTable = $primaryTable . '_' . $locale;\n if(DB::get_schema()->hasTable($localeTable) && ! isset($fromArray[$localeTable])){\n $query->addLeftJoin($localeTable, \"\\\"{$primaryTable}\\\".\\\"ID\\\" = \\\"$localeTable\\\".\\\"ID\\\"\");\n }\n \n //check version mode for locale table\n $baseLiveTableName = $primaryTable . '_Live';\n if($isLiveMod && isset($includedTables[$baseLiveTableName])){\n $query->renameTable($localeTable, $baseLiveTableName . '_' . $locale);\n }\n \n // join default table\n $defaultTable = $primaryTable . '_' . $default;\n if(DB::get_schema()->hasTable($defaultTable) && ! isset($fromArray[$defaultTable])){\n $query->addLeftJoin($defaultTable, \"\\\"{$primaryTable}\\\".\\\"ID\\\" = \\\"$defaultTable\\\".\\\"ID\\\"\");\n }\n \n //check version mode for default table\n $baseLiveTableName = $primaryTable . '_Live';\n if($isLiveMod && isset($includedTables[$baseLiveTableName])){\n $query->renameTable($defaultTable, $baseLiveTableName . '_' . $default);\n }\n }\n }\n }", "title": "" }, { "docid": "596de87a82df3ad411ebafcdf94219c1", "score": "0.4922425", "text": "function buildJoin()\r\n {\r\n $statement = \"SELECT \";\r\n if (! empty($this->data['join'])) {\r\n if ($this->counting) {\r\n $statement .= \" COUNT(*)\";\r\n } else {\r\n if (! empty($this->data['keys'])) {\r\n $statement .= $this->prepJoinKeys();\r\n } else {\r\n if (! empty($this->data['select'])) {\r\n $statement .= $this->data['select'];\r\n } else {\r\n $statement .= \"*\";\r\n }\r\n }\r\n }\r\n $statement .= \" FROM \" . $this->table;\r\n $statement .= $this->joinType();\r\n $statement .= $this->prepJoinTables();\r\n } else {\r\n if ($this->counting) {\r\n $statement .= \" COUNT(*)\";\r\n } else {\r\n if (! empty($prep['keys'])) {\r\n $statement .= $this->prepJoinKeys();\r\n } else {\r\n if (! empty($this->data['select'])) {\r\n $statement .= $this->data['select'];\r\n } else {\r\n $statement .= \"*\";\r\n }\r\n }\r\n }\r\n $statement .= \" FROM \" . $this->table;\r\n }\r\n return $statement;\r\n }", "title": "" }, { "docid": "d9bcff503954991eeb285042a6e3ebc2", "score": "0.4919053", "text": "public function join($table, $type = NULL)\n\t{\n\t\treturn parent::join($this->_model_alias($table), $type);\n\t}", "title": "" }, { "docid": "f6161fc5956100862d000728451efd64", "score": "0.49099413", "text": "public function join( $table, $constraint, $table_alias = null ) {\n\t\treturn $this->add_join_source( '', $table, $constraint, $table_alias );\n\t}", "title": "" }, { "docid": "37a49ac0f1275fc2f741ad533f5e381a", "score": "0.49029228", "text": "public function useAdvogadoQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n\t{\n\t\treturn $this\n\t\t\t->joinAdvogado($relationAlias, $joinType)\n\t\t\t->useQuery($relationAlias ? $relationAlias : 'Advogado', 'AdvogadoQuery');\n\t}", "title": "" }, { "docid": "a8d499084e66142db0aa7728460269d2", "score": "0.49020213", "text": "protected function join($table, $condition, $cols = '*')\n {\n if (is_array($table)) {\n foreach ($table as $k => $v) {\n $alias = $k;\n $table = $v;\n break;\n }\n } else {\n $alias = $table;\n }\n if (!isset($this->joinedTables[$table])) {\n $this->getSelect()->join([$alias => $this->getTable($table)], $condition, $cols);\n $this->joinedTables[$alias] = true;\n }\n }", "title": "" }, { "docid": "e6c9cddfc94621e617c26089a53c6f8b", "score": "0.48957524", "text": "public function joins() : array;", "title": "" }, { "docid": "866d7ab19bb3e8e52bd7dfa95e7a25fe", "score": "0.48939046", "text": "public function simpleJoin($table1, $field1, $table2, $field2, $operator = \"=\") { return $this->addJoin(new JoinQueryComponent($table1, $field1, $table2, $field2, $operator)); }", "title": "" } ]
4d179413e5a01b413d8535c95f680196
Entry point of the module.
[ { "docid": "122a801294b702250265e09aadb175ac", "score": "0.0", "text": "function TimeIt_user_main()\n{\n return pnModFunc('TimeIt', 'user', 'view');\n}", "title": "" } ]
[ { "docid": "0996f9417d224e65b25cddd299d6f4da", "score": "0.7287851", "text": "public function main()\n\t{\n\t}", "title": "" }, { "docid": "106b1e2b6d932d91443ed4c12213bd69", "score": "0.7274027", "text": "public static function run() {\n\t}", "title": "" }, { "docid": "1721e4a9b6e93a3636c991ca11c3a769", "score": "0.725878", "text": "protected function main()\n /**/\n {\n parent::run();\n }", "title": "" }, { "docid": "abcbdc0347df7fd634d8b90d91c39c6d", "score": "0.7154803", "text": "public function main()\r\n {\r\n \r\n }", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.714182", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.7140139", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.7140139", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.7140139", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.7140139", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.7140139", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.7140139", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.7140139", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.7140139", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.7140139", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.7140139", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.7140139", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.7140139", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.7140139", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.7140139", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.7140139", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.7140139", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.7140139", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.7140139", "text": "public function main() {}", "title": "" }, { "docid": "0bc5fc1a8a0fffd67095c6ec7e195479", "score": "0.7140139", "text": "public function main() {}", "title": "" }, { "docid": "bd391c4a3994373087af25734a1299ca", "score": "0.70791", "text": "public function main()\n {\n\n }", "title": "" }, { "docid": "1e42ab133b00db6a9524dff1d51f7291", "score": "0.70507455", "text": "public static function main(){\n\t\t\t\n\t\t}", "title": "" }, { "docid": "7072b6f8a45ff4654c3c95fe06d145ab", "score": "0.69132876", "text": "public function run()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "531ed3915f6ba3b7b7c3c7346b99efc4", "score": "0.6905159", "text": "public function startup();", "title": "" }, { "docid": "9eaeb712cc44cb6f5e626d7144d3ea84", "score": "0.68857926", "text": "public function run() {\n }", "title": "" }, { "docid": "e7043b62f5171bee8a6e6e6c524ce12f", "score": "0.68778044", "text": "public function main()\n\t{\n\t\t$this->loadConfig();\n\t\t$this->validateProject();\n\t\t$this->cleanConfig();\n\t\t$this->installDependencies();\n\t\t$this->createAutoload();\n\t\t$this->finish();\n\t}", "title": "" }, { "docid": "be4a2349a01136eb0bd3d6d087c8f138", "score": "0.6867537", "text": "public function run() {}", "title": "" }, { "docid": "a71f23a67c13fa160cb71e3bca41ba2e", "score": "0.6824298", "text": "public function run() {\n }", "title": "" }, { "docid": "82a013cf11668d125fc983eece23b652", "score": "0.67769605", "text": "public function run()\n {\n }", "title": "" }, { "docid": "ee2b60c87723050d6d8fad802ccce8fa", "score": "0.67741674", "text": "public static function main()\n {\n $init = new Init();\n $init->preRun();\n $init->run();\n }", "title": "" }, { "docid": "4343ae0442de86ce1ac9ab44f8f94b81", "score": "0.674051", "text": "public static function run()\n\t{\n\t\tself::initialize(__class__);\n\t\t# Add post-init hooks here\n\t}", "title": "" }, { "docid": "71fd9eb280553614419d16367e7c4a5c", "score": "0.67394596", "text": "public function run()\n {\n }", "title": "" }, { "docid": "71fd9eb280553614419d16367e7c4a5c", "score": "0.67394596", "text": "public function run()\n {\n }", "title": "" }, { "docid": "71fd9eb280553614419d16367e7c4a5c", "score": "0.67394596", "text": "public function run()\n {\n }", "title": "" }, { "docid": "2bcb5f78bbaccf7d253bb07d257179f7", "score": "0.6696273", "text": "public function run()\r\n {\r\n\r\n }", "title": "" }, { "docid": "4c9d60823941369a5f02a0fc5ccc8814", "score": "0.667931", "text": "public function run()\n {\n //\n }", "title": "" }, { "docid": "4c9d60823941369a5f02a0fc5ccc8814", "score": "0.667931", "text": "public function run()\n {\n //\n }", "title": "" }, { "docid": "eae8481eb22cb1c4344a0a5752be01ac", "score": "0.66608614", "text": "public function run(){}", "title": "" }, { "docid": "9bc05912d454bfbe33196b736df980bf", "score": "0.6642788", "text": "public function run() {\n\t\t$this->create_instances();\n\t\t$this->register_hooks();\n\t}", "title": "" }, { "docid": "1af6fe27360e3e143bd130dfb1c3aaa7", "score": "0.66321963", "text": "function main()\r\n {\r\n $this->setOutput();\r\n }", "title": "" }, { "docid": "6ee05f51d85cc86d492118a196c236d6", "score": "0.66292924", "text": "public function run()\n {\n\n }", "title": "" }, { "docid": "6ee05f51d85cc86d492118a196c236d6", "score": "0.66292924", "text": "public function run()\n {\n\n }", "title": "" }, { "docid": "6ee05f51d85cc86d492118a196c236d6", "score": "0.66292924", "text": "public function run()\n {\n\n }", "title": "" }, { "docid": "4a41d9793afc4e93c518b703d0a37cbb", "score": "0.66291326", "text": "public function run();", "title": "" }, { "docid": "4a41d9793afc4e93c518b703d0a37cbb", "score": "0.66291326", "text": "public function run();", "title": "" }, { "docid": "4a41d9793afc4e93c518b703d0a37cbb", "score": "0.66291326", "text": "public function run();", "title": "" }, { "docid": "4a41d9793afc4e93c518b703d0a37cbb", "score": "0.66291326", "text": "public function run();", "title": "" }, { "docid": "4a41d9793afc4e93c518b703d0a37cbb", "score": "0.66291326", "text": "public function run();", "title": "" }, { "docid": "4a41d9793afc4e93c518b703d0a37cbb", "score": "0.66291326", "text": "public function run();", "title": "" }, { "docid": "4a41d9793afc4e93c518b703d0a37cbb", "score": "0.66291326", "text": "public function run();", "title": "" }, { "docid": "4a41d9793afc4e93c518b703d0a37cbb", "score": "0.66291326", "text": "public function run();", "title": "" }, { "docid": "4a41d9793afc4e93c518b703d0a37cbb", "score": "0.66291326", "text": "public function run();", "title": "" }, { "docid": "4a41d9793afc4e93c518b703d0a37cbb", "score": "0.66291326", "text": "public function run();", "title": "" }, { "docid": "4a41d9793afc4e93c518b703d0a37cbb", "score": "0.66291326", "text": "public function run();", "title": "" }, { "docid": "4a41d9793afc4e93c518b703d0a37cbb", "score": "0.66291326", "text": "public function run();", "title": "" }, { "docid": "4a41d9793afc4e93c518b703d0a37cbb", "score": "0.66291326", "text": "public function run();", "title": "" }, { "docid": "4a41d9793afc4e93c518b703d0a37cbb", "score": "0.66291326", "text": "public function run();", "title": "" }, { "docid": "4a41d9793afc4e93c518b703d0a37cbb", "score": "0.66291326", "text": "public function run();", "title": "" }, { "docid": "4a41d9793afc4e93c518b703d0a37cbb", "score": "0.66291326", "text": "public function run();", "title": "" }, { "docid": "97366c9dcf73017823698a01acd21ff7", "score": "0.66092986", "text": "public function run()\n {\n \n }", "title": "" }, { "docid": "97366c9dcf73017823698a01acd21ff7", "score": "0.66092986", "text": "public function run()\n {\n \n }", "title": "" }, { "docid": "13faf68155778a0bd18382ada8d723ea", "score": "0.6607415", "text": "public function run () {\n\t\trequire_once $this->pluginFile;\n\t}", "title": "" }, { "docid": "b308be69bbe7c91438effe2b8619c07c", "score": "0.65951693", "text": "public abstract function Main();", "title": "" }, { "docid": "92e2aaa8e7df8661b3f7f2c65fa0ab3f", "score": "0.6591746", "text": "public function executeModule()\n {\n }", "title": "" }, { "docid": "75a83b49e50d4b8b6ad938ea7bb8c505", "score": "0.6584241", "text": "public static function main()\n {\n self::initConfig(); \n \n /* Configuracion de manejo de error y Locale */\n self::initEnvironmet();\n \n /* Inicializa Layout */\n self::initLayout();\n \n /* Base de Datos*/\n self::initDataBase();\n \n /*Lenjuaje*/\n self::initLanguaje();\n \n /* Front Controller y Dispatch */\n /*Agregar cualquier otra función antes de esta*/\n self::initFrontController();\n \n \n }", "title": "" } ]
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "903a12fb5cd2f2cc0097c7f46b19dfff", "score": "0.0", "text": "public function run()\n {\n $rooms = [\n [\n 'roomType' => 'standart',\n 'numberRoom' => '101',\n 'price' => '200000',\n 'code' => 'O'\n ],\n [\n 'roomType' => 'standart',\n 'numberRoom' => '102',\n 'price' => '200000',\n 'code' => 'VR'\n ],\n [\n 'roomType' => 'standart',\n 'numberRoom' => '103',\n 'price' => '200000',\n 'code' => 'VR'\n ],\n [\n 'roomType' => 'standart',\n 'numberRoom' => '104',\n 'price' => '200000',\n 'code' => 'O'\n ], \n [\n 'roomType' => 'standart',\n 'numberRoom' => '105',\n 'price' => '200000',\n 'code' => 'VR'\n ],\n //Superior\n [\n 'roomType' => 'superior',\n 'numberRoom' => '106',\n 'price' => '300000',\n 'code' => 'O'\n ],\n [\n 'roomType' => 'superior',\n 'numberRoom' => '107',\n 'price' => '300000',\n 'code' => 'O'\n ],\n [\n 'roomType' => 'superior',\n 'numberRoom' => '108',\n 'price' => '300000',\n 'code' => 'VD'\n ],\n [\n 'roomType' => 'superior',\n 'numberRoom' => '109',\n 'price' => '300000',\n 'code' => 'VR'\n ],\n [\n 'roomType' => 'superior',\n 'numberRoom' => '110',\n 'price' => '300000',\n 'code' => 'VR'\n ],\n //Deluxe\n [\n 'roomType' => 'deluxe',\n 'numberRoom' => '111',\n 'price' => '400000',\n 'code' => 'VR'\n ],\n [\n 'roomType' => 'deluxe',\n 'numberRoom' => '112',\n 'price' => '400000',\n 'code' => 'VR'\n ],\n [\n 'roomType' => 'deluxe',\n 'numberRoom' => '113',\n 'price' => '400000',\n 'code' => 'VR'\n ],\n [\n 'roomType' => 'deluxe',\n 'numberRoom' => '114',\n 'price' => '400000',\n 'code' => 'VR'\n ],\n [\n 'roomType' => 'deluxe',\n 'numberRoom' => '115',\n 'price' => '400000',\n 'code' => 'O'\n ],\n ];\n Room::insert($rooms);\n }", "title": "" } ]
[ { "docid": "f74cb2c339072d43cd3b96858a89c600", "score": "0.8111904", "text": "public function run()\n {\n $this->seeds();\n }", "title": "" }, { "docid": "33aedeaa083b959fa5f66e27a7da3265", "score": "0.8026835", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n \t//Genre\n \\DB::table('genres')->insert(\n \t['name' => 'Comedia seed', 'ranking' => 354784395, 'active' => 1]\n );\n\n \\DB::table('actors')->insert([\n \t['first_name' => 'Maxi', 'last_name' => 'Yañez', 'rating' => 5],\n \t['first_name' => 'Maxi', 'last_name' => 'Yañez', 'rating' => 5],\n \t['first_name' => 'Maxi', 'last_name' => 'Yañez', 'rating' => 5],\n \t['first_name' => 'Maxi', 'last_name' => 'Yañez', 'rating' => 5],\n \t['first_name' => 'Maxi', 'last_name' => 'Yañez', 'rating' => 5],\n \t['first_name' => 'Maxi', 'last_name' => 'Yañez', 'rating' => 5]\n ]);\n }", "title": "" }, { "docid": "8d9ddbc23166c0cafca145e7a525c10a", "score": "0.80028236", "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.79601616", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n \n DB::table('users')->insert([\n // [\n // 'name' => 'Alan',\n // 'email' => '[email protected]',\n // 'password' => '1234'\n // ],\n // [\n // 'name' => 'Alice',\n // 'email' => '[email protected]',\n // 'password' => '1234'\n // ],\n [\n 'name' => 'admin',\n 'email' => '[email protected]',\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": "424a278b0bd7df7af33c6c946314dcb5", "score": "0.7929265", "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": "2fca9bf0725abd081819588688399860", "score": "0.79257673", "text": "public function run()\n {\n $this->call(VideogameSeeder::class);\n $this->call(CategorySeeder::class);\n User::factory(15)->create();\n DB::table('users')->insert([\n 'name' => 'Santiago',\n 'email' => '[email protected]',\n 'password' => bcrypt('12345678'),\n 'address' => 'C/ Ultra',\n 'rol' => 'admin'\n ]);\n //Ratin::factory(50)->create();\n Purchase::factory(20)->create();\n //UserList::factory(1)->create();\n }", "title": "" }, { "docid": "29a4267326dbe1e561d79877123a4ef8", "score": "0.79253817", "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.78999156", "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": "c5b1891e5f39d3e2551b908d083d5516", "score": "0.78703004", "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.7866487", "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.78472835", "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": "1696cae69b4e0dea414a1cad524c579c", "score": "0.7840369", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(User::class, 10)->create();\n factory(Product::class, 20)->create();\n factory(Category::class, 8)->create();\n factory(Portfolio::class, 8)->create();\n factory(Article::class, 30)->create();\n }", "title": "" }, { "docid": "124d9b3ae818d6f7c553836f83b3f26d", "score": "0.78364843", "text": "public function run()\n {\n Schema::disableForeignKeyConstraints();\n\n // $this->call(UserSeeder::class);\n DB::table('teams')->truncate();\n DB::table('users')->truncate();\n DB::table('campaigns')->truncate();\n DB::table('memberships')->truncate();\n\n Schema::enableForeignKeyConstraints();\n\n // add users \n $usersfile = 'database/csvs/users.csv';\n $users = HelpersCsvHelper::csvToArray($usersfile);\n for ($i = 0; $i < count($users); $i++) {\n User::firstOrCreate($users[$i]);\n }\n\n // add teams\n $teamsfile = 'database/csvs/teams.csv';\n $teams = HelpersCsvHelper::csvToArray($teamsfile);\n for ($i = 0; $i < count($teams); $i++) {\n Teams::firstOrCreate($teams[$i]);\n }\n\n // add campaigns\n $Campaignsfile = 'database/csvs/campaigns.csv';\n $campaigns = HelpersCsvHelper::csvToArray($Campaignsfile);\n for ($i = 0; $i < count($campaigns); $i++) {\n Campaigns::firstOrCreate($campaigns[$i]);\n }\n\n // add memberships\n $Membershipsfile = 'database/csvs/memberships.csv';\n $memberships = HelpersCsvHelper::csvToArray($Membershipsfile);\n for ($i = 0; $i < count($memberships); $i++) {\n Memberships::firstOrCreate($memberships[$i]);\n }\n }", "title": "" }, { "docid": "7e308ea06065b02bb3be211e8748bf5f", "score": "0.7836018", "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": "9d2abe13b05f99177e4f0e0cdd336b85", "score": "0.78307205", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(Category::class, 10)->create();\n factory(Blog::class, 10)->create();\n }", "title": "" }, { "docid": "29381516f53bafb0bf8797720ed6de7b", "score": "0.7823482", "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.7822256", "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.78140545", "text": "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Sid',\n 'email' => '[email protected]',\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": "85cccae108d4de7f16063966a5657344", "score": "0.78107864", "text": "public function run()\n {\n\n $faker = \\Faker\\Factory::create();\n\n \\DB::table('news_categories')->delete();\n\n for ($i = 0; $i <= 10; $i++) {\n \\App\\Models\\NewsCategory::create([\n 'name' => $faker->text(40)\n ]);\n }\n\n \\DB::table('news')->delete();\n\n for ($i = 0; $i <= 40; $i++) {\n \\App\\Models\\News::create([\n 'title' => $faker->text(100),\n 'author_id' => 1,\n 'publish_date' => \\Carbon\\Carbon::now()->addDays(rand(1, 10)),\n 'content' => $faker->text(),\n 'source' => $faker->text(50),\n 'status' => rand(0, 1)\n ]);\n }\n }", "title": "" }, { "docid": "770b2d73679fa00839175bb0616cbdea", "score": "0.78101754", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(User::class,10)->create();\n factory(Product::class,100)->create();\n factory(Review::class,500)->create();\n }", "title": "" }, { "docid": "8ad50814f16b74d56ba096d0d57f2685", "score": "0.7809339", "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.7806317", "text": "public function run(): void\n {\n $this->seedUsers();\n $this->seedCategories();\n $this->seedMedia();\n $this->seedProducts();\n $this->seedOrders();\n }", "title": "" }, { "docid": "4f83d3fdd97b667f526563987d1e2e6b", "score": "0.7802293", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Student::truncate();\n\n $faker = \\Faker\\Factory::create();\n \n // And now let's generate a few students for our app:\n $students = App\\User::where('role', 'Student')->get();\n foreach ($students as $student) {\n \tStudent::create([\n 'address' => $faker->city, \n 'user_id' => $student->id,\n ]);\t\t \n\t\t}\n }", "title": "" }, { "docid": "36b206fe3f9e5582fff99bdd44c268e2", "score": "0.77950644", "text": "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Edson Chivambo',\n 'email' => '[email protected]',\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' => '[email protected]',\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.7794317", "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": "73bbd2eb8a462a3994465397aabc387c", "score": "0.77938086", "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": "c3d306bf3f72eced986330e8fcc2293f", "score": "0.7778244", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n $this->call(ProductsTableSeeder::class);\n $this->call(PostsTableSeeder::class);\n $this->call(PagesTableSeeder::class);\n\n $id = DB::table('seos')->insertGetId([\n 'link' => url('/'),\n 'priority' => 0,\n 'status' => 'publish',\n ]);\n foreach (['vi','en'] as $lang) {\n DB::table('seo_languages')->insert([\n 'title' => 'Trang chủ',\n 'slug' => 'trang-chu',\n 'language' => $lang,\n 'seo_id' => $id,\n ]);\n }\n }", "title": "" }, { "docid": "89ccfc64e34980c1c88e0ac32bd95ed7", "score": "0.77777725", "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": "bd7aa608e63a171552e3b4da3b24f5ac", "score": "0.7774277", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Product::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 Product::create([\n 'product_name' => \"Product-\".$i,\n 'description' => \"Product-\".$i.\" Good Product\",\n 'price' => 1000,\n 'offer' => 10,\n 'category_id' => 1,\n 'p_status' => 'A',\n ]);\n }\n }", "title": "" }, { "docid": "17ed7bd7f1c8118ed9c57701c65a3308", "score": "0.77738345", "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": "c0702e537f33df7826aad62896f41818", "score": "0.77729344", "text": "public function run()\n {\n\n \tif(env('DB_DRIVER')=='mysql')\n\t\t\tDB::statement('SET FOREIGN_KEY_CHECKS=0;');\t\n\n\t\t\tDB::table('pages')->truncate();\n\n $faker = Faker::create();\n \t$cours = Db::table('cours')->lists('id') ;\n\n \tforeach (range(1,25) as $key => $value ) {\n\n \t\tPage::create([\n \t\t'title'=>$faker->sentence(3),\n \t\t'body'=>$faker->paragraph(4),\n \t\t'cour_id'=>$faker->randomElement($cours) \n\t ]);\n \t}\n\n \tif(env('DB_DRIVER')=='mysql')\n\t\t\t\tDB::statement('SET FOREIGN_KEY_CHECKS=1;') ;\n }", "title": "" }, { "docid": "a00d7625c3ac246fb4c8d0c5f542c844", "score": "0.77721345", "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": "52b78ebee14aac0ddb50ea401a6a927b", "score": "0.7762173", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\Models\\admin::class, 50)->create();\n factory(App\\Models\\category::class, 20)->create();\n factory(App\\Models\\clinic::class, 20)->create();\n factory(App\\Models\\nurse::class, 50)->create();\n factory(App\\Models\\Patient::class, 200)->create();\n factory(App\\Models\\comment::class, 500)->create();\n factory(App\\Models\\material::class, 500)->create();\n factory(App\\Models\\prescription::class, 500)->create();\n factory(App\\Models\\receipt::class, 400)->create();\n factory(App\\Models\\reservation::class, 600)->create();\n factory(App\\Models\\worker::class, 200)->create();\n // factory(App\\Models\\image::class, 500)->create();\n }", "title": "" }, { "docid": "b373718e9c234dc4bb756553db264c76", "score": "0.776173", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call([\n RolesTableSeeder::class,\n UsersTableSeeder::class,\n PagesTableSeeder::class\n ]);\n\n \n \\Illuminate\\Support\\Facades\\DB::table('tbl_introductions')->insert([ \n 'fullname' => 'Ben Wilson',\n 'dob' => '26 September 1999',\n 'email' => '[email protected]',\n 'intro' => 'Hello, I am Ben.',\n 'image' => '1606288979.jpg', \n 'website' => 'www.company.co',\n 'created_at' => '2020-11-24 06:03:28' \n ]);\n }", "title": "" }, { "docid": "7610e7d2e2f861ae0a32e114a63a583f", "score": "0.7761726", "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": "6d6a917428726975dd96f2e4e353f871", "score": "0.77613866", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Personas::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 Personas::create([\n 'nombre' => $faker->sentence,\n 'nit' => $faker->paragraph,\n ]);\n }\n }", "title": "" }, { "docid": "0b05db86e70b2e211fbf0469301f7d9a", "score": "0.776103", "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.77603155", "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": "7b81b233cbf3938d421802fdd7f8d35b", "score": "0.7758676", "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": "e7527a5bc8529a2c2aad4c53046ea43d", "score": "0.77579546", "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": "8efc8b6977291a12f6f3aba05752eca3", "score": "0.7756517", "text": "public function run()\n {\n $this->runSeeder();\n }", "title": "" }, { "docid": "3d3644d7189413baa46373e1ac7cdc8f", "score": "0.775485", "text": "public function run()\n\t{\n\t\tDB::table('posts')->truncate();\n\n $faker = Faker\\Factory::create();\n\n\t\t$posts = [\n [\n 'title' => $faker->sentence(6),\n 'content' => $faker->paragraph(8),\n 'slug' => Str::slug('Hello World'),\n 'user_id' => User::first()->id,\n 'category_id' => Category::whereName('Php')->first()->id,\n 'created_at' => new DateTime,\n 'updated_at' => new DateTime\n ]\n ];\n\n\t\t// Uncomment the below to run the seeder\n\t\tfor ($i=0; $i < 10; $i++) {\n $tag = DB::table('tags')->orderBy('RAND()')->first();\n\n $post_title = $faker->sentence(6);\n\n $post = [\n 'title' => $post_title,\n 'content' => $faker->paragraph(8),\n 'slug' => Str::slug($post_title),\n 'user_id' => $faker->randomElement(User::all()->lists('id')),\n 'category_id' => $faker->randomElement(Category::all()->lists('id')),\n 'created_at' => $faker->dateTime,\n 'updated_at' => new DateTime\n ];\n\n $id = DB::table('posts')->insert($post);\n Post::find($id)->tags()->sync(Tag::all()->lists('id'));\n }\n\n // $this->command->info('Posts table seeded !');\n\t}", "title": "" }, { "docid": "ab9c424e435c82e381ba211c2fe79243", "score": "0.77525544", "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": "34546962185839c8810e561de7b0508a", "score": "0.77500695", "text": "public function run()\n {\n //$this->call(RestaurantTableSeeder::class);\n factory(App\\User::class,5)->create();\n factory(App\\Model\\Restaurant::class, 10)->create()->each(function ($restaurant) {\n $restaurant->contacts()->save(factory(App\\Model\\Contact::class)->make());\n });\n factory(App\\Model\\Menu::class,30)->create();\n factory(App\\Model\\Item::class,100)->create();\n factory(App\\Model\\Option::class,200)->create();\n factory(App\\Model\\MultiCheckOption::class, 500)->create();\n factory(App\\Model\\Customer::class, 100)->create();\n factory(App\\Model\\Order::class, 300)->create();\n }", "title": "" }, { "docid": "e92b39c751271622081fe6a63248f0d3", "score": "0.774468", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n \n Seo::create([\n 'url' => '/',\n 'title' => 'title default',\n 'keywords' => 'keywords default',\n 'description' => 'description default',\n ]);\n\n User::create([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'password' => Hash::make('1234567'),\n ]);\n }", "title": "" }, { "docid": "8da9a1776904f6cc6a5ccc3953a8e40f", "score": "0.7742935", "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": "e5d1626abf07334bad40def153b6ebf5", "score": "0.7742599", "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": "cac69861fb7a00c50daa5b54ee724177", "score": "0.77389246", "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'=> '[email protected]',\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": "9a3fc5f60166a9785c73750188e6596d", "score": "0.7736865", "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": "8de228115e4192b5098d2a339ff99bf2", "score": "0.7734889", "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' => '[email protected]',\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' => '[email protected]',\n 'password' => bcrypt('secret'),\n 'email_verified_at' => now(),\n 'bio' => 'Sed ut perspiciatis unde omnis iste natus',\n\n ],\n ]);\n }", "title": "" }, { "docid": "b6066308d0ac655bb5d5825a458ef8b1", "score": "0.77346605", "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": "e0d9bd8b4c025867e30c1a5579c4da9c", "score": "0.7733924", "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.7732213", "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": "77fb1d45e59d982eac35251a4446cfa5", "score": "0.77277416", "text": "public function run()\n {\n //Cmd: php artisan db:seed --class=\"recommendTableSeeder\"\n \n $faker = Faker\\Factory::create(\"ja_JP\");\n \n for( $i=0; $i<10; $i++ ){\n\n App\\Recommend::create([\n\t\t\t\t\t\"from_user\" => $faker->randomDigit(),\n\t\t\t\t\t\"to_man\" => $faker->randomDigit(),\n\t\t\t\t\t\"to_woman\" => $faker->randomDigit(),\n\t\t\t\t\t\"to_man_message\" => $faker->word(),\n\t\t\t\t\t\"to_woman_message\" => $faker->word(),\n\t\t\t\t\t\"man_qa_1\" => $faker->randomDigit(),\n\t\t\t\t\t\"man_qa_2\" => $faker->randomDigit(),\n\t\t\t\t\t\"man_qa_3\" => $faker->randomDigit(),\n\t\t\t\t\t\"woman_qa_1\" => $faker->randomDigit(),\n\t\t\t\t\t\"woman_qa_2\" => $faker->randomDigit(),\n\t\t\t\t\t\"woman_qa_3\" => $faker->randomDigit(),\n\t\t\t\t\t\"created_at\" => $faker->dateTime(\"now\"),\n\t\t\t\t\t\"updated_at\" => $faker->dateTime(\"now\")\n ]);\n }\n }", "title": "" }, { "docid": "fb7d5bba21289ca1ca2041a5e18bd077", "score": "0.7727342", "text": "public function run()\n {\n// factory(Category::class, 20)->create();\n// factory(Post::class, 50)->create();\n// factory(Tag::class, 10)->create();\n\n $this->call(UserTableSeed::class);\n $this->call(PostTableSeed::class);\n }", "title": "" }, { "docid": "95f6236854296207546d9b1517fa175a", "score": "0.77272403", "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": "f198ce46b8e947563c34aa166ca6fd70", "score": "0.7725253", "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": "1667303ce0032ddd973fad5eb00529bd", "score": "0.7724869", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('user_roles')->insert(['name' => 'System Admin', 'description' => 'Description',]);\n DB::table('user_roles')->insert(['name' => 'Owner', 'description' => 'System Owner',]);\n DB::table('user_roles')->insert(['name' => 'Admin', 'description' => 'Admin',]);\n DB::table('user_roles')->insert(['name' => 'Editor', 'description' => 'Editor',]);\n DB::table('user_roles')->insert(['name' => 'Viewer', 'description' => 'Viewer',]);\n }", "title": "" }, { "docid": "377c3a872d4a300cceb5049caf48d66a", "score": "0.772476", "text": "public function run()\n {\n $this->call([\n UsersTabeleSeeder::class,\n PostsTabeleSeeder::class,\n CategoriesTabeleSeeder::class,\n ]);\n\n //Get array of ids\n $postIds = DB::table('posts')->pluck('id')->all();\n $categoryIds = DB::table('categories')->pluck('id')->all();\n\n //Seed category_post table with max 40 entries\n foreach ((range(1, 70)) as $index) \n {\n DB::table('category_post')->updateOrInsert(\n [\n 'post_id' => $postIds[array_rand($postIds)],\n 'category_id' => $categoryIds[array_rand($categoryIds)]\n ]\n );\n }\n }", "title": "" }, { "docid": "e44b2f3d77d7329f6b2d733b04c6ab80", "score": "0.7718732", "text": "public function run()\n {\n // we can seed specific data directory\n /**\n Let's try \"Faker\" to prepopulate with lots of imaginery data very quickly!\n\n */\n\n $faker = Faker\\Factory::create();\n\n foreach(range(1, 25 ) as $index){\n \tDB::table( 'tweets')->insert(array(\n \t\t'user_id' => rand(1,25),\n \t\t'message' => $faker->catchphrase\n \t));\n }\n }", "title": "" }, { "docid": "064da3a1fd5b172768671dc5b6f1169d", "score": "0.7717132", "text": "public function run()\n {\n\n\n\n Storage::deleteDirectory('eventos');\n\n Storage::makeDirectory('eventos');\n\n $this->call(RoleSeeder::class);\n\n $this->call(UserSeeder::class);\n \n Categoria::factory(4)->create();\n \n $this->call(EventoSeeder::class);\n\n $this->call(AporteSeeder::class);\n\n $this->call(ObjetoSeeder::class);\n\n }", "title": "" }, { "docid": "f6e951e99c926a5aa070324982a80a85", "score": "0.7717055", "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.77151704", "text": "public function run()\n {\n //\n //factory(App\\User::class)->create();\n\n DB::table('users')->insert(\n [\n 'name' => 'Seyi', \n 'email' => '[email protected]',\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": "80b4dcada74bc12860abdaff1c2aa1bb", "score": "0.771227", "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": "af51801570c9648f237f5a51624f4182", "score": "0.7711002", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class,3)->create()->each(function($user){\n $user->question()->saveMany(factory(App\\Question::class,rand(1,5))->make())\n ->each(function($question){\n $question->answer()->saveMany(factory(App\\Answer::class,rand(1,5))->make());\n });\n });\n }", "title": "" }, { "docid": "7d3aed410918c722790ec5e822681b71", "score": "0.77088916", "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": "bd6458274ff09172851640f92c233c59", "score": "0.7707895", "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": "75f8fae397ad6cf1e3077c2a32e423ad", "score": "0.7706711", "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": "8b07e67f8045192de7c1b932e58f1d17", "score": "0.7705239", "text": "public function run()\n {\n /*$faker = Faker\\Factory::create();\n foreach(range(1,10) as $index){\n App\\Post::create([\n 'title'=> $faker->name,\n 'description'=> $faker->name,\n 'content'=> $faker->name\n ]);\n }*/\n\n Post::create([\n 'title'->title,\n 'description'->description,\n 'content'->content\n ]);\n }", "title": "" }, { "docid": "ddf328298d79f78f3d971cd04aba1d68", "score": "0.7704384", "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.770427", "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.7702241", "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' => '[email protected]',\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.7699753", "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": "2db117b1d28054b0f08a58115645189d", "score": "0.7699439", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n // ?for seeding categories\n // Category::factory(5)->create();\n //? for seeding posts \n Post::factory(3)->create([\n 'category_id' => 5\n ]);\n }", "title": "" }, { "docid": "44607c99534f6f67a920e806653b05d8", "score": "0.7697553", "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": "5e28bc59cffaacbd443ac1937265c50b", "score": "0.7697034", "text": "public function run()\n {\n $this->call(PostsTableSeeder::class);\n $this->call(SiswaSeeder::class);\n $this->call(MusicsTableSeeder::class);\n $this->call(FilmSeeder::class);\n // $this->call(UsersTableSeeder::class);\n factory(App\\Tabungan::class, 100)->create();\n factory(App\\Costumer::class, 1000)->create();\n }", "title": "" }, { "docid": "55df2400596f6d82130eb26db7635b8b", "score": "0.7696407", "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.7694787", "text": "public function run()\n {\n factory(App\\User::class,5)->create();\n\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => '[email protected]',\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.769433", "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": "14bcfcdf178e55585d48d15b958ccfc6", "score": "0.76925987", "text": "public function run()\n {\n $data = json_decode(file_get_contents(database_path('seeds/data/voyager.json')), true);\n foreach ($data as $table => $tableData) {\n $this->command->info(\"Seeding ${table}.\");\n \\Illuminate\\Support\\Facades\\DB::table($table)->delete();\n \\Illuminate\\Support\\Facades\\DB::table($table)->insert($tableData);\n }\n\n// $this->seed('DataTypesTableSeeder');\n// $this->seed('DataRowsTableSeeder');\n $this->seed('MenusTableSeeder');\n// $this->seed('MenuItemsTableSeeder');\n $this->seed('RolesTableSeeder');\n $this->seed('PermissionsTableSeeder');\n $this->seed('PermissionRoleTableSeeder');\n $this->seed('SettingsTableSeeder');\n }", "title": "" }, { "docid": "dbd59b913d32cfed4a7fd5cda3083940", "score": "0.7691413", "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": "7d5e2b097fa405f728e42815bc2fa95f", "score": "0.7690978", "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": "654191b89a3f7b4f8f809dd4ca1e2f6d", "score": "0.76893973", "text": "public function run()\n {\n /**\n * Create default user for admin, lecturer and student\n */\n User::create([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'password' => Hash::make('admin'),\n 'role' => 'admin'\n ]);\n\n User::create([\n 'name' => 'Sample Lecturer',\n 'email' => '[email protected]',\n 'password' => Hash::make('lecturer'),\n 'role' => 'admin'\n ]);\n\n User::create([\n 'name' => 'Student',\n 'email' => '[email protected]',\n 'password' => Hash::make('student'),\n 'role' => 'student'\n ]);\n\n /**\n * Create random 300 users with faker and role/password equal \"student\"\n */\n factory(App\\User::class, 300)->create();\n\n // run with php artisan migrate --seed\n }", "title": "" }, { "docid": "82fbb499231e85aef13b133c2fd7bebb", "score": "0.76891243", "text": "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Tomas Landa',\n 'email' => '[email protected]',\n 'password' => Hash::make('123456789'),\n ]);\n\n\n $this->call(AuthorSeeder::class);\n $this->call(BookSeeder::class);\n\n\n }", "title": "" }, { "docid": "acbc8ce8381dd5242a3f70eb7db2f7b0", "score": "0.76878417", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(User::class)->create([\n 'name' => 'mohamed magdy',\n 'email' => '[email protected]'\n ]);\n factory(User::class)->create([\n 'name' => 'ahmed magdy',\n 'email' => '[email protected]'\n ]);\n factory(User::class)->create([\n 'name' => 'abdelhameed',\n 'email' => '[email protected]'\n ]);\n }", "title": "" }, { "docid": "1bfaef844c455e578ca42264d7b5fd55", "score": "0.76834905", "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": "b9641bc88f5f5c670d56d18a040a9927", "score": "0.7675387", "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' => '[email protected]',\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.7672674", "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": "3114ddd54d20a2718dff9452d5974cde", "score": "0.7667532", "text": "public function run()\n {\n $faker = Faker::create();\n foreach (range(1, 20) as $index) {\n \\DB::table('employees')->insert([\n 'name' => $faker->name,\n 'age' => rand(22, 40),\n 'email' => $faker->email,\n 'gender' => $faker->randomElement(array('male', 'female')),\n 'country' => $faker->country\n ]);\n }\n }", "title": "" }, { "docid": "032e6df09c32ce0c18c6e5a3dcfd03cd", "score": "0.7667375", "text": "public function run()\n {\n\t DB::table('roles')->insert([\n\t\t 'name' => 'admin'\n\t ]);\n\n\t DB::table('users')->insert([\n\t\t 'name' => 'David Trushkov',\n\t\t 'email' => '[email protected]',\n\t\t 'password' => bcrypt('d16331633'),\n\t\t 'remember_token' => str_random(10),\n\t\t 'verified' => 1,\n\t\t 'token' => '',\n\t\t 'avatar' => '',\n\t\t 'created_at' => \\Carbon\\Carbon::now()->format('Y-m-d H:i:s'),\n\t\t 'updated_at' => \\Carbon\\Carbon::now()->format('Y-m-d H:i:s'),\n\t ]);\n\n\t DB::table('user_role')->insert([\n\t\t 'user_id' => 1,\n\t\t 'role_id' => 1\n\t ]);\n\n\t $this->call(UserTableSeeder::class);\n\t $this->call(FilesTableSeeder::class);\n\t $this->call(FileUploadsTableSeeder::class);\n\t $this->call(SalesTableSeeder::class);\n\t $this->call(FileCategoryTableSeeder::class);\n }", "title": "" }, { "docid": "fec3323e6f3a81f6348e08d8097828b8", "score": "0.76656306", "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": "fd3e02773eac9af1278393c90e1ec5e3", "score": "0.76653755", "text": "public function run()\n {\n User::truncate();\n\n User::create([\n 'name' => 'admin',\n 'password' => bcrypt('secret'),\n 'role' => 'admin',\n ]);\n\n User::create([\n 'name' => 'operator',\n 'password' => bcrypt('secret'),\n 'role' => 'operator',\n ]);\n\n User::create([\n 'name' => 'employee',\n 'password' => bcrypt('secret'),\n 'role' => 'employee',\n ]);\n\n $faker = Factory::create('id_ID');\n\n for ($i = 0; $i < 12; $i++) {\n User::create([\n 'name' => $faker->name,\n 'password' => bcrypt('secret'),\n 'role' => 'employee',\n ]);\n }\n\n }", "title": "" }, { "docid": "2344b2d3d5ee3f98e7bbbe7784cad8c9", "score": "0.76640165", "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.7663026", "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": "acc4a55ca590e54c9d9cae8f6b80d13b", "score": "0.76628137", "text": "public function run()\n {\n User::factory(100)->create();\n $this->call([\n UserSeeder::class,\n ]);\n Article::factory()->count(100)->create();\n Rate::factory()->count(1000)->create();\n\n }", "title": "" }, { "docid": "0de657d649c6926b71b8f5e0b4af5374", "score": "0.76617616", "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', '[email protected]'),\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.7660996", "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": "317d47304eb6df80c5511ceb3b9b995f", "score": "0.7660423", "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": "9bf3fa05d4ae071adbab0386bc123da6", "score": "0.76603353", "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": "4928806405a07b1df0cb55aaf31cc6fd", "score": "0.76601285", "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": "238c2f72ceeb9562de5b8c8c51d03b78", "score": "0.76568884", "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": "" } ]
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "56a8031e8098fd89f9518884d687b31f", "score": "0.0", "text": "public function update(Request $request, $id)\n {\n dd($id);\n }", "title": "" } ]
[ { "docid": "b8af9491d409a852eeea996523d9e2fa", "score": "0.7263546", "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.71472794", "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.70568657", "text": "public function update(Request $request, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "718f7d64347dbb970d3af2645ff41b28", "score": "0.6624357", "text": "public function update(Request $request, Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "c4d757ef327886959b7e0e652b0d54f4", "score": "0.64684814", "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.6312377", "text": "public function update($resourceType, $resourceId, array $payload, $parameters = []);", "title": "" }, { "docid": "47e4c5326e79281be1ce31ec068dab77", "score": "0.6185868", "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.61572796", "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.6151208", "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.61277455", "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.6050411", "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.59761757", "text": "public function updateStream($path, $resource, Config $config)\n {\n\n }", "title": "" }, { "docid": "eaee54943a52f02e9d836bade5ff0c75", "score": "0.5938792", "text": "public function updateStream($path, $resource, Config $config)\n {\n }", "title": "" }, { "docid": "8b73dba39ae08dde13c502b11f4a48f0", "score": "0.5902479", "text": "public function update(Request $request, StorageRental $storageRental)\n {\n //\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5893703", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5893703", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "1b95c33d6856dbe3d6806b3117503341", "score": "0.5888205", "text": "public function updateEntry (Liquid_Storage_Entry $entry);", "title": "" }, { "docid": "241abe88cb12c84c9ac5ad453b88fdde", "score": "0.5881232", "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.58616316", "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.5822163", "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.5776024", "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.5764831", "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.5750728", "text": "public function update($entity);", "title": "" }, { "docid": "eaf18f66946228a152f8b83c6b49e31e", "score": "0.5745638", "text": "public function update($id, $data) {}", "title": "" }, { "docid": "7fa7323735ca22c15cfa4866e023dcb7", "score": "0.5736541", "text": "public function setResource($resource);", "title": "" }, { "docid": "4bbafe0c3491a2c2b0b9d5b2f03867a1", "score": "0.5730067", "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.5723664", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "title": "" }, { "docid": "af1ecfb517bec3e1060c710281cb6693", "score": "0.5718313", "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.57131124", "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.5700182", "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.56937563", "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.569013", "text": "public function update($object);", "title": "" }, { "docid": "709be3333b89873d9e90b19464c68b23", "score": "0.5677768", "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.5672888", "text": "public function update($data);", "title": "" }, { "docid": "127397632ca2d2e221079c5f52aca86b", "score": "0.56725603", "text": "public function update(RestRequestInterface $request, $identifier);", "title": "" }, { "docid": "8d0a97cdf24a3e49996a055c1d6f9ee9", "score": "0.5672439", "text": "public function put($data);", "title": "" }, { "docid": "aa791f30f13ec2f303130ddbd0ce5da7", "score": "0.5669244", "text": "public function update ($object);", "title": "" }, { "docid": "3003ecf965cfc6406e1202af1d9d00b1", "score": "0.5649567", "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.5640362", "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.56383544", "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.56358534", "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.5618045", "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.56178015", "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.56114525", "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.56031585", "text": "abstract function update($identifier);", "title": "" }, { "docid": "7b0c8cb2764c13fdb98933dbc69be738", "score": "0.559743", "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.55670804", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.5558505", "text": "public function update($id, $data);", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.5558505", "text": "public function update($id, $data);", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.5558505", "text": "public function update($id, $data);", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.5558505", "text": "public function update($id, $data);", "title": "" }, { "docid": "9c815957f561d5473f845dd4d5b8d599", "score": "0.554939", "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": "359d84c7d511ae4b3f898ca4163e1aaf", "score": "0.5549337", "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": "d9b6fe99056043df5723394c78be7f97", "score": "0.55425566", "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.55419946", "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.5534602", "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.5534277", "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.5530802", "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.55282515", "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.55129975", "text": "public function update( $object );", "title": "" }, { "docid": "89c360360421e2cdcc1017ccb99a7828", "score": "0.55108523", "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.5510492", "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.55057144", "text": "public function update(Request $request, Asset $asset)\n {\n }", "title": "" }, { "docid": "0a5b062a5dceb2e06835dd93b36cb7c2", "score": "0.5500867", "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": "08757cc2c81b23ca63469f255efa2060", "score": "0.5499646", "text": "protected function update() {\n $this->client->sendRequest('POST', $this->name . ($this->key ? : (string) $this->id), $this->prepareRequestData());\n }", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54942036", "text": "public function update($id);", "title": "" }, { "docid": "87241a0a9cce48b64ec4be8df8b5485b", "score": "0.54937035", "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": "cd61f7dfb166b27b13e2e27a951d1df3", "score": "0.5492776", "text": "public function updateObject($objectPath,$content);", "title": "" }, { "docid": "4c918686af4f25ca69e952e282b47c7c", "score": "0.54920673", "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.54851574", "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": "3ccd617169cd697bcf05ee458b57ebd6", "score": "0.54723567", "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": "81ffa33c6a97b616b60b1d4825f6ed56", "score": "0.54720134", "text": "abstract public function update($object);", "title": "" }, { "docid": "4febf037679dde1b9296a47a3c708516", "score": "0.54615617", "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.54593253", "text": "public function update($object)\n {\n }", "title": "" }, { "docid": "53acca1ee81047a19045a47e38ed715c", "score": "0.5454752", "text": "public function setResource($resource){\n $this->resource = $resource;\n }", "title": "" }, { "docid": "0c9339d032215169c3edaade53ef1825", "score": "0.5453805", "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": "2744fd02d7abb711d53573d70c4d3888", "score": "0.54522157", "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.5448994", "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.54464", "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.5445301", "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.5444305", "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.5438359", "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.543478", "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.54340094", "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": "8286c17eacfe236df6038d5372070538", "score": "0.5431227", "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": "a96003ebfe5bb93afff05477cd90b813", "score": "0.54302055", "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": "fa0ae59c9ed5781e236a66291f8f7f6f", "score": "0.54290587", "text": "public function update(StoreProductRequest $request, $id)\n {\n \n }", "title": "" }, { "docid": "e9317165d16f63837cf4020ead9f5bc5", "score": "0.5424577", "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.5422769", "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.5421297", "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.5417001", "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.54169786", "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": "7ad1378cea665d5004a8344ebd4b6866", "score": "0.54152125", "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": "dae8a6503505f86c42e3ac3dd124b03f", "score": "0.54148185", "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": "ee6e8f1b9c68eb99ac3960c72ccc4b79", "score": "0.5413027", "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.54118043", "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.5410052", "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.5409807", "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.54081905", "text": "abstract public function updateAction($id, Request $request);", "title": "" }, { "docid": "21e1460ae7fcbf94fd77a17a41f5c7af", "score": "0.5405428", "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": "26f85e8c2aab58a4938979b0f74012f6", "score": "0.5402884", "text": "public function update(PostStoreRequest $request, $id)\n {\n $post= Post::find($id);\n $post->fill($request->all())->save();\n\n //Image\n if($request->file('file')){\n $path= Storage::disk('public')->put('image',$request->file('file'));\n\n $post->fill(['file'=>asset($path)])->save();//asse... crea la ruta completa donde se guarda laimage\n }\n //tags\n\n $post->tags()->sync($request->get('tags'));//syc: sincroniza la relacion que hay entre post y etiquetas //evalua para saber si la relacion esta \n\n return redirect()->route('posts.edit',$post->id)//redireciona y envia el id de la etiqueta que recien se creo\n ->with('info','Entrada actualizada con éxito');\n }", "title": "" } ]
d359fc205138f29531137ff077999faa
Returns component specified by name. Throws exception if component doesn't exist.
[ { "docid": "fb310f93bda9a01ee8e9f1d7bcd2e146", "score": "0.67678094", "text": "public function offsetGet($name)\n\t{\n\t\treturn $this->getComponent($name);\n\t}", "title": "" } ]
[ { "docid": "5fef4ab803f0a206398c4e2a635e7f11", "score": "0.8406696", "text": "public function getComponent($name) {\n\n $component = null;\n\n foreach ($this->getComponents() as $_component) {\n\n if ($_component->getName() == $name) {\n\n $component = $_component;\n break;\n }\n }\n\n return $component;\n }", "title": "" }, { "docid": "b10406340bd5af6e0d98c20939312cc6", "score": "0.8051254", "text": "public function component(string $name) {\n return $this->components[$name];\n }", "title": "" }, { "docid": "73a6386bbae8350bd5ebb2ceaaeb90a3", "score": "0.77976596", "text": "public function findComponent($name)\n {\n if (!$this->hasComponent($name)) {\n return null;\n }\n\n return $this->components[$name];\n }", "title": "" }, { "docid": "53948c6ab660ec9d94afe9476c58b8f8", "score": "0.7616369", "text": "public function getComponent(string $name)\n {\n if (isset($this->component[$name]) && ($this->component[$name] instanceof ComponentInterface)) {\n return $this->component[$name];\n }\n return null;\n }", "title": "" }, { "docid": "e7b0d127476c3d765621729db83d09fa", "score": "0.68520564", "text": "public function __get($name)\n {\n if ($this->hasComponent($name)) {\n return $this->getComponent($name);\n } else {\n return $this->__getInternal($name);\n }\n }", "title": "" }, { "docid": "ece83c2ec767dd9f06a74add3042b353", "score": "0.68283343", "text": "public function __get($name) {\n return $this->component($name);\n }", "title": "" }, { "docid": "4f280f1c8a190d16d17315942da3f74a", "score": "0.6815995", "text": "public function get($componentName)\n {\n if (!array_key_exists($componentName, $this->components)) {\n $this->loadComponent($componentName);\n }\n return $this->components[$componentName];\n }", "title": "" }, { "docid": "cf3b3b9233746b6d2b11f54115ad3fd9", "score": "0.6647447", "text": "public function getComponent (string $key) : AbstractComponent\n\t{\n\t\ttry\n\t\t{\n\t\t\t$component = $this->components->get($key);\n\t\t\t\\assert($component instanceof AbstractComponent);\n\n\t\t\treturn $component;\n\t\t}\n\t\tcatch (ServiceNotFoundException $exception)\n\t\t{\n\t\t\tthrow new UnknownComponentKeyException(\\sprintf(\n\t\t\t\t\"Unknown component type: %s\",\n\t\t\t\t$key,\n\t\t\t), previous: $exception);\n\t\t}\n\t}", "title": "" }, { "docid": "94f72579a250432a20b4f95573467982", "score": "0.6513577", "text": "public function create($name) {\n\t\t// find components\n\t\tif($path = $this->find($name)) {\n\t\t\t// create component\n\t\t\treturn new Component($path);\n\t\t}\n\t\t// not exist\n\t\treturn false;\n\t}", "title": "" }, { "docid": "e893c6c82aac37039021968e7c552c15", "score": "0.6479369", "text": "public function get( $component )\n\t{\n\t\tif( isset( $this->_loaded[$component] ) )\n\t\t{\n\t\t\treturn $this->_loaded[$component];\n\t\t}\n\n\t\tif( !isset( $this->_views[$component] ) )\n\t\t{\n\t\t\tthrow new \\Exception( 'Components \"'.$component.'\" not found ' , 1);\n\t\t}\n\n\t\t$component = $this->_views[$component];\n\n\t\t$this->_loaded[$component] = new $component;\n\n\t\treturn $this->_loaded[$component] ;\n\t}", "title": "" }, { "docid": "b104050e839042bb6097320172e54a95", "score": "0.6469755", "text": "public function getComponentById($id)\n {\n // Initiate components\n if (!is_array($this->components))\n $this->getComponents();\n\n // Try to get component by id\n return $this->app->getComponentById($id);\n }", "title": "" }, { "docid": "2b15c81059e96e84b7e64e601b506ceb", "score": "0.64502", "text": "public function get(string $component): string\n {\n if (! $this->has($component)) {\n throw new UnknownComponentException($component);\n }\n\n return $this->components->get($component);\n }", "title": "" }, { "docid": "6d1ab4a628fa7cbd152041f3f1aa4f19", "score": "0.63814026", "text": "function component( $key ): ?object\n{\n $locator = plugin()->getServiceLocator();\n $component = $locator->get( $key );\n\n return $component;\n}", "title": "" }, { "docid": "86fd5bf0da7ff0a37ba752f0bb4e5fd8", "score": "0.6355442", "text": "public function getComponent(string $type): IComponent;", "title": "" }, { "docid": "fe9cb6ab5d6481715ee22aa8d0da1f61", "score": "0.6298236", "text": "public static function get_component_id_by_name( $name ) {\n\t\tglobal $wpdb;\n\n\t\t$name = addslashes( $name );\n\t\treturn $wpdb->get_var(\n\t\t\t\"SELECT `ID` FROM `$wpdb->posts` \n\t\t\t WHERE \n\t\t\t `post_title`='$name' \n\t\t AND `post_type`='component'\n\t\t AND `post_status`='publish'\n\t \"\n\t\t);\n\t}", "title": "" }, { "docid": "dc439f95e479672d29941875e0eae7cc", "score": "0.62550074", "text": "public function getComponent(string $nomeComponent): EnderecoComponent\n {\n foreach ($this->components as $comp) {\n if (strpos($comp->__toString(), $nomeComponent) !== false) {\n return $comp;\n }\n }\n\n throw new \\Exception(\"Component não encontrado\");\n }", "title": "" }, { "docid": "b7050aca389dc15920d9f463db9cd7b1", "score": "0.62433", "text": "function component($name, $fallback = null)\n {\n if ($name instanceof \\Fjord\\Vue\\Component) {\n return $name;\n }\n\n if (Vue::has($name) || is_null($fallback)) {\n return Vue::make($name);\n }\n\n return new $fallback($name);\n }", "title": "" }, { "docid": "4cf7d0ab9c795b550b37ed028cb41d1e", "score": "0.623269", "text": "public function getComponent(string $category, string $id): ComponentInterface;", "title": "" }, { "docid": "a916df3fa617a13250ad21ff60281efc", "score": "0.6193031", "text": "public static function get_component_by_path( $path ) {\n preg_match('/components\\/(.*)\\//Ui', $path, $matches);\n return $matches[1];\n }", "title": "" }, { "docid": "2a01e01135da51dd2249b539359d3bf4", "score": "0.61046785", "text": "public function getComponent();", "title": "" }, { "docid": "c0d945eb21556de2728633083774f196", "score": "0.608934", "text": "public function __get(string $name): ?object\n\t{\n\t\t// Get components only, not classes, singletons etc...\n\t\tif (!array_key_exists($name, c('main.container.components'))) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (!$this->container->has($name)) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn $this->container->get($name);\n\t}", "title": "" }, { "docid": "b98f4e776cda2331ae40e7010f7e6a03", "score": "0.60860646", "text": "public function makeComponent($name, $page = null, $params = [])\n {\n $className = $this->resolve($name);\n if (!$className)\n throw new SystemException(sprintf(\n 'Component \"%s\" is not registered.', $name\n ));\n\n if (!class_exists($className))\n throw new SystemException(sprintf(\n 'Component class \"%s\" not found.', $className\n ));\n\n // Create and register the new controller.\n $component = new $className($page, $params);\n $component->name = $name;\n\n return $component;\n }", "title": "" }, { "docid": "a1ae0c07c75f9c24a19d1e2ad708c826", "score": "0.6043814", "text": "public function getComponent ( $slug ) {\n\n\t\tif ( !$slug ) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif ( isset( $this->components[ $slug ] ) ) {\n\t\t\treturn $this->components[ $slug ];\n\t\t}\n\n\t\tif ( isset( $this->componentsByKey[ $slug ] ) ) {\n\t\t\treturn $this->componentsByKey[ $slug ];\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d2589e9ede6c061ed2bcddcad94aa5ad", "score": "0.59652674", "text": "public function getComponent()\n\t{\n\t\treturn $this->component;\n\t}", "title": "" }, { "docid": "e55a1c9a63afc19555441293bd3f25fc", "score": "0.5947258", "text": "protected function checkComponentAutoload($componentName) {\n if (!isset($this->_definitions[$componentName]) || isset($this->_components[$componentName])) {\n return null;\n }\n $className = Container::getDefaultContainer()->resolveClassName($this->_definitions[$componentName]);\n if (null !== $className && ReflectionHelper::isImplements($className, 'Reaction\\Base\\ComponentAutoloadInterface')) {\n $component = $this->get($componentName);\n return $component;\n }\n return null;\n }", "title": "" }, { "docid": "bd061a1ee53091bef1a049d7aaea1f07", "score": "0.59236526", "text": "protected function createComponent($name) {\r\n\t\t$ucname = ucfirst($name);\r\n\t\t$method = 'create' . $ucname;\r\n\t\tif ($ucname !== $name && method_exists($this, $method) && (new \\ReflectionMethod($this, $method))->getName() === $method) {\r\n\t\t\t$component = $this->$method($name);\r\n\t\t\tif (!$component instanceof Forms\\Form && !isset($this->components[$name])) {\r\n\t\t\t\t$class = get_class($this);\r\n\t\t\t\tthrow new UnexpectedValueException(\"Method $class::$method() did not return or create Nette\\\\Forms\\\\Form.\");\r\n\t\t\t}\r\n\t\t\t$this->applyCallbacksToButtons($component);\r\n\r\n\t\t\treturn $component;\r\n\t\t}\r\n\r\n\t\treturn NULL;\r\n\t}", "title": "" }, { "docid": "7e0b219a0373b7364312c63468bf029f", "score": "0.58966887", "text": "public function get($component)\n {\n if (!$this->has($component)) {\n return false;\n }\n\n return $this->components[$component];\n }", "title": "" }, { "docid": "56ee9f026212c2dbc0b54dbeee77d809", "score": "0.5887145", "text": "public function getComponent($id, $createIfNull = true)\n {\n if ($this->hasComponent($id)) {\n return $this->getLocator()->get($id);\n } elseif (isset($this->_componentConfig[$id]) && $createIfNull) {\n $config = $this->_componentConfig[$id];\n if (!isset($config['enabled']) || $config['enabled']) {\n Mindy::app()->logger->debug(\"Loading \\\"$id\\\" application component\", [], 'system.CModule');\n unset($config['enabled']);\n $component = Creator::createObject($config);\n $this->getLocator()->set($id, $component);\n return $component;\n }\n }\n }", "title": "" }, { "docid": "9d98923e72c2de1e539f28254bc981d9", "score": "0.58571523", "text": "public function getComponent($schema_name, $developer_mode = null)\n {\n $schema_filename = $schema_name.'.json';\n $schema_path = 'file://'.$this->getSchemaDir().'/'.$schema_filename;\n $schema_text = $this->getJson($schema_filename);\n if (empty($schema_text)) {\n throw new \\PHPUnit_Framework_Exception('Schema '.$schema_name.' cannot be loaded');\n }\n\n $schema = json_decode($schema_text);\n if (empty($schema)) {\n throw new \\PHPUnit_Framework_Exception('Schema '.$schema_name.' cannot be decoded');\n }\n\n $configuration = $this->getConfig($developer_mode);\n\n return new \\PatternBuilder\\Property\\Component\\Component($schema, $configuration, $schema_name, $schema_path);\n }", "title": "" }, { "docid": "3f3a2d548c1a3ac1155d6cf107febd9e", "score": "0.5855977", "text": "public function get($name, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE)\n {\n $fallbackName = $this->getFormattedId($name);\n $name = $this->getNormalizedId($name);\n\n if (isset($this->services[$name])) {\n return $this->services[$name];\n }\n\n return $this->doLoad($name, $fallbackName, $invalidBehavior);\n }", "title": "" }, { "docid": "0fe306320e35bb352e1f03719385b489", "score": "0.5853133", "text": "public function getActiveComponent(): ?string;", "title": "" }, { "docid": "9a8b36e75e9cce60cbedaafa3a7617b3", "score": "0.58474565", "text": "public function createComponent($name)\n {\n $nsClassName = 'Bubo\\\\Media\\\\Components\\\\' . ucfirst($name);\n if (class_exists($nsClassName)) {\n return new $nsClassName($this, $name);\n }\n return parent::createComponent($name);\n }", "title": "" }, { "docid": "31fddceb0bf7dddb63ea27de31828663", "score": "0.58467114", "text": "protected function fetchAndSetComponent(string $componentName)\n {\n // Get the formatted component name from the URL parameter\n $componentName = static::covertUrlParameterToComponentNameHelper($componentName);\n\n // Get the component in order to get the component's Doctrine entity class\n /** @var Component $component */\n $component = $this->componentRepository->findOneByComponentName($componentName);\n if (empty($component)) {\n throw new ComponentNotFoundException(\"The given component name is not valid\");\n }\n\n $this->setComponent($component);\n }", "title": "" }, { "docid": "1de41e6e2c8be2e9486b6f8bc0f25123", "score": "0.5843153", "text": "public function getServiceInstance($name) {\n if ($this->hasService($name)) {\n $service = $this->getService($name);\n return $service->resolve(array($this));\n } else {\n throw new \\Exception(sprintf(_(\"Service %s doesn't found!\"), $name), 404);\n }\n }", "title": "" }, { "docid": "2d08bdda3b13a905735beca41bcbbe7c", "score": "0.582883", "text": "public function getMeta($name)\n {\n if (!$this->hasComponent($name)) {\n return null;\n }\n\n if (isset($this->components[$name])) {\n return $this->components[$name];\n }\n\n return null;\n }", "title": "" }, { "docid": "9bb2f5f382b63648e1236ea652601eed", "score": "0.57928944", "text": "public function get($name)\n {\n $classname = $this->studlyClass($name);\n\n if(class_exists($classname) && $this->parts->has($classname)) {\n return $this->parts->get($classname);\n }\n\n throw new \\Exception(\"No such text element exists in text renderer pipeline payload: {$name} (resolved as '{$classname}')\");\n }", "title": "" }, { "docid": "6783e33eed24e72912893dafe0ef22a0", "score": "0.57853776", "text": "public function get_component()\n {\n return $this->get_table()->get_component();\n }", "title": "" }, { "docid": "aad67b73eb3a2d813636ed370bca46a8", "score": "0.5718108", "text": "public function get($name)\n {\n return $this->container->get($name);\n }", "title": "" }, { "docid": "a170b7061098e54d0a03db7283304ae0", "score": "0.5686488", "text": "public function __get($name)\n {\n // Execute the query and get the result\n $result = $this->query('#'.$name);\n\n // If we had no matches\n if ($result->count() < 1) {\n // Throw an exception\n throw new Kohana_UI_Exception('Could not find a child object '.\n 'with an id value of \":id\".', array(':id' => $name));\n }\n\n // Return a reference to the first matching child object\n return $result->shift();\n }", "title": "" }, { "docid": "59a6acc3e4360a44e1cf7426eb266176", "score": "0.5683055", "text": "public function getHelper($name)\n {\n if (isset($this->helpers[$name])) {\n return $this->helpers[$name];\n }\n\n // Helper not found\n throw new UnknownHelperException($name);\n }", "title": "" }, { "docid": "bf489e7ceac2c6ce70ff4d0dfc7bff47", "score": "0.5678464", "text": "public function getComponent($id,$createIfNull=true)\r\n\t{\r\n\t\tif(isset($this->_components[$id]))\r\n\t\t\treturn $this->_components[$id];\r\n\t\telseif(isset($this->_componentConfig[$id]) && $createIfNull)\r\n\t\t{\r\n\t\t\t$config=$this->_componentConfig[$id];\r\n\t\t\tif(!isset($config['enabled']) || $config['enabled'])\r\n\t\t\t{\r\n\t\t\t\tunset($config['enabled']);\r\n\t\t\t\t$component = Payla::createComponent($config);\r\n\t\t\t\t$component->init();\r\n\t\t\t\treturn $this->_components[$id]=$component;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "00f98bdc295b37a381153676392762ea", "score": "0.5670998", "text": "public function getCurrentComponent() {\n return $this->getCurrentSection()->getComponent($this->uuid);\n }", "title": "" }, { "docid": "efe61d21551339715e304237804e22e8", "score": "0.5666355", "text": "public function getComponentById($id = \"\") {\n\t\ttry {\n\t\t\treturn $this->getConfigInstance()->getNodeById($id);\n\t\t}\n\t\tcatch (Exception $e) {\n\t\t\tthrow $e;\n\t\t}\n\t}", "title": "" }, { "docid": "c9078a4f23474f5a416d50f918588b09", "score": "0.5666353", "text": "public function getComponentStrategy(string $component): string\n {\n foreach ($this->componentsStrategies as $strategy => $componentsStrategy) {\n if (\\in_array($component, $componentsStrategy, true)) {\n return $strategy;\n }\n }\n\n throw new \\InvalidArgumentException(\\sprintf('Unknown component name \"%s\".', $component));\n }", "title": "" }, { "docid": "0485b9cfa98c57c845e7a2afc92a9c87", "score": "0.56582016", "text": "public function get($name) {\n if (!isset($_GET[$name])) {\n throw new CException(\"GET.$name\");\n }\n return $_GET[$name];\n }", "title": "" }, { "docid": "9e0eb95633f3e5c1b1a21bf669f562f3", "score": "0.5644131", "text": "public function getComponent($component)\n {\n return \"$this->root/$this->views/\" . COMPONENT_DIR . \"/$component.php\";\n }", "title": "" }, { "docid": "ecfe111e84388fefe01e295173665e11", "score": "0.5640784", "text": "public static function get($name) {}", "title": "" }, { "docid": "538d8e1762484354501230006cb2374c", "score": "0.5638379", "text": "public function componentClass(string $component)\n {\n $viewFactory = Container::getInstance()->make(Factory::class);\n\n if (isset($this->aliases[$component])) {\n if (class_exists($alias = $this->aliases[$component])) {\n return $alias;\n }\n\n if ($viewFactory->exists($alias)) {\n return $alias;\n }\n\n throw new InvalidArgumentException(\"Unable to locate class or view [{$alias}] for component [{$component}].\");\n }\n\n if ($class = $this->findClassByComponent($component)) {\n return $class;\n }\n\n if (class_exists($class = $this->guessClassName($component))) {\n return $class;\n }\n\n $guess = collect($this->blade->getAnonymousComponentNamespaces())\n ->filter(function ($directory, $prefix) use ($component) {\n return Str::startsWith($component, $prefix . '::');\n })\n // This is the only line that differs from the overidden method (to add the leading underscore)\n ->prepend('_components', $component)\n ->reduce(function ($carry, $directory, $prefix) use ($component, $viewFactory) {\n if (! is_null($carry)) {\n return $carry;\n }\n\n $componentName = Str::after($component, $prefix . '::');\n\n if ($viewFactory->exists($view = $this->guessViewName($componentName, $directory))) {\n return $view;\n }\n\n if ($viewFactory->exists($view = $this->guessViewName($componentName, $directory) . '.index')) {\n return $view;\n }\n });\n\n if (! is_null($guess)) {\n return $guess;\n }\n\n throw new InvalidArgumentException(\"Unable to locate a class or view for component [{$component}].\");\n }", "title": "" }, { "docid": "5c27ff84b4b0d84277d8f8e7c7d5ef95", "score": "0.56305885", "text": "public function getByName($name);", "title": "" }, { "docid": "5c27ff84b4b0d84277d8f8e7c7d5ef95", "score": "0.56305885", "text": "public function getByName($name);", "title": "" }, { "docid": "5c27ff84b4b0d84277d8f8e7c7d5ef95", "score": "0.56305885", "text": "public function getByName($name);", "title": "" }, { "docid": "f6ad8ea951c31e38cda5fd0007d7609f", "score": "0.56141406", "text": "public function getComponent()\n {\n }", "title": "" }, { "docid": "0dcfe550eaf356a7586b15cf3be66913", "score": "0.5608226", "text": "public function getComponent()\n {\n return $this->hasOne(AwpbComponent::className(), ['id' => 'component_id']);\n }", "title": "" }, { "docid": "b48222d58e5e0b95af3b6ed1c005fd3b", "score": "0.5599151", "text": "static function get ($name);", "title": "" }, { "docid": "42af0c96f2c642290018f19a8b4a1369", "score": "0.559873", "text": "protected function get($name)\n {\n return isset($this->drivers[$name]) ? $this->drivers[$name] : $this->resolve($name);\n }", "title": "" }, { "docid": "1d36cf9409649cef773ba53bfcb9bb98", "score": "0.55799365", "text": "public function component()\n {\n return $this->component;\n }", "title": "" }, { "docid": "1d36cf9409649cef773ba53bfcb9bb98", "score": "0.55799365", "text": "public function component()\n {\n return $this->component;\n }", "title": "" }, { "docid": "f3622efd06c937d2ed361118b47ed06a", "score": "0.5579011", "text": "public function get($name) {\n\t\tif(!$this->has($name)) {\n\t\t\tthrow new \\InvalidArgumentException('', 104, null);\n\t\t}\n\t\t\n\t\treturn $this->registry[$name];\n\t}", "title": "" }, { "docid": "81aaa7f8c361fe11d584e5a72ade7be9", "score": "0.5570926", "text": "public function get($name)\n {\n if (!is_null($module = $this->find($name))) {\n return $module;\n }\n\n throw new ModuleNotFoundException($name);\n }", "title": "" }, { "docid": "a6fb5ac100cbef534da89a718b72b821", "score": "0.5553621", "text": "public static function make($component, $name = 'Component'){\n\t\t// fix typo\n\t\t$class = 'Simwp\\\\Component\\\\' . ucfirst($component);\n\n\t\treturn new $class($name);\n\t}", "title": "" }, { "docid": "214b550e81a573609a5eebbe83f8bb48", "score": "0.55468655", "text": "public function get($name)\n {\n if ($this->has($name)) {\n return $this->forms[$name];\n }\n\n throw new \\InvalidArgumentException('The search name \"'.$name.'\" is not exists!');\n }", "title": "" }, { "docid": "78b11e9049720c471c49d899c1eb9336", "score": "0.5535536", "text": "public static function get( $type, $key ) {\n\n\t\tif ( empty( $type ) || ! in_array( $type, self::$supported_component_types, true ) ) {\n\t\t\t/* translators: This function name. Will always be vtBlocks\\Layouts\\Component_Registry::get(). */\n\t\t\tthrow new Exception( sprintf( esc_html__( 'You must supply a component type in %s.', 'vt-blocks' ), __METHOD__ ) );\n\t\t}\n\n\t\tswitch ( $type ) {\n\t\t\tcase 'layout':\n\t\t\t\tif ( empty( self::$layouts[ $key ] ) ) {\n\t\t\t\t\t/* translators: The requested components unique key. */\n\t\t\t\t\tthrow new Exception( sprintf( esc_html__( 'The %s layout is not registered.', 'vt-blocks' ), $key ) );\n\t\t\t\t}\n\t\t\t\treturn self::$layouts[ $key ];\n\n\t\t\tcase 'section':\n\t\t\t\tif ( empty( self::$sections[ $key ] ) ) {\n\t\t\t\t\t/* translators: The requested components unique key. */\n\t\t\t\t\tthrow new Exception( sprintf( esc_html__( 'The %s section is not registered.', 'vt-blocks' ), $key ) );\n\t\t\t\t}\n\t\t\t\treturn self::$sections[ $key ];\n\n\t\t\tdefault:\n\t\t\t\t/* translators: This function name. Will always be vtBlocks\\Layouts\\Component_Registry::get(). */\n\t\t\t\tthrow new InvalidArgumentException( sprintf( esc_html__( 'You must supply a valid component type in %s.', 'vt-blocks' ), __METHOD__ ) );\n\t\t}\n\t}", "title": "" }, { "docid": "052328394427c0e2afd7657714f1454e", "score": "0.5533219", "text": "public function getPlugin($name) {\n\t\tforeach ($this->getPlugins() as $plugin) {\n\t\t\tif ($plugin['name'] === $name) {\n\t\t\t\treturn $plugin;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9db113f0943c2e6650f37d8a763e8245", "score": "0.55152285", "text": "protected function loadController($name)\n {\n if (!$this->services instanceof DependencyInjection) {\n return $this->services->get($name);\n }\n\n // Check if we have a class or alias by this name\n $definition = $this->services->getDefinition();\n if (!$definition->hasClass($name)) {\n $manager = $this->services->getInstanceManager();\n if (!$manager->hasAlias($name)) {\n // No class or alias found; return false\n return false;\n }\n }\n\n // Found; retrieve and return it\n return $this->services->get($name);\n }", "title": "" }, { "docid": "8500fd0133731f9a34a2921df1a563df", "score": "0.5490875", "text": "public function named($name) {\n if (isset($this->indexed[$name])) {\n return $this->indexed[$name];\n }\n throw new ElementNotFoundException('No element named \"'.$name.'\"');\n }", "title": "" }, { "docid": "a6ab4a5b1641552116a16c0b616c891a", "score": "0.5486999", "text": "public function get($name)\n {\n if ( ! isset($this->dependencies[$name])) {\n throw new \\OutOfBoundsException(\"Dependency not found for'$name'\");\n }\n\n return $this->load($name);\n }", "title": "" }, { "docid": "1e14e2d2a380aaec78d51299800230ae", "score": "0.54857445", "text": "public static function get($name)\n {\n // has the shared object already been loaded?\n if (! Solar_Registry::exists($name)) {\n throw Solar::exception(\n 'Solar_Registry',\n 'ERR_NOT_IN_REGISTRY',\n \"Object with name '$name' not in registry.\",\n array('name' => $name)\n );\n }\n \n // was the registration for a lazy-load?\n if (is_array(Solar_Registry::$_obj[$name])) {\n $val = Solar_Registry::$_obj[$name];\n $obj = Solar::factory($val[0], $val[1]);\n Solar_Registry::$_obj[$name] = $obj;\n }\n \n // done\n return Solar_Registry::$_obj[$name];\n }", "title": "" }, { "docid": "738bb7f6d1cd06f302dba4878417204a", "score": "0.54832315", "text": "public function get($name);", "title": "" }, { "docid": "738bb7f6d1cd06f302dba4878417204a", "score": "0.54832315", "text": "public function get($name);", "title": "" }, { "docid": "738bb7f6d1cd06f302dba4878417204a", "score": "0.54832315", "text": "public function get($name);", "title": "" }, { "docid": "738bb7f6d1cd06f302dba4878417204a", "score": "0.54832315", "text": "public function get($name);", "title": "" }, { "docid": "738bb7f6d1cd06f302dba4878417204a", "score": "0.54832315", "text": "public function get($name);", "title": "" }, { "docid": "738bb7f6d1cd06f302dba4878417204a", "score": "0.54832315", "text": "public function get($name);", "title": "" }, { "docid": "738bb7f6d1cd06f302dba4878417204a", "score": "0.54832315", "text": "public function get($name);", "title": "" }, { "docid": "738bb7f6d1cd06f302dba4878417204a", "score": "0.54832315", "text": "public function get($name);", "title": "" }, { "docid": "738bb7f6d1cd06f302dba4878417204a", "score": "0.54832315", "text": "public function get($name);", "title": "" }, { "docid": "738bb7f6d1cd06f302dba4878417204a", "score": "0.54832315", "text": "public function get($name);", "title": "" }, { "docid": "738bb7f6d1cd06f302dba4878417204a", "score": "0.54832315", "text": "public function get($name);", "title": "" }, { "docid": "38cc2b67f1d6d91fd52bcebe4b0b92d3", "score": "0.54817", "text": "public function getComponent(string $className, ?bool $add = false, ?bool $throw = true) {\n\t\t\t$resolve = $this->resolveClassName($className);\n\n\t\t\t// getComponent() should only ever return a single component.\n\t\t\tif (\\is_array($resolve) || (\\array_key_exists($resolve, $this->classList) && \\is_array($this->classList[$resolve])))\n\t\t\t\tthrow new ClassResolutionException('Injector contains multiple resolutions for class: ' . $className);\n\n\t\t\t// Check if component is missing and react according to $add.\n\t\t\tif (!\\array_key_exists($resolve, $this->classList)) {\n\t\t\t\tif ($add) {\n\t\t\t\t\t$this->addComponent($resolve);\n\t\t\t\t} else {\n\t\t\t\t\tif (!$throw)\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t\n\t\t\t\t\tthrow new ClassResolutionException('Injector does not have valid match for class: ' . $resolve);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Return cached instance, or construct new one.\n\t\t\treturn $this->classList[$resolve] ?? $this->constructComponent($resolve);\n\t\t}", "title": "" }, { "docid": "db06791daaea8d2df6a7662f04eb0b58", "score": "0.5479427", "text": "public function get(string $name);", "title": "" }, { "docid": "f8fcb3839394b55e355b15d17cd145b6", "score": "0.54767644", "text": "public function get(string $name): object\n {\n if (!isset($this->_loaded[$name])) {\n throw new CakeException(sprintf('Unknown object `%s`.', $name));\n }\n\n return $this->_loaded[$name];\n }", "title": "" }, { "docid": "045d3ce0a67f705382c4717ec89d3cea", "score": "0.5476122", "text": "protected function getComponent($level)\n {\n return array_key_exists($level, $this->components)\n ? $this->components[$level]\n : null;\n }", "title": "" }, { "docid": "0a94a11ee70b15d068e325a617d00205", "score": "0.5469973", "text": "public static function &get ($name)\n\t{\n\t\tif (self::has($name))\n\t\t\treturn self::$_loaded[$name];\n\t\telse\n\t\t\tBee_Exceptiom::throwE('Unable to get '.$name.' object from registry.');\n\t}", "title": "" }, { "docid": "d583ab6711c72e703bdd4ccf46f33c70", "score": "0.5468759", "text": "static function findNamed($name){\n return self::where('name', $name)->first();\n }", "title": "" }, { "docid": "ecaef1c3812f8b5a088e2e0a87f9412c", "score": "0.5462161", "text": "public function component( $type, $name, $ext = '.php', $instantiate = true )\n\t{\n\t\t$filepath = $this->path( $type, $name, $ext );\n\n\t\tif( file_exists( $filepath ) ) {\n\n\t\t\trequire_once( $filepath );\n\n\t\t\tif( $DS = strpos( $name, '/' ) )\n\t\t\t\t$classname = substr( $name, $DS + 1 );\n\t\t\telse\n\t\t\t\t$classname =& $name;\n\n\t\t\tif( $instantiate === true )\n\t\t\t\treturn $component = new $classname;\n\t\t}else\n\t\t\treturn null;\n\t}", "title": "" }, { "docid": "3a0e1d2d1e1862ecf6ca027a0531cc01", "score": "0.54484797", "text": "public function __get( $name )\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn parent::__get( $name );\n\t\t}\n\t\tcatch ( CException $_ex )\n\t\t{\n\t\t\t//\tDidn't work. Try our behavior cache...\n\t\t\tforeach ( $this->_behaviorList as $_behaviorName )\n\t\t\t{\n\t\t\t\tif ( ( $_behavior = $this->asa( $_behaviorName ) ) instanceof IPSOptionContainer && $_behavior->contains( $name ) )\n\t\t\t\t\treturn $_behavior->getValue( $name );\n\t\t\t}\n\n\t\t\t//\tIf we get here, then bubble the exception...\n\t\t\tthrow $_ex;\n\t\t}\n\t}", "title": "" }, { "docid": "ae1ba64d7bae2d35053585e37420fb42", "score": "0.54411036", "text": "public function getProductByName($name) {\n global $db;\n\n $tot_row = $db->select(\"SELECT * FROM \" . PRODUCT_TABLE . \" WHERE product_name = '\" . $name . \"'\");\n if (isset($tot_row[0]['id']) && $tot_row[0]['id'] != '')\n return $tot_row[0];\n\n return false;\n }", "title": "" }, { "docid": "4a1d1d65e3d294524a6e862d38684657", "score": "0.5436761", "text": "public function get(string $name): object\n {\n return $this->services->getService($name);\n }", "title": "" }, { "docid": "7e73e1dcb01693c7b2714e58738d9f6e", "score": "0.543361", "text": "function get_instance($name)\n{\n $registry = \\Ecs\\Core\\Registry::getInstance();\n return $registry->get($name);\n}", "title": "" }, { "docid": "fa421cb50f5be8793f3dafeae5fed3a2", "score": "0.542907", "text": "public static function getComponentName($component)\n\t{\n\t\tif (is_object($component)) {\n\t\t\t$component = get_class($component);\n\t\t}\n\n\t\t$pieces = explode('\\\\', $component);\n\t\treturn array_pop($pieces);\n\t}", "title": "" }, { "docid": "432dae7921e3f624250057125d7dc896", "score": "0.5428474", "text": "public function getComponenteById($id){\n $c = new Componente();\n\n if($id < $this->num_componentes){\n $c = $this->componentes[$id];\n }\n\n return $c;\n }", "title": "" }, { "docid": "fbc665118ed1440fcf568cd6ec382f2d", "score": "0.54064715", "text": "public static function get($name)\n\t{\n\t\t$name = (string) $name;\n\n\t\tif(!isset(self::$registry[$name]))\n\t\t{\n\t\t\tthrow new SpoonException('No item \"' . $name . '\" exists in the registry.');\n\t\t}\n\n\t\treturn self::$registry[$name];\n\t}", "title": "" }, { "docid": "07013af732cc72c9d763be42e1b74739", "score": "0.5403093", "text": "public function get_element_by_name ($name) {\n $elements = $this->get_elements();\n\n if($elements) {\n foreach ($elements as $element) {\n if($element['name'] == $name) {\n return $element;\n }\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "fa8e023279aaaa6872f8af761edc6197", "score": "0.54021204", "text": "protected function getService(string $name)\n {\n return $this->container->get($name);\n }", "title": "" }, { "docid": "56014db73b9b9e2183a93a8fa649fac2", "score": "0.5400222", "text": "public function __get($name)\n {\n if (isset($this->$name)) {\n return $this->$name;\n }\n\n if (empty($this->accountId) || !MongoId::isValid($this->accountId)) {\n throw new Exception('Please set the accountId and make sure it\\'s a MongoId.');\n }\n\n $name = __NAMESPACE__ . '\\models\\\\' . ucfirst($name);\n return call_user_func([$name, 'getInstance'], $this->accountId);\n }", "title": "" }, { "docid": "06d8aa22a7e5415b9360a8cf3e88c0eb", "score": "0.5395003", "text": "function get_control( $name )\n\t{\n\t\tif ( isset( $this->controls[$name] ) ) {\n\t\t\treturn $this->controls[$name];\n\t\t}\n\t\tforeach ( $this->controls as $control ) {\n\t\t\tif ( $control instanceof FormContainer ) {\n\t\t\t\t// Assignment is needed to avoid an indirect modification notice\n\t\t\t\tif ( $ctrl = $control->$name ) {\n\t\t\t\t\treturn $ctrl;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0e73e974a0ffc4206ec588ce478d4bf6", "score": "0.53940564", "text": "public static function get_component_by_class( $class ) {\n return isset( self::$classes[ $class ] ) ? self::$classes[ $class ] : null;\n }", "title": "" }, { "docid": "3c829827bac47968b39395d2dac88a46", "score": "0.5386774", "text": "public function get_certificate_by_name($name) {\n\t\t$stmt = $this->database->prepare(\"SELECT * FROM certificate WHERE name = ?\");\n\t\t$stmt->bind_param('s', $name);\n\t\t$stmt->execute();\n\t\t$result = $stmt->get_result();\n\t\tif($row = $result->fetch_assoc()) {\n\t\t\t$certificate = new Certificate($row['id'], $row);\n\t\t} else {\n\t\t\tthrow new CertificateNotFoundException('Certificate does not exist.');\n\t\t}\n\t\t$stmt->close();\n\t\treturn $certificate;\n\t}", "title": "" }, { "docid": "c510cde6ba8cd98d32440d5979df8ca7", "score": "0.53804", "text": "protected function fetchAndSetComponentInstance(int $id)\n {\n $component = $this->component;\n if (empty($component) || !($component instanceof Component)) {\n throw new InvalidInputException(\"One or more required members were not set on the command handler\");\n }\n\n // Get an EntityRepository for the component instance\n $entityClass = $component->getClassName();\n $entityNamespace = env('APP_MODEL_NAMESPACE');\n $entityRepository = $this->em->getRepository($entityNamespace . \"\\\\\" . $entityClass);\n if (empty($entityRepository) || !($entityRepository instanceof EntityRepository)) {\n throw new InvalidComponentEntityException(\"Could not create an EntityRepository\"\n . \" from the entity class name\");\n }\n\n // Get the component instance\n /** @var SystemComponent $componentInstance */\n $componentInstance = $entityRepository->find($id);\n if (empty($componentInstance) || !($componentInstance instanceof SystemComponent)) {\n $exceptionNamespace = env('APP_EXCEPTION_NAMESPACE');\n $exceptionClass = $exceptionNamespace . \"\\\\\" . $entityClass . \"NotFoundException\";\n $message = \"That {$component->getName()} does not exist\";\n\n if (!class_exists($exceptionClass)) {\n throw new ComponentNotFoundException($message);\n }\n\n throw new $exceptionClass($message);\n\n }\n\n $this->setComponentInstance($componentInstance);\n }", "title": "" }, { "docid": "a5eb4de37864c732d9d630037ceb6255", "score": "0.5379165", "text": "public function resolve($name)\n {\n $this->listComponents();\n\n if (isset($this->codeMap[$name])) {\n return $this->codeMap[$name];\n }\n\n $name = $this->convertCodeToPath($name);\n if (isset($this->classMap[$name])) {\n return $name;\n }\n\n return null;\n }", "title": "" } ]
e6d5c1e3af9b16ea3aa7bb67f97f967c
Shown in admin screens
[ { "docid": "b44903075c3e3b2d6cbbed3e981e4201", "score": "0.0", "text": "public function get_name() {\n return get_string('task_name', 'plagiarism_turnitin');\n }", "title": "" } ]
[ { "docid": "e79d442ec517104ee9039153bc7a8a09", "score": "0.75309354", "text": "public function _admin() {\n\t\techo \\Helper\\View::instance()->render(\"stats/admin.html\");\n\t}", "title": "" }, { "docid": "a4900a0b74b617f3e5874f71cb554601", "score": "0.74890924", "text": "public function actionAdmin() {\n $widgets = array();\n\t\t$this->render('dashboard', array('widgets'=>$widgets));\n\t}", "title": "" }, { "docid": "15b2e4051263a99c1de2a091e2a2470e", "score": "0.7422238", "text": "function sfa_adminadminspage()\r\n{\r\n sfa_render_admins_index();\r\n\r\n return;\r\n}", "title": "" }, { "docid": "94e729e60271d85426fb799e9c117f51", "score": "0.73815244", "text": "static function admin_menu() {\r\n add_management_page('Security Ninja', 'Security Ninja', 'manage_options', 'wf-sn', array(__CLASS__, 'options_page'));\r\n }", "title": "" }, { "docid": "cf4d8953a53072c47af7ad7297478883", "score": "0.73436654", "text": "public function plugin_admin_page() {\n\t\t\tinclude_once( 'views/admin.php' );\n\t\t}", "title": "" }, { "docid": "5849583add14584bbd387655f5d00e62", "score": "0.73267436", "text": "public function admin() {\n $chapters = $this->chapterManager->getAllChapters();\n $comments = $this->commentsManager->getAllComments();\n\n require('view/admin.php');\n }", "title": "" }, { "docid": "8ce3359791c9505d4532c7802b1c7218", "score": "0.7306205", "text": "public static function admin_menu()\n\t{\n\t}", "title": "" }, { "docid": "87a319f43b55f7d986181a2ef83fd2f7", "score": "0.73044366", "text": "public function adminPanelAction() {\n\t}", "title": "" }, { "docid": "3ffd6705744175338cdbd4f40b0b5632", "score": "0.7268973", "text": "function AdminPage(){\n $this->view->MostrarPaginaAdmin($this->Titulo, $this->Logueado, $this->Admin);\n }", "title": "" }, { "docid": "34b40c0b8ff1586c67c05ba2bd4a28d4", "score": "0.7259655", "text": "public function adminAction()\n {\n return $this->render(\n 'AppBundle:Default:admin.html.twig',\n array(\n )\n );\n }", "title": "" }, { "docid": "012e3380d064b03574f16d17ed2a0e4b", "score": "0.7233579", "text": "public function hookAdminItemsShow()\n {\n }", "title": "" }, { "docid": "55b34f213a0655d420dcd122738431e0", "score": "0.7226287", "text": "public function actionAdmin()\n\t{ \n\t\t$this->render('nearest_admin');\n\t}", "title": "" }, { "docid": "6dfc19a73d82d1c0fc096b12542e0728", "score": "0.72197825", "text": "public function display_SUVBC_admin_page() {\n\t\tinclude_once( 'views/admin.php' );\n\n\t}", "title": "" }, { "docid": "6dfc19a73d82d1c0fc096b12542e0728", "score": "0.72197825", "text": "public function display_SUVBC_admin_page() {\n\t\tinclude_once( 'views/admin.php' );\n\n\t}", "title": "" }, { "docid": "50eb62854e0f6bea0a3f8b01e9312571", "score": "0.721519", "text": "public function admin()\n {\n return $this->render('admin/admin.html.twig');\n }", "title": "" }, { "docid": "63312426ad8154d75368b4392a750146", "score": "0.72091174", "text": "public function admin()\n {\n $this->smarty->view('auth/admin.tpl');\n }", "title": "" }, { "docid": "aab28d83afd63a8cd38a08151852b647", "score": "0.7193434", "text": "public function admin_menus() {\n\t\t// About\n\t\tadd_dashboard_page(\n\t\t\t__( 'Theme Details', 'wpex' ),\n\t\t\t__( 'Theme Details', 'wpex' ),\n\t\t\t$this->minimum_capability,\n\t\t\t'wpex-about',\n\t\t\tarray( $this, 'about_screen' )\n\t\t);\n\n\t\t// Recommended\n\t\tadd_dashboard_page(\n\t\t\t__( 'Recommendations | Elegant Theme', 'wpex' ),\n\t\t\t__( 'Recommendations', 'wpex' ),\n\t\t\t$this->minimum_capability,\n\t\t\t'wpex-recommended',\n\t\t\tarray( $this, 'recommended_screen' )\n\t\t);\n\n\t}", "title": "" }, { "docid": "cccf8a5e1e7d462a9c6db9b2cfc44dd4", "score": "0.71837837", "text": "public function admin()\n\t{\n\t\t$caller = debug_backtrace();\n\t\t\t\n\t\t$top = new Template($this->dir.\"/lib/tpl/admin_top.tpl\");\n\t\techo $top->render(\n\t\t\tarray(\n\t\t\t\t'title'\t\t=> get_admin_page_title()\n\t\t\t)\n\t\t);\n\t\t\n\t\tif(file_exists($this->dir.\"/pages/\".$caller[1]['function'].\".php\"))\n\t\t\tinclude $this->dir.\"/pages/\".$caller[1]['function'].\".php\";\n\t\t\t\n\t\t$bottom = new Template($this->dir.\"/lib/tpl/admin_bottom.tpl\");\n\t\t$bottom->render();\n\t}", "title": "" }, { "docid": "df579366848a5b572e446e8369b748e3", "score": "0.7167747", "text": "public function admin_dashboard() {\n\t\t\n \t$this->set(array(\n 'title_for_layout' => 'Painel de Controle'\n ));\n\t}", "title": "" }, { "docid": "5bec302ad2bf512601c3f01cbe751c02", "score": "0.71677065", "text": "public function admin() {\r\n $SuperAdmin = new SuperAdmin($this->adapter);\r\n\r\n //Conseguimos todos los usuarios\r\n $allSup = $SuperAdmin->getAll();\r\n //Cargamos la vista index y le pasamos valores\r\n $this->view(\"SuperAdmin/admin\", array(\"allSup\" => $allSup));\r\n \r\n }", "title": "" }, { "docid": "fd2628743d55168bea062d5c78b12a3c", "score": "0.71581334", "text": "public function admin(){\n $data = array(\n 'title' => 'Daftar Administrator',\n 'isi' => 'admin/dashboard/daftarAdmin',\n 'data' => $this->Crud->ga('admin')\n );\n $this->load->view('admin/_layouts/wrapper', $data);\n }", "title": "" }, { "docid": "4382ee89b48bdeb4b24d2fd1e0340180", "score": "0.7141113", "text": "public function admin_page() {\n \n echo $this->_view('admin', array('options' => get_option('WPInsertCode_options')));\n }", "title": "" }, { "docid": "51550ffec3aca898eecc067ecb5e24f5", "score": "0.71370196", "text": "public function adminMenu() {\n add_options_page (__( \"Lyyti Settings\", 'lyyti' ), __( \"Lyyti Settings\", 'lyyti' ), 'manage_options', 'lyyti', [$this, 'settingsPage']);\n }", "title": "" }, { "docid": "c97032e484905b7efcf1f76ada23c592", "score": "0.7127683", "text": "public function administrationAction()\n {\n return $this->render(\n $this->getTemplatePath().'administration.html.twig',\n array(\n 'instance' => $this->getCurrentInstance(),\n )\n );\n }", "title": "" }, { "docid": "f5e35218aad5a45fe1a5bfaf253e4df2", "score": "0.7127444", "text": "public function display_plugin_admin_page() {\n\t\tinclude_once('views/admin.php');\n\t}", "title": "" }, { "docid": "1db4251066d00c4fb4ed4d60b99af2c3", "score": "0.7114087", "text": "public function administration()\n\t{\n\n\t\t// SECURITE\n\t\t// SEULEMENT LES ROLES admin PEUVENT VOIR CETTE PAGE \n\t\t$this->allowTo(['admin', 'libraire', 'membre']);\n\t\t$this->show('pages/administration');\n\t}", "title": "" }, { "docid": "5bd03faa73ee7226b41cc828c2b20a19", "score": "0.70989156", "text": "public function adminMenu()\n {\n \\add_menu_page('PTP Media', 'PTP Media', 'manage_options', 'ptp_media', $this->adminController, 'dashicons-format-gallery', 110);\n }", "title": "" }, { "docid": "dee281e963ca7db62d1d1d933d9dccb3", "score": "0.70928603", "text": "public function admin_page() {\n\n\t\tdo_action( 'wpforms_admin_page' );\n\t}", "title": "" }, { "docid": "09d7ff520d362acbf58c3ef39164d59b", "score": "0.7076928", "text": "public function display_plugin_admin_page() {\n\t\tinclude_once( 'views/admin.php' );\n\t}", "title": "" }, { "docid": "ff26487a8acf761fd57d5704d29e4ae3", "score": "0.7067915", "text": "public function admin() {}", "title": "" }, { "docid": "9e38949aa9940406828bb70f5cd56011", "score": "0.706254", "text": "public function admin()\n {\n $page_title=\"Admin Page\";\n include(\"View/Header.php\");\n \n $sales = $this->pt_dao->totalSales();\n \n //UNFINISHED\n include(\"View/AdminForm.php\");\n }", "title": "" }, { "docid": "b4aad3a6a4e1743df79498217c68437f", "score": "0.70373136", "text": "public function admin_menus(){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\n\t\t}", "title": "" }, { "docid": "e64e773cb7dba8b56b2be404774929e3", "score": "0.7029473", "text": "function showAdminPage(){\n $this->smarty->display('./templates/administrador/adminPage.tpl');\n }", "title": "" }, { "docid": "a64da484f713fe176d0f097b1b60c96c", "score": "0.70187306", "text": "public function _admin() {\n\t\t$f3 = \\Base::instance();\n\t\t$f3->set(\"pushsocket\", $this->_getSocket());\n\t\t// Render view\n\t\techo \\Helper\\View::instance()->render(\"push/view/admin.html\");\n\t}", "title": "" }, { "docid": "09fc080e5c7e4a62f2b6cd8d2c8a6ddb", "score": "0.70166105", "text": "public function include_admin()\n {\n }", "title": "" }, { "docid": "986d8c30853230d1f09e049a3dfc5fd7", "score": "0.7007483", "text": "public function viewAdminPageAction()\n {\n $this->smarty->display(\"admin/adminPage.tpl\");\n }", "title": "" }, { "docid": "c2713beccd5fd6c17ab6519afeafa9af", "score": "0.70042527", "text": "public function admin_menus()\n {\n }", "title": "" }, { "docid": "5356ebf1466f9d38aa0912c240a8bfab", "score": "0.6995071", "text": "function displayAdminPage()\r\n\t\t{\r\n\t\t\t\r\n\t\t\t$Options = $this->getAdminOptions();\r\n\t\t\t\r\n\t\t\t//fetch given file and display\r\n\t\t\tinclude \"php/admin_view.php\";\r\n\t\t}", "title": "" }, { "docid": "4a0096d6458869e16f6a9d9d12036d8c", "score": "0.6994474", "text": "public function admin_dashboard() {\n\t\t\tinclude TVE_DASH_PATH . '/inc/smart-site/views/admin/templates/dashboard.phtml';\n\t\t}", "title": "" }, { "docid": "ad1c61b0dd71c7cce804d907536023c4", "score": "0.6961909", "text": "public function ShowLids() {\n\t\tif ( ! is_admin() ) { // Only for admin panel\n\t\t\treturn;\n\t\t}\n\t\tadd_action( 'admin_menu', array($this, 'RegisterPage') );\n\t}", "title": "" }, { "docid": "32d422431321cb4459ae952ae1a18644", "score": "0.6960081", "text": "public function admin_menu() {\n\t\tif ( ! bp_current_user_can( 'bp_moderate' ) || ! bp_is_active( 'messages' ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$this->screen_id = add_users_page(\n\t\t\t_x( 'All Member Notices', 'Notices admin page title', 'bp-next' ),\n\t\t\t_x( 'All Member Notices', 'Admin Users menu', 'bp-next' ),\n\t\t\t'manage_options',\n\t\t\t'bp-notices',\n\t\t\tarray( $this, 'admin_index' )\n\t\t);\n\n\t\tadd_action( 'load-' . $this->screen_id, array( $this, 'admin_load' ) );\n\t}", "title": "" }, { "docid": "9cbc1dee01ddc9d7811e0ba1e9baa698", "score": "0.695349", "text": "function admindashboard() {\n $this->loadViews(\"admin-dashboard\", $this->global);\n }", "title": "" }, { "docid": "123243143ea7d6041f14d094fe7f72a7", "score": "0.6951331", "text": "function admin(){\n if(!$this->is_admin):\n redirect(site_url(\"users/logout\"));\n exit();\n endif;\n $this->data[\"meta_title\"] = \"{$this->sysName} | {$this->user_type_text} | {$this->user_name}\";\n $this->data[\"subview\"] = \"ADMIN/category/index\";\n $this->load->view($this->tmp,$this->data);\n }", "title": "" }, { "docid": "b979685c1b796c7212f7108f0c98c95b", "score": "0.69470364", "text": "public function display_plugin_admin_page() {\n include_once( 'views/settings.php' );\n }", "title": "" }, { "docid": "e46606de3bcec129d23fd2246544c6f2", "score": "0.6944632", "text": "public function showhomePageAdmin() {\n\n $this->mainPage->getPage('dashboard.tpl');\n }", "title": "" }, { "docid": "6f52f9eda759f65e01e2aac1baf22f81", "score": "0.69292253", "text": "public function admin_action() {\n\t}", "title": "" }, { "docid": "fd4f23b3ac0a3402879840dc26a9af5e", "score": "0.692585", "text": "public function admin_index() {\n if (!$this->DCAuth->isAdmin()) {\n $this->redirect($this->referer());\n }\n }", "title": "" }, { "docid": "f0200de37ad3cc4b35b113dfe1b2d2bc", "score": "0.6925033", "text": "public function listadmin()\n {\n $this->data['title_web'] = \"Daftar Administrator\";\n $this->data['daftar_admin'] = $this->model(\"Admin_model\")->getAllAdmin();\n $this->view(\"templates/header\", $this->data);\n $this->view(\"admin/listadmin\", $this->data);\n $this->view(\"templates/footer\");\n }", "title": "" }, { "docid": "a69eb5db06868a5c08ed2b0b227d250d", "score": "0.69208205", "text": "public function adminAction()\n {\n return $this->render(':default:index.html.twig', array(\n 'body' => 'Admin Page!'\n ));\n }", "title": "" }, { "docid": "017854c88c46e0352f35203e01f4dfca", "score": "0.6914111", "text": "public function admin_menu() {\n\t\tif ( 'lp-setup' !== LP_Request::get_string( 'page' ) || ! current_user_can( 'install_plugins' ) ) {\n\t\t\treturn;\n\t\t}\n\t\tadd_dashboard_page( '', '', 'manage_options', 'lp-setup', '' );\n\t}", "title": "" }, { "docid": "ad267440eb07fe31f92ebc38de8daf65", "score": "0.6912752", "text": "public function display_admin() {\n\t\treturn $this->display();\n\t}", "title": "" }, { "docid": "ad267440eb07fe31f92ebc38de8daf65", "score": "0.6912752", "text": "public function display_admin() {\n\t\treturn $this->display();\n\t}", "title": "" }, { "docid": "fef3f58382f7f51d8767cb8004b3829c", "score": "0.69063467", "text": "public function admin_head()\n {\n }", "title": "" }, { "docid": "bb762d0353a6baac6c39f790b2d36f6b", "score": "0.6887041", "text": "public function onAdminsList()\n {\n $this->onInit();\n Breadcrumbs::register('admins-list', function($breadcrumbs) {\n $breadcrumbs->parent('staff');\n $breadcrumbs->push(trans('antares/acl::title.breadcrumbs.users'), handles('antares::acl/index/users'));\n });\n view()->share('breadcrumbs', Breadcrumbs::render('admins-list'));\n }", "title": "" }, { "docid": "d7da4ea2ab3135771e8aec91906e891d", "score": "0.68866545", "text": "public function admin() {\r\n $barrio = new Barrio ($this->adapter);\r\n\r\n //Conseguimos todos los usuarios\r\n $allbar = $barrio->getAllUsers();\r\n //Cargamos la vista index y le pasamos valores\r\n $this->view(\"Barrio/admin\", array(\"allbar\" => $allbar));\r\n \r\n }", "title": "" }, { "docid": "2efd4c126f3c3a3e9ac9913dbd956b17", "score": "0.6885146", "text": "public function admin_menu() {\n\t\tif ( ! bp_current_user_can( 'bp_moderate' ) || ! bp_is_active( 'messages' ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$this->screen_id = add_users_page(\n\t\t\t_x( 'All Member Notices', 'Notices admin page title', 'buddypress' ),\n\t\t\t_x( 'All Member Notices', 'Admin Users menu', 'buddypress' ),\n\t\t\t'manage_options',\n\t\t\t'bp-notices',\n\t\t\tarray( $this, 'admin_index' )\n\t\t);\n\n\t\tadd_action( 'load-' . $this->screen_id, array( $this, 'admin_load' ) );\n\t}", "title": "" }, { "docid": "9f192247769912d449ee843c075e07d8", "score": "0.6870125", "text": "public function render() {\n\t\trequire COOL_PLUGIN_PATH . 'views/view-admin.php';\n\t}", "title": "" }, { "docid": "aa85abbe0e59def41f2aebec777a758a", "score": "0.68664354", "text": "public function menuPage() {\n static::getMenuView( 'admin' );\n }", "title": "" }, { "docid": "0b1a084034ed1426ae438be2967e97b1", "score": "0.6852878", "text": "public function network_admin_menus()\n {\n }", "title": "" }, { "docid": "d8444d1bc47d14f16856562c5266e958", "score": "0.68469113", "text": "public function admin() {\n $BarrioRta = new BarrioRuta($this->adapter);\n\n //Conseguimos todos los usuarios\n $allBrta = $BarrioRta->getAll();\n //Cargamos la vista index y le pasamos valores\n $this->view(\"BarrioRuta/admin\", array(\"allBrta\" => $allBrta));\n \n }", "title": "" }, { "docid": "4db65006a1e26674eff118cd50eacba0", "score": "0.683804", "text": "public function adminAction()\n {\n $title = \"Cms\";\n $this->app->db->connect();\n $sql = \"SELECT * FROM content;\";\n\n $data = [\n \"resultset\" => $this->app->db->executeFetchAll($sql)\n ];\n\n $this->app->page->add(\"cms/admin\", $data);\n\n return $this->app->page->render([\n \"title\" => $title,\n ]);\n }", "title": "" }, { "docid": "ae3049aca80a1cf6c987bc28aa95a0c6", "score": "0.6812167", "text": "function admin_menu() {\n\t\t\n\t\t// bail early if no show_admin\n\t\tif( !acf_get_setting('show_admin') ) return;\n\t\t\n\t\t\n\t\t// bail early if no show_updates\n\t\tif( !acf_get_setting('show_updates') ) return;\n\t\t\n\t\t\n\t\t// bail early if not a plugin (included in theme)\n\t\tif( !acf_is_plugin_active() ) return;\n\t\t\t\t\n\t\t\n\t\t// add page\n\t\t$page = add_submenu_page('edit.php?post_type=acf-field-group', __('Updates','acf'), __('Updates','acf'), acf_get_setting('capability'), 'acf-settings-updates', array($this,'html') );\n\t\t\n\t\t\n\t\t// actions\n\t\tadd_action('load-' . $page, array($this,'load'));\n\t\t\n\t}", "title": "" }, { "docid": "80da66d5b1667a11dbd75cc14cb585bc", "score": "0.6810622", "text": "function Administration() {\r\n\t\t\t# Security check\r\n\t\t\tif (!current_user_can(c_pwa_min_cap))\r\n\t\t\t\tdie('Unauthorized');\r\n\r\n\t\t\trequire_once('pwaplusphp-admin.php');\r\n\t\t\tpwa_render_admin($this);\r\n\r\n\t\t\tglobal $updates_pwa;\r\n\t\t\tif (isset($updates_pwa))\r\n\t\t\t\t$updates_pwa->checkForUpdates();\r\n\r\n\t\t}", "title": "" }, { "docid": "f3db17d432284959a8d3625b8e4afe36", "score": "0.68050253", "text": "public static function adminMenu(){\n\t\t$hook = add_submenu_page(\n\t\t\t\"ait-theme-options\",\n\t\t\t__(\"Migration\", \"ait-directory-migrations\"),\n\t\t\t__(\"Migration\", \"ait-directory-migrations\"),\n\t\t\t\"edit_theme_options\",\n\t\t\t'ait_migration_options',\n\t\t\tarray(__CLASS__, 'adminPage')\n\t\t);\n\t}", "title": "" }, { "docid": "37bf982fa41c8bb2a2b720e2060901e1", "score": "0.680428", "text": "public function setAtAdminPanel()\n {\n $this->atAdminPanel = true;\n }", "title": "" }, { "docid": "e9d8af61c6fa5554356e8564df80c136", "score": "0.6796346", "text": "abstract protected function _admin_dashboard();", "title": "" }, { "docid": "3db6ce1a659f4228cb6279ff827131cb", "score": "0.6786759", "text": "public function adminAction()\n {\n $visitorRepository = new VisitorRepository();\n $visitors = $visitorRepository->getAllFromVisitors();\n\n $staffRepository = new StaffRepository();\n $staffs = $staffRepository->getAllFromStaffs();\n\n $productRepository = new productRepository();\n $products = $productRepository->getAllFromProducts();\n\n $adminRepository = new adminRepository();\n $admins = $adminRepository->getAllFromAdmins();\n\n $template = 'admin.html.twig';\n $args = [\n 'pageTitle' => 'Admin',\n 'username' => $this->usernameFromSession(),\n 'visitors' => $visitors,\n 'products' => $products,\n 'staffs' => $staffs,\n 'admins' => $admins\n ];\n $html = $this->twig->render($template, $args);\n print $html;\n }", "title": "" }, { "docid": "2b48328fd2fde7464a39a264e7d6b760", "score": "0.6783867", "text": "public function admin() {\n\n\t\t\t// Check if in the WordPress admin.\n\t\t\tif ( ! is_admin() ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "da69823f7054cf3415eec7eacb75d9ca", "score": "0.67782676", "text": "protected function display() {\r\n\r\n\t\t//a generic admin page\r\n\t\trequire_once(SWS_ABSPATH .\"/admin/admin_header.php\");\r\n\t\tsettings_fields(ShoppWholesale::OPTION_GROUP);\r\n\t\tdo_settings_sections($this->getSlug());\r\n\t\trequire_once(SWS_ABSPATH .\"/admin/admin_footer.php\");\r\n\r\n\t}", "title": "" }, { "docid": "de561e07dbff17bbe536dc157d1dc9e9", "score": "0.67735624", "text": "public function admin_menu() {\n\t\t\t// NEEDS: menu_page()\n\t\t\t// NEEDS: options_page()\n\t\t\t\n\t\t\tif ( ! function_exists('submit_button') ) return;\n\t\t\t\n\t\t\tif ( current_user_can('upload_files') )\n\t\t\t\tadd_media_page( \n\t\t\t\t\t__('Dropbox Sideload', 'dropbox-sideload'),\t// Page title\n\t\t\t\t\t__('Dropbox Sideload', 'dropbox-sideload'),\t// Menu title\n\t\t\t\t\t'read', \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Capability\n\t\t\t\t\t'dropbox-sideload', \t\t\t\t\t\t\t\t\t\t\t\t// Menu slug\n\t\t\t\t\tarray( &$this, 'menu_page' ) \t\t\t\t\t\t\t\t// Function callback\n\t\t\t\t);\n\t\t\t\n\t\t\tif ( current_user_can('manage_options') )\n\t\t\t\tadd_options_page( \n\t\t\t\t\t__('Dropbox Sideload Options', 'dropbox-sideload'),\t// Page title\n\t\t\t\t\t__('Dropbox Sideload Options', 'dropbox-sideload'),\t// Menu title\n\t\t\t\t\t'read', \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Capability\n\t\t\t\t\t'dropbox-sideload', \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Menu slug\n\t\t\t\t\tarray( &$this, 'options_page' )\t \t\t\t\t\t\t\t\t\t\t// Function callback\n\t\t\t\t);\n\t\t}", "title": "" }, { "docid": "b16116ae6ea7e84343b215b3f3949101", "score": "0.6771176", "text": "private function affichePageAdmin()\r\n {\r\n $modeleUsager = $this->getDAO(\"Usagers\");\r\n $donnees[\"Usager\"] = $modeleUsager->obtenir_tous(); \r\n $this->afficheVue(\"pageAdmins\", $donnees);\r\n }", "title": "" }, { "docid": "85d0db4f20499e409e340743704ebf19", "score": "0.6766452", "text": "function index() {\n $this->data['pagebody'] = 'admin'; //load the admin view\n $this->data['content'] = $this->displayDatabase(); //get database entries for table\n $this->render(); //render it\n }", "title": "" }, { "docid": "5e72bc41aeffa721411835419d90bd33", "score": "0.6761162", "text": "public function addAdmin()\n {\n $this->load->view('addAdmin');\n }", "title": "" }, { "docid": "38b41688951d0db23a22fb3508eccc5c", "score": "0.6756023", "text": "public function index() {\n $this->tplVars = $this->tplVars + [\n 'page_title' => $this->pageTitle\n ];\n \n //affichage\n \\Renderer::showAdmin(\"dashboard\",$this->tplVars);\n \n }", "title": "" }, { "docid": "ace37133df5db7338806cb9531cc1817", "score": "0.6741872", "text": "function admin_menu() {\n\t\t$this->admin_page = add_menu_page(\n\t\t\t'Wp Nuxt Admin Page',\n\t\t\t'WP Nuxt',\n\t\t\t'manage_options',\n\t\t\t'wp-nuxt-admin-page',\n\t\t\tarray( $this, 'render_admin_page' ),\n\t\t\tget_template_directory_uri() . \"/assets/icon.png\"\n\t\t);\n\t}", "title": "" }, { "docid": "72474cbcc5836ba2ebc0a2737073f736", "score": "0.6733816", "text": "function AddAdminMenu() {\n add_menu_page($this->plugin->displayName, $this->plugin->displayName, 'switch_themes', $this->plugin->name, array(&$this, 'AdminPanel'), $this->plugin->url.'images/icons/small.png');\n }", "title": "" }, { "docid": "95a99e5afebbe304a5c7fca27b2d6c96", "score": "0.672756", "text": "public function admin()\n {\n if ($this->billetManager->verif()) {\n\n $billets = $this->billetManager->getBillets();\n $vue = new Vue(\"backend\",\"admin\", \"Bienvenue sur mon site\");\n $vue->generer(array('billets' => $billets));\n } else {\n header('location: index.php?action=login');\n\n }\n\n }", "title": "" }, { "docid": "a69623a1208eac3e90b34c16af3ffd3b", "score": "0.67122686", "text": "public static function admin_menu() {\n\t\t$settings_page = add_options_page(\n\t\t\t'ActivityPub',\n\t\t\t'ActivityPub',\n\t\t\t'manage_options',\n\t\t\t'activitypub',\n\t\t\tarray( 'Activitypub_Admin', 'settings_page' )\n\t\t);\n\n\t\tadd_action( 'load-' . $settings_page, array( 'Activitypub_Admin', 'add_help_tab' ) );\n\t}", "title": "" }, { "docid": "549d8f22c41fb7537f3bd34b98ddc98d", "score": "0.6712261", "text": "public function admin() {\n\t\t\n\t\tif (!isset($this->session->userdata['logged_in'])) {\n\t\t\tredirect ('/');\n\t\t}\n\t\t$this->load->view('header');\n\t\t$this->load->view('home_admin');\n\t\t$this->load->view('footer');\n\t}", "title": "" }, { "docid": "36d8fc73ce0b8c4416438dce0f40bcec", "score": "0.67093176", "text": "public function admin_page()\n {\n if($this->auth->is_logged_in())\n {\n $getusr = $this->auth->get_username();\n $getrole = $this->auth->get_role();\n $getimage = $this->auth->get_image();\n\n $data = array('username' => $getusr, 'role' => $getrole, 'image' => $getimage);\n redirect('admin/index', $data);\n }\n }", "title": "" }, { "docid": "2051b72d318ed26df76a0885403a8541", "score": "0.6704587", "text": "public function display_plugin_admin_page() {\n\t\n\t\tinclude_once( 'views/setting_options.php' );\n\t\t\n\t}", "title": "" }, { "docid": "4eef3cb6b870e4d98dcbd88cb7241c9f", "score": "0.6699133", "text": "public function collectAdmin()\n {\n $array = $this->productsLogic->readAdminProducts();\n $a = $this->replace($array);\n $b = $this->btnInArray($a);\n $table = $this->productsLogic->printTable($b);\n $pages = $this->productsLogic->pagination();\n\n include \"view/admin.php\";\n }", "title": "" }, { "docid": "3c0c09750150f0d65dcf1a9d922e9459", "score": "0.6675398", "text": "public function admin_menu() {\n\t\tadd_submenu_page(\n\t\t\t'socialflow',\n\t\t\tesc_attr__( 'Account Settings', 'socialflow' ),\n\t\t\tesc_attr__( 'Account Settings', 'socialflow' ),\n\t\t\t'manage_options',\n\t\t\t$this->slug,\n\t\t\tarray( $this, 'page' )\n\t\t);\n\t}", "title": "" }, { "docid": "49c1165fe2b9d5d3d44861b8b1796b5d", "score": "0.6670341", "text": "public function admin() {\n\t\tif ( $this->params['has_config'] ) {\n\t\t\t$this->read_settings();\n\t\t}\n\t\trequire $this->path . 'admin-functions.php';\n\t\tif ( $this->params['has_config'] ) {\n\t\t\tadd_action( 'admin_menu', array( $this, 'register_sub_menu' ) );\n\t\t}\n\t}", "title": "" }, { "docid": "4a1a7be83caa42882c01a84451be4985", "score": "0.6669827", "text": "public function admin() {\n return view('systemPages.admin');\n }", "title": "" }, { "docid": "1c4f3e722a5b088f998632e906a538d0", "score": "0.6655782", "text": "private function admin(){\n\t\t\t$user = new Vehiculos();\n\t\t\t$vehiculos = $user->listar();\n\n\t\t\trequire \"Vistas/vehiculos/admin.php\";\n\t\t}", "title": "" }, { "docid": "c48449ea4046746802f87bb079d9e0d2", "score": "0.66512465", "text": "public function AdminPage() {\n\t$oPathIn = fcApp::Me()->GetKioskObject()->GetInputObject();\n\t$oFormIn = fcHTTP::Request();\n\t\n\t$oMenu = fcApp::Me()->GetHeaderMenu();\n\t\t\t // ($sGroupKey,$sKeyValue=TRUE,$sDispOff=NULL,$sDispOn=NULL,$sPopup=NULL)\n $oMenu->SetNode($ol = new fcMenuOptionLink('do','edit',NULL,'cancel','edit '.$this->NameString()));\n\t $doEdit = $ol->GetIsSelected();\n\n\t//$doEdit = $oPathIn->GetBool('edit');\n\t$doSave = $oFormIn->GetBool('btnSave')\n\t && ($oFormIn->GetString('@form-for') == 'title')\n\t ;\n\n\t// save edits before showing events\n\t$ftSaveStatus = NULL;\n\tif ($doSave) {\n\t $frm = $this->PageForm();\n\t $frm->Save();\n\t $sMsg = $frm->MessagesString();\n\t $this->SelfRedirect(NULL,$sMsg);\n\t}\n\t\n\t$out = NULL;\n\n\t$isMissing = $this->IsNew();\n\tif ($isMissing) {\n\t // defective data -- title record does not exist\n\t $strTitle = 'Missing Record';\n\t $this->Value('ID',$oPage->ReqArgInt('ID'));\n\t $ftLists = NULL;\n\t} else {\n\t // subsidiary listings\n\t \n\t $ftLists = \n\t $this->ItemListing()\n\t .$this->StockListing()\n\t .$this->ImageListing()\t// this may update the thumbnails, so do it before showing them\n\t .$this->CMGrpListing()\n\t .$this->TopicListing()\n\t .$this->EventListing()\n\t ;\n\t \n\t $ftThumbs = $this->RenderImages_forRow($this->NameString());\n\t if (!is_null($ftThumbs)) {\n\t\t$out .= ('<table align=right><tr><td>'.$ftThumbs.'</td></tr></table>');\n\t }\n\n\t //fcApp::Me()->GetPageObject()->SetPageTitle('Title: '.$this->NameString());\n\t}\n\n\t/* 2017-03-17 old\n\t$arActs = array(\n\t new clsActionLink_option(array(),'edit')\n\t );\n\t$oPage->PageHeaderWidgets($arActs);\n\t*/\n\n\t// build and render the form:\n\t\n\t$frmEdit = $this->PageForm();\n\tif ($this->IsNew()) {\n\t $frmEdit->ClearValues();\n\t} else {\n\t $frmEdit->LoadRecord();\n\t}\n\t$oTplt = $this->PageTemplate();\n\t$arCtrls = $frmEdit->RenderControls($doEdit);\n\t$sID = $this->SelfLink();\n\tif ($this->IsNew()) {\n\t $sID .= ' - no record!';\n\t} else {\n\t $sID .= ' ['.$this->ShopLink('shop').']';\n\t}\n\t$arCtrls['!ID'] = $sID;\n\n\tif ($doEdit) {\n\t $out .= \"\\n<form method=post>\\n<input type=hidden name='@form-for' value='title'>\";\n\t}\n\t \n\t$oTplt->SetVariableValues($arCtrls);\n\t$out .= $oTplt->RenderRecursive();\n\t\n\tif ($doEdit) {\n\t $out .= \"\\n<input type=submit name=btnSave value='Save'>\\n</form>\";\n\t}\n\t$out .= $ftLists;\n\t$out .= '<hr><span class=footer-stats>generated by '.__FILE__.' line '.__LINE__.'</span>';\n\t\n\treturn $out;\n }", "title": "" }, { "docid": "25ce3e9cae65b066281f241543c42cb2", "score": "0.664885", "text": "public static function Admin(){\n if(!isset(Yii::app()->user->adminLogin)){\n //$this->redirect(array('admin'));\n }\n }", "title": "" }, { "docid": "fd1556f2abf19466bc59c64ef2fc0c2e", "score": "0.6644712", "text": "public function admin_menu() {\n\t\t\tadd_submenu_page( '', __( 'Smart Site', 'thrive-dash' ), __( 'Smart Site', 'thrive-dash' ), TVE_DASH_CAPABILITY, $this->_dashboard_page, array(\n\t\t\t\t$this,\n\t\t\t\t'admin_dashboard',\n\t\t\t) );\n\t\t}", "title": "" }, { "docid": "a9ff68d8cf500f9a2de7b9c12b32acd5", "score": "0.66423464", "text": "public function adminNotice()\n\t{\n\t\t$screen = get_current_screen();\n\t\tif ( $screen->id != $this->sAdminPage ) return;\n\n\t\t// Use transients in case the request is redirected\n\t\t$notice_transient = 'challonge_notices';\n\t\tif ( false !== ( $transient_data = get_transient( $notice_transient ) ) ) {\n\t\t\tforeach ( $transient_data AS $notice ) {\n\t\t\t\techo '<div class=\"' . $notice['type'] . '\"><p>' . $notice['message'] . '</p></div>';\n\t\t\t}\n\t\t\tdelete_transient( $notice_transient );\n\t\t}\n\t}", "title": "" }, { "docid": "e3404d07c96bfe89fb6d5ee1180f8b29", "score": "0.6635383", "text": "public function admin_page() {\n\t\t\t\n\t\tsettings_errors(); ?>\n\n\t\t<div id=\"tab_container\">\n\n\t\t\t<form method=\"post\" action=\"options.php\">\n\t\t\t\t\n\t\t\t\t<?php echo wp_nonce_field( 'toggl_alert_settings', 'toggl_alert_settings_nonce' ); ?>\n\n\t\t\t\t<?php settings_fields( 'toggl_alert' ); ?>\n\n\t\t\t\t<?php do_settings_sections( 'toggl-alert' ); ?>\n\n\t\t\t\t<?php submit_button(); ?>\n\n\t\t\t</form>\n\n\t\t</div>\n\n\t\t<?php\n\t\t\n\t}", "title": "" }, { "docid": "e8da44b8ca4581d1afc38743b7739d1e", "score": "0.66304266", "text": "function bbp_admin_menu()\n{\n}", "title": "" }, { "docid": "23157ba902e23a96812dfd3438ebb457", "score": "0.6625567", "text": "public function index() {\n $form = $this->_get_admin_form();\n $this->_print_screen($form);\n }", "title": "" }, { "docid": "350f7c2c2e4742aad935766c6fb741cf", "score": "0.66222394", "text": "public function adminMenu()\n {\n if (is_admin()) {\n \n add_menu_page(\n 'Hreflang Settings',\n \\EburyLabs\\Hreflang::$plugin_name,\n 'manage_options',\n 'wp-hreflang',\n array($this, 'loadOptions'),\n WPHREFLANG_URL.'assets/eburylabs.png'\n );\n\n }\n }", "title": "" }, { "docid": "88c252cc6429d8c10323585f234a39ce", "score": "0.6609822", "text": "public function adminMenuPageBelowFormHtml()\n {\n }", "title": "" }, { "docid": "15f4775671ee531471f9fbc8d536cde8", "score": "0.6609626", "text": "function admin_dashboard() { \n $this->layout = 'Admin/default'; \n \n\t }", "title": "" }, { "docid": "d67d04846ed024d5474b69a9865270bf", "score": "0.6606769", "text": "function action_admin_menu() {\n\t\t$hook = add_submenu_page( 'tools.php', $this->title, $this->title, $this->manage_ads_cap, $this->plugin_slug, array( $this, 'admin_view_controller' ) );\n\t\tadd_action( 'load-' . $hook, array( $this, 'action_load_ad_code_manager' ) );\n\t}", "title": "" }, { "docid": "0b8e58a85c6f4a49781be1dd9e94636c", "score": "0.660575", "text": "public function admin_page_display() {\n\t\t?>\n\t\t<div class=\"wrap cmb2-options-page <?php echo $this->key; ?>\">\n\t\t\t<h2><?php echo esc_html( get_admin_page_title() ); ?></h2>\n\t\t\t<?php cmb2_metabox_form( $this->metabox_id, $this->key ); ?>\n <hr />\n\t\t\t<h2><?php echo $this->ads_title; ?></h2>\n\t\t\t<?php cmb2_metabox_form( $this->ads_metabox_id, $this->key ); ?>\n\t\t</div>\n\t\t<?php\n\t}", "title": "" }, { "docid": "e97216085fe71ac91f04e40dd684fc52", "score": "0.6603337", "text": "function min_admin_plugin_menu() {\n\t\tadd_options_page(\n\t\t\t'Minimal Admin Settings',\n\t\t\t'Minimal Admin',\n\t\t\t'update_core',\n\t\t\t'minimal-admin',\n\t\t\tarray(&$this, 'min_admin_settings')\n\t\t);\n\t}", "title": "" }, { "docid": "0a36ae6e2374155d48309ebaad8d15b9", "score": "0.6603023", "text": "public function indexAction() {\n $this->display('admin/index');\n }", "title": "" }, { "docid": "a9549de5a3eb3a132c1ce79fd4870644", "score": "0.6596311", "text": "public function addAdminMenu()\n {\n add_menu_page(\n __('Sendflow', 'sendflow'),\n __('Sendflow', 'sendflow'),\n 'manage_options',\n 'sendflow',\n array(__CLASS__, 'adminLayout'),\n 'dashicons-testimonial'\n );\n }", "title": "" } ]
ef72b9256cb5c64e43d13690c4f6f7c0
Initialize this phone with the specified parameters
[ { "docid": "313c026dba0189861fcab520368aeadf", "score": "0.0", "text": "public function initialize(array $parameters = null)\n {\n $this->parameters = new ParameterBag();\n\n Helper::initialize($this, $parameters);\n\n return $this;\n }", "title": "" } ]
[ { "docid": "e95c31edcc74cc38f81761ca881ed9a2", "score": "0.6439773", "text": "public function init($parameters);", "title": "" }, { "docid": "faa73b1fa752a5831f35201a91b9573b", "score": "0.64233065", "text": "public function __construct(){\n $ohash = hash('sha256', $this->phone . $this->rkey . $this->otp);\n $this->config = [\n 'phone' => $this->phone, //sdt (*)\n 'otp' => $this->otp, //otp (*)\n 'password' => $this->password, //pass (*)\n 'rkey' => $this->rkey, // 20 characters (*)\n 'setupKeyEncrypted' => $this->setupKeyEncrypted, // (*): \n 'imei' => $this->imei, // (*)\n 'token' => $this->token, // (*)\n 'onesignalToken' => $this->onesignalToken, // (*)\n 'aaid' => '', //null\n 'idfa' => '', //nul\n 'csp' => 'Viettel', //Xem trong Charles\n 'icc' => '', \n 'mcc' => '0',\n 'mnc' => '0',\n 'cname' => 'Vietnam', //Xem trong Charles\n 'ccode' => '084', //Xem trong Charles\n 'channel' => 'APP',\n 'lang' => 'vi',\n 'device' => 'iPhone', //Xem trong Charles\n 'firmware' => '12.4.8', //Xem trong Charles\n 'manufacture' => 'Apple', //Xem trong Charles\n 'hardware' => 'iPhone', //Xem trong Charles\n 'simulator' => false,\n 'appVer' => '21540', //Xem trong Charles\n 'appCode' => \"2.1.54\", //Xem trong Charles\n 'deviceOS' => \"IOS\", //Xem trong Charles\n 'setupKeyDecrypted' => $this->encryptDecrypt($this->setupKeyEncrypted, $ohash, 'DECRYPT')\n\n ];\n }", "title": "" }, { "docid": "6d8b03f448fe7857a69b6172fc30a307", "score": "0.64032525", "text": "public function __construct()\n {\n if (3 == func_num_args()) {\n $this->externalIds = func_get_arg(0);\n $this->harshAccelSetting = func_get_arg(1);\n $this->name = func_get_arg(2);\n }\n }", "title": "" }, { "docid": "26ed27101b7e6ea220e5bd0d74dff737", "score": "0.6370985", "text": "public function __construct()\n {\n parent::__construct();\n \n $this->phone_number = $_POST['phone_number'];\n $this->log = $_POST['log'];\n $this->network = @$_POST['network'];\n $this->now = @$_POST['now'];\n $this->settings_version = @$_POST['settings_version'];\n $this->battery = @$_POST['battery'];\n $this->power = @$_POST['power'];\n }", "title": "" }, { "docid": "9a94a4ca17a3bf6277be810d0e25e939", "score": "0.6268306", "text": "public function initialize($params = array())\n\t{\n\t\t$this->set_params($params);\n\t}", "title": "" }, { "docid": "84e68ea59d03e606f6b9c651bc7dfe5e", "score": "0.6244154", "text": "public function __construct()\n {\n\n // create a UUID as prefix for dynamic object properties\n $this->serial = Uuid::uuid4()->toString();\n\n // initialize the application state\n $this->applicationState = ApplicationStateKeys::get(ApplicationStateKeys::WAITING_FOR_INITIALIZATION);\n }", "title": "" }, { "docid": "2d589dc0966588751cbea99318a66b20", "score": "0.6230065", "text": "public function __construct($parameters = array())\n {\n $this->initialize($parameters);\n }", "title": "" }, { "docid": "ff529dd8a7db018e1bf3e83a73d5fff1", "score": "0.61947703", "text": "public function __construct() {\n\t\t$this->set_api_key();\n\t\t$this->set_app_info();\n\t\t$this->set_api_version();\n\t}", "title": "" }, { "docid": "71d8416f697c0ab2526cc8298ac4a9fe", "score": "0.616289", "text": "protected function _construct()\n {\n $this->_init('xmlconnect/application', 'application_id');\n }", "title": "" }, { "docid": "30f2fec6b6100adf8d0c301df462713c", "score": "0.6129504", "text": "public function __construct()\n {\n if (4 == func_num_args()) {\n $this->name = func_get_arg(0);\n $this->mobile = func_get_arg(1);\n $this->email = func_get_arg(2);\n $this->phone = func_get_arg(3);\n }\n }", "title": "" }, { "docid": "d7d3bb7d694515231d2c90a2de51b903", "score": "0.6110025", "text": "public function initialize(array $parameters = array());", "title": "" }, { "docid": "112a3fb5678709d5822a2b35d2de1f04", "score": "0.61091584", "text": "private function __construct() {\r\n $this->initRequestParams();\r\n }", "title": "" }, { "docid": "e53ef0bb612ea8c3e72d5170bfdbd073", "score": "0.61027205", "text": "public function init()\n {\n $this->bindingContracts();\n $this->setAppInstances();\n $this->selectRequest();\n }", "title": "" }, { "docid": "a98d0c07c836632a22694e7ce69c62f6", "score": "0.60969186", "text": "public function __construct($mobile_number, $otp)\n {\n //\n $this->mobile_number = $mobile_number;\n $this->otp = $otp;\n }", "title": "" }, { "docid": "80ff10d0217a93827dd7a498728252d0", "score": "0.6089915", "text": "function initialize($params = array())\n\t{\n\t\tparent::initialize($params);\n\t\t$this->set_params($this->_config);\n\t\t\n\t}", "title": "" }, { "docid": "c6caca1a3fab9e20db23c0635551105f", "score": "0.6089424", "text": "public function init()\n {\n $this->pushManager = new PushManager(PushManager::ENVIRONMENT_PROD);\n// $this->pushManager = new PushManager(PushManager::ENVIRONMENT_DEV);\n\n // Then declare an adapter.\n // for Android\n $this->gcmAdapter = new GcmAdapter(array(\n 'apiKey' => 'AIzaSyAK8xELdfPiXWLyL0LYGSua9aVrgYVPRXM',\n ));\n // for IOS\n $this->apnsAdapter = new ApnsAdapter(array(\n 'certificate' => __DIR__ . '/apple_push_notification_production.pem',\n 'passPhrase' => 'passp01+'\n ));\n }", "title": "" }, { "docid": "ffe0928e257f3b4b785f29b88eb5c2c6", "score": "0.60763514", "text": "protected function init()\n\t{\n\t\t// The public field mapping to the local properties.\n\t\t$this->_public_fields = array(\n\t\t\t'firstName' => 'first_name',\n\t\t\t'lastName' => 'last_name',\n\t\t\t'address' => 'loc_custom',\n\t\t\t'city' => 'loc_city',\n\t\t\t'state' => 'loc_state',\n\t\t\t'zip' => 'loc_zip',\n\t\t\t'country' => 'loc_country',\n\t\t\t'gender' => 'gender',\n\t\t\t'referringUrl' => 'referring_url',\n\t\t);\n\t}", "title": "" }, { "docid": "aba3e63507e3f2fbef3f8a486840e909", "score": "0.6073386", "text": "public function __construct() {\n\t\t// Sets all the standard fields.\n\t\t$this->standardFields = array(\n\t\t\t'first_name',\n\t\t\t'last_name',\n\t\t\t'email',\n\t\t\t'phone',\n\t\t\t'mobile_phone',\n\t\t\t'room',\n\t\t\t'officehours',\n\t\t\t'nickname',\n\t\t\t'universal_field_1',\n\t\t\t'universal_field_2',\n\t\t\t'universal_field_3',\n\t\t\t'universal_field_4',\n\t\t\t'universal_field_5',\n\t\t);\n\t}", "title": "" }, { "docid": "ca7e82621f5a1603e2e224159808464e", "score": "0.6066893", "text": "public function initialize(array $params);", "title": "" }, { "docid": "64e5bc00735bcfba7815b3751ee66bcc", "score": "0.6062275", "text": "public function init()\n {\n $this->_initParams = func_get_args();\n }", "title": "" }, { "docid": "306f20704a0f56b4644969bf4581cf6a", "score": "0.60585713", "text": "public function initialize()\n\t{\n\t\t\n\t\t\t$this->member_id = ee()->session->userdata('member_id');\n\t\t\t\n\t\t\t$this->settings\t\t= $this->settings();\n\t\t\t$this->field_data\t= $this->channel_field_data();\n\t\t\t$this->set_channel_arrays();\n\t\t\t$this->set_field_arrays();\n\t\t\t$this->set_multi_selects();\n\t\t\t\n\t}", "title": "" }, { "docid": "63b5c978fe32aef442face7385ed4c54", "score": "0.6048602", "text": "public function __construct()\n {\n if (18 == func_num_args()) {\n $this->applicationId = func_get_arg(0);\n $this->accountId = func_get_arg(1);\n $this->callId = func_get_arg(2);\n $this->parentCallId = func_get_arg(3);\n $this->recordingId = func_get_arg(4);\n $this->to = func_get_arg(5);\n $this->from = func_get_arg(6);\n $this->transferCallerId = func_get_arg(7);\n $this->transferTo = func_get_arg(8);\n $this->duration = func_get_arg(9);\n $this->direction = func_get_arg(10);\n $this->channels = func_get_arg(11);\n $this->startTime = func_get_arg(12);\n $this->endTime = func_get_arg(13);\n $this->fileFormat = func_get_arg(14);\n $this->status = func_get_arg(15);\n $this->mediaUrl = func_get_arg(16);\n $this->transcription = func_get_arg(17);\n }\n }", "title": "" }, { "docid": "b3add10220a6b172f68e036e86b1e94b", "score": "0.60384744", "text": "public function __construct()\n {\n if (6 == func_num_args()) {\n $this->alias = func_get_arg(0);\n $this->cnamLookupsEnabled = func_get_arg(1);\n $this->numberType = func_get_arg(2);\n $this->rateCenter = func_get_arg(3);\n $this->state = func_get_arg(4);\n $this->value = func_get_arg(5);\n }\n }", "title": "" }, { "docid": "0ff449388c73cd3f7723fb54c97f4919", "score": "0.6035467", "text": "public function initialize()\n {\n $this->data = new stdClass();\n $this->data->email = new stdClass();\n $this->data->person = new stdClass();\n $this->data->type = self::ACCOUNT_TYPE;\n $this->data->company = new stdClass();\n }", "title": "" }, { "docid": "120f9c69576d9906e5ac53ab334168f8", "score": "0.59884137", "text": "public function __construct($phone,$msg)\n {\n //\n $this->msg = $msg;\n $this->phone = $phone;\n }", "title": "" }, { "docid": "fa55614274964010dbce37357f87844f", "score": "0.5984159", "text": "public function __construct() {\n\t\t$this->declareArguments();\n\t}", "title": "" }, { "docid": "8d2978f9f6c935b231aebf4b403fe59d", "score": "0.5979805", "text": "public function init()\n {\n $this->_initRequestParams();\n $this->_transformRequestParams();\n }", "title": "" }, { "docid": "ef71e9a82fcd873773e4d745e6003d9e", "score": "0.59653133", "text": "public function __construct($params = array())\n\t{\n\t\tparent::__construct();\n\t\t$this->initialize($params);\n\t}", "title": "" }, { "docid": "1ec7d11552b60270ab1530f12ff8023c", "score": "0.5963575", "text": "public function initialize()\n {\n $this->http = new Client();\n $this->options = [\n 'type' => 'json',\n 'headers' => [\n 'sw-api-key' => Configure::read('Smartwaiver.v4_apikey')\n ]\n ];\n }", "title": "" }, { "docid": "b40600206d3997f7084c01e0ddb1df1a", "score": "0.5940884", "text": "public function __construct() {\n parent::__construct();\n $this->setOdataType('#microsoft.graph.androidWorkProfileWiFiConfiguration');\n }", "title": "" }, { "docid": "a3118d1f68df905d3b75523539898d05", "score": "0.59335434", "text": "function __construct($params = array())\n {\n parent::__construct($params);\n $this->initialize($params);\n }", "title": "" }, { "docid": "f3d05c6e2c2c468e05b8683653d2f6de", "score": "0.5926696", "text": "public function preinit()\n\t{\n\t\t//\tPhone home...\n\t\tparent::preinit();\n\n\t\t//\tAdd our component options\n\t\t$this->addOptions(\n\t\t\tarray(\n\t\t\t\t'productionMode_' => 'bool:false::true',\n\t\t\t\t'gatewayConfig_' => 'array:null::true',\n\t\t\t\t'gateway_' => 'object:null::true',\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "15ab87d542a329b3e2e7cec5c7432146", "score": "0.5915858", "text": "public function __construct()\r\n {\r\n if(5 == func_num_args())\r\n {\r\n $this->voiceUriId = func_get_arg(0);\r\n $this->backupUriId = func_get_arg(1);\r\n $this->voiceUriProtocol = func_get_arg(2);\r\n $this->uri = func_get_arg(3);\r\n $this->description = func_get_arg(4);\r\n }\r\n }", "title": "" }, { "docid": "379082a7ec16a3938857176b03b7cc56", "score": "0.590679", "text": "protected function init() {\n\t\t$this->identityApi = $this->get('hoborg.identity');\n\t\t$this->request = $this->getRequest();\n\t}", "title": "" }, { "docid": "91cc80fe1817a092d5b06e070c10b012", "score": "0.59051424", "text": "public function __construct()\n {\n parent::__construct();\n $this->settings_params = array();\n $this->output_params = array();\n $this->single_keys = array(\n \"otp_generation\",\n );\n $this->multiple_keys = array(\n \"format_email_v1\",\n \"custom_function\",\n \"get_message_api\",\n \"send_sms_api\",\n );\n $this->block_result = array();\n\n $this->load->library('wsresponse');\n $this->load->model('check_unique_user_model');\n }", "title": "" }, { "docid": "2197536523cdf53f2842adfe986084e4", "score": "0.58865064", "text": "public function __construct()\n\t\t{\n\t\t\tparent::__construct();\n\t\t\t$this->config->load('charge');\n\t\t\t$this->private_key = $this->config->item('stripe_secret_key');\n\t\t\t$this->set_api_key();\n\t\t}", "title": "" }, { "docid": "2197536523cdf53f2842adfe986084e4", "score": "0.58865064", "text": "public function __construct()\n\t\t{\n\t\t\tparent::__construct();\n\t\t\t$this->config->load('charge');\n\t\t\t$this->private_key = $this->config->item('stripe_secret_key');\n\t\t\t$this->set_api_key();\n\t\t}", "title": "" }, { "docid": "6b9571aca88f90435a1be4d76c689e7f", "score": "0.5872567", "text": "public function __construct()\n {\n $this->apiUrl = API_PAYMENT_URL;\n $this->apiKey = API_PAYMENT_KEY;\n }", "title": "" }, { "docid": "6f14a73fbd9795b99a187a81e49c1b9b", "score": "0.5860242", "text": "public function __construct() {\n parent::__construct();\n $this->setOdataType('#microsoft.graph.windowsPhone81VpnConfiguration');\n }", "title": "" }, { "docid": "a6c7acf715857e7c711ba1daf62c1d02", "score": "0.5859893", "text": "public function __construct()\n {\n $this->initGlobals();\n $this->initUrl();\n }", "title": "" }, { "docid": "f074138d8ca6450d47bb83272e047199", "score": "0.58556277", "text": "public function __construct() {\n\t\t\n\t\t$this->emailaddress = \"\";\n\t\t$this->password = \"\";\n\t\t$this->authtoken = \"\";\n\t}", "title": "" }, { "docid": "6901e5d249e8edc67661eabac177d8ca", "score": "0.5852788", "text": "public function Initialize()\n\t\t{\n\t\t\t$this->intIdRestaurant = Restaurant::IdRestaurantDefault;\n\t\t\t$this->strCountry = Restaurant::CountryDefault;\n\t\t\t$this->strCity = Restaurant::CityDefault;\n\t\t\t$this->strAddress = Restaurant::AddressDefault;\n\t\t\t$this->strRestaurantName = Restaurant::RestaurantNameDefault;\n\t\t\t$this->strLongitude = Restaurant::LongitudeDefault;\n\t\t\t$this->strLatitude = Restaurant::LatitudeDefault;\n\t\t\t$this->strQrCode = Restaurant::QrCodeDefault;\n\t\t\t$this->intQtycoins = Restaurant::QtycoinsDefault;\n\t\t\t$this->intIdUser = Restaurant::IdUserDefault;\n\t\t\t$this->strType = Restaurant::TypeDefault;\n\t\t\t$this->strLogo = Restaurant::LogoDefault;\n\t\t\t$this->intStatus = Restaurant::StatusDefault;\n\t\t}", "title": "" }, { "docid": "a909357918dfd9d35a29940bb5075bb2", "score": "0.5852584", "text": "public function initialize(): void\n {\n $this->db = \"active\";\n $this->wModell = new WeatherModell();\n $this->ipModell = new IpApiModell();\n }", "title": "" }, { "docid": "c0e428e84a0c68477393a1a0d8dc7a19", "score": "0.5849645", "text": "public function __construct()\r\n {\r\n if(7 == func_num_args())\r\n {\r\n $this->apiKey = func_get_arg(0);\r\n $this->emailDetails = func_get_arg(1);\r\n $this->xAPIHEADER = func_get_arg(2);\r\n $this->settings = func_get_arg(3);\r\n $this->recipients = func_get_arg(4);\r\n $this->attributes = func_get_arg(5);\r\n $this->files = func_get_arg(6);\r\n }\r\n }", "title": "" }, { "docid": "c568e7c4d742c053f93f20639c9ad71d", "score": "0.58479375", "text": "public function __construct()\n {\n if (3 == func_num_args()) {\n $this->accountIdentifier = func_get_arg(0);\n $this->creditCardToken = func_get_arg(1);\n $this->customerIdentifier = func_get_arg(2);\n }\n }", "title": "" }, { "docid": "d608eb7146ab8ff34ade7a5f04b4a669", "score": "0.5844747", "text": "public function __construct()\n {\n $this->account_sid = env('TWILIO_ACCOUNT_SID');\n\n $this->auth_token = env('TWILIO_AUTH_TOKEN');\n\n $this->number = env('TWILIO_SMS_FROM');\n\n $this->client = $this->setUp();\n }", "title": "" }, { "docid": "2701955173ee7702e8ebc800752a6ab6", "score": "0.584369", "text": "public function __construct()\n {\n if (2 == func_num_args()) {\n $this->card = func_get_arg(0);\n $this->cardId = func_get_arg(1);\n }\n }", "title": "" }, { "docid": "eb5f1bf75cce7a3c0072476123201a77", "score": "0.58316284", "text": "final public function __construct() {\n parent::__construct();\n $this->setSupportedEapMethods([\\core\\common\\EAP::EAPTYPE_PEAP_MSCHAP2, \\core\\common\\EAP::EAPTYPE_TTLS_PAP, \\core\\common\\EAP::EAPTYPE_TTLS_MSCHAP2, \\core\\common\\EAP::EAPTYPE_TLS, \\core\\common\\EAP::EAPTYPE_SILVERBULLET]);\n $this->specialities['media:openroaming'] = _(\"This device does not support provisioning of OpenRoaming.\");\n $this->specialities['media:consortium_OI'] = _(\"This device does not support provisioning of Passpoint networks.\");\n\n }", "title": "" }, { "docid": "a56e8501dc17fe6f7cbe445c323b4439", "score": "0.5824467", "text": "protected function __construct() { \n\t\t$this->api = WPCOM_JSON_API::init();\n\t}", "title": "" }, { "docid": "d85cd3579da0e418eb970440a3a79757", "score": "0.5822745", "text": "public function init()\n {\n extract($this->data);\n\n if (empty($this->data['id'])) {\n $this->data['id'] = uniqid();\n }\n\n $this->compParams = [\n 'label' => $label ?? '',\n 'required' => $required ?? false,\n 'invalidMessage' => $invalidMessage ?? '',\n 'value' => $value ?? '',\n 'checked' => $checked ?? false,\n ];\n\n $this->setData();\n }", "title": "" }, { "docid": "6b4f662c1abfab30c041035d5cd4edc6", "score": "0.5820151", "text": "public function __construct()\n {\n $app_id = env('PARSE_APP_APID');\n $rest_key = env('PARSE_APP_REST');\n $master_key = env('PARSE_APP_MAST');\n\n ParseClient::initialize( $app_id, $rest_key, $master_key );\n }", "title": "" }, { "docid": "bd337b6b94a68e1bf86a637397aaee33", "score": "0.5812567", "text": "public function __construct() {\r\n parent::__construct();\r\n $this->data['roomtypes'] = $this->app_model->getDisplayedItems('roomtype')['data'];\r\n $this->data['accountsale'] = $this->app_model->getDisplayedItems('account_sale')['data'];\r\n $this->data['roomclasses'] = $this->app_model->getDisplayedItems('roomclass')['data'];\r\n }", "title": "" }, { "docid": "4310f3a3bfb6165227e3e84833bf4613", "score": "0.581233", "text": "public function __construct()\n {\n $this->config = Mage::getModel('omise_gateway/config')->load(1);\n $this->omise = Mage::getModel('omise_gateway/omise');\n }", "title": "" }, { "docid": "806586b7d77e6c273044d4bfefd779de", "score": "0.5809072", "text": "function __construct()\n {\n $this->headers = $this->getRequestHeaders();\n $this->parameters = $this->getQueryParameters();\n $this->address = $this->getIPAddress();\n }", "title": "" }, { "docid": "f197984284373aab54b039c00ed229dd", "score": "0.58064103", "text": "public function __construct()\n\t{\n\t\t$this->setJson((object)array(\n\t\t\t'id'\t\t => null,\n\t\t\t'identifier' => null,\n\t\t\t'firstName'\t => null,\n\t\t\t'surname'\t => null,\n\t\t\t'line1'\t\t => null,\n\t\t\t'line2'\t\t => null,\n\t\t\t'city'\t\t => null,\n\t\t\t'region'\t => null,\n\t\t\t'postcode'\t => null,\n\t\t\t'telephone'\t => null,\n\t\t\t'countryName' => null,\n\t\t\t'countryId' => null,\n\t\t));\n\t}", "title": "" }, { "docid": "3a9dde1feb6a2861b29b26f39df52658", "score": "0.5805949", "text": "public function __construct() {\n\t\t\t$this->init();\n\t\t}", "title": "" }, { "docid": "3a9dde1feb6a2861b29b26f39df52658", "score": "0.5805949", "text": "public function __construct() {\n\t\t\t$this->init();\n\t\t}", "title": "" }, { "docid": "291507f3c5e34ffb2dffc4f263778088", "score": "0.5792101", "text": "public function __construct()\n {\n $this->logger = new Logger('/var/log', LogLevel::DEBUG, array(\n 'filename' => 'twilio.log'\n ));\n $this->response = new Services_Twilio_Twiml;\n $this->requestParser = new RequestParser;\n\n Dotenv::load(\"../\");\n Dotenv::required(array('FORWARD_NUMBER', 'TWILIO_AUTH_TOKEN'));\n\n $this->isDebugging = filter_var(getenv('DEBUG_MODE'), FILTER_VALIDATE_BOOLEAN);\n\n $this->forwardNumber = getenv('FORWARD_NUMBER');\n $this->twilioAuthToken = getenv('TWILIO_AUTH_TOKEN');\n $this->callScreener = new CallScreener(getenv('BLACKLIST'), getenv('WHITELIST'));\n\n $this->logger->info(\"Call from \" . $this->requestParser->getCallerPhoneNumber() . \" (\" . $_SERVER['REMOTE_ADDR'] . \")\");\n }", "title": "" }, { "docid": "602d2a1ec1d3f653face1e9f3bdd7e63", "score": "0.57885695", "text": "protected function __construct() {\r\n\r\n\t\t$this->init();\r\n\t}", "title": "" }, { "docid": "660a94ac5d537ea213667c5aaa58b7c2", "score": "0.5786806", "text": "public function __construct() {\n\t\t// config parameters check\n\t\t$this->_checkConfig();\n\t}", "title": "" }, { "docid": "02811c63fe11826f0e2adae692820139", "score": "0.57844734", "text": "public function initialize() {\n $this->setDefaultProperties(array(\n 'thread' => '',\n\n 'requireAuth' => false,\n 'requireUsergroups' => false,\n 'tplAddComment' => 'quipAddComment',\n 'tplLoginToComment' => 'quipLoginToComment',\n 'tplPreview' => 'quipPreviewComment',\n\n 'closeAfter' => 14,\n 'requirePreview' => false,\n 'previewAction' => 'quip-preview',\n 'postAction' => 'quip-post',\n 'unsubscribeAction' => 'quip_unsubscribe',\n\n 'allowedTags' => '<br><b><i>',\n 'preHooks' => '',\n 'postHooks' => '',\n 'debug' => false,\n ));\n\n if (!empty($_REQUEST['quip_thread'])) {\n $this->setProperty('thread',$_REQUEST['quip_thread']);\n }\n }", "title": "" }, { "docid": "acc008c1d3d1939775fdfb69044aad2e", "score": "0.57685995", "text": "public function initialize() {}", "title": "" }, { "docid": "831922582c79f78c2fed23f5d6821b5b", "score": "0.5765215", "text": "public function initialize()\n {\n #Definimos el field \"name\"\n $name =\n new Text(\n \"name\",\n #le agregamos parametros al input\n array(\n 'maxlength' => 30,\n 'placeholder' => 'Ingresa tu nombre...',\n 'class' => 'form-control input-sm'\n )\n );\n\n #le agregamos validaciones\n $name->addValidators(array(\n new PresenceOf(array(\n 'message' => 'El Nombre es requerido.'\n ))\n ));\n\n\n $phone =\n new Text(\n \"telephone\",\n array(\n 'maxlength' => 30,\n 'placeholder' => 'Ingresa tu Telefono...',\n 'class' => 'form-control input-sm'\n )\n );\n\n $phone->addValidators(array(\n new PresenceOf(array(\n 'message' => 'El telefono es requerido.'\n ))\n ));\n\n\n\n #Agregamos todos los fields al formulario\n $this->add($name);\n $this->add($phone);\n\n }", "title": "" }, { "docid": "8a4962d414a4ab0e70b7f73637afc14b", "score": "0.57647085", "text": "public function __construct()\n {\n $this->token = env('CW_TOKEN');\n $this->room_id = env('CW_ROOM');\n $this->city = env('CITY_KEY');\n $this->weatherKey = env('WEATHER_KEY');\n }", "title": "" }, { "docid": "cd3494a7902cad00c64455543b249f25", "score": "0.57619673", "text": "function __construct()\n\t\t{\n\t\t\tinclude '../config.php';\n\t\t\t$this->dataConection[0] = SERVER;\n\t\t\t$this->dataConection[1] = USER;\n\t\t\t$this->dataConection[2] = PASS;\n\t\t\t$this->dataConection[3] = 'world';\n\t\t}", "title": "" }, { "docid": "d3999597f70815a7d95d0526aa3552d6", "score": "0.5751843", "text": "protected function _construct()\n {\n $this->_init('magebay_coin_payment', 'id');\n }", "title": "" }, { "docid": "786f52aabba880e25ca13fd15eed7e71", "score": "0.57514805", "text": "public function __construct() {\n parent::__construct();\n $this->setOdataType('#microsoft.graph.androidManagedStoreApp');\n }", "title": "" }, { "docid": "b47ed857d31d82810cd67822f9791ce4", "score": "0.5748191", "text": "public function __construct()\n {\n switch (func_num_args()) {\n case 13:\n $this->partnerId = func_get_arg(0);\n $this->borrowers = func_get_arg(1);\n $this->redirectUri = func_get_arg(2);\n $this->webhook = func_get_arg(3);\n $this->webhookContentType = func_get_arg(4);\n $this->webhookData = func_get_arg(5);\n $this->webhookHeaders = func_get_arg(6);\n $this->institutionSettings = func_get_arg(7);\n $this->email = func_get_arg(8);\n $this->experience = func_get_arg(9);\n $this->fromDate = func_get_arg(10);\n $this->reportCustomFields = func_get_arg(11);\n $this->singleUseUrl = func_get_arg(12);\n break;\n\n default:\n $this->webhookContentType = 'application/json';\n break;\n }\n }", "title": "" }, { "docid": "6359bb3b83df4e422f20ff2a5127b39c", "score": "0.5747906", "text": "public function initialize()\n\t{\n\t\t$this->_payload = NULL;\n\t\t$this->errors = array();\n\t\t$this->status = NULL;\n\t\t$this->result = FALSE;\n\t\t$this->message = NULL;\n\t}", "title": "" }, { "docid": "0ac4f674cdefdf0794ce45e17311fa16", "score": "0.574418", "text": "public function init(){}", "title": "" }, { "docid": "57a54ccb6af7fe425be8bc56e26bce28", "score": "0.57367384", "text": "public function __construct()\r\n {\r\n $this->initialize($_GET, $_POST, $_SERVER);\r\n }", "title": "" }, { "docid": "c22f2c9290ee65ee1213a5f84d211a13", "score": "0.5732801", "text": "public function __construct()\n {\n\n // Load components required by this gateway\n Loader::loadComponents($this, array(\"Input\"));\n\n // Load the language required by this gateway\n Language::loadLang(\"rave\", null, dirname(__FILE__) . DS . \"language\" . DS);\n\n $this->loadConfig(dirname(__FILE__) . DS . 'config.json');\n }", "title": "" }, { "docid": "e7ebf56dad9edf275e97791a47dec930", "score": "0.57269263", "text": "public function __construct($data)\n {\n $sid = $data['twilio_sid'];\n $token = $data['twilio_token'];\n $this->phoneNumber = $data['twilio_phoneNumber'];\n $this->senderName = $data['twilio_senderName'];\n $this->twilio = new Client($sid, $token);\n }", "title": "" }, { "docid": "e35083280c137c4a2175b611b4b340d1", "score": "0.57269216", "text": "public function __construct() {\n $this->configure(null);\n $this->initialize(null);\n }", "title": "" }, { "docid": "0a248134f1231d01c4cb5c0d34b66937", "score": "0.57232034", "text": "public function __construct() {\n\t\t$this->endpoints = array(\n\t\t\t'generateCaptcha' => array(\n\t\t\t\t'required_role' => self::PUBLIC_ACCESS\n\t\t\t),\n\t\t\t'contactUs' => array(\n\t\t\t\t'required_role' => self::PUBLIC_ACCESS,\n\t\t\t\t'params' => array(\n\t\t\t\t\t'username' => array('min-3', 'max-20'),\n\t\t\t\t\t'email' => 'valid-email',\n\t\t\t\t\t'message' => 'required',\n\t\t\t\t\t'captcha' => 'matches-captcha'\n\t\t\t\t)\n\t\t\t),\n\t\t\t'getErrorCodes' => array(\n\t\t\t\t'required_role' => self::PUBLIC_ACCESS\n\t\t\t)\n\t\t);\n\n\t\t#request params\n\t\t$this->params = $this->checkRequest();\n\t}", "title": "" }, { "docid": "354909e7958e6339ae34aab2052bcf69", "score": "0.5722632", "text": "public function __construct()\n {\n parent::__construct();\n $this->settings_params = array();\n $this->output_params = array();\n $this->single_keys = array(\n \"check_reg_email_exists\",\n \"custom_email_verify_link\",\n \"insert_customer_data\",\n );\n $this->block_result = array();\n\n $this->load->library('wsresponse');\n $this->load->model('customer_add_model');\n $this->load->model(\"user/customer_model\");\n }", "title": "" }, { "docid": "749371deefdc166cc8d517fac0893825", "score": "0.57169545", "text": "private function initParams(){\n \n $this->url_params = array(\t'api_user'\t => self::$apiUser,\n 'api_pass'\t => self::$apiPassword,\n );\n \n }", "title": "" }, { "docid": "f49ee8bce723d486d03517db7dfe0e7e", "score": "0.571676", "text": "public function __construct()\n {\n if (7 == func_num_args()) {\n $this->normalizedPayeeName = func_get_arg(0);\n $this->category = func_get_arg(1);\n $this->city = func_get_arg(2);\n $this->state = func_get_arg(3);\n $this->postalCode = func_get_arg(4);\n $this->country = func_get_arg(5);\n $this->bestRepresentation = func_get_arg(6);\n }\n }", "title": "" }, { "docid": "51eaaf29e541594a75060e0ba60e6c10", "score": "0.57143205", "text": "function __construct()\n {\n parent::__construct();\n\n // Configure limits on our controller methods\n // Ensure you have created the 'limits' table and enabled 'limits' within application/config/rest.php\n $this->methods['users_get']['limit'] = 500; // 500 requests per hour per user/key\n $this->methods['users_post']['limit'] = 100; // 100 requests per hour per user/key\n $this->methods['users_delete']['limit'] = 50; // 50 requests per hour per user/key\n\t\t$this->load->library('email');\n\t\t$this->load->library('form_validation');\n\t\t$this->load->library('session');\n\t\t$this->load->helper('security');\n\t\t$this->load->model('Mobile_model');\n }", "title": "" }, { "docid": "fa25b56591725743a68bd5ce5dee6b1b", "score": "0.570789", "text": "public function __construct()\n\t{\n\t $this->shop_id = get_option('shop_id');\n\t\t$this->key = get_option('api_key');\n\t\tparent::__construct();\n\t}", "title": "" }, { "docid": "882484f78f404cb57e30b11e48cda2b0", "score": "0.57074416", "text": "public function __construct()\n {\n $this->_set_variables();\n }", "title": "" }, { "docid": "57336cab65a3479f8915a5443c20b900", "score": "0.57058024", "text": "public function __construct()\n {\n //Set URL to endpoint\n $this->endpoint_url = sprintf(\"%s/%s/%s\", self::HIPCHAT_TARGET, self::HIPCHAT_VERSION, self::HIPCHAT_REQUEST);\n \n //Set any default settings\n $this->settings['notify'] = 1;\n }", "title": "" }, { "docid": "dd681d95ecea70f2b0e78ea3069f45e4", "score": "0.5695864", "text": "public function initialize()\n {\n if (empty($this->connection) && !empty($this->params['connection'])) {\n $this->connection = $this->params['connection'];\n }\n }", "title": "" }, { "docid": "ae3c7064937a0196b080a2f1b2491844", "score": "0.5695794", "text": "public function _initialize()\n {\n $this->faker = Faker::create();\n $this->phalcon = $this->getModule('Phalcon');\n }", "title": "" }, { "docid": "a2788960d739d9e4456584bb721782ca", "score": "0.5695624", "text": "public function __construct(array $parameters = null)\n {\n $this->initialize($parameters);\n }", "title": "" }, { "docid": "a2788960d739d9e4456584bb721782ca", "score": "0.5695624", "text": "public function __construct(array $parameters = null)\n {\n $this->initialize($parameters);\n }", "title": "" }, { "docid": "359aac98b5b88886d3bc14a1e5e51edc", "score": "0.56920624", "text": "public function __construct()\n\t{\n\t\t$this->notifutils = FALSE;\n\t\t$this->utils = new \\SMSG\\Utils();\n\t\t$this->gateway = $this->utils->get_gateway();\n\t\tif ($this->gateway) {\n\t\t\t$this->addplus = FALSE;\n\t\t\tif (method_exists($this->gateway, 'support_custom_sender')) {\n\t\t\t\t$this->fromnum = $this->gateway->support_custom_sender();\n\t\t\t} else {\n\t\t\t\t$this->fromnum = FALSE;\n\t\t\t}\n\t\t\tif (method_exists($this->gateway, 'require_country_prefix')) {\n\t\t\t\t$this->addprefix = $this->gateway->require_country_prefix();\n\t\t\t\tif ($this->addprefix && method_exists($this->gateway, 'require_plus_prefix')) {\n\t\t\t\t\t$this->addplus = $this->gateway->require_plus_prefix();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->addprefix = TRUE;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7a345c884352082d3009e2adb41f0762", "score": "0.56893265", "text": "public function __construct() {\n\n\t\t$this->init();\n\n\t}", "title": "" }, { "docid": "dc1d4c88d67b7794f71584311a2c724f", "score": "0.5688475", "text": "public function init($params = null)\n {\n }", "title": "" }, { "docid": "dca7404976645a25193c4dd6156b0173", "score": "0.56870687", "text": "public function initialize() { }", "title": "" }, { "docid": "75d94d43e9b0bc7ac0d48322396407cf", "score": "0.5686251", "text": "public function __construct()\n {\n $this->id = 'nemo';\n $this->method_title = __('Nemo Shipping', 'nemo');\n $this->method_description = __('Nemo Shipping Method for courier', 'nemo');\n\n // Availability & Countries\n $this->availability = 'including';\n $this->countries = array('RO');\n\n $this->init();\n\n $this->title = isset($this->settings['title']) ? $this->settings['title'] : __('Nemo Shipping', 'nemo');\n }", "title": "" }, { "docid": "653c88d611512eca56c00802ba420be5", "score": "0.56786394", "text": "public function __construct(){\n\t\t\n\t\t$this->init();\n\t\t\n\t}", "title": "" }, { "docid": "c9731b84712c5694dbc89bed44120bf4", "score": "0.5678254", "text": "public function init()\n {\n $this->initiate();\n\t $this->performForEvent($this, $this->getValues(), 'init');\n }", "title": "" }, { "docid": "ed8c86442b7bca6bc37f92ac5b631571", "score": "0.5674644", "text": "private function __construct() {\n\n\t\t\t$this->initQuery()\n\t\t\t\t->initPost()\n\t\t\t\t->initServer()\n\t\t\t\t->initHeaders()\n\t\t\t\t->initFiles();\n\n\t\t}", "title": "" }, { "docid": "63c8f5e3124be6e254f564c17b444d38", "score": "0.5673387", "text": "public function __construct() {\n $this->initialize();\n }", "title": "" }, { "docid": "8b12b33b2b96ca2568655551aa11939b", "score": "0.56721944", "text": "protected function __construct() {\n $this->appId = -1;\n $this->customer = null;\n $this->updateTime = new \\DateTime();\n $this->createTime = new \\DateTime();\n $this->endTime = new \\DateTime('1970-01-01 00:00:00');\n $this->startTime = new \\DateTime('1970-01-01 00:00:00');\n $this->eventTime = new \\DateTime('1970-01-01 00:00:00');\n }", "title": "" }, { "docid": "c9ee5263635ef103da387be856d8d02e", "score": "0.56655526", "text": "protected function initialize()\n {\n\n $photo = new Photo();\n $photo->initialize();\n\n $tribe = new Tribe();\n $tribe->initialize();\n\n }", "title": "" }, { "docid": "4cd5ee16af6a37ec16124c8a6748326d", "score": "0.5661118", "text": "private function __construct() {\n\t\t$this->setPropertiesFromRequest();\n\t}", "title": "" }, { "docid": "ba40b705b774e97f4cf473e885901ac8", "score": "0.56571335", "text": "public function initialize($identifier, array $params);", "title": "" }, { "docid": "982b282d6d3706326f97c02079a0fa7d", "score": "0.5647811", "text": "private function __construct( )\n {\n $this->Initialise( );\n }", "title": "" }, { "docid": "102650450edff7e92ab5955f8e8fd81f", "score": "0.56475484", "text": "public function __construct()\n {\n parent::__construct();\n $this->certVersion = '0002';\n $this->receiverId = 'SPANKKITUPAS';\n $this->receiverKey = 'SPANKKI';\n $this->idType = '02';\n $this->keyVersion = '0001';\n $this->algorithm = '03';\n }", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "2c3663c75902f80be2f284d56a3d743e", "score": "0.0", "text": "public function show($idRegistro)\n {\n $registro = RegistroMedico::find($idRegistro);\n return response()->json(['registros'=>$registro], 201); \n }", "title": "" } ]
[ { "docid": "1b84960e1b92d293ded93b3711f4a5bb", "score": "0.8233718", "text": "public function show(Resource $resource)\n {\n // not available for now\n }", "title": "" }, { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "ed2d107c1c9ce4912402cbef90125ac4", "score": "0.76110697", "text": "public function show(Resource $resource)\n\t{\n\t\treturn $resource;\n\t}", "title": "" }, { "docid": "364c14abc03f539e9a17828c2c3c5094", "score": "0.7142873", "text": "protected function makeDisplayFromResource()\n\t{\n\t\treturn $this->activeResource->makeDisplay();\n\t}", "title": "" }, { "docid": "05f03e4964305c5851a8417af8f32544", "score": "0.6684253", "text": "public function show($resource, $id)\n {\n return $this->repository->get($id);\n }", "title": "" }, { "docid": "e21cb6c5a585a50a5b1a659e50a3576d", "score": "0.6445771", "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.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": "596a976868e24408f49b224b715ef1dd", "score": "0.62268525", "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.6189695", "text": "public function show(Dispenser $dispenser)\n {\n //\n }", "title": "" }, { "docid": "990c774538153829a382b969fb274ad6", "score": "0.61804265", "text": "public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }", "title": "" }, { "docid": "0180fbb47af0be5e609b81a6e3465c37", "score": "0.6171014", "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.6082806", "text": "public function get(Resource $resource);", "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": "8cb2cf294db063cb41e20820f36641f0", "score": "0.60389996", "text": "public function show($id)\n {\n //\n $data=Resource::find($id);\n return view('resourceDetails',compact('data'));\n }", "title": "" }, { "docid": "586d0347683cd6c5e16251dd1e1a0a98", "score": "0.60363364", "text": "public function show($id)\n {\n $data = Resource::findOrFail($id);\n return view('Resource/view', compact('data'));\n }", "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": "7fdf71b227abd04e4de9889539cd1698", "score": "0.59927016", "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.59724826", "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.59606946", "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.5954321", "text": "public function edit(Resource $resource)\n {\n //\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": "d2bd10ab674d0671bf2851850995cea8", "score": "0.5891874", "text": "public function show(Resena $resena)\n {\n }", "title": "" }, { "docid": "d752fd3972b546ef194ae14ab221ca30", "score": "0.58688277", "text": "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "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": "4aec6f94d5731faefe27bdf32f7cbd44", "score": "0.5851883", "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.58124036", "text": "public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }", "title": "" }, { "docid": "305f64db85d64f68019d2fadcd0a85d2", "score": "0.58012545", "text": "public function show()\n\t{\n\t\t\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": "41e5ee3783ca0e67337c6b41b7d0ca62", "score": "0.57929444", "text": "public function display()\n {\n echo $this->fetch();\n }", "title": "" }, { "docid": "fd37d1765d15b4bc18c928879eeab887", "score": "0.5791527", "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": "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": "dfcf7f89daddfb442f3e0ba6b417b34a", "score": "0.57804495", "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.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": "fcef539023519ca355832da7d8f035c5", "score": "0.57576865", "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": "a3e57330d7cd59896b945f16d0e12a89", "score": "0.5756713", "text": "public function display()\n {\n echo $this->render();\n }", "title": "" }, { "docid": "1e8ae24781dac20c4f5e103867a805e0", "score": "0.5756208", "text": "public function show($id)\n\t{\n\t\t//\n\t\t//\n\t\n\t}", "title": "" }, { "docid": "69113639710554fd174b3aaec6536b9c", "score": "0.57561266", "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": "e3b51ebfe04703c114ab39fc729ba43b", "score": "0.5749091", "text": "public function show(Entry $entry)\n {\n //\n }", "title": "" }, { "docid": "1eedca4ba72a90a807a2f92511283570", "score": "0.57460064", "text": "public function show()\n\t{\n\n\n\t}", "title": "" }, { "docid": "5e79caa6f512ec951cafbf72e8caa6f2", "score": "0.57435393", "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.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": "cd5d84906dc48426110533ed06d6910f", "score": "0.5728813", "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.57259274", "text": "public function show($id)\n {\n //\n $this->_show($id);\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": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "e3c948157c6e692386196d78f9677b46", "score": "0.5713412", "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.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": "b791634a3b29fe8adff71b755317e88e", "score": "0.5706405", "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.5704152", "text": "public function show($id)\r\r\n\t{\r\r\n\t\t//\r\r\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": "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": "d936662ad1c81979476df2e0767c5e19", "score": "0.5699578", "text": "public function show($id)\n\t{\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "9032057600ac1cb05d858c6264b8aed1", "score": "0.5693083", "text": "public function show()\n {\n return auth()->user()->getResource();\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": "" }, { "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": "" } ]
ae78d987678ed607d844029edb040817
/ Get the mapping from collection to secondary tags.
[ { "docid": "8f8f831255af4d67f16e93ece9147b9a", "score": "0.6310768", "text": "public function secondary_tags()\n\t{\n\t\treturn $this->belongsToMany('App\\Models\\TagObjects\\Tag\\Tag')->withTimestamps()->withPivot('primary')->where('primary', '=', false);\n\t}", "title": "" } ]
[ { "docid": "548718957253582356bb120e2ded5ec8", "score": "0.58917785", "text": "protected function mapTags()\n {\n $this->beforeStore(function ($value, $field, \\Domain\\Documents\\Models\\Document $model) {\n $model = (clone $model)->refresh();\n\n $value = collect($value)\n ->map(fn ($value) => $model->{$field}[$value] ?? $value)\n ->toArray();\n\n return $value;\n }, 'multiple');\n }", "title": "" }, { "docid": "b155dc379b78915a6441c2d6ebd0bd36", "score": "0.5727288", "text": "public function get_tags() {\n\t\treturn array_keys( $this->map );\n\t}", "title": "" }, { "docid": "a33deeeeae1271f72ef232ed8547fe3c", "score": "0.56797665", "text": "public function many_many_map () {\n\t\treturn array (\n\t\t\t'relation_many_many' => array (\n\t\t\t\t'class' => 'BasicRelationsPivot',\n\t\t\t\t'attribute' => 'magic_attribute_many_many_selected'\n\t\t\t),\n\t\t);\n\t}", "title": "" }, { "docid": "3461b33e467de7bc8a812239b2089afc", "score": "0.56796974", "text": "public function getTags(): Collection \n {\n return $this->tags;\n }", "title": "" }, { "docid": "1941cb3722f3fcfcb986729736f066d7", "score": "0.55595994", "text": "public function getAllTagsMap()\n {\n $tags = TaxonomyTerm::get()->filter(\n 'Type.Name:ExactMatch',\n Config::inst()->get(DMSTaxonomyTypeExtension::class, 'default_record_name')\n );\n\n $map = [];\n foreach ($tags as $tag) {\n $nameParts = array($tag->Name);\n $currentTag = $tag;\n\n while ($currentTag->Parent() && $currentTag->Parent()->exists()) {\n array_unshift($nameParts, $currentTag->Parent()->Name);\n $currentTag = $currentTag->Parent();\n }\n\n $map[$tag->ID] = implode(' > ', $nameParts);\n }\n return $map;\n }", "title": "" }, { "docid": "72ef95f49c6bee725183c21f4f7ba270", "score": "0.5551546", "text": "public function tags(): Collections\\Collection {\n return $this->tags;\n }", "title": "" }, { "docid": "8c2f2dd59ba93eb5aede3bf26924967d", "score": "0.5478745", "text": "public function tagSlugs()\n {\n return $this->getRepository()->taggedColFor($this, 'tag_slug');\n }", "title": "" }, { "docid": "a1a793c05e22e9bce2bde1858a1f0ea5", "score": "0.54719263", "text": "public function getTagsAttribute()\n {\n return $this->tagged->map(function(Tagged $item){\n if (isset($item->tag_slug)) {\n return $item;\n }\n });\n }", "title": "" }, { "docid": "faf909f5fcd9094152fc121c7f912410", "score": "0.54077584", "text": "protected function map_tags() { return new Test_DB_ORM_Blog_TagsMapper($this->session);}", "title": "" }, { "docid": "bfeff59b549f971c3db653ba812139bb", "score": "0.53932154", "text": "public function getSecondaryIpRangeNames()\n {\n return $this->secondary_ip_range_names;\n }", "title": "" }, { "docid": "b56f061792c03d25a3e2267b0a56e2aa", "score": "0.53299916", "text": "public function map(){\n\t\treturn $this->collection;\n\t}", "title": "" }, { "docid": "5d7dcc57cbdb010de678f116d9f180b2", "score": "0.5273811", "text": "function select($collection) {\n\n $area = $collection->keyBy('id')->toArray();\n foreach ($area as $k => $v) {\n $area[$k] = $v['name'];\n }\n\n return $area;\n }", "title": "" }, { "docid": "16ae51f7f23736a13d5f7d650c0caf1d", "score": "0.52631086", "text": "public function getTagsAttribute()\n {\n return $this->belongsToMany('UserFrosting\\Sprinkle\\IntelliSense\\Database\\Models\\Tag', 'venue_tag');\n }", "title": "" }, { "docid": "9178c94286e18ed00cb9564e0346eb34", "score": "0.52299523", "text": "public function getTags()\n {\n if( ! count($this->tags)){\n $this->tags = $this->collection($this->getAddressCollectionName())->find(\n [\n 'cluster' => $this->getCluster(),\n 'tags' => [\n '$exists' => true,\n ]\n ]\n );\n }\n return $this->tags;\n }", "title": "" }, { "docid": "b541579f9be24977f2676e1ea9eef951", "score": "0.5211177", "text": "function &getArticleSecondarySponsors() {\r\n\t\treturn $this->articleSecondarySponsors;\r\n\t}", "title": "" }, { "docid": "2fc91ac1bf1b1ab8e067680900467267", "score": "0.52107334", "text": "public function getTags()\n {\n $this->getTagIds();\n\n // Return the collection of tag objects\n $result = Tag::find($this->_tags);\n\n $tags = [];\n foreach ($result as $tag){\n $tags[$tag->id] = $tag;\n }\n return $tags;\n }", "title": "" }, { "docid": "b0ff88b67f260c1c0397ecda3cfa57f3", "score": "0.5198154", "text": "public function getSecondary();", "title": "" }, { "docid": "52f18183a6515a4b20ca805ed0a47b42", "score": "0.5191934", "text": "public function tags()\n {\n return $this->belongsToMany('UserFrosting\\Sprinkle\\IntelliSense\\Database\\Models\\Tag', 'venue_tag');\n }", "title": "" }, { "docid": "e2bddad46b403e7967722209eb5395e5", "score": "0.5179373", "text": "public function tag_lists(){\r\n $data = [];\r\n $tags = $this->basic->get_data('blog_post_tags');\r\n foreach ($tags as $tag) {\r\n $data[$tag['name']] = $tag['name'];\r\n }\r\n return $data;\r\n }", "title": "" }, { "docid": "ef8551960a384d05b4cc41e61f4726e3", "score": "0.51585877", "text": "public function getTags()\n {\n return $this->_collection->distinct(self::FIELD_TAGS);\n }", "title": "" }, { "docid": "973c67316956d34b925bda773a3c3a70", "score": "0.5124182", "text": "static public function getTagHierarchyMap()\n {\n static $map = [];\n\n if (count($map)) {\n return $map;\n }\n\n foreach (self::HIERARCHY as $main => $tags) {\n $map[$main] = $tags;\n $visited = [];\n $additionalTags = $tags;\n while ($tag = array_shift($additionalTags)) {\n if (!isset(self::HIERARCHY[$tag])) {\n continue;\n }\n\n $visited[] = $tag;\n\n foreach (self::HIERARCHY[$tag] as $tagToAdd) {\n $map[$main][] = $tagToAdd;\n }\n\n foreach (array_diff(self::HIERARCHY[$tag], $visited) as $additionalTag) {\n $additionalTags[] = $additionalTag;\n }\n }\n\n $map[$main] = array_unique($map[$main]);\n }\n\n return $map;\n }", "title": "" }, { "docid": "aa08972ca86e628a9ed6802054c12032", "score": "0.504722", "text": "function _getSecondary() {\n\t\treturn $this->_secondary;\n\t}", "title": "" }, { "docid": "b86caad8572defebbe726caad4df43bf", "score": "0.5041998", "text": "public function getTags();", "title": "" }, { "docid": "b86caad8572defebbe726caad4df43bf", "score": "0.5041998", "text": "public function getTags();", "title": "" }, { "docid": "b86caad8572defebbe726caad4df43bf", "score": "0.5041998", "text": "public function getTags();", "title": "" }, { "docid": "b86caad8572defebbe726caad4df43bf", "score": "0.5041998", "text": "public function getTags();", "title": "" }, { "docid": "b86caad8572defebbe726caad4df43bf", "score": "0.5041998", "text": "public function getTags();", "title": "" }, { "docid": "b86caad8572defebbe726caad4df43bf", "score": "0.5041998", "text": "public function getTags();", "title": "" }, { "docid": "697fcd2d571dfce5002124d2281e61ae", "score": "0.5022269", "text": "public function getMappings()\n {\n $mappings = [];\n\n foreach ($this->groupCollection->getItems() as $option) {\n $mappings[$option->getDataByKey('customer_group_id')] = $option->getDataByKey('customer_group_code');\n }\n\n $mappings['-1'] = __('Unregistered subscribers');\n\n return $mappings;\n }", "title": "" }, { "docid": "dde305016f0cb3464e0f7f248703044f", "score": "0.49959466", "text": "protected function _getSpecialCustomerTagsCollection()\n {\n if (null === $this->_specialTagCollection) {\n /* @var $collection Unl_CustomerTag_Model_Resource_Tag_Collection */\n $collection = Mage::getModel('unl_customertag/tag')->getCollection();\n $collection->addFieldToFilter('name', array('in' => $this->_specialCustomerTags));\n $this->_specialTagCollection = $collection;\n }\n\n return $this->_specialTagCollection;\n }", "title": "" }, { "docid": "18868948aecc6a5f78e5fb8639e2d0a1", "score": "0.4993458", "text": "abstract protected function getMultipleMap();", "title": "" }, { "docid": "66353d0f885b5ad6590b746fc285229f", "score": "0.496744", "text": "public function tags() {\n return $this->belongsToMany('App\\Tag')->where('locale', app()->getLocale());\n }", "title": "" }, { "docid": "590e16702ffa6cf8fd43d3f438b500f0", "score": "0.49642563", "text": "public function productTagMappings(){\n return $this->belongsTo('ProductTagMapping', 'product_tag_id');\n }", "title": "" }, { "docid": "0de79475247b81c1c6cd7db8c0d0ad59", "score": "0.49559656", "text": "function &getRemovedArticleSecondarySponsors() {\r\n\t\treturn $this->removedArticleSecondarySponsors;\r\n\t}", "title": "" }, { "docid": "eb610d7c79d385c0710d062352af7831", "score": "0.49550942", "text": "protected function normalizedTags($data) : Collection\n\t{\n\t\treturn $data->has('tags')\n\t\t\t? Collection::make($data->get('tags'))\n\t\t\t: $data->pluck('tags');\n\t}", "title": "" }, { "docid": "342435fd471b17e736d8004b33de1c02", "score": "0.49414673", "text": "public function getAttributeAliasesMapping()\n {\n $mapping = [];\n\n foreach ($this->attributes as $name => $attribute) {\n $key = isset($attribute['alias']) ? $attribute['alias'] : $name;\n $mapping[$key] = $name;\n }\n\n return $mapping;\n }", "title": "" }, { "docid": "e003f695a7ce440cf91285a56ccb2fd5", "score": "0.49407652", "text": "public function getMappingTargets() {\n $targets = array(\n 'biblio_number' => array(\n 'name' => t('Biblio - Number'),\n ),\n 'biblio_other_number' => array(\n 'name' => t('Biblio - Other number'),\n ),\n 'biblio_sort_title' => array(\n 'name' => t('Biblio - Sort title'),\n 'description' => 'A normalized version of the title, used for sorting on titles. (only first 64 characters saved)',\n ),\n 'biblio_secondary_title' => array(\n 'name' => t('Biblio - Secondary title'),\n ),\n 'biblio_tertiary_title' => array(\n 'name' => t('Biblio - Tertiary title'),\n ),\n 'biblio_edition' => array(\n 'name' => t('Biblio - Edition'),\n ),\n 'biblio_publisher' => array(\n 'name' => t('Biblio - Publisher'),\n ),\n 'biblio_place_published' => array(\n 'name' => t('Biblio - Place published'),\n ),\n 'biblio_year' => array(\n 'name' => 'Biblio - Year',\n ),\n 'biblio_volume' => array(\n 'name' => t('Biblio - Volume'),\n ),\n 'biblio_pages' => array(\n 'name' => t('Biblio - Pages'),\n ),\n 'biblio_date' => array(\n 'name' => t('Biblio - Date'),\n ),\n 'biblio_isbn' => array(\n 'name' => t('Biblio - ISBN'),\n ),\n 'biblio_lang' => array(\n 'name' => t('Biblio - Language'),\n ),\n 'biblio_abst_e' => array(\n 'name' => t('Biblio - Abstract E'),\n ),\n 'biblio_abst_f' => array(\n 'name' => t('Biblio - Abstract F'),\n ),\n 'biblio_url' => array(\n 'name' => t('Biblio - Url'),\n ),\n 'biblio_issue' => array(\n 'name' => t('Biblio - Issue'),\n ),\n 'biblio_type_of_work' => array(\n 'name' => t('Biblio - Type of work'),\n ),\n 'biblio_accession_number' => array(\n 'name' => t('Biblio - Accession number'),\n ),\n 'biblio_call_number' => array(\n 'name' => t('Biblio - Call number'),\n ),\n 'biblio_notes' => array(\n 'name' => t('Biblio - Notes'),\n ),\n 'biblio_custom1' => array(\n 'name' => t('Biblio - Custom 1'),\n ),\n 'biblio_custom2' => array(\n 'name' => t('Biblio - Custom 2'),\n ),\n 'biblio_custom3' => array(\n 'name' => t('Biblio - Custom 3'),\n ),\n 'biblio_custom4' => array(\n 'name' => t('Biblio - Custom 4'),\n ),\n 'biblio_custom5' => array(\n 'name' => t('Biblio - Custom 5'),\n ),\n 'biblio_custom6' => array(\n 'name' => t('Biblio - Custom 6'),\n ),\n 'biblio_custom7' => array(\n 'name' => t('Biblio - Custom 7'),\n ),\n 'biblio_research_notes' => array(\n 'name' => t('Biblio - Research notes'),\n ),\n 'biblio_number_of_volumes' => array(\n 'name' => t('Biblio - Number of volumes'),\n ),\n 'biblio_short_title' => array(\n 'name' => t('Biblio - Short title'),\n ),\n 'biblio_alternate_title' => array(\n 'name' => t('Biblio - Alternate title'),\n ),\n 'biblio_original_publication' => array(\n 'name' => t('Biblio - Original publication'),\n ),\n 'biblio_reprint_edition' => array(\n 'name' => t('Biblio - Reprint edition'),\n ),\n 'biblio_translated_title' => array(\n 'name' => t('Biblio - Translated title'),\n ),\n 'biblio_section' => array(\n 'name' => t('Biblio - Section'),\n ),\n 'biblio_citekey' => array(\n 'name' => t('Biblio - Citekey'),\n ),\n 'biblio_coins' => array(\n 'name' => t('Biblio - COinS'),\n ),\n 'biblio_doi' => array(\n 'name' => t('Biblio - DOI'),\n ),\n 'biblio_issn' => array(\n 'name' => t('Biblio - Issn'),\n ),\n 'biblio_auth_address' => array(\n 'name' => t('Biblio - Author address'),\n ),\n 'biblio_remote_db_name' => array(\n 'name' => t('Biblio - Remote db name'),\n ),\n 'biblio_remote_db_provider' => array(\n 'name' => t('Biblio - Remote db provider'),\n ),\n 'biblio_label' => array(\n 'name' => t('Biblio - Label'),\n ),\n 'biblio_access_date' => array(\n 'name' => t('Biblio - Access date'),\n ),\n 'biblio_refereed' => array(\n 'name' => t('Biblio - Refereed'),\n ),\n 'biblio_formats' => array(\n 'name' => t('Biblio - Formats'),\n ),\n ) + parent::getMappingTargets();\n\n // Allow other modules to modify targets.\n if (method_exists($this, 'getHookTargets')) {\n $this->getHookTargets($targets);\n }\n\n return $targets;\n }", "title": "" }, { "docid": "9a05c11ca757128a9b913913188d1c44", "score": "0.49327207", "text": "public function getTags()\n {\n return $this->hasMany(Tag::class, ['id' => 'tag_id'])->viaTable('post_tag', ['post_id' => 'id']);\n }", "title": "" }, { "docid": "7a925acb586526fbc94bd350c01ad0ad", "score": "0.492967", "text": "public function primary_tags()\n\t{\n\t\treturn $this->belongsToMany('App\\Models\\TagObjects\\Tag\\Tag')->withTimestamps()->withPivot('primary')->where('primary', '=', true);\n\t}", "title": "" }, { "docid": "04ab3f2c43ff5dba10bb1bf2994ccb32", "score": "0.49114382", "text": "protected function get_generalmap_ids(){\n\n\t\tglobal $wpdb;\n\n\t\treturn implode( ',', $wpdb->get_col( $wpdb->prepare( \"SELECT post_id FROM {$wpdb->postmeta} WHERE meta_key = '%s';\", self::META_KEY ), 0 ) );\n\n\t}", "title": "" }, { "docid": "b130d5a84958f9da10fa24b0af888a59", "score": "0.4905161", "text": "public static function getTags();", "title": "" }, { "docid": "8d3324c7d2114e1469b4efdf98023611", "score": "0.48897058", "text": "public function tags()\n {\n return $this->tags;\n }", "title": "" }, { "docid": "8d3324c7d2114e1469b4efdf98023611", "score": "0.48897058", "text": "public function tags()\n {\n return $this->tags;\n }", "title": "" }, { "docid": "1b1fc630f18bc49cc7b46d75925ab27e", "score": "0.48877037", "text": "public function tags()\n\t{\n\t\treturn $this->belongsToMany('App\\Models\\TagObjects\\Tag\\Tag')->withTimestamps()->withPivot('primary');\n\t}", "title": "" }, { "docid": "1624ecf8a755e21d601eb8537b527246", "score": "0.4887632", "text": "public function getMapping();", "title": "" }, { "docid": "1624ecf8a755e21d601eb8537b527246", "score": "0.4887632", "text": "public function getMapping();", "title": "" }, { "docid": "faf976bd74a813d73eaa9d91214a0619", "score": "0.48600665", "text": "public function getTags() {\n\t\treturn clone $this->tags;\n\t}", "title": "" }, { "docid": "614d8141b43015aeb8d82eb89c9e93d7", "score": "0.48503882", "text": "public function getTagIds()\n {\n // Fetch from database, if not set\n if (!isset($this->_tags)){\n $result = Capsule::table('venue_tag')->select('tag_id')->where('venue_id', $this->id)->get();\n\n $this->_tags = [];\n foreach ($result as $tag){\n $this->_tags[] = $tag->tag_id;\n }\n }\n return $this->_tags;\n }", "title": "" }, { "docid": "702dec6758b19344659373cb14ff5caf", "score": "0.48433733", "text": "public function getTags()\n {\n return Tag::where('for_type', 'Location')->orderBy('name')->get();\n }", "title": "" }, { "docid": "dffedaa87343e623931d1168faab27bd", "score": "0.48400337", "text": "public function labels() {\n\t\treturn $this->belongsToMany('App\\Tag', 'tag_project', 'project_id', 'tag_id')->where('tags.type', 2);\n\t}", "title": "" }, { "docid": "46a703f4f053ff256e0fc01906302d90", "score": "0.4836888", "text": "function blog_get_tags () {\n\t$out = array ((object) array ('key' => '', 'value' => __ ('- select -')));\n\t$tags = blog\\Post::tags ();\n\tforeach ($tags as $tag => $count) {\n\t\t$out[] = (object) array ('key' => $tag, 'value' => $tag . ' (' . $count . ')');\n\t}\n\treturn $out;\n}", "title": "" }, { "docid": "ffc7169c7fe53ece2acce5146e4f9acf", "score": "0.48333573", "text": "public function getTagListAttribute()\n {\n return $this->tags->pluck('name')->toArray();\n }", "title": "" }, { "docid": "d09416029c7df34727e5d5318efd92a8", "score": "0.48314694", "text": "public function secondary_series()\n\t{\n\t\treturn $this->belongsToMany('App\\Models\\TagObjects\\Series\\Series')->withTimestamps()->withPivot('primary')->where('primary', '=', false);\n\t}", "title": "" }, { "docid": "e195d3589f7f8ddd529f322aa5bdb883", "score": "0.48277318", "text": "protected function transformTags($tags)\n {\n return collect($tags)\n ->map(function ($tag) {\n return [\n 'confession_tag_id' => (string) $tag->confession_tag_id,\n 'confession_tag' => (string) $tag->confession_tag,\n 'popularity_rating' => $tag->popularity_rating,\n ];\n })\n ->all();\n }", "title": "" }, { "docid": "ffa86d173bb1ab79bde2719a152df60d", "score": "0.48007822", "text": "protected function map($collection)\n {\n return $collection->map(function ($item) {\n return $this->toResource($item);\n });\n }", "title": "" }, { "docid": "80ec97b8a7ed550275c660a278af958d", "score": "0.48005545", "text": "public function tags(){\n \treturn $this->belongsToMany('Tag', null, 'venue_id', 'tag_id');\n }", "title": "" }, { "docid": "29fb117e093d79f38521d4c8758ccb85", "score": "0.47990093", "text": "function get_tags()\n {\n return $this->__get('tags');\n }", "title": "" }, { "docid": "910bef2c47ee3842475a9c4ce1303d7c", "score": "0.47958818", "text": "function getTags() {\n }", "title": "" }, { "docid": "46362a56915524e9d63233410c61e470", "score": "0.47915626", "text": "function get_collections_keyed()\r\n {\r\n $collections = $this->get_collections();\r\n $collections_keyed = array();\r\n foreach ($collections as $collection) {\r\n $collection['has_plugins'] = false;\r\n $collection['has_themes'] = false;\r\n\r\n $items = array();\r\n if (!empty($collection['items'])) {\r\n foreach ($collection['items'] as $item) {\r\n if ($item['type'] == 'plugin') {\r\n $collection['has_plugins'] = true;\r\n }\r\n if ($item['type'] == 'theme') {\r\n $collection['has_themes'] = true;\r\n }\r\n $items[$item['id']] = $item;\r\n }\r\n }\r\n $collection['items'] = $items;\r\n //TODO:\r\n @$collections_keyed[$collection['id']] = $collection;\r\n }\r\n\r\n return $collections_keyed;\r\n }", "title": "" }, { "docid": "4a48fdf77629ffd2040186c0eaa60dbe", "score": "0.47867295", "text": "public function secondary_artists()\n\t{\n\t\treturn $this->belongsToMany('App\\Models\\TagObjects\\Artist\\Artist')->withTimestamps()->withPivot('primary')->where('primary', '=', false);\n\t}", "title": "" }, { "docid": "a20901cc54b8570446a21d1669dec55a", "score": "0.4768887", "text": "public function tags()\n {\n return $this->belongsToMany('FlexCMS\\BasicCMS\\Models\\Item', 'article_tags', 'article_id', 'tag_id');\n }", "title": "" }, { "docid": "c003690199642946bf684cb9fabb8933", "score": "0.4765102", "text": "public function getTagListAttribute()\n {\n return $this->tags->pluck('name');\n }", "title": "" }, { "docid": "d9e6328dcc69027d468cdd6c45b56a1b", "score": "0.47598085", "text": "public function getMappings(): stdClass;", "title": "" }, { "docid": "6418063e27d4a051e97a913c947ffa42", "score": "0.47466737", "text": "public function tags()\n\t{\n\t\treturn $this->belongsToMany('App\\Models\\Tag', 'post_tag', 'post_id', 'tag_id');\n\t}", "title": "" }, { "docid": "9df69a99cdf7380182df9c8f3f187ca8", "score": "0.47431377", "text": "public function getTags()\n {\n return $this->tags;\n }", "title": "" }, { "docid": "9df69a99cdf7380182df9c8f3f187ca8", "score": "0.47431377", "text": "public function getTags()\n {\n return $this->tags;\n }", "title": "" }, { "docid": "9df69a99cdf7380182df9c8f3f187ca8", "score": "0.47431377", "text": "public function getTags()\n {\n return $this->tags;\n }", "title": "" }, { "docid": "9df69a99cdf7380182df9c8f3f187ca8", "score": "0.47431377", "text": "public function getTags()\n {\n return $this->tags;\n }", "title": "" }, { "docid": "9df69a99cdf7380182df9c8f3f187ca8", "score": "0.47431377", "text": "public function getTags()\n {\n return $this->tags;\n }", "title": "" }, { "docid": "9df69a99cdf7380182df9c8f3f187ca8", "score": "0.47431377", "text": "public function getTags()\n {\n return $this->tags;\n }", "title": "" }, { "docid": "9df69a99cdf7380182df9c8f3f187ca8", "score": "0.47431377", "text": "public function getTags()\n {\n return $this->tags;\n }", "title": "" }, { "docid": "9df69a99cdf7380182df9c8f3f187ca8", "score": "0.47431377", "text": "public function getTags()\n {\n return $this->tags;\n }", "title": "" }, { "docid": "9df69a99cdf7380182df9c8f3f187ca8", "score": "0.47431377", "text": "public function getTags()\n {\n return $this->tags;\n }", "title": "" }, { "docid": "9df69a99cdf7380182df9c8f3f187ca8", "score": "0.47431377", "text": "public function getTags()\n {\n return $this->tags;\n }", "title": "" }, { "docid": "9df69a99cdf7380182df9c8f3f187ca8", "score": "0.47431377", "text": "public function getTags()\n {\n return $this->tags;\n }", "title": "" }, { "docid": "9df9b70a81acf9412d0bd56f6f30c54a", "score": "0.4738924", "text": "public function vc_catalog_mapping() {\n\t\tif ( ! defined( 'WPB_VC_VERSION' ) ) {\n\t\t\treturn;\n\t\t}\n\t\t// Map the block with vc_map()\n\t\tvc_map(\n\t\t\tarray(\n\t\t\t\t'name' => __( 'VC Catalog', __SITENAME__ ),\n\t\t\t\t'base' => 'vc_catalog',\n\t\t\t\t'description' => 'Afficher la liste des catalogues récemment ajoutée.',\n\t\t\t\t'category' => __( 'JP Motors', __SITENAME__ ),\n\t\t\t\t'params' => array(\n\t\t\t\t\t[\n\t\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t\t'holder' => 'h3',\n\t\t\t\t\t\t'heading' => 'Titre',\n\t\t\t\t\t\t'param_name' => 'title',\n\t\t\t\t\t\t'value' => '',\n\t\t\t\t\t\t'description' => __( 'Ajouter une titre', __SITENAME__ )\n\t\t\t\t\t],\n\t\t\t\t\t[\n\t\t\t\t\t\t'type' => 'textfield',\n\t\t\t\t\t\t'holder' => 'div',\n\t\t\t\t\t\t'param_name' => 'loop_count',\n\t\t\t\t\t\t'class' => '',\n\t\t\t\t\t\t'value' => 6,\n\t\t\t\t\t\t'description' => 'Nombre maximun des catalogue a afficher'\n\t\t\t\t\t]\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "495776419cc24ad73fceeb849ac4b160", "score": "0.47331145", "text": "public function getTags() {\n $attribute = $this->getReferencedAttribute();\n return $attribute->getTags();\n }", "title": "" }, { "docid": "8df8e82c04ecd097af1e7d85e8d837a4", "score": "0.47300255", "text": "public function loadTagCollection() {\n $tagsSQL = 'SELECT id, tag FROM tags ORDER BY tag ASC';\n $tagsStmt = $this->dbc->prepare($tagsSQL);\n $tagsStmt->execute();\n \n $tagsList = [];\n while($row = $tagsStmt->fetch(PDO::FETCH_ASSOC)) {\n\n // CREATE A NEW TAG OBJECT FOR EACH ROW OF DATA IN tags TABLE\n $tag = new Tag($this->dbc, $row['id']);\n\n // PUSH TAGS ONTO AN ARRAY\n $tagsList[] = $tag;\n }\n return $tagsList;\n }", "title": "" }, { "docid": "b3b7d661cbdb1b4b036185c27d9f7a06", "score": "0.47183657", "text": "public function getTags() {\r\n\t\t\r\n\t\treturn $this->tags;\r\n\t}", "title": "" }, { "docid": "6ee86be39c2f3a4d0ae1d51860777ebc", "score": "0.47158104", "text": "public function tags()\n {\n return $this->belongsToMany('App\\Tag', 'tag_blog_article', 'article_id', 'tag_id');\n }", "title": "" }, { "docid": "2440f51174b6c95678f8216e246776ba", "score": "0.4713662", "text": "public function tags()\n\t{\n\t\treturn $this->belongsToMany('App\\Tag');\n\n\t}", "title": "" }, { "docid": "fad1eeddb7c9d046fbbaf3ca08b58a32", "score": "0.47108158", "text": "public function getTagList(): array;", "title": "" }, { "docid": "fb5549671ad54de7486de1c9da13cd8d", "score": "0.4700229", "text": "public function tags()\n {\n $tags = $this->refs()\n ->where('is_tag', true)\n ->pluck('name')\n ->toArray();\n $compare = new VersionCompare;\n // Sort the tags, if compare throws an exception it isn't a value version string so just do a strnatcmp\n @usort($tags, function ($first, $second) use ($compare) {\n try {\n return $compare->compare($first, $second);\n } catch (UnexpectedValueException $error) {\n return strnatcmp($first, $second);\n }\n });\n\n return collect($tags);\n }", "title": "" }, { "docid": "677306288e8343630b3147ae10ec10b4", "score": "0.46998227", "text": "abstract protected function createSecondaryIndexes();", "title": "" }, { "docid": "c5532e1450197a811c36d55878948b41", "score": "0.46966416", "text": "protected function getMultipleMap()\n {\n $this->multipleMap;\n }", "title": "" }, { "docid": "837d19c1b439f3bf6a273d2d75b22531", "score": "0.4696313", "text": "public function getConsumerTags();", "title": "" }, { "docid": "b34dccd2258db1504eff412220c04a69", "score": "0.46887586", "text": "public function getTagListAttribute() {\n\t\treturn $this->tags->pluck('id')->all();\n\t}", "title": "" }, { "docid": "3961407e26d20f8edcca718ec267e730", "score": "0.4685529", "text": "protected function createSecondaryIndexes()\n {\n }", "title": "" }, { "docid": "7af58f3fbc31ab6787d1fc01e022b717", "score": "0.4683509", "text": "public function tags()\n {\n \treturn $this->belongsToMany(Tag::class, 'task2tag')->withTimestamps();\n }", "title": "" }, { "docid": "05705cebbcad98c74441d7d93418117f", "score": "0.46819678", "text": "public function getMappings() : array;", "title": "" }, { "docid": "f22860923b644d4ee6be01996f5c57f7", "score": "0.4677739", "text": "public function getTags() {\n\t\treturn $this->tags;\n\t}", "title": "" }, { "docid": "7b3f7765619c672eada0482b167f4936", "score": "0.4671325", "text": "public function secondary_characters()\n\t{\n\t\treturn $this->belongsToMany('App\\Models\\TagObjects\\Character\\Character')->withTimestamps()->withPivot('primary')->where('primary', '=', false);\n\t}", "title": "" }, { "docid": "149d4f459dc7d01a32e0081efa62a4e1", "score": "0.46706876", "text": "private function get_tags()\n\t{\n\t\t$this->n_tags = true;\n\t\treturn $this->m_tags;\n\t}", "title": "" }, { "docid": "162d16e1c946253f96b785fa633ae435", "score": "0.46685833", "text": "public function getTags() {\n return $this->_tags;\n }", "title": "" }, { "docid": "0952f8d387ec723af55d9e77862617a7", "score": "0.46668136", "text": "public function allTagsDescWithFilters()\n {\n return Tag::allTags();\n }", "title": "" }, { "docid": "2fe0e2ad11129a3704f249d2fb682f5c", "score": "0.46631098", "text": "private function get_tags_from_db(){\n\t\t\t$tags = get_categories(array(\n\t\t\t\t'orderby' => 'id',\n\t\t\t\t'hide_empty' => false,\n\t\t\t\t'parent' => 0,\n\t\t\t\t'taxonomy' => 'subtype'\n\t\t\t));\n\n\t\t\tif(is_wp_error($tags) ) {\n\t\t\t\treturn array();\n\t\t\t}\n\t\t\treturn $tags;\n\t\t}", "title": "" }, { "docid": "5a31f9bbbdc873f0eef3c130aeb9ec7f", "score": "0.46568063", "text": "public function getTagsListAttribute() {\n return $this->tags->pluck('id');\n }", "title": "" }, { "docid": "f974045619b98ba95ce3dcbb4f22e900", "score": "0.46564797", "text": "private function map_view_extra_node_tag( $node_tags )\n\t{\n\t\treturn $node_tags;\n\t}", "title": "" }, { "docid": "e8b34e76bcf3c150bad4ed1126d07b40", "score": "0.46537003", "text": "public function fetchCollections()\n {\n $row = $this->getAdapter()\n ->quoteInto(\"SUBSTRING(tags, 1, LOCATE(?, tags))\", ']');\n\n return $this->fetchAll(\n $this->select()\n ->from($this, array('collection' => $row, 'tags'))\n ->group('collection')\n ->order('tags DESC')\n );\n\n// return $this->fetchAll(\n// $this->select()\n// ->setIntegrityCheck(false)\n// ->from(\n// array('c' => $this->getTableName()),\n// array('collection' => $row, 'c.tags')\n// )\n// ->joinLeft(array('g' => 'cms_fb_gallery'), 'g.imageId = c.id')\n// ->joinLeft(array('a' => 'cms_fb_albums'), 'a.az = g.imageId')\n// ->group('collection')\n// ->order('c.tags DESC')\n// );\n\n }", "title": "" }, { "docid": "1dcd4663a7a3d6c25e063d661d9e1ec7", "score": "0.46511298", "text": "public function mapComposerToShortcodes(){\n $mapped = &drupal_static(__FUNCTION__, NULL);\n if (!isset($mapped)) {\n $mapped = array();\n $shortcodes = $this->collection->getEnabledShortcodes();\n if ( isset($this->composer) && !empty($this->composer) ){\n foreach ($this->composer as $tag => $info) {\n if (!isset($shortcodes[$tag])) {\n continue;\n }\n $mapped[$tag] = $this->composer[$tag];\n $mapped[$tag]['title'] = isset($shortcodes[$tag]['title']) ? $shortcodes[$tag]['title'] : '';\n $mapped[$tag]['description'] = isset($shortcodes[$tag]['description']) ? $shortcodes[$tag]['description'] : '';\n if ( isset($shortcodes[$tag]['nested shortcodes']) && !empty($shortcodes[$tag]['nested shortcodes']) ) {\n $mapped[$tag]['nested shortcodes'] = $shortcodes[$tag]['nested shortcodes'];\n }\n }\n }\n }\n return $mapped;\n }", "title": "" } ]
a122d44bb4160c939491b9abeb6908be
/ / Find all user by / Joining users table and user gropus table /
[ { "docid": "386e9cf243f0666e8538cde0d13fa03b", "score": "0.6881165", "text": "function find_all_user(){\n global $db;\n $results = array();\n $sql = \"SELECT u.id,u.name,u.username,u.user_level,u.status,u.last_login,email,\";\n $sql .=\"g.group_name \";\n $sql .=\"FROM users u \";\n $sql .=\"LEFT JOIN user_groups g \";\n $sql .=\"ON g.group_level=u.user_level ORDER BY u.name ASC\";\n $result = find_by_sql($sql);\n return $result;\n }", "title": "" } ]
[ { "docid": "31407d65c7bcb1906d2e51ade510bc67", "score": "0.68537885", "text": "function find_all_user(){\n global $db;\n $results = array();\n $sql = \"SELECT u.id,u.name,u.username,u.user_level,u.status,u.last_login,\";\n $sql .=\"g.group_name \";\n $sql .=\"FROM users u \";\n $sql .=\"LEFT JOIN user_groups g \";\n $sql .=\"ON g.group_level=u.user_level ORDER BY u.name ASC\";\n $result = find_by_sql($sql);\n return $result;\n }", "title": "" }, { "docid": "0735cc6a6f738a454d0e7307d5e8ea8d", "score": "0.6805025", "text": "function showUsers($id_g){\n\t$res = mysqli_query($GLOBALS['link'], \"SELECT a.id_user,a.fname,a.phone,a.email,b.level_auth FROM users a INNER JOIN auth b ON a.id_user=b.user_auth WHERE a.cust_group = '$id_g'\") or die('ssss');\n\treturn $res;\n}", "title": "" }, { "docid": "0f82396e2f2fc28cd32cebad4e6203ad", "score": "0.66114134", "text": "public function getAllMyUsers(){\n\t\t$data = self::select('commerce_user.id as userRow','email', 'idBranch as branchID','roleuser.name as roleName','commerce_user.idCommerce','nombre','commbranch.name as branchName')\n\t\t\t\t->leftJoin('branch as commbranch','commbranch.id','=','commerce_user.idBranch')\n\t\t\t\t->leftJoin('role as roleuser','roleuser.id','=','commerce_user.idRole')\n\t\t\t\t->where('commerce_user.idCommerce','=',Commerce::getCommerceID()->id)\n\t\t\t\t->get();\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "247a1e3064a8435442852b1b0ba5a65d", "score": "0.6602846", "text": "function get_user_all($userID){\n\tglobal $db;\n\t$query = \"SELECT * FROM users JOIN names ON users.userID = names.userID WHERE users.userID = '$userID'\";\n\t$results = $db->query($query);\n\t$results = $results->fetch();\n\treturn $results;\t\n}", "title": "" }, { "docid": "2691ee9dbcdb60a4ca8563fdd908eeae", "score": "0.65145856", "text": "public function findAllUsers();", "title": "" }, { "docid": "1f8e9dea297ab15816fd311301420792", "score": "0.6453565", "text": "public function findGenresByUser(User $user)\n {\n $qb = $this->createQueryBuilder('g');\n\n return $qb->where($qb->expr()->eq('u', ':user'))\n ->join('g.userGenres', 'ug')\n ->join('ug.user', 'u')\n ->setParameter('user', $user)\n ->getQuery()\n ->getResult();\n }", "title": "" }, { "docid": "7bf44c4613a4ecf7c5cfb89ddd3510f9", "score": "0.6395831", "text": "public function getUsers($params = array()) {\n\t\t$sql = \"\n\t\t\tSELECT \n\t\t\t\tusers.*, \n\t\t\t\tchurches.name AS church, \n\t\t\t\tSUM(contributions.amount) AS total_giving,\n\t\t\t\tchurch_users.user_type\n\t\t\tFROM users \n\t\t\tLEFT JOIN church_users ON church_users.user_id = users.user_id\n\t\t\tLEFT JOIN churches ON churches.church_id = church_users.church_id\n\t\t\tLEFT JOIN contributions ON contributions.user_id = users.user_id\n\t\t\tGROUP BY users.user_id\n\t\t\";\n\t\t$stmt = $this->db->query($sql);\n\t\t$result = $stmt->fetchAll();\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "eb9e497ae63bf280a141f680e29f3e54", "score": "0.63476396", "text": "function getAllUsers(){\n\t\t\t$query=\"select * from user\";\n\t\t\treturn $this->query($query);\n\t\t}", "title": "" }, { "docid": "cf1b2e5fad651247bf851e4ef8fe970a", "score": "0.6320005", "text": "public function users()\n {\n global $SM_SQL;\n\n $query = \"SELECT DISTINCT users.id, users.username, users.name, schedule_course_section_map.schedule_id FROM users JOIN schedule_course_section_map ON users.active_schedule_id = schedule_course_section_map.schedule_id JOIN schedules ON schedule_course_section_map.schedule_id = schedules.id WHERE schedules.public = 1 AND schedule_course_section_map.crn = ? ORDER BY users.name;\";\n $results = $SM_SQL->GetAll($query, array($this->crn));\n return $results;\n }", "title": "" }, { "docid": "e2b7a7dc7c25733528a6dd79d8ac22b7", "score": "0.62659085", "text": "public function getUsers()\n {\n return $this->hasMany(User::className(), ['id' => 'user'])->viaTable('order', ['meal' => 'id']);\n }", "title": "" }, { "docid": "c2fc9e36909f048f5f607c2e157f024c", "score": "0.6264985", "text": "public function getUsers() //declaring relations\n {\n return $this->hasMany(Users::className(),[\"id\" => \"user_id\"]) // \"id\" of Users to \"users_id\" of Users_on_levels\n ->viaTable(\"users_on_levels\",[\"level_id\"=>\"id\"]) // \"level_id\" of Users_on_levels to \"id\" of Levels\n ->all();\n }", "title": "" }, { "docid": "c1d611f41af63e0dfc003eeb5b6c2a8e", "score": "0.6253299", "text": "function getUsers() {\r\n require $this->sRessourcesFile;\r\n if (in_array(\"users\", $this->aSelectedFields)) {\r\n $aParams['sSchemaFramework'] = array('value' => $this->aProperties['schema_framework'], 'type' => 'schema_name');\r\n $aParams['group_id'] = array('value' => $this->aValues['my_vitis_id'], 'type' => 'number');\r\n $oPDOresult = $this->oConnection->oBd->executeWithParams($aSql['getGroupUsers'], $aParams);\r\n $sListUserId = \"\";\r\n $aListUserLogin = array();\r\n while ($aLigne = $this->oConnection->oBd->ligneSuivante($oPDOresult)) {\r\n if ($sListUserId == \"\") {\r\n $sListUserId = $aLigne[\"user_id\"];\r\n } else {\r\n $sListUserId .= \"|\" . $aLigne[\"user_id\"];\r\n }\r\n $aListUserLogin[] = $aLigne[\"login\"];\r\n }\r\n $oPDOresult = $this->oConnection->oBd->fermeResultat();\r\n $this->aFields['users'] = $sListUserId;\r\n $this->aFields['users_label'] = implode(',', $aListUserLogin);\r\n }\r\n }", "title": "" }, { "docid": "c3255510d50f36476f394bff208ab839", "score": "0.6225182", "text": "public function get_users() {\n\n $data = null;\n $this->db->join('user', \"user.rol_idrol = rol.idrol\");\n $query = $this->db->get('rol');\n\n\n foreach ($query->result() as $row) {\n $data [$row->iduser] = array('iduser' => $row->iduser,\n 'create_time' => $row->create_time,\n 'name' => $row->name,\n 'display_name' => $row->display_name,\n 'status' => $row->status);\n }\n\n return $data;\n }", "title": "" }, { "docid": "346574b6db988f7a4cf05130407ea312", "score": "0.6223008", "text": "public function getUsers();", "title": "" }, { "docid": "93d57e5b7a4652b78a2b32160c35ea7e", "score": "0.6212252", "text": "function getResultUsers()\n\t{\n\t\tglobal $ilDB;\n\n\t\t$q='SELECT distinct(usr_data.login), feedback_results.user_id, feedback_results.votetime '.\n\t\t\t' FROM '.\n\t\t\t' feedback_results LEFT JOIN usr_data ON usr_data.usr_id = feedback_results.user_id'.\n\t\t\t' WHERE feedback_results.fb_id='.$ilDB->quote($this->id, \"integer\").\n\t\t\t' ORDER BY feedback_results.votetime,usr_data.login';\n\n\t\t$res = $ilDB->query($q);\n\n\t\twhile($row = $ilDB->fetchAssoc($res))\n\t\t{\n \t\t\t$users[$row['user_id']] = $row['login'];\n\t\t}\n\t\treturn($users);\n\t}", "title": "" }, { "docid": "f96ef5606c7af21b979af45db99c37dd", "score": "0.6206091", "text": "function getUsersAll(){\n\n\t\tconnectToMeekro();\n\t\t$result = DB::query(\"SELECT * FROM ScanUser;\");\n\t\treturn $result;\n\n\t}", "title": "" }, { "docid": "83ed1f64808ba6057ad217551f47d1c2", "score": "0.61779284", "text": "public function getUserList() {\n \n $orderBy = \"id desc\";\n if (isset($_GET['o_type']))\n $orderBy = $_GET['o_field'] . \" \" . $_GET['o_type'];\n $where = \"\";\n $flag = true;\n $whereParam = array();\n \n \n if (isset($_GET['searchForm']['user_name']) && trim($_GET['searchForm']['user_name']) != \"\") {\n \n if(!empty($where)){\n $where.=\" and \";\n }\n \n $where .= \" (u.name like %ss_name or u.username like %ss_username or u.email like %ss_username or u.phone like %ss_phone) \";\n $whereParam[\"name\"] = Stringd::processString($_GET['searchForm']['user_name']);\n $whereParam[\"username\"] = Stringd::processString($_GET['searchForm']['user_name']);\n $whereParam[\"email\"] = Stringd::processString($_GET['searchForm']['user_name']);\n $whereParam[\"phone\"] = Stringd::processString($_GET['searchForm']['user_name']);\n $flag = false;\n } \n if (isset($_GET['searchForm']['region']) && trim($_GET['searchForm']['region']) != \"\") {\n \n if(!empty($where)){\n $where.=\" and \";\n }\n \n $where .= \" find_in_set('\".$_GET['searchForm']['region'].\"',u.region) \";\n $flag = false;\n } \n \n \n \n if(isset($_SESSION['user_login']) && $_SESSION['user_login'][\"id\"] > 0)\n {\n if ($flag == false) {\n $where.=\" and \";\n }\n $where .= \" u.id != %d_id \";\n $whereParam[\"id\"] = $_SESSION['user_login'][\"id\"];\n \n \n $flag = false;\n }\n \n \n $where .= \" and u.roll_id = 7 \";\n \n //DB::debugMode();\n UTIL::doPaging(\"totalUsers\", \"u.id,u.name,u.username,u.email,u.phone,u.created_by,u.all_region,u.roll_id,u.updated_by,u.active,u.sort_order,u.helpdesk_id,u.region,if(u.region=0,'-',sr.name) as sub_region,r.name as role_name\", CFG::$tblPrefix . \"user as u left join \".CFG::$tblPrefix.\"rolls as r on u.roll_id=r.id left join \".CFG::$tblPrefix.\"region as sr ON sr.id=u.region\", $where, $whereParam, $orderBy); // exit;\n }", "title": "" }, { "docid": "fc2d18fce5a9023ecc30c28513219fa0", "score": "0.6176922", "text": "public function pull_user(){\n $result = $this->root_con()->poke_users->find([\n 'user'=>$this->username,\n ],\n [\n 'projection' =>[\n 'oid' =>1,\n 'user' =>1,\n 'point' =>1,\n ],\n ]\n );\n\n $newArr = array();\n $show_users = \"\";\n\n foreach ($result as $info){\n $newArr[$info->user][] = (array)$info;\n $show_users.= implode(\" \", (array)$info);\n $show_users.= \"</br>\";\n }\n return $show_users;\n }", "title": "" }, { "docid": "31c86b740415f902d6bd3662bc2b3c81", "score": "0.6171605", "text": "function getAllUsers() {\n\t\t// Alle Bilder der GalleryID auslesen\n\t\t$SQL = \"SELECT * FROM \". TABLEPREFIX .\"galuser \";\n\t\t// Array mit den Bildern\n\t\t$t_arrUser = mysql_query($SQL);\n\t\t$i = 0;\n\t\t// Alle User in ein Array packen\n\t\twhile($user = mysql_fetch_object($t_arrUser)) {\n\t\t\t$t_objUser->intID = $user->id;\n\t\t\t$t_objUser->strName = $user->name;\n\t\t\t$t_objUser->strPassword = $user->pass;\n\t\t\t$t_objUser->strEMail = $user->email;\n\t\t\t$t_objUser->strHomepage = $user->homepage;\n\t\t\t$t_objUser->strComment = $user->comment;\n\t\t\tif($t_objMTF_Image->admin == \"true\") {\n\t\t\t\t$t_objUser->bolAdmin = true;\n\t\t\t} else {\n\t\t\t\t$t_objUser->bolAdmin = false;\n\t\t\t}\n\t\t\t$t_objUser->intDateChange = $user->datechange;\n\t\t\t$t_objReturnUser[$i] = $t_objUser;\n\t\t\t$i++;\n\t\t}\n\t\treturn $t_objReturnUser;\n\t}", "title": "" }, { "docid": "ccfd172949895e57f1523bc46f336c0f", "score": "0.6169778", "text": "public function getUsers() {\n session_start();\n $checkusers = \"SELECT u.username, u.name, u.first_name, u.work_position, u.idimg_user FROM users u inner join type_users t on u.id_type_user = t.id_type_user\n inner join token k on u.idtoken = k.idtoken where t.type_user = 'Employee' and k.token <>'\" . $_SESSION['token'] . \"'\";\n if (empty($this->dbh->query($checkusers))) {\n $this->users[] = NULL;\n } else {\n foreach ($this->dbh->query($checkusers) as $usersarray) {\n $this->users[] = $usersarray;\n }\n }\n return $this->users;\n }", "title": "" }, { "docid": "0a951b1f8398c7cdc1ffbdab3608bcec", "score": "0.6158435", "text": "public function allForUser(User $user);", "title": "" }, { "docid": "eec272f03f6a1b5ba81bd04bb860014f", "score": "0.6157029", "text": "public function userQuery() {\n \t$query = Database::getConnection('default', $this->sourceConnection)\n \t\t\t\t\t ->select('users', 'u')\n \t\t\t\t\t ->fields('u')\n \t\t\t\t\t ->condition('uid', 1, '>');\n\t\t$query->orderby('uid', 'ASC');\n\t\treturn $query;\n }", "title": "" }, { "docid": "77f6c24649dabb0c2772a0a480a3cc81", "score": "0.6141879", "text": "public function get_all_users(){\n\t\treturn ORM::factory('user')->find_all();\n\t}", "title": "" }, { "docid": "5c9f83f021c6ab67b427273f73353a0c", "score": "0.61384726", "text": "public function searchUsers()\n {\n $male = $this->male;\n $female = $this->female;\n if($this->male && $this->female) {\n $male = false;\n $female = false;\n }\n $users = User::whereNotIn('id', $this->getMyContactIds())\n ->when($male, function ($query){\n return $query->where('gender', '=', User::MALE);\n })\n ->when($female, function ($query){\n return $query->where('gender', '=', User::FEMALE);\n })\n ->when($this->searchTerm, function ($query){\n return $query->where(function($q) {\n $q->whereRaw('name LIKE ?', ['%'.strtolower($this->searchTerm).'%'])\n ->orWhereRaw('email LIKE ?', ['%'.strtolower($this->searchTerm).'%']);\n });\n })\n ->orderBy('name', 'asc')\n ->select(['id', 'is_online', 'gender', 'photo_url', 'name', 'email'])\n ->limit(20)\n ->get()\n ->except(getLoggedInUserId());\n \n $this->users = $users;\n }", "title": "" }, { "docid": "89680c908a0edd0a74e0561ae7d50c09", "score": "0.61331666", "text": "public static function get_users_with_profile($data)\n {\n $query = DB::table('users')\n ->select('users.*','basic_details.*','religion_info.*', 'professtion_info.*','user_location.*', 'family_details.*', 'users.id as user_id')\n ->join('basic_details','basic_details.user_id','=','users.id')\n ->join('religion_info','religion_info.user_id','=','users.id')\n ->join('professtion_info','professtion_info.user_id','=','users.id')\n ->join('user_location','user_location.user_id','=','users.id')\n ->join('family_details','family_details.user_id','=','users.id')\n ->join('user_profile_images','user_profile_images.user_id','=','users.id')\n ->groupBy('users.id');\n $result = $query->get();\n return $result;\n }", "title": "" }, { "docid": "88c60dc384b8c5efb73dab80a38e6d33", "score": "0.6120714", "text": "public function findAllForUser(User $user);", "title": "" }, { "docid": "2b21e3afc47938ae1fd5300e135b5e7c", "score": "0.6109019", "text": "private function _user_joins($include_phone=FALSE)\n {\n $select = $this->_select_user_query($include_phone);\n $this->db->select($select);\n $this->db->from(TBL_USERS);\n }", "title": "" }, { "docid": "ac0a29a23464f495935a6c7ea0beb742", "score": "0.6108011", "text": "static function GetUsers()\n {\n $query = \"Select use_id as id ,use_name as name,use_mail as mail,use_login as login,use_pwd as mdp,\n use_profile as profil,use_site as site\n from T_USER\";\n\n $statement = Db::getInstance()->query($query);\n return $statement->fetchAll(PDO::FETCH_CLASS, 'App_Model_User');\n }", "title": "" }, { "docid": "3f58d09be20085aa18acfcdff26f8b0f", "score": "0.6096671", "text": "public function getUsers() {\n return $this->users = classuser::where('class_id', $this->class_id)\n ->join('users', 'classuser.user_id')\n ->get();\n\n }", "title": "" }, { "docid": "fb0d444a6b51609f83fe64dc6a5b7615", "score": "0.60918707", "text": "public function getNearByUsers($data)\n {\n $userID = getParam('user_id', 0, $data);\n $userStatus = $this->findByAttributes(array('user_id' => $userID));\n if (!empty($userStatus))\n {\n $radius = getParam('radius', NULL, $data);\n $limit = getParam('page_size', NULL, $data);\n $page = getParam('page', 1, $data);\n $page = $page < 1 ? 1 : $page;\n $sql = \"SELECT \n u.user_id, u.first_name, u.last_name, u.email, u.cover_photo, u.profile_photo,\n us.tagline, us.mode, us.passengers, us.location_lat, us.location_long,\n 6371 * 2 * ASIN(SQRT(\n POWER(SIN((us.location_lat - ABS(:user_lat)) * PI()/180 / 2),\n 2) + COS(us.location_lat * PI()/180 ) * COS(ABS(:user_lat) *\n PI()/180) * POWER(SIN((us.location_long - :user_long) *\n PI()/180 / 2), 2) )) as distance\n FROM \" . User::model()->getTableName() . \" u\n INNER JOIN \" . $this->getTableName() . \" us\n ON u.user_id = us.user_id\n HAVING\n u.user_id != :user_id\n AND NOT(TRIM(us.tagline) = '' OR tagline IS NULL)\n AND u.user_id NOT IN(\n SELECT um.user_id FROM \" . UserMatch::model()->getTableName() . \" um\n WHERE\n um.match_id = :user_id\n AND confirmed = 1\n AND um.user_id IN(\n SELECT match_id FROM \" . UserMatch::model()->getTableName() . \"\n WHERE\n user_id = :user_id\n AND confirmed = 1\n )\n )\n \" . ($radius !== NULL ? \" AND distance <= :radius \" : \"\") . \"\n ORDER BY distance ASC\";\n\n if ($limit !== NULL)\n {\n $sql .= \" LIMIT \" . $limit . \" OFFSET \" . $limit * ($page - 1);\n }\n\n $params = array(\n ':user_lat' => getParam('location_lat', '0.0', $data),\n ':user_long' => getParam('location_long', '0.0', $data),\n ':user_id' => $userID,\n );\n if ($radius !== NULL)\n $params[':radius'] = $radius;\n $nearByUsers = $this->findAllBySql($sql, $params);\n\n return array('success' => true, 'code' => RESPONSE_CODE_SUCCESS, 'data' => array('nearByUsers' => $nearByUsers));\n }\n\n return array('success' => false, 'code' => RESPONSE_CODE_DB_RECORD_NOT_EXISTS);\n }", "title": "" }, { "docid": "44cc698ec1c93bc233db18cdd217b26d", "score": "0.6086712", "text": "public function getUsers() ;", "title": "" }, { "docid": "3f95bab6ad80a4502131cd6bbf0f8eb7", "score": "0.6076203", "text": "public function getOtherUsers($user_id)\n {\n return DB::select('SELECT users.id,users.name as user_name,\n users.followers_count, \n groups.name as group_name,\n f.user_id2 as follows\n FROM users \n JOIN groups on groups.id = users.group_id \n LEFT JOIN user1_follows_user2 f\n ON f.user_id1 = ? and f.user_id2 = users.id\n WHERE users.id <> ?\n ORDER BY users.name',[$user_id,$user_id]);\n }", "title": "" }, { "docid": "f4898762cce45d31863819f1a346e958", "score": "0.60691977", "text": "public function users()\n {\n return $this->belongsToMany('App\\User', 'allergen_user',\n 'allergen_id', 'user_id');\n }", "title": "" }, { "docid": "b0b5bbd40fe3a97dc1886c9a4fde34e4", "score": "0.6045336", "text": "function get_iduser($id_guru)\n {\n $this->db->select('*'); \n $this->db->from('users');\n $this->db->join('guru', 'users.id = guru.id_user_fk');\n $this->db->where('guru.id_guru', $id_guru);\n $query=$this->db->get();\n return $query->row();\n }", "title": "" }, { "docid": "2e145c0fa923b4054fe5fc3000c95ba8", "score": "0.6039675", "text": "public function userList() {\n try {\n // Prepare statement to search for all infos of all users\n $stmt = self::$_database->prepare('SELECT `id`,`name`,`damages` FROM `user`');\n // If the execute() return true, fetch all informations in associative array\n if ($stmt->execute()){\n $data = $stmt->fetchAll(PDO::FETCH_ASSOC);\n // If the data was found\n if ($data !== false){\n foreach ($data as $dataKey => $user){\n foreach ($user as $key => $value) {\n // Make sure numbers are of the type Number\n if (is_numeric($value)) { $user[$key] = intval($value); }\n }\n $data[$dataKey] = $user;\n }\n }\n return $data;\n } else { return false; }\n } catch (PDOException $e) { return $e->getMessage(); }\n }", "title": "" }, { "docid": "ad07e3fe9666c7e2370d843403a27a49", "score": "0.60385877", "text": "public function getSpotUsers () {\n \n $only_superpowers = Settings::_get('spotlight_only_superpowers');\n\n if ($only_superpowers == 'true') {\n\n $spots = User::join('user_superpowers', 'user_superpowers.user_id', '=', 'user.id')\n ->where('user_superpowers.expired_at', '>=', date('Y-m-d h:i:s'))\n ->where('user.activate_user', '<>', 'deactivated')\n ->select(['user.id', 'user.name', 'user.profile_pic_url'])\n ->take(20)\n ->get();\n\n $spots = $spots->shuffle();\n $spots = $spots->toArray();\n\n } else {\n\n $spots = User::join('spotlight', 'spotlight.userid', '=', 'user.id')\n ->where('user.activate_user', '<>', 'deactivated')\n ->orderBy('spotlight.updated_at', 'desc')\n ->select(['user.id', 'user.name', 'user.profile_pic_url'])\n ->take(20)\n ->get()\n ->toArray();\n \n //dd($spots);\n\n }\n\n\n return $spots;\n\n\n }", "title": "" }, { "docid": "ab3958b167d5261d5a034f778441a80d", "score": "0.60238445", "text": "protected function getAdmins()\n\t{\n\t\t$users = array();\n\n\t\t$userQuery = new \\Bitrix\\Main\\Entity\\Query(\n\t\t\t\\Bitrix\\Main\\UserTable::getEntity()\n\t\t);\n\t\t// set select\n\t\t$userQuery->setSelect(array(\n\t\t\t'ID', 'LOGIN', 'NAME', 'LAST_NAME',\n\t\t\t'SECOND_NAME', 'PERSONAL_PHOTO'\n\t\t));\n\t\t// set runtime for inner group ID=1 (admins)\n\t\t$userQuery->registerRuntimeField(\n\t\t\tnull,\n\t\t\tnew Bitrix\\Main\\Entity\\ReferenceField(\n\t\t\t\t'UG',\n\t\t\t\t\\Bitrix\\Main\\UserGroupTable::getEntity(),\n\t\t\t\tarray(\n\t\t\t\t\t'=this.ID' => 'ref.USER_ID',\n\t\t\t\t\t'=ref.GROUP_ID' => new Bitrix\\Main\\DB\\SqlExpression(1)\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'join_type' => 'INNER'\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t\t// set filter\n\t\t$date = new \\Bitrix\\Main\\Type\\DateTime;\n\t\t$userQuery->setFilter(array(\n\t\t\t'=ACTIVE' => 'Y',\n\t\t\tarray(\n\t\t\t\t'LOGIC' => 'OR',\n\t\t\t\t'<=UG.DATE_ACTIVE_FROM' => $date,\n\t\t\t\t'UG.DATE_ACTIVE_FROM' => false\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'LOGIC' => 'OR',\n\t\t\t\t'>=UG.DATE_ACTIVE_TO' => $date,\n\t\t\t\t'UG.DATE_ACTIVE_TO' => false\n\t\t\t)\n\t\t));\n\t\t$res = $userQuery->exec();\n\t\twhile ($row = $res->fetch())\n\t\t{\n\t\t\tif ($row['PERSONAL_PHOTO'])\n\t\t\t{\n\t\t\t\t$row['PERSONAL_PHOTO'] = \\CFile::ResizeImageGet(\n\t\t\t\t\t$row['PERSONAL_PHOTO'],\n\t\t\t\t\t$this->avatarSize,\n\t\t\t\t\tBX_RESIZE_IMAGE_EXACT\n\t\t\t\t);\n\t\t\t\tif ($row['PERSONAL_PHOTO'])\n\t\t\t\t{\n\t\t\t\t\t$row['PERSONAL_PHOTO'] = $row['PERSONAL_PHOTO']['src'];\n\t\t\t\t}\n\t\t\t}\n\t\t\t$users[$row['ID']] = array(\n\t\t\t\t'id' => $row['ID'],\n\t\t\t\t'name' => \\CUser::FormatName(\n\t\t\t\t\t$this->arParams['~NAME_TEMPLATE'],\n\t\t\t\t\t$row, true, false\n\t\t\t\t),\n\t\t\t\t'img' => $row['PERSONAL_PHOTO']\n\t\t\t);\n\t\t}\n\n\t\treturn $users;\n\t}", "title": "" }, { "docid": "64018f465ce6056134b8e43b51bf06ab", "score": "0.600551", "text": "public function getAll() {\n $this->load->database();\n\n $this->db->select('*');\n $this->db->from('user');\n $this->db->join('klien','klien.id_user=user.id');\n \n $query = $this->db->get();\n return $query->result();\n }", "title": "" }, { "docid": "9c424ad489cebefb725ac9bb1e3d491b", "score": "0.6000161", "text": "function getAllUser() {\n\t\t$this->db->from(\"user\");\n\n\t\treturn $this->db->get();\n\t}", "title": "" }, { "docid": "2fbacfc0a118bba88e8d46da0503e591", "score": "0.59821296", "text": "function find_all_clients(){\n global $db;\n $results = array();\n $sql = \"SELECT u.id,u.name,u.username,u.user_level,u.status,u.last_login,email,\";\n $sql .=\"g.group_name \";\n $sql .=\"FROM users u \";\n $sql .=\"LEFT JOIN user_groups g \";\n $sql .=\"ON g.group_level=u.user_level WHERE u.user_level='3' ORDER BY u.name ASC\";\n $result = find_by_sql($sql);\n return $result;\n }", "title": "" }, { "docid": "efa1bb510625f4a7e7bf252e6a443cd8", "score": "0.59809", "text": "public function getAll(){\n\t\t\t$this->db->select('*'); //data yang diambil dari database\n\t\t\t$this->db->from('tm_user'); //yang diambil pada tabel tm_user\n\t\t\t$this->db->join('tm_grup', 'tm_user.grup = tm_grup.id_grup'); //menggabungkan kolom grup pada tabel tm_user dengan kolom dengan nama id_grup dari tabel tm_grup\n\t\t\t$query = $this->db->get(); //variable query dengan deklarasi untuk memanggil isi database tersebut\n\t\t\treturn $query; //mengemblikan nilai dari variable query dan digunakan untuk menampilkan hasil dari variable query\n\t\t}", "title": "" }, { "docid": "b21c093c1809f48c6999d8f82a05dc30", "score": "0.59793085", "text": "public function loadUsers($searchString){\n $qb = $this->repository->getDocumentManager()->createQueryBuilder('OP\\UserBundle\\Document\\User');\n $users = []; $lastname = '';\n $name = 's'.' '.$searchString;\n $name_array = explode(' ', $name); //explode the searchString\n $firstname = $name_array[1];\n if(sizeof($name_array)==2){ //if users tape single string\n $qb ->field('locked')->equals(false)\n ->field('enabled')->equals(true)\n ->addOr($qb->expr()\n ->field('firstname')->equals(new \\MongoRegex('/.*'.$firstname.'.*/i')))\n ->addOr($qb->expr()\n ->field('lastname')->equals(new \\MongoRegex('/.*'.$firstname.'.*/i')))\n ->select(array('_id', 'username','firstname', 'lastname', 'profilePic' ));\n $users = $qb->getQuery()->execute()->toArray();\n }\n\n else if(sizeof($name_array)==3){\n $lastname = $name_array[2];\n $qb ->field('locked')->equals(false)->field('enabled')->equals(true)\n ->addAnd($qb->expr()\n ->field('firstname')->equals(new \\MongoRegex('/.*'.$firstname.'.*/i')))\n ->addAnd($qb->expr()\n ->field('lastname')->equals(new \\MongoRegex('/.*'.$lastname.'.*/i')))\n ->select(array('_id','username','firstname', 'lastname', 'profilePic' ));\n $users = $qb->getQuery()\n ->execute()\n ->toArray();\n\n }else if(sizeof($name_array)>3){\n $lastname = $name_array[2];\n $qb ->field('locked')->equals(false)->field('enabled')->equals(true)\n ->addAnd($qb->expr()\n ->field('firstname')->equals(new \\MongoRegex('/.*'.$firstname.'.*/i')))\n ->addAnd($qb->expr()\n ->field('lastname')->equals(new \\MongoRegex('/.*'.$lastname.'.*/i')))\n ->select(array('_id','username','firstname', 'lastname', 'profilePic' ));\n $users = $qb->getQuery()\n ->execute()\n ->toArray();\n }\n else{\n $users = [];\n }\n return $users;\n }", "title": "" }, { "docid": "99014e6275d9944bfde07bac4888d635", "score": "0.5979043", "text": "function buscarUsuario($id_professor){\n $pdo=conexao();\n $stmt = $pdo->prepare(\"SELECT u.id_usuario,u.nome_usuario,u.email_usuario FROM usuario AS u JOIN professor_usuario AS pu ON u.id_usuario = pu.id_usuario WHERE id_professor=:id_professor;\");\n $stmt->bindValue(\":id_professor\",$id_professor);\n $stmt->execute();\n\n $users = $stmt->fetchAll(PDO::FETCH_ASSOC);\n\n if($users!= NULL){\n return $users;\n }\n}", "title": "" }, { "docid": "26b2379bcff6a43848239308837f32c5", "score": "0.5963899", "text": "function getUserList() { \n\t\t$query = $this->db->get($this->table)->result_array();\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "ac696165f2d2fc48332ba3e394b34dbb", "score": "0.59558266", "text": "function getUsers(){\n \n $query = $this->db->get('user');\n\t\treturn $query->result_array();\n }", "title": "" }, { "docid": "e9ed72629ae9b1e0078e3c4f35a584c4", "score": "0.59288806", "text": "function getUsers()\n {\n //TODO\n }", "title": "" }, { "docid": "6097e25c56c911152cb7f9dd43629ab7", "score": "0.5928691", "text": "public function allUser()\n {\n $users = array();\n $request = $this->db->query('SELECT * FROM user WHERE deleted = 0 and statut <> 1 '); \n while($data = $request->fetch(PDO::FETCH_ASSOC))\n {\n $users [] = new User($data);\n }\n \n return $users;\n }", "title": "" }, { "docid": "9f42c27abfda79569cccbcc434c5c6e3", "score": "0.59238064", "text": "public function queryAll(){\r\n\t\t$sql = 'SELECT * FROM user_household';\r\n\t\t$sqlQuery = new SqlQuery($sql);\r\n\t\treturn $this->getList($sqlQuery);\r\n\t}", "title": "" }, { "docid": "2e55c9ca38006d3e2823cfc9c31f35f0", "score": "0.5921715", "text": "public function getUsers() {\n $uids = $this->entityTypeManager->getStorage('user')->getQuery()\n ->condition('field_do_username', '', '!=')\n ->condition('status', 1)\n ->execute();\n $users = $this->entityTypeManager->getStorage('user')->loadMultiple($uids);\n return $users;\n }", "title": "" }, { "docid": "963817805b6844e22176b5517675c787", "score": "0.5916666", "text": "function list_users($use_join=FALSE,$select='*', $where='', $sort='', $limit='', $offset='', $where_like='', $group_by='', $exclude='',$where_likeOR='') {\n\n $this->db->select($select)->from($this->table);\n\t\tif($use_join)\n\t\t{\n\t\t\t$this->db->join('user_login_log', 'user_login_log.user_id = users.user_id','LEFT');\n\t\t\t$this->db->join('users as parent', 'users.parent_id = parent.user_id','LEFT');\n\t\t}\n if ($where) {\n\t\t\tif(isset($where['role']))\n\t\t\t{\n\t $this->db->_like('users.role',$where['role']);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->db->where($where);\n\t\t\t}\n }\n\t\tif ($where_likeOR) {\n\t\t\tforeach($where_likeOR as $field=>$search_text) {\n\t\t\t\t$this->db->_like(\"LOWER(\".$field.\")\",strtolower($search_text),'OR');\n\t\t\t}\n\t\t}\n\t\tif ($where_like) {\n\t\t\t//$this->db->like($where_like);\n\t\t\tforeach($where_like as $field=>$search_text) {\n\t\t\t\t$this->db->_like(\"LOWER(\".$field.\")\",strtolower($search_text));\n\t\t\t}\t\t\t\n }\n\t\tif($exclude) {\n\t\t\t$this->db->where_not_in('users.user_id', $exclude);\n\t\t}\n\t\tif ($group_by) {\n $this->db->group_by($group_by);\n }\n if ($sort) {\n $this->db->order_by($sort);\n }\n if ($limit) {\n $this->db->limit($limit,$offset);\n }\n $query = $this->db->get()->result();\n\t\t//echo $this->db->last_query();die;\n return $query;\n }", "title": "" }, { "docid": "6857251800ea114f9633fc10875691a8", "score": "0.5912437", "text": "function findAllForCurrentUser() {\n\t\t$sql = \"SELECT * \" . \"FROM `\" . $this->tableName . \"` \" . \"WHERE `user_id` = ?;\";\n\t\treturn $this->findEntities($sql, [$this->userId]);\n\t}", "title": "" }, { "docid": "16a9900b4cdb62801066b38232598b32", "score": "0.5907653", "text": "public function getUsers()\n\t{\n\t\treturn $this->selectAll('SELECT * FROM users');\n\t}", "title": "" }, { "docid": "6d1fbf0772d8e3d8458bc364abea9af9", "score": "0.5899296", "text": "function get_all_user(){\n $this->db->select('u.*');\n // $this->db->select('c.name as country, c.id as country_id');\n $this->db->from('tbl_user u');\n // $this->db->join('country c','c.id = u.country','LEFT');\n $this->db->order_by('u.id','DESC');\n $query = $this->db->get();\n $query = $query->result_array(); \n return $query;\n }", "title": "" }, { "docid": "b067306671fdd650a5a1f7a1ef4a9c00", "score": "0.58913875", "text": "public static function get_users_with_roles()\n {\n return DB::table('users')\n ->join('roles', 'users.role_id', '=', 'roles.id')\n ->select('users.*','roles.id as role_id','roles.role')\n ->get();\n }", "title": "" }, { "docid": "2b788fee6869747ea11d8b1b848b45df", "score": "0.5888503", "text": "protected function getAllUser() {\n\n $sql = \"SELECT * FROM `users` WHERE `user_type` = ? \";\n $param = array('user');\n $result = $this->selectAll($sql, $param);\n\n return $result;\n }", "title": "" }, { "docid": "405ba2e0eae1e66558d8682e83796932", "score": "0.5887595", "text": "public function get_users($user_id){\n $this->db->where([\n 'id' => $user_id\n // 'username' => $username\n ]);\n \n $this->db->where('id', $user_id);\n $query = $this->db->get('users');\n\n // result is a helper method\n // return an array of objects\n return $query->result();\n // return $query->num_rows();\n // return $query->num_fields();\n }", "title": "" }, { "docid": "415bec6a1f637671c131c71fb0f1602e", "score": "0.58818245", "text": "public function all_user()\n {\n $this->db->select('u.user_id_pk,u.first_name,u.last_name,u.primary_email,u.mobile,u.image,r.role_name,e.department,e.designation');\n $this->db->from('pms_users u');\n $this->db->join('users_role r', 'u.usre_role=r.role_id_pk', 'left');\n $this->db->join('pms_employee_detail e', 'u.user_id_pk=e.user_id', 'left');\n //$this->db->where($where); \n $query = $this->db->get();\n //echo $this->db->last_query();die;\n return $query->result();\n }", "title": "" }, { "docid": "ee1729b567964e672595f81cdc778c62", "score": "0.58816314", "text": "public function listUser(){\n $displayUsers = $this->_bdd->query('SELECT idUser, name, firstName\n from user ');\n if ($displayUsers == true) {\n return $displayUsers->fetchAll();\n }\n else{\n return;\n }\n }", "title": "" }, { "docid": "ab6988ef5021ee1a0d995baa62c516ef", "score": "0.5881351", "text": "public function getUsers()\n {\n return $this->hasMany(User::class, ['filial_id' => 'id']);\n }", "title": "" }, { "docid": "be86ab4cd76b3a3e5ab3196021612383", "score": "0.58805156", "text": "public function getUserList(){\n\t\t\t$query = ParseUser::query();\n\t\t\t$query->exists(\"username\");\n\t\t\t$query->notEqualTo(\"objectId\",$_SESSION['userId']);\n\t\t\t$results = $query->find();\n\n\t\t\treturn $results;\n\t\t}", "title": "" }, { "docid": "3e109f246cfafe3dcea584cf1aa4e138", "score": "0.5879881", "text": "public function ambil_user($id_user){\n $query = $this->db->select('*')\n ->from('user')\n ->join('master_divisi','master_divisi.id_divisi = user.id_divisi')\n ->join('master_port','master_port.id_port = user.id_port')\n ->join('level_user','level_user.id_level = user.id_level')\n ->where_in('user.id_user',$id_user)\n ->get();\n return $query->result();\n }", "title": "" }, { "docid": "afccb4146112cb5e2017de41eece31eb", "score": "0.58767235", "text": "static function getUsers() {\n //you know the drill\n\n }", "title": "" }, { "docid": "4505c0b0c68aa84eede85aeec15fd2bb", "score": "0.58740294", "text": "public function users() {\n\t\treturn $this->has_many('User');\n\t}", "title": "" }, { "docid": "56629a266920b79af6ea8f9139f231cd", "score": "0.5873025", "text": "public function getAllUser()\n\t{\n\t\treturn $this->userRepo->findAll();\n\t}", "title": "" }, { "docid": "b84cbbe547289e73142e43eeabd3ea55", "score": "0.58715427", "text": "public function index()\n {\n return User::select(\"users.id\", \"users.name\", \"lastname\", \"username\", \"email\", \"profile_id\", \"profiles.type as profile\", \"branch_office_id\", \"city_id\", \"branches.name as branch\")\n ->leftJoin('profiles', 'users.profile_id', '=', 'profiles.id')\n ->leftJoin('branches', 'users.branch_office_id', '=', 'branches.id')\n ->get();\n }", "title": "" }, { "docid": "86a398a6a5e342b5ce77b5c134400073", "score": "0.58669764", "text": "public function getAllUsers() {\n $users = $this->getOwnUsers();\n foreach ($this->getAllChildren() as $childGroup) {\n $childGroupModel = $childGroup->box();\n if (0 < count($this->_userPredicates)) {\n $childGroupModel->setUserPredicates($this->_userPredicates);\n }\n $users = array_merge($users, $childGroupModel->getOwnUsers());\n }\n return $users;\n }", "title": "" }, { "docid": "84c5b97804cf4a7df6a62ef4084b1958", "score": "0.5864566", "text": "function getUsuarios() {\r\n\t\t\r\n\t\t$sql = \"SELECT U.*, P.perfil as perfil \r\n\t\t\t\tFROM usuarios U \r\n\t\t\t\tINNER JOIN perfiles P ON P.id = U.perfiles_id\";\r\n\t\t\t\t\r\n\t \t$query = $this->con->prepare($sql, array(), MDB2_PREPARE_RESULT); \t\r\n\t \t$query = $query->execute(array());\r\n\t \t\r\n\t\treturn $query->fetchAll();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "3213ca0349c422e92bc9f57abd873bcf", "score": "0.58642846", "text": "public function getUser() {\n\t\t// passwort mit: MSP\n\t\t// $select_t = 'SELECT D_O.ID AS USER_ID, D_O.NAME AS USER_NAME, D_O.DESCRIPTION AS USER_DESCRIPTION,D_O.TYPE AS USER_TYPE, D_O.OPTIONALP AS OPTIONALP,D_OR.PARENTOBJ_ID AS USERGROUP_ID FROM DPADD_OBJECT AS D_O INNER JOIN DPADD_OBJECT_RELATION AS D_OR ON (D_O.ID=D_OR.CHILDOBJ_ID) WHERE (D_O.TYPE=\"USER\" AND D_O.NAME=\"%s\" AND D_OR.RELATION_WEB_TIPOLOGY=\"USERGROUP_RELATION\") ORDER BY USER_NAME;';\n\n\t\t$select_t = 'SELECT D_O.ID AS USER_ID, D_O.NAME AS USER_NAME, GROUP_CONCAT(D_OR.PARENTOBJ_ID) AS USERGROUP_ID\nFROM DPADD_OBJECT AS D_O\nINNER JOIN DPADD_OBJECT_RELATION AS D_OR ON (D_O.ID=D_OR.CHILDOBJ_ID)\nWHERE (D_O.TYPE=\"USER\" AND D_O.NAME=\"%s\" AND D_OR.RELATION_WEB_TIPOLOGY=\"USERGROUP_RELATION\")\nGROUP BY USER_ID, USER_NAME\nORDER BY USER_NAME;';\n\n\t\t$select = sprintf($select_t, $this->user);\n\t\t$result = $this->querySQL($select);\n\t\t// only first line\n\t\t$result = $result[0];\n\n\t\t// set default user group (can have multible user groups)\n\t\t$this->group_ids = $result['USERGROUP_ID'];\n\t\t// set user_id\n\t\t$this->user_id = $result['USER_ID'];\n\t\t// reset username\n\t\t$this->username = $result['USER_NAME'];\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "d5f31b869ab6935f7b63c4f5d5a13e58", "score": "0.58597344", "text": "public function getAllUsers()\n {\n //creates a connection\n $db = new Connection();\n $conn = $db->open();\n \n //calls the data service\n $service = new UserDataService($conn);\n \n //calls the fins all method in the data service\n $users = $service->findAll();\n \n //closes the connection\n $conn = null;\n \n //returns the users\n return $users;\n }", "title": "" }, { "docid": "ae808d2cd5c8734f8f6c750294b38446", "score": "0.5853916", "text": "public function getUsers(){\n\n $req=$this->db->query('SELECT * FROM UserBooks');\n $users=$req->fetchAll(PDO::FETCH_ASSOC);\n foreach ($users as $key => $value) {\n $users[$key]= new User($value);\n }\n return $users;\n }", "title": "" }, { "docid": "b1d68809149588c8e82f025c70a0e3b5", "score": "0.58526087", "text": "public function getListUsers() {\n\t\t$this->db->connect();\n\t\t$select = \"SELECT user.id_user, user.imie\";\n\t\t$from = \" FROM user\";\n\n\t\t$sql = $select . $from; \n\n\t\t$conn = $this->db->getConn();\n\t\t$result = mysqli_query($conn, $sql);\n\t\t$this->db->disconnect();\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "959c0a22a83f96ac2e73c77c54048795", "score": "0.5850438", "text": "public function getAllusers(){\n $this->db->query('SELECT user_id,user_name,user_email,\n user_image,user_role FROM users');\n \n //Multi row result\n $rows = $this->db->resultSet();\n\n return $rows;\n }", "title": "" }, { "docid": "bd9cd03a93a8e7dcb7f5e80700eb5faf", "score": "0.58479524", "text": "function users_join_to_group($users)\n\t{\n\t\t$b = 0;\n\t\tforeach($users as $u)\n\t\t{\n\t\t\tif($b == 0)\n\t\t\t{\n\t\t\t\t$b++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$o = new OK($u['login'], $u['password']);\n\t\t\t$o->init();\n\t\t\t$group = $o->find_group(\"chudogroup\");\n\t\t\t$o->join_to_group($group);\n\t\t}\n\t}", "title": "" }, { "docid": "9f1c3417a6db2912be1527ba243d811c", "score": "0.5843712", "text": "public function query(): UsersQueryBuilder;", "title": "" }, { "docid": "70b6f45cbf01b3254dc734eabdd55414", "score": "0.58432263", "text": "public static function get_users_by_horoscope($data)\n {\n $query = DB::table('users')\n ->select('users.*','basic_details.*','religion_info.*', 'professtion_info.*','user_location.*', 'family_details.*', 'users.id as user_id')\n ->join('basic_details','basic_details.user_id','=','users.id')\n ->join('religion_info','religion_info.user_id','=','users.id')\n ->join('professtion_info','professtion_info.user_id','=','users.id')\n ->join('user_location','user_location.user_id','=','users.id')\n ->join('family_details','family_details.user_id','=','users.id');\n if ($data['zodiac_star_sign'])\n {\n $query->where(array(\n 'religion_info.zodiac_star_sign' => $data['zodiac_star_sign'],\n 'users.deleted_at' => NULL\n ));\n }\n $result = $query->get();\n return $result;\n }", "title": "" }, { "docid": "13586352eb9d95c5afa720f2354e5e26", "score": "0.5842853", "text": "public function obtener(){\n return User::all();\n }", "title": "" }, { "docid": "91f33d64fb4526bcc21b78d8bf5470ff", "score": "0.5842766", "text": "public function loadAll () {\r\n\t\t\r\n\t\t$results = $this->_loadAll ();\r\n\t\t$ret \t = array (); \r\n\t\t\r\n\t\tforeach ($results as $result) {\r\n\t\t\t$user = new Core_Model_User ();\r\n\t\t\t$values = array_merge($user->getParent ()->loadById($result['id']), $result);\r\n\t\t\t$user->setValues ($values);\r\n\t\t\t\r\n\t\t\t$ret[] = $user;\r\n\t\t}\r\n\t\t\r\n\t\treturn $ret;\r\n\t}", "title": "" }, { "docid": "44be5d699074a6dca4f6986161b88b50", "score": "0.5835586", "text": "function getAllUsersByRole($role_id) {\n $db = DB::getInstance();\n $query = $db->query(\n \"SELECT\n users.id as user_id,\n users.fname as firstname,\n users.lname as lastname\n FROM users\n INNER JOIN user_permission_matches ON user_permission_matches.user_id = users.id\n WHERE user_permission_matches.permission_id = $role_id\n \")->results();\n return $query;\n}", "title": "" }, { "docid": "e1efc41d7b13328d9fd74daae6ef781c", "score": "0.58333564", "text": "public function getUsers()\n {\n return $this->hasMany(Users::className(), ['country_id' => 'id']);\n }", "title": "" }, { "docid": "31332639e1add9ea06b5318770cad32a", "score": "0.5832555", "text": "public function carregarUsers(){\n return DB::table('users')\n ->select('id_usuario','tx_name','cs_tipo_contrato')\n ->orderBy('cs_tipo_contrato','ASC')\n ->get();\n }", "title": "" }, { "docid": "45e3ff16e4c87042e78bcd08e8fed5f7", "score": "0.58285874", "text": "function getAllUsers(){\n\t\t$result = null;\n\t\t$counter = 0;\n\t\t$this->connect();\n\t\ttry{\n\t\t\t$sql = \"SELECT * FROM tbl_users\";\n\t\t\t$stmt = $this->dbh->prepare($sql);\n\t\t\t$stmt->execute();\n\n\t\t\twhile($rs = $stmt->fetch()){\n\t\t\t\t$result[$counter]['id'] = $rs['id'];\n\t\t\t\t$result[$counter]['username'] = $rs['username'];\n\t\t\t\t$result[$counter]['password'] = $rs['password'];\n\t\t\t\t$result[$counter]['role'] = $this->getRole($rs['role_id']);\n\t\t\t\t$result[$counter]['first_name'] = $this->getUserInfo($rs['id'], 'first_name');\n\t\t\t\t$result[$counter]['middle_name'] = $this->getUserInfo($rs['id'], 'middle_name');\n\t\t\t\t$result[$counter]['last_name'] = $this->getUserInfo($rs['id'], 'last_name') ;\n\n\t\t\t\t$counter++;\n\t\t\t}\n\t\t}catch(PDOException $e){\n\t\t\tprint_r($e);\n\t\t}\n\t\t$this->close();\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "21fe8c6bf714ae3dacf6d87e5cc0603f", "score": "0.58280146", "text": "public function ShowAllUsers() {\n $result = parent::DBSearch(\"SELECT ID, name, user, rank FROM users\");\n\n $obj = null;\n\n //Générer un tableau d'objet.\n foreach ($result as $user)\n $obj[$user['ID']] = new obj($user);\n\n return $obj;\n }", "title": "" }, { "docid": "5445442dade0b7d68039c4a433b8be22", "score": "0.5823746", "text": "function get_users()\n\t{\n\t\t$this->db->from('users');\n\t\t$query = $this->db->get();\n\t\treturn\t$query;\n\t}", "title": "" }, { "docid": "683783179ce9355e41565ec5d8fd839c", "score": "0.5820862", "text": "public function users()\n {\n $model = $this->getUserModel();\n $collection = $model::select('*');\n return $this->withData($this->applyFilter($collection, ['id', 'firstname', 'lastname', 'email', 'active'])->paginate());\n }", "title": "" }, { "docid": "318983d53465208337fbf5b00fef5bd3", "score": "0.5819646", "text": "function get_AllUser($limit=0, $start=0, $field, $order,$searchData=''){\n\t\t\n\t\tif(is_array($searchData)){\n\t\t\t\n\t\t\tif($searchData['first_name']!=NULL){\n\t\t\t\t$this->db->like('C.first_name', $searchData['first_name']);\n\t\t\t\t\n\t\t\t}\n\t\t\tif($searchData['last_name']!=NULL){\n\t\t\t\t$this->db->like('C.last_name', $searchData['last_name']);\n\t\t\t\t\n\t\t\t}\n\t\t\tif($searchData['user_group_id']!=NULL){\n\t\t\t\t$this->db->where('C.user_group_id', $searchData['user_group_id']);\n\t\t\t\t\n\t\t\t}\n\t\t\tif($searchData['user_category_ids']!=NULL && $searchData['user_ids']!=NULL){\n\n\t\t\t\t$this->db->where_in('C.id', $searchData['user_ids']);\n\t\t\t\t\n\t\t\t}\n\t\t\tif($searchData['status']!=NULL){\n\t\t\t\t$this->db->where('C.status', $searchData['status']);\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\t$status = array(0, 1);\n\t\t\t\t$this->db->where_in('C.status', $status);\n\t\t\t}\n\t\t}else{\n\t\t\t$status = array(0, 1);\n\t\t\t\t$this->db->where_in('C.status', $status);\n\n\t\t}\n\t\t\n\t\t$this->db->limit($limit, $start);\t\n\t\t$this->db->order_by($field, $order);\n\t\t$this->db->select('C.*,G.title as usergroup');\n\t \t$this->db->from('user_tbl as C');\n\t \t$this->db->join('user_group_tbl as G','G.id=C.user_group_id','left');\t\n\t\t\n\t\t$query=$this->db->get();\t\t\n\t \treturn $query->result();\n\t}", "title": "" }, { "docid": "8d5edc74bba4fba29ba089abad5aa9af", "score": "0.5818474", "text": "public function indexuser()\n {\n $users = User::join('statuses','statuses.id', 'users.status_id')\n ->select('users.*', 'statuses.status')\n ->get();\n $act = User::join('activities','activities.id', 'users.activity_id')\n ->select('users.*','activities.activity')\n ->get();\n $gend = User::join('genders','genders.id', 'users.gender_id')\n ->select('users.*','genders.gender')\n ->get();\n $data = [$users, $act, $gend];\n return $data;\n\n /* $users = User::join('statuses','statuses.id', 'users.status_id')\n ->select('users.*', 'statuses.status')\n ->get()\n ->join('activities','activities.id', 'users.activity_id')\n ->select('activities.activity')\n ->get()\n ->join('genders','genders.id', 'users.gender_id')\n ->select('genders.gender')\n ->get();\n $data = [$users, $act, $gend];\n return $data; */\n\n /* $users = User::with('status', 'activity', 'gender')->get(); */\n \n return $users;\n }", "title": "" }, { "docid": "0fbdbaf45547059febeb887ee5a4cdc5", "score": "0.5812834", "text": "public function getOrganizationUsers();", "title": "" }, { "docid": "37b72d49939cfb5ddbd4d6d572a8c103", "score": "0.5808716", "text": "public function getMapAllUsers() {\n\n if (isset($_SESSION['user_name']) && $_SESSION['user_name'] == Config::get('app.ADMIN_USER_NAME') && isset($_SESSION['password']) && $_SESSION['password'] == Config::get('app.ADMIN_PASSWORD')) {\n $allUsers = DB::query('SELECT * FROM users');\n foreach ($allUsers as $key => $user) {\n $allUsers[$key]['skills'] = DB::query('SELECT * FROM skills WHERE user_id=' . $user['id']);\n $allUsers[$key]['skill_category'] = DB::query('SELECT * FROM skill_categories WHERE user_id=' . $user['id']);\n }\n view('adminMapAllUsers', $allUsers);\n } else {\n flash('warning', 'You are not authorized to see this', 'warning');\n header('Location:' . Config::get('app.APP_URL') . Config::get('app.APP_EXTRA_URL') . 'admin');\n }\n\t}", "title": "" }, { "docid": "d5b2d1f9960e0f8f9dc85f4e8eb48158", "score": "0.580782", "text": "public function getAllUser()\n {\n $sql=self::$connection->prepare(\" SELECT * FROM users \");\n return $this->select($sql);\n\n }", "title": "" }, { "docid": "63662829aabbaf19fde6231c6a129bc6", "score": "0.58073556", "text": "public static function get_users_by_location($data)\n {\n $query = DB::table('users')\n ->select('users.*','basic_details.*','religion_info.*', 'professtion_info.*','user_location.*', 'users.id as user_id')\n ->join('basic_details','basic_details.user_id','=','users.id')\n ->join('religion_info','religion_info.user_id','=','users.id')\n ->join('professtion_info','professtion_info.user_id','=','users.id')\n ->join('user_location','user_location.user_id','=','users.id');\n if ($data['country_living_id'])\n {\n $query->where(array(\n 'user_location.country_living_id' => $data['country_living_id'],\n 'users.deleted_at' => NULL\n ));\n }\n if ($data['residing_state'])\n {\n $query->where(array(\n 'user_location.residing_state' => $data['residing_state'],\n 'users.deleted_at' => NULL\n ));\n }\n if ($data['residing_city'])\n {\n $query->where(array(\n 'user_location.residing_city' => $data['residing_city'],\n 'users.deleted_at' => NULL\n ));\n }\n $result = $query->get();\n return $result;\n }", "title": "" }, { "docid": "d72932b238368ab34f605c0c373e1d6d", "score": "0.58061606", "text": "function getUsers(){\n $query = \"SELECT DISTINCT u.userid, u.fname, u.lname, u.username, u.pPicture, Max(m.messageid)\n FROM User_Messages um, Users u, Messages m\n WHERE (um.userid = u.userid\n AND m.messageid = um.messageid\n AND m.userid = '$this->userid')\n OR (m.userid = u.userid\n AND m.messageid = um.messageid\n AND um.userid = '$this->userid')\n GROUP BY (u.userid)\n ORDER BY Max(m.messageid) desc\";\n $result = $this->db->fetchQuery($query);\n return $result;\n }", "title": "" }, { "docid": "a76fd879cc21054544476f0863cd4ac9", "score": "0.5802291", "text": "public function find_users()\n {\n no_graphics(true);\n if ( ! $_POST || ! main()->USER_ID || IS_ADMIN != 1) {\n echo '';\n }\n // Continue execution\n $Q = db()->query(\n 'SELECT id, nick \n\t\t\tFROM ' . db('user') . ' \n\t\t\tWHERE ' . _es($_POST['search_field']) . \" LIKE '\" . _es($_POST['param']) . \"%' \n\t\t\tLIMIT \" . (int) ($this->_parent->USER_RESULTS_LIMIT)\n );\n while ($A = db()->fetch_assoc($Q)) {\n $finded_users[$A['id']] = $A['nick'];\n }\n echo $finded_users ? json_encode($finded_users) : '*';\n }", "title": "" }, { "docid": "a13350b9f5684f528a5d5bc1f3098782", "score": "0.580213", "text": "public function get_all_users()\n\t{\n\t\t$this->db->select('*');\n\t\t$this->db->from('user_details');\n\t\t$this->db->order_by('full_name', \"asc\");\n\t\t$query = $this->db->get();\n\t\treturn $query->result_array();\n\t}", "title": "" }, { "docid": "fa6e90d68227a82e5ec65eb1fde686d5", "score": "0.5799306", "text": "public function get_all_users() {\n\n return $this->fetch_all(\"select us.id,us.nombre_usuario,(select usuarios_roles.id_rol from usuarios_roles where id_usuario=us.id ) as id_role,us.email,us.Estado, to_char(us.fecha,'yyyy-mm-dd hh:mi:ss AM') as fecha from usuarios us\");\n }", "title": "" }, { "docid": "b4f74b3e7398bd86725680fc09883a61", "score": "0.5796328", "text": "function selectAllUsers()\r\n {\r\n \trequire ('connect.php');\r\n \t $req0 = $bdd->query('SELECT * FROM gs.users');\r\n \t$users = $req0->fetchAll(PDO::FETCH_OBJ);\r\n \treturn $users; \r\n }", "title": "" }, { "docid": "9f7b6969b89145387b86c21a7df45f66", "score": "0.57900625", "text": "function getAllOpenadsUsersInformation()\n\t{\n\n\t}", "title": "" }, { "docid": "1474e90e2a9a4200ffe22599d02f0916", "score": "0.5787739", "text": "public function getAllUsers()\n {\n return $this->user->all();\n }", "title": "" }, { "docid": "a767fa180350a0547f755fb517986be8", "score": "0.5784854", "text": "function listUsers(){\n \n \n global $db_connection_handle;\n\n $sql = 'SELECT UserID, First_Name, Last_Name, Username, Email, Phone_Number, UserType.Type_Desc \n \t\tFROM UserInfo JOIN UserType \n \t\tON UserType.User_Type_ID = UserInfo.User_TypeID';\n \n try{\n $getusers=$db_connection_handle->prepare($sql);\n $getusers->execute();\n \n $userinfo = $getusers->fetchAll(PDO::FETCH_ASSOC);\n \n return $userinfo;\n }\n catch(PDOException $e){\n return \"Error is: \" . $e->getMessage();\n }\n }", "title": "" }, { "docid": "8bb94518558b391e32f7a7ea771be646", "score": "0.5784102", "text": "public function UserBooks($user)\n {\n return DB::table('books')\n ->leftJoin('genres', 'genres.id', '=', 'books.genre_id')\n ->select('books.id', 'books.title', 'books.author', 'books.publication', 'books.genre_id', 'genres.name')\n ->where('books.user_id', $user)->get();\n }", "title": "" }, { "docid": "8dd284500e6bafc1b6fb066178850f9a", "score": "0.57806987", "text": "public function getUserList() {\n $userList = array();\n $table = Users_DBTable::DB_TABLE_NAME;\n $cols = array(\n Users_DBTable::USER_ID,\n Users_DBTable::USER_NAME\n );\n\n $where = array(\n Users_DBTable::IS_DELETED => 0\n );\n\n $options = array(\n 'orderBy' => Users_DBTable::USER_NAME\n );\n\n return DBManager::select($table, $cols, $where, array(), $options);\n }", "title": "" } ]
cbecc9d7ddcdd3f243ef22951e0f57bc
/ / Temps de formation d'une troupe
[ { "docid": "7d46bc8273d93fa3e19d061989c256f3", "score": "0.0", "text": "function getTempsFormation($idTroupeJoueur)\n{\n $pdo = getPDO();\n $stmt = $pdo->prepare('SELECT `tempsFormation` FROM listeTroupe INNER JOIN troupesJoueur ON listeTroupe.idTroupe = troupesJoueur.idTroupe WHERE idTroupeJoueur=:idTroupeJoueur');\n $stmt->execute([\"idTroupeJoueur\" => $idTroupeJoueur]);\n\n if (!($row = $stmt->fetchObject())) {\n return FALSE;\n } else {\n return $row->tempsFormation;\n }\n}", "title": "" } ]
[ { "docid": "be0135a78ae65e88a335c405aa39f3a5", "score": "0.6640878", "text": "function MiseEnFormTemps1($dure){\n\t$minute = (int)(($dure%60));\n\t$dure = $dure - $minute;\n\t$heure = (int)((($dure)/60)%24);\n\t$dure = $dure - ($heure*60);\n\t$jour = (int)((($dure)/1400)%31);\n\t$dure = $dure - ($jour*1400);\n\t$mois = (int)((($dure)/44640)%12);\n\t$dure = $dure - ($mois*44640);\n\t$annee = (int)((($dure)/525600));\n\treturn $annee.\" année(s) \".$mois.\" mois \".$jour.\" jour(s) \".$heure.\" heure(s) \".$minute.\" minute(s)\";\n}", "title": "" }, { "docid": "8ce6df9e6e5f52bbbe7e64fb2351840b", "score": "0.62747264", "text": "public function tiempoRestanteFormateado (){\n \n $minutos = $this->tiempoRestante();\n $horas = 0;\n $dias = 0;\n $semanas = 0;\n\n $salida = '';\n\n $horas = floor($minutos/Carbon::MINUTES_PER_HOUR);\n\n if ($horas > 0){\n\n $minutos = $minutos - ($horas * Carbon::MINUTES_PER_HOUR);\n\n $dias = floor($horas/Carbon::HOURS_PER_DAY);\n\n if ($dias > 0){\n $horas = $horas - ($dias * Carbon::HOURS_PER_DAY);\n\n $semanas = floor($dias/Carbon::DAYS_PER_WEEK);\n\n if ($semanas > 0){\n $dias = $dias - ($semanas * Carbon::DAYS_PER_WEEK); \n }\n }\n\n }\n\n if ($minutos > 0){\n if ($minutos == 0){\n $salida = $minutos . ' minuto'; \n }else{\n $salida = $minutos . ' minutos';\n } \n }\n\n if ($horas > 0){\n\n if ($minutos > 0){\n $salida = ' y ' . $salida; \n }\n\n if ($horas == 1){\n $salida = $horas . ' hora' . $salida; \n }else{\n $salida = $horas . ' horas' . $salida;\n }\n }\n \n\n if ($dias > 0){\n\n if ($minutos > 0 and $horas > 0){\n $salida = ', ' . $salida;\n }elseif ($minutos > 0 or $horas > 0) {\n $salida = ' y ' . $salida;\n }\n\n if ($dias == 1){\n $salida = $dias . ' día' . $salida;\n }else{\n $salida = $dias . ' días' . $salida;\n }\n }\n\n if ($semanas > 0){\n if (($minutos > 0 and $horas > 0 and $dias > 0) or \n ($minutos > 0 and $horas > 0) or\n ($minutos > 0 and $dias > 0) or\n ($horas > 0 and $dias > 0)){\n \n $salida = ', ' . $salida;\n }elseif ($minutos > 0 or $horas > 0 or $dias > 0) {\n $salida = ' y ' . $salida;\n }\n\n if ($semanas == 1){\n $salida = $semanas . ' semana' . $salida;\n }else{\n $salida = $semanas . ' semanas' . $salida; \n }\n }\n\n return $salida;\n }", "title": "" }, { "docid": "c06d92596a468939e4078f819edfba63", "score": "0.61798084", "text": "public function tiempoTareaFormateado(){\n\n $minutos = $this->tiempo_estimado;\n $horas = 0;\n $dias = 0;\n $semanas = 0;\n\n $salida = '';\n\n $horas = floor($minutos/Carbon::MINUTES_PER_HOUR);\n\n if ($horas > 0){\n\n $minutos = $minutos - ($horas * Carbon::MINUTES_PER_HOUR);\n\n $dias = floor($horas/Carbon::HOURS_PER_DAY);\n\n if ($dias > 0){\n $horas = $horas - ($dias * Carbon::HOURS_PER_DAY);\n\n $semanas = floor($dias/Carbon::DAYS_PER_WEEK);\n\n if ($semanas > 0){\n $dias = $dias - ($semanas * Carbon::DAYS_PER_WEEK); \n }\n }\n\n }\n\n\n if ($minutos > 0){\n $salida = $minutos . 'm';\n }\n\n if ($horas > 0){\n $salida = $horas . 'h ' . $salida;\n }\n\n if ($dias > 0){\n $salida = $dias . 'd ' . $salida;\n }\n\n if ($semanas > 0){\n $salida = $semanas . 'w ' . $salida;\n }\n\n return $salida;\n }", "title": "" }, { "docid": "c90b34d7473456efc07b623fe1dce53b", "score": "0.6072557", "text": "public function ultimo_temp()\n {\n header(\"Content-type: text/json\");\n // The x value is the current JavaScript time, which is the Unix time multiplied\n // by 1000.\n\n $datos = $this->Clima_model-> ultimo_dato();\n\n $ret = array($datos[0]->fecha,floatval($datos[0]->temperatura),floatval($datos[0]->temperatura_dht),floatval($datos[0]->temperatura_bmp));\n echo json_encode($ret, JSON_NUMERIC_CHECK);\n }", "title": "" }, { "docid": "fbe5eb5f5d16f6511502d2e700dca368", "score": "0.6047281", "text": "function gererTache($dtoConvention){\r\n if(isset($_POST['intituletache1']) && $_POST['intituletache1']!=\"\"){\r\n if(isset($_POST['quantite1']) && $_POST['quantite1']!=\"\"){\r\n if(isset($_POST['prixht1']) && $_POST['prixht1']!=\"\"){\r\n //crée une DTO tache\r\n $arrayTache = array();\r\n\r\n $daoTache = new DaoTache($_SESSION['hote'],$_SESSION['base'],$_SESSION['login'],$_SESSION['password']);\r\n\r\n $dtoTache = new DtoTache($dtoConvention->getNumConvention(),$_POST['intituletache1'],$_POST['quantite1'],$_POST['prixht1']);\r\n\r\n if($dtoTache!=null){\r\n $daoTache->insertTache($dtoTache);\r\n array_push($arrayTache,$dtoTache);\r\n $_SESSION['test2']=$arrayTache;\r\n }\r\n\r\n\r\n $cptTache=2;\r\n\r\n \r\n while(isset($_POST['intituletache'.$cptTache]) && $_POST['intituletache'.$cptTache]!=\"\"){\r\n if(isset($_POST['quantite'.$cptTache]) && $_POST['quantite'.$cptTache]!=\"\"){\r\n if(isset($_POST['prixht'.$cptTache]) && $_POST['prixht'.$cptTache]!=\"\"){\r\n //crée des DTO tache\r\n\r\n $dtoTache = new DtoTache($dtoConvention->getNumConvention(),$_POST['intituletache'.$cptTache],$_POST['quantite'.$cptTache],$_POST['prixht'.$cptTache]);\r\n\r\n if($dtoTache!=null){\r\n $daoTache->insertTache($dtoTache);\r\n array_push($arrayTache,$dtoTache);\r\n $_SESSION['test2']=$arrayTache;\r\n }\r\n }\r\n }\r\n $cptTache++;\r\n } \r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "cadfcf57e0387cc20ae17df4ca42f54b", "score": "0.6036822", "text": "function reporteSeguro(){\n\t\t $this -> validar();\n\t\t\t\n\t\t //Se vacian los registros de la tabla temporal\n\t\t $registrosTemp = new registrosTemp();\n\t\t $result = $registrosTemp -> truncate_registrosTemp('2');\n\t\t}", "title": "" }, { "docid": "76da56307ace9b39c69add6b36064caf", "score": "0.60096", "text": "function actualitzar_temps($cursa,$temps) {\n\t\t$conn = oci_connect($_SESSION['usuari'], $_SESSION['password'], BDD_SERVIDOR);\n\t\tif (!$conn) {\n\t\t\tthrow new Exception(oci_error()['message']);\n\t\t}\n\t\t// Actualitzems els temps dels participants\n\t\tforeach($temps as $vehicle => $arr) {\n\t\t\tforeach($arr as $personatge => $valor) {\n\t\t\t\tif (!empty($valor)){\n\t\t\t\t\t$t=explode(':',$valor)[0]/1.0+round(explode(':',$valor)[1]/60.0,2);\t\t\t\t\t \n\t\t\t\t\t$sql = \"update participantscurses set temps={$t} where cursa='{$cursa}' and vehicle='{$vehicle}' and personatge='{$personatge}'\";\n\t\t\t\t\ttry {\n\t\t\t\t\t\texecuta_cmd($conn,$sql);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (Exception $e) {\n\t\t\t\t\t\toci_rollback($conn);\n\t\t\t\t\t\tthrow $e;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//Creem factura\n\t\tforeach($temps as $vehicle => $arr) {\n\t\t\tforeach($arr as $personatge => $valor) {\n\t\t\t\t$iva= IVA;\n\t\t\t\t$preu_servei = PREU_SERVEI;\n\t\t\t\t$sql = \"insert into factures(codi,cursa,vehicle,propietari, data_factura,temps,cost_combustible,preu_servei,iva,total) \".\n\t\t\t\t\t\t\"select \".\n\t\t\t\t\t\t\"NVL((select max(codi) from factures)+1,1) as codi, p.cursa, p.vehicle, v.propietari, current_date, \". \n\t\t\t\t\t\t\"NVL(p.temps,NVL((select max(temps) from participantscurses p2 where p2.cursa=p.cursa),0)) as temps, \".\n\t\t\t\t\t\t\"c.preuunitat as cost_combustible, {$preu_servei} as preu_servei, {$iva} as iva, \".\n\t\t\t\t\t\t\"({$preu_servei}+c.preuunitat*NVL(p.temps,NVL((select max(temps) from participantscurses p2 where p2.cursa=p.cursa),0)))*(100.0+{$iva})/100.0 as total \".\n\t\t\t\t\t\t\"from participantscurses p \".\n\t\t\t\t\t\t\"join vehicles v on v.codi=p.vehicle \".\n\t\t\t\t\t\t\"join combustibles c on c.descripcio=v.combustible \".\n\t\t\t\t\t\t\"where p.cursa='{$cursa}' and p.vehicle = '{$vehicle}' and p.personatge='{$personatge}'\";\n\t\t\t\ttry {\n\t\t\t\t\texecuta_cmd($conn,$sql);\n\t\t\t\t}\n\t\t\t\tcatch (Exception $e) {\n\t\t\t\t\toci_rollback($conn);\n\t\t\t\t\tthrow $e;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Actualitzem el millortemps i tempsEnregistrats\n\t\t$sql = \"update curses set millortemps=(select min(temps) from participantscurses pc where pc.cursa=curses.codi),tempsEnregistrats='S' where codi='{$cursa}'\";\n\t\ttry {\n\t\t\texecuta_cmd($conn,$sql);\n\t\t}\n\t\tcatch (Exception $e) {\n\t\t\toci_rollback($conn);\n\t\t\tthrow $e;\n\t\t}\n\t\t//Donem premi al guanyador\n\t\t$sql = \"update usuaris set saldo=saldo+nvl((select premi from curses c where c.codi='{$cursa}'),0) \".\n\t\t\t\t\"where alias in (select v.propietari from curses c join participantscurses pc on pc.cursa=c.codi join vehicles v on v.codi=pc.vehicle where c.codi='{$cursa}' and pc.temps=c.millortemps)\";\n\t\ttry {\n\t\t\texecuta_cmd($conn,$sql);\n\t\t}\n\t\tcatch (Exception $e) {\n\t\t\toci_rollback($conn);\n\t\t\tthrow $e;\n\t\t}\n\t\t\n\t\t// Fem commit de la transacció\n\t\t$r = oci_commit($conn);\n\t\tif (!r) {\n\t\t\tthrow new Exception(oci_error()['message']);\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "91d812458c16bd9d9a80e13b4ad718af", "score": "0.6007645", "text": "function propositionTemp(){\n\t\t$listSujetPfe = listSujetPfe();\n\t\t//var_dump($listSujetPfe);\n\t\t//echo 'halo';\n\t\tif (!is_array($listSujetPfe) || count($listSujetPfe) == 0 ) {\n\t\t\t//echo 'la list des sujet des pfe est vide';\n\t\t\treturn null;\n\t\t}\n\t\t$listSujetMaster = listSujetMaster();\n\t\tif (!is_array($listSujetMaster) || count($listSujetMaster) == 0 ) {\n\t\t\t//echo 'la list des sujet des master est vide';\n\t\t\treturn null;\n\t\t}\n\t\t$listFicheVoeux = listFicheVoeux();\n\t\tif (!is_array($listFicheVoeux) || count($listFicheVoeux) == 0 ) {\n\t\t\t//echo 'la fiche des veoux est vide';\n\t\t\treturn null;\n\t\t}\n\n\t\t$juryPfe = juryPfe($listFicheVoeux,$listSujetPfe,4);\n\t\t$juryMaster = juryMaster($listFicheVoeux,$listSujetMaster,4);\n\t\tforeach ($juryPfe as $key => $value) {\n\t\t\t$juryPfe[$key]=array_unique($value);\n\t\t}\n\t\tforeach ($juryMaster as $key => $value) {\n\t\t\t$juryMaster[$key]=array_unique($value);\n\t\t}\n\t\treturn ['juryPfe'=>$juryPfe,'juryMaster'=>$juryMaster];\n\t}", "title": "" }, { "docid": "fcef4819950d44575dada1bbec7a31a2", "score": "0.59414583", "text": "public function get_temps()\n {\n return $this->_temps;\n }", "title": "" }, { "docid": "8964a20fa270e3e13419f37900b58cae", "score": "0.5896485", "text": "public function getSaisieTemps() {\n return $this->saisieTemps;\n }", "title": "" }, { "docid": "9bf1c93688944b0785d021dd37a66634", "score": "0.58829457", "text": "function scrivi_campi_vuoti($idTabella)\n{\n\t$quantiFile = dimmi_quanti_file($idTabella);\n\t$etichettaTbl = dimmi_etichetta_tabella($idTabella);\n\t$nomeCampo = dimmi_nome_campo($idTabella);\n\t\n\t$tipo = dimmi_tipo_tabella($idTabella);\n\t$nomeFile = $nomeCampo;\n\t//($tipo == \"file\") ? $nomeFile = \"file\" : $nomeFile = \"immagine\";\n\t\n\t$return_tbl = \"\";\n\t\n\tif($tipo == \"file\")\n\t{\n\t\tfor($i=1; $i<=$quantiFile; $i++)\n\t\t{\n\t\t\t$return_tbl .= \"<tr><td class=\\\"backscuro\\\">\".$etichettaTbl;\n\t\t\t\n\t\t\t($quantiFile > 1) ? $return_tbl .= \" \" . $i : \"\";\n\t\t\t\n\t\t\t$return_tbl .= \"</td><td class=\\\"backchiaro\\\">etichetta: <input type='text' name='et_\".$nomeFile.\"_\".$i.\"' class='input'> &nbsp;&nbsp;&nbsp;file: <input type='file' name='\".$nomeFile.\"_\".$i.\"' class='input'></td></tr>\";\n\t\t}\n\t}\n\treturn $return_tbl;\n}", "title": "" }, { "docid": "89eee7aef393daca89cb796851b6d7f2", "score": "0.587322", "text": "public function getTempo()\n {\n return $this->tempo;\n }", "title": "" }, { "docid": "9ec363a40601c1230e62d8ec6d9adf12", "score": "0.58601946", "text": "public function getTempatLahir()\n {\n return $this->tempat_lahir;\n }", "title": "" }, { "docid": "9735daccf824b5eef82ca12cef30f2c7", "score": "0.58460844", "text": "function scrivi_campi_dett($idTabella, $idRecord, $percorso, $tmp)\n{\n\t\n\t$tipo = dimmi_tipo_tabella($idTabella);\n\t$etichettaTbl = dimmi_etichetta_tabella($idTabella);\n\t$nomeCampo = dimmi_nome_campo($idTabella);\n\t\n\t//($tipo == \"file\") ? $nomeFile = \"file\" : $nomeFile = \"immagine\";\n\t$nomeFile = $nomeCampo;\n\t\n\t//recupero i file già inseriti\n\t$queryFile = \"select idF, file, titoloF from file where fk_tabella = \" . $idTabella . \" and fk_record = \" . $idRecord . \" and tipoF = '\".$tipo.\"' order by sorting\";\n\t$resFile = makequery($queryFile);\n\t$arrFile = array();\n\n\twhile($arr = makefetch($resFile))\n\t{\n\n\t\t$arrFile[] = array(\"idF\"=>$arr[\"idF\"], \"file\"=>$arr[\"file\"], \"etichetta\"=>$arr[\"titoloF\"]);\n\t}\n\t\n\t$quantiFile = dimmi_quanti_file($idTabella);\n\n\t$cartella_upload = dimmi_cartella_upload($idTabella);\n\n\t$return_tbl = \"\";\n\tfor($i=1; $i<=$quantiFile; $i++)\n\t{\n\t\tif($tipo==\"file\")\n\t\t{\n\t\t\t(isset($arrFile[($i-1)])) ? $valueEtichetta = $arrFile[$i-1][\"etichetta\"] : $valueEtichetta=\"\";\n\t\t\n\t\t\t$return_tbl .= \"<tr><td class=\\\"backscuro\\\">\".$etichettaTbl;\n\t\t\t\n\t\t\t($quantiFile > 1) ? $return_tbl .= \" \" . $i : \"\";\n\t\t\t\n\t\t\t$return_tbl .= \"</td><td class=\\\"backchiaro\\\"><!-- etichetta: <input type='text' name='et_\".$nomeFile.\"_\".$i.\"' class='input' value='\".$valueEtichetta.\"'> &nbsp;&nbsp;&nbsp;-->file: <input type='file' name='\".$nomeFile.\"_\".$i.\"' class='input'><br /><font size=1>file attuale: \";\n\t\t\t\n\t\t\tif(isset($arrFile[($i-1)]) and $arrFile[$i-1] <> \"\")\n\t\t\t{\n\t\t\t\t$return_tbl .= \"<a href='\".$percorso.\"/\".$arrFile[$i-1][\"file\"] .\"' target='_blank'>\" . $arrFile[$i-1][\"file\"] . \"</a><br />\";\n\t\t\t\t$return_tbl .= \"<input type='checkbox' value='si' name='canc_\".$nomeCampo.\"_\".$i.\"'> cancella il file attuale\";\n\t\t\t\t$return_tbl .= \"<input type='hidden' name='idFoto_\".$nomeCampo.\"_\".$i.\"' value='\".$arrFile[$i-1][\"idF\"].\"'>\";\n\t\t\t\tif($nomeCampo==\"video\"){\n\t\t\t\t\t\t$return_tbl .= '<div id=\"video_preview\"><h2>Preview</h2>';\n\t\t\t\t\t\t$return_tbl .= '<video controls>';\n\t\t\t\t\t\t$return_tbl .= ' <source src=\"'.$percorso.\"/\".$arrFile[$i-1][\"file\"] .'\" type=\"video/mp4\">';\n\t\t\t\t\t\t$return_tbl .= 'Your browser does not support the video tag.';\n\t\t\t\t\t\t$return_tbl .= '</video>';\n\t\t\t\t\t\t$return_tbl .= '</div>';\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\t$return_tbl .= \" nessuno\";\n\t\t\n\t\t\t$return_tbl .= \"</font></td></tr>\";\n\t\t}\n\t\telse //immagine\n\t\t{\n\t\t\t$percorsoFile = \"../\".UPLOAD_FILE.\"/\".$cartella_upload.\"/\";\n\t\t\n\t\t\t$return_tbl .= \"<tr><td class=\\\"backscuro\\\">\".$etichettaTbl;\n\t\t\t\n\t\t\t($quantiFile>1) ? $return_tbl.= \" \".$i : \"\";\n\t\t\t\n\t\t\t$return_tbl .= \"</td><td class=\\\"backchiaro\\\"><div class='tbl\".$idTabella.\"'><font size=1>\";\n\t\t\t\n\t\t\tif(isset($arrFile[($i-1)]) and $arrFile[$i-1] <> \"\")\n\t\t\t{\n\t\t\t\t$arr_img = explode(\":\", $arrFile[($i-1)][\"file\"]);\n\t\t\t\t$nomeFileImg = dimminomefile($arr_img[1]);\n\t\t\t\t$tipoFile = tipo_file($arr_img[1]);\n\t\t\t\t$nomeThumb = $nomeFileImg . \"_thumb.\" . $tipoFile;\n\t\t\t\n\t\t\t\t//$return_tbl .= \"<a href='\".$percorsoFile.$arr_img[1].\"' target='_blank'><img src='\".$percorsoFile.$nomeThumb.\"' border=0></a>\";\n\t\t\t\t$return_tbl .= \"<img src='\".$percorsoFile.$nomeThumb.\"' border=0>\";\n\t\t\t\t$return_tbl .= \"<br /><input type='checkbox' value='si' name='cancFoto_\".$nomeCampo.\"_\".$i.\"'> cancella la foto attuale\";\n\t\t\t\t$return_tbl .= \"<input type='hidden' name='idFoto_\".$nomeCampo.\"_\".$i.\"' value='\".$arrFile[$i-1][\"idF\"].\"'>\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$return_tbl .= \"<a href=\\\"#\\\" onClick=\\\"apri_upload(\".$idRecord.\", '\".$idTabella.\"-\".$tmp.\"');\\\">carica un'immagine</a>\";\n\t\t\t}\n\t\t\t\n\t\t\tprint \"</font></div></td></tr>\";\n\t\t}\n\t\t\n\t}\n\n\treturn $return_tbl;\n}", "title": "" }, { "docid": "a6615ff96d4586740cf32fe8c13d9ec7", "score": "0.5833766", "text": "public function getTemperatureData()\n\t\t{\n\t\t\t$TemperaturTeile = split(\"/\", $this->TemperatureForDay, 2);\n\t\t\t\n\t\t\treturn $TemperaturTeile;\n\t\t}", "title": "" }, { "docid": "94f1fd554b34f75a75e1134b95923ff5", "score": "0.5819411", "text": "public function rechercherTempsConnecte(){\n }", "title": "" }, { "docid": "0f53cd030351ad9b1c52215c6fcc2528", "score": "0.58179575", "text": "public function getTaux_tva()\n {\n return $this->taux_tva;\n }", "title": "" }, { "docid": "f1b8cf9b47800b6fbcbf3ba72b928821", "score": "0.57877046", "text": "function format_temps ($form) {\n\tglobal $weather, $temphead, $dewhead;\n\t\n\t$temp_f = $weather['temperature']['temp_f'];\n\t$temp_c = $weather['temperature']['temp_c'];\n\t$dew_f = $weather['temperature']['dew_f'];\n\t$dew_c = $weather['temperature']['dew_c'];\n\t\n\t$temps['temphead'] = $temphead;\n\t$temps['dewhead'] = $dewhead;\n\t\n\tswitch ($form) {\n\t\tcase 'temp-fc':\n\t\t\t$temps['tempdata'] = $temp_f . '&deg;F (' . $temp_c . '&deg;C)';\n\t\t\tbreak;\n\t\t\t\n\t\tcase 'temp-cf':\n\t\t\t$temps['tempdata'] = $temp_c . '&deg;C (' . $temp_f . '&deg;F)';\n\t\t\tbreak;\n\n\t\tcase 'dew-fc':\n\t\t\t$temps['dewdata'] = $dew_f . '&deg;F (' . $dew_c . '&deg;C)';\n\t\t\tbreak;\n\t\t\t\n\t\tcase 'dew-cf':\n\t\t\t$temps['dewdata'] = $dew_c . '&deg;C (' . $dew_f . '&deg;F)';\n\t\t\tbreak;\n\t\t\t\n\t\tdefault:\n\t\t\tbreak;\n\t}\n\treturn ($temps);\n}", "title": "" }, { "docid": "6798e3a792b29f74421144e6fc387b8e", "score": "0.5776979", "text": "function meteo(){\n\t\t//$this->model_sensors = new model_Sensors;\n\t\t\n\t\t//$display = $this->getOnOff(array('id' => 1))[0]->onoff;\n\t\t//if ($display == \"on\") {\n\n\t\t$this->sila_grawitacji=9.780313*(pow(1+0.005324*SIN(1*$this->szerokosc),2)-0.0000058*pow(SIN(2*$this->szerokosc),2)-0.000003085*$this->wysokosc);\n\t\t$this->temp_znormalizowana=((2*($this->temperatura+273.15))+((0.6*$this->wysokosc)/100))/2;\n\t\t$this->tz=$this->temp_znormalizowana-273.15;\n\t\t$this->cz=($this->cisnienie*(EXP(($this->sila_grawitacji*$this->wysokosc)/(287.05*$this->temp_znormalizowana)))*10)/10;\n\t\t$this->tpr=243.12*(((LOG10($this->wilgotnosc)-2)/0.4343)+(17.5*$this->temperatura)/(243.12+$this->temperatura))/(17.62-(((LOG10($this->wilgotnosc)-2)/0.4343)+(17.5*$this->temperatura)/(243.12+$this->temperatura)));\n\t\t$this->cisnienie_pary_nasyconej=6.112*EXP((17.67*$this->temperatura)/($this->temperatura+243.5));\n\t\t$this->cisnienie_pary=$this->wilgotnosc/(1/$this->cisnienie_pary_nasyconej)/100;\n\t\t$this->wb=2165*(($this->cisnienie_pary/10)/(273.15+$this->temperatura));\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "d54183d34f2c96bfc2f5d49df3594ecb", "score": "0.5757435", "text": "public function getStepTemp();", "title": "" }, { "docid": "28b13584d70005c50e1ed47205ad941b", "score": "0.5708198", "text": "function menorTemperatura($temperaturas) {\n\n\t$aNegativos = array();\n\t$aPositivos = array();\n\n\tforeach($temperaturas as $temp){//Separa os positivos e negativos\n\t\tif($temp <= -1){\n\t\t\tarray_push($aNegativos,$temp);\n\t\t} else { \t\n\t\t\tarray_push($aPositivos,$temp);\n\t\t}\n\t}\n\n\tif(count($aNegativos) == 0) return (min($aPositivos));//Se o array aNegativos for vazio, busca logo minimo do aPositivos\n\tif(count($aPositivos) == 0) return (max($aNegativos));//Se o array aPositivos for vazio, busca logo máximo do aNegativos\n\n\t$vMinimoP = min($aPositivos);//Seleciona o mínimo valor do array aPositivos\n\t$vMinimoN = max($aNegativos);//Seleciona o máximo valor do array aNegativos\n\n\tif($vMinimoP + $vMinimoN == 0) return $vMinimoP;//Verifica se o valor absoluto é negativo ou positivo. \n\n\t$rComp = min(array($vMinimoP,-($vMinimoN))); //Verifica o valor mais próximo de Zero.\n\tif(in_array(-($rComp),$aNegativos)) return (-1 * $rComp);\n\n\treturn $rComp;\n}", "title": "" }, { "docid": "c0526c9e7e885e3e42e7c660847b2727", "score": "0.5704547", "text": "public function temporaire($texte)\n {\n $this->SetFont('Arial', 'B', 50);\n $this->SetTextColor(203, 203, 203);\n $this->rotate(45, 55, 190);\n $this->Text(55, 190, $texte);\n $this->rotate(0);\n $this->SetTextColor(0, 0, 0);\n }", "title": "" }, { "docid": "1ab7ddad6bd55a6278d9e1441ae550a4", "score": "0.5698254", "text": "public function process(){\n\t\t// Si possible avoir une table global VARIABLE avec trois champs => NOM_VAR / DATE_DEBUT / DATE_FIN -> Ca permet d'avoir les différentes valeurs du SMIC par exemple (aussi pour plafond SS, valeur_T, etc...)\n\t\t// SMIC 2015\n\t\t$this->smic_heure = $this->getVars('SMIC_HEURE');\n\t\t$this->smic_mois = $this->getVars('SMIC_MOIS');\n\t\t\n\t\t// Plafond sécu sociale 2015\n\t\t$this->plafond_ss = $this->getVars('PLAFOND_SECURITE_SOCIALE');\n\t\t\n\t\t//N\tb congé par mois 2015\n\t\t$this->conge_mois = 2.08;\n\t\t\n\t\t$this->periode_month = date( 'm',strtotime( $this->periode_du->getTimestamp() ) );\n\t\t\n\t\t// Salaire de référence pour novembre 2015\n\t\t// Récupère le nombre de jours en novembre 2015\n\t\t$this->nb_jours = cal_days_in_month(CAL_GREGORIAN, $this->periode_month, 2015);\n\t\t// Calcul le salaire de réf\n\t\t$this->salaire_ref = $this->paie_salaire_brut + ( $this->paie_hsupp_125 * 1.25 ) + ( $this->paie_hsupp_150 * 1.5 ) - ( $this->conge_amaladie_jrs * ( $this->paie_salaire_brut / $this->nb_jours ) ) - ( $this->conge_sanssolde_jrs * $this->paie_tx_horaire );\n\t\t\n\t\t// Différents taux\n\t\t$this->tb_chomage = ( ( $this->salaire_ref - $this->plafond_ss ) < 0 ) ? 0 : ( $this->salaire_ref - $this->plafond_ss );\n\t\t$this->tb_agric = ( ( $this->salaire_ref - $this->plafond_ss ) < 0 ) ? 0 : ( $this->salaire_ref - $this->plafond_ss );\n\t\t$this->tc_agric = 0; // TODO - Nécessaire d'avoir les prévoyances\n\t\t\n\t\t// Valeur spécifique pour le calcul de la réduction Fillon\t\n\t\t$this->valeur_t = ( $this->ent_effectif < 20 ) ? 0.2795 : 0.2835;\n\t\t\n\t\t/*\n\t\t*\t##############################################################################################################################\n\t\t*\tCALCULES GENERIQUES TOUTES CONVENTIONS\n\t\t*\t##############################################################################################################################\n\t\t*/\n\t\t\n\t\t/*\n\t\t * CALCULS SPECIQUES AUX CONGES \n\t\t*/\n\t\t$this->conge_paye_n_moins_1 = $this->conge_mois ;\n\t\tif($this->nb_jours_novembre - $this->conge_pris - $this->conge_amaladie_jrs < 10)\n\t\t\t$this->conge_paye_n_moins_1 = 0;\n\t\t\n\n\t\t\n\t\t/*\n\t\t * CALCULS SPECIQUES A URSSAF\n\t\t*/\n\t\t$this->urssaf_assurance_maladie_salar = $this->salaire_ref * ( 0.75 / 100 );\n\t\t$this->urssaf_assurance_maladie_patron = $this->salaire_ref * ( 12.8 / 100 );\n\t\t\n\t\t$this->urssaf_contribution_solidarité_patron = $this->salaire_ref * ( 0.30 / 100 );\n\t\t\n\t\t$base_av_plafonnee = ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref ;\n\t\t$this->urssaf_av_plafonnee_salar = ( 6.85 / 100 ) * $base_av_plafonnee;\n\t\t$this->urssaf_av_plafonnee_patron = ( 8.50 / 100 ) * $base_av_plafonnee;\n\t\t\n\t\t$this->urssaf_av_deplafonnee_salar = $this->salaire_ref * ( 0.30 / 100 );\n\t\t$this->urssaf_av_deplafonnee_patron = $this->salaire_ref * ( 1.80 / 100 );\n\t\t\n\t\t$this->urssaf_accident_travail_patron = $this->salaire_ref * ( $this->paie_tx_at / 100 );\n\t\t\n\t\t//??\n\t\t$this->urssaf_transport_patron = $this->salaire_ref * ( $this->paie_tx_transport / 100 );\n\t\t\n\t\t$this->urssaf_alloc_famill_patron = $this->salaire_ref * ( 3.45 / 100 );\n\t\t\n\t\t$this->urssaf_alloc_famill_complement_patron = ( 1.80 / 100 ) * ( ( $this->salaire_ref > ( $this->smic_mois * 1.6 ) ) ? $this->salaire_ref : 0 );\n\t\t\n\t\t$this->urssaf_ossope_patron = $this->salaire_ref * ( 0.016 / 100 );\n\t\t\n\t\t$this->urssaf_fnal_patron = ( $this->ent_effectif < 20 ) ? ( ( 0.10 / 100 ) * $this->salaire_ref ) : ( ( 0.50 / 100 ) * $this->salaire_ref );\n\t\t\n\t\t$this->urssaf_reduc_fillon_patron = 0; // TODO\n\t\t\n\t\t$this->urssaf_chomage_trancheA_base = ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref;\n\t\t$this->urssaf_chomage_trancheA_salar = ( 2.40 / 100 ) * $this->urssaf_chomage_trancheA_base;\n\t\t$this->urssaf_chomage_trancheA_patron = ( 4.00 / 100 ) * $this->urssaf_chomage_trancheA_base;\n\t\t\n\t\t$this->urssaf_chomage_trancheB_base = ( ( $this->salaire_ref - $this->plafond_ss ) > 9510 ) ? 9510 : $this->tb_chomage;\n\t\t$this->urssaf_chomage_trancheB_salar = ( 2.40 / 100 ) * $this->urssaf_chomage_trancheB_base;\n\t\t$this->urssaf_chomage_trancheB_patron = ( 4.00 / 100 ) * $this->urssaf_chomage_trancheB_base;\n\t\t\n\t\t$this->urssaf_chomage_trancheAGS_patron = ( 0.30 / 100 ) * ( $this->urssaf_chomage_trancheA_base + $this->urssaf_chomage_trancheB_base );\n\t\t\n\t\t/*\n\t\t * CALCULS SPECIQUES A CAISSE DE RETRAITE\n\t\t*/\n\t\t$this->cretraite_complement_arrco_tranche1_salar = ( 3.10 / 100 ) * ( ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref );\n\t\t$this->cretraite_complement_arrco_tranche1_patron = ( 4.65 / 100 ) * ( ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref );\n\t\t\n\t\t$this->cretraite_complement_agff_tranche1_salar = ( 0.80 / 100 ) * ( ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref );\n\t\t$this->cretraite_complement_agff_tranche1_patron = ( 1.20 / 100 ) * ( ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref );\n\t\t\n\t\t$this->cretraite_complement_agff_tranche2_salar = ( 0.90 / 100 ) * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 9510 ) ? 9510 : $this->tb_agric );\n\t\t$this->cretraite_complement_agff_tranche2_patron = ( 1.30 / 100 ) * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 9510 ) ? 9510 : $this->tb_agric );\n\t\t\n\t\t\n\t\t/*\n\t\t * CALCULS SPECIQUES A TAXES DIVERSES\n\t\t*/\n\t\t$this->taxediv_apprentissage_patron = ( 0.50 / 100 ) * $this->salaire_ref;\n\t\t\n\t\t$this->taxediv_contrib_apprenstissage_patron = ( 0.18 / 100 ) * $this->salaire_ref;\n\t\t\n\t\t// /!\\ Uniquement pour les entreprises dont l'effectif est en dessous de 10 salariés\n\t\t$this->taxediv_participation_entre_mini_10_patron = ( 0.20 / 100 ) * $this->salaire_ref;\n\t\t\n\t\t// /!\\ Uniquement pour les entreprises dont l'effectif est au dessus ou égal à 20 salariés\n\t\t$this->taxediv_participation_entre_mini_10_patron = 1.50 * ( $this->paie_hsupp_125 + $this->paie_hsupp_150 );\n\t\t\n\t\t/*\n\t\t*\t##############################################################################################################################\n\t\t*\tCALCULES UNIQUEMENT POUR LES CADRES\n\t\t*\t##############################################################################################################################\n\t\t*/\n\t\t$this->cadre_retraite_compl_agric_trancheB_salar = ( 7.80 / 100 ) * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 12680 ) ? 12680 : $this->tb_agric );\n\t\t$this->cadre_retraite_compl_agric_trancheB_patron = ( 12.75 / 100 ) * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 12680 ) ? 12680 : $this->tb_agric );\n\t\t\n\t\t$this->cadre_retraite_compl_agric_trancheC_salar = ( 7.80 / 100 ) * ( ( ( $this->salaire_ref - $this->cretraite_complement_arrco_tranche1_salar - $this->tb_agric ) > 12680 ) ? 12680 : $this->tc_agric );\n\t\t$this->cadre_retraite_compl_agric_trancheC_patron = ( 12.75 / 100 ) * ( ( ( $this->salaire_ref - $this->cretraite_complement_arrco_tranche1_patron - $this->tb_agric ) > 12680 ) ? 12680 : 0 );\n\t\t\n\t\t$this->cet_salar = ( 0.13 / 100 ) * ( $this->cretraite_complement_agff_tranche1_salar + $this->cretraite_complement_agff_tranche2_salar );\n\t\t$this->cet_patron = ( 0.22 / 100 ) * ( $this->cretraite_complement_agff_tranche1_patron + $this->cretraite_complement_agff_tranche2_patron );\n\t\t\n\t\t$this->apec_ta_salar = ( 0.024 / 100 ) * ( ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref );\n\t\t$this->apec_ta_patron = ( 0.036 / 100 ) * ( ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref );\n\t\t\n\t\t$this->apec_tb_salar = ( 0.024 / 100 ) * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 9510 ) ? 9150 : $this->tb_chomage );\n\t\t$this->apec_tb_patron = ( 0.036 / 100 ) * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 9510) ? 9510 : $this->tb_chomage );\n\t\t\n\t\t/*\n\t\t*\t##############################################################################################################################\n\t\t*\tCALCULES UNIQUEMENT POUR LES NON CADRES\n\t\t*\t##############################################################################################################################\n\t\t*/\n\t\t\n\t\t$this->cretraite_complement_arrco_tranche2_salar = ( 8.10 / 100 ) * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 9510 ) ? 9150 : $this->tb_chomage );\n\t\t$this->cretraite_complement_arrco_tranche2_patron = ( 12.65 / 100 ) * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 9510 ) ? 9150 : $this->tb_chomage );\n\t\t\n\t\t\n\t\t/*\n\t\t *\t##############################################################################################################################\n\t\t*\tCALCULES UNIQUEMENT POUR SYNTEC\n\t\t*\t##############################################################################################################################\n\t\t*/\n\t\tif($this->ent_conv->getSlug()==\"syntec\"){\n\t\t\tif($this->sal_statut->getSlug() ==\"cadre\"){\n\t\t\t\t//Non Cadre\n\t\t\t\t$this->prevoyance_taux_ta_salar = ( 0.37 / 100 );\n\t\t\t\t$this->prevoyance_ta_salar = $this->prevoyance_taux_ta_salar * ( ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref );\n\t\t\t\t$this->prevoyance_taux_ta_patron = ( 0.37 / 100 );\n\t\t\t\t$this->prevoyance_ta_patron = $this->prevoyance_taux_ta_patron * ( ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref );\n\t\t\t\t\n\t\t\t\t$this->prevoyance_taux_tb_salar = ( 0.57 / 100 );\n\t\t\t\t$this->prevoyance_tb_salar = $this->prevoyance_taux_tb_salar * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 9510 ) ? 9510 : $this->tb_chomage );\n\t\t\t\t$this->prevoyance_taux_tb_patron = ( 0.57 / 100 );\n\t\t\t\t$this->prevoyance_tb_patron = $this->prevoyance_taux_tb_patron * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 9510 ) ? 9510 : $this->tb_chomage );\n\t\t\t}\n\t\t\tif($this->sal_statut->getSlug() ==\"non_cadre\"){\n\t\t\t\t//Cadre\n\t\t\t\t$this->prevoyance_taux_ta_salar = ( 0.37 / 100 );\n\t\t\t\t$this->prevoyance_ta_salar = $this->prevoyance_taux_ta_salar * ( ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref );\n\t\t\t\t$this->prevoyance_taux_ta_patron = ( 0.37 / 100 );\n\t\t\t\t$this->prevoyance_ta_patron = $this->prevoyance_taux_ta_patron * ( ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref );\n\t\t\t\t\n\t\t\t\t$this->prevoyance_taux_tb_salar = ( 0.57 / 100 );\n\t\t\t\t$this->prevoyance_tb_salar = $this->prevoyance_taux_tb_salar * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 12680 ) ? 12680 : $this->tb_agric );\n\t\t\t\t$this->prevoyance_taux_tb_patron = ( 0.57 / 100 );\n\t\t\t\t$this->prevoyance_tb_patron = $this->prevoyance_taux_tb_patron * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 12680 ) ? 12680 : $this->tb_agric );\n\t\t\t\t\n\t\t\t\t$this->prevoyance_taux_tc_salar = ( 0.57 / 100 );\n\t\t\t\t$this->prevoyance_tc_salar = $this->prevoyance_taux_tc_salar * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 12680 ) ? 12680 : $this->tc_agric );\n\t\t\t\t$this->prevoyance_taux_tc_patron = ( 0.57 / 100 );\n\t\t\t\t$this->prevoyance_tc_patron = $this->prevoyance_taux_tc_patron * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 12680 ) ? 12680 : $this->tc_agric );\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\t *\t##############################################################################################################################\n\t\t*\tCALCULES UNIQUEMENT POUR PRESTATAIRE DE SERVICE TERTIAIRE\n\t\t*\t##############################################################################################################################\n\t\t*/\n\t\tif($this->ent_conv->getSlug()==\"prestataires-services\"){\n\t\t\tif($this->sal_statut->getSlug() ==\"cadre\"){\n\t\t\t\t//Non Cadre\n\t\t\t\t$this->prevoyance_taux_ta_salar = ( 0.396 / 100 );\n\t\t\t\t$this->prevoyance_ta_salar = $this->prevoyance_taux_ta_salar * ( ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref );\n\t\t\t\t$this->prevoyance_taux_ta_patron = ( 0.484 / 100 );\n\t\t\t\t$this->prevoyance_ta_patron = $this->prevoyance_taux_ta_patron * ( ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref );\n\t\t\t\t\n\t\t\t\t$this->prevoyance_taux_tb_salar = ( 0.396 / 100 );\n\t\t\t\t$this->prevoyance_tb_salar = $this->prevoyance_taux_tb_salar * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 9510 ) ? 9510 : $this->tb_chomage );\n\t\t\t\t$this->prevoyance_taux_tb_patron = ( 0.484 / 100 );\n\t\t\t\t$this->prevoyance_tb_patron = $this->prevoyance_taux_tb_patron * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 9510 ) ? 9510 : $this->tb_chomage );\n\t\t\t}\n\t\t\tif($this->sal_statut->getSlug() ==\"non_cadre\"){\n\t\t\t//Cadre\n\t\t\t\t$this->prevoyance_taux_ta_salar = 0;\n\t\t\t\t$this->prevoyance_ta_salar = 0 ;\n\t\t\t\t$this->prevoyance_taux_ta_patron = ( 1.50 / 100 );\n\t\t\t\t$this->prevoyance_ta_patron = $this->prevoyance_taux_ta_patron * ( ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref );\n\t\t\t\t\n\t\t\t\t$this->prevoyance_taux_tb_salar = ( 0.648 / 100 );\n\t\t\t\t$this->prevoyance_tb_salar = $this->prevoyance_taux_tb_salar * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 12680 ) ? 12680 : $this->tb_agric );\n\t\t\t\t$this->prevoyance_taux_tb_patron = ( 0.792 / 100 );\n\t\t\t\t$this->prevoyance_tb_patron = $this->prevoyance_taux_tb_patron * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 12680 ) ? 12680 : $this->tb_agric );\n\t\t\t\t\n\t\t\t\t$this->prevoyance_taux_tc_salar = ( 0.648 / 100 );\n\t\t\t\t$this->prevoyance_tc_salar = $this->prevoyance_taux_tc_salar * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 12680 ) ? 12680 : $this->tc_agric );\n\t\t\t\t$this->prevoyance_taux_tc_patron = ( 0.792 / 100 );\n\t\t\t\t$this->prevoyance_tc_patron = $this->prevoyance_taux_tc_patron * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 12680 ) ? 12680 : $this->tc_agric );\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\t *\t##############################################################################################################################\n\t\t*\tCALCULES UNIQUEMENT POUR HOTELS CAFE RESTAURANT\n\t\t*\t##############################################################################################################################\n\t\t*/\n\t\tif($this->ent_conv->getSlug()==\"hotels-cafes-restaurants\"){\n\t\t\tif($this->sal_statut->getSlug() == \"cadre\"){\n\t\t\t\t//Non Cadre\n\t\t\t\t$this->prevoyance_taux_ta_salar = ( 0.40 / 100 );\n\t\t\t\t$this->prevoyance_ta_salar = $this->prevoyance_taux_ta_salar * ( ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref );\n\t\t\t\t$this->prevoyance_taux_ta_patron = ( 0.40 / 100 );\n\t\t\t\t$this->prevoyance_ta_patron = $this->prevoyance_taux_ta_patron * ( ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref );\n\t\t\t\t\n\t\t\t\t$this->prevoyance_taux_tb_salar = ( 0.40 / 100 );\n\t\t\t\t$this->prevoyance_tb_salar = $this->prevoyance_taux_tb_salar * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 9510 ) ? 9510 : $this->tb_chomage );\n\t\t\t\t$this->prevoyance_taux_tb_patron = ( 0.40 / 100 );\n\t\t\t\t$this->prevoyance_tb_patron = $this->prevoyance_taux_tb_patron * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 9510 ) ? 9510 : $this->tb_chomage );\n\t\t\t}\n\t\t\tif($this->sal_statut->getSlug() == \"non_cadre\"){\n\t\t\t\t//Cadre\n\t\t\t\t$this->prevoyance_taux_ta_salar = ( 0.40 / 100 );\n\t\t\t\t$this->prevoyance_ta_salar = $this->prevoyance_taux_ta_salar * ( ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref );\n\t\t\t\t$this->prevoyance_taux_ta_patron = ( 0.40 / 100 );\n\t\t\t\t$this->prevoyance_ta_patron = $this->prevoyance_taux_ta_patron * ( ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref );\n\t\t\t\t\n\t\t\t\t$this->prevoyance_taux_tb_salar = ( 0.40 / 100 );\n\t\t\t\t$this->prevoyance_tb_salar = $this->prevoyance_taux_tb_salar * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 12680 ) ? 12680 : $this->tb_agric );\n\t\t\t\t$this->prevoyance_taux_tb_patron = ( 0.40 / 100 );\n\t\t\t\t$this->prevoyance_tb_patron = $this->prevoyance_taux_tb_patron * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 12680 ) ? 12680 : $this->tb_agric );\n\t\t\t\t\n\t\t\t\t$this->prevoyance_taux_tc_salar = ( 0.40 / 100 );\n\t\t\t\t$this->prevoyance_tc_salar = $this->prevoyance_taux_tc_salar * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 12680 ) ? 12680 : $this->tc_agric );\n\t\t\t\t$this->prevoyance_taux_tc_patron = ( 0.40 / 100 );\n\t\t\t\t$this->prevoyance_tc_patron = $this->prevoyance_taux_tc_patron * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 12680 ) ? 12680 : $this->tc_agric );\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\t *\t##############################################################################################################################\n\t\t*\tCALCULES UNIQUEMENT POUR COMMERCE DE GROS\n\t\t*\t##############################################################################################################################\n\t\t*/\n\t\tif($this->ent_conv->getSlug()==\"commerce-gros\"){\n\t\t\tif($this->sal_statut->getSlug() == \"cadre\"){\n\t\t\t\t//Non Cadre\n\t\t\t\t$this->prevoyance_taux_ta_salar = ( 0.156 / 100 );\n\t\t\t\t$this->prevoyance_ta_salar = $this->prevoyance_taux_ta_salar * ( ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref );\n\t\t\t\t$this->prevoyance_taux_ta_patron = ( 0.274 / 100 );\n\t\t\t\t$this->prevoyance_ta_patron = $this->prevoyance_taux_ta_patron * ( ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref );\n\t\t\t\t\n\t\t\t\t$this->prevoyance_taux_tb_salar = ( 0.156 / 100 );\n\t\t\t\t$this->prevoyance_tb_salar = $this->prevoyance_taux_tb_salar * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 9510 ) ? 9510 : $this->tb_chomage );\n\t\t\t\t$this->prevoyance_taux_tb_patron = ( 0.274 / 100 );\n\t\t\t\t$this->prevoyance_tb_patron = $this->prevoyance_taux_tb_patron * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 9510 ) ? 9510 : $this->tb_chomage );\n\t\t\t}\n\t\t\tif($this->sal_statut->getSlug() == \"non_cadre\"){\n\t\t\t\t//Cadre\n\t\t\t\t$this->prevoyance_taux_ta_salar = ( 0.602 / 100 );\n\t\t\t\t$this->prevoyance_ta_salar = $this->prevoyance_taux_ta_salar * ( ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref );\n\t\t\t\t$this->prevoyance_taux_ta_patron = ( 2.198 / 100 );\n\t\t\t\t$this->prevoyance_ta_patron = $this->prevoyance_taux_ta_patron * ( ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref );\n\t\t\t\t\n\t\t\t\t$this->prevoyance_taux_tb_salar = ( 2.26 / 100 ) ;\n\t\t\t\t$this->prevoyance_tb_salar = $this->prevoyance_taux_tb_salar * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 12680 ) ? 12680 : $this->tb_agric );\n\t\t\t\t$this->prevoyance_taux_tb_patron = ( 2.28 / 100 );\n\t\t\t\t$this->prevoyance_tb_patron = $this->prevoyance_taux_tb_patron * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 12680 ) ? 12680 : $this->tb_agric );\n\t\t\t\t\n\t\t\t\t$this->prevoyance_taux_tc_salar = ( 2.26 / 100 ) ;\n\t\t\t\t$this->prevoyance_tc_salar = $this->prevoyance_taux_tc_salar * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 12680 ) ? 12680 : $this->tc_agric );\n\t\t\t\t$this->prevoyance_taux_tc_patron = ( 2.28 / 100 );\n\t\t\t\t$this->prevoyance_tc_patron = $this->prevoyance_taux_tc_patron * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 12680 ) ? 12680 : $this->tc_agric );\n\t\t\t}\n\t\t}\n\t\t/*\n\t\t*\t##############################################################################################################################\n\t\t*\tCALCULES UNIQUEMENT POUR COMMERCE DE DETAILS\n\t\t*\t##############################################################################################################################\n\t\t*/\n\t\tif($this->ent_conv->getSlug()==\"commerce-detail\"){\n\t\t\tif($this->sal_statut->getSlug() == \"cadre\"){\n\t\t\t\t//Non Cadre\n\t\t\t\t$this->prevoyance_taux_ta_salar = ( 0.19 / 100 );\n\t\t\t\t$this->prevoyance_ta_salar = $this->prevoyance_taux_ta_salar * ( ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref );\n\t\t\t\t$this->prevoyance_taux_ta_patron = ( 0.25 / 100 );\n\t\t\t\t$this->prevoyance_ta_patron = $this->prevoyance_taux_ta_patron * ( ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref );\n\t\t\t\t\n\t\t\t\t$this->prevoyance_taux_tb_salar = ( 0.19 / 100 ) ;\n\t\t\t\t$this->prevoyance_tb_salar = $this->prevoyance_taux_tb_salar * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 9510 ) ? 9510 : $this->tb_chomage );\n\t\t\t\t$this->prevoyance_taux_tb_patron = ( 0.25 / 100 ) ;\n\t\t\t\t$this->prevoyance_tb_patron = $this->prevoyance_tb_patron * ( ( ( $this->salaire_ref - $this->plafond_ss ) > 9510 ) ? 9510 : $this->tb_chomage );\n\t\t\t}\n\t\t\tif($this->sal_statut->getSlug() == \"non_cadre\"){\n\t\t\t\t//Cadre\n\t\t\t\t$this->prevoyance_taux_ta_salar = 0 ;\n\t\t\t\t$this->prevoyance_ta_salar = 0 ;\n\t\t\t\t$this->prevoyance_taux_ta_patron = 0 ;\n\t\t\t\t$this->prevoyance_ta_patron = $this->prevoyance_ta_patron * ( ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref );\n\t\t\t}\n\t\t}\n\t\t/*\n\t\t*\t##############################################################################################################################\n\t\t*\tCALCULES UNIQUEMENT POUR LES BANQUES\n\t\t*\t##############################################################################################################################\n\t\t*/\n\t\tif($this->ent_conv->getSlug()==\"banques\"){\n\t\t\tif($this->sal_statut->getSlug() == \"cadre\"){\n\t\t\t\t//Non Cadre\n\t\t\t\t$this->prevoyance_taux_brut = 0.75 / 100 ;\n\t\t\t\t$this->prevoyance_brut = ( $this->prevoyance_brut_ta ) * $this->salaire_ref ;\n\t\t\t}\n\t\t\tif($this->sal_statut->getSlug() == \"non_cadre\"){\n\t\t\t\t//Cadre\n\t\t\t\t$this->prevoyance_taux_brut = 1.50 / 100 ;\n\t\t\t\t$this->prevoyance_brut = ( $this->prevoyance_brut_ta ) * ( ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref );\n\t\t\t}\n\t\t}\n\t\t/*\n\t\t *\t##############################################################################################################################\n\t\t*\tCALCULES UNIQUEMENT POUR LES ASSURANCES\n\t\t*\t##############################################################################################################################\n\t\t*/\n\t\tif($this->ent_conv->getSlug()==\"assurances\"){\n\t\t\tif($this->sal_statut->getSlug() == \"cadre\"){\n\t\t\t\t//Non Cadre\n\t\t\t\t$this->prevoyance_taux_brut = ( 0.75 / 100 ) ;\n\t\t\t\t$this->prevoyance_brut = $this->prevoyance_brut_ta * $this->salaire_ref ;\n\t\t\t}\n\t\t\tif($this->sal_statut->getSlug() == \"non_cadre\"){\n\t\t\t\t//Cadre\n\t\t\t\t$this->prevoyance_taux_brut = ( 1.50 / 100 ) ;\n\t\t\t\t$this->prevoyance_brut = $this->prevoyance_brut_ta * ( ( $this->salaire_ref > $this->plafond_ss ) ? $this->plafond_ss : $this->salaire_ref );\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\t * CALCULS SPECIQUES A PREVOYANCE\n\t\t* 5.10% de Var.Salaire réf. * 98.25% + (Val.Prévoyance TA ou Val.Prévoyance Brut)\n\t\t* SI 3.Effectif < 10 ALORS 8% de (Val.Prévoyance TA + et/ou Val.Prévoyance TB + et/ou Val.Prévoyance Brut ) SINON 8% de 0\n\t\t*/\n\t\t$this->prevoyance_csg_deduc_salar = ( (5.10/100) * $this->salaire_ref ) * (98.25/100) + (($this->prevoyance_brut)?$this->prevoyance_brut:$this->prevoyance_ta_salar);\n\t\t\n\t\t$this->prevoyance_forfait_social_patron = ($this->ent_effectif < 10)?(8/100) * ($this->prevoyance_ta_patron + $this->prevoyance_tb_patron + $this->prevoyance_brut):0;\n\t\t\n\t\t/*\n\t\t *\t##############################################################################################################################\n\t\t*\tTOTAL DES RETENUS\n\t\t*\t##############################################################################################################################\n\t\t*/\n\t\t\n\t\t$this->somme_montant_salar = \n\t\t\t//URSSAF\n\t\t\t$this->urssaf_assurance_maladie_salar + $this->urssaf_av_deplafonnee_salar + $this->urssaf_av_plafonnee_salar + $this->urssaf_chomage_trancheA_salar + $this->urssaf_chomage_trancheB_salar +\n\t\t\t//RETRAITE\n\t\t\t$this->cretraite_complement_agff_tranche1_salar + $this->cretraite_complement_agff_tranche2_salar + $this->cretraite_complement_arrco_tranche1_salar +\n\t\t\t//PREVOYANCE\n\t\t\t$this->prevoyance_csg_deduc_salar + $this->prevoyance_ta_salar + $this->prevoyance_tb_salar + $this->prevoyance_tc_salar\n\t\t;\n\t\t\t\n\t\t$this->somme_montant_patron = \n\t\t\t//URSSAF\n\t\t\t$this->urssaf_accident_travail_patron + $this->urssaf_alloc_famill_complement_patron + $this->urssaf_alloc_famill_patron + $this->urssaf_assurance_maladie_patron + $this->urssaf_av_deplafonnee_patron + $this->urssaf_av_plafonnee_patron + $this->urssaf_chomage_trancheA_patron + $this->urssaf_chomage_trancheAGS_patron + $this->urssaf_chomage_trancheB_patron + $this->urssaf_contribution_solidarité_patron + $this->urssaf_fnal_patron + $this->urssaf_ossope_patron + $this->urssaf_reduc_fillon_patron + $this->urssaf_transport_patron +\n\t\t\t//RETRAITE\n\t\t\t$this->cretraite_complement_agff_tranche1_patron + $this->cretraite_complement_agff_tranche2_patron + $this->cretraite_complement_arrco_tranche1_patron +\n\t\t\t//TAXE\n\t\t\t$this->taxediv_apprentissage_patron + $this->taxediv_contrib_apprenstissage_patron + $this->taxediv_participation_entre_mini_10_patron +\n\t\t\t//PREVOYANCE\n\t\t\t$this->prevoyance_forfait_social_patron + $this->prevoyance_ta_patron + $this->prevoyance_tb_patron + $this->prevoyance_tc_patron\n\t\t;\n\t\t\t\t\n\t\tif($this->ent_conv->getSlug()=='cadre'){\n\t\t\t$this->somme_montant_salar += $this->cadre_retraite_compl_agric_trancheB_salar + $this->cadre_retraite_compl_agric_trancheC_salar + $this->cet_salar + $this->apec_ta_salar + $this->apec_tb_salar;\n\t\t\t$this->somme_montant_patron += $this->cadre_retraite_compl_agric_trancheB_patron + $this->cadre_retraite_compl_agric_trancheC_patron + $this->cet_patron + $this->apec_ta_patron + $this->apec_tb_patron;\n\t\t}else{\n\t\t\t$this->somme_montant_salar += $this->cretraite_complement_arrco_tranche2_salar;\n\t\t\t$this->somme_montant_patron += $this->cretraite_complement_arrco_tranche1_patron;\n\t\t}\n\t\t\n\t\t/*\n\t\t\t*\t##############################################################################################################################\n\t\t*\tCALCULES SPECIFIQUES RECAPITULATIF\n\t\t*\t##############################################################################################################################\n\t\t*/\n\n\t\t$this->recap_net_impossable = $this->salaire_ref - $this->somme_montant_salar;\n\t\t$this->recap_urssaf_csg_non_deduc = (2.4/100) * ($this->salaire_ref * (98.25/100) + $this->prevoyance_ta_patron + $this->prevoyance_tb_patron + $this->prevoyance_brut);\n\t\t$this->recap_urssaf_cdrs = (0.5/100) * ($this->salaire_ref * (98.25/100) + $this->prevoyance_ta_patron + $this->prevoyance_tb_patron + $this->prevoyance_brut);\t\t\n\t\t$this->recap_heure_periode = $this->paie_nb_heure + $this->paie_hsupp_125 + $this->paie_hsupp_150;\n\t\t$this->recap_cumul_heure = $this->recap_heure_periode + $this->conge_cumul_heures + $this->conge_cumul_hsup;\n\t\t$this->recap_cumul_heure_sup = $this->conge_cumul_hsup + $this->paie_hsupp_125 + $this->paie_hsupp_150;\n\t\t$this->recap_cumul_bases = $this->getWorkedMonthOfTheYear() * $base_av_plafonnee;\n\t\t$this->recap_cumul_brut = $this->salaire_ref;\n\t\t$this->recap_total_cotis_pat = $this->somme_montant_patron;\n\t\t$this->recap_total_retenue = $this->somme_montant_salar + $this->somme_montant_patron + $this->recap_urssaf_csg_non_deduc + $this->recap_urssaf_cdrs;\n\t\t$this->recap_cout_globale = $this->salaire_ref + $this->somme_montant_patron;\n\n\t\t$this->recap_net_a_payer = $this->recap_net_impossable - $this->recap_urssaf_csg_non_deduc - $this->recap_urssaf_cdrs + $this->remb_frais_transport - $this->remb_avant_nature;\n\t}", "title": "" }, { "docid": "9ce206b0055751b0a752610144e02926", "score": "0.5685808", "text": "public function getTemperaturaCelsius(): float {\n return $this->temperatura - 273;\n }", "title": "" }, { "docid": "e1f623ac0489255b7b57d729765ca340", "score": "0.5684855", "text": "public function getTempsEntreRondes()\n {\n return $this->tempsEntreRondes;\n }", "title": "" }, { "docid": "f62d3156cf850e2e91ec62ea27d26212", "score": "0.56841606", "text": "function Tarjets()\n {\n $movimiento = $this->Sensores_model->GetCountMovimiento()->numero;\n\n //status de sensores de basura\n $basura = $this->Sensores_model->GetTrash();\n\n //status de sensores de basura\n $agua = $this->Sensores_model->GetWater();\n\n $cont_fully = 0;\n $cont_stable = 0;\n $cont_empty = 0;\n\n foreach ($basura as $contenedor)\n {\n foreach ($contenedor as $valores => $dato)\n {\n if($valores == \"valor\")\n {\n if($dato == 0 || $dato < 5)\n $cont_empty++;\n else if($dato >= 5 && $dato <=85)\n $cont_stable++;\n else if($dato > 85)\n $cont_fully++;\n }\n }\n }\n\n foreach ($agua as $contenedor)\n {\n foreach ($contenedor as $valores => $dato)\n {\n if($valores == \"valor\")\n {\n if($dato == 0 || $dato < 5)\n $cont_empty++;\n else if($dato >= 5 && $dato <=85)\n $cont_stable++;\n else if($dato > 85)\n $cont_fully++;\n }\n }\n }\n\n $array = array('movimiento' => $movimiento, 'full' => $cont_fully, 'stable' => $cont_stable, 'empty' => $cont_empty);\n\n echo json_encode($array);\n\n }", "title": "" }, { "docid": "4f47280caf77cb572bdfbcf9f9ff9a27", "score": "0.5683863", "text": "public function getTempUnit()\n {\n return $this->tempUnit;\n }", "title": "" }, { "docid": "5c333794341c0daa158ae29d902189c8", "score": "0.5654201", "text": "function temperatura_diaria ($serie, $intervalo, $mes, $dia, $conectar)\r\n {\r\n // $serie = \"\"; // N° de serie del dispositivo que quiero consultar\r\n // $mes = \"\"; // Fecha del dia que quiero consultar la temperatura\r\n // $dia = \"\";\r\n // $intervalo = 0; // Se usa esta variable para no graficar tooooodos los datos (se saltea el nro de 'intervalos' de datos para graficar menos ptos)\r\n\r\n $ano = date(\"Y\"); // Consulto siempre sobre el año actual\r\n\r\n // Esto funciona en tanto y cuanto tenga los datos cargados de esta forma en la BD, si no hay que hacer un query distinto\r\n // $resultado = mysqli_query($conectar, \"SELECT UNIX_TIMESTAMP(`fecha`), temperatura FROM datos WHERE year(`fecha`) = '$ano' \r\n // AND month(`fecha`) = '$mes' AND day(`fecha`) = '$dia' AND `serie`='$serie'\" );\r\n\r\n // Para pruebas:\r\n $resultado = mysqli_query($conectar, \"SELECT UNIX_TIMESTAMP(`fecha`), temperatura FROM datos WHERE year(`fecha`) = '$ano' \r\n AND month(`fecha`) = '$mes' AND day(`fecha`) = '$dia'\" );\r\n\r\n \r\n while ($row = mysqli_fetch_array($resultado))\r\n {\r\n // Se realiza el formato que requiere highcharts (los corchetes y eso)\r\n \r\n echo\"[\".($row[0]*1000).\",\".($row[1]).\"],\";\r\n\r\n for ($x=0; $x<$intervalo; $x++)\r\n {\r\n $row = mysqli_fetch_array($resultado);\r\n }\r\n }\r\n \r\n mysqli_close($conectar);\r\n }", "title": "" }, { "docid": "6440bbe375d18951f338ecf3fb2cb026", "score": "0.5636609", "text": "function AfficherTDFCoureur($tab){\n\t\techo '<table border=\"1\">';\n\t\techo \"<tr><td>Nom</td><td>Prenom</td><td>Année de Naissance</td><td>Première année de participation</td><td>Nationalité</td></tr>\";\n\t\tforeach($tab as $ligne)\n\t\t{\n\t\t\techo '<tr>';\n\t\t\tforeach($ligne as $valeur){\n\t\t\t\techo \"<td>$valeur </td>\";\n\t\t\t}\n\t\t\techo '</tr>';\n\t\t}\n\t\techo '</table>';\n\t}", "title": "" }, { "docid": "08dffbfce0231eb60826acd95cfce30f", "score": "0.5631142", "text": "public function tipo_traccia();", "title": "" }, { "docid": "c75793c3e6578eb0a8223e772187657f", "score": "0.5630591", "text": "function calculeaza_tva($_pret) {\n\tglobal $tva; // variabila globala\n\n\t$pret_cu_tva = $_pret * $tva;\n\treturn \"pret fara tva: <b>$_pret</b> Pret cu tva: <b>$pret_cu_tva</b>\" ;\n}", "title": "" }, { "docid": "d507a070f4099770a3047cda9ca7213c", "score": "0.5628208", "text": "function ventasFORT(){\n return ($this->game_fort->getPrecio() * $this->cant_vent_fort);\n }", "title": "" }, { "docid": "d507a070f4099770a3047cda9ca7213c", "score": "0.5628208", "text": "function ventasFORT(){\n return ($this->game_fort->getPrecio() * $this->cant_vent_fort);\n }", "title": "" }, { "docid": "e9f41adf9c53b994dd737a31260839d3", "score": "0.5625523", "text": "public function getTauxTva() {\n return $this->tauxTva;\n }", "title": "" }, { "docid": "09e772c7b8621e466696ab363f34cd68", "score": "0.5623775", "text": "function repartirMoscas() {\n $this->cuerpo = $this->generarTablero(count($this->cuerpo), $this->nMoscas);\n }", "title": "" }, { "docid": "8116a1a06f6f474a417d9580e9df8534", "score": "0.56170213", "text": "function temps_qui_reste($date,$type) {\r\n\tif($type == \"timestamp\") {\r\n\t\t$date1 = $date; // depuis cette date\r\n\t} elseif($type == \"date\") {\r\n\t\t$date1 = strtotime($date); // depuis cette date\r\n\t} else {\r\n\t\treturn \"Non reconnu\";\r\n\t\texit();\r\n\t}\r\n\t$date2 = date(\"U\"); // Ó la date actuelle\r\n\tif($date1<$date2) echo utf8_encode('la date d\\'ÚchÚance est dÚpassÚe');\r\n\telse {\r\n\t$return = \"\";\r\n\t// ######## ANNEE ########\r\n\tif((date('Y',$date1 - $date2)-1970) > 0) {\r\n\t\tif((date('Y',$date1 - $date2)-1970) > 1) {\r\n\t\t\t$echo_annee = (date('Y',$date1 - $date2)-1970).\" AnneÚs\";\r\n\t\t\t$return = $echo_annee.\", \";\r\n\t\t} else {\r\n\t\t\t$echo_annee = (date('Y',$date1 - $date2)-1970).\" AnnÚe\";\r\n\t\t\t$return = $echo_annee.\", \";\r\n\t\t}\r\n\t} else {\r\n\t\t$echo_annee = \"\";\r\n\t\t$return = $return;\r\n\t}\r\n\t// ######## MOIS ########\r\n\tif((date('m',$date1 - $date2)-1) > 0) {\r\n\t\t$echo_mois = (date('m',$date1 - $date2)-1).\" Mois \";\r\n\t\tif(!empty($echo_annee)) {\r\n\t\t\t$return = $echo_annee.\" et \".$echo_mois;\r\n\t\t} else {\r\n\t\t\t$return = $echo_mois;\r\n\t\t}\r\n\t} else {\r\n\t\t$echo_mois = \"\";\r\n\t\t$return = $return;\r\n\t}\r\n\t// ######## JOUR ########\r\n\tif((date('d',$date1 - $date2)-1) > 0) {\r\n\t\tif((date('d',$date1 - $date2)-1) > 1) {\r\n\t\t\t$echo_jour = (date('d',$date1 - $date2)-1).\" Jours\";\r\n\t\t\tif(!empty($echo_annee) OR !empty($echo_mois)) {\r\n\t\t\t\t$return = $return.$echo_mois.\" et \".$echo_jour;\r\n\t\t\t} else {\r\n\t\t\t\t$return = $return.$echo_mois.$echo_jour;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$echo_jour = (date('d',$date1 - $date2)-1).\" Jour\";\r\n\t\t\tif(!empty($echo_annee) OR !empty($echo_mois)) {\r\n\t\t\t\t$return = $return.$echo_mois.\" et \".$echo_jour;\r\n\t\t\t} else {\r\n\t\t\t\t$return = $return.$echo_mois.$echo_jour;\r\n\t\t\t}\r\n\t\t}\r\n\t} else {\r\n\t\t$echo_jour = \"\";\r\n\t\t$return = $return;\r\n\t}\r\n\t// ######## HEURE ########\r\n\tif((date('H',$date1 - $date2)-1) > 0) {\r\n\t\tif((date('H',$date1 - $date2)-0) > 1) {\r\n\t\t\t$echo_heure = (date('H',$date1 - $date2)-0).\" Heures\";\r\n\t\t\tif(!empty($echo_annee) OR !empty($echo_mois) OR !empty($echo_jour)) {\r\n\t\t\t\t$return = $echo_annee.$echo_mois.$echo_jour.\" et \".$echo_heure;\r\n\t\t\t} else {\r\n\t\t\t\t$return = $echo_annee.$echo_mois.$echo_jour.$echo_heure;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$echo_heure = (date('H',$date1 - $date2)-0).\" Heure\";\r\n\t\t\tif(!empty($echo_annee) OR !empty($echo_mois) OR !empty($echo_jour)) {\r\n\t\t\t\t$return = $echo_annee.$echo_mois.$echo_jour.\" et \".$echo_heure;\r\n\t\t\t} else {\r\n\t\t\t\t$return = $echo_annee.$echo_mois.$echo_jour.$echo_heure;\r\n\t\t\t}\r\n\t\t}\r\n\t} else {\r\n\t\t$echo_heure = \"\";\r\n\t\t$return = $return;\r\n\t}\r\n\t// ######## MINUTE ET SECONDE ########\r\n\t$virgule_annee = \"\";\r\n\t$virgule_mois = \"\";\r\n\t$virgule_jour = \"\";\r\n\tif(date('i',$date1 - $date2) > 0) {\r\n\t\tif(date('i',$date1 - $date2) > 1) {\r\n\t\t\t$echo_minute = round(date('i',$date1 - $date2)).\" Minutes\";\r\n\t\t\tif(!empty($echo_annee) OR !empty($echo_mois) OR !empty($echo_jour) OR !empty($echo_heure)) {\r\n\t\t\t\tif(!empty($echo_annee)) {\r\n\t\t\t\t\tif(!empty($echo_mois) OR !empty($echo_jour) OR !empty($echo_heure)) {\r\n\t\t\t\t\t\t$virgule_annee = \", \";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(!empty($echo_mois)) {\r\n\t\t\t\t\tif(!empty($echo_jour) OR !empty($echo_heure)) {\r\n\t\t\t\t\t\t$virgule_mois = \", \";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(!empty($echo_jour)) {\r\n\t\t\t\t\tif(!empty($echo_heure)) {\r\n\t\t\t\t\t\t$virgule_jour = \" et \";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$return = $echo_annee.$virgule_annee.$echo_mois.$virgule_mois.$echo_jour.$virgule_jour.$echo_heure;//.\" et \".$echo_minute;\r\n\t\t\t} else {\r\n\t\t\t\t$return = $echo_annee.$virgule_annee.$echo_mois.$virgule_mois.$echo_jour.$virgule_jour.$echo_heure;//.$echo_minute;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$echo_minute = round(date('i',$date1 - $date2)).\" Minute\";\r\n\t\t\tif(!empty($echo_annee) OR !empty($echo_mois) OR !empty($echo_jour) OR !empty($echo_heure)) {\r\n\t\t\t\tif(!empty($echo_annee)) {\r\n\t\t\t\t\tif(!empty($echo_mois) OR !empty($echo_jour) OR !empty($echo_heure)) {\r\n\t\t\t\t\t\t$virgule_annee = \", \";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(!empty($echo_mois)) {\r\n\t\t\t\t\tif(!empty($echo_jour) OR !empty($echo_heure)) {\r\n\t\t\t\t\t\t$virgule_mois = \", \";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(!empty($echo_jour)) {\r\n\t\t\t\t\tif(!empty($echo_heure)) {\r\n\t\t\t\t\t\t$virgule_jour = \" et \";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$return = $echo_annee.$virgule_annee.$echo_mois.$virgule_mois.$echo_jour.$virgule_jour.$echo_heure;//.\" et \".$echo_minute;\r\n\t\t\t} else {\r\n\t\t\t\t$return = $echo_annee.$virgule_annee.$echo_mois.$virgule_mois.$echo_jour.$virgule_jour.$echo_heure;//.$echo_minute;\r\n\t\t\t}\r\n\t\t}\r\n\t} else {\r\n\t\tif(date('s',$date1 - $date2) > 1) {\r\n\t\t\t$echo_minute = round(date('s',$date1 - $date2)).\" Secondes\";\r\n\t\t\tif(!empty($echo_annee) OR !empty($echo_mois) OR !empty($echo_jour) OR !empty($echo_heure)) {\r\n\t\t\t\tif(!empty($echo_annee)) {\r\n\t\t\t\t\tif(!empty($echo_mois) OR !empty($echo_jour) OR !empty($echo_heure)) {\r\n\t\t\t\t\t\t$virgule_annee = \", \";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(!empty($echo_mois)) {\r\n\t\t\t\t\tif(!empty($echo_jour) OR !empty($echo_heure)) {\r\n\t\t\t\t\t\t$virgule_mois = \", \";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(!empty($echo_jour)) {\r\n\t\t\t\t\tif(!empty($echo_heure)) {\r\n\t\t\t\t\t\t$virgule_jour = \" et \";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$return = $echo_annee.$virgule_annee.$echo_mois.$virgule_mois.$echo_jour.$virgule_jour.$echo_heure;//.\" et \".$echo_minute;\r\n\t\t\t} else {\r\n\t\t\t\t$return = $echo_annee.$virgule_annee.$echo_mois.$virgule_mois.$echo_jour.$virgule_jour.$echo_heure;//.$echo_minute;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif(!empty($echo_annee) OR !empty($echo_mois) OR !empty($echo_jour) OR !empty($echo_heure)) {\r\n\t\t\t\tif(!empty($echo_annee)) {\r\n\t\t\t\t\tif(!empty($echo_mois) OR !empty($echo_jour) OR !empty($echo_heure)) {\r\n\t\t\t\t\t\t$virgule_annee = \", \";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(!empty($echo_mois)) {\r\n\t\t\t\t\tif(!empty($echo_jour) OR !empty($echo_heure)) {\r\n\t\t\t\t\t\t$virgule_mois = \", \";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(!empty($echo_jour)) {\r\n\t\t\t\t\tif(!empty($echo_heure)) {\r\n\t\t\t\t\t\t$virgule_jour = \" et \";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$return = $echo_annee.$virgule_annee.$echo_mois.$virgule_mois.$echo_jour.$virgule_jour.$echo_heure;//.\" et \".$echo_minute;\r\n\t\t\t} else {\r\n\t\t\t\t$return = $echo_annee.$virgule_annee.$echo_mois.$virgule_mois.$echo_jour.$virgule_jour.$echo_heure;//.$echo_minute;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\treturn \"Il vous reste \".$return;\r\n\t}\r\n}", "title": "" }, { "docid": "70c1323ba3a0123ebe401c94cfc4a166", "score": "0.55982107", "text": "public function getTore1();", "title": "" }, { "docid": "7b93bc4d52226218e1e190e7b7bc8639", "score": "0.5591568", "text": "public function getTemp()\n {\n return $this->temp;\n }", "title": "" }, { "docid": "9307c7fd087ffb9290f64f9afaf1ecd6", "score": "0.55585957", "text": "function meteo2($saison, $temperature){\n if ($saison === 'printemps') {\n $change = 'au';\n } else {\n $change = 'en';\n }\n if ($temperature <= 1 && $temperature >= -1 ) {\n $change2 = 'degré';\n } else {\n $change2 = 'degrés';\n }\n echo \"Nous sommes $change $saison et il fait $temperature $change2 <br>\";\n}", "title": "" }, { "docid": "fc65649882d5c9887aaa00a9201b856e", "score": "0.55566156", "text": "function lire_fichier_incell($num_exp,$fich1,$num_plaque1)// $fich: indice tab noms fichiers; $init_Pos: indice tab initialisation TEE, le num exp est en paramétre car ne se trouve pas dans le fichier et on doit linsérer dans la bdd \r\n{\r\n\t\r\n\t$filearray_incell = file($fich1);\r\n\t$vue=explode(\"\t\",$filearray_incell[0]); // les vues (noyaux, nucview+...)\r\n\t\t\r\n\t\r\n\t$activite_cellules=explode(\"\t\",$filearray_incell[2]); // les activités (Area, form factor...)\r\n\t$target=explode(\"\t\",$filearray_incell[3]); // les targets (mean, count, median...)\r\n\tfor ($i=4;$i<=count($filearray_incell)-1;$i++) // lignes des valeurs\r\n\t{\r\n\t\t$ttt[]=explode(\"\t\",$filearray_incell[$i]);\r\n\t}\r\n\t$nb_lignes_fichier_incell=count($ttt);\r\n\t$nb_activités=count($activite_cellules); //le nb des activités qui va servir dans la boucle suivante:\r\n\t\r\n\t$liste_conversiontxt=liste_de_conversion('Extraction/convert.txt');\r\n\tforeach ($ttt as $t) // lire toutes les lignes\r\n\t{\r\n\t\tfor ($i=2;$i<=$nb_activités-1;$i++) // lire toutes les colonnes contenant des acctivités (commencent à partir de la colonne num 3 donc l'indice num 2 ) \r\n\t\t{\t\r\n\t\t\t\r\n\t\t\t$v=trim($vue[$i]);\r\n\t\t\t$a=trim($activite_cellules[$i]);\r\n\t\t\t$tar=trim($target[$i]);\r\n\t\t\t$val=str_replace(',','.',$t[$i]); // remplacer la virgule par un point pour qu'on puisse l'afficher dans la base avec float\t\r\n\t\t\t$positionx=str_replace(' - ','',$t[0]);// extraire la position pour la passer en paramètre dans la fonction nom_TEE\r\n\t\t\t$position1=trim(substr($positionx,0,3)); // indice 0 3 caractètres\r\n\t\t\t$TEE1=nom_TEE($num_plaque1,$position1,$liste_conversiontxt);\r\n\t\t\t// controle positions DMSO\r\n\t\t\tif(empty($TEE1))\r\n\t\t\t{\r\n\t\t\t\t$array_DMSO=array(\"D4\",\"F22\",\"G15\",\"G16\",\"H4\",\"H15\",\"I9\",\"I10\",\"J9\",\"J22\",\"L4\",\"N22\");\r\n\t\t\t\tif(in_array($position1, $array_DMSO))\r\n\t\t\t\t{\r\n\t\t\t\t\t$TEE1=\"DMSO\";\r\n\t\t\t\t}\r\n\t\t\t\telse {$TEE1=\"Empty\";}\r\n\t\t\t\tif (($nb_lignes_fichier_incell<240))\r\n\t\t\t\t{\r\n\t\t\t\t\t$array_DMSO_derniere_plaque=file_get_contents('Extraction/Fichiers/listepositionderplaque.txt');\r\n\t\t\t\t\t$array_DMSO_derniere_plaque=unserialize($array_DMSO_derniere_plaque);\r\n\t\t\t\t\tif(in_array($position1, $array_DMSO_derniere_plaque))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$TEE1=\"DMSO\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse {$TEE1=\"Empty\";}\r\n\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t\techo '<pre>'.$num_exp.' - '.$TEE1.' - '.$v.' - '.$a.' - '.$val. ' - '.$num_plaque1.' - '.$position1.'</pre>';\r\n\t\t\t\t$sql= \"insert into cell_results (Experiment_Num,TEE,View,Activity,Target,Value,Plate_Num,Position) values ('$num_exp','$TEE1','$v','$a','$tar',$val,$num_plaque1,'$position1')\";\r\n\t\t\t\tmysql_query($sql);\r\n\t\t}\r\n\t}\r\n}", "title": "" }, { "docid": "8c13f7b38f8c05e9315047354c7aaf52", "score": "0.55493635", "text": "private function affiche()\n\t{\n\t}", "title": "" }, { "docid": "155ab5afa72a93c536b5f56c4b189ce8", "score": "0.5547741", "text": "function sauve(){\n\n\t\t// recuperation des variables\n\t\tglobal $FormVars, $locations ;\n\n\t\t//Initialisation des donnees : Analyse des erreurs\n\t\t$Donnees = AnalyseErreurs();\n\n\t\t$local_vars = array (\n\t\t\t\"std_date\" => date(\"d/m/Y\"),\n\t\t\t\"nom_fichier\" => $FormVars['type'].'_'.strtotime(date(\"Y-m-d h:i:s\")),\n\t\t) ;\n\t\t$local_vars['uri_fichier'] = $locations['FicsDir'].\"/\".$local_vars['nom_fichier'].\".html\" ;\n\t\t\n\t\tcalcul_resultats();\n\n\t\t$Entete = \"<p>\n\t\t\tVotre calcul a &eacute;t&eacute; sauvegard&eacute; sous le nom de <b>\".$local_vars['uri_fichier'].\"</b><br />\n\t\t\t<a href=\\\"index.php?action=obtient_fichier&fichier=\".$local_vars['nom_fichier'].\".html.gz\".\"\\\">T&eacute;l&eacute;charger</a><br />\n\t\t\t<a href=\\\"javascript:history.back()\\\">Retour</a>\n\t\t\t</p>\" ; \n\t\t\n//echo $Donnees;\n\n\t\t//Recuperation de la page \"nouveau\"\n\t\t$Donnees .= DecodeVars(DecodeFonction(TraiteTemplate(\"fichier_calcul.htm\")), $FormVars['type']);\n\n\t\t$Donnees = DecodeVars($Donnees, $local_vars) ;\n\t\t\n\t\t// Sauvegarde du \n\t\t/*\n\t\t$fic = fopen($local_vars['uri_fichier'], \"w\");\n\t\tfputs($fic, $Donnees) ;\n\t\tfclose($fic) ;\n\t\t*/\n\t\t\n\t\t//Sauvegarde GZ\n\t\t$fic = gzopen($local_vars['uri_fichier'].\".gz\", \"w9\");\n\t\tgzputs($fic, $Donnees) ;\n\t\tgzclose($fic) ;\n\t\t\n\t\t// Sauvegarde BZ2\n\t\t/*\n\t\t$fic = bzopen($local_vars['uri_fichier'].\".bz2\", \"w9\");\n\t\tbzwrite($fic, $Donnees) ;\n\t\tbzclose($fic) ;\n\t\t*/\n\t\t\n\t\t// Sauvegarde Tar.gz\n\t\t// include class\n\t\t/*\n\t\trequire(\"Tar.php\");\n\t\t// create Archive_Tar() object\n\t\t// specify filename for output file and compression method\n\t\t$tar = new Archive_Tar($local_vars['uri_fichier'].\".tar.gz\", \"gz\");\n\t\t// set up file list\n\t\t$files = array($local_vars['uri_fichier']);\n\t\t// build archive\n\t\t$tar->create($files) or die(\"Could not create archive!\");\n\t\t*/\n\t\t\n\t\t$Donnees = $Entete.$Donnees ;\n\n\t\techo $Donnees ;\n\t\texit;\n \n\t\treturn $Donnees ;\n\n}", "title": "" }, { "docid": "b9e29ababfb76847489b1b82d56a69ab", "score": "0.55453444", "text": "public function tratamientos()\n\t{\n $cows = $this->model->getTreatList();\n include 'view/treatlist.php';\n\n\t}", "title": "" }, { "docid": "aa9a857a60b96d30873edf9f0ccb238f", "score": "0.5542889", "text": "private function tela_to_trabalho(\\Entity\\Trabalho $trabalho) {\n\n //Pega dados da interface.\n $data = $this->input->post();\n\n //$id_usuario = (int) $_SESSION[\"id_usuario\"];\n $titulo = $data[\"ctitulo\"];\n if ($titulo == '') {\n throw new Exception(\"Título do trabalho não preenchido\");\n }\n\n //$titulo = mysql_real_escape_string($data[\"cTitulo\"]);\n //$titulo_ordenar = html_entity_decode(strip_tags($titulo), ENT_QUOTES, \"UTF-8\");\n $resumo = $data[\"cresumo\"];\n if ($resumo == '') {\n throw new Exception(\"Resumo do trabalho não preenchido\");\n }\n \n //<<<<<<<<<<<<<<<<<< Alex implementar<<<<<<<<<<<<<<<<<<<<<<<<<\n $quant_cars_resumo = tamanho_resumo($resumo);\n if ($quant_cars_resumo > TRAB_QUANT_MAX_CARS_RESUMO) {\n throw new Exception(\"Resumo com \".$quant_cars_resumo.\" caracteres. Excedeu o máximo permitido (\".TRAB_QUANT_MAX_CARS_RESUMO.\" caracteres)\");\n }\n\n //Campo é obrigatório <<<<<<<<<<<<<<<<<<\n $resumo2 = \"---\";\n //Se for usar mysql_real_escape_string() tem que ser depois de tamanho_resumo().\n //$resumo = mysql_real_escape_string($resumo);\n //$resumo2 = html_entity_decode(strip_tags($resumo), ENT_QUOTES, \"UTF-8\");\n $palavra1 = html_entity_decode($data[\"palavra1\"]);\n if ($palavra1 == '') {\n throw new Exception(\"Palavra-chave 1 não preenchida\");\n }\n $palavra2 = html_entity_decode($data[\"palavra2\"]);\n if ($palavra2 == '') {\n throw new Exception(\"Palavra-chave 2 não preenchida\");\n }\n $palavra3 = html_entity_decode($data[\"palavra3\"]);\n if ($palavra3 == '') {\n throw new Exception(\"Palavra-chave 3 não preenchida\");\n }\n $id_area = (int) $data[\"id_area\"];\n if ($id_area <= 0) {\n throw new Exception(\"Área temática não preenchida\");\n }\n $id_categoria = (int) $data[\"id_categoria\"];\n if ($id_categoria <= 0) {\n throw new Exception(\"Categoria não preenchida\");\n }\n $id_modalidade = (int) $data[\"id_modalidade\"];\n if ($id_modalidade <= 0) {\n throw new Exception(\"Modalidade não preenchida\");\n }\n $apoiadores = html_entity_decode($data[\"apoiadores\"]);\n $turno1 = $data[\"turno1\"];\n $turno2 = $data[\"turno2\"];\n $turno3 = $data[\"turno3\"];\n if ($turno1 == '') {\n throw new Exception(\"Turno preferencial 1 não foi escolhido\");\n }\n if ($turno1 == '') {\n throw new Exception(\"Turno preferencial 2 não foi escolhido\");\n }\n if ($turno1 == '') {\n throw new Exception(\"Turno preferencial 3 não foi escolhido\");\n }\n if ( ($turno1==$turno2) || ($turno1==$turno3) || ($turno2==$turno3) ) {\n throw new Exception(\"Os três turnos devem ser diferentes\");\n }\n\n //Nao instancia trabalho pois estah vindo por parametro.\n //$trabalho = new \\Entity\\Trabalho;\n \n $trabalho->setTitulo($titulo);\n //$trabalho->setTituloOrdenar($titulo_ordenar);\n $trabalho->fk_area = $id_area;\n $trabalho->fk_categoria = $id_categoria;\n $trabalho->fk_modalidade = $id_modalidade;\n $trabalho->setResumo($resumo);\n $trabalho->setResumo2($resumo2);\n $trabalho->setPalavra1($palavra1);\n $trabalho->setPalavra2($palavra2);\n $trabalho->setPalavra3($palavra3);\n $trabalho->setApoiadores($apoiadores);\n $trabalho->setTurno1($turno1);\n $trabalho->setTurno2($turno2);\n $trabalho->setTurno3($turno3);\n\n return $trabalho;\n }", "title": "" }, { "docid": "0144b6e1a8bd2c9a8e0e396c2a3e725a", "score": "0.5527379", "text": "public function gestionTraducteur()\r\n {\r\n $traducteur = new traducteur();\r\n $data['traducteurs'] = $traducteur->liste();\r\n //afficher la page \r\n $this->render('gestionTraducteur',$data);\r\n }", "title": "" }, { "docid": "30faf49638f9c2fcc26070899a0be0a2", "score": "0.5521795", "text": "public function getEndTemp();", "title": "" }, { "docid": "4f977c0a13cbaf742b31aab0837b6201", "score": "0.5511503", "text": "static function ermittlePlanetenFuerViraleInvasionSchiffe() {\n $comp_id = eigenschaften::$comp_id;\n $spiel_id = eigenschaften::$spiel_id;\n $schlechte_planeten = @mysql_query(\"SELECT p.id, p.temp FROM skrupel_ki_planeten k, \n\t\t\t\tskrupel_planeten p WHERE (k.extra=1) AND (k.comp_id='$comp_id') AND \n\t\t\t\t(k.planeten_id=p.id) AND (p.spiel='$spiel_id')\");\n $planeten = array();\n $optimale_temp = ki_basis::ermittleOptimaleTemp();\n while($planeten_info = @mysql_fetch_array($schlechte_planeten)) {\n $temp = $planeten_info['temp'] - 35;\n if($optimale_temp == 0 || abs($temp - $optimale_temp) < 30) $planeten[] = $planeten_info['id'];\n }\n\n return $planeten;\n }", "title": "" }, { "docid": "a1d21875459b713d3a1eb118b1c460b5", "score": "0.55109787", "text": "function primerDetalle(){\n\t\t$this->movBase = array(\n\t\t\t'det_regnumero' => \t$this->record->com_regnumero,\n\t\t\t'det_tipocomp' => \t$this->record->com_tipocomp,\n\t\t\t'det_numcomp' => \t$this->record->com_numcomp,\n\t\t\t'det_secuencia'=> \t0,\n\t\t\t'det_clasregistro' \t=> 0,\n\t\t\t'det_idauxiliar'=> \t0,\n\t\t\t'det_valdebito' =>\t 0,\n\t\t\t'det_valcredito'=>\t0,\n\t\t\t'det_glosa' => '',\n\t\t\t'det_estejecucion' \t=> 0,\n\t\t\t'det_fecejecucion' \t=> '2020-12-31',\n\t\t\t'det_estlibros' \t=> 0,\n\t\t\t'det_feclibros' \t=> '2020-12-31',\n\t\t\t'det_refoperativa' \t=> $this->record->com_refoperat,\n\t\t\t'det_numcheque' \t=> $this->record->com_numcomp,\n\t\t\t'det_feccheque' \t=> 0,\n\t\t\t'det_codcuenta' \t=> '' ) ;\n\t\t\t//if ($this->record->cla_ImpFlag) // Se aplica impuestos a la transaccion\n\t\t\t$this->secActual = 1;\n\n\t}", "title": "" }, { "docid": "6c89841be24a12e09f905073efc62536", "score": "0.5509687", "text": "function getFraisOfficiels(){\n\t\t$this->SetFont(\"Arial\", \"B\", 10);\n\t\t$this->SetFillColor(255,255,51);\n\t\t$this->Cell(100, 4, \"III - FRAIS OFFICIELS\", 0, 2, 'L', 1);\n\t\t$this->Ln(2);\n\t\t$date = new dateFR(\"now\");\n\t\t$this->SetFont(\"Times\", \"B\", 10);$this->SetX(20);\n\t\t$w = array();\n\t\t$w[] = 15; $w[] = 90; $w[] = 25; $w[] = 25; $w[] = 30;\n\t\t/*\n\t\t\tEntete du tableau d'enseignements\n\t\t*/\n\t\t$column = $this->officiels[0]; $i = 0;\n\t\tforeach($column as $key=>$val)\n\t\t\t$this->Cell($w[$i++], 7,utf8_decode($key), 1);\n\t\t/* Affichage des lignes */\n\t\t$this->SetFont(\"Times\", \"\", 10);\n\t\tforeach($this->officiels as $row){\n\t\t\t$i = 0; $this->Ln(); $this->SetX(20);\n\t\t\tforeach($row as $key=>$val){\n\t\t\t\tif($i == 2 || $i == 3){\n\t\t\t\t\t$d = new dateFR($val);\n\t\t\t\t\t$val = $d->getDate().\"-\".$d->getMois(3).\"-\".$d->getYear();\n\t\t\t\t}\n\t\t\t\t$this->Cell($w[$i++], 7,utf8_decode($val), 1);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "44b47297dbde065fda10328dadd2aeba", "score": "0.55049413", "text": "public function RegistreTiempoActividad($idActividad, $FechaHora, $Estado,$Suma, $Vector ) {\r\n //////Inserto los valores en la tabla de registro de actividades\r\n \r\n $tab=\"produccion_registro_tiempos\";\r\n $NumRegistros=5;\r\n\r\n $Columnas[0]=\"idActividad\"; $Valores[0]=$idActividad;\r\n $Columnas[1]=\"FechaHora\"; $Valores[1]=$FechaHora;\r\n $Columnas[2]=\"Estado\"; $Valores[2]=$Estado;\r\n $Columnas[3]=\"Suma\";\t\t$Valores[3]=$Suma;\r\n $Columnas[4]=\"idUsuario\";\t\t$Valores[4]=$this->idUser;\r\n \r\n $this->InsertarRegistro($tab,$NumRegistros,$Columnas,$Valores);\r\n if($Estado==\"TERMINADA\"){\r\n $sql=\"SELECT FechaHora FROM produccion_registro_tiempos WHERE idActividad='$idActividad' AND \"\r\n . \" Estado = 'EJECUCION' \";\r\n $Datos=$this->Query($sql);\r\n $Actividad = $this->FetchArray($Datos);\r\n $FechaHoraInicio = new DateTime($Actividad[\"FechaHora\"]);\r\n $FechaHoraFin = new DateTime($FechaHora);\r\n $Diff= $FechaHoraFin->diff($FechaHoraInicio);\r\n $TiempoEjecucion[\"Dias\"]=$Diff->d;\r\n $TiempoEjecucion[\"Horas\"]=$Diff->h; \r\n $TiempoEjecucion[\"Minutos\"]=$Diff->i; \r\n $TotalHoras=$this->ConviertaHorasDecimal($TiempoEjecucion[\"Horas\"],$TiempoEjecucion[\"Minutos\"],$TiempoEjecucion);\r\n //$TotalHoras=date(\"Y-m-d H:i:s\", strtotime($FechaHora) - strtotime($Actividad[\"FechaHora\"]) );\r\n $DatosActividad= $this->DevuelveValores(\"produccion_actividades\", \"ID\", $idActividad);\r\n $DatosOT= $this->DevuelveValores(\"produccion_ordenes_trabajo\", \"ID\", $DatosActividad[\"idOrdenTrabajo\"]);\r\n $TiempoOperacion=$TotalHoras-$DatosActividad[\"Pausas_No_Operativas\"];\r\n $TiempoOperacionOT=$TiempoOperacion+$DatosOT[\"Tiempo_Operacion\"];\r\n $this->ActualizaRegistro(\"produccion_actividades\", \"Tiempo_Operacion\", $TiempoOperacion, \"ID\", $idActividad);\r\n $this->ActualizaRegistro(\"produccion_ordenes_trabajo\", \"Tiempo_Operacion\", $TiempoOperacionOT, \"ID\", $DatosActividad[\"idOrdenTrabajo\"]); \r\n }\r\n if($Estado==\"REINICIA_PAUSA_OPERATIVA\"){\r\n $sql=\"SELECT FechaHora FROM produccion_registro_tiempos WHERE idActividad='$idActividad' AND \"\r\n . \" Estado = 'PAUSA_OPERATIVA' ORDER BY `ID` DESC LIMIT 1\";\r\n $Datos=$this->Query($sql);\r\n $Actividad = $this->FetchArray($Datos);\r\n $FechaHoraInicio = new DateTime($Actividad[\"FechaHora\"]);\r\n $FechaHoraFin = new DateTime($FechaHora);\r\n $Diff=$FechaHoraFin->diff($FechaHoraInicio);\r\n $TiempoEjecucion[\"Dias\"]=$Diff->d;\r\n $TiempoEjecucion[\"Horas\"]=$Diff->h; \r\n $TiempoEjecucion[\"Minutos\"]=$Diff->i; \r\n $TotalHoras=$this->ConviertaHorasDecimal($TiempoEjecucion[\"Horas\"],$TiempoEjecucion[\"Minutos\"],$TiempoEjecucion);\r\n $DatosActividad= $this->DevuelveValores(\"produccion_actividades\", \"ID\", $idActividad);\r\n $DatosOT= $this->DevuelveValores(\"produccion_ordenes_trabajo\", \"ID\", $DatosActividad[\"idOrdenTrabajo\"]);\r\n $TotalPausas=$TotalHoras+$DatosActividad[\"Pausas_Operativas\"];\r\n $TotalPausasOT=$TotalPausas+$DatosOT[\"Pausas_Operativas\"];\r\n \r\n $this->ActualizaRegistro(\"produccion_actividades\", \"Pausas_Operativas\", $TotalPausas, \"ID\", $idActividad);\r\n $this->ActualizaRegistro(\"produccion_ordenes_trabajo\", \"Pausas_Operativas\", $TotalPausasOT, \"ID\", $DatosActividad[\"idOrdenTrabajo\"]); \r\n }\r\n \r\n if($Estado==\"REINICIA_PAUSA_NO_OPERATIVA\"){\r\n $sql=\"SELECT FechaHora FROM produccion_registro_tiempos WHERE idActividad='$idActividad' AND \"\r\n . \" Estado = 'PAUSA_NO_OPERATIVA' ORDER BY `ID` DESC LIMIT 1\";\r\n $Datos=$this->Query($sql);\r\n $Actividad = $this->FetchArray($Datos);\r\n $FechaHoraInicio = new DateTime($Actividad[\"FechaHora\"]);\r\n $FechaHoraFin = new DateTime($FechaHora);\r\n $Diff=$FechaHoraFin->diff($FechaHoraInicio);\r\n $TiempoEjecucion[\"Dias\"]=$Diff->d;\r\n $TiempoEjecucion[\"Horas\"]=$Diff->h;\r\n $TiempoEjecucion[\"Minutos\"]=$Diff->i;\r\n $TotalHoras=$this->ConviertaHorasDecimal($TiempoEjecucion[\"Horas\"],$TiempoEjecucion[\"Minutos\"],$TiempoEjecucion);\r\n $DatosActividad= $this->DevuelveValores(\"produccion_actividades\", \"ID\", $idActividad);\r\n $DatosOT= $this->DevuelveValores(\"produccion_ordenes_trabajo\", \"ID\", $DatosActividad[\"idOrdenTrabajo\"]);\r\n $TotalPausas=$TotalHoras+$DatosActividad[\"Pausas_No_Operativas\"];\r\n $TotalPausasOT=$TotalPausas+$DatosOT[\"Pausas_No_Operativas\"];\r\n $this->ActualizaRegistro(\"produccion_actividades\", \"Pausas_No_Operativas\", $TotalPausas, \"ID\", $idActividad);\r\n $this->ActualizaRegistro(\"produccion_ordenes_trabajo\", \"Pausas_No_Operativas\", $TotalPausasOT, \"ID\", $DatosActividad[\"idOrdenTrabajo\"]); \r\n }\r\n \r\n \r\n \r\n }", "title": "" }, { "docid": "efd19f954bc5d1565ebc18689dbaae34", "score": "0.5504851", "text": "function affichage_croissant(){\n global $t;\n executer_tri_rapide_croisant(0,count($t)-1);\n echo 'LE TRABLEAU TRIE PAR ORDRE CROISSANT <br>';\n echo\"<pre>\";\n print_r($t);\n echo\"</pre>\";\n}", "title": "" }, { "docid": "b8f8072dc88e37df97643f2565849250", "score": "0.54983956", "text": "function __construct($infosMeteo){\n $this->_heure = $infosMeteo[\"heure\"];\n $this->_temperature = $infosMeteo[\"temperature\"];;\n $this->_groupeMeteorologique = $infosMeteo[\"groupeMeteorologique\"];\n $this->_descriptionMeteo = $infosMeteo[\"descriptionMeteo\"];\n $this->_icone = $infosMeteo[\"icone\"];\n $this->_humidite = $infosMeteo[\"humidite\"];\n $this->_vitesseVent = $infosMeteo[\"vitesseVent\"];\n $this->_probPrecipitations = $infosMeteo[\"probPrecipitations\"];\n }", "title": "" }, { "docid": "2549561e317267a0651820941b2153e9", "score": "0.5496275", "text": "function insertarTemporal(){\n\t\t$this->procedimiento='ssig.ft_cuestionario_IME';\n\t\t$this->transaccion='SSIG_SAVCUE_INS';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\t\t\n\t\t$this->setParametro('id_temporal','id_temporal','int4');\n\t\t$this->setParametro('pregunta','pregunta','varchar');\n\t\t$this->setParametro('sw_nivel','sw_nivel','int4');\n\t\t$this->setParametro('tipo','tipo','varchar');\n\t\t$this->setParametro('respuesta','respuesta','varchar');\n\t\t$this->setParametro('id_cuestionario','id_cuestionario','int4');\n\t\t$this->setParametro('id_categoria','id_categoria','int4');\n\t\t$this->setParametro('id_pregunta','id_pregunta','int4');\n\t\t$this->setParametro('id_usuario_reg','id_usuario_reg','int4');\n\t\t$this->setParametro('id_usuario', 'id_usuario', 'int4');\n\n\t\t$this->setParametro('id_funcionario', 'id_funcionario', 'int4');\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": "b7546e53170f191734c908c4ebff602a", "score": "0.54908246", "text": "public function getTiempoTono(){\r\n\t\treturn $this->tiempo_tono;\r\n\t}", "title": "" }, { "docid": "dd2dd14608fea344e55c4f83b0b54b8a", "score": "0.5485282", "text": "public function EnregEmetteur()\n\t{\n // phpcs:enable\n\t\tfputs($this->file, \"03\");\n\t\tfputs($this->file, \"08\"); // Prelevement ordinaire\n\n\t\tfputs($this->file, \" \"); // Zone Reservee B2\n\n\t\tfputs($this->file, $this->emetteur_ics); // ICS\n\n\t\t// Date d'echeance C1\n\n\t\tfputs($this->file, \" \");\n\t\tfputs($this->file, strftime(\"%d%m\", $this->date_echeance));\n\t\tfputs($this->file, substr(strftime(\"%y\", $this->date_echeance), 1));\n\n\t\t// Raison Sociale C2\n\n\t\tfputs($this->file, substr($this->raison_sociale. \" \", 0, 24));\n\n\t\t// Reference de la remise creancier D1 sur 7 caracteres\n\n\t\tfputs($this->file, substr($this->reference_remise. \" \", 0, 7));\n\n\t\t// Zone Reservee D1-2\n\n\t\tfputs($this->file, substr(\" \", 0, 17));\n\n\t\t// Zone Reservee D2\n\n\t\tfputs($this->file, substr(\" \", 0, 2));\n\t\tfputs($this->file, \"E\");\n\t\tfputs($this->file, substr(\" \", 0, 5));\n\n\t\t// Code Guichet D3\n\n\t\tfputs($this->file, $this->emetteur_code_guichet);\n\n\t\t// Numero de compte D4\n\n\t\tfputs($this->file, substr(\"000000000000000\".$this->emetteur_numero_compte, -11));\n\n\t\t// Zone Reservee E\n\n\t\tfputs($this->file, substr(\" \", 0, 16));\n\n\t\t// Zone Reservee F\n\n\t\tfputs($this->file, substr(\" \", 0, 31));\n\n\t\t// Code etablissement\n\n\t\tfputs($this->file, $this->emetteur_code_banque);\n\n\t\t// Zone Reservee G\n\n\t\tfputs($this->file, substr(\" \", 0, 5));\n\n\t\tfputs($this->file, \"\\n\");\n\t}", "title": "" }, { "docid": "9db5089e663ee41edb03fd55cfade678", "score": "0.5481186", "text": "function modificarTemporal(){\n\t\t$this->procedimiento='ssig.ft_temporal_ime';\n\t\t$this->transaccion='SSIG_TMP_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_temporal','id_temporal','int4');\n\t\t$this->setParametro('id_pregunta','id_pregunta','int4');\n\t\t$this->setParametro('pregunta','pregunta','varchar');\n\t\t$this->setParametro('respuesta','respuesta','varchar');\n\t\t$this->setParametro('id_cuestionario','id_cuestionario','int4');\n\t\t$this->setParametro('id_categoria','id_categoria','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": "f39b46ae463c405728a502646e5bcb4d", "score": "0.5480304", "text": "function tabel(){\n\t\t$data['dokterku'] = $this->doktermodel->tampil_data()->result();\n\t\t$data['quote'] = $this->quotemodel->tampil_data()->result();\n\t\t$data['tips'] = $this->tipsmodel->tampil_data()->result();\n\t\t$data['lemari'] = $this->obatmodel->tampil_data()->result();\n\t\t$data['darurat'] = $this->daruratmodel->tampil_data()->result();\n\t\t$this->load->view('headeradmin.php');\n\t\t$this->load->view('hasiltabel.php', $data);\n\t\t$this->load->view('footeradmin.php');\n\t}", "title": "" }, { "docid": "1c3762e5554379c1f9f85fa6c46eb753", "score": "0.54756534", "text": "function periode_tva($imposition){\r\n\t// Mois sur lesquels les acomptes doivent être envoyés.\r\n\tif($imposition == 'BA'){\t\t$periodes_tva = array(1, 4, 7, 10);}\r\n\telseif($imposition == 'BIC' || $imposition == 'BNC' || $imposition == 'FONCIER'){\r\n\t\t\t\t\t\t\t\t\t$periodes_tva = array(4, 7, 10, 12);}\r\n\telse{\t\t\t\t\t\t\t$periodes_tva = array(0);}\r\n\r\n\t$mois_actuel = date('m');\t\r\n\t$periode = 0;\r\n\tforeach($periodes_tva as $mois){\r\n\t\tif($mois == $mois_actuel) {\t$periode = 1;\tbreak;\t}\r\n\t}\r\n\tif($periode){\r\n\t\t$date_d = mktime(0,0,0,$mois,05,date('Y'));\t\t//\tAlerte du 05\r\n\t\t$date_f = mktime(23,59,59,$mois,20,date('Y'));\t//\tau 15 du mois\r\n\t\tif((time() > $date_d) && (time() < $date_f)){\treturn 1;}\r\n\t\telse{\treturn 0;}\r\n\t}else{\treturn 0;}\r\n}", "title": "" }, { "docid": "6edba9714d4109b650676731a8d5c968", "score": "0.54717165", "text": "public function tipo_tarjeta();", "title": "" }, { "docid": "67ae60edd97258426e7431cb255735d8", "score": "0.5465393", "text": "public function calcTempo($inicio, $fim){\n\n\t\t$entrada = $inicio;\n\t\t$saida = $fim;\n\t\t$hora1 = explode(\":\",$entrada);\n\t\t$hora2 = explode(\":\",$saida);\n\t\t$acumulador1 = ($hora1[0] * 3600) + ($hora1[1] * 60) + $hora1[2];\n\t\t$acumulador2 = ($hora2[0] * 3600) + ($hora2[1] * 60) + $hora2[2];\n\t\t$resultado = $acumulador2 - $acumulador1;\n\t\t$hora_ponto = floor($resultado / 3600);\n\t\t$resultado = $resultado - ($hora_ponto * 3600);\n\t\t$min_ponto = floor($resultado / 60);\n\t\t$resultado = $resultado - ($min_ponto * 60);\n\t\t$secs_ponto = $resultado;\n\t\t//Grava na variável resultado final\n\t\t//dd($hora_ponto, $min_ponto);\n\t\t//$tempo = $hora_ponto.\":\".$min_ponto.\":\".$secs_ponto;\n\t\treturn $hora_ponto - 1;\n }", "title": "" }, { "docid": "8f0df68d1f44fc30ab6108882cac1b05", "score": "0.5461635", "text": "function remplitTableEtudinants(mysql $BDProjet02, $strNomTableEtudiants, $strNomFichierEtudiants) {\n global $tabChampsTableEtudiants;\n $fchEtudiants = new fichier($strNomFichierEtudiants);\n \n $fchEtudiants->ouvre();\n \n while(!$fchEtudiants->detecteFin()) {\n $tabValeurs = array();\n \n $fchEtudiants->litDonneesLigne($tValeurs, \";\", $tabChampsTableEtudiants[0],\n $tabChampsTableEtudiants[1], $tabChampsTableEtudiants[2]);\n \n $BDProjet02->insereEnregistrement($strNomTableEtudiants, $tValeurs[$tabChampsTableEtudiants[0]],\n $tValeurs[$tabChampsTableEtudiants[1]], $tValeurs[trim($tabChampsTableEtudiants[2])]);\n }\n $fchEtudiants->ferme();\n }", "title": "" }, { "docid": "6533dff58610be5dd452751dc9d3b205", "score": "0.54544187", "text": "public function AnularVentaTitulo($fecha, $idVenta, $Concepto,$CentroCosto,$idUser, $Vector){\r\n \r\n $DatosCentro=$this->DevuelveValores(\"centrocosto\",\"ID\",$CentroCosto);\r\n $DatosVenta=$this->DevuelveValores(\"titulos_ventas\",\"ID\",$idVenta);\r\n $DatosCliente=$this->DevuelveValores(\"clientes\",\"Num_Identificacion\",$DatosVenta[\"idCliente\"]);\r\n $tab=\"titulos_devoluciones\";\r\n $NumRegistros=8;\r\n\r\n $Columnas[0]=\"Fecha\"; $Valores[0]=$fecha;\r\n $Columnas[1]=\"idVenta\"; $Valores[1]=$idVenta;\r\n $Columnas[2]=\"Promocion\"; $Valores[2]=$DatosVenta[\"Promocion\"];\r\n $Columnas[3]=\"Mayor\";\t\t$Valores[3]=$DatosVenta[\"Mayor1\"];\r\n $Columnas[4]=\"Concepto\";\t\t$Valores[4]=$Concepto;\r\n $Columnas[5]=\"idColaborador\"; $Valores[5]=$DatosVenta[\"idColaborador\"];\r\n $Columnas[6]=\"NombreColaborador\"; $Valores[6]=$DatosVenta[\"NombreColaborador\"];\r\n $Columnas[7]=\"idUsuario\"; $Valores[7]=$this->idUser;\r\n \r\n $this->InsertarRegistro($tab,$NumRegistros,$Columnas,$Valores);\r\n $idComprobante=$this->ObtenerMAX($tab,\"ID\", 1,\"\");\r\n if($DatosVenta[\"Saldo\"]>0){\r\n ////Registro el movimiento en el libro diario\r\n $DatosSucursal= $this->DevuelveValores(\"empresa_pro_sucursales\", \"Actual\", 1); \r\n \r\n $tab=\"librodiario\";\r\n $NumRegistros=27;\r\n $ParametrosContables= $this->DevuelveValores(\"parametros_contables\", \"ID\", 9);\r\n $CuentaPUC=$ParametrosContables[\"CuentaPUC\"];\r\n $NombreCuenta=$ParametrosContables[\"NombreCuenta\"];\r\n $ParametrosContables= $this->DevuelveValores(\"parametros_contables\", \"ID\", 6);\r\n $CuentaPUCContraPartida=$ParametrosContables[\"CuentaPUC\"];\r\n $NombreCuentaContraPartida=\"Clientes Nacionales\";\r\n \r\n\r\n\r\n $Columnas[0]=\"Fecha\";\t\t\t$Valores[0]=$fecha;\r\n $Columnas[1]=\"Tipo_Documento_Intero\";\t$Valores[1]=\"AnulacionTitulo\";\r\n $Columnas[2]=\"Num_Documento_Interno\";\t$Valores[2]=$idComprobante;\r\n $Columnas[3]=\"Tercero_Tipo_Documento\";\t$Valores[3]=$DatosCliente['Tipo_Documento'];\r\n $Columnas[4]=\"Tercero_Identificacion\";\t$Valores[4]=$DatosCliente['Num_Identificacion'];\r\n $Columnas[5]=\"Tercero_DV\";\t\t\t$Valores[5]=$DatosCliente['DV'];\r\n $Columnas[6]=\"Tercero_Primer_Apellido\";\t$Valores[6]=$DatosCliente['Primer_Apellido'];\r\n $Columnas[7]=\"Tercero_Segundo_Apellido\"; $Valores[7]=$DatosCliente['Segundo_Apellido'];\r\n $Columnas[8]=\"Tercero_Primer_Nombre\";\t$Valores[8]=$DatosCliente['Primer_Nombre'];\r\n $Columnas[9]=\"Tercero_Otros_Nombres\";\t$Valores[9]=$DatosCliente['Otros_Nombres'];\r\n $Columnas[10]=\"Tercero_Razon_Social\";\t$Valores[10]=$DatosCliente['RazonSocial'];;\r\n $Columnas[11]=\"Tercero_Direccion\";\t\t$Valores[11]=$DatosCliente['Direccion'];\r\n $Columnas[12]=\"Tercero_Cod_Dpto\";\t\t$Valores[12]=$DatosCliente['Cod_Dpto'];\r\n $Columnas[13]=\"Tercero_Cod_Mcipio\";\t\t$Valores[13]=$DatosCliente['Cod_Mcipio'];\r\n $Columnas[14]=\"Tercero_Pais_Domicilio\"; $Valores[14]=$DatosCliente['Pais_Domicilio'];\r\n $Columnas[15]=\"CuentaPUC\";\t\t\t$Valores[15]=$CuentaPUC;\r\n $Columnas[16]=\"NombreCuenta\";\t\t$Valores[16]=$NombreCuenta;\r\n $Columnas[17]=\"Detalle\";\t\t\t$Valores[17]=\"Anulacion de Titulo\";\r\n $Columnas[18]=\"Debito\";\t\t\t$Valores[18]=$DatosVenta[\"Saldo\"];\r\n $Columnas[19]=\"Credito\";\t\t\t$Valores[19]=0;\r\n $Columnas[20]=\"Neto\";\t\t\t$Valores[20]=$DatosVenta[\"Saldo\"];\r\n $Columnas[21]=\"Mayor\";\t\t\t$Valores[21]=\"NO\";\r\n $Columnas[22]=\"Esp\";\t\t\t$Valores[22]=\"NO\";\r\n $Columnas[23]=\"Concepto\";\t\t\t$Valores[23]=$Concepto;\r\n $Columnas[24]=\"idCentroCosto\";\t\t$Valores[24]=$CentroCosto;\r\n $Columnas[25]=\"idEmpresa\";\t\t\t$Valores[25]=$DatosCentro[\"EmpresaPro\"];\r\n $Columnas[26]=\"idSucursal\"; $Valores[26]=$DatosSucursal[\"ID\"];\r\n $this->InsertarRegistro($tab,$NumRegistros,$Columnas,$Valores);\r\n\r\n\r\n ///////////////////////Registramos contra partida de la anulacion\r\n\r\n $CuentaPUC=$CuentaPUCContraPartida; \r\n $NombreCuenta=$NombreCuentaContraPartida;\r\n\r\n $Valores[15]=$CuentaPUC;\r\n $Valores[16]=$NombreCuenta;\r\n $Valores[18]=0;\r\n $Valores[19]=$DatosVenta[\"Saldo\"];\r\n $Valores[20]=$Valores[19]*(-1); \t\t\t\t\t\t\t\t\t\t\t//Credito se escribe el total de la venta menos los impuestos\r\n\r\n $this->InsertarRegistro($tab,$NumRegistros,$Columnas,$Valores);\r\n \r\n \r\n }\r\n \r\n $sql=\"UPDATE titulos_ventas SET Estado='ANULADA' WHERE ID='$idVenta'\";\r\n $this->Query($sql);\r\n $sql=\"UPDATE titulos_listados_promocion_$DatosVenta[Promocion] SET NombreColaborador='', idColaborador='0',idCliente='0',NombreCliente='',FechaVenta='0',TotalPagoComisiones='0', TotalAbonos='0',Saldo='0' WHERE Mayor1='$DatosVenta[Mayor1]'\";\r\n $this->Query($sql);\r\n $this->BorraReg(\"titulos_cuentasxcobrar\", \"idDocumento\", $idVenta);\r\n return($idComprobante);\r\n \r\n \r\n\t}", "title": "" }, { "docid": "a2e53c291b4efc606c7c1673b4350896", "score": "0.54527205", "text": "function delta_tempo ($data_iniziale,$data_finale,$unita) {\n \n switch($unita) {\n case \"m\": $unita = 1/60; break; //MINUTI\n case \"h\": $unita = 1; break; //ORE\n case \"g\": $unita = 24; break; //GIORNI\n case \"a\": $unita = 8760; break; //ANNI\n }\n \n $differenza = (($data_finale-$data_iniziale)/3600)/$unita;\n return $differenza;\n}", "title": "" }, { "docid": "40c6b85a92a8a8ebd2d7b7555411af33", "score": "0.5449551", "text": "function eliminarTemporal(){\n\t\t$this->procedimiento='ssig.ft_temporal_ime';\n\t\t$this->transaccion='SSIG_TMP_ELI';\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_temporal','id_temporal','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": "862d3d8d8efdd29de390982895278d09", "score": "0.5435561", "text": "function getFechasTiempo($tiempo) {\r\n\tglobal $Ahora;\r\n\tlist($anio, $mes, $dia) = split(\"[.-/]\", substr($Ahora, 0, 10));\r\n\t$a = intval($anio);\r\n\t$m = intval($mes);\r\n\t$d = intval($dia);\r\n\t$anio_inicio = intval($a - $tiempo - 1);\r\n\t$mes_inicio = $m;\r\n\t$dia_inicio = $d + 1;\t\r\n\t$anio_fin = intval($a - $tiempo);\r\n\t$mes_fin = $m;\r\n\t$dia_fin = $d;\t\r\n\tif ($dia_inicio > getDiasMes(\"$anio-$mes\")) {\r\n\t\t$dia_inicio = 1;\r\n\t\tif ($mes_inicio == 12) {\r\n\t\t\t$mes_inicio = 1;\r\n\t\t\t$anio_inicio++;\r\n\t\t} else {\r\n\t\t\t$mes_inicio++;\r\n\t\t}\r\n\t}\t\r\n\tif ($dia_inicio < 10) $di = \"0$dia_inicio\";\r\n\tif ($mes_inicio < 10) $mi = \"0$mes_inicio\";\t\r\n\tif ($dia_fin < 10) $df = \"0$dia_fin\";\r\n\tif ($mes_fin < 10) $mf = \"0$mes_fin\";\t\r\n\t$fecha_inicio = \"$di-$mi-$anio_inicio\";\r\n\t$fecha_fin = \"$df-$mf-$anio_fin\";\t\r\n\treturn array($fecha_inicio, $fecha_fin);\r\n}", "title": "" }, { "docid": "9936706b0be49e9a1f706386712c0301", "score": "0.5430059", "text": "function getPuntosTablaData( $equipo1, $equipo2, $deporte=null ) {\n //arma la variable a devolver\n\n $puntos = array( array('pj'=> 1), array('pj'=> 1));\n \n //se define quien gano y los puntos\n if ( (int)$equipo1['goles'] > (int)$equipo2['goles'] ) {\n //si gano equipo1: (los goles o los sets son iguales en todos los deportes)\n $puntos[0]['g'] = 1;\n $puntos[1]['g'] = 0;\n $puntos[0]['p'] = 0;\n $puntos[1]['p'] = 1;\n $puntos[0]['e'] = 0;\n $puntos[1]['e'] = 0;\n \n //se definen los goles\n $puntos[0]['gf'] = $equipo1['goles'];\n $puntos[0]['gc'] = $equipo2['goles'];\n $puntos[0]['dg'] = $equipo1['goles'] - $equipo2['goles'];\n\n $puntos[1]['gf'] = $equipo2['goles'];\n $puntos[1]['gc'] = $equipo1['goles'];\n $puntos[1]['dg'] = $equipo1['goles'] - $equipo2['goles'];\n\n //deporte futbol puntos\n $puntos[0]['puntos'] = 3;\n $puntos[1]['puntos'] = 0;\n\n } elseif ( (int)$equipo1['goles'] < (int)$equipo2['goles'] ) {\n //si gano equipo2 (los goles o los sets son iguales en todos los deportes)\n $puntos[0]['g'] = 0;\n $puntos[1]['g'] = 1;\n $puntos[0]['p'] = 1;\n $puntos[1]['p'] = 0;\n $puntos[0]['e'] = 0;\n $puntos[1]['e'] = 0;\n\n //se definen los goles\n $puntos[0]['gf'] = $equipo1['goles'];\n $puntos[0]['gc'] = $equipo2['goles'];\n $puntos[0]['dg'] = $equipo2['goles'] - $equipo1['goles'];\n\n $puntos[1]['gf'] = $equipo2['goles'];\n $puntos[1]['gc'] = $equipo1['goles'];\n $puntos[1]['dg'] = $equipo2['goles'] - $equipo1['goles'];\n\n $puntos[0]['puntos'] = 0;\n $puntos[1]['puntos'] = 3;\n\n } else {\n //si empataron\n $puntos[0]['g'] = 0;\n $puntos[1]['g'] = 0;\n $puntos[0]['p'] = 0;\n $puntos[1]['p'] = 0;\n $puntos[0]['e'] = 1;\n $puntos[1]['e'] = 1;\n //ademas define los puntos\n $puntos[0]['puntos'] = 1;\n $puntos[1]['puntos'] = 1;\n\n //y los goles\n $puntos[0]['gf'] = $equipo1['goles'];\n $puntos[0]['gc'] = $equipo2['goles'];\n $puntos[0]['dg'] = $equipo1['goles'] - $equipo2['goles'];\n\n $puntos[1]['gf'] = $equipo2['goles'];\n $puntos[1]['gc'] = $equipo1['goles'];\n $puntos[1]['dg'] = $equipo2['goles'] - $equipo1['goles'];\n }\n\n return $puntos;\n}", "title": "" }, { "docid": "0a6509c5de28a38fe00a713785f2be41", "score": "0.5429209", "text": "public function RegistreAbonoTitulo($fecha, $IDCuenta, $Abono, $Observaciones,$CentroCosto,$idColaborador,$idUser, $Vector){\r\n \r\n $DatosCentro=$this->DevuelveValores(\"centrocosto\",\"ID\",$CentroCosto);\r\n $DatosCuentaXCobrar=$this->DevuelveValores(\"titulos_cuentasxcobrar\",\"ID\",$IDCuenta);\r\n $DatosColaborador=$this->DevuelveValores(\"colaboradores\",\"Identificacion\",$idColaborador);\r\n $idCliente=$DatosCuentaXCobrar[\"idTercero\"];\r\n $DatosCliente=$this->DevuelveValores(\"clientes\",\"Num_Identificacion\",$idCliente);\r\n $CuentaClientes=$this->DevuelveValores(\"parametros_contables\",\"ID\",6);\r\n \r\n //$DatosCuentasFrecuentes=$this->DevuelveValores(\"cuentasfrecuentes\",\"CuentaPUC\",$CuentaDestino);\r\n $CuentaDestino=\"110505\";\r\n $NombreCuenta=\"CAJA GENERAL\";\r\n $NIT=$DatosCliente[\"Num_Identificacion\"];\r\n $RazonSocialC=$DatosCliente[\"RazonSocial\"];\r\n $NuevoSaldo=$DatosCuentaXCobrar[\"Saldo\"]-$Abono;\r\n $TotalAbonos=$DatosCuentaXCobrar[\"TotalAbonos\"]+$Abono;\r\n $Concepto=\"ABONO AL TITULO $DatosCuentaXCobrar[Mayor] DE LA PROMOCION $DatosCuentaXCobrar[Promocion] Nuevo Saldo \".number_format($NuevoSaldo);\r\n //////Creo el comprobante de Ingreso\r\n \r\n $tab=\"comprobantes_ingreso\";\r\n $NumRegistros=6;\r\n\r\n $Columnas[0]=\"Fecha\";\t\t$Valores[0]=$fecha;\r\n $Columnas[1]=\"Clientes_idClientes\"; $Valores[1]=$DatosCliente[\"idClientes\"];\r\n $Columnas[2]=\"Valor\"; $Valores[2]=$Abono;\r\n $Columnas[3]=\"Tipo\";\t\t$Valores[3]=\"EFECTIVO\";\r\n $Columnas[4]=\"Concepto\";\t\t$Valores[4]=$Concepto;\r\n $Columnas[5]=\"Usuarios_idUsuarios\";\t$Valores[5]= $idUser;\r\n \r\n $this->InsertarRegistro($tab,$NumRegistros,$Columnas,$Valores);\r\n \r\n $idIngreso=$this->ObtenerMAX($tab,\"ID\", 1,\"\");\r\n \r\n ////Registro el anticipo en el libro diario\r\n $DatosSucursal= $this->DevuelveValores(\"empresa_pro_sucursales\", \"Actual\", 1); \r\n \r\n $tab=\"librodiario\";\r\n $NumRegistros=27;\r\n $CuentaPUC=$CuentaDestino;\r\n //$NombreCuenta=$NombreCuenta;\r\n $CuentaPUCContraPartida=$CuentaClientes[\"CuentaPUC\"];\r\n $NombreCuentaContraPartida=\"Clientes Nacionales\";\r\n \r\n\r\n\r\n $Columnas[0]=\"Fecha\";\t\t\t$Valores[0]=$fecha;\r\n $Columnas[1]=\"Tipo_Documento_Intero\";\t$Valores[1]=\"ComprobanteIngreso\";\r\n $Columnas[2]=\"Num_Documento_Interno\";\t$Valores[2]=$idIngreso;\r\n $Columnas[3]=\"Tercero_Tipo_Documento\";\t$Valores[3]=$DatosCliente['Tipo_Documento'];\r\n $Columnas[4]=\"Tercero_Identificacion\";\t$Valores[4]=$NIT;\r\n $Columnas[5]=\"Tercero_DV\";\t\t\t$Valores[5]=$DatosCliente['DV'];\r\n $Columnas[6]=\"Tercero_Primer_Apellido\";\t$Valores[6]=$DatosCliente['Primer_Apellido'];\r\n $Columnas[7]=\"Tercero_Segundo_Apellido\"; $Valores[7]=$DatosCliente['Segundo_Apellido'];\r\n $Columnas[8]=\"Tercero_Primer_Nombre\";\t$Valores[8]=$DatosCliente['Primer_Nombre'];\r\n $Columnas[9]=\"Tercero_Otros_Nombres\";\t$Valores[9]=$DatosCliente['Otros_Nombres'];\r\n $Columnas[10]=\"Tercero_Razon_Social\";\t$Valores[10]=$RazonSocialC;\r\n $Columnas[11]=\"Tercero_Direccion\";\t\t$Valores[11]=$DatosCliente['Direccion'];\r\n $Columnas[12]=\"Tercero_Cod_Dpto\";\t\t$Valores[12]=$DatosCliente['Cod_Dpto'];\r\n $Columnas[13]=\"Tercero_Cod_Mcipio\";\t\t$Valores[13]=$DatosCliente['Cod_Mcipio'];\r\n $Columnas[14]=\"Tercero_Pais_Domicilio\"; $Valores[14]=$DatosCliente['Pais_Domicilio'];\r\n $Columnas[15]=\"CuentaPUC\";\t\t\t$Valores[15]=$CuentaPUC;\r\n $Columnas[16]=\"NombreCuenta\";\t\t$Valores[16]=$NombreCuenta;\r\n $Columnas[17]=\"Detalle\";\t\t\t$Valores[17]=\"AbonoVentaTitulo\";\r\n $Columnas[18]=\"Debito\";\t\t\t$Valores[18]=$Abono;\r\n $Columnas[19]=\"Credito\";\t\t\t$Valores[19]=0;\r\n $Columnas[20]=\"Neto\";\t\t\t$Valores[20]=$Abono;\r\n $Columnas[21]=\"Mayor\";\t\t\t$Valores[21]=\"NO\";\r\n $Columnas[22]=\"Esp\";\t\t\t$Valores[22]=\"NO\";\r\n $Columnas[23]=\"Concepto\";\t\t\t$Valores[23]=$Concepto;\r\n $Columnas[24]=\"idCentroCosto\";\t\t$Valores[24]=$CentroCosto;\r\n $Columnas[25]=\"idEmpresa\";\t\t\t$Valores[25]=$DatosCentro[\"EmpresaPro\"];\r\n $Columnas[26]=\"idSucursal\"; $Valores[26]=$DatosSucursal[\"ID\"];\r\n $this->InsertarRegistro($tab,$NumRegistros,$Columnas,$Valores);\r\n\r\n\r\n ///////////////////////Registramos contra partida del anticipo\r\n\r\n $CuentaPUC=$CuentaPUCContraPartida; \r\n $NombreCuenta=$NombreCuentaContraPartida;\r\n\r\n $Valores[15]=$CuentaPUC;\r\n $Valores[16]=$NombreCuenta;\r\n $Valores[18]=0;\r\n $Valores[19]=$Abono; \t\t\t//Credito se escribe el total de la venta menos los impuestos\r\n $Valores[20]=$Valores[19]*(-1); \t\t\t\t\t\t\t\t\t\t\t//Credito se escribe el total de la venta menos los impuestos\r\n\r\n $this->InsertarRegistro($tab,$NumRegistros,$Columnas,$Valores);\r\n\t\t\r\n \r\n $sql=\"UPDATE titulos_cuentasxcobrar SET TotalAbonos='$TotalAbonos', Saldo='$NuevoSaldo', UltimoPago='$fecha' WHERE ID='$IDCuenta'\";\r\n $this->Query($sql);\r\n $sql=\"UPDATE titulos_ventas SET TotalAbonos='$TotalAbonos', Saldo='$NuevoSaldo' WHERE ID='$DatosCuentaXCobrar[idDocumento]'\";\r\n $this->Query($sql);\r\n $sql=\"UPDATE titulos_listados_promocion_$DatosCuentaXCobrar[Promocion] SET TotalAbonos='$TotalAbonos', Saldo='$NuevoSaldo' WHERE Mayor1='$DatosCuentaXCobrar[Mayor]'\";\r\n $this->Query($sql);\r\n \r\n //////Agrego a la tabla abonos\r\n \r\n $tab=\"titulos_abonos\";\r\n $NumRegistros=8;\r\n\r\n $Columnas[0]=\"Fecha\"; $Valores[0]=$fecha;\r\n $Columnas[1]=\"idVenta\"; $Valores[1]=$DatosCuentaXCobrar[\"idDocumento\"];\r\n $Columnas[2]=\"Monto\"; $Valores[2]=$Abono;\r\n $Columnas[3]=\"idColaborador\";\t\t$Valores[3]=$idColaborador;\r\n $Columnas[4]=\"NombreColaborador\";\t\t$Valores[4]=$DatosColaborador[\"Nombre\"];\r\n $Columnas[5]=\"idComprobanteIngreso\";\t$Valores[5]=$idIngreso;\r\n $Columnas[6]=\"Observaciones\"; $Valores[6]=$Observaciones;\r\n $Columnas[7]=\"Hora\"; $Valores[7]=date(\"H:i:s\");\r\n \r\n \r\n $this->InsertarRegistro($tab,$NumRegistros,$Columnas,$Valores);\r\n //$idComprobanteAbono=$this->ObtenerMAX($tab,\"ID\", 1,\"\");\r\n \r\n return($idIngreso);\r\n \r\n \r\n\t}", "title": "" }, { "docid": "116a2cfc3c2fec8c54aedd36554fec76", "score": "0.54272896", "text": "function pobierzKomentarze() {}", "title": "" }, { "docid": "b4210261250e94ed4658ec422005116a", "score": "0.54271233", "text": "public function getTermoUso()\n {\n return $this->termo_uso;\n }", "title": "" }, { "docid": "e53ab766c651dbe346bb92416536dc46", "score": "0.54199106", "text": "public function getTemperaturaFahrenheit(): float {\n return ($this->temperatura - 273) * 1.8 + 32;\n }", "title": "" }, { "docid": "f4cf5a79dad150259313ff3110a2ca3e", "score": "0.5414841", "text": "public function tratarDados(){\r\n\t\r\n\t\r\n }", "title": "" }, { "docid": "8a0b406640c97eb5b8b6469f9bdc748b", "score": "0.5404321", "text": "public function RegistreVentaTitulo($Fecha,$idPromocion,$Mayor,$idColaborador,$idCliente,$VectorTitulos) {\r\n $Consulta= $this->ConsultarTabla(\"titulos_ventas\",\" WHERE Mayor1='$Mayor' AND Promocion='$idPromocion' AND Estado=''\");\r\n $DatosVenta= $this->FetchArray($Consulta);\r\n if($DatosVenta[\"Mayor1\"]==\"\"){\r\n $TablaTitulos=\"titulos_listados_promocion_$idPromocion\";\r\n $DatosTitulo=$this->DevuelveValores($TablaTitulos, \"Mayor1\", $Mayor);\r\n $DatosColaborador=$this->DevuelveValores(\"colaboradores\", \"Identificacion\", $idColaborador);\r\n $DatosCliente=$this->DevuelveValores(\"clientes\", \"Num_Identificacion\", $idCliente);\r\n $NombreColaborador=$DatosColaborador[\"Nombre\"];\r\n $DatosPromocion=$this->DevuelveValores(\"titulos_promociones\", \"ID\", $idPromocion);\r\n \r\n $tab=\"titulos_ventas\";\r\n $NumRegistros=15;\r\n\r\n $Columnas[0]=\"Fecha\"; $Valores[0]=$Fecha;\r\n $Columnas[1]=\"Promocion\"; $Valores[1]=$idPromocion;\r\n $Columnas[2]=\"Mayor1\"; $Valores[2]=$Mayor;\r\n $Columnas[3]=\"Mayor2\"; $Valores[3]=$DatosTitulo[\"Mayor2\"];\r\n $Columnas[4]=\"Adicional\"; $Valores[4]=$DatosTitulo[\"Adicional\"];\r\n $Columnas[5]=\"Valor\"; $Valores[5]=$DatosPromocion[\"Valor\"];\r\n $Columnas[6]=\"TotalAbonos\"; $Valores[6]=0;\r\n $Columnas[7]=\"Saldo\"; $Valores[7]=$DatosPromocion[\"Valor\"];\r\n $Columnas[8]=\"idCliente\"; $Valores[8]=$idCliente;\r\n $Columnas[9]=\"NombreCliente\"; $Valores[9]=$DatosCliente[\"RazonSocial\"];\r\n $Columnas[10]=\"idColaborador\"; $Valores[10]=$idColaborador;\r\n $Columnas[11]=\"NombreColaborador\"; $Valores[11]=$NombreColaborador;\r\n $Columnas[12]=\"idUsuario\"; $Valores[12]=$this->idUser;\r\n $Columnas[13]=\"ComisionAPagar\"; $Valores[13]=$DatosPromocion[\"ComisionAPagar\"];\r\n $Columnas[14]=\"SaldoComision\"; $Valores[14]=$DatosPromocion[\"ComisionAPagar\"];\r\n \r\n $this->InsertarRegistro($tab,$NumRegistros,$Columnas,$Valores);\r\n $idVenta=$this->ObtenerMAX($tab, \"ID\", 1, \"\");\r\n \r\n $sql=\"UPDATE $TablaTitulos SET FechaVenta='$Fecha', idColaborador='$idColaborador',\"\r\n . \" NombreColaborador='$NombreColaborador', idCliente='$idCliente', NombreCliente='$DatosCliente[RazonSocial]',\"\r\n . \" Saldo='$DatosPromocion[Valor]' \"\r\n . \"WHERE Mayor1 ='$Mayor'\";\r\n $this->Query($sql);\r\n \r\n return($idVenta);\r\n \r\n }else{\r\n $idVenta=\"E\";\r\n return($idVenta); \r\n }\r\n }", "title": "" }, { "docid": "6d2ca04d400056dc5eddc35bb6d2f6da", "score": "0.53979063", "text": "function temporaire( $texte )\n{\n\t$this->SetFont('Arial','B',50);\n\t$this->SetTextColor(203,203,203);\n\t$this->Rotate(45,55,190);\n\t$this->Text(55,190,$texte);\n\t$this->Rotate(0);\n\t$this->SetTextColor(0,0,0);\n}", "title": "" }, { "docid": "25b4c980d29fd10f0d91287261322b1f", "score": "0.53923327", "text": "function durchWurmlochGeflogen($schiff_id) {\n $schiff_daten = @mysql_query(\"SELECT kox, koy, zielx, ziely, zielid, status, flug FROM skrupel_schiffe \n\t\t\tWHERE id='$schiff_id'\");\n $schiff_daten = @mysql_fetch_array($schiff_daten);\n $x_pos = $schiff_daten['kox'];\n $y_pos = $schiff_daten['koy'];\n $ziel_x = $schiff_daten['zielx'];\n $ziel_y = $schiff_daten['ziely'];\n $ziel_id = $schiff_daten['zielid'];\n if($ziel_id != 0 || $ziel_x != 0 || $ziel_y != 0) return null;\n foreach(eigenschaften::$gesehene_wurmloecher_daten as $wurmloch_daten) {\n $wurmloch_x = $wurmloch_daten['x'];\n $wurmloch_y = $wurmloch_daten['y'];\n $wurmloch_id = $wurmloch_daten['id'];\n if($wurmloch_id == null || $wurmloch_id == 0) continue;\n $wurmloch_entfernung = floor(ki_basis::berechneStrecke($x_pos, $y_pos, $wurmloch_x, $wurmloch_y));\n if($wurmloch_entfernung > 20) continue;\n $spiel_id = eigenschaften::$spiel_id;\n $extra = @mysql_query(\"SELECT extra FROM skrupel_anomalien WHERE id='$wurmloch_id'\");\n $extra = @mysql_fetch_array($extra);\n $extra = $extra['extra'];\n //Hat das Wurmloch keine Ziel-Informationen, so ist es instabil.\n if($extra == null || $extra == '' || $extra == '') {\n wurmloecher_basis::updateInstabileWurmloecher($wurmloch_id);\n\n return null;\n }\n wurmloecher_basis::updateBekannteWurmloecher($wurmloch_id);\n\n return wurmloecher_basis::ermittleWurmlochZiel($wurmloch_id);\n }\n\n return null;\n }", "title": "" }, { "docid": "9d72c44b6852e5fce19205bdd2f9cb59", "score": "0.53831106", "text": "public function getTauxMajoration() {\n return $this->tauxMajoration;\n }", "title": "" }, { "docid": "d9a19766e3b3ea64c393ac483bccff46", "score": "0.5381064", "text": "function temp_display($room){\n\tglobal $_,$conf;\n\n\t$tempManager = new Temp();\n\t$temps = $tempManager->loadAll(array('room'=>$room->getId()));\n\t\n\tforeach ($temps as $temp) {\n$temph = $temp->getCapteur();\n$number = temp_get($temph);\n$color = getProperColor($number);\n?>\n\t\t\t\t\t<div class=\"span3\">\n\t\t\t\t\t<div class=\"roundBloc <?php echo $color ?>\" style=\"max-width:100%;\">\n\t\t\t\t\t\t<h5><center>Température <?php echo $temp->getName() ?></center></h5>\t\n\t\t\t\t\t\t<p>Capteur n° : <?php echo $temph ?>\n\t\t\t\t\t\t</p><ul></br>\n\t\t\t\t\t\t<b><center>Il fait <?php echo $number ?> 'C</center></b>\n\t\t\t\t\t\t</br>\n\t\t\t\t\t\t<li><?php echo $temp->getDescription(); ?></li>\n\t\t\t\t\t</ul>\t\t\t\t\t\n\t\t\t\t</div>\n\t\t\t</div>\n\t<?php\n\t}\n}", "title": "" }, { "docid": "666f7c9c898d0ce831032b36e17ba5a0", "score": "0.5375165", "text": "function tempFromDisplayUnit($temp) {\n//\t\t ~~~~~~~~~~~~~~~~~~\n\tglobal $parityTuningTempUnit;\n\tif ($parityTuningTempUnit == 'C') {\n\t\treturn $temp;\n\t}\n\treturn round(($temp-32)/1.8);\n}", "title": "" }, { "docid": "bbf39cb4bbb090c7a83c77f59e26cd0b", "score": "0.53747106", "text": "public function getDatahoraTermoUso()\n {\n return $this->datahora_termo_uso;\n }", "title": "" }, { "docid": "a3de6969df15b71971adbe472b51e79f", "score": "0.53650254", "text": "public function CompteMereEtat($compte){\n //get les comptes enfants du variable $compte séléctionnées\n $all_ids = [];\n $childs_id = Compte::where('compte','like',$compte.'%')->get(['id']);\n foreach($childs_id as $ids){\n $all_ids[] = $ids->id;\n }\n $current = Carbon::now()->format('Y');\n\n //get les realisations des comptes enfants du variable $compte\n $allrealisations = [];\n $getrealisations = Realisation::whereIn('compte_id',$all_ids)->whereYear('date',$current)->get();\n foreach($getrealisations as $gets){\n $totals[] = $gets->total;\n $allrealisations['total'] = array_sum($totals);\n }\n $allrealisations['mouvement'] = $getrealisations;\n\n //get listes des users 'Birao'\n $users = User::where('role',Auth::user()->role)->get(['name']);\n $tab_chaines = [];\n $listes_chaines = \"\";\n if( count($users) > 0 ){\n foreach($users as $u){\n $tab_chaines[] = '\"'.$u->name.'\"';\n }\n $listes_chaines = implode(',',$tab_chaines);\n } \n return ['mouvement' => $allrealisations['mouvement'], 'total' => $allrealisations['total'], 'listes_chaines'=>$listes_chaines ];\n }", "title": "" }, { "docid": "9ac7fc7303c9debc90783309e40a6700", "score": "0.53637314", "text": "public function setEtat() {\n\n if ($this->rejet_finances) {\n // \"Rejété\", 'code' => \"6\"\n $this->bordereauremise_etat_id = BordereauremiseEtat::coded('state_6')->first()->id;\n } elseif ($this->montant > $this->montant_depose_finance) {\n // \"Validé Avec Ecart Négatif\", 'code' => \"5\"\n $this->bordereauremise_etat_id = BordereauremiseEtat::coded('state_5')->first()->id;\n } elseif ($this->montant < $this->montant_depose_finance) {\n // \"Validé Avec Ecart Positif\", 'code' => \"4\"\n $this->bordereauremise_etat_id = BordereauremiseEtat::coded('state_4')->first()->id;\n } elseif ($this->montant === $this->montant_depose_finance) {\n // \"Validé Sans Ecart\", 'code' => \"3\"\n $this->bordereauremise_etat_id = BordereauremiseEtat::coded('state_3')->first()->id;\n } elseif ($this->bordereau->date_depot_agence) {\n // \"Traitement En Cours\", 'code' => \"2\"\n $this->bordereauremise_etat_id = BordereauremiseEtat::coded('state_2')->first()->id;\n } else {\n // \"Attente Traitement\", 'code' => \"1\"\n $this->bordereauremise_etat_id = BordereauremiseEtat::coded('state_1')->first()->id;\n }\n\n }", "title": "" }, { "docid": "0e033352af87931ec3102a528ca45d6e", "score": "0.5363024", "text": "function EFICACIA($cant,$dato,$ID,$op,$llave,$cod,$tarea){\n \n echo \"TIEMPO EN HORAS QUE SE DEBE DEMORAR EN HACER LA OP: \".$dato;\n \n $d = new entradasalida();\n $d->totaltime($ID,$dato,$op,$cant,$llave,$cod,$tarea);\n }", "title": "" }, { "docid": "22156a607b7ede3cac1801d19a02903d", "score": "0.5361725", "text": "public function getTri() {\n\t\t\n\t\t$this->log->debug(\"Langue::getTri() Début\");\n\t\t\n\t\t$session = new Session();\n\t\t\n\t\t// Vérifier si un tri est spécifié dans la session\n\t\t$triSessionChamp = $session->get(\"langue_pref_tri_champ\");\n\t\t$triSessionOrdre = $session->get(\"langue_pref_tri_ordre\");\n\t\t$this->log->debug(\"Langue::getTri() triSessionChamp = '$triSessionChamp'\");\n\t\t$this->log->debug(\"Langue::getTri() triSessionOrdre = '$triSessionOrdre'\");\n\t\t\n\t\t// Vérifier si l'ordre de tri désiré est passé en paramètre\n\t\t$triParamChamp = Web::getParam(\"tri\");\n\t\t$triParamOrdre = \"\";\n\t\n\t\t// Vérifier si l'ordre demandé est disponible\n\t\tif ($triParamChamp != \"\") {\n\t\t\t$listeValeurs = array(\"id_langue\", \"titre\", \"remarque\", \"date_modification\");\n\t\t\tif ( !Securite::verifierValeur( $triParamChamp, $listeValeurs) ) {\n\t\t\t\t$triParamChamp = \"id_langue\";\n\t\t\t} else {\n\t\t\t\t// Déterminer si on doit inverser le tri ou non\n\t\t\t\tif ($triSessionChamp == \"\" || $triSessionChamp != $triParamChamp) {\n\t\t\t\t\t// Aucune valeur en session, on tri selon le champ demandé en mode croissant\n\t\t\t\t\t$triParamOrdre .= \"asc\";\n\t\t\t\t} else {\n\t\t\t\t\t\t// Inverser l'ordre de tri\n\t\t\t\t\t\tif ($triSessionOrdre == \"asc\") {\n\t\t\t\t\t\t\t$triParamOrdre = \"desc\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$triParamOrdre = \"asc\";\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Si aucun tri spécifié, utilisé celui de la session\n\t\tif ($triParamChamp == \"\") {\n\t\t\t$triParamChamp = $triSessionChamp;\n\t\t\t$triParamOrdre = $triSessionOrdre;\n\t\t}\n\t\t\n\t\t// Si aucun tri en session, utilisé celui par défaut\n\t\tif ($triParamChamp == \"\") {\n\t\t\t$triParamChamp = \"id_langue\";\n\t\t\t$triParamOrdre = \"asc\";\t\t\t\n\t\t}\n\t\t\n\t\t// Stocker le tri dans la session\n\t\t$session->set(\"langue_pref_tri_champ\", $triParamChamp);\n\t\t$session->set(\"langue_pref_tri_ordre\", $triParamOrdre);\n\t\t\n\t\t$this->log->debug(\"Langue::getTri() Fin\");\n\t\t\n\t\treturn $triParamChamp . \" \" . $triParamOrdre;\n\t}", "title": "" }, { "docid": "3fbb38449b87d9ec8fdbb318ac4ad8e6", "score": "0.53615546", "text": "function format_minmaxtemps ($form) {\n\tglobal $weather, $temp6head, $temp24head;\n\n\t$max6h_c = $weather['temp_min_max']['max6h_c'];\n\t$max6h_f = $weather['temp_min_max']['max6h_f'];\n\t$min6h_c = $weather['temp_min_max']['min6h_c'];\n\t$min6h_f = $weather['temp_min_max']['min6h_f'];\n\t\n\t$max24h_c = $weather['temp_min_max']['max24h_c'];\n\t$max24h_f = $weather['temp_min_max']['max24h_f'];\n\t$min24h_c = $weather['temp_min_max']['min24h_c'];\n\t$min24h_f = $weather['temp_min_max']['min24h_f'];\n\n\t$temps['head6'] = $temp6head;\n\t$temps['head24'] = $temp24head;\n\n\n\tswitch ($form) {\n\t\tcase 'minmax6h-fc':\n\t\t\t$temps['data6'] = $min6h_f . '&deg;/' . $max6h_f . '&deg;F (' . $min6h_c . '&deg;/' . $max6h_c . '&deg;C)';\n\t\t\tbreak;\n\t\t\t\n\t\tcase 'minmax6h-cf':\n\t\t\t$temps['data6'] = $min6h_c . '&deg;/' . $max6h_c . '&deg;C (' . $min6h_f . '&deg;/' . $max6h_f . '&deg;F)';\n\t\t\tbreak;\n\t\t\t\n\t\tcase 'minmax24h-fc':\n\t\t\t$temps['data24'] = $min24h_f . '&deg;/' . $max24h_f . '&deg;F (' . $min24h_c . '&deg;/' . $max24h_c . '&deg;C)';\n\t\t\tbreak;\n\t\t\t\n\t\tcase 'minmax24h-cf':\n\t\t\t$temps['data24'] = $min24h_c . '&deg;/' . $max24h_c . '&deg;C (' . $min24h_f . '&deg;/' . $max24h_f . '&deg;F)';\n\t\t\tbreak;\n\t\t\t\n\t\tdefault:\n\t\t\tbreak;\n\t}\n\treturn ($temps);\n}", "title": "" }, { "docid": "93e69ccaac445fab7c60ac646d176cc3", "score": "0.53408545", "text": "function T_zone($x = array(),$u, $T_0, $T_free){\n$m_zone = 6914.1; //Mass of internal air and furniture in environmental zone(Kg)\n$m_si = 15181 ; //kg mass if internal structure\n$m_se = 15181; // mass of ecternal structure\n$m_im = 13327; //kg IDEAS only, calibration parameter\n$m_v = 0.0377; // kg/s Infiltration rate\n$C_zone = 1067.3 ; //J/(kg·K) Thermal capacity of environmental zone(air and furniture)\n$C_s = 949.5 ; //J/(kg·K) Thermal capacity of building structure\n$C_im = 1000 ;//J/(kg·K) IDEAS only, calibration parameter\n$C_a = 1005 ; // J/(kg·K) Standard Value\n$U_w = 4.1667; //W/(m2·K) U value of windows\n$U_f = 0.7; // W/(m2·K) U Value of floor\n$U_r = 2.3 ; //W/(m2·K) U value of roof\n$U_im = 2.5; //W/(m2·K) internal mass\n$U_d = 2.1; //W/(m2·K) U value of doors\n$U_s = 2.1 ; //W/(m2·K) U value of structure\n$A_w = 16.9 ; //m2 surface area of windows\n$A_f = 44.4 ; //m2 surface area of floor\n$A_r = 44.4 ; //m2 surface area of roof\n$A_im = 133.3; //m2 surface area of internal mass\n$A_d = 3.8 ; //m2 surface area of doors\n$A_s = 81.8 ; //m2 surface area of structure\n\n\n$h_i = 7.6923 ; //W/(m2·K) internal air heat transfer coefficient\n$h_e = 25 ; //W/(m2·K) Standard Value\n$k_w = 0.7686 ; //W/(m·K) equivalent thermal conductivity of the structure\n$d_w = 0.2375 ;//Structure thickness(m)\n\n\n\n\n\n$theta_1 = 1/($m_zone * $C_zone);\n$theta_2 = 1/($m_si * $C_s);\n$theta_3 = 1/($m_se * $C_s);\n$theta_4 = 1/($m_im * $C_im);\n$theta_5 = $U_w * $A_w + $U_f * $A_f + $U_r * $A_r + $U_d * $A_d + $m_v * $C_a;\n$theta_6 = $U_im * $A_im;\n$theta_7 = (4 * $k_w * $h_i * $A_s) / (4 * $k_w + $h_i * $d_w);\n$theta_8 = 2 * $k_w * $A_s / $d_w;\n$theta_9 = (4 * $k_w * $h_e * $A_s) / (4 * $k_w + $h_e * $d_w);\n\n\n\n\n$delta = 200; //here we assume that the model do 60 loop every second and the variables keep constant in one unit loop\n\n\n\n\n$temp[0] = $delta * ( -$theta_1 * ($theta_5 + $theta_6 + $theta_7) * $x[0] + $theta_1 * $theta_7 * $x[1] + $theta_1 * $theta_6 * $x[3]\n+ $theta_1 * $u \n+ $theta_1 * $theta_5 * $T_0 + $theta_1 * $T_free) + $x[0];\n//temp0 is the zone tempeture\n\n$temp[1] = $delta * ($theta_2 * $theta_7 * $x[0] - $theta_2 * ($theta_7 + $theta_8) * $x[1] + $theta_2 * $theta_8 * $x[2]) + $x[1];\n//temp1 is the temperature of internal structure\n\n$temp[2] =$delta * ( $theta_3 * $theta_8 * $x[1] - $theta_3 * ($theta_8 + $theta_9) * $x[2]\n+ $theta_3 * $theta_9 * $T_0) + $x[2];\n//temp2 is temperature of exturnal structure\n\n$temp[3] = $delta * ($theta_4 * $theta_6 * $x[0] - $theta_4 * $theta_6 * $x[3]) + $x[3];\n//temp3 is internal mass temperature\n\n\nreturn $temp;\n\n\n}", "title": "" }, { "docid": "077e5f29a3ad72a28aa39aa4ba6406a3", "score": "0.5339889", "text": "static function TiempoTranscurrido($inicio, $fin, $prec = true, $as_array = false) {\n\t\t\n\t\tif ($fin < $inicio) {\n\t\t\t$aux = $fin;\n\t\t\t$fin = $inicio;\n\t\t\t$inicio = $aux;\n\t\t}\n\t\t\n\t\t$finicio = new datetime($inicio);\n\t\t$ffin = new datetime($fin);\n\t\t\t\n\t\t$diferencia = $finicio->diff($ffin);\n\t\t\n\t\t$salida = array();\n\t\tif ($diferencia->y > 0) {\n\t\t\t$aux = $diferencia->y.\" año\";\n\t\t\t$aux .= ($diferencia->y > 1)?\"s\":\"\";\n\t\t\t$salida[] = $aux;\n\t\t}\n\t\tif ($diferencia->m > 0) {\n\t\t\t$aux = $diferencia->m.\" mes\";\n\t\t\t$aux .= ($diferencia->m > 1)?\"es\":\"\";\n\t\t\t$salida[] = $aux;\n\t\t}\n\n\t\tif ($diferencia->d > 0) {\n\t\t\t$aux = $diferencia->d.\" dia\";\n\t\t\t$aux .= ($diferencia->d > 1)?\"s\":\"\";\n\t\t\t$salida[] = $aux;\n\t\t}\n\n\t\tif ($diferencia->h > 0) {\n\t\t\t$aux = $diferencia->h.\" hora\";\n\t\t\t$aux .= ($diferencia->h > 1)?\"s\":\"\";\n\t\t\t$salida[] = $aux;\n\t\t}\n\n\t\tif ($diferencia->i > 0) {\n\t\t\t$aux = $diferencia->i.\" min\";\n\t\t\t$aux .= ($diferencia->i > 1)?\"s\":\"\";\n\t\t\t$aux .= \".\";\n\t\t\t$salida[] = $aux;\n\t\t}\n\t\tif (($diferencia->s > 0) and $prec) {\n\t\t\t$aux = $diferencia->s.\" seg\";\n\t\t\t$aux .= ($diferencia->s > 1)?\"s\":\"\";\n\t\t\t$aux .= \".\";\n\t\t\t$salida[] = $aux;\n\t\t}\n\t\tif ($as_array) {\n\t\t\treturn $salida;\n\t\t} else {\n\t\t\treturn implode(\", \",$salida);\n\t\t}\n\t}", "title": "" }, { "docid": "0d60a041e6347471965b99adb1ceb9cc", "score": "0.53316134", "text": "function getTideMeasurements() {\n\t\t$tide_measurements = array();\n\n\t\t$html = file_get_html('http://www.comune.venezia.it/flex/cm/pages/ServeBLOB.php/L/IT/IDPagina/1748');\n\t\t$count = 0;\n\t\tforeach($html->find('tr') as $row) {\n \t\t$date_time = $row->find('th',0)->plaintext;\n\t\t $max_min = $row->find('td',0)->plaintext;\n\t \t$tide_level = floatval($row->find('td',1)->plaintext);\n\t\n\t\t\tif ($date_time == '' || $tide_level == '' || $max_min == '') \n\t\t\t\tcontinue;\n\n\t\t\t$tide_measurements[$count]['date_time'] = $date_time;\n\t\t\t$tide_measurements[$count]['tide_level'] = $tide_level / 100;\n\t\t\t$tide_measurements[$count]['max_min'] = $max_min;\n\n\t\t\t$count++;\n\t\t}\n\t\treturn $tide_measurements;\n\t}", "title": "" }, { "docid": "b98066858ccfbcb6bfe69d91f8d3c50c", "score": "0.53225774", "text": "function lire_fichier_xevo($numexp,$fich2,$num_plaque2)\r\n{\r\n\t\r\n\t$fich=file($fich2);\r\n\t\t\r\n\tforeach($fich as $f) // table des lignes valeurs \r\n\t{\r\n\t\tif(preg_match('#TEE#',$f))// demander de taper dans une zone de texte\r\n\t\t\t{\r\n\t\t\t\t$valeurs[]=$f;\r\n\t\t\t}\r\n\t}\r\n\t\r\n\tforeach($fich as $f) // table des compound\r\n\t{\r\n\t\tif(preg_match('#^Compound [0-9]#',$f)) // les lignes contenant les num et nom des compounds (!!! faut vérifier le cas des cellules GM comment ils vont apparaître dans les fichiers Xevo)\r\n\t\t\t{\r\n\t\t\t\t$comp[]=$f;\r\n\t\t\t}\r\n\t}\r\n\t\r\n\tfor ($i=0;$i<=count($comp)-1;$i++) // les composants(métabolites)\t\r\n\t{\r\n\t\t$explod_composants[] = explode(\":\",$comp[$i]);// séparer le num compound du nom, j'ai utilisé l'espace au lieu \":\" car le fichier3 ne cintient \":\"\r\n\t\t$composants[]=$explod_composants[$i][1]; // je sauvegarde que les noms des composants ils sont à l'indice 3 car j'ai utilisé l'espace comme séparateur et la ligne contient 3 espace \r\n\t}\r\n\t\r\n\tforeach($fich as $f) //table des activités \r\n\t\t{\r\n\t\t\tif(preg_match('#Name#',$f))//les lignes des entêtes colonnes)\r\n\t\t\t{\r\n\t\t\t\t$activites[]=$f;\r\n\t\t\t}\r\n\t\t}\r\n\t\t \r\n\t$n=count($valeurs); //nb lignes valeurs =960\r\n\t$c=count($comp); //nb composants =4\r\n\t$nb_lignes_fichier=$n/$c;\r\n\t\r\n\t\t\r\n\tfor ($i=0;$i<=$n-1;$i++) // décomposer chaque ligne valeur par le délimitateur \"tabulation\"\r\n\t{\r\n\t\t$explod_valeurs[$i]= explode(\"\t\",$valeurs[$i]);\r\n\t}\r\n\t// => Le champs $explod_valeurs[2] contient le num_exp 10-12, id_cellule MAP, numplaque TEE1 et id pos E1, je les stocke dans un array avec explod 'espace'\r\n\t\r\n\tfor ($i=0;$i<=$n-1;$i++)\r\n\t{\r\n\t\t$num_exp_val[$i]= explode(\" \",$explod_valeurs[$i][2]);\r\n\t}\r\n\tfor ($i=0;$i<=$n-1;$i++)// remplir la liste des positions\r\n\t{\r\n\t\t$pos[$i]= explode(\":\",$valeurs[$i]); // pour chaque ligne on a 2 colonne (les valeurs et les position)\r\n\t}\r\n\t\r\n\t// décomposer chaque ligne activité par le délimitateur \"tabulation\"\tpour récupérer les activités\r\n\t$explod_activites = explode(\"\t\",$activites[0]);// pas de boucle en lignes les actvités à déterminer une seule fois à partier de la ligne1 indice0 //la boucle sera faite pour parcourir cette table '$explod_activites' de l'indice 3 à $a-2\r\n\t$a=count($explod_activites); // =8 :les activités + 4(vide, #, Name, Vial) => nb activitées: $na=$a-4;\r\n\t\r\n\t$metabolite=\"\";\r\n\t$k=-1;\r\n\t//déterminer les TEE à partir des fichiers du sous répertoire \"Extraction/Fichiers\"\r\n\t\r\n\t\r\n\t\r\n\tfor($i=0;$i<=$n-1;$i++)//nb lignes\r\n\t{\r\n\t\t//remplir variable $num_passage\r\n\t\t\r\n\t\t\t$num_passage =($num_plaque2-1)*240+$explod_valeurs[$i][0];\r\n\t\t\r\n\t\t\r\n\t\t//remplir variable metabolite:\r\n\t\tif($explod_valeurs[$i][0]==1)\r\n\t\t{\r\n\t\t\t$k=$k+1;\r\n\t\t\t$metabolite=$composants[$k];\r\n \t}\r\n\t\t\t$liste_conversiontxt=liste_de_conversion('Extraction/convert.txt');\r\n\t\t//remplir variables activites et valeurs associées\r\n\t\tfor($j=3;$j<=$a-2;$j++)\r\n\t\t{\r\n\t\t\t\r\n\t\t\t$position_pos=$pos[$i][1];// extraire la position: indice 1 dans la liste pos\r\n\t\t\t$position2=trim(str_replace(',','',$position_pos)); //supprimer le virgule et les espaces pour pouvoir comparer \r\n\t\t\t$activite2=trim($explod_activites[$j]);\r\n\t\t\t$valeur2=$explod_valeurs[$i][$j];\r\n\t\t\t$TEE2=nom_TEE ($num_plaque2,$position2,$liste_conversiontxt); // appel à la fonction qui détermine le TEE de la molécule à partir du num de la plaque et la pos\r\n\t\t\t// controle positions DMSO\r\n\t\t\tif(empty($TEE2))\r\n\t\t\t{\r\n\t\t\t\t$array_DMSO=array(\"D4\",\"F22\",\"G15\",\"G16\",\"H4\",\"H15\",\"I9\",\"I10\",\"J9\",\"J22\",\"L4\",\"N22\");\r\n\t\t\t\tif(in_array($position2, $array_DMSO))\r\n\t\t\t\t{\r\n\t\t\t\t\t$TEE2=\"DMSO\";\r\n\t\t\t\t}\r\n\t\t\t\telse {$TEE2=\"Empty\";}\r\n\t\t\t\tif (($nb_lignes_fichier<240))\r\n\t\t\t\t{\r\n\t\t\t\t\t$array_DMSO_derniere_plaque=file_get_contents('Extraction/Fichiers/listepositionderplaque.txt');\r\n\t\t\t\t\t$array_DMSO_derniere_plaque=unserialize($array_DMSO_derniere_plaque);\r\n\t\t\t\t\tif(in_array($position2, $array_DMSO_derniere_plaque))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$TEE2=\"DMSO\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse {$TEE2=\"Empty\";}\r\n\r\n\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$ligne= $numexp.','.$TEE2.','.$metabolite.','.$activite2 .','.$valeur2.','.$num_plaque2.','.$position2.','.$num_passage ;\r\n\t\t echo $ligne.\"<br>\";\r\n\t\t\t\t$sql= \"insert into metabolite_results (Experiment_Num, TEE, Metabolite_Id, Activity, Value,Plate_Num, Position, Passage_Num) values ('$numexp','$TEE2','$metabolite','$activite2',$valeur2,$num_plaque2,'$position2',$num_passage)\";\r\n\t\t\t\tmysql_query($sql);\r\n\t\t}\r\n\t\r\n\t\r\n\t}\r\n\t\r\n}", "title": "" }, { "docid": "8f857f6ad0bfa727cfd78306dece4209", "score": "0.53207123", "text": "function ubicar_en_tabla($tipo_movto, $referencia, $importe, $num_meses_periodo){\n\t\n\t/*\n\t El campo $num_meses_periodo tiene el número de meses del período que deseamos consultar,\n\t este dato nos servirá para saber cuántas quincenas mostrar en la salida.\t \n\t */\n\t\n\t$color_quincenas = \"#FAAC58\";\n\t$color_catorcenas = \"#81F7F3\";\n\t$color_semanas = \"#BEF781\";\n\t$color_meses = \"#EC7063\";\n\t\n\tif($tipo_movto == 0){ //cargo\n\t $valor = $importe;\t \n\t}\n\t\n\tif($tipo_movto == 1){ //abono\n\t\t$valor = \"-\".$importe;\n\t}\n\t\n\t$columnas = \"\";\n\t$indice = 1;\n\t\n\t//Generar dinámicamente el arreglo de las quincenas\n\tfor($i = 1; $i <= $_SESSION[\"num_quincenas\"]; $i++){\n\t\t\n\t\tif($i < 10)\n\t\t $valor_quincena = \"Q0\".$i;\n\t\telse \n\t\t $valor_quincena = \"Q\".$i;\n\t\t\n\t\t$arr_posiciones[$indice][\"encabezado\"] = $valor_quincena;\n\t\t$arr_posiciones[$indice][\"posicion\"] = $i;\t\t\n\t\t$arr_posiciones[$indice++][\"color\"] = $color_quincenas;\t\t\n\t}\n\t\n\t\n\t//Generar dinámicamente el arreglo de las catorcenas\n\tfor($i = 1; $i <= $_SESSION[\"num_catorcenas\"]; $i++){\n\t\n\t\tif($i < 10)\n\t\t\t$valor_catorcena = \"C0\".$i;\n\t\telse\n\t\t\t$valor_catorcena = \"C\".$i;\n\t\n\t\t$arr_posiciones[$indice][\"encabezado\"] = $valor_catorcena;\n\t\t$arr_posiciones[$indice][\"posicion\"] = $i;\t\t\n\t\t$arr_posiciones[$indice++][\"color\"] = $color_catorcenas;\t\t\n\t}\n\t\n\t\n\t//Generar dinámicamente el arreglo de las semanas\n\tfor($i = 1; $i <= $_SESSION[\"num_semanas\"]; $i++){\n\t\n\t\tif($i < 10)\n\t\t\t$valor_semana = \"S0\".$i;\n\t\telse\n\t\t\t$valor_semana = \"S\".$i;\n\t\n\t\t$arr_posiciones[$indice][\"encabezado\"] = $valor_semana;\n\t\t$arr_posiciones[$indice][\"posicion\"] = $i;\t\t\n\t\t$arr_posiciones[$indice++][\"color\"] = $color_semanas;\t\t\n\t}\n\t\n\t\n\t//Generar dinámicamente el arreglo de los meses\n\tfor($i = 1; $i <= $_SESSION[\"num_meses\"]; $i++){\n\t\n\t\tif($i < 10)\n\t\t\t$valor_mes = \"M0\".$i;\n\t\t\telse\n\t\t\t\t$valor_mes = \"M\".$i;\n\t\n\t\t\t\t$arr_posiciones[$indice][\"encabezado\"] = $valor_mes;\n\t\t\t\t$arr_posiciones[$indice][\"posicion\"] = $i;\n\t\t\t\t$arr_posiciones[$indice++][\"color\"] = $color_meses;\n\t}\n\t\n\t\n\tfor($i=1; $i < $indice; $i++){\t\t\n\t\t\n\t\tif($referencia == $arr_posiciones[$i][\"encabezado\"]){\t\t \n\t\t $columnas .= \"<td bgcolor='\".$arr_posiciones[$i][\"color\"].\"'>\".number_format($valor,2).\"</td>\";\t\t \n\t\t $_SESSION[$referencia] += $valor; //Aquì se acumulan los totales por referencias\n\t\t}\n\t\telse \n\t\t $columnas .= \"<td>\n\t\t \t\t &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n\t\t \t\t &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n\t\t \t\t </td>\";\t\t\n\t}\n\n\treturn $columnas;\t\n}", "title": "" }, { "docid": "b6d15c8e7afee1acc8898ff03034b8e1", "score": "0.5315962", "text": "function affichage_decroissant(){\n global $t;\n executer_tri_rapide_decroisant(0,count($t)-1);\n echo 'LE TRABLEAU TRIE PAR ORDRE DECROISSANT <br>';\n echo\"<pre>\";\n print_r($t);\n echo\"</pre>\";\n}", "title": "" }, { "docid": "ce7014fe7b465e14a4fee14d12082b00", "score": "0.53134346", "text": "public function tiempoRestante(){\n\n $fechaFinTarea = Carbon::parse($this->fecha_fin, 'Europe/Madrid');\n $ahora = Carbon::parse('now', 'Europe/Madrid');\n\n if ($fechaFinTarea < $ahora){\n return 0;\n }\n\n $minutos = $fechaFinTarea->diffInMinutes($ahora);\n \n return $minutos;\n }", "title": "" }, { "docid": "ca02db0255eb21d7112eb01aa58b59a1", "score": "0.531106", "text": "public function tampilVektorMixed($v){\n\t//echo \"public function tampilObjectMatriks($objM)\";\n\t\n\t$nb = count($v);\n\t//$nk = (count($v,1)/count($v,0))-1;;\n\t//echo \"\\$nb : $nb dan \\$nk : $nk <br>\";\n\tfor($i=0;$i<$nb;$i++){\n\t //for($j=0;$j<$nk;$j++){\n\t //echo \"\\$i : $i dan \\$j : $j <br>\";\n\t if(is_integer($v[$i]) || is_string($v[$i]) ) printf(\"%8s\",$v[$i]);\n\t\t else printf(\"%1\\$.2f\",$v[$i]); //%f\t\t\t\t \n\t\techo str_repeat(\"&nbsp;\",2); \n\t\t//}\n\t // print \"<br>\";\t\t\n\t } \n\tprint \"<br>\"; \n\t}", "title": "" }, { "docid": "bb2d8a4fa5bef71dcd78a8fe2dd55ebf", "score": "0.5310617", "text": "function estrapolaDatiPerXmlFt($myFt){\r\n\t/*\r\n\t$dati conterrā le informazioni che mi servono per generare la fattura\r\n\tla sua struttura sarā quella che il programma si aspetta per generare correttamente il file xml\r\n\t * */\r\n\t\r\n\tglobal $config;\r\n\t\r\n\t//ricavo i dati\r\n\t$dati = new stdClass();\r\n\t\r\n\t/* DATI GENERALI FATTURA */\r\n\t$dati->fattura = new stdClass();\r\n\t/* tipo:\r\n\tTD01 = Fattura \r\n\tTD02 = Acconto/Anticipo su fattura \r\n\tTD03 = Acconto/Anticipo su parcella \r\n\tTD04 = Nota di Credito \r\n\tTD05 = Nota di Debito \r\n\tTD06 = Parcella \r\n \t*/\r\n\t$dati->fattura->tipo = $myFt->tipofattura_codice->extend()->codiceSDI->getVal();\r\n\t$anno=explode('/',$myFt->data->getFormatted());\r\n\t$dati->fattura->divisa = $myFt->valuta->getVal(); //'EUR'\r\n\t$dati->fattura->numero = $myFt->numero->getVal(); //todo-aggiungo la stringa \"/anno\"\r\n\t$dati->fattura->data = formatDate('dd/mm/yyyy','yyyy-mm-dd',$myFt->data->getVal());\r\n\t$dati->fattura->importo = formatImporto(abs($myFt->totale->valore)); //mi salvo il valore assoluto** le note di accredito mi davano un valore negativo\r\n\t//$dati->fattura->causale = 'vendita'; //non obbligatorio/necessario\r\n\t\r\n\t/* PROGRESSIVO INVIO */\r\n\t\t//'00001';/*todo: massimo 10 caratteri:: ma il nome file ne contiene massimo 5*/\r\n\t$dati->ProgressivoInvio = $myFt->getProgressivoInvioSDI();\r\n\t\r\n\t/* TIPO \"DESTINATARIO\" FATTURA */\r\n\t/*\r\n\tFPR12 = fattura tra privati (sia ditte che persone fisiche) \r\n\tFPA12 = fattura verso pubblica amministrazione\r\n\t*/\r\n\t$dati->FormatoTrasmissione = 'FPR12';\r\n\t\r\n\t/* EMITTENTE */\r\n\t$dati->emittente = new stdClass();\r\n\t$dati->emittente->partitaIvaNazione \t\t= $config->azienda->nazione->getVal();;\r\n\t$dati->emittente->partitaIvaCodice \t\t\t= $config->azienda->piva->getVal();\r\n\t$dati->emittente->codiceFiscale\t\t\t\t= $config->azienda->codfiscale->getVal();\r\n\t$dati->emittente->ragioneSociale \t\t\t= htmlentities($config->azienda->ragionesociale->getVal());\r\n\t$dati->emittente->regimeFiscale \t\t\t= 'RF01'; //(RF01 = regime ordinario)\r\n\t$dati->emittente->sede = new stdClass();\r\n\t$dati->emittente->sede->via \t\t\t\t= htmlentities($config->azienda->via->getVal());\r\n\t$dati->emittente->sede->paese \t\t\t\t= htmlentities($config->azienda->paese->getVal());\r\n\t$dati->emittente->sede->citta\t\t\t\t= htmlentities($config->azienda->provincia->getVal());\r\n\t$dati->emittente->sede->cap \t\t\t\t= $config->azienda->cap->getVal();\r\n\t$dati->emittente->sede->nazione \t\t\t= $config->azienda->nazione->getVal();;\r\n\t$dati->emittente->datiREA = new stdClass();\r\n\t$dati->emittente->datiREA->Ufficio \t\t\t= \"VR\";\r\n\t$dati->emittente->datiREA->NumeroREA \t\t= \"185024\";\r\n\t$dati->emittente->datiREA->CapitaleSociale \t= $config->azienda->_capitalesociale->getVal();\r\n\t$dati->emittente->datiREA->SocioUnicoBolean \t\t= $config->azienda->_sociounicoBolean->getVal();//\"SU\";\r\n\t$dati->emittente->datiREA->StatoLiquidazioneBolean = $config->azienda->_inliquidazioneBolean->getVal();//\"LN\";\r\n\t\r\n\t/* DESTINATARIO */\r\n\t$cliente = $myFt->clientefornitore_codice->extend();\r\n\t//print_r($cliente);\r\n\t$dati->destinatario \t\t\t\t\t\t= new stdClass();\r\n\t$dati->destinatario->codiceSDI \t\t\t\t= $cliente->codiceSDI->getVal();\r\n\t$dati->destinatario->pec \t\t\t\t\t= $cliente->pec->getVal();\r\n\r\n\t$dati->destinatario->partitaIvaNazione \t\t= $cliente->nazione->getVal();\r\n\t$dati->destinatario->partitaIvaCodice \t\t= $cliente->piva->getVal();\r\n\t$dati->destinatario->codiceFiscale \t\t\t= $cliente->codfiscale->getVal();\r\n\t$dati->destinatario->ragioneSociale \t\t= htmlentities($cliente->ragionesociale->getVal());\r\n\t$dati->destinatario->sede = new stdClass();\r\n\t$dati->destinatario->sede->via \t\t\t\t= htmlentities($cliente->via->getVal());\r\n\t$dati->destinatario->sede->paese \t\t\t= htmlentities($cliente->paese->getVal());\r\n\t$dati->destinatario->sede->citta \t\t\t= htmlentities($cliente->provincia->getVal());\r\n\t$dati->destinatario->sede->cap \t\t\t\t= $cliente->cap->getVal();\r\n\t$dati->destinatario->sede->nazione \t\t\t= $cliente->nazione->getVal();\r\n\t\r\n\t/* RIFERIMENTI PER NOTE DI ACCREDITO */\r\n\t$dati->riferientinotacredito = new stdClass();\r\n\t$dati->riferientinotacredito->rifNsDDT = array();\r\n\t$dati->riferientinotacredito->rifNsFT = array();\r\n\t$dati->riferientinotacredito->rifLoroDDT = array();\r\n\t\r\n\t/* DATI PAGAMENTO */ \r\n\t/*\r\n\tMP01 = contanti \r\n\tMP02 = assegno \r\n\tMP03 = assegno circolare \r\n\tMP04 = contanti presso Tesoreria \r\n\tMP05 = bonifico \r\n\tMP06 = vaglia cambiario \r\n\tMP07 = bollettino bancario \r\n\tMP08 = carta di pagamento \r\n\tMP09 = RID \r\n\tMP10 = RID utenze \r\n\tMP11 = RID veloce \r\n\tMP12 = Riba \r\n\tMP13 = MAV \r\n\tMP14 = quietanza erario stato \r\n\tMP15 = giroconto su conti di contabilitā speciale \r\n\tMP16 = domiciliazione bancaria \r\n\tMP17 = domiciliazione postale \r\n\tMP18 = bollettino di c/c postale \r\n\tMP19 = SEPA Direct Debit \r\n\tMP20 = SEPA Direct Debit CORE \r\n\tMP21 = SEPA Direct Debit B2B \r\n\tMP22 = Trattenuta su somme giā riscosse \r\n\t*/\r\n\t$dati->fattura->pagamento = new stdClass();\r\n\t$dati->fattura->pagamento->modalita=$myFt->pagamentomodalita_codice->extend()->codiceSDI->getVal();\r\n\t$dati->fattura->pagamento->iban=$myFt->banca_codice->extend()->descrizione->getVal();\r\n\t\r\n\t/* RIGHE */ \r\n\t$dati->fattura->righe = array();\r\n\t/*\r\n\t$dati->fattura->righe[0] = new stdClass();\r\n\t$dati->fattura->righe[0]->numero ='';\r\n\t$dati->fattura->righe[0]->cod_articolo = '';\r\n\t$dati->fattura->righe[0]->descrizione = '';\r\n\t$dati->fattura->righe[0]->unita_misura = '';\r\n\t$dati->fattura->righe[0]->prezzo = '';\r\n\t$dati->fattura->righe[0]->imponibile = '';\r\n\t$dati->fattura->righe[0]->importo_iva = '';\r\n\t$dati->fattura->righe[0]->importo_totale = '';\r\n\t$dati->fattura->righe[0]->colli = '';\r\n\t$dati->fattura->righe[0]->quantita = '';\r\n\t$dati->fattura->righe[0]->cod_iva = '';\r\n\t*/\r\n\t$dati->riferimentoDdt = array();\r\n\t$dati->castellettoiva = array();\r\n\r\n\t$dati->contaRighe = 0;\r\n\r\n\t$righe = $myFt->getRighe();\r\n\t$righe->iterate(function($riga, $dati){\r\n\t\t//$riga=$myFt->riga[$key];\r\n\t\t$dati->contaRighe++;\r\n\t\t$contaRighe = $dati->contaRighe;\r\n\t\t$codiva = $riga->iva_codice->extend();\r\n\t\t$imponibile = (comma2dot($riga->prezzo->valore)) * (comma2dot($riga->pesonetto->getVal()));\r\n\t\t\r\n\t\t//si tratta di una normale riga appartenente ad un ddt\r\n\t\t$dati->fattura->righe[$contaRighe] = new stdClass();\r\n\t\t$dati->fattura->righe[$contaRighe]->numero =$contaRighe;\r\n\t\t$dati->fattura->righe[$contaRighe]->cod_articolo = $riga->articolo_codice->getVal();\r\n\t\t$dati->fattura->righe[$contaRighe]->descrizione = htmlentities($riga->articolo_codice->extend()->descrizione->getVal());\r\n\t\t$dati->fattura->righe[$contaRighe]->unita_misura = $riga->um_codice->extend()->descrizione->getVal();\r\n\t\t$dati->fattura->righe[$contaRighe]->prezzo = formatImporto(comma2dot($riga->prezzo->valore));\r\n\t\t$dati->fattura->righe[$contaRighe]->imponibile = formatImporto($imponibile);\r\n\t\t$dati->fattura->righe[$contaRighe]->importo_iva = $imponibile * comma2dot($codiva->aliquota->getVal());\r\n\t\t$dati->fattura->righe[$contaRighe]->importo_totale = $dati->fattura->righe[$contaRighe]->imponibile + $dati->fattura->righe[$contaRighe]->importo_iva;\r\n\t\t$dati->fattura->righe[$contaRighe]->colli = ($riga->colli->getVal()*1>0 ? $riga->colli->getFormatted(0) : '');\r\n\t\t$dati->fattura->righe[$contaRighe]->quantita = formatImporto(str_replace(',','.',$riga->pesonetto->valore));\r\n\t\t$dati->fattura->righe[$contaRighe]->cod_iva = formatImporto($riga->iva_codice->getVal());\r\n\t\t\r\n\t\t//dati iva\r\n\t\t$codiva = $riga->iva_codice->extend();\r\n\t\t\r\n\t\tif (!property_exists($dati, 'castellettoiva')){\r\n\t\t\t$dati->castellettoiva = array();\r\n\t\t}\r\n\t\t\r\n\t\tif (!array_key_exists($codiva->codiceSDI->getVal(), $dati->castellettoiva)){\r\n\t\t\t$dati->castellettoiva[$codiva->codiceSDI->getVal()] = new stdClass();\r\n\t\t}\r\n\t\t$dati->castellettoiva[$codiva->codiceSDI->getVal()]->codiceiva = $codiva->codiceSDI->getVal();\r\n\t\t$dati->castellettoiva[$codiva->codiceSDI->getVal()]->aliquota = comma2dot($codiva->aliquota->getVal())*100;\r\n\t\t@$dati->castellettoiva[$codiva->codiceSDI->getVal()]->imponibile += $imponibile;\r\n\t\t@$dati->castellettoiva[$codiva->codiceSDI->getVal()]->imposta = round($dati->castellettoiva[$codiva->codiceSDI->getVal()]->imponibile*comma2dot($codiva->aliquota->getVal()), 2);\r\n\t\t\r\n\t\t\r\n\t\t//riferimento ddt\r\n\t\t$ddt = $riga->ddt_id->extend();\r\n\t\t$arrKey = '#'.$ddt->numero->getVal().'#'.$ddt->data->getVal().'#';\r\n\t\tif(!array_key_exists($arrKey, $dati->riferimentoDdt)){\r\n\t\t\t$dati->riferimentoDdt[$arrKey] = new StdClass();\r\n\t\t\t$dati->riferimentoDdt[$arrKey]->numero = $ddt->numero->getVal();\r\n\t\t\t$dati->riferimentoDdt[$arrKey]->data = formatDate('dd/mm/yyyy','yyyy-mm-dd', $ddt->data->getVal());\r\n\t\t\t$dati->riferimentoDdt[$arrKey]->riferimentoRighe = array();\r\n\t\t\t$dati->riferimentoDdt[$arrKey]->riferimentoRighe[]=$contaRighe;\r\n\t\t}else{\r\n\t\t\t$dati->riferimentoDdt[$arrKey]->riferimentoRighe[]=$contaRighe;\r\n\t\t}\r\n\r\n\t\t//se si tratta di una riga di sconto\r\n\t\t\t//questa riga (di sconto, non si riferisce ad alcun ddt)\r\n\t\t\t/*\r\n\t\t\tSC = sconto\r\n\t\t\tPR = premio\r\n\t\t\tAB = abbuono\r\n\t\t\tAC = spesa accessori\r\n\t\t\t*/\r\n\t\t\t//$dati->fattura->righe[$contaRighe]->tipocessioneprestazione ='SC';\r\n\t\t/*\r\n\t\t}else if (strpos($riga->descrizione->getVal(), 'PROVVIGIONE') !== false) {\r\n\t\t}else if (strpos($riga->descrizione->getVal(), 'COMMISSIONE') !== false) {\r\n\t\t$dati->fattura->righe[$contaRighe]->tipocessioneprestazione ='AC';\r\n\t\t*/\r\n\t\t//print_r($dati);\r\n\r\n\t}, $dati);\r\n\t\r\n\t//$myFt->saveUsedProgressivoInvioSDI();\r\n\t\r\n\treturn $dati;\r\n}", "title": "" }, { "docid": "ee1e0c7246858f957590ad6e5abb5d74", "score": "0.5300163", "text": "public function MONTANTpervuactionTROUVE($population=\"\" , $departement=\"\" , $Annee=\"\", $finance=\"\" , $physique=\"\",$action=\"\" , $cloture=\"\" , $etat=\"\" , $circonscription=\"\" ,$localite=\"\", $composante=\"\"){\n\n$bdd = parent::getBdd();\n\n\t$realisation=\"SELECT sum(montant) as montant_prevu\n\t FROM \n\t ppdri,action,realisation_physique,realisation_financiere,markers_villes,markers_departements,nomenclature, ppdridate\n\t WHERE\n\tppdri.Code_du_PPDRI = action.Code_PPDRI and\n\t\t action.Code_Actions =realisation_physique.Code and\n\t\t action.Code_Actions =realisation_financiere.Code and\n\t\t markers_villes.ville_id = ppdri.ville and\n\t\t markers_departements.id_departement=markers_villes.ville_departement AND\n\trealisation_financiere.Code =action.Code_Actions \n\t\tand action.nomactions = nomenclature.nomenclature \n\t\tand ppdridate.codeppdri=ppdri.code_du_ppdri AND action.maitre_ouvrage ='C-FORETS'\n\n\n\t \" ; \n\tif (!empty($departement)){\n\t\t\t$realisation .= \" and markers_villes.ville_departement = \" .$departement;\n\t\t} \n\t\tif (!empty($localite)){\n\t$realisation .= \" and markers_villes.ville_id = '\".$localite.\"'\";\n\t\t\t} \n\t\tif (!empty($composante)){\n\t\t\t$realisation .= \" and action.composante = '\".$composante.\"'\";\n\t\t} \n\t\tif (!empty($Annee)){\n\t\t\t//$realisation .= \" and ppdri.annee = \" .$Annee;\n\t\t\t\t\t\t$realisation .= \" and ppdri.annee in ('\" . implode(\"','\", $Annee) . \"')\"; \n\n\t\t}\n\t\t\n\t\tif (isset($population) and $population == 100){\n\t\t\t$realisation .= \" and (realisation_financiere.paiement)*100/( action.Montant ) = \" .$population;\n\t\t}\n\t\tif (isset($population) ){\n\t\t\t$realisation .= \" and (realisation_financiere.paiement)*100/( action.Montant ) <= \" .$population;\n\t\t}\n\t\t \n\t\tif (isset($_POST['finance'])){\n\t\t\t$natureFinance=$_POST['finance'];\n\t\t\t \n\t\t$realisation .= \" and action.source_financement in ('\" . implode(\"','\", $natureFinance) . \"')\"; \n }\n\n\t\t\t \n \n\t\tif ( isset($_POST['physique'])and $physique ==0) {\n\t\t\t$realisation .= \" and (realisation_physique.realisation_physique)*100/( action.Quantite )=0 \" ;\n\t\t}\n \n\t\tif ( isset($_POST['physique'])and $physique == 100){\n\t\t\t$realisation .= \" and (realisation_physique.realisation_physique)*100/( action.Quantite )=\".$physique ;\n\t\t}\n\t\tif ( isset($_POST['physique']) and $physique !=100 and $physique !=0){\n\t\t\t$realisation .= \" and (realisation_physique.realisation_physique)*100/( action.Quantite )<=\".$physique ;\n\t\t}\n\t\tif (!empty($action)){\n\t\t\t$realisation .= \" and nomenclature.id = \" .$action ;\n\t\t}\n\t\tif ( isset($_POST['cloture']) and $_POST['cloture']==\"ok\"){\n\t\t\t$realisation .= \" and action.cloture not\".'null'. \"\" ;\n\t\t}elseif(isset($_POST['cloture']) and $_POST['cloture']==\"\"){\n\t\t\t$realisation .= \" and action.cloture is\".'null'. \"\" ;\n\t\t}\n\t\t \n\n\t if (!empty($circonscription)){\n\t\t \tif($circonscription !==\"admin\"){\n$realisation .= \" and circonscription_foret = '\".$circonscription.\"'\";\n\t\t \t}\n\t\t\t\n\t\t}\n\t\tif ( isset($_POST['etat']) and $_POST['etat']==\"validee\" ){\n\t\t \n\t \n\t\t\t$realisation .= \" and observation <>'annulee'\" ;\n\t\t}\n\n\t\t if ( isset($_POST['etat']) and $_POST['etat'] ==\"annulee\" ){\n \n$realisation .= \" and observation ='annulee'\" ;\t\t}\nif ( isset($_POST['etat']) and $_POST['etat'] ==\"volumeAnnulée\" ){\n \n$realisation .= \" and observation ='volumeAnnulée'\" ;\t\t}\n if ( isset($_POST['etat']) and $_POST['etat'] ==\"volumesansrar\" ){\n \n$realisation .= \" and observation = ''\" ;\t\t}\n\n\t \n\t$res= $bdd->prepare($realisation) ; \n $res -> execute();\n\t$actions=$res->fetch(PDO::FETCH_OBJ);\n \n$res ->closeCursor();\n\treturn $actions ; // Accès au résultat\n\t\t \t\t\t}", "title": "" }, { "docid": "94fc3f54305d741a2128d7309838f3f0", "score": "0.5299407", "text": "public function tus_trabajos(){\n return view('empresa.tus_trabajos');\n }", "title": "" }, { "docid": "633ad96568b15cad4c5deb1a1aec7d3a", "score": "0.52970695", "text": "public function getTore2();", "title": "" }, { "docid": "a7460a8a08379882620a2d67f1e34a75", "score": "0.5289025", "text": "function criarTurmas($ano_lectivo=null){\n\t\t\t$plano_estudos = $this->Planoestudo->find('list');\n\t\t\t$escolas = $this->Escola->find('list');\n\t\t\t$turnos = $this->Turno->find('list');\n\t\t\t$anolectivo = $this->Anolectivo->findById($ano_lectivo);\n\t\t\t$semestre_lectivo = $anolectivo['Anolectivo']['num_semestre'];\n\t\t\tforeach($plano_estudos as $p_k=>$p_v){\n\t\t\t\t$disciplinas = $this->Planoestudo->getAllDisciplinasByPlanoestudo($p_k);\n\t\t\t\tforeach($disciplinas as $disciplina){\n\t\t\t\t\tforeach($escolas as $e_k=>$e_v){\n\t\t\t\t\t\tforeach($turnos as $t_k=>$t_v){\n\t\t\t\t\t\t$turma = array();\n\t\t\t\t\t\t$turma['anolectivo_id']=$ano_lectivo;\n\t\t\t\t\t\t$turma['anosemestrecurr']=$semestre_lectivo;\n\t\t\t\t\t\t$turma['curso_id']=$disciplina['pe']['curso_id'];\n\t\t\t\t\t\t$turma['escola_id']=$e_k;\n\t\t\t\t\t\t$turma['planoestudo_id']=$disciplina['p']['planoestudo_id'];\n\t\t\t\t\t\t$turma['turno_id']=$t_k;\n\t\t\t\t\t\t$turma['disciplina_id']=$disciplina['d']['id'];\n\t\t\t\t\t\t$turma['estadoturma_id']=1;\n\t\t\t\t\t\t$nome = $disciplina['d']['name'].\" - \".$disciplina['pe']['name'];\n\t\t\t\t\t\t$turma['name']=$nome;\n\t\t\t\t\t\t\n\t\t\t\t\t\t$turmas=array('Turma'=>$turma);\n\t\t\t\t\t\t$this->create();\n\t\t\t\t\t\t$this->save($turmas);\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\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}", "title": "" }, { "docid": "f776cedf1da841b43d61ad09c94300bf", "score": "0.5288869", "text": "public function tampil()\r\n\t{\r\n\t \t// $this->db->where('id_semester', $id_semester);\r\n\t\t$ambil = $this->db->get('ekstra');\r\n\t\t$array = $ambil->result_array();\r\n\t\t//untuk mengganti index jadi siswakelas\r\n\t\t// foreach ($array as $key => $value) {\r\n\t\t// \t$data[$value['id_siswa_kelas']] = $value;\r\n\t\t// }\r\n\t\treturn $array;\r\n\t}", "title": "" }, { "docid": "44060317981161dca375dbc0ad68dff0", "score": "0.52886814", "text": "function TiempoTrabajadoTiempoMuerto($conexion){\n \tdate_default_timezone_set('America/Mexico_City');\n \t $dia=date('N');\n \t if (\t$dia==7) {//si es 7 es domingo y no se labora y se le resta un dia para que la stencia sea de sabado a lunes\n \t \t$dia--;\n \t }\n \t \t$sql=(\"SELECT round(sum(minute(Minutos))+(sum(second(Minutos))/60)+(sum(hour(Minutos))*60)) FROM produccion.tiempomuertos where Fecha between '\".date('Y-m-d',strtotime('-6 day')).\"' and '\".date('Y-m-d').\"';\");\n \t //print $sql;\n try {\n $tiempomuerto=$conexion->query($sql);\n foreach ($tiempomuerto as $key ) {\n $tiempomuertos=$key[0];\n }\n \n print \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tiempo muerto: \".floor($tiempomuertos/60).\" horas \".round(($tiempomuertos%60)). \" minutos\";\n \n $tiempotrabajado=round(((10080-$tiempomuertos)*100)/10080,2);\n $tiempomuertos=round(100-$tiempotrabajado,2);\n\n } catch (Exception $e) {\n \tprint 'Consulta para llenar grafica erronea'.$e;\n }\n ?> \n\n <canvas id=\"grafico2\" ></canvas>\n <script type=\"text/javascript\">\n \t var ctx = document.getElementById(\"grafico2\");\n var myPieChart = new Chart(ctx,{\n type: 'pie',\n data: {labels: ['Tiempo trabajado','Tiempo fuera'],\n datasets: [{\n data: [<?php print $tiempotrabajado.\",\".$tiempomuertos;?>],\n backgroundColor:['rgba(33,203,19,.5)','rgba(232,58,3,.5)'],\n borderColor:['rgba(33,203,19,1)','rgba(232,58,3,1)'] \n }], \n }, \n \n });\n </script>\n <h5 align=\"center\"> <?php print $tiempotrabajado;?>% Tiempo trabajado en esta semana</h5>\n <?php\n }", "title": "" }, { "docid": "a36b36ede9200cf11ce6f048e20a0b32", "score": "0.5286808", "text": "function save() {\r\n $unidad = new unidadTemp ();\r\n $uni_destino = addslashes(html_entity_decode($_REQUEST['uni_destino'], ENT_QUOTES));\r\n $personal_transferidas = addslashes(html_entity_decode($_REQUEST['personal_trans'], ENT_QUOTES));\r\n //delete de temp_personal de la uni_destino\r\n $tunidad = new temp_personal();\r\n $tunidad->deleteByField(\"uni_destino\", $uni_destino);\r\n\r\n //actualizamos unidad_trn\r\n /* $unitrn = new Temp_unidad_trn();\r\n $unitrn->deleteByField(\"uni_destino\",$uni_destino); */\r\n\r\n //insert de personas transferidas\r\n $tuni = new Temp_unidad();\r\n\r\n $rows = $tuni->dbselectByField(\"uni_id\", $uni_destino);\r\n if (count($rows) != 1) {\r\n echo \"Error: unidad no se encuentra en temp_unidad, verifique.\";\r\n die;\r\n }\r\n if (!empty($personal_transferidas)) {\r\n $personal_transferidas = substr($personal_transferidas, 1);\r\n $per_transfarray = explode(\"|\", $personal_transferidas);\r\n foreach ($per_transfarray as $personal_trans) {\r\n $tper = new Tab_usuario();\r\n $row_per = $tper->dbselectByField(\"usu_id\", $personal_trans);\r\n if (count($row_per) == 1) {\r\n $tpersonal = new personalTemp();\r\n $tpersonal->transferirPorPersonal($personal_trans, $row_per[0]->uni_id, $uni_destino);\r\n }\r\n }\r\n }\r\n header(\"Location: \" . PATH_DOMAIN . \"/unidadPersonal/\");\r\n }", "title": "" }, { "docid": "a357fa9b2436717e8faa80f5f510a496", "score": "0.528256", "text": "public function run()\n {\n\t\tModel::unguard();\n\n\t\t$values = array(\n[\"000000\",\"I rifiuti contrassegnati nell'elenco in rosso con un asterisco '*' sono rifiuti pericolosi ai sensi della direttiva 2008/98/CE relativa ai rifiuti pericolosi\"],\n[\"010000\",\"RIFIUTI DERIVANTI DA PROSPEZIONE, ESTRAZIONE DA MINIERA O CAVA, NONCHÉ DAL TRATTAMENTO FISICO O CHIMICO DI MINERALI\"],\n[\"010100\",\"Rifiuti prodotti dall'estrazione di minerali\"],\n[\"010101\",\"rifiuti da estrazione di minerali metalliferi\"],\n[\"010102\",\"rifiuti da estrazione di minerali non metalliferi\"],\n[\"010300\",\"rifiuti prodotti da trattamenti chimici e fisici di minerali metalliferi\"],\n[\"010304\",\"*sterili che possono generare acido prodotti dalla lavorazione di minerale solforoso\"],\n[\"010305\",\"*altri sterili contenenti sostanze pericolose\"],\n[\"010306\",\"sterili diversi da quelli di cui alle voci 01 03 04 e 01 03 05\"],\n[\"010307\",\"*altri rifiuti contenenti sostanze pericolose prodotti da trattamenti chimici e fisici di minerali metalliferi\"],\n[\"010308\",\"polveri e residui affini diversi da quelli di cui alla voce 01 03 07\"],\n[\"010309\",\"fanghi rossi derivanti dalla produzione di allumina, diversi da quelli di cui alla voce 01 03 10\"],\n[\"010310\",\"*fanghi rossi derivanti dalla produzione di allumina contenenti sostanze pericolose, diversi da quelli di cui alla voce 01 03 07. (nuovo codice CER)\"],\n[\"010399\",\"rifiuti non specificati altrimenti\"],\n[\"010400\",\"rifiuti prodotti da trattamenti chimici e fisici di minerali non metalliferi\"],\n[\"010407\",\"*rifiuti contenenti sostanze pericolose, prodotti da trattamenti chimici e fisici di minerali non metalliferi\"],\n[\"010408\",\"scarti di ghiaia e pietrisco, diversi da quelli di cui alla voce 01 04 07\"],\n[\"010409\",\"scarti di sabbia e argilla\"],\n[\"010410\",\"polveri e residui affini, diversi da quelli di cui alla voce 01 04 07\"],\n[\"010411\",\"rifiuti della lavorazione di potassa e salgemma, diversi da quelli di cui alla voce 01 04 07\"],\n[\"010412\",\"sterili ed altri residui del lavaggio e della pulitura di minerali, diversi da quelli di cui alle voci 01 04 07 e 01 04 11\"],\n[\"010413\",\"rifiuti prodotti dal taglio e dalla segagione della pietra, diversi da quelli di cui alla voce 01 04 07\"],\n[\"010499\",\"rifiuti non specificati altrimenti\"],\n[\"010500\",\"fanghi di perforazione ed altri rifiuti di perforazione\"],\n[\"010504\",\"fanghi e rifiuti di perforazione di pozzi per acque dolci\"],\n[\"010505\",\"*fanghi e rifiuti di perforazione contenenti oli\"],\n[\"010506\",\"*fanghi di perforazione ed altri rifiuti di perforazione contenenti sostanze pericolose\"],\n[\"010507\",\"fanghi e rifiuti di perforazione contenenti barite, diversi da quelli delle voci 01 05 05 e 01 05 06\"],\n[\"010508\",\"fanghi e rifiuti di perforazione contenenti cloruri, diversi da quelli delle voci 01 05 05 e 01 05 06\"],\n[\"010599\",\"rifiuti non specificati altrimenti\"],\n[\"020000\",\"RIFIUTI PRODOTTI DA AGRICOLTURA, ORTICOLTURA, ACQUACOLTURA, SELVICOLTURA, CACCIA E PESCA, TRATTAMENTO E PREPARAZIONE DI ALIMENTI\"],\n[\"020100\",\"rifiuti prodotti da agricoltura, orticoltura, acquacoltura, selvicoltura, caccia e pesca\"],\n[\"020101\",\"fanghi da operazioni di lavaggio e pulizia\"],\n[\"020102\",\"scarti di tessuti animali\"],\n[\"020103\",\"scarti di tessuti vegetali\"],\n[\"020104\",\"rifiuti plastici (ad esclusione degli imballaggi)\"],\n[\"020105\",\"rifiuti agrochimici\"],\n[\"020106\",\"feci animali, urine e letame (comprese le lettiere usate), effluenti, raccolti separatamente e trattati fuori sito\"],\n[\"020107\",\"rifiuti della silvicoltura\"],\n[\"020108\",\"*rifiuti agrochimici contenenti sostanze pericolose\"],\n[\"020109\",\"rifiuti agrochimici diversi da quelli della voce 02 01 08\"],\n[\"020199\",\"rifiuti non specificati altrimenti\"],\n[\"020200\",\"rifiuti della preparazione e del trattamento di carne, pesce ed altri alimenti di origine animale\"],\n[\"020201\",\"fanghi da operazioni di lavaggio e pulizia\"],\n[\"020202\",\"scarti di tessuti animali\"],\n[\"020203\",\"scarti inutilizzabili per il consumo o la trasformazion\"],\n[\"020204\",\"fanghi prodotti dal trattamento in loco degli effluenti\"],\n[\"020299\",\"rifiuti non specificati altrimenti\"],\n[\"020300\",\"rifiuti della preparazione e del trattamento di frutta, verdura, cereali, oli alimentari, cacao, caffè, tè e tabacco; della produzione di conserve alimentari; della produzione di lievito ed estratto di lievito; della preparazione e fermentazione di melassa\"],\n[\"020301\",\"fanghi prodotti da operazioni di lavaggio, pulizia, sbucciatura, centrifugazione e separazione di componenti\"],\n[\"020302\",\"rifiuti legati all'impiego di conservanti\"],\n[\"020303\",\"rifiuti prodotti dall'estrazione tramite solvente\"],\n[\"020304\",\"scarti inutilizzabili per il consumo o la trasformazione\"],\n[\"020305\",\"fanghi prodotti dal trattamento in loco degli effluenti\"],\n[\"020399\",\"rifiuti non specificati altrimenti\"],\n[\"020400\",\"rifiuti prodotti dalla raffinazione dello zucchero\"],\n[\"020401\",\"terriccio residuo delle operazioni di pulizia e lavaggio delle barbabietole\"],\n[\"020402\",\"carbonato di calcio fuori specifica\"],\n[\"020403\",\"fanghi prodotti dal trattamento in loco degli effluenti\"],\n[\"020499\",\"rifiuti non specificati altrimenti\"],\n[\"020500\",\"rifiuti dell'industria lattiero-casearia\"],\n[\"020501\",\"scarti inutilizzabili per il consumo o la trasformazione\"],\n[\"020502\",\"fanghi prodotti dal trattamento in loco degli effluenti\"],\n[\"020599\",\"rifiuti non specificati altrimenti\"],\n[\"020600\",\"rifiuti dell'industria dolciaria e della panificazione\"],\n[\"020601\",\"scarti inutilizzabili per il consumo o la trasformazione\"],\n[\"020602\",\"rifiuti legati all'impiego di conservanti\"],\n[\"020603\",\"fanghi prodotti dal trattamento in loco degli effluenti\"],\n[\"020699\",\"rifiuti non specificati altrimenti\"],\n[\"020700\",\"rifiuti della produzione di bevande alcoliche ed analcoliche (tranne caffè, tè e cacao)\"],\n[\"020701\",\"rifiuti prodotti dalle operazioni di lavaggio, pulizia e macinazione della materia prima\"],\n[\"020702\",\"rifiuti prodotti dalla distillazione di bevande alcoliche\"],\n[\"020703\",\"rifiuti prodotti dai trattamenti chimici\"],\n[\"020704\",\"scarti inutilizzabili per il consumo o la trasformazione\"],\n[\"020705\",\"fanghi prodotti dal trattamento in loco degli effluenti\"],\n[\"020799\",\"rifiuti non specificati altrimenti\"],\n[\"030000\",\"RIFIUTI DELLA LAVORAZIONE DEL LEGNO E DELLA PRODUZIONE DI PANNELLI, MOBILI, POLPA, CARTA E CARTONE\"],\n[\"030100\",\"rifiuti della lavorazione del legno e della produzione di pannelli e mobili\"],\n[\"030101\",\"scarti di corteccia e sughero\"],\n[\"030104\",\"*segatura, trucioli, residui di taglio, legno, pannelli di truciolare e piallacci contenenti sostanze pericolose\"],\n[\"030105\",\"segatura, trucioli, residui di taglio, legno, pannelli di truciolare e piallacci diversi da quelli di cui alla voce 03 01 04\"],\n[\"030199\",\"rifiuti non specificati altrimenti\"],\n[\"030200 \",\"rifiuti dei trattamenti conservativi del legno\"],\n[\"030201\",\"*prodotti per i trattamenti conservativi del legno contenenti composti organici non alogenati\"],\n[\"030202\",\"*prodotti per i trattamenti conservativi del legno contenenti composti organici clorurati\"],\n[\"030203\",\"*prodotti per i trattamenti conservativi del legno contenenti composti organometallici\"],\n[\"030204\",\"*prodotti per i trattamenti conservativi del legno contenenti composti inorganici\"],\n[\"030205\",\"*altri prodotti per i trattamenti conservativi del legno contenenti sostanze pericolose\"],\n[\"030299\",\"prodotti per i trattamenti conservativi del legno non specificati altrimenti\"],\n[\"030300\",\"rifiuti della produzione e della lavorazione di polpa, carta e cartone\"],\n[\"030301\",\"scarti di corteccia e legno\"],\n[\"030302\",\"fanghi di recupero dei bagni di macerazione (green liquor)\"],\n[\"030305\",\"fanghi prodotti dai processi di disinchiostrazione nel riciclaggio della carta\"],\n[\"030307\",\"scarti della separazione meccanica nella produzione di polpa da rifiuti di carta e cartone\"],\n[\"030308\",\"scarti della selezione di carta e cartone destinati ad essere riciclati\"],\n[\"030309\",\"fanghi di scarto contenenti carbonato di calcio\"],\n[\"030310\",\"scarti di fibre e fanghi contenenti fibre, riempitivi e prodotti di rivestimento generati dai processi di separazione meccanica\"],\n[\"030311\",\"fanghi prodotti dal trattamento in loco degli effluenti, diversi da quelli di cui alla voce 03 03 10\"],\n[\"030399\",\"rifiuti non specificati altrimenti\"],\n[\"040000\",\"RIFIUTI DELLA LAVORAZIONE DI PELLI E PELLICCE, NONCHÉ DELL'INDUSTRIA TESSILE\"],\n[\"040100\",\"rifiuti della lavorazione di pelli e pellicce\"],\n[\"040101\",\"carniccio e frammenti di calce\"],\n[\"040102\",\"rifiuti di calcinazione\"],\n[\"040103\",\"*bagni di sgrassatura esauriti contenenti solventi senza fase liquida\"],\n[\"040104\",\"liquido di concia contenente cromo\"],\n[\"040105\",\"liquido di concia non contenente cromo\"],\n[\"040106\",\"fanghi, prodotti in particolare dal trattamento in loco degli effluenti, contenenti cromo\"],\n[\"040107\",\"fanghi, prodotti in particolare dal trattamento in loco degli effluenti, non contenenti cromo\"],\n[\"040108\",\"cuoio conciato (scarti, cascami, ritagli, polveri di lucidatura) contenenti cromo\"],\n[\"040109\",\"rifiuti delle operazioni di confezionamento e finitura\"],\n[\"040199\",\"rifiuti non specificati altrimenti\"],\n[\"010200 \",\"rifiuti dell'industria tessile\"],\n[\"040209\",\"rifiuti da materiali compositi (fibre impregnate, elastomeri, plastomeri)\"],\n[\"040210\",\"materiale organico proveniente da prodotti naturali (ad es. grasso, cera)\"],\n[\"040214\",\"*rifiuti provenienti da operazioni di finitura, contenenti solventi organici\"],\n[\"040215\",\"rifiuti da operazioni di finitura, diversi da quelli di cui alla voce 04 02 14\"],\n[\"040216\",\"*tinture e pigmenti, contenenti sostanze pericolose\"],\n[\"040217\",\"tinture e pigmenti, diversi da quelli di cui alla voce 04 02 16\"],\n[\"040219\",\"*fanghi prodotti dal trattamento in loco degli effluenti, contenenti sostanze pericolose\"],\n[\"040220\",\"fanghi prodotti dal trattamento in loco degli effluenti, diversi da quelli di cui alla voce 04 02 19\"],\n[\"040221\",\"rifiuti da fibre tessili grezze\"],\n[\"040222\",\"rifiuti da fibre tessili lavorate\"],\n[\"040299\",\"rifiuti non specificati altrimenti\"],\n[\"050000\",\"RIFIUTI DELLA RAFFINAZIONE DEL PETROLIO, PURIFICAZIONE DEL GAS NATURALE E TRATTAMENTO PIROLITICO DEL CARBONE\"],\n[\"050100\",\"rifiuti della raffinazione del petrolio\"],\n[\"050102\",\"*fanghi da processi di dissalazione\"],\n[\"050103\",\"*morchie depositate sul fondo dei serbatoi\"],\n[\"050104\",\"*fanghi acidi prodotti da processi di alchilazione\"],\n[\"050105\",\"*perdite di olio\"],\n[\"050106\",\"*fanghi oleosi prodotti dalla manutenzione di impianti e apparecchiature\"],\n[\"050107\",\"*catrami acidi\"],\n[\"050108\",\"*altri catrami\"],\n[\"050109\",\"*fanghi prodotti dal trattamento in loco degli effluenti, contenenti sostanze pericolose\"],\n[\"050110\",\"fanghi prodotti dal trattamento in loco degli effluenti, diversi da quelli di cui alla voce 05 01 09\"],\n[\"050111\",\"*rifiuti prodotti dalla purificazione di carburanti tramite basi\"],\n[\"050112\",\"*acidi contenenti oli\"],\n[\"050113\",\"fanghi residui dell'acqua di alimentazione delle caldaie\"],\n[\"050114\",\"rifiuti prodotti dalle torri di raffreddamento\"],\n[\"050115\",\"*filtri di argilla esauriti\"],\n[\"050116\",\"rifiuti contenenti zolfo prodotti dalla desolforizzazione del petrolio\"],\n[\"050117\",\"bitumi\"],\n[\"050199\",\"rifiuti non specificati altrimenti\"],\n[\"050600\",\"rifiuti prodotti dal trattamento pirolitico del carbone\"],\n[\"050601\",\"*catrami acidi\"],\n[\"050603\",\"*altri catrami\"],\n[\"050604\",\"rifiuti prodotti dalle torri di raffreddamento\"],\n[\"050699\",\"rifiuti non specificati altrimenti\"],\n[\"050700\",\"rifiuti prodotti dalla purificazione e dal trasporto di gas naturale\"],\n[\"050701\",\"*rifiuti contenenti mercurio\"],\n[\"050702\",\"rifiuti contenenti zolfo\"],\n[\"050799\",\"rifiuti non specificati altrimenti\"],\n[\"060000\",\"RIFIUTI DEI PROCESSI CHIMICI INORGANICI\"],\n[\"060100\",\"rifiuti della produzione, formulazione, fornitura ed uso di acidi\"],\n[\"060101\",\"*acido solforico ed acido solforoso\"],\n[\"060102\",\"*acido cloridrico\"],\n[\"060103\",\"*acido fluoridrico\"],\n[\"060104\",\"*acido fosforico e fosforoso\"],\n[\"060105\",\"*acido nitrico e acido nitroso\"],\n[\"060106\",\"*altri acidi\"],\n[\"060199\",\"rifiuti non specificati altrimenti\"],\n[\"060200\",\"rifiuti della produzione, formulazione, fornitura ed uso di basi\"],\n[\"060201\",\"*idrossido di calcio\"],\n[\"060203\",\"*idrossido di ammonio\"],\n[\"060204\",\"*idrossido di sodio e di potassio\"],\n[\"060205\",\"*altre basi\"],\n[\"060299\",\"rifiuti non specificati altrimenti\"],\n[\"060300\",\"rifiuti della produzione, formulazione, fornitura ed uso di sali, loro soluzioni e ossidi metallici\"],\n[\"060311\",\"*sali e loro soluzioni, contenenti cianuri\"],\n[\"060313\",\"*sali e loro soluzioni, contenenti metalli pesanti\"],\n[\"060314\",\"sali e loro soluzioni, diversi da quelli di cui alle voci 06 03 11 e 06 03 13\"],\n[\"060315\",\"*ossidi metallici contenenti metalli pesanti\"],\n[\"060316\",\"ossidi metallici, diversi da quelli di cui alla voce 06 03 15\"],\n[\"060399\",\"rifiuti non specificati altrimenti\"],\n[\"060400\",\"rifiuti contenenti metalli, diversi da quelli di cui alla voce 06 03\"],\n[\"060403\",\"*rifiuti contenenti arsenico\"],\n[\"060404\",\"*rifiuti contenenti mercurio\"],\n[\"060405\",\"*rifiuti contenenti altri metalli pesanti\"],\n[\"060499\",\"rifiuti non specificati altrimenti\"],\n[\"060500\",\"fanghi prodotti dal trattamento in loco degli effluenti\"],\n[\"060502\",\"*fanghi prodotti dal trattamento in loco degli effluenti, contenenti sostanze pericolose\"],\n[\"060503\",\"fanghi prodotti dal trattamento in loco degli effluenti, diversi da quelli di cui alla voce 06 05 02\"],\n[\"060600\",\"rifiuti della produzione, formulazione, fornitura ed uso di prodotti chimici contenenti zolfo, dei processi chimici dello zolfo e dei processi di desolforazione\"],\n[\"060602\",\"*rifiuti contenenti solfuri pericolosi\"],\n[\"060603\",\"rifiuti contenenti solfuri, diversi da quelli di cui alla voce 06 06 02\"],\n[\"060699\",\"rifiuti non specificati altrimenti\"],\n[\"060700\",\"rifiuti della produzione, formulazione, fornitura ed uso di prodotti alogeni e dei processi chimici degli alogeni\"],\n[\"060701\",\"*rifiuti dei processi elettrolitici, contenenti amianto\"],\n[\"060702\",\"*carbone attivato dalla produzione di cloro\"],\n[\"060703\",\"*fanghi di solfati di bario, contenenti mercurio\"],\n[\"060704\",\"*soluzioni ed acidi, ad es. acido di contatto\"],\n[\"060799\",\"rifiuti non specificati altrimenti\"],\n[\"060800\",\"rifiuti della produzione, formulazione, fornitura ed uso del silicio e dei suoi derivati\"],\n[\"060802\",\"*rifiuti contenenti clorosilano\"],\n[\"060899\",\"rifiuti non specificati altrimenti\"],\n[\"060900\",\"rifiuti della produzione, formulazione, fornitura ed uso di prodotti fosforosi e dei processi chimici del fosforo\"],\n[\"060902\",\"scorie fosforose\"],\n[\"060903\",\"*rifiuti prodotti da reazioni a base di calcio contenenti o contaminati da sostanze pericolose\"],\n[\"060904\",\"rifiuti prodotti da reazioni a base di calcio, diversi da quelli di cui alla voce 06 09 03\"],\n[\"060999\",\"rifiuti non specificati altrimenti\"],\n[\"061000\",\"rifiuti della produzione, formulazione, fornitura ed uso di prodotti chimici contenenti azoto, dei processi chimici dell'azoto e della produzione di fertilizzanti\"],\n[\"061002\",\"*rifiuti contenenti sostanze pericolose\"],\n[\"061099\",\"rifiuti non specificati altrimenti\"],\n[\"061100\",\"rifiuti dalla produzione di pigmenti inorganici ed opacificanti\"],\n[\"061101\",\"rifiuti prodotti da reazioni a base di calcio nella produzione di diossido di titanio\"],\n[\"061199\",\"rifiuti non specificati altrimenti\"],\n[\"061300\",\"rifiuti di processi chimici inorganici non specificati altrimenti\"],\n[\"061301\",\"*prodotti fitosanitari, agenti conservativi del legno ed altri biocidi inorganici\"],\n[\"061302\",\"*carbone attivato esaurito (tranne 06 07 02)\"],\n[\"061303\",\"nerofumo\"],\n[\"061304\",\"*rifiuti della lavorazione dell'amianto\"],\n[\"061305\",\"*fuliggine\"],\n[\"061399\",\"rifiuti non specificati altrimenti\"],\n[\"070000\",\"RIFIUTI DEI PROCESSI CHIMICI ORGANICI\"],\n[\"070100\",\"rifiuti della produzione, formulazione, fornitura ed uso di prodotti chimici organici di base\"],\n[\"070101\",\"*soluzioni acquose di lavaggio ed acque madri\"],\n[\"070103\",\"*solventi organici alogenati, soluzioni di lavaggio ed acque madri\"],\n[\"070104\",\"*altri solventi organici, soluzioni di lavaggio ed acque madri\"],\n[\"070107\",\"*fondi e residui di reazione, alogenati\"],\n[\"070108\",\"*altri fondi e residui di reazione\"],\n[\"070109\",\"*residui di filtrazione e assorbenti esauriti, alogenati\"],\n[\"070110\",\"*altri residui di filtrazione e assorbenti esauriti\"],\n[\"070111\",\"*fanghi prodotti dal trattamento in loco degli effluenti, contenenti sostanze pericolose\"],\n[\"070112\",\"fanghi prodotti dal trattamento in loco degli effluenti, diversi da quelli di cui alla voce 07 01 11\"],\n[\"070199\",\"rifiuti non specificati altrimenti\"],\n[\"070200\",\"rifiuti della produzione, formulazione, fornitura ed uso (PFFU) di plastiche, gomme sintetiche e fibre artificiali\"],\n[\"070201\",\"*soluzioni acquose di lavaggio ed acque madri\"],\n[\"070203\",\"*solventi organici alogenati, soluzioni di lavaggio ed acque madri\"],\n[\"070204\",\"*altri solventi organici, soluzioni di lavaggio ed acque madri\"],\n[\"070207\",\"*fondi e residui di reazione, alogenati\"],\n[\"070208\",\"*altri fondi e residui di reazione\"],\n[\"070209\",\"*residui di filtrazione e assorbenti esauriti, alogenati\"],\n[\"070210\",\"*altri residui di filtrazione e assorbenti esauriti\"],\n[\"070211\",\"*fanghi prodotti dal trattamento in loco degli effluenti, contenenti sostanze pericolose\"],\n[\"070212\",\"fanghi prodotti dal trattamento in loco degli effluenti, diversi da quelli di cui alla voce 07 02 11\"],\n[\"070213\",\"rifiuti plastici\"],\n[\"070214\",\"*rifiuti prodotti da additivi, contenenti sostanze pericolose\"],\n[\"070215\",\"rifiuti prodotti da additivi, diversi da quelli di cui alla voce 07 02 14\"],\n[\"070216\",\"*rifiuti contenenti silicone pericoloso\"],\n[\"070217\",\"rifiuti contenenti siliconi diversi da quelli di cui alla voce 07 02 16\"],\n[\"070299\",\"rifiuti non specificati altrimenti\"],\n[\"070300\",\"rifiuti della produzione, formulazione, fornitura ed uso di coloranti e pigmenti organici (tranne 06 11)\"],\n[\"070301\",\"*soluzioni acquose di lavaggio ed acque madri\"],\n[\"070303\",\"*solventi organici alogenati, soluzioni di lavaggio ed acque madri\"],\n[\"070304\",\"*altri solventi organici, soluzioni di lavaggio ed acque madri\"],\n[\"070307\",\"*fondi e residui di reazione alogenati\"],\n[\"070308\",\"*altri fondi e residui di reazione\"],\n[\"070309\",\"*residui di filtrazione e assorbenti esauriti alogenati\"],\n[\"070310\",\"*altri residui di filtrazione e assorbenti esauriti\"],\n[\"070311\",\"*fanghi prodotti dal trattamento in loco degli effluenti, contenenti sostanze pericolose\"],\n[\"070312\",\"fanghi prodotti dal trattamento in loco degli effluenti, diversi da quelli di cui alla voce 07 03 11\"],\n[\"070399\",\"rifiuti non specificati altrimenti\"],\n[\"070400\",\"rifiuti della produzione, formulazione, fornitura ed uso di prodotti fitosanitari (tranne 02 01 08 e 02 01 09),agenti conservativi del legno (tranne 03 02) ed altri biocidi organici\"],\n[\"070401\",\"*soluzioni acquose di lavaggio ed acque madri\"],\n[\"070403\",\"*solventi organici alogenati, soluzioni di lavaggio ed acque madri\"],\n[\"070404\",\"*altri solventi organici, soluzioni di lavaggio ed acque madri\"],\n[\"070407\",\"*fondi e residui di reazione alogenati\"],\n[\"070408\",\"*altri fondi e residui di reazione\"],\n[\"070409\",\"*residui di filtrazione e assorbenti esauriti alogenati\"],\n[\"070410\",\"*altri residui di filtrazione e assorbenti esauriti\"],\n[\"070411\",\"*fanghi prodotti dal trattamento in loco degli effluenti, contenenti sostanze pericolose\"],\n[\"070412\",\"fanghi prodotti dal trattamento in loco degli effluenti, diversi da quelli di cui alla voce 07 04 11\"],\n[\"070413\",\"*rifiuti solidi contenenti sostanze pericolose\"],\n[\"070499\",\"rifiuti non specificati altrimenti\"],\n[\"070500\",\"rifiuti della produzione, formulazione, fornitura ed uso di prodotti farmaceutici\"],\n[\"070501\",\"*soluzioni acquose di lavaggio ed acque madri\"],\n[\"070503\",\"*solventi organici alogenati, soluzioni di lavaggio ed acque madri\"],\n[\"070504\",\"*altri solventi organici, soluzioni di lavaggio ed acque madri\"],\n[\"070507\",\"*fondi e residui di reazione, alogenati\"],\n[\"070508\",\"*altri fondi e residui di reazione\"],\n[\"070509\",\"*residui di filtrazione e assorbenti esauriti, alogenati\"],\n[\"070510\",\"*altri residui di filtrazione e assorbenti esauriti\"],\n[\"070511\",\"*fanghi prodotti dal trattamento in loco degli effluenti, contenenti sostanze pericolose\"],\n[\"070512\",\"fanghi prodotti dal trattamento in loco degli effluenti, diversi da quelli di cui alla voce 07 05 11\"],\n[\"070513\",\"*rifiuti solidi contenenti sostanze pericolose\"],\n[\"070514\",\"rifiuti solidi, diversi da quelli di cui alla voce 07 05 13\"],\n[\"070599\",\"rifiuti non specificati altrimenti\"],\n[\"070600\",\"rifiuti della produzione, formulazione, fornitura ed uso di grassi, lubrificanti, saponi, detergenti, disinfettanti e cosmetici\"],\n[\"070601\",\"*soluzioni acquose di lavaggio ed acque madri\"],\n[\"070603\",\"*solventi organici alogenati, soluzioni di lavaggio ed acque madri\"],\n[\"070604\",\"*altri solventi organici, soluzioni di lavaggio ed acque madri\"],\n[\"070607\",\"*fondi e residui di reazione, alogenati\"],\n[\"070608\",\"*altri fondi e residui di reazione\"],\n[\"070609\",\"*residui di filtrazione e assorbenti esauriti, alogenati\"],\n[\"070610\",\"*altri residui di filtrazione e assorbenti esauriti\"],\n[\"070611\",\"*fanghi prodotti dal trattamento in loco degli effluenti, contenenti sostanze pericolose\"],\n[\"070612\",\"fanghi prodotti dal trattamento in loco degli effluenti, diversi da quelli di cui alla voce 07 06 11\"],\n[\"070699\",\"rifiuti non specificati altrimenti\"],\n[\"070700\",\"rifiuti della produzione, formulazione, fornitura ed uso di prodotti della chimica fine e di prodotti chimici non specificati altrimenti\"],\n[\"070701\",\"*soluzioni acquose di lavaggio ed acque madri\"],\n[\"070703\",\"*solventi organici alogenati, soluzioni di lavaggio ed acque madri\"],\n[\"070704\",\"*altri solventi organici, soluzioni di lavaggio ed acque madri\"],\n[\"070707\",\"*residui di distillazione e residui di reazione, alogenati\"],\n[\"070708\",\"*altri residui di distillazione e residui di reazione\"],\n[\"070709\",\"*residui di filtrazione e assorbenti esauriti, alogenati\"],\n[\"070710\",\"*altri residui di filtrazione e assorbenti esauriti\"],\n[\"070711\",\"*fanghi prodotti dal trattamento in loco degli effluenti, contenenti sostanze pericolose\"],\n[\"070712\",\"fanghi prodotti dal trattamento in loco degli effluenti, diversi da quelli di cui alla voce 07 07 11\"],\n[\"070799\",\"rifiuti non specificati altrimenti\"],\n[\"080000\",\"RIFIUTI DELLA PRODUZIONE, FORMULAZIONE, FORNITURA ED USO DI RIVESTIMENTI (PITTURE, VERNICI E SMALTI VETRATI), ADESIVI, SIGILLANTI E INCHIOSTRI PER STAMPA\"],\n[\"080100\",\"rifiuti della produzione, formulazione, fornitura ed uso e della rimozione di pitture e vernici\"],\n[\"080111\",\"*pitture e vernici di scarto, contenenti solventi organici o altre sostanze pericolose\"],\n[\"080112\",\"pitture e vernici di scarto, diverse da quelle di cui alla voce 08 01 11\"],\n[\"080113\",\"*fanghi prodotti da pitture e vernici, contenenti solventi organici o altre sostanze pericolose\"],\n[\"080114\",\"fanghi prodotti da pitture e vernici, diversi da quelli di cui alla voce 08 01 13\"],\n[\"080115\",\"*fanghi acquosi contenenti pitture e vernici, contenenti solventi organici o altre sostanze pericolose\"],\n[\"080116\",\"fanghi acquosi contenenti pitture e vernici, diversi da quelli di cui alla voce 08 01 15\"],\n[\"080117\",\"*fanghi prodotti dalla rimozione di pitture e vernici, contenenti solventi organici o altre sostanze pericolose\"],\n[\"080118\",\"fanghi prodotti dalla rimozione di pitture e vernici, diversi da quelli di cui alla voce 08 01 17\"],\n[\"080119\",\"*sospensioni acquose contenenti pitture e vernici, contenenti solventi organici o altre sostanze pericolose\"],\n[\"080120\",\"sospensioni acquose contenenti pitture e vernici, diverse da quelle di cui alla voce 08 01 19\"],\n[\"080121\",\"*residui di vernici o di sverniciatori\"],\n[\"080199\",\"rifiuti non specificati altrimenti\"],\n[\"080200\",\"rifiuti della produzione, formulazione, fornitura ed uso di altri rivestimenti (inclusi materiali ceramici)\"],\n[\"080201\",\"polveri di scarto di rivestimenti\"],\n[\"080202\",\"fanghi acquosi contenenti materiali ceramici\"],\n[\"080203\",\"sospensioni acquose contenenti materiali ceramici\"],\n[\"080299\",\"rifiuti non specificati altrimenti\"],\n[\"080300\",\"rifiuti della produzione, formulazione, fornitura ed uso di inchiostri per stampa\"],\n[\"080307\",\"fanghi acquosi contenenti inchiostro\"],\n[\"080308\",\"rifiuti liquidi acquosi contenenti inchiostro\"],\n[\"080312\",\"*scarti di inchiostro, contenenti sostanze pericolose\"],\n[\"080313\",\"scarti di inchiostro, diversi da quelli di cui alla voce 08 03 12\"],\n[\"080314\",\"*fanghi di inchiostro, contenenti sostanze pericolose\"],\n[\"080315\",\"fanghi di inchiostro, diversi da quelli di cui alla voce 08 03 14\"],\n[\"080316\",\"*residui di soluzioni chimiche per incisione\"],\n[\"080317\",\"*toner per stampa esauriti, contenenti sostanze pericolose\"],\n[\"080318\",\"toner per stampa esauriti, diversi da quelli di cui alla voce 08 03 17\"],\n[\"080319\",\"*oli dispersi\"],\n[\"080399\",\"rifiuti non specificati altrimenti\"],\n[\"080400\",\"rifiuti della produzione, formulazione, fornitura ed uso di adesivi e sigillanti (inclusi i prodotti impermeabilizzanti)\"],\n[\"080409\",\"*adesivi e sigillanti di scarto, contenenti solventi organici o altre sostanze pericolose\"],\n[\"080410\",\"adesivi e sigillanti di scarto, diversi da quelli di cui alla voce 08 04 09\"],\n[\"080411\",\"*fanghi di adesivi e sigillanti, contenenti solventi organici o altre sostanze pericolose\"],\n[\"080412\",\"fanghi di adesivi e sigillanti, diversi da quelli di cui alla voce 08 04 11\"],\n[\"080413\",\"*fanghi acquosi contenenti adesivi e sigillanti, contenenti solventi organici o altre sostanze pericolose\"],\n[\"080414\",\"fanghi acquosi contenenti adesivi e sigillanti, diversi da quelli di cui alla voce 08 04 13\"],\n[\"080415\",\"*rifiuti liquidi acquosi contenenti adesivi e sigillanti, contenenti solventi organici o altre sostanze pericolose\"],\n[\"080416\",\"rifiuti liquidi acquosi contenenti adesivi e sigillanti, diversi da quelli di cui alla voce 08 04 15\"],\n[\"080417\",\"*olio di resina\"],\n[\"080499\",\"rifiuti non specificati altrimenti\"],\n[\"080500\",\"rifiuti non specificati altrimenti alla voce 08\"],\n[\"080501\",\"*isocianati di scarto\"],\n[\"090000\",\"RIFIUTI DELL'INDUSTRIA FOTOGRAFICA\"],\n[\"090100\",\"rifiuti dell'industria fotografica\"],\n[\"090101\",\"*soluzioni di sviluppo e attivanti a base acquosa\"],\n[\"090102\",\"*soluzioni di sviluppo per lastre offset a base acquosa\"],\n[\"090103\",\"*soluzioni di sviluppo a base di solventi\"],\n[\"090104\",\"*soluzioni fissative\"],\n[\"090105\",\"*soluzioni di lavaggio e soluzioni di arresto-fissaggio\"],\n[\"090106\",\"*rifiuti contenenti argento prodotti dal trattamento in loco di rifiuti fotografici\"],\n[\"090107\",\"carta e pellicole per fotografia, contenenti argento o composti dell'argento\"],\n[\"090108\",\"carta e pellicole per fotografia, non contenenti argento o composti dell'argento\"],\n[\"090110\",\"macchine fotografiche monouso senza batterie\"],\n[\"090111\",\"*macchine fotografiche monouso contenenti batterie incluse nelle voci 16 06 01, 16 06 02 o 16 06 03\"],\n[\"090112\",\"macchine fotografiche monouso diverse da quelle di cui alla voce 09 01 11\"],\n[\"090113\",\"*rifiuti liquidi acquosi prodotti dal recupero in loco dell'argento, diversi da quelli di cui alla voce 09 01 06\"],\n[\"090199\",\"rifiuti non specificati altrimenti\"],\n[\"100000\",\"RIFIUTI PRODOTTI DA PROCESSI TERMICI\"],\n[\"100100\",\"rifiuti prodotti da centrali termiche ed altri impianti termici (tranne 19)\"],\n[\"100101\",\" ceneri pesanti, scorie e polveri di caldaia (tranne le polveri di caldaia di cui alla voce 10 01 04)\"],\n[\"100102\",\"ceneri leggere di carbone\"],\n[\"100103\",\"ceneri leggere di torba e di legno non trattato\"],\n[\"100104\",\"*ceneri leggere di olio combustibile e polveri di caldaia\"],\n[\"100105\",\"rifiuti solidi prodotti da reazioni a base di calcio nei processi di desolforazione dei fumi\"],\n[\"100107\",\"rifiuti fangosi prodotti da reazioni a base di calcio nei processi di desolforazione dei fumi\"],\n[\"100109\",\"*acido solforico\"],\n[\"100113\",\"*ceneri leggere prodotte da idrocarburi emulsionati usati come carburante\"],\n[\"100114\",\"*ceneri pesanti, scorie e polveri di caldaia prodotte dal coincenerimento, contenenti sostanze pericolose\"],\n[\"100115\",\" ceneri pesanti, scorie e polveri di caldaia prodotte dal coincenerimento, diverse da quelli di cui alla voce 10 01 14\"],\n[\"100116\",\"*ceneri leggere prodotte dal coincenerimento, contenenti sostanze pericolose\"],\n[\"100117\",\"ceneri leggere prodotte dal coincenerimento, diverse da quelle di cui alla voce 10 01 16\"],\n[\"100118\",\"*rifiuti prodotti dalla depurazione dei fumi, contenenti sostanze pericolose\"],\n[\"100119\",\"rifiuti prodotti dalla depurazione dei fumi, diversi da quelli di cui alle voci 10 01 05, 10 01 07 e 10 01 18\"],\n[\"100120\",\"*fanghi prodotti dal trattamento in loco degli effluenti, contenenti sostanze pericolose\"],\n[\"100121\",\"fanghi prodotti dal trattamento in loco degli effluenti, diversi da quelli di cui alla voce 10 01 20\"],\n[\"100122\",\"*fanghi acquosi da operazioni di pulizia caldaie, contenenti sostanze pericolose\"],\n[\"100123\",\"fanghi acquosi da operazioni di pulizia caldaie, diversi da quelli di cui alla voce 10 01 22\"],\n[\"100124\",\"sabbie dei reattori a letto fluidizzato\"],\n[\"100125\",\"rifiuti dell'immagazzinamento e della preparazione del combustibile delle centrali termoelettriche a carbone\"],\n[\"100126\",\"rifiuti prodotti dal trattamento delle acque di raffreddamento\"],\n[\"100199\",\"rifiuti non specificati altrimenti\"],\n[\"100200\",\"rifiuti dell'industria siderurgica\"],\n[\"100201\",\"rifiuti del trattamento delle scorie\"],\n[\"100202\",\"scorie non trattate\"],\n[\"100207\",\"*rifiuti solidi prodotti dal trattamento dei fumi, contenenti sostanze pericolose\"],\n[\"100208\",\"rifiuti prodotti dal trattamento dei fumi, diversi da quelli di cui alla voce 10 02 07\"],\n[\"100210\",\"scaglie di laminazione\"],\n[\"100211\",\"*rifiuti prodotti dal trattamento delle acque di raffreddamento, contenti oli\"],\n[\"100212\",\"rifiuti prodotti dal trattamento delle acque di raffreddamento, diversi da quelli di cui alla voce 10 02 11\"],\n[\"100213\",\"*fanghi e residui di filtrazione prodotti dal trattamento dei fumi, contenenti sostanze pericolose\"],\n[\"100214\",\"fanghi e residui di filtrazione prodotti dal trattamento dei fumi, diversi da quelli di cui alla voce 10 02 13\"],\n[\"100215\",\"altri fanghi e residui di filtrazione\"],\n[\"100299\",\"rifiuti non specificati altrimenti\"],\n[\"100300\",\"rifiuti della metallurgia termica dell'alluminio\"],\n[\"100302\",\"frammenti di anodi\"],\n[\"100304\",\"*scorie della produzione primaria\"],\n[\"100305\",\"rifiuti di allumina\"],\n[\"100308\",\"*scorie saline della produzione secondaria\"],\n[\"100309\",\"*scorie nere della produzione secondaria\"],\n[\"100315\",\"*schiumature infiammabili o che rilasciano, al contatto con l'acqua, gas infiammabili in quantità pericolose\"],\n[\"100316\",\"schiumature diverse da quelle di cui alla voce 10 03 15\"],\n[\"100317\",\"*rifiuti contenenti catrame della produzione degli anodi\"],\n[\"100318\",\"rifiuti contenenti carbone della produzione degli anodi, diversi da quelli di cui alla voce 10 03 17\"],\n[\"100319\",\"*polveri dei gas di combustione, contenenti sostanze pericolose\"],\n[\"100320\",\"polveri dei gas di combustione, diverse da quelle di cui alla voce 10 03 19\"],\n[\"100321\",\"*altre polveri e particolati (comprese quelle prodotte da mulini a palle), contenenti sostanze pericolose\"],\n[\"100322\",\"altre polveri e particolati (comprese quelle prodotte da mulini a palle), diverse da quelle di cui alla voce 10 03 21\"],\n[\"100323\",\"*rifiuti solidi prodotti dal trattamento dei fumi, contenenti sostanze pericolose\"],\n[\"100324\",\"rifiuti prodotti dal trattamento dei fumi, diversi da quelli di cui alla voce 10 03 23\"],\n[\"100325\",\"*fanghi e residui di filtrazione prodotti dal trattamento dei fumi, contenenti sostanze pericolose\"],\n[\"100326\",\"fanghi e residui di filtrazione prodotti dal trattamento dei fumi, diversi da quelli di cui alla voce 10 03 25\"],\n[\"100327\",\"*rifiuti prodotti dal trattamento delle acque di raffreddamento, contenenti oli\"],\n[\"100328\",\"rifiuti prodotti dal trattamento delle acque di raffreddamento, diversi da quelli di cui alla voce 10 03 27\"],\n[\"100329\",\"*rifiuti prodotti dal trattamento di scorie saline e scorie nere, contenenti sostanze pericolose\"],\n[\"100330\",\"rifiuti prodotti dal trattamento di scorie saline e scorie nere, diversi da quelli di cui alla voce 10 03 29\"],\n[\"100399\",\"rifiuti non specificati altrimenti\"],\n[\"100400\",\"rifiuti della metallurgia termica del piombo\"],\n[\"100401\",\"*scorie della produzione primaria e secondaria\"],\n[\"100402\",\"*scorie e schiumature della produzione primaria e secondaria\"],\n[\"100403\",\"*arsenato di calcio\"],\n[\"100404\",\"*polveri dei gas di combustione\"],\n[\"100405\",\"*altre polveri e particolato\"],\n[\"100406\",\"*rifiuti solidi prodotti dal trattamento dei fumi\"],\n[\"100407\",\"*fanghi e residui di filtrazione prodotti dal trattamento dei fumi\"],\n[\"100409\",\"*rifiuti prodotti dal trattamento delle acque di raffreddamento, contenenti oli\"],\n[\"100410\",\"rifiuti prodotti dal trattamento delle acque di raffreddamento, diversi da quelli di cui alla voce 10 04 09\"],\n[\"100499\",\"rifiuti non specificati altrimenti\"],\n[\"100500\",\"rifiuti della metallurgia termica dello zinco\"],\n[\"100501\",\"scorie della produzione primaria e secondaria\"],\n[\"100503\",\"*polveri dei gas di combustione\"],\n[\"100504\",\"altre polveri e particolato\"],\n[\"100505\",\"*rifiuti solidi prodotti dal trattamento dei fumi\"],\n[\"100506\",\"*fanghi e residui di filtrazione prodotti dal trattamento dei fumi\"],\n[\"100508\",\"*rifiuti prodotti dal trattamento delle acque di raffreddamento, contenenti oli\"],\n[\"100509\",\"rifiuti prodotti dal trattamento delle acque di raffreddamento, diversi da quelli di cui alla voce 10 05 08\"],\n[\"100510\",\"*scorie e schiumature infiammabili o che rilasciano, al contatto con l'acqua, gas infiammabili in quantità pericolose\"],\n[\"100511\",\"scorie e schiumature diverse da quelle di cui alla voce 10 05 10\"],\n[\"100599\",\"rifiuti non specificati altrimenti\"],\n[\"100600\",\"rifiuti della metallurgia termica del rame\"],\n[\"100601\",\"scorie della produzione primaria e secondaria\"],\n[\"100602\",\"Scorie e schiumature della produzione primaria e secondaria\"],\n[\"100603\",\"*polveri dei gas di combustione\"],\n[\"100604\",\"altre polveri e particolato\"],\n[\"100606\",\"*rifiuti solidi prodotti dal trattamento dei fumi\"],\n[\"100607\",\"*fanghi e residui di filtrazione prodotti dal trattamento dei fumi\"],\n[\"100609\",\"*rifiuti prodotti dal trattamento delle acque di raffreddamento, contenenti oli\"],\n[\"100610\",\"rifiuti prodotti dal trattamento delle acque di raffreddamento, diversi da quelli di cui alla voce 10 06 09\"],\n[\"100699\",\"rifiuti non specificati altrimenti\"],\n[\"100700\",\"rifiuti della metallurgia termica di argento, oro e platino\"],\n[\"100701\",\"scorie della produzione primaria e secondaria\"],\n[\"100702\",\"scorie e schiumature della produzione primaria e secondaria\"],\n[\"100703\",\"rifiuti solidi prodotti dal trattamento dei fumi\"],\n[\"100704\",\"altre polveri e particolato\"],\n[\"100705\",\"fanghi e residui di filtrazione prodotti dal trattamento dei fumi\"],\n[\"100707\",\"*rifiuti prodotti dal trattamento delle acque di raffreddamento, contenenti oli\"],\n[\"100708\",\"rifiuti prodotti dal trattamento delle acque di raffreddamento, diversi da quelli di cui alla voce 10 07 07\"],\n[\"100799\",\"rifiuti non specificati altrimenti\"],\n[\"100800\",\"rifiuti della metallurgia termica di altri minerali non ferrosi\"],\n[\"100804\",\"polveri e particolato\"],\n[\"100808\",\"*scorie salate della produzione primaria e secondaria\"],\n[\"100809\",\"altre scorie\"],\n[\"100810\",\"*scorie e schiumature infiammabili o che rilasciano, al contatto con l'acqua, gas infiammabili in quantità pericolose\"],\n[\"100811\",\"impurità e schiumature diverse da quelle di cui alla voce 10 08 10\"],\n[\"100812\",\"*rifiuti contenenti catrame derivante dalla produzione degli anodi\"],\n[\"100813\",\"rifiuti contenenti carbonio derivanti dalla produzione di anodi, diversi da quelli di cui alla voce 10 08 12\"],\n[\"100814\",\"frammenti di anodi\"],\n[\"100815\",\"*polveri dei gas di combustione, contenenti sostanze pericolose\"],\n[\"100816\",\"polveri dei gas di combustione, diverse da quelle di cui alla voce 10 08 15\"],\n[\"100817\",\"*fanghi e residui di filtrazione prodotti dal trattamento dei fumi, contenenti sostanze pericolose\"],\n[\"100818\",\"fanghi e residui di filtrazione prodotti dal trattamento dei fumi, diversi da quelli di cui alla voce 10 08 17\"],\n[\"100819\",\"*rifiuti prodotti dal trattamento delle acque di raffreddamento, contenenti oli\"],\n[\"100820\",\"rifiuti prodotti dal trattamento delle acque di raffreddamento, diversi da quelli di cui alla voce 10 08 19\"],\n[\"100899\",\"rifiuti non specificati altrimenti\"],\n[\"100900\",\"rifiuti della fusione di materiali ferrosi\"],\n[\"100903\",\"scorie di fusione\"],\n[\"100905\",\"*forme e anime da fonderia non utilizzate, contenenti sostanze pericolose\"],\n[\"100906\",\"forme e anime da fonderia non utilizzate, diverse da quelle di cui alla voce 10 09 05\"],\n[\"100907\",\"*forme e anime da fonderia utilizzate, contenenti sostanze pericolose\"],\n[\"100908\",\"forme e anime da fonderia utilizzate, diverse da quelle di cui alla voce 10 09 07\"],\n[\"100909\",\"*polveri dei gas di combustione contenenti sostanze pericolose\"],\n[\"100910\",\"polveri dei gas di combustione diverse da quelle di cui alla voce 10 09 09\"],\n[\"100911\",\"*altri particolati contenenti sostanze pericolose\"],\n[\"100912\",\"altri particolati diversi da quelli di cui alla voce 10 09 11\"],\n[\"100913\",\"*scarti di leganti contenenti sostanze pericolose\"],\n[\"100914\",\"scarti di leganti diversi da quelli di cui alla voce 10 09 13\"],\n[\"100915\",\"*scarti di prodotti rilevatori di crepe, contenenti sostanze pericolose\"],\n[\"100916\",\"scarti di prodotti rilevatori di crepe, diversi da quelli di cui alla voce 10 09 15\"],\n[\"100999\",\"rifiuti non specificati altrimenti\"],\n[\"101000\",\"rifiuti della fusione di materiali non ferrosi\"],\n[\"101003\",\"scorie di fusione\"],\n[\"101005\",\"*forme e anime da fonderia non utilizzate, contenenti sostanze pericolose\"],\n[\"101006\",\"forme e anime da fonderia non utilizzate, diverse da quelle di cui alla voce 10 10 05\"],\n[\"101007\",\"*forme e anime da fonderia utilizzate, contenenti sostanze pericolose\"],\n[\"101008\",\"forme e anime da fonderia utilizzate, diverse da quelle di cui alla voce 10 10 07\"],\n[\"101009\",\"*polveri dei gas di combustione, contenenti sostanze pericolose\"],\n[\"101010\",\"polveri dei gas di combustione, diverse da quelle di cui alla voce 10 10 09\"],\n[\"101011\",\"*altri particolati contenenti sostanze pericolose\"],\n[\"101012\",\"altri particolati diversi da quelli di cui alla voce 10 10 11\"],\n[\"101013\",\"*scarti di leganti contenenti sostanze pericolose\"],\n[\"101014\",\"scarti di leganti diversi da quelli di cui alla voce 10 10 13\"],\n[\"101015\",\"*scarti di prodotti rilevatori di crepe, contenenti sostanze pericolose\"],\n[\"101016\",\"scarti di prodotti rilevatori di crepe, diversi da quelli di cui alla voce 10 10 15\"],\n[\"101099\",\"rifiuti non specificati altrimenti\"],\n[\"101100\",\"rifiuti della fabbricazione del vetro e di prodotti di vetro\"],\n[\"101103\",\"scarti di materiali in fibra a base di vetro\"],\n[\"101105\",\"polveri e particolato\"],\n[\"101109\",\"*residui di miscela di preparazione non sottoposti a trattamento termico, contenenti sostanze pericolose\"],\n[\"101110\",\"residui di miscela di preparazione non sottoposti a trattamento termico, diverse da quelle di cui alla voce 10 11 09\"],\n[\"101111\",\"*rifiuti di vetro in forma di particolato e polveri di vetro contenenti metalli pesanti (provenienti ad es. da tubi a raggi catodici)\"],\n[\"101112\",\"rifiuti di vetro diversi da quelli di cui alla voce 10 11 11\"],\n[\"101113\",\"*fanghi provenienti dalla lucidatura e dalla macinazione del vetro, contenenti sostanze pericolose\"],\n[\"101114\",\"fanghi provenienti dalla lucidatura e dalla macinazione del vetro, diversi da quelli di cui alla voce 10 11 13\"],\n[\"101115\",\"*rifiuti solidi prodotti dal trattamento dei fumi, contenenti sostanze pericolose\"],\n[\"101116\",\"rifiuti prodotti dal trattamento dei fumi, diversi da quelli di cui alla voce 10 11 15\"],\n[\"101117\",\"*fanghi e residui di filtrazione prodotti dal trattamento dei fumi, contenenti sostanze pericolose\"],\n[\"101118\",\"fanghi e residui di filtrazione prodotti dal trattamento dei fumi, diversi da quelli di cui alla voce 10 11 17\"],\n[\"101119\",\"*rifiuti solidi prodotti dal trattamento in loco degli effluenti, contenenti sostanze pericolose\"],\n[\"101120\",\"rifiuti solidi prodotti dal trattamento in loco degli effluenti, diversi da quelli di cui alla voce 10 11 19\"],\n[\"101199\",\"rifiuti non specificati altrimenti\"],\n[\"101200\",\"rifiuti della fabbricazione di prodotti di ceramica, mattoni, mattonelle e materiali da costruzione\"],\n[\"101201\",\"residui di miscela di preparazione non sottoposti a trattamento termico\"],\n[\"101203\",\"polveri e particolato\"],\n[\"101205\",\"fanghi e residui di filtrazione prodotti dal trattamento dei fumi\"],\n[\"101206\",\"stampi di scarto\"],\n[\"101208\",\"scarti di ceramica, mattoni, mattonelle e materiali da costruzione (sottoposti a trattamento termico)\"],\n[\"101209\",\"*rifiuti solidi prodotti dal trattamento dei fumi, contenenti sostanze pericolose\"],\n[\"101210\",\"rifiuti solidi prodotti dal trattamento dei fumi, diversi da quelli di cui alla voce 10 12 09\"],\n[\"101211\",\"*rifiuti delle operazioni di smaltatura, contenenti metalli pesanti\"],\n[\"101212\",\"rifiuti delle operazioni di smaltatura diversi da quelli di cui alla voce 10 12 11\"],\n[\"101213\",\"fanghi prodotti dal trattamento in loco degli effluenti\"],\n[\"101299\",\"rifiuti non specificati altrimenti\"],\n[\"101300\",\"rifiuti della fabbricazione di cemento, calce e gesso e manufatti di tali materiali\"],\n[\"101301\",\"residui di miscela di preparazione non sottoposti a trattamento termico\"],\n[\"101304\",\"rifiuti di calcinazione e di idratazione della calce\"],\n[\"101306\",\"polveri e particolato (eccetto quelli delle voci 10 13 12 e 10 13 13)\"],\n[\"101307\",\"fanghi e residui di filtrazione prodotti dal trattamento dei fumi\"],\n[\"101309\",\"*rifiuti della fabbricazione di amianto cemento, contenenti amianto\"],\n[\"101310\",\"rifiuti della fabbricazione di amianto cemento, diversi da quelli di cui alla voce 10 13 09\"],\n[\"101311\",\"rifiuti della produzione di materiali compositi a base di cemento, diversi da quelli di cui alle voci 10 13 09 e 10 13 10\"],\n[\"101312\",\"*rifiuti solidi prodotti dal trattamento dei fumi, contenenti sostanze pericolose\"],\n[\"101313\",\"rifiuti solidi prodotti dal trattamento dei fumi, diversi da quelli di cui alla voce 10 13 12\"],\n[\"101314\",\"rifiuti e fanghi di cemento\"],\n[\"101399\",\"rifiuti non specificati altrimenti\"],\n[\"101400\",\"rifiuti prodotti dai forni crematori\"],\n[\"101401\",\"*rifiuti prodotti dalla depurazione dei fumi, contenenti mercurio\"],\n[\"110000\",\"RIFIUTI PRODOTTI DAL TRATTAMENTO CHIMICO SUPERFICIALE E DAL RIVESTIMENTO DI METALLI ED ALTRI MATERIALI; IDROMETALLURGIA NON FERROSA\"],\n[\"110100\",\"rifiuti prodotti dal trattamento e ricopertura di metalli (ad esempio, processi galvanici, zincatura, decapaggio, pulitura elettrolitica, fosfatazione, sgrassaggio con alcali, anodizzazione)\"],\n[\"110105\",\"*acidi di decappaggio\"],\n[\"110106\",\"*acidi non specificati altrimenti\"],\n[\"110107\",\"*basi di decappaggio\"],\n[\"110108\",\"*fanghi di fosfatazione\"],\n[\"110109\",\"*fanghi e residui di filtrazione, contenenti sostanze pericolose\"],\n[\"110110\",\"fanghi e residui di filtrazione, diversi da quelli di cui alla voce 11 01 09\"],\n[\"110111\",\"*soluzioni acquose di lavaggio, contenenti sostanze pericolose\"],\n[\"110112\",\"soluzioni acquose di lavaggio, diverse da quelle di cui alla voce 11 01 11\"],\n[\"110113\",\"*rifiuti di sgrassaggio contenenti sostanze pericolose\"],\n[\"110114\",\"rifiuti di sgrassaggio diversi da quelli di cui alla voce 11 01 13\"],\n[\"110115\",\"*eluati e fanghi di sistemi a membrana e sistemi a scambio ionico, contenenti sostanze pericolose\"],\n[\"110116\",\"*resine a scambio ionico saturate o esaurite\"],\n[\"110198\",\"*altri rifiuti contenenti sostanze pericolose\"],\n[\"110199\",\"rifiuti non specificati altrimenti\"],\n[\"110200\",\"rifiuti prodotti dalla lavorazione idrometallurgica di metalli non ferrosi\"],\n[\"110202\",\"*rifiuti della lavorazione idrometallurgica dello zinco (compresi jarosite, goethite)\"],\n[\"110203\",\"rifiuti della produzione di anodi per processi elettrolitici acquosi\"],\n[\"110205\",\"*rifiuti della lavorazione idrometallurgica del rame, contenenti sostanze pericolose\"],\n[\"110206\",\"rifiuti della lavorazione idrometallurgica del rame, diversi da quelli della voce 11 02 05\"],\n[\"110207\",\"*altri rifiuti contenenti sostanze pericolose\"],\n[\"110299\",\"rifiuti non specificati altrimenti\"],\n[\"110300\",\"rifiuti solidi e fanghi prodotti da processi di rinvenimento\"],\n[\"110301\",\"*rifiuti contenenti cianuro\"],\n[\"110302\",\"*altri rifiuti\"],\n[\"110500\",\"rifiuti prodotti da processi di galvanizzazione a caldo\"],\n[\"110501\",\"zinco solido\"],\n[\"110502\",\"ceneri di zinco\"],\n[\"110503\",\"*rifiuti solidi prodotti dal trattamento dei fumi\"],\n[\"110504\",\"*fondente esaurito\"],\n[\"110599\",\"rifiuti non specificati altrimenti\"],\n[\"120000\",\"RIFIUTI PRODOTTI DALLA LAVORAZIONE E DAL TRATTAMENTO FISICO E MECCANICO SUPERFICIALE DI METALLI E PLASTICA\"],\n[\"120100\",\"rifiuti prodotti dalla lavorazione e dal trattamento fisico e meccanico superficiale di metalli e plastiche\"],\n[\"120101\",\"limatura e trucioli di materiali ferrosi\"],\n[\"120102\",\"polveri e particolato di materiali ferrosi\"],\n[\"120103\",\"limatura, scaglie e polveri di metalli non ferrosi\"],\n[\"120104\",\"polveri e particolato di materiali non ferrosi\"],\n[\"120105\",\"limatura e trucioli di materiali plastici\"],\n[\"120106\",\"*oli minerali per macchinari, contenenti alogeni (eccetto emulsioni e soluzioni)\"],\n[\"120107\",\"*oli minerali per macchinari, non contenenti alogeni (eccetto emulsioni e soluzioni)\"],\n[\"120108\",\"*emulsioni e soluzioni per macchinari, contenenti alogeni\"],\n[\"120109\",\"*emulsioni e soluzioni per macchinari, non contenenti alogeni\"],\n[\"120110\",\"*oli sintetici per macchinari\"],\n[\"120112\",\"*cere e grassi esauriti\"],\n[\"120113\",\"rifiuti di saldatura\"],\n[\"120114\",\"*fanghi di lavorazione, contenenti sostanze pericolose\"],\n[\"120115\",\"fanghi di lavorazione, diversi da quelli di cui alla voce 12 01 14\"],\n[\"120116\",\"*residui di materiale di sabbiatura, contenente sostanze pericolose\"],\n[\"120117\",\"residui di materiale di sabbiatura, diversi da quelli di cui alla voce 12 01 16\"],\n[\"120118\",\"*fanghi metallici (fanghi di rettifica, affilatura e lappatura) contenenti olio\"],\n[\"120119\",\"*oli per macchinari, facilmente biodegradabili\"],\n[\"120120\",\"*corpi d'utensile e materiali di rettifica esauriti, contenenti sostanze pericolose\"],\n[\"120121\",\"corpi d'utensile e materiali di rettifica esauriti, diversi da quelli di cui alla voce 12 01 20\"],\n[\"120199\",\"rifiuti non specificati altrimenti\"],\n[\"120300\",\"rifiuti prodotti da processi di sgrassatura ad acqua e vapore (tranne 11)\"],\n[\"120301\",\"*soluzioni acquose di lavaggio\"],\n[\"120302\",\"*rifiuti prodotti da processi di sgrassatura a vapore\"],\n[\"130000\",\"OLI ESAURITI E RESIDUI DI COMBUSTIBILI LIQUIDI (tranne oli commestibili ed oli di cui ai capitoli 05, 12 e 19)\"],\n[\"130100\",\"scarti di oli per circuiti idraulici\"],\n[\"130101\",\"*oli per circuiti idraulici contenenti PCB (La definizione di PCB adottata nel presente elenco di rifiuti è quella contenuta nella direttiva 96/59/CE.)\"],\n[\"130104\",\"*emulsioni clorurate\"],\n[\"130105\",\"*emulsioni non clorurate\"],\n[\"130109\",\"*oli minerali per circuiti idraulici, clorurati\"],\n[\"130110\",\"*oli minerali per circuiti idraulici, non clorurati\"],\n[\"130111\",\"*oli sintetici per circuiti idraulici\"],\n[\"130112\",\"*oli per circuiti idraulici, facilmente biodegradabili\"],\n[\"130113\",\"*altri oli per circuiti idraulici\"],\n[\"130200\",\"scarti di olio motore, olio per ingranaggi e oli lubrificanti\"],\n[\"130204\",\"*oli minerali per motori, ingranaggi e lubrificazione, clorurati\"],\n[\"130205\",\"*oli minerali per motori, ingranaggi e lubrificazione, non clorurati\"],\n[\"130206\",\"*oli sintetici per motori, ingranaggi e lubrificazione\"],\n[\"130207\",\"*olio per motori, ingranaggi e lubrificazione, facilmente biodegradabile\"],\n[\"130208\",\"*altri oli per motori, ingranaggi e lubrificazione\"],\n[\"130300\",\"oli isolanti e oli termoconduttori usati\"],\n[\"130301\",\"*oli isolanti e termoconduttori, contenenti PCB\"],\n[\"130306\",\"*oli minerali isolanti e termoconduttori clorurati, diversi da quelli di cui alla voce 13 03 01\"],\n[\"130307\",\"*oli minerali isolanti e termoconduttori non clorurati\"],\n[\"130308\",\"*oli sintetici isolanti e termoconduttori\"],\n[\"130309\",\"*oli isolanti e termoconduttori, facilmente biodegradabili\"],\n[\"130310\",\"*altri oli isolanti e termoconduttori\"],\n[\"130400\",\"oli di sentina\"],\n[\"130401\",\"*oli di sentina della navigazione interna\"],\n[\"130402\",\"*oli di sentina delle fognature dei moli\"],\n[\"130403\",\"*altri oli di sentina della navigazione\"],\n[\"130500\",\"prodotti di separazione olio/acqua\"],\n[\"130501\",\"*rifiuti solidi delle camere a sabbia e di prodotti di separazione olio/acqua\"],\n[\"130502\",\"*fanghi di prodotti di separazione olio/acqua\"],\n[\"130503\",\"*fanghi da collettori\"],\n[\"130506\",\"*oli prodotti dalla separazione olio/acqua\"],\n[\"130507\",\"*acque oleose prodotte dalla separazione olio/acqua\"],\n[\"130508\",\"*miscugli di rifiuti delle camere a sabbia e dei prodotti di separazione olio/acqua\"],\n[\"130700\",\"residui di combustibili liquidi\"],\n[\"130701\",\"*olio combustibile e carburante diesel\"],\n[\"130702\",\"*benzina\"],\n[\"130703\",\"*altri carburanti (comprese le miscele)\"],\n[\"130800\",\"rifiuti di oli non specificati altrimenti\"],\n[\"130801\",\"*fanghi ed emulsioni prodotti dai processi di dissalazione\"],\n[\"130802\",\"*altre emulsioni\"],\n[\"130899\",\"*rifiuti non specificati altrimenti\"],\n[\"140000\",\"SOLVENTI ORGANICI, REFRIGERANTI E PROPELLENTI DI SCARTO (tranne 07 e 08)\"],\n[\"140600\",\"rifiuti di solventi organici, refrigeranti e propellenti di schiuma/aerosol\"],\n[\"140601\",\"*clorofluorocarburi, HCFC, HFC1\"],\n[\"140602\",\"*altri solventi e miscele di solventi, alogenati\"],\n[\"140603\",\"*altri solventi e miscele di solventi\"],\n[\"140604\",\"*fanghi o rifiuti solidi, contenenti solventi alogenati\"],\n[\"140605\",\"*fanghi o rifiuti solidi, contenenti altri solventi\"],\n[\"150000\",\"RIFIUTI DI IMBALLAGGIO, ASSORBENTI, STRACCI, MATERIALI FILTRANTI E INDUMENTI PROTETTIVI (NON SPECIFICATI ALTRIMENTI)\"],\n[\"150100\",\"imballaggi (compresi i rifiuti urbani di imballaggio oggetto di raccolta differenziata)\"],\n[\"150101\",\"imballaggi in carta e cartone\"],\n[\"150102\",\"imballaggi in plastica\"],\n[\"150103\",\"imballaggi in legno\"],\n[\"150104\",\"imballaggi metallici\"],\n[\"150105\",\"imballaggi compositi\"],\n[\"150106\",\"imballaggi in materiali misti\"],\n[\"150107\",\"imballaggi in vetro\"],\n[\"150109\",\"imballaggi in materia tessile\"],\n[\"150110\",\"*imballaggi contenenti residui di sostanze pericolose o contaminati da tali sostanze\"],\n[\"150111\",\"*imballaggi metallici contenenti matrici solide porose pericolose (ad esempio amianto), compresi i contenitori a pressione vuoti\"],\n[\"150200\",\"assorbenti, materiali filtranti, stracci e indumenti protettivi\"],\n[\"150202\",\"*assorbenti, materiali filtranti (inclusi filtri dell'olio non specificati altrimenti), stracci e indumenti protettivi, contaminati da sostanze pericolose\"],\n[\"150203\",\"assorbenti, materiali filtranti, stracci e indumenti protettivi, diversi da quelli di cui alla voce 15 02 02\"],\n[\"160000\",\"RIFIUTI NON SPECIFICATI ALTRIMENTI NELL'ELENCO\"],\n[\"160100\",\"veicoli fuori uso appartenenti a diversi modi di trasporto (comprese le macchine mobili non stradali) e rifiuti prodotti dallo smantellamento di veicoli fuori uso e dalla manutenzione di veicoli (tranne 13, 14, 16 06 e 16 08)\"],\n[\"160103\",\"pneumatici fuori uso\"],\n[\"160104\",\"*veicoli fuori uso\"],\n[\"160106\",\"veicoli fuori uso, non contenenti liquidi né altre componenti pericolose\"],\n[\"160107\",\"*filtri dell'olio\"],\n[\"160108\",\"*componenti contenenti mercurio\"],\n[\"160109\",\"*componenti contenenti PCB\"],\n[\"160110\",\"*componenti esplosivi (ad esempio 'air bag')\"],\n[\"160111\",\"*pastiglie per freni, contenenti amianto\"],\n[\"160112\",\"pastiglie per freni, diverse da quelle di cui alla voce 16 01 11\"],\n[\"160113\",\"*liquidi per freni\"],\n[\"160114\",\"*liquidi antigelo contenenti sostanze pericolose\"],\n[\"160115\",\"liquidi antigelo diversi da quelli di cui alla voce 16 01 14\"],\n[\"160116\",\"serbatoi per gas liquido\"],\n[\"160117\",\"metalli ferrosi\"],\n[\"160118\",\"metalli non ferrosi\"],\n[\"160119\",\"plastica\"],\n[\"160120\",\"vetro\"],\n[\"160121\",\"*componenti pericolosi diversi da quelli di cui alle voci da 16 01 07 a 16 01 11, 16 01 13 e 16 01 14\"],\n[\"160122\",\"componenti non specificati altrimenti\"],\n[\"160199\",\"rifiuti non specificati altrimenti\"],\n[\"160200\",\"rifiuti provenienti da apparecchiature elettriche ed elettroniche\"],\n[\"160209\",\"*trasformatori e condensatori contenenti PCB\"],\n[\"160210\",\"*apparecchiature fuori uso contenenti PCB o da essi contaminate, diverse da quelle di cui alla voce 16 02 09\"],\n[\"160211\",\"*apparecchiature fuori uso, contenenti clorofluorocarburi, HCFC, HFC\"],\n[\"160212\",\"*apparecchiature fuori uso, contenenti amianto in fibre libere\"],\n[\"160213\",\"*apparecchiature fuori uso, contenenti componenti pericolosi (2) diversi da quelli di cui alle voci 16 02 09 e 16 02 12\"],\n[\"160214\",\"apparecchiature fuori uso, diverse da quelle di cui alle voci da 16 02 09 a 16 02 13\"],\n[\"160215\",\"*componenti pericolosi rimossi da apparecchiature fuori uso\"],\n[\"160216\",\"componenti rimossi da apparecchiature fuori uso, diversi da quelli di cui alla voce 16 02 15\"],\n[\"160300\",\"prodotti fuori specifica e prodotti inutilizzati\"],\n[\"160303\",\"*rifiuti inorganici, contenenti sostanze pericolose\"],\n[\"160304\",\"rifiuti inorganici, diversi da quelli di cui alla voce 16 03 03\"],\n[\"160305\",\"*rifiuti organici, contenenti sostanze pericolose\"],\n[\"160306\",\"rifiuti organici, diversi da quelli di cui alla voce 16 03 05\"],\n[\"160307\",\"*mercurio metallico (nuovo codice CER)\"],\n[\"160400\",\"esplosivi di scarto\"],\n[\"160401\",\"*munizioni di scarto\"],\n[\"160402\",\"*fuochi artificiali di scarto\"],\n[\"160403\",\"*altri esplosivi di scarto\"],\n[\"160500\",\"gas in contenitori a pressione e prodotti chimici di scarto\"],\n[\"160504\",\"*gas in contenitori a pressione (compresi gli halon), contenenti sostanze pericolose\"],\n[\"160505\",\"gas in contenitori a pressione, diversi da quelli di cui alla voce 16 05 04\"],\n[\"160506\",\"*sostanze chimiche di laboratorio contenenti o costituite da sostanze pericolose, comprese le miscele di sostanze chimiche di laboratorio\"],\n[\"160507\",\"*sostanze chimiche inorganiche di scarto contenenti o costituite da sostanze pericolose\"],\n[\"160508\",\"*sostanze chimiche organiche di scarto contenenti o costituite da sostanze pericolose\"],\n[\"160509\",\"sostanze chimiche di scarto diverse da quelle di cui alle voci 16 05 06, 16 05 07 e 16 05 08\"],\n[\"160600\",\"batterie ed accumulatori\"],\n[\"160601\",\"*batterie al piombo\"],\n[\"160602\",\"*batterie al nichel-cadmio\"],\n[\"160603\",\"*batterie contenenti mercurio\"],\n[\"160604\",\"batterie alcaline (tranne 16 06 03)\"],\n[\"160605\",\"altre batterie ed accumulatori\"],\n[\"160606\",\"*elettroliti di batterie ed accumulatori, oggetto di raccolta differenziata\"],\n[\"160700\",\"rifiuti della pulizia di serbatoi per trasporto e stoccaggio e di fusti (tranne 05 e 13)\"],\n[\"160708\",\"*rifiuti contenenti olio\"],\n[\"160709\",\"*rifiuti contenenti altre sostanze pericolose\"],\n[\"160799\",\"rifiuti non specificati altrimenti\"],\n[\"160800\",\"catalizzatori esauriti\"],\n[\"160801\",\"catalizzatori esauriti contenenti oro, argento, renio, rodio, palladio, iridio o platino (tranne 16 08 07)\"],\n[\"160802\",\"*catalizzatori esauriti contenenti metalli di transizione (3) pericolosi o composti di metalli di transizione pericolosi\"],\n[\"160803\",\"catalizzatori esauriti contenenti metalli di transizione o composti di metalli di transizione, non specificati altrimenti\"],\n[\"160804\",\"catalizzatori esauriti da cracking catalitico fluido (tranne 16 08 07)\"],\n[\"160805\",\"*catalizzatori esauriti contenenti acido fosforico\"],\n[\"160806\",\"*liquidi esauriti usati come catalizzatori\"],\n[\"160807\",\"*catalizzatori esauriti contaminati da sostanze pericolose\"],\n[\"160900\",\"sostanze ossidanti\"],\n[\"160901\",\"*permanganati, ad esempio permanganato di potassio\"],\n[\"160902\",\"*cromati, ad esempio cromato di potassio, dicromato di potassio o di sodio\"],\n[\"160903\",\"*perossidi, ad esempio perossido d'idrogeno\"],\n[\"160904\",\"*sostanze ossidanti non specificate altrimenti\"],\n[\"161000\",\"rifiuti liquidi acquosi destinati ad essere trattati fuori sito\"],\n[\"161001\",\"*rifiuti liquidi acquosi, contenenti sostanze pericolose\"],\n[\"161002\",\"rifiuti liquidi acquosi, diversi da quelle di cui alla voce 16 10 01\"],\n[\"161003\",\"*concentrati acquosi, contenenti sostanze pericolose\"],\n[\"161004\",\"concentrati acquosi, diversi da quelli di cui alla voce 16 10 03\"],\n[\"161100\",\"scarti di rivestimenti e materiali refrattari\"],\n[\"161101\",\"*rivestimenti e materiali refrattari a base di carbone provenienti da processi metallurgici, contenenti sostanze pericolose\"],\n[\"161102\",\"rivestimenti e materiali refrattari a base di carbone provenienti dalle lavorazioni metallurgiche, diversi da quelli di cui alla voce 16 11 01\"],\n[\"161103\",\"*altri rivestimenti e materiali refrattari provenienti da processi metallurgici, contenenti sostanze pericolose\"],\n[\"161104\",\"altri rivestimenti e materiali refrattari provenienti da processi metallurgici, diversi da quelli di cui alla voce 16 11 03\"],\n[\"161105\",\"*rivestimenti e materiali refrattari provenienti da lavorazioni non metallurgiche, contenenti sostanze pericolose\"],\n[\"161106\",\"rivestimenti e materiali refrattari provenienti da lavorazioni non metallurgiche, diversi da quelli di cui alla voce 16 11 05\"],\n[\"170000\",\"RIFIUTI DELLE OPERAZIONI DI COSTRUZIONE E DEMOLIZIONE (COMPRESO IL TERRENO PROVENIENTE DA SITI CONTAMINATI)\"],\n[\"170100\",\"cemento, mattoni, mattonelle e ceramiche\"],\n[\"170101\",\"cemento\"],\n[\"170102\",\"mattoni\"],\n[\"170103\",\"mattonelle e ceramiche\"],\n[\"170106\",\"*miscugli o frazioni separate di cemento, mattoni, mattonelle e ceramiche, contenenti sostanze pericolose\"],\n[\"170107\",\"miscugli o frazioni separate di cemento, mattoni, mattonelle e ceramiche, diverse da quelle di cui alla voce 17 01 06\"],\n[\"170200\",\"legno, vetro e plastica\"],\n[\"170201\",\"legno\"],\n[\"170202\",\"vetro\"],\n[\"170203\",\"plastica\"],\n[\"170204\",\"*vetro, plastica e legno contenenti sostanze pericolose o da esse contaminati\"],\n[\"170300\",\"miscele bituminose, catrame di carbone e prodotti contenenti catrame\"],\n[\"170301\",\"*miscele bituminose contenenti catrame di carbone\"],\n[\"170302\",\"miscele bituminose diverse da quelle di cui alla voce 17 03 01\"],\n[\"170303\",\"*catrame di carbone e prodotti contenenti catrame\"],\n[\"170400\",\"metalli (incluse le loro leghe)\"],\n[\"170401\",\"rame, bronzo, ottone\"],\n[\"170402\",\"alluminio\"],\n[\"170403\",\"piombo\"],\n[\"170404\",\"zinco\"],\n[\"170405\",\"ferro e acciaio\"],\n[\"170406\",\"stagno\"],\n[\"170407\",\"metalli misti\"],\n[\"170409\",\"*rifiuti metallici contaminati da sostanze pericolose\"],\n[\"170410\",\"*cavi, impregnati di olio, di catrame di carbone o di altre sostanze pericolose\"],\n[\"170411\",\"cavi, diversi da quelli di cui alla voce 17 04 10\"],\n[\"170500\",\"terra (compresa quella proveniente da siti contaminati), rocce e materiale di dragaggio\"],\n[\"170503\",\"*terra e rocce, contenenti sostanze pericolose\"],\n[\"170504\",\"terra e rocce, diverse da quelle di cui alla voce 17 05 03\"],\n[\"170505\",\"*fanghi di dragaggio, contenente sostanze pericolose\"],\n[\"170506\",\"fanghi di dragaggio, diversa da quella di cui alla voce 17 05 05\"],\n[\"170507\",\"*pietrisco per massicciate ferroviarie, contenente sostanze pericolose\"],\n[\"170508\",\"pietrisco per massicciate ferroviarie, diverso da quello di cui alla voce 17 05 07\"],\n[\"170600\",\"materiali isolanti e materiali da costruzione contenenti amianto\"],\n[\"170601\",\"*materiali isolanti contenenti amianto\"],\n[\"170603\",\"*altri materiali isolanti contenenti o costituiti da sostanze pericolose\"],\n[\"170604\",\"materiali isolanti diversi da quelli di cui alle voci 17 06 01 e 17 06 03\"],\n[\"170605\",\"*materiali da costruzione contenenti amianto\"],\n[\"170800\",\"materiali da costruzione a base di gesso\"],\n[\"170801\",\"*materiali da costruzione a base di gesso contaminati da sostanze pericolose\"],\n[\"170802\",\"materiali da costruzione a base di gesso diversi da quelli di cui alla voce 17 08 01\"],\n[\"170900\",\"altri rifiuti dell'attività di costruzione e demolizione\"],\n[\"170901\",\"*rifiuti dell'attività di costruzione e demolizione, contenenti mercurio\"],\n[\"170902\",\"*rifiuti dell'attività di costruzione e demolizione, contenenti PCB (ad esempio sigillanti contenenti PCB, pavimentazioni a base di resina contenenti PCB, elementi stagni in vetro contenenti PCB, condensatori contenenti PCB)\"],\n[\"170903\",\"*altri rifiuti dell'attività di costruzione e demolizione (compresi rifiuti misti) contenenti sostanze pericolose\"],\n[\"170904\",\"rifiuti misti dell'attività di costruzione e demolizione, diversi da quelli di cui alle voci 17 09 01, 17 09 02 e 17 09 03\"],\n[\"180000\",\"RIFIUTI PRODOTTI DAL SETTORE SANITARIO E VETERINARIO O DA ATTIVITÀ DI RICERCA COLLEGATE(tranne i rifiuti di cucina e di ristorazione non direttamente provenienti da trattamento terapeutico)\"],\n[\"180100\",\"rifiuti dei reparti di maternità e rifiuti legati a diagnosi, trattamento e prevenzione delle malattie negli esseri umani\"],\n[\"180101\",\"oggetti da taglio (eccetto 18 01 03)\"],\n[\"180102\",\"parti anatomiche ed organi incluse le sacche per il plasma e le riserve di sangue (tranne 18 01 03)\"],\n[\"180103\",\"*rifiuti che devono essere raccolti e smaltiti applicando precauzioni particolari per evitare infezioni\"],\n[\"180104\",\"rifiuti che non devono essere raccolti e smaltiti applicando precauzioni particolari per evitare infezioni (es. bende, ingessature, lenzuola, indumenti monouso, assorbenti igienici)\"],\n[\"180106\",\"*sostanze chimiche pericolose o contenenti sostanze pericolose\"],\n[\"180107\",\"sostanze chimiche diverse da quelle di cui alla voce 18 01 06\"],\n[\"180108\",\"*medicinali citotossici e citostatici\"],\n[\"180109\",\"medicinali diversi da quelli di cui alla voce 18 01 08\"],\n[\"180110\",\"*rifiuti di amalgama prodotti da interventi odontoiatrici\"],\n[\"180200\",\"rifiuti legati alle attività di ricerca e diagnosi, trattamento e prevenzione delle malattie negli animali\"],\n[\"180201\",\"oggetti da taglio (eccetto 18 02 02)\"],\n[\"180202\",\"*rifiuti che devono essere raccolti e smaltiti applicando precauzioni particolari per evitare infezioni\"],\n[\"180203\",\"rifiuti che non devono essere raccolti e smaltiti applicando precauzioni particolari per evitare infezioni\"],\n[\"180205\",\"*sostanze chimiche pericolose o contenenti sostanze pericolose\"],\n[\"180206\",\"sostanze chimiche diverse da quelle di cui alla voce 18 02 05\"],\n[\"180207\",\"*medicinali citotossici e citostatici\"],\n[\"180208\",\"medicinali diversi da quelli di cui alla voce 18 02 07\"],\n[\"190000\",\"RIFIUTI PRODOTTI DA IMPIANTI DI TRATTAMENTO DEI RIFIUTI, IMPIANTI DI TRATTAMENTO DELLE ACQUE REFLUE FUORI SITO, NONCHÉ DALLA POTABILIZZAZIONE DELL'ACQUA E DALLA SUA PREPARAZIONE PER USO INDUSTRIALE\"],\n[\"190100\",\"rifiuti da incenerimento o pirolisi di rifiuti\"],\n[\"190102\",\"materiali ferrosi estratti da ceneri pesanti\"],\n[\"190105\",\"*residui di filtrazione prodotti dal trattamento dei fumi\"],\n[\"190106\",\"*rifiuti liquidi acquosi prodotti dal trattamento dei fumi e di altri rifiuti liquidi acquosi\"],\n[\"190107\",\"*rifiuti solidi prodotti dal trattamento dei fumi\"],\n[\"190110\",\"*carbone attivo esaurito, impiegato per il trattamento dei fumi\"],\n[\"190111\",\"*ceneri pesanti e scorie, contenenti sostanze pericolose\"],\n[\"190112\",\"ceneri pesanti e scorie, diverse da quelle di cui alla voce 19 01 11\"],\n[\"190113\",\"*ceneri leggere, contenenti sostanze pericolose\"],\n[\"190114\",\"ceneri leggere, diverse da quelle di cui alla voce 19 01 13\"],\n[\"190115\",\"*polveri di caldaia, contenenti sostanze pericolose\"],\n[\"190116\",\"polveri di caldaia, diverse da quelle di cui alla voce 19 01 15\"],\n[\"190117\",\"*rifiuti della pirolisi, contenenti sostanze pericolose\"],\n[\"190118\",\"rifiuti della pirolisi, diversi da quelli di cui alla voce 19 01 17\"],\n[\"190119\",\"sabbie dei reattori a letto fluidizzato\"],\n[\"190199\",\"rifiuti non specificati altrimenti\"],\n[\"190200\",\"rifiuti prodotti da specifici trattamenti chimico-fisici di rifiuti industriali (comprese decromatazione, decianizzazione, neutralizzazione)\"],\n[\"190203\",\"rifiuti premiscelati composti esclusivamente da rifiuti non pericolosi\"],\n[\"190204\",\"*rifiuti premiscelati contenenti almeno un rifiuto pericoloso\"],\n[\"190205\",\"*fanghi prodotti da trattamenti chimico-fisici, contenenti sostanze pericolose\"],\n[\"190206\",\"fanghi prodotti da trattamenti chimico-fisici, diversi da quelli di cui alla voce 19 02 05\"],\n[\"190207\",\"*oli e concentrati prodotti da processi di separazione\"],\n[\"190208\",\"*rifiuti combustibili liquidi, contenenti sostanze pericolose\"],\n[\"190209\",\"*rifiuti combustibili solidi, contenenti sostanze pericolose\"],\n[\"190210\",\"rifiuti combustibili, diversi da quelli di cui alle voci 19 02 08 e 19 02 09\"],\n[\"190211\",\"*altri rifiuti contenenti sostanze pericolose\"],\n[\"190299\",\"rifiuti non specificati altrimenti\"],\n[\"190300\",\"rifiuti stabilizzati/solidificati (4)\"],\n[\"190304\",\"*rifiuti contrassegnati come pericolosi, parzialmente (5) stabilizzati\"],\n[\"190305\",\"rifiuti stabilizzati diversi da quelli di cui alla voce 19 03 04\"],\n[\"190306\",\"*rifiuti contrassegnati come pericolosi, solidificati\"],\n[\"190307\",\"rifiuti solidificati diversi da quelli di cui alla voce 19 03 06\"],\n[\"190308\",\"*mercurio parzialmente stabilizzato (nuovo codice CER)\"],\n[\"190400\",\"rifiuti vetrificati e rifiuti di vetrificazione\"],\n[\"190401\",\"rifiuti vetrificati\"],\n[\"190402\",\"*ceneri leggere ed altri rifiuti dal trattamento dei fumi\"],\n[\"190403\",\"*fase solida non vetrificata\"],\n[\"190404\",\"rifiuti liquidi acquosi prodotti dalla tempra di rifiuti vetrificati\"],\n[\"190500\",\"rifiuti prodotti dal trattamento aerobico di rifiuti solidi\"],\n[\"190501\",\"parte di rifiuti urbani e simili non compostata\"],\n[\"190502\",\"parte di rifiuti animali e vegetali non compostata\"],\n[\"190503\",\"compost fuori specifica\"],\n[\"190599\",\"rifiuti non specificati altrimenti\"],\n[\"190600\",\"rifiuti prodotti dal trattamento anaerobico dei rifiuti\"],\n[\"190603\",\"liquidi prodotti dal trattamento anaerobico di rifiuti urbani\"],\n[\"190604\",\"digestato prodotto dal trattamento anaerobico di rifiuti urbani\"],\n[\"190605\",\"liquidi prodotti dal trattamento anaerobico di rifiuti di origine animale o vegetale\"],\n[\"190606\",\"digestato prodotto dal trattamento anaerobico di rifiuti di origine animale o vegetale\"],\n[\"190699\",\"rifiuti non specificati altrimenti\"],\n[\"190700\",\"percolato di discarica\"],\n[\"190702\",\"*percolato di discarica, contenente sostanze pericolose\"],\n[\"190703\",\"percolato di discarica, diverso da quello di cui alla voce 19 07 02\"],\n[\"190800\",\"rifiuti prodotti dagli impianti per il trattamento delle acque reflue, non specificati altrimenti\"],\n[\"190801\",\"residui di vagliatura\"],\n[\"190802\",\"rifiuti dell'eliminazione della sabbia\"],\n[\"190805\",\"fanghi prodotti dal trattamento delle acque reflue urbane\"],\n[\"190806\",\"*resine a scambio ionico saturate o esaurite\"],\n[\"190807\",\"*soluzioni e fanghi di rigenerazione delle resine a scambio ionico\"],\n[\"190808\",\"*rifiuti prodotti da sistemi a membrana, contenenti sostanze pericolose\"],\n[\"190809\",\"miscele di oli e grassi prodotte dalla separazione olio/acqua, contenenti esclusivamente oli e grassi commestibili\"],\n[\"190810\",\"*miscele di oli e grassi prodotte dalla separazione olio/acqua, diverse da quelle di cui alla voce 19 08 09\"],\n[\"190811\",\"*fanghi prodotti dal trattamento biologico delle acque reflue industriali, contenenti sostanze pericolose\"],\n[\"190812\",\"fanghi prodotti dal trattamento biologico delle acque reflue industriali, diversi da quelli di cui alla voce 19 08 11\"],\n[\"190813\",\"*fanghi contenenti sostanze pericolose prodotti da altri trattamenti delle acque reflue industriali\"],\n[\"190814\",\"fanghi prodotti da altri trattamenti delle acque reflue industriali, diversi da quelli di cui alla voce 19 08 13\"],\n[\"190899\",\"rifiuti non specificati altrimenti\"],\n[\"190900\",\"rifiuti prodotti dalla potabilizzazione dell'acqua o dalla sua preparazione per uso industriale\"],\n[\"190901\",\"rifiuti solidi prodotti dai processi di filtrazione e vaglio primari\"],\n[\"190902\",\"fanghi prodotti dai processi di chiarificazione dell'acqua\"],\n[\"190903\",\"fanghi prodotti dai processi di decarbonatazione\"],\n[\"190904\",\"carbone attivo esaurito\"],\n[\"190905\",\"resine a scambio ionico saturate o esaurite\"],\n[\"190906\",\"soluzioni e fanghi di rigenerazione delle resine a scambio ionico\"],\n[\"190999\",\"rifiuti non specificati altrimenti\"],\n[\"191000\",\"rifiuti prodotti da operazioni di frantumazione di rifiuti contenenti metallo\"],\n[\"191001\",\"rifiuti di ferro e acciaio\"],\n[\"191002\",\"rifiuti di metalli non ferrosi\"],\n[\"191003\",\"*fluff - frazione leggera e polveri, contenenti sostanze pericolose\"],\n[\"191004\",\"fluff - frazione leggera e polveri, diversi da quelli di cui alla voce 19 10 03\"],\n[\"191005\",\"*altre frazioni, contenenti sostanze pericolose\"],\n[\"191006\",\"altre frazioni, diverse da quelle di cui alla voce 19 10 05\"],\n[\"191100\",\"rifiuti prodotti dalla rigenerazione dell'olio\"],\n[\"191101\",\"*filtri di argilla esauriti\"],\n[\"191102\",\"*catrami acidi\"],\n[\"191103\",\"*rifiuti liquidi acquosi\"],\n[\"191104\",\"*rifiuti prodotti dalla purificazione di carburanti tramite basi\"],\n[\"191105\",\"*fanghi prodotti dal trattamento in loco degli effluenti, contenenti sostanze pericolose\"],\n[\"191106\",\"fanghi prodotti dal trattamento in loco degli effluenti, diversi da quelli di cui alla voce 19 11 05\"],\n[\"191107\",\"*rifiuti prodotti dalla purificazione dei fumi\"],\n[\"191199\",\"rifiuti non specificati altrimenti\"],\n[\"191200\",\"rifiuti prodotti dal trattamento meccanico dei rifiuti (ad esempio selezione, triturazione, compattazione, riduzione in pellet) non specificati altrimenti\"],\n[\"191201\",\"carta e cartone\"],\n[\"191202\",\"metalli ferrosi\"],\n[\"191203\",\"metalli non ferrosi\"],\n[\"191204\",\"plastica e gomma\"],\n[\"191205\",\"vetro\"],\n[\"191206\",\"*legno contenente sostanze pericolose\"],\n[\"191207\",\"legno diverso da quello di cui alla voce 19 12 06\"],\n[\"191208\",\"prodotti tessili\"],\n[\"191209\",\"minerali (ad esempio sabbia, rocce)\"],\n[\"191210\",\"rifiuti combustibili (combustibile da rifiuti)\"],\n[\"191211\",\"*altri rifiuti (compresi materiali misti) prodotti dal trattamento meccanico dei rifiuti, contenenti sostanze pericolose\"],\n[\"191212\",\"altri rifiuti (compresi materiali misti) prodotti dal trattamento meccanico dei rifiuti, diversi da quelli di cui alla voce 19 12 11\"],\n[\"191300\",\"rifiuti prodotti dalle operazioni di bonifica di terreni e risanamento delle acque di falda\"],\n[\"191301\",\"*rifiuti solidi prodotti dalle operazioni di bonifica dei terreni, contenenti sostanze pericolose\"],\n[\"191302\",\"rifiuti solidi prodotti dalle operazioni di bonifica dei terreni, diversi da quelli di cui alla voce 19 13 01\"],\n[\"191303\",\"*fanghi prodotti dalle operazioni di bonifica dei terreni, contenenti sostanze pericolose\"],\n[\"191304\",\"fanghi prodotti dalle operazioni di bonifica dei terreni, diversi da quelli di cui alla voce 19 13 03\"],\n[\"191305\",\"*fanghi prodotti dalle operazioni di risanamento delle acque di falda, contenenti sostanze pericolose\"],\n[\"191306\",\"fanghi prodotti dalle operazioni di risanamento delle acque di falda, diversi da quelli di cui alla voce 19 13 05\"],\n[\"191307\",\"*rifiuti liquidi acquosi e concentrati acquosi prodotti dalle operazioni di risanamento delle acque di falda, contenenti sostanze pericolose\"],\n[\"191308\",\"rifiuti liquidi acquosi e concentrati acquosi prodotti dalle operazioni di risanamento delle acque di falda, diversi da quelli di cui alla voce 19 13 07\"],\n[\"200000\",\"RIFIUTI URBANI (RIFIUTI DOMESTICI E ASSIMILABILI PRODOTTI DA ATTIVITÀ COMMERCIALI E INDUSTRIALI NONCHÉ DALLE ISTITUZIONI) INCLUSI I RIFIUTI DELLA RACCOLTA DIFFERENZIATA\"],\n[\"200100\",\"frazioni oggetto di raccolta differenziata (tranne 15 01)\"],\n[\"200101\",\"carta e cartone\"],\n[\"200102\",\"vetro\"],\n[\"200108\",\"rifiuti biodegradabili di cucine e mense\"],\n[\"200110\",\"abbigliamento\"],\n[\"200111\",\"prodotti tessili\"],\n[\"200113\",\"*solventi\"],\n[\"200114\",\"*acidi\"],\n[\"200115\",\"*sostanze alcaline\"],\n[\"200117\",\"*prodotti fotochimici\"],\n[\"200119\",\"*pesticidi\"],\n[\"200121\",\"*tubi fluorescenti ed altri rifiuti contenenti mercurio\"],\n[\"200123\",\"*apparecchiature fuori uso contenenti clorofluorocarburi\"],\n[\"200125\",\"oli e grassi commestibili\"],\n[\"200126\",\"*oli e grassi diversi da quelli di cui alla voce 20 01 25\"],\n[\"200127\",\"*vernici, inchiostri, adesivi e resine contenenti sostanze pericolose\"],\n[\"200128\",\"vernici, inchiostri, adesivi e resine diversi da quelli di cui alla voce 20 01 27\"],\n[\"200129\",\"*detergenti contenenti sostanze pericolose\"],\n[\"200130\",\"detergenti diversi da quelli di cui alla voce 20 01 29\"],\n[\"200131\",\"*medicinali citotossici e citostatici\"],\n[\"200132\",\"medicinali diversi da quelli di cui alla voce 20 01 31\"],\n[\"200133\",\"*batterie e accumulatori di cui alle voci 16 06 01, 16 06 02 e 16 06 03 nonché batterie e accumulatori non suddivisi contenenti tali batterie\"],\n[\"200134\",\"batterie e accumulatori diversi da quelli di cui alla voce 20 01 33\"],\n[\"200135\",\"*apparecchiature elettriche ed elettroniche fuori uso, diverse da quelle di cui alla voce 20 01 21 e 20 01 23, contenenti componenti pericolosi (6)\"],\n[\"200136\",\"apparecchiature elettriche ed elettroniche fuori uso, diverse da quelle di cui alle voci 20 01 21, 20 01 23 e 20 01 35\"],\n[\"200137\",\"*legno, contenente sostanze pericolose\"],\n[\"200138\",\"legno, diverso da quello di cui alla voce 20 01 37\"],\n[\"200139\",\"plastica\"],\n[\"200140\",\"metallo\"],\n[\"200141\",\"rifiuti prodotti dalla pulizia di camini e ciminiere\"],\n[\"200199\",\"altre frazioni non specificate altrimenti\"],\n[\"200200\",\"rifiuti prodotti da giardini e parchi (inclusi i rifiuti provenienti da cimiteri)\"],\n[\"200201\",\"rifiuti biodegradabili\"],\n[\"200202\",\"terra e roccia\"],\n[\"200203\",\"altri rifiuti non biodegradabili\"],\n[\"200300\",\"altri rifiuti urbani\"],\n[\"200301\",\"rifiuti urbani non differenziati\"],\n[\"200302\",\"rifiuti dei mercati\"],\n[\"200303\",\"residui della pulizia stradale\"],\n[\"200304\",\"fanghi delle fosse settiche\"],\n[\"200306\",\"rifiuti della pulizia delle fognature\"],\n[\"200307\",\"rifiuti ingombranti\"],\n[\"200399\",\"rifiuti urbani non specificati altrimenti\"]\n\n\t\t);\n\t\t$keys = ['cdcer','dscer'];\n\t\t// Loop through each user above and create the record for them in the database\n\t\tforeach ($values as $value) {\n\t\t\tCodiceCer::create(array_combine($keys,array_pad($value,count($keys),null)));\n\t\t}\n\n\t\tModel::reguard(); \n }", "title": "" }, { "docid": "c2eebc4747903612796f1f6516782b87", "score": "0.5281351", "text": "public function etat(){\n /* soit echo soit return des functions: il est preferable d'utiliser \n * le return et le Echo mais pas seulement le echo.\n */\n echo $this->faim.'</br>';\n \n echo $this->hygiene.'</br>';\n \n echo $this->joie.'</br>';\n \n echo $this ->sommeil.'</br>';\n \n \n }", "title": "" } ]
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "fe46a21a9d83a89ad87cac47bad438e6", "score": "0.0", "text": "public function index()\n {\n\n// return view('admin.user.addstudent');\n\n $gender = Gender::pluck('gender_name', 'id');\n $blood_groups = Blood_group::pluck('blood_name', 'id');\n $religion = Religion::pluck('religion_name', 'id');\n $nationality = Nationality::pluck('nation_name', 'id');\n\n $classname = Classroom::pluck('classname');\n $session = Session::pluck('sessionname');\n $shift = Shift::pluck('name');\n $section = Section::pluck('sectionname');\n $dormitorie = Dormitorie::pluck('dormitory_name','id');\n $dormitorie_room = Dormitorie::pluck('numberof_room');\n $transport = Transport::pluck('route_name');\n\n\n // return view('admin.user.addstudent')->with('genders',$gender)->with('blood_groups',$blood_groups)->with('religions',$religion)->with('nationalities',$nationality);\n return view('admin.user.addstudent', compact('gender', 'blood_groups','religion', 'nationality','classname','session','shift','section','dormitorie','dormitorie_room','transport'));\n }", "title": "" } ]
[ { "docid": "5d4e963a8d7919c8e89993bd060a7615", "score": "0.77891225", "text": "public function listAction()\n {\n $this->_messenger = $this->getHelper('MessengerPigeon');\n\n\t\tif ($this->_messenger->broadcast()) {\n\t\t\t// disables the back button for 1 hop\n\t\t\t$this->_namespace->noBackButton = true;\n\t\t\t$this->_namespace->setExpirationHops(1);\n\t\t}\n\n\t\t$this->view->assign(array(\n\t\t\t\t'partialName' => sprintf(\n\t\t\t\t\t'partials/%s-list.phtml', $this->_controller),\n\t\t\t\t'controller' => $this->_controller\n\t\t\t)\n\t\t);\n\n\t\t/**\n\t\t * @var Svs_Controller_Action_Helper_Paginator\n\t\t */\n\t\t$this->_helper->paginator(\n $this->_service->findAll($this->_findAllCriteria),\n $this->_entriesPerPage\n );\n\n\t\t$this->_viewRenderer->render($this->_viewFolder . '/list', null, true);\n }", "title": "" }, { "docid": "1632f74e581286fce11b428cee004b2f", "score": "0.72384894", "text": "public function actionlist()\n {\n $this->render('list',array(\n\n ));\n }", "title": "" }, { "docid": "ec9493ef0340397f64bb67b1aea5887e", "score": "0.71595275", "text": "public function listAction()\r\n {\r\n $modelType = $this->modelType();\r\n $this->view->items = $this->dbService->getObjects($modelType);\r\n $this->renderView($this->_request->getControllerName().'/list.php');\r\n }", "title": "" }, { "docid": "effdeaea4d3380c2ef0732f21651687d", "score": "0.71066624", "text": "public function index()\n {\n $resources = $this->resource->all();\n\n return view('laramanager::resources.index', compact('resources'));\n }", "title": "" }, { "docid": "07362c5ae7e016d5baf6bf3f76e0e81c", "score": "0.7078552", "text": "public function listAction() {\n $this->view->category = $this->category->full_List();\n $this->view->alert = $this->params->alert->toArray();\n $this->view->notfound = $this->params->label_not_found;\n }", "title": "" }, { "docid": "626774f0cb5b1be60be2c6a661bcc11a", "score": "0.70473844", "text": "public function listAction()\n {\n $this->view->headTitle('Vehicle Listing ', 'PREPEND');\n $this->view->vehicles = $this->vehicleService->listService();\n }", "title": "" }, { "docid": "6bcdfec0867dafc8b42448cdcf9d2175", "score": "0.70293266", "text": "public function index(){\n $this->show_list();\n }", "title": "" }, { "docid": "a0e66c2a11450ae99c175dd520d5d27a", "score": "0.7017443", "text": "public function index()\n {\n //list\n $list = $this->model->all();\n //return list view\n return view($this->getViewFolder().\".index\",[\n 'list' => $list,\n 'properties' => $this->model->getPropertiesShow(),\n 'resource' => $this->resource\n ]);\n }", "title": "" }, { "docid": "9bcef73798e00117c331333c00edef00", "score": "0.69753855", "text": "public function index()\n {\n return $this->sendResponse($this->resource::collection($this->model->all()));\n }", "title": "" }, { "docid": "fb56645c022f8b4ee60bad747c7c629b", "score": "0.6944075", "text": "public function actionList() {\n $rows = Bul::model()->findAll();\n $this->render('list', array('rows'=>$rows));\n }", "title": "" }, { "docid": "94eb33a8dc9192b76cda156b58de92e8", "score": "0.69046986", "text": "function index()\n\t\t{\t\n\t\t\t\t//Call show_list by default\n\t\t\t\t$this->show_list();\t\t\n\t\t\t\n\t\t}", "title": "" }, { "docid": "b64b879e653308029c5411df996e30a5", "score": "0.68639064", "text": "public function listAll(){\n $this->render('intervention.list');\n }", "title": "" }, { "docid": "c72ddbe4283fe8d28a198836a20283ca", "score": "0.6857927", "text": "public function listAction()\n {\n $this->_forward('index');\n }", "title": "" }, { "docid": "5959432636f2924b51d09876dd5202b6", "score": "0.68528235", "text": "protected function listAction()\n {\n $this->dispatch(EasyAdminEvents::PRE_LIST);\n\n $fields = $this->entity['list']['fields'];\n $paginator = $this->findAll($this->entity['class'], $this->request->query->get('page', 1), $this->entity['list']['max_results'], $this->request->query->get('sortField'), $this->request->query->get('sortDirection'), $this->entity['list']['dql_filter']);\n\n $this->dispatch(EasyAdminEvents::POST_LIST, ['paginator' => $paginator]);\n\n $parameters = [\n 'paginator' => $paginator,\n 'fields' => $fields,\n 'batch_form' => $this->createBatchForm($this->entity['name'])->createView(),\n 'delete_form_template' => $this->createDeleteForm($this->entity['name'], '__id__')->createView(),\n ];\n\n return $this->executeDynamicMethod('render<EntityName>Template', ['list', $this->entity['templates']['list'], $parameters]);\n }", "title": "" }, { "docid": "d30c6180099f7dd3b33628d897022777", "score": "0.6819029", "text": "public function show_list() {\n }", "title": "" }, { "docid": "8403a5ff042f4c677d7d939d9b2b750f", "score": "0.68169737", "text": "public function view_crud_list () {\n $this->getResponse()->setData('context', 'crud');\n if($this->getRequest()->getData('action') == 'crud_stats') {\n $this->getCrudinstance()->stats();\n } else {\n $this->getCrudinstance()->listview();\n }\n return;\n }", "title": "" }, { "docid": "01bc93b08e6ad107f9316b34bcad9511", "score": "0.68048567", "text": "public function index()\n\t{\n $resources = Resource::all();\n return View::make('resources.index', compact('resources'));\n\t}", "title": "" }, { "docid": "3389c0d5e9637b099b7cd7e20021ea55", "score": "0.67939425", "text": "public function listsAction()\n {\n // Checks authorization of users\n if (!$this->isGranted('ROLE_DATA_REPOSITORY_MANAGER')) {\n return $this->render('template/AdminOnly.html.twig');\n }\n\n $GLOBALS['pelagos']['title'] = 'Lists Available';\n return $this->render('List/Lists.html.twig');\n }", "title": "" }, { "docid": "e8b936bcbc3c7cd4f66fc62525379e0b", "score": "0.67760646", "text": "public function mylist() {\n $this->render();\n }", "title": "" }, { "docid": "c545ab38f5dbdba7091a7d9ce680b802", "score": "0.67675877", "text": "public function index()\n\t{\n\t\t$subResourceDetails = $this->subResourceDetailRepository->paginate(10);\n\n\t\treturn view('subResourceDetails.index')\n\t\t\t->with('subResourceDetails', $subResourceDetails);\n\t}", "title": "" }, { "docid": "6d63bb11ea8b0a8583e9363e358ff9b7", "score": "0.6752695", "text": "public function index()\n {\n\n $total = isset($this->parameters['total']) ? $this->parameters['total'] : config('awesovel')['total'];\n\n $this->data['collection'] = $this->api('HEAD', 'paginate', $total);\n\n\n return $this->view($this->operation->layout, ['items' => $this->model->getItems()]);\n }", "title": "" }, { "docid": "828fa63f223e081c2e33ac1cee981572", "score": "0.6749301", "text": "public function index()\n {\n $entity = Entity::all();\n return EntityResource::collection($entity);\n }", "title": "" }, { "docid": "e7e46511a4b7697f60b99262a9448541", "score": "0.674787", "text": "public function index(){\n\n $entries = $this->paginate();\n\n $this->set(\"entries\", $entries);\n\n }", "title": "" }, { "docid": "8f58024e3cccac78c2edf40dcdf1d9b5", "score": "0.6738217", "text": "public function index()\n {\n return VideomakerResource::collection(Videomaker::orderBy('sort', 'asc')->get());\n }", "title": "" }, { "docid": "720fa44f82097ad862a1223667f1a4ae", "score": "0.67326105", "text": "public function list()\n {\n $this->vars = array('items' => ['Patrick', 'Claude', 'Pierre', 'André']);\n $this->render('list.php');\n }", "title": "" }, { "docid": "82ffea34883f2d4ec003859ff27130f4", "score": "0.6717062", "text": "public function index()\n {\n // Get results\n $results = Result::orderBy('created_at', 'desc')->get();\n\n // Return collection of results as a resource\n return ResultResource::collection($results);\n }", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67116815", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67116815", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "174e07a1688ac732f0e66ae6d8398d84", "score": "0.6711562", "text": "public function index()\n {\n // list\n }", "title": "" }, { "docid": "1ca180cd47a9c5ba1d48b4b6c9917a8e", "score": "0.6701197", "text": "public function index()\n {\n $resources = Ressource::orderby('created_at','DESC')->get();;\n return RessourceR::collection($resources);\n }", "title": "" }, { "docid": "443c1ed051c412c645eecf92a9792f61", "score": "0.6685732", "text": "public function listAction()\n {\n $request=$this->getRequest();\n $requestUtil=$this->getRequestUtil();\n \n $pageRequestData=$requestUtil->getPageRequestDataFrom($request);\n $dataPage=$this->getSystemUserManager()->findPageFrom($pageRequestData);\n \n return $requestUtil->defaultListJsonResponse($dataPage->getData(), $dataPage->getTotalRecords());\n }", "title": "" }, { "docid": "3e2213e2e64e6d315c5f7f2b9390d5af", "score": "0.66802585", "text": "public function index()\n {\n return $this->showAll();\n }", "title": "" }, { "docid": "d387587609cbbdf03cfc0669056e5bc7", "score": "0.66796803", "text": "public function action_list()\n\t{\n\t\t$client = Model::factory('Client');\n\t\t$rs = $client->select()\n\t\t\t//->select('id', 'name', 'email', 'phone', 'is_active')\n\t\t\t->order_by('name')\n\t\t\t->execute();\n\t\t$client_data = $rs->as_array();\n\t\t\n\t\t// Remap client data for JS lookup\n\t\t$client_details = array();\n\t\tforeach($client_data as $item) {\n\t\t\t$client_details[$item['id']] = $item;\n\t\t}\n\t\t\n\t\t$view = View::factory('client/list');\n\t\t$view->set('client_data', $client_data);\n\t\t$view->set('client_details', $client_details);\n\t\t$this->response->body($view);\n\t}", "title": "" }, { "docid": "dd7ea5bccadd522adc846631298726c5", "score": "0.6678547", "text": "public function index()\n {\n return RecordResource::collection(\n auth()->user()->records()->paginate(config('general.pagination.perPage'))\n );\n }", "title": "" }, { "docid": "bf724845d7b3ef1d4914762d244fb1ab", "score": "0.6675193", "text": "public function listAction()\n {\n $limit = isset($_GET['limit']) ? (int)$_GET['limit'] : PostDB::LIMIT;\n $offset = isset($_GET['offset']) ? (int)$_GET['offset'] : 0;\n\n return $this->render([\n 'posts' => $this->model->fetchList($limit, $offset),\n 'limit' => $limit,\n 'offset' => $offset,\n 'totalPosts' => $this->model->count(),\n 'alert' => $this->getAlerts(['post_created', 'post_deleted', 'post_updated'])\n ]);\n }", "title": "" }, { "docid": "a8301ed92dc9170afd4b6448fca5d0f3", "score": "0.6674207", "text": "public function index()\n {\n $products = Product::paginate(100);\n return ProductResource::collection($products);\n }", "title": "" }, { "docid": "1fd7963662b3e9d8e35a3c5a837bbc57", "score": "0.6667426", "text": "public function listAction()\n {\n $configName = filter_var($_GET['name'], FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW);\n\n $trieurConfig = $this->getConfig($configName);\n\n $this->view->name = $configName;\n $this->view->title = isset($trieurConfig['title']) ? $trieurConfig['title'] : '';\n\n $this->view->breadCrumbs[] = [\n 'title' => $this->view->title,\n 'url' => FrontController::getCurrentUrl(),\n ];\n }", "title": "" }, { "docid": "0fe4e291e7634c2aeb63063cd376272f", "score": "0.6666447", "text": "public function index()\n {\n // $this->authorize('all', User::class);\n \n $allResources = Resource::all();\n\n $view_elements = [];\n \n $view_elements['allResources'] = $allResources; \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.all');\n return view($view, $view_elements);\n }", "title": "" }, { "docid": "333a397f407728909d14c6eb4e496493", "score": "0.664738", "text": "public function listingAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('SettingContentBundle:News')->findBy(array(),array('name' => 'asc'));\n\n return $this->render('SettingContentBundle:News:index.html.twig', array(\n 'pagination' => $entities,\n ));\n }", "title": "" }, { "docid": "905f7fbfbb2fff73099979bdf45d3db6", "score": "0.66408366", "text": "public function list() {\n //kalau HRD pusat bisa milih dari cabang mana saja\n //kalau HRD cabang cuma list document masuk yg ada di cabang doang.\n }", "title": "" }, { "docid": "81a9d2c3f66799032c4d7ddc8ee3e2ef", "score": "0.6629056", "text": "public function list() {\n include '../templates/driver/list.html.php';\n }", "title": "" }, { "docid": "e4852525485e4ed47dcb985523ad108d", "score": "0.6627158", "text": "public function listAction(){\n\t\t$view = Zend_Registry::get('view');\n\t\t$table = new Mae();\n\t\t$table->getCollection();\n\t\t$this->_response->setBody($view->render('default.phtml'));\n\t}", "title": "" }, { "docid": "728b150b646c20e91cdcb0b476ee8df4", "score": "0.6626183", "text": "public function listAction()\n {\n if (false === $this->admin->isGranted('LIST')) {\n throw new AccessDeniedException();\n }\n\n $datagrid = $this->admin->getDatagrid();\n $formView = $datagrid->getForm()->createView();\n\n // set the theme for the current Admin Form\n $this->get('twig')->getExtension('form')->renderer->setTheme($formView, $this->admin->getFilterTheme());\n\n if(isset($_GET['activityId'])){\n $activityId = $_GET['activityId'];\n $em = $this->getDoctrine()->getManager();\n $activity = $em->getRepository('ZesharCRMCoreBundle:Activity')->findOneBy(array('id' => $activityId));\n $activityTitle = $activity->getTitle();\n }\n\n return $this->render($this->admin->getTemplate('list'), array(\n 'action' => 'list',\n 'form' => $formView,\n 'datagrid' => $datagrid,\n 'csrf_token' => $this->getCsrfToken('sonata.batch'),\n 'pageTitle' => $activityTitle ? $activityTitle : '',\n ));\n }", "title": "" }, { "docid": "03690e7a09f22de0d26d268d13653dd8", "score": "0.6626126", "text": "function index(){\n\t\t$this->listar();\n\t}", "title": "" }, { "docid": "0cfc4663300d21f5b0e90285019bc71a", "score": "0.66242784", "text": "public function indexAction() {\n $locationFieldEnable = Engine_Api::_()->getApi('settings', 'core')->getSetting('list.locationfield', 1);\n if ( empty($locationFieldEnable) ) {\n return $this->setNoRender();\n }\n\n $items_count = $this->_getParam('itemCount', 5);\n\n //GET LIST LIST FOR MOST RATED\n $this->view->listLocation = Engine_Api::_()->getDbTable('listings', 'list')->getPopularLocation($items_count);\n\n //DONT RENDER IF LIST COUNT IS ZERO\n if (!(count($this->view->listLocation) > 0)) {\n return $this->setNoRender();\n }\n\n $this->view->searchLocation = null;\n if (isset($_GET['list_location']) && !empty($_GET['list_location'])) {\n $this->view->searchLocation = $_GET['list_location'];\n\t\t}\n }", "title": "" }, { "docid": "90baaa24c8a589876a1c98f625e68458", "score": "0.6623648", "text": "public function index()\n {\n $categories = BusinessCategory::all();\n $listings = BusinessListingResource::collection(BusinessListing::all());\n return Inertia::render('Admin/BusinessListing', ['categories'=> $categories, 'listings'=>$listings]);\n }", "title": "" }, { "docid": "75a5bb13804a5d6235a9088089fdf3dc", "score": "0.6607636", "text": "public static function list()\n {\n if (isset($_POST[\"search\"])) {\n foreach ($_POST[\"search\"] as $key => $value) {\n $queryOptions[\"$key LIKE\"] = \"%$value%\";\n }\n };\n static::render(\"list\", [\n 'entities' => static::getDao()::findAll()\n ]);\n }", "title": "" }, { "docid": "a8073549d697653019630bfd5b2ce4f4", "score": "0.6607086", "text": "public function listAction() {\n\t\t$this->view->liste = Category::getInstance()->fetch();\n\t}", "title": "" }, { "docid": "ca1737541b9936d406a94bdf9aa8a617", "score": "0.65998626", "text": "public function index()\n {\n $cat = Category::paginate(10);\n\t\treturn CategoryResources::collection($cat);\n }", "title": "" }, { "docid": "9053e22130cf25ad82ec7601e536a4b4", "score": "0.65884763", "text": "public function index()\n\t{\n\t\t$subResourceDetailAudios = $this->subResourceDetailAudioRepository->paginate(10);\n\n\t\treturn view('subResourceDetailAudios.index')\n\t\t\t->with('subResourceDetailAudios', $subResourceDetailAudios);\n\t}", "title": "" }, { "docid": "c7230f7fbeb33b3a78b09ad92bcf4b13", "score": "0.6586963", "text": "public function index()\n {\n $article=Booklover::paginate(10);\n //return collection of articles as resource\n return BookloverResource::collection($article);\n }", "title": "" }, { "docid": "ad00df27d12646f83d77fce9a7bb953d", "score": "0.6586538", "text": "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n \t$em = $this->getDoctrine()->getManager();\n \t$oRepRobot = $em->getRepository('BoAdminBundle:Robot');\n\t\t$nb_tc = $oRepRobot->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$robots = $em->getRepository('BoAdminBundle:Robot')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n \treturn $this->render('robot/index.html.twig', array(\n \t\t'robots' => $robots,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\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'=>\"tools\",\n\t\t\t'sm'=>\"robot\",\n \t));\n }", "title": "" }, { "docid": "bc61607b7973a96af644a943e09c1e49", "score": "0.65858775", "text": "public function listAction(): void\n {\n $demand = $this->getRequestArgument('demand') ?: $this->getDemand(true);\n\n // Get posts depending on demand object\n $posts = $this->getRequestArgument('posts') ?: RepositoryService::getPostRepository()->findByDemand($demand);\n\n // Set list id\n if ($demand->getListId() === 0) {\n $demand->setListId($this->contentData['uid']);\n }\n\n // Create pagination\n $itemsPerPage = $this->settings['items_per_stages'] ?: $this->settings['post']['list']['itemsPerStages'] ?: '6';\n $pagination = GeneralUtility::makeInstance(Pagination::class, $posts, $demand->getStage(), $itemsPerPage, $this->settings['max_stages']);\n\n // Pass variables to the fluid template\n $this->view->assignMultiple([\n 'pagination' => $pagination,\n 'demand' => $demand,\n 'posts' => $posts\n ]);\n }", "title": "" }, { "docid": "54716cd3af1f040766e6972b2709f836", "score": "0.6585739", "text": "public function index()\n {\n $lists = $this->shareRepository->lists();\n\n return $this->respond($lists , new ShareTransformer);\n }", "title": "" }, { "docid": "6a06fa8c4288da120ae96f4207dfe6a2", "score": "0.65765756", "text": "public function index()\n {\n $dummies=dummy::paginate(10);\n\n return dummyResource::collection($dummies);\n }", "title": "" }, { "docid": "1d717f725bf8e320ff8af8985fc9e146", "score": "0.6575916", "text": "public function all(){\n $products = $this->product->getProducts();\n\n $data['products'] = $products;\n\n $this->render('list', $data);\n }", "title": "" }, { "docid": "ac951f46baeea8952ab1bf72102e758d", "score": "0.6571351", "text": "public function indexAction($pageNumber)\n {\n\t$connectedUser = $this->getUser();\n $em = $this->getDoctrine()->getManager();\n $userContext = new UserContext($em, $connectedUser); // contexte utilisateur\n\n $resourceRepository = $em->getRepository('SDCoreBundle:Resource');\n\n $numberRecords = $resourceRepository->getResourcesCount($userContext->getCurrentFile());\n\n $listContext = new ListContext($em, $connectedUser, 'core', 'resource', $pageNumber, $numberRecords);\n\n $listResources = $resourceRepository->getDisplayedResources($userContext->getCurrentFile(), $listContext->getFirstRecordIndex(), $listContext->getMaxRecords());\n \n return $this->render('SDCoreBundle:Resource:index.html.twig', array(\n 'userContext' => $userContext,\n 'listContext' => $listContext,\n\t\t'listResources' => $listResources));\n }", "title": "" }, { "docid": "b7e9ea6b80279bc7feede5632a90202e", "score": "0.65709573", "text": "public function resourcesList(){\r\n\t\t$type = $this->view->getVariable(\"currentusertype\");\r\n\t\tif ($type != \"administrador\") {\r\n\t\t\tthrow new Exception(i18n(\"You must be an administrator to access this feature.\"));\r\n\t\t}\r\n\t\t// Guarda todos los recursos de la base de datos en una variable.\r\n\t\t$resources = $this->resourceMapper->findAll();\r\n\t\t$this->view->setVariable(\"resources\", $resources);\r\n\t\t// Se elige la plantilla y renderiza la vista.\r\n\t\t$this->view->setLayout(\"default\");\r\n\t\t$this->view->render(\"resources\", \"resourcesList\");\r\n\t}", "title": "" }, { "docid": "bccc75a4abe2c6c3bd9fc15d85ca4be6", "score": "0.657009", "text": "public function listAction ()\n {\n $dbAlbums = $this->_albumsMapper->fetchAllDesc();\n $albums = array();\n foreach ($dbAlbums as $dbAlbum) {\n /* @var $dbAlbum Application_Model_Album */\n $album = array();\n $album['id'] = $dbAlbum->getId();\n $album['name'] = $dbAlbum->getName();\n $album['folder'] = $dbAlbum->getFolder();\n $path = self::GALLERY_PATH . $album['folder'];\n $counter = 0;\n if (file_exists($path)) {\n foreach (scandir($path) as $entry) {\n $entrypath = $path . '/' . $entry;\n if (! is_dir($entrypath)) {\n $finfo = new finfo();\n $fileinfo = $finfo->file($entrypath, FILEINFO_MIME_TYPE);\n if (in_array($fileinfo, $this->image_types)) {\n $counter ++;\n }\n }\n }\n }\n $album['pictures'] = $counter;\n $albums[] = $album;\n }\n $this->view->albums = $albums;\n return;\n }", "title": "" }, { "docid": "d3246fb2ff9e0523d1570475de5151d9", "score": "0.65691483", "text": "public function listing()\n {\n\n // check the acl permissions\n if( !$this->acl->access( array( 'daidalos/projects:access' ) ) )\n {\n $this->errorPage( \"Permission denied\", Response::FORBIDDEN );\n return false;\n }\n\n // check the access type\n if( !$view = $response->loadView( 'table_daidalos_projects', 'DaidalosProjects' ) )\n return false;\n\n $view->display( $this->getRequest(), $this->getFlags( $this->getRequest() ) );\n\n\n }", "title": "" }, { "docid": "81af47766ea10675d82eb09c7177c488", "score": "0.65669", "text": "public function lists()\n\t{\n\t\treturn View::make(\"loan.list\");\n\t}", "title": "" }, { "docid": "80fe37cd073c0845deb3f2f3dc56f953", "score": "0.6564314", "text": "public function _list() {\n return $this->run('list', array());\n }", "title": "" }, { "docid": "c192cad1748d0fe11000b8d2063a908e", "score": "0.65643096", "text": "public function index()\n {\n return $this->view('lists');\n }", "title": "" }, { "docid": "f32df56cd8eb057e778dd688838ae6e1", "score": "0.6558956", "text": "public function index() {\n $fds = FactoryDevice::paginate(50);\n return FactoryDeviceResource::collection($fds);\n }", "title": "" }, { "docid": "2d830a7f9271146c892f5525ff06cba8", "score": "0.6546971", "text": "public function index()\n {\n save_resource_url();\n //$items = VideoRecordPlaylist::with(['category', 'photos'])->get();\n $items = VideoRecordPlaylist::all();\n\n return $this->view('video_records.playlists.index', compact('items'));\n }", "title": "" }, { "docid": "592ef21e8cf01343d8f7bf69f6571783", "score": "0.65467274", "text": "public function listAction() {\n\ttry {\n\t\t$page = new Knowledgeroot_Page($this->_getParam('id'));\n\t} catch(Exception $e) {\n\t\t// redirect to homepage on error\n\t\t$this->_redirect('');\n\t}\n\n\t$contents = Knowledgeroot_Content::getContents($page);\n\t$files = array();\n\n\t// get files for each content\n\tforeach($contents as $value) {\n\t $files[$value->getId()] = Knowledgeroot_File::getFiles(new Knowledgeroot_Content($value->getId()));\n\t}\n\n\t// set page for view\n\t$this->view->id = $page->getId();\n\t$this->view->title = $page->getName();\n\t$this->view->subtitle = $page->getSubtitle();\n\t$this->view->description = $page->getDescription();\n\t$this->view->contentcollapse = $page->getContentCollapse();\n\t$this->view->showpagedescription = $page->getShowContentDescription();\n\t$this->view->showtableofcontent = $page->getShowTableOfContent();\n\n\t// set contents for view\n\t$this->view->contents = $contents;\n\n\t// set files for view\n\t$this->view->files = $files;\n }", "title": "" }, { "docid": "ec0437b332d8ab59b1dc12514564cf24", "score": "0.65349644", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $collections = $em->getRepository(Collection::class)->findAll();\n\n return $this->render('CollectionBundle::index.html.twig', array(\n 'collections' => $collections,\n ));\n }", "title": "" }, { "docid": "e28f7ac3556efbf46ef07a458594e0f4", "score": "0.6534658", "text": "public function listView()\r\n {\r\n $todosResults = $this->AdminToDoModel->getTodos();\r\n $todos = $todosResults['records'];\r\n echo json_encode(array(\r\n 'pagination' => $todosResults['pagination'],\r\n 'total_pages' => $todosResults['total_pages'],\r\n 'list' => $this->load->view('admin/todos/item', compact('todos'), TRUE),\r\n ));\r\n }", "title": "" }, { "docid": "d2551d513444995f440c040295b5f79a", "score": "0.6531914", "text": "public function listAction() {\n\t\t$newsRecords = $this->newsRepository->findList();\n\n\t\t$this->view->assign('news', $newsRecords);\n\t}", "title": "" }, { "docid": "7ff71fea74a014e23f3059d0628ca0c1", "score": "0.652987", "text": "public function index()\n {\n return view('resources/index', [\n 'categories' => ResourceCategory::all()\n ]);\n }", "title": "" }, { "docid": "e6a4c98ba5c74f530846a0e2799e83cd", "score": "0.65274894", "text": "public function indexAction() {\n\t\t$this->_forward('list');\n\t}", "title": "" }, { "docid": "13c10da740abbcd8b1714424cd80b7f0", "score": "0.6523997", "text": "public function index()\n\t{\n\t\t$tools = Tool::paginate(12);\n\n\t\treturn view( self::$prefixView . 'lists', compact('tools'));\n\t}", "title": "" }, { "docid": "8658a767a07d5f3d222e30b3461f8908", "score": "0.6519245", "text": "public function index() {\n\n\t\tself::init();\n\n\t\t$result = $this->_dbTable->paginatorCat(\n\t\t\t$this->_paginatorParams,\t\t\t\n\t\t\t$offset = $this->_list, \n\t\t\t$limit = 50,\n\t\t\t$this->_lang\n\t\t);\n\n\t\t$this->registry['layout']->sets(array(\n\t\t\t'titleMenu' => $this->translate->translate('Pages'),\n\t\t\t'content' => $this->_content.'index.phtml',\n\t\t\t'records' => $result['records'],\n\t\t\t'paginator' => $result['paginator'],\n\t\t));\t\n\t\t$this->registry['layout']->view();\t\n\t}", "title": "" }, { "docid": "b4ddd46c2382d5ddf2a44ea188de6a3b", "score": "0.6519022", "text": "public function actionIndex()\n {\n $dataProvider = (new Route())->search();\n return $this->render('index', ['dataProvider' => $dataProvider]);\n }", "title": "" }, { "docid": "116c403ea907dd01837aaf78536361f2", "score": "0.6515897", "text": "public function actionListing()\n {\n require_once Yii::app()->basePath . '/vendor/facebook-php-sdk/src/facebook.php';\n $fb = new Facebook(array(\n 'appId' => '894567207287021',\n 'secret' => 'cf43d6c081acaed16c908cac9d49bc07',\n ));\n $model = new FacebookModel();\n $customer = $model->setCustomer($fb);\n $getLikes = $model->getLikes($fb);\n $this->render('list',array('data'=>array('customer' => $customer, 'getLikes' => $getLikes)));\n }", "title": "" }, { "docid": "e3cdc4c3d9ae3aaa6a0cd5478456a58d", "score": "0.65145594", "text": "public function index()\n {\n return UnityResource::collection(Unity::paginate());\n }", "title": "" }, { "docid": "bc53de285b94ddd2a447a5820f5b4765", "score": "0.65121585", "text": "public function listing($route) {\n\t\t$this->render_view('listing', null);\n\t}", "title": "" }, { "docid": "9e06846e2f6d2e1269338eadf8e0b894", "score": "0.6510727", "text": "public function index()\n {\n $categories = Category::paginate(10);\n return CategoryResource::collection($categories);\n }", "title": "" }, { "docid": "d3708a38680b59bc16eca3c31b86b78d", "score": "0.6510369", "text": "public function index()\n {\n $abonnes = AbonneModel::all();\n $count = AbonneModel::count();\n //$this->debug($abonnes);\n $this->render('app.abonne.listing',array(\n // faire passer les abonnes à la vue dans view/app/abonne/listing.php\n 'abonnes' => $abonnes,\n 'count' => $count\n ));\n }", "title": "" }, { "docid": "7a4839b9dce0e81aa7d22a30b5050ba1", "score": "0.65067625", "text": "public function index()\n {\n return View::make('pages.listing')->with([\n 'listings' => Listing::all()\n ]);\n }", "title": "" }, { "docid": "9574404dd05ce3c2611ce508bd896204", "score": "0.6504046", "text": "public function indexAction() {\n $this->_forward('list');\n }", "title": "" }, { "docid": "b3002ffdca77085e05c201d4c8cb1e99", "score": "0.6501504", "text": "public function showList()\n\t{\n\t\t$query_params = $this->getQueryParams();\n\n\t\t// Get all biblio entities that match our query string params\n\t\t$query = new EntityFieldQuery();\n\t\t$query->entityCondition('entity_type', 'biblio');\n\t\tforeach ($query_params as $field => $value) {\n\t\t\t$query->fieldCondition($field, 'value', $value, 'like');\n\t\t}\n\n\t\t$result = reset($query->execute());\n\n\t\t// Create an array of IDs from the result\n\t\tforeach ($result as $entity_data) {\n\t\t\t$this->data['document_ids'][] = $entity_data->bid;\n\t\t}\n\n\t\t$this->outputJSON();\n\t}", "title": "" }, { "docid": "8f4a27465d71a62a589ec5adaeb0986b", "score": "0.64991456", "text": "public function index()\n {\n $todos = Todo::orderBy('created_at', 'DESC')->get();\n return TodoResource::collection($todos);\n }", "title": "" }, { "docid": "dc0149898375c89e944c9a4e88c4c3a8", "score": "0.6499016", "text": "public function index()\n {\n $table = item::all();\n return view('list')->with('table', $table);\n }", "title": "" }, { "docid": "3bcd0d0bc609b30833a686c0ca043c6e", "score": "0.6498308", "text": "public function index()\n {\n $links = Link::all();\n\n return LinkResource::collection($links);\n }", "title": "" }, { "docid": "046c051adc81c4edc84279daf9165d00", "score": "0.64961153", "text": "public function index() {\n\t\t$this->paginate = array(\n\t\t\t\t'limit' => 6,\n\t\t\t\t'order' => 'Listing.last_mod DESC'\n\t\t);\n\t\t//debug($this->params);\n\t\t$cond = $this->searchCriteria($this->params['data'], $this->params['pass'], $this->params['named']);\n\t\t$lt = $this->paginate('Listing', $cond);\n\t\t$this->getAddress($lt);\n\t\t$this->getListingPrice($lt);\n\t\t$this->set('listings', $lt);\n\t\t$this->set('GetMapListingData', $this->GetMapListingData($lt));\n\t\t$this->set('search_title', $this->searchTitle($this->params['pass']));\n\t\t$this->set('heading', $this->pageHeading($this->params['pass']));\n\t\t$this->set('bodyClass', 'listings');\n\t\t$this->render('listings');\n\t}", "title": "" }, { "docid": "b3705b62ffca7af4878e295922e07f4b", "score": "0.6494691", "text": "public function index()\n {\n $categories = Category::all();\n\n\t\treturn CategoryResource::collection($categories);\n }", "title": "" }, { "docid": "2acb8764426117ce1e24a4dffeca03b3", "score": "0.6488265", "text": "public function getList() {\n $pages = PageModel::getList();\n\n $this->renderView( $pages );\n }", "title": "" }, { "docid": "19401e81d482911677b86104e4316af5", "score": "0.6483004", "text": "public function index()\n {\n return ClientResource::collection(Client::paginate(5));\n }", "title": "" }, { "docid": "5053d441932d8864d4bf822f4564836c", "score": "0.64802396", "text": "public function listAction()\n {\n $this->service->setPaginatorOptions($this->getAppSetting('paginator'));\n $page = (int) $this->param($this->view->translate('page'), 1);\n $this->service->openConnection();\n $users =$this->service->retrieveAllClientUsers($page);\n $this->view->users = $users;\n $this->view->paginator = $this->service->getPaginator($page);\n }", "title": "" }, { "docid": "984e2e8264667b3d8e5fbfff39850e73", "score": "0.64776826", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n $books = $em->getRepository('AppBundle:Book')->findAllOrderedByName();\n\n return $this->render('dashboard/listBook.html.twig', ['books' => $books]);\n }", "title": "" }, { "docid": "c8bce961d8c00f94db1cc45bb581d8eb", "score": "0.6476608", "text": "public function index()\n {\n $products = Product::all();\n return ProductResource::collection($products);\n }", "title": "" }, { "docid": "5fc2cbaa57895f367e3994638939768f", "score": "0.6475312", "text": "public function fetchlistAction(){}", "title": "" }, { "docid": "221cee52eb0850b671832164d9811aa5", "score": "0.64749444", "text": "public function listAction() {\n }", "title": "" }, { "docid": "f19185733d416e8afe327cca78be3112", "score": "0.64742154", "text": "public function index()\n {\n // returns the latest inventory info and constricts the page to entries\n return Inventory::latest()->paginate(10);\n }", "title": "" }, { "docid": "548f4f0a081099012cd8664830d71f5f", "score": "0.6473625", "text": "public function index()\n {\n $books = Book::paginate(1);\n return view('admin.books.book-lists', compact('books'));\n }", "title": "" }, { "docid": "ed4ac6060cb66e23543b207ea1f66b10", "score": "0.6470538", "text": "public function index()\n {\n $shops = Shop::paginate(20);\n return ShopResource::collection($shops);\n }", "title": "" }, { "docid": "207685ef95ff8434191b610cea3c73d5", "score": "0.6470286", "text": "public function index()\n {\n $items = $this->itemService->all();\n\n return JsonResource::collection($items);\n }", "title": "" }, { "docid": "4e5084aa458aae2dccdd7bdb7ebbdaf1", "score": "0.6469868", "text": "public function indexAction() {\n $this->view->headTitle('Lista zarejestrowanych obiektów');\n $request = $this->getRequest();\n \n $qb = $this->_helper->getEm()->createQueryBuilder();\n $qb->select('c')\n ->from('\\Trendmed\\Entity\\Clinic', 'c');\n $qb->setMaxResults(50);\n $qb->setFirstResult(0);\n \n $query = $qb->getQuery();\n \n \n $paginator = new Paginator($query, $fetchJoin = true);\n $this->view->paginator = $paginator;\n }", "title": "" }, { "docid": "f8cb4b5b72a3f7046a46ff5e92d156e6", "score": "0.6469414", "text": "public function allAction()\n {\n /* Getting total questions number */\n $totalQuestions = Question::count();\n\n /* Getting current user's data */\n $user = Auth::getUser();\n\n /* Adding pagination */\n $paginator = new Paginator($_GET['page'] ?? 1, $this->config->per_page_user, $totalQuestions, '/questions/all?page=(:num)');\n\n /* Getting questions list */\n $questions = Question::get([\n 'offset' => $paginator->offset, \n 'limit' => $paginator->limit,\n 'order_by' => $this->sortTypeColumn,\n 'order_type' => 'DESC',\n 'current_user' => $user\n ]);\n\n /* Load view template */\n View::renderTemplate('Questions/stream.twig',[\n 'this_page' => [\n 'title' => 'All Questions',\n 'menu' => 'questions_all',\n 'url' => 'questions/all',\n 'order_name' => $this->sortTypeName,\n ],\n 'questions' => $questions,\n 'paginator' => $paginator,\n 'total_questions' => $totalQuestions,\n ]);\n }", "title": "" }, { "docid": "f9d8426baa3f2a5993b5c1f018099562", "score": "0.64684117", "text": "public function resources_index()\n\t{\n\t\t$init = new admin_model();\n\t\t$resources = $init->getAllResources()->getResultArray();\n\n\t\t$menus = $init->getAllMenu()->getResultArray();\n\t\t$this->data = ['menus' => $menus, 'resources' => $resources];\n\t\treturn view('admin' . DIRECTORY_SEPARATOR . 'resources' . DIRECTORY_SEPARATOR . 'index', $this->data);\n\t}", "title": "" } ]
507abb694cf89428469c3fb294614f27
Given :: some starting page
[ { "docid": "cc165b0445ca1b34f2ee075200fc9b16", "score": "0.0", "text": "public function testUserIsAbleToNavigateFromHomepageToContentPage() \n {\n $this->driver->get('https://en.wikipedia.org/');\n\n // When :: 'PHP' in the search box and submit was pressed\n $this->driver->findElement(WebDriverBy::id('searchInput')) // find search input element\n ->sendKeys('PHP') // fill the search box\n ->submit(); // submit the whole form\n \n sleep(1);\n // Then \n $this->assertEquals($this->driver->getTitle(), 'PHP - Wikipedia');\n\n // Teardown : close the browser\n $this->driver->quit();\n\n }", "title": "" } ]
[ { "docid": "03e4269cdbc8ad501bdeaf72ef4512b3", "score": "0.67980266", "text": "public function testHomePage() : void\n\t\t{\n\t\t$this->controller->setParameters([]);\n\t\t$page = $this->controller->display(\\PHPFUI\\InstaDoc\\Controller::VALID_CLASS_PAGES, $this->controller->getPage());\n\t\t$this->assertValidHtml(\"{$page}\");\n\t\t$this->assertNotWarningHtml(\"{$page}\");\n\t\t}", "title": "" }, { "docid": "a1c70a932ae076328fdb5aac16f342cd", "score": "0.66952235", "text": "public function setupPage(){}", "title": "" }, { "docid": "35f74a9213d5b46c43cbecc70868582b", "score": "0.66530126", "text": "public function testGetStartedPage()\n {\n $response = $this->get('/start/#/new');\n\n //assert page was found\n $response->assertStatus(200);\n }", "title": "" }, { "docid": "8006915f515180fe4411ca1fe7bbf3f1", "score": "0.65139073", "text": "public function testLandingPage()\n {\n $this->visit('/')\n ->see('Ocademy');\n }", "title": "" }, { "docid": "aa3a7b89c60e53a5e3cc8b3dd63d7b58", "score": "0.6490118", "text": "function default_page()\n\t\t{\n\t\t}", "title": "" }, { "docid": "cff63feabb70be4760f69973417dda91", "score": "0.64842886", "text": "function magpaper_page_start() {\n\t\t?>\n\t\t<div id=\"page\" class=\"site\">\n\t\t\t<a class=\"skip-link screen-reader-text\" href=\"#content\"><?php esc_html_e( 'Skip to content', 'magpaper' ); ?></a>\n\n\t\t<?php\n\t}", "title": "" }, { "docid": "a1df5f3cde2ce664ab8e32cf6aeae508", "score": "0.6411381", "text": "public function nextPage();", "title": "" }, { "docid": "08e7f53c93b09b1202069f1d0d014cfc", "score": "0.6374589", "text": "public function testIfFirstPageLoads()\n {\n $this->visit('/')->see('valgeranna');\n }", "title": "" }, { "docid": "afeb72a0307c0193520d3a0c2f470aed", "score": "0.6332593", "text": "public function page()\n\t{\n\t\t$this->index();\n\t}", "title": "" }, { "docid": "45cbb4591089a94b7a119939c1d1e48a", "score": "0.6314114", "text": "function run(int $page): bool\n {\n }", "title": "" }, { "docid": "ce8e8f92473bd9323f67e7ed2307c3fc", "score": "0.62814355", "text": "function ps_begin_page ($psdoc, $width, $height) {}", "title": "" }, { "docid": "31df533b2a5e7cac3b710f96ec4eb836", "score": "0.62725735", "text": "function printBeforePage() {}", "title": "" }, { "docid": "5aa2f163334008f4b4a6d739c4d32dc9", "score": "0.6269859", "text": "function rock_star_page_start() {\n\t\t?>\n\t\t<div id=\"page\" class=\"hfeed site\">\n\t\t<?php\n\t}", "title": "" }, { "docid": "6cbeb3afef9bfac0abec4a477a564c5a", "score": "0.62687427", "text": "abstract public function addPage();", "title": "" }, { "docid": "3a6eae3ae30a87e787db90753aa21b34", "score": "0.6264016", "text": "function ps_begin_page($psdoc, $width, $height) {}", "title": "" }, { "docid": "f8f88bc13dba9fb6d1f295f3c65de3c0", "score": "0.62341493", "text": "public function fetchCurrentPage();", "title": "" }, { "docid": "f5b27272820282768469b341ff71a2c0", "score": "0.61693585", "text": "public function userGoToPage($path, $page);", "title": "" }, { "docid": "e5765239f20dd93dfa36ffed9083613a", "score": "0.61649257", "text": "public function getPage();", "title": "" }, { "docid": "e1b6327f38c68ef7e9710ce89b6733b3", "score": "0.61572295", "text": "public function ShowPage();", "title": "" }, { "docid": "12ca41dc4b4dc001f06801734ad2ec88", "score": "0.61464494", "text": "public function testLandingPage()\n {\n $this->visit('/')\n ->see('LaraApi');\n }", "title": "" }, { "docid": "c86c98c9d8bc9d640c74dcc98a79f772", "score": "0.61381644", "text": "function start( $initial_page_title ){\n\t\t$this->query_and_store(\n\t\t\tarray(\n\t\t\t\t'action' => 'query',\n\t\t\t\t'titles' => urlencode( $initial_page_title ),\n\t\t\t\t'format' => 'php',\n\t\t\t\t'prop' => 'info',\n\t\t\t)\n\t\t);\n\t\t\n\t\tdo {\n\t\t\t$return = $this->process_queue();\n\t\t} while ( $return );\n\t}", "title": "" }, { "docid": "fbf797d7c0c90612c22aea7d0bbe67fc", "score": "0.6130837", "text": "public function testFrontPage() //esilehe test\n {\n $this->visit('/')\n ->seePageIs('/');\n }", "title": "" }, { "docid": "2aedab88c6ef768f0fbe7892eba91cc7", "score": "0.61215377", "text": "function getStartingPage() {\n\t\tpreg_match('/^[^\\d]*(\\d+)\\D*(.*)$/', $this->getPages(), $pages);\n\t\treturn $pages[1];\n\t}", "title": "" }, { "docid": "75ba59cf6d84cd680e2f818d14303821", "score": "0.6076073", "text": "public function testSinglePage() {\n $this->browse(function ($browser) {\n $this->browse(function (Browser $browser) {\n $browser->visit('/sales/single/kem-bot-tam-huong-buoi-127')\n ->assertSee('STENDERS 119');\n });\n });\n }", "title": "" }, { "docid": "6afa412a8894313d3972ee3cfe052a7f", "score": "0.6073031", "text": "function begin_page_ext($width, $height, $optlist) {}", "title": "" }, { "docid": "10dd183887c5ed9522d64e9be146d566", "score": "0.6067758", "text": "public function isFirstPage();", "title": "" }, { "docid": "ed831ec86985ff17f6587d51e16f8c57", "score": "0.6062751", "text": "public function test_home()\n\t{\n\t\t$this->load_page('home');\n\t\t$test = pq(\"title\")->text();\n\t\t$expected = 'WidgiCorp - Fine Makers of Widgets';\n\t\t$this->run($test, $expected, 'Test homepage title');\n\t}", "title": "" }, { "docid": "46842bf1948d030641cbc8ca7cbd55c9", "score": "0.6038807", "text": "function the_home_page_works()\n\t{\n\t\t$this->visit('/')\n\t\t\t->see('RPGO');\n\t}", "title": "" }, { "docid": "476819084e771e63c084ea3384d26c1d", "score": "0.60387486", "text": "public function GetPage()\n\t{\t\t\n\t\t$this->DisplayIndex();\n\t}", "title": "" }, { "docid": "8b4f5595a148c972a10f2014f8f6e1f2", "score": "0.6028151", "text": "function currentPage() : string\n{\n return str_after(Request::path(), '/');\n}", "title": "" }, { "docid": "1fbc161ba7cdfad5ba435769b6acf2a3", "score": "0.6023783", "text": "public function pageStart()\n {\n echo '<?xml version=\"1.0\" encoding=\"utf-8\"?>';\n ?>\n <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n <html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"da\" lang=\"da\">\n <head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n <meta name=\"author\" content=\"Mads Lie Jensen\" />\n <link rel=\"stylesheet\" type=\"text/css\" href=\"<?php echo $this->do->css; ?>\"\n title=\"Layout1\" />\n <title><?php echo $this->do->displayName; ?></title>\n <?php\n echo implode(\"\\n\", $this->do->callPlugins('pageHeader'));\n foreach ($this->do->getJavascripts() as $script) {\n echo '<script type=\"text/javascript\" src=\"' . $script . '\"></script>' . \"\\n\";\n }\n // Javascript added by the dataObject\n if ($this->do->getDataObject() instanceof DB_DataObject_FormBuilder_Frontend_Hooks_Scripts) {\n $scripts = $this->do->getDataObject()->getHeadScriptFiles();\n foreach ($scripts as $script) {\n echo '<script type=\"text/javascript\" src=\"' . $script . '\"></script>' . \"\\n\";\n }\n\n $inline = $this->do->getDataObject()->getInlineHeadScripts();\n if (count($inline) > 0) {\n echo '<script type=\"text/javascript\">';\n foreach ($inline as $script) {\n echo $script . \"\\n\\n\";\n }\n echo '</script>';\n }\n }\n\n foreach ($this->do->getCss() as $css) {\n echo '<link rel=\"stylesheet\" type=\"text/css\" href=\"' . $css . '\" />';\n }\n ?>\n </head>\n <body>\n <h1><?php echo htmlentities($this->do->displayName); ?></h1>\n <p><?php echo htmlentities($this->do->description); ?></p>\n <?php\n }", "title": "" }, { "docid": "906a2be092b181232da1145a3a3363d5", "score": "0.5974858", "text": "protected function getPage(){\n\t\t$page=$_GET['step']?$this->pages[$_GET['step']]:$this->pages[0];\n\t\treturn $page;\n\t}", "title": "" }, { "docid": "b3f88723ae7bb3b535e6edb69cd40f44", "score": "0.5963993", "text": "public function testFrontPage()\n {\n $this->visit('/')\n ->see('LMK Fitness');\n }", "title": "" }, { "docid": "cdf408b83dfc0d7d1eb3deb5dbf32918", "score": "0.5963267", "text": "protected function pageHead() { return; }", "title": "" }, { "docid": "ef41bc90492191d61cba0b289a54dc5a", "score": "0.59609985", "text": "public function beginPage()\n {\n Event::trigger($this, self::EVENT_BEGIN_PAGE);\n\n return $this->renderHeadHtml();\n }", "title": "" }, { "docid": "09590bce590fce4890f045addc968eac", "score": "0.5939901", "text": "public function homepage()\n {\n $this->visit('/')\n ->seePageIs('/login'); \n }", "title": "" }, { "docid": "6e443aac93902ee8e9513e7eb744f586", "score": "0.59339136", "text": "public function testHome()\n {\n $this->visit('/')\n ->see('Customer Request')\n ->click('Customer Request')\n ->seePageIs('/')\n\n ->see('Buying Request')\n ->click('Buying Request')\n ->seePageIs('/buyingrequest')\n\n ->see('Login')\n ->click('Login')\n ->seePageIs('/login'); \n }", "title": "" }, { "docid": "ffccf6ca47d64ae630181d958c80d721", "score": "0.5927666", "text": "private function _findPage() {\n $url = str_replace('?'.$_SERVER['QUERY_STRING'], '', $_SERVER['REQUEST_URI']);\n for ($i=0, $j=count($this->pages); $i<$j; $i++) {\n if (preg_match('/^\\/{0,1}'.str_replace('/', '\\/', $this->pages[$i]['url']).'\\/{0,1}$/i', $url, $matches)) {\n if (isset($matches[1])) {\n $this->current_page = $this->pages[$i]['id'];\n $this->data['url'] = $matches[1];\n $this->data['params'] = explode('/', str_replace($matches[1], '', $matches[0]));\n if ($this->data['params'][count($this->data['params'])-1]=='') {\n unset($this->data['params'][count($this->data['params'])-1]);\n }\n unset($this->data['params'][0]);\n $this->data['params'] = array_values($this->data['params']);\n } else {\n $this->data['url'] = $matches[0];\n $this->current_page = $this->pages[$i]['id'];\n $this->data['params'] = array();\n }\n break;\n }\n }\n }", "title": "" }, { "docid": "747c6666ddf444db7bbeda304880ddc0", "score": "0.59148073", "text": "public function InvokePage($page);", "title": "" }, { "docid": "eaaafe73ae88f894cbb04e0ff222a7ac", "score": "0.59100527", "text": "public function open()\n {\n $this->page = 1;\n }", "title": "" }, { "docid": "ef2dcb2f221df7719f9cf24bca985513", "score": "0.59035206", "text": "public function testGenericPages()\n {\n $this->visit('/about')\n ->visit('/faq')\n ->visit('/terms-and-conditions')\n ->visit('/privacy-policy')\n ->visit('/support');\n }", "title": "" }, { "docid": "68c3532b242aa971147125d9f88d3cbb", "score": "0.59014696", "text": "public function getCurrentPage() {}", "title": "" }, { "docid": "4242cb7bdd7745fae85547b51345341d", "score": "0.5897588", "text": "public function getPage($param) {}", "title": "" }, { "docid": "33eef1d13a691dfbe08aea6379a9246d", "score": "0.58964133", "text": "public function ShowPage() { $this->CurrentPage->ShowBody(); }", "title": "" }, { "docid": "41d90624fe8552a0e78c6be362dba2ae", "score": "0.58958197", "text": "function pageGenerator()\n{\n echo \"<h1>Welcome to the home page of Plug-in</h1>\";\n}", "title": "" }, { "docid": "54da60ab8b848b2434e7c4465ce4bd83", "score": "0.5894261", "text": "public function actionPage () {\n\t\t$model = \\App::getInstance()->loadModel('pages/pages');\n\t\tif($_SERVER['REQUEST_URI'] == '/') {\n\t\t\t$page_data = $model->getPage('home');\n\t\t\t\\App::getInstance()->setParam('header', $this->renderPartial('frontend/header', [], true));\n\t\t}else{\n\t\t\t$page_data = $model->getPage($_GET['alias']);\n\t\t}\n\n\t\t$data = [\n\t\t\t'content' => $page_data['content'],\n\t\t\t'main_title' => $page_data['main_title'],\n\t\t];\n\n\t\t\\App::getInstance()->setParam('title', 'Chantry Island');\n\t\t$this->render('frontend/page', $data);\n\t}", "title": "" }, { "docid": "f343bfe8c5aed67b1385f04639039a7c", "score": "0.5891379", "text": "public function testWelcomePageCrawler()\n {\n $this->visit('/')\n ->see('ToDo')\n ->see('Home')\n ->see('Login')\n ->see('Register')\n ->see('What you have To Do :)')\n ->see('Use our app to list out what TO DO')\n ->click('Login')\n ->seePageIs('/login')\n ->click('Register')\n ->seePageIs('/register');\n }", "title": "" }, { "docid": "e094e5849c77af7e1ac22d5f42effc68", "score": "0.58729666", "text": "static function begin($page) {\t\tif (count($_POST) || count($_GET) || ($page->show_comments && count($_COOKIE))) {\n\t\t\treturn;\n\t\t}\n\t\t// check dependencies\n\t\t$page->dependencies();\n\t\t\n\t\t// is there a cached version of this page somewhere?\n\t\t$cache_file = Cache::cache_file();\n\t\t$mtime = @filemtime($cache_file);\n\n\t\t// check for not-modified header?\n\t\tif ($mtime > 0 && $mtime >= Cache::$last_modified) {\n\t\t\theader('Content-Type: text/html; charset=utf-8');\n\t\t\treadfile($cache_file);\n\t\t\texit();\n\t\t} else {\n\t\t\t// capture cache file\n\t\t\tob_start(array('Cache','do_end'));\n\t\t}\n\t}", "title": "" }, { "docid": "26cf3d1437544db74c1d2ce98ba2e79c", "score": "0.58645207", "text": "function lpl_landing_page() {\r\n\t\t}", "title": "" }, { "docid": "eccbf31fb6d52099c2f7bd7271d9b067", "score": "0.58619356", "text": "function getRequestedPage() {\n\t\treturn $this->requestedPage;\n\t}", "title": "" }, { "docid": "4c6acd1b64c97fae25fabecd35e2ef1f", "score": "0.58525103", "text": "public function homePage() {\n $chManager = new ChapterManager();\n $chapters = $chManager->getThreeLastChapters();\n\t require ('src/View/home/home.php');\n\t}", "title": "" }, { "docid": "0908c6d00ed6a786508adad9c5c3c5b6", "score": "0.5849624", "text": "function _custom_page(){\n\t\n\t\n\t\n\t\n\t}", "title": "" }, { "docid": "97c72fb4a53b2158ea9988abc0035dbe", "score": "0.5836015", "text": "public function testSinglePageNotFound() {\n $this->browse(function ($browser) {\n $this->browse(function (Browser $browser) {\n $browser->visit('/sales/single/kem-bot-tam-huong-buoi-127dsadas')\n ->assertSee('Page not found');\n });\n });\n }", "title": "" }, { "docid": "3f63d7ed6b32e4e4aca4a28fd48637c8", "score": "0.58268327", "text": "public function getCurrentPage();", "title": "" }, { "docid": "3f63d7ed6b32e4e4aca4a28fd48637c8", "score": "0.58268327", "text": "public function getCurrentPage();", "title": "" }, { "docid": "3f63d7ed6b32e4e4aca4a28fd48637c8", "score": "0.58268327", "text": "public function getCurrentPage();", "title": "" }, { "docid": "3f63d7ed6b32e4e4aca4a28fd48637c8", "score": "0.58268327", "text": "public function getCurrentPage();", "title": "" }, { "docid": "3f63d7ed6b32e4e4aca4a28fd48637c8", "score": "0.58268327", "text": "public function getCurrentPage();", "title": "" }, { "docid": "8bf88f32c48485d241d80c11405627d4", "score": "0.5822116", "text": "public function getPage(): string;", "title": "" }, { "docid": "f03482f8694dbc64c586faaefc59e314", "score": "0.5815125", "text": "public function setUpPage()\n\t{\n\t\tglobal $txt;\n\n\t\t$this->url = 'index.php';\n\t\tparent::setUpPage();\n\n\t\trequire_once(SOURCEDIR . '/ElkArte/Languages/Index/English.php');\n\t}", "title": "" }, { "docid": "b5b2c825df6095feeef341cbbc022461", "score": "0.5809596", "text": "private function calculateCurrentStartPage(){\n\t\t$temp = floor( $this->currentpage / $this->maxpagesshown );\n\t\t$this->currentstartpage = $temp * $this->maxpagesshown;\n\t}", "title": "" }, { "docid": "a28f761be5f8c05628e2b1ce6d422c75", "score": "0.5796929", "text": "public function pageAction()\n {\n $this->assets->addJs('scripts/highlight.min.js');\n $page = Pages::find(\n [\n 'conditions' => 'title = :title:',\n 'bind' => ['title' => $this->dispatcher->getParam('title')],\n 'cache' => ['key' => 'page-'.$this->dispatcher->getParam('title')],\n ]\n );\n if (!isset($page[0])) {\n $this->view->page = [];\n $this->view->title = 'New page';\n } else {\n $this->view->page = $page[0];\n $this->view->title = $page[0]->title;\n }\n }", "title": "" }, { "docid": "f42f4343112a766fc28c61a37af4d199", "score": "0.5794351", "text": "abstract protected function getNextPageRoute();", "title": "" }, { "docid": "365a2d2a3e3a34ee530c06d4574bb30b", "score": "0.57879317", "text": "public function testFirstPage()\n {\n $response = $this->get('/');\n $response->assertSee('Hello Yose');\n }", "title": "" }, { "docid": "ee40310e397c4abf1d2a52abc5a2bbbf", "score": "0.57840276", "text": "function st_page () {\n new ST_Page();\n}", "title": "" }, { "docid": "7e176abc772836cf373e920a7aecd64c", "score": "0.5775259", "text": "public function testCreatePageFromMasterPage()\n {\n }", "title": "" }, { "docid": "587a729ba0a697569d4c0af3c8f31c6c", "score": "0.5770917", "text": "public function turnPage()\n {\n $this->page++;\n }", "title": "" }, { "docid": "d125f9d711ab356b55fcb119c783f84e", "score": "0.57690006", "text": "public function checkSuccessfulPageOpening() :void\n {\n $response = $this->get(route('article.index'));\n $response->assertStatus(200);\n $response->assertViewIs('web.articles.index');\n }", "title": "" }, { "docid": "eff02bce86b449d023a535caefe309d2", "score": "0.5764473", "text": "public function beginPage(): void\n {\n ob_start();\n /** @psalm-suppress PossiblyFalseArgument */\n PHP_VERSION_ID >= 80000 ? ob_implicit_flush(false) : ob_implicit_flush(0);\n\n $this->eventDispatcher->dispatch(new PageBegin($this));\n }", "title": "" }, { "docid": "89c5c14b88f1337763029ab5a2323ad0", "score": "0.57557404", "text": "public function skip()\n {\n\t\t$viewObj = $this->getWebpageObject();\n // get the step\n \tif($viewObj->getCurrentStep()){\n \t$step = $viewObj->getCurrentStep();\n }else{\n \t$step = $_GET['step'];\n }\n if (!$step || $step==\"\")\n $step=1;\n\n $viewObj->renderStep($step+2);\n }", "title": "" }, { "docid": "83870685caebfa1ed84d307c201b7950", "score": "0.5753143", "text": "function page($_page, $data = [])\r\n{\r\n FrontEnd::page($_page, $data);\r\n}", "title": "" }, { "docid": "ef1a011dcf30530802cdd88665a8f63c", "score": "0.57469213", "text": "public function getActualPage(): int;", "title": "" }, { "docid": "29cc002ae63eabfc7dfe07eb2dcba9c6", "score": "0.5745329", "text": "static function page($p){\n parent::render('test', 'page', $p);\n }", "title": "" }, { "docid": "352a03bd78fdb14b802a1c398221b420", "score": "0.57422566", "text": "public static function start() {\r\n $_SERVER[\"REQUEST_URI2\"] = substr($_SERVER[\"REQUEST_URI\"],strlen($_SERVER[\"SCRIPT_NAME\"])-10);\r\n\t\t$p = strpos($_SERVER[\"REQUEST_URI2\"],\"?\");\r\n\t\tif (!$p) $_SERVER[\"REQUEST_URIpure\"] = $_SERVER[\"REQUEST_URI2\"]; else $_SERVER[\"REQUEST_URIpure\"] = substr($_SERVER[\"REQUEST_URI2\"],0, $p);\r\n\r\n switch ($_SERVER[\"REQUEST_URIpure\"]) {\r\n case \"/\":\r\n case \"/index.html\":\r\n PageEngine::html(\"page_dashboard\"); exit(1);\r\n }\r\n\r\n PageEngine::html(\"page_404\"); exit(1);\r\n }", "title": "" }, { "docid": "cb2e25e207e2b4929ea35c2055cb6d6f", "score": "0.57413304", "text": "public function Page() {\n\t\t$request = $_SERVER['REQUEST_URI'];\n\t\t$cachename = str_replace(array(\"/\", \"-\", \"=\", \"+\"), \"_\", $request);\n\t\t$cachefile = $this->_directory . $cachename . \".cache\";\n\t\tif ($this->isValid($cachefile)) {\n\t\t\techo $this->read($cachefile, FALSE);\n\t\t\texit();\n\t\t}\n\t\t//echo \"*3\";\n\t\t// Buffer output\n\t\tob_start(array( &$this, \"EndPage\"));\n\n\t}", "title": "" }, { "docid": "d85089afbace77059d30cf3153329d49", "score": "0.5740352", "text": "public function startPage($name)\n\t{\n $people = array(\n \"One\",\n \"Two\",\n \"Blah\"\n );\n\n Debugbar::error($name);\n Debugbar::info($people);\n\n if (in_array($name, $people)) {\n return View::make('index.startPage', array(\n 'name'=>$name,\n 'people'=>$people\n ));\n }\n App::abort(404);\n\t}", "title": "" }, { "docid": "cf4d469302b9f556b088f1982d2364c2", "score": "0.57260907", "text": "function portal_page($page=NULL) {\n if ($page==NULL) $page=config('LGI_DEFAULTPAGE');\n $pagepath = dirname(__FILE__).\"/page/$page.php\";\n if ( !preg_match('/^[a-zA-Z0-9]+$/', $page) || !file_exists($pagepath) ) {\n http_status(404, 'Page not found');\n throw new LGIPortalException('Page not found: '.$page);\n }\n // include page, but first bring important globals in scope\n global $argv;\n require($pagepath);\n}", "title": "" }, { "docid": "089a3019280ac7f0a6ef4142f3579530", "score": "0.57259446", "text": "protected function pageHeader() { return; }", "title": "" }, { "docid": "533aa34cd31e640b584373de627c9c57", "score": "0.5718232", "text": "public function index() {\n $rg = Registry::getInstance();\n $params = $rg->uri->params;\n $page=1;\n if (isset($params[0]) && is_numeric($params[0]) && $page>$params[0]) {\n $page= (int) ($params[0]);\n }\n }", "title": "" }, { "docid": "0f3531fc530bec4a36002227218e4423", "score": "0.57109004", "text": "private function check_page()\r\n\t{\r\n\t\tif(is_null(CMS::Singleton()->path_vars(0)) || CMS::Singleton()->path_vars(0) == 'home')\r\n\t\t{\r\n\t\t\t//$path_vars is not set so load an empty page from page\r\n\t\t\t$this->page_type['type'] = 'html';\r\n\t\t\t$this->page_type['value'] = NULL; //FIXME This is depreciated the cmspage should work it out\r\n\t\t\tCMS::Singleton()->page_details = $this->page_type; //FIXME hack to fix looping\r\n\r\n\t\t\tcmspage::Singleton()->initalise();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif(!is_numeric(CMS::Singleton()->path_vars(0)))\r\n\t\t\t{\r\n\t\t\t\t//FIXME update filenames / merge or change request types etc\r\n\t\t\t\t$match = array(\r\n\t\t\t\t\t'tool'=>'tools',\r\n\t\t\t\t\t'loading.html'=>'loading',\r\n\t\t\t\t\t'video'=>'stream',\r\n\t\t\t\t\t'js-combine' => 'javascript',\r\n\t\t\t\t\t'robots.txt' => 'robots',\r\n\t\t\t\t);\r\n\r\n\t\t\t\t$this->page_type['type'] = strtolower(CMS::Singleton()->path_vars(0));\r\n\t\t\t\tif(isset($match[$this->page_type['type']]))\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->page_type['type'] = $match[$this->page_type['type']];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tCMS::Singleton()->page_details = $this->page_type;\r\n\t\t\t\tif(!cmspage::Singleton()->initalise())\r\n\t\t\t\t{\r\n\t\t\t\t\t$command = $this->command_lookup(CMS::Singleton()->path_vars(0));\r\n\t\t\t\t\tif(!$command)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tError::do404();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$this->page_type['type'] = $command['type'];\r\n\t\t\t\t\t$this->page_type['value'] = $command['page'];\r\n\t\t\t\t\tCMS::Singleton()->page_details = $this->page_type;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t//pat_vars[0] is numeric\r\n\t\t\t\t$this->page_type['type'] = 'html';\r\n\t\t\t\t$this->page_type['value'] = CMS::Singleton()->path_vars(0);\r\n\t\t\t\tCMS::Singleton()->page_details = $this->page_type;\r\n\r\n\t\t\t\tif(!cmspage::Singleton()->initalise())\r\n\t\t\t\t{\r\n\t\t\t\t\tError::do404();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "164eb7ea88237a4d1b4b013c4810dc21", "score": "0.5707943", "text": "function ps_end_page ($psdoc) {}", "title": "" }, { "docid": "f3794ebc1d26096dca65e596ae479612", "score": "0.56830806", "text": "public function echoPage()\n {\n // TODO: Implement echoPage() method.\n }", "title": "" }, { "docid": "f3320ecc8641e2f008399a2a70c58ad1", "score": "0.5677513", "text": "function getPage()\n{\n $scriptName = '';\n $request = str_replace(\"/app/\", \"\", trim($_SERVER['REQUEST_URI']));\n\n //split the path by '/'\n $params = explode(\"/\", $request);\n\n //get rid of empty index (check for double or unnessacary slashes)\n $cleans = cleansParams($params);\n \n //check if there's no or only one index\n //if so: return the homepage 'pages/main/home'\n if (empty($cleans) || (count($cleans) == 1 && strtolower($cleans[0]) == 'home'))\n {\n $scriptName = setHomePage();\n }\n else\n {\n //if no page was found as a param and the first parameter is not 'main'\n //return 404 'page not found'\n if (count($cleans) == 1)\n {\n $scriptName = setErrorPage('404');\n }\n\n //still no page?\n if (empty($scriptName))\n {\n //first check if a controller page was requested\n //if so: add the 'controller' map\n //if not: add the 'pages' map\n if ($cleans[0] == 'controllers')\n {\n $scriptName = $_SERVER['DOCUMENT_ROOT'] . '/' . cfg_app_path . '/controllers/' . $cleans[1] . '.php';\n }\n else\n {\n $scriptName = $_SERVER['DOCUMENT_ROOT'] . '/' . cfg_app_path . '/pages/' . $cleans[0] . '/' . $cleans[1] . '.php';\n }\n }\n }\n\n //check if path and filename exists\n //if not: return 404 page\n if (!file_exists($scriptName))\n {\n $scriptName = setErrorPage('404');\n }\n \n //finaly return the page to load\n return $scriptName;\n}", "title": "" }, { "docid": "d48fcf2da05c352971bbf2eec96e98cf", "score": "0.56708914", "text": "public function visit(){\n\t\t$page = $this->smarty->createTemplate('index.tpl');\n\t\t$page->assign('page', $this::PAGE_NAME);\n\n\t\t$menu = $this->userMenu();\n\t\t$page->assign('menu', $menu->fetch());\n\n\t\t$recovery = $this->smarty->createTemplate('recovery.tpl');\n\t\t$recovery->assign('action', $this::PAGE_NAME);\n\t\t$page->assign('content', $recovery->fetch());\n\t\t$page->display();\n\t}", "title": "" }, { "docid": "c5decdcb961a21d0c336853b988a17ba", "score": "0.5666274", "text": "function showPage ($dir, $title, $description = \"Description de la page\"){\n\t\t$title = ucfirst($title);\n\t\tglobal $page;\n\t\tglobal $pageLogRegister;\n\t\tinclude($dir.\"/\".$page.\".php\");\n\t}", "title": "" }, { "docid": "d2f56bc984a37c4d3bb443eb7b4c1be0", "score": "0.56642646", "text": "public function main()\n {\n $this->page->setTitle('Aktiviteter');\n $this->page->nextgamestart = $this->model->getNextGamestart();\n $this->page->gamestarts = $this->model->getAllGamestarts();\n }", "title": "" }, { "docid": "6d32464364750e25175fc3100c811516", "score": "0.5661548", "text": "public function getCurrentPage(): int;", "title": "" }, { "docid": "bf255b199d3d5e9df4ac205e954e00b3", "score": "0.5654006", "text": "public function heatingAction()\n {\n $pageId = \"heatingandcooling\";\n }", "title": "" }, { "docid": "e92dfe6278f55c971a48ca455d195666", "score": "0.5638465", "text": "function resume_page($optlist) {}", "title": "" }, { "docid": "3fe7bab11034987b14e39cd9cdaf233e", "score": "0.5634361", "text": "public function should_be_able_to_reach_the_homepage( \\AcceptanceTester $I ) {\n $I->havePostInDatabase(['post_title' => 'A test post']);\n $I->amOnPage( '/' );\n $I->see('A test post');\n }", "title": "" }, { "docid": "500c737067331ca9ee9a2352c3fc4171", "score": "0.56320643", "text": "public function page_init(){ \n \n }", "title": "" }, { "docid": "5f3bda727d114d1ffea67b42fa11f482", "score": "0.5631685", "text": "public function testForPageOutOfBounds()\n {\n $this->_eventManager->on(\n 'Controller.initialize',\n ['priority' => 11],\n function ($event) {\n $this->_subscribeToEvents($this->_controller);\n }\n );\n\n $this->get('/blogs?page=999&foo=bar');\n $this->assertSame(302, $this->_response->getStatusCode());\n $this->assertSame('http://localhost/blogs?page=2&foo=bar', $this->_response->getHeaderLine('Location'));\n }", "title": "" }, { "docid": "af64e7efbfd39eebdec351723df7a4dd", "score": "0.5624028", "text": "public function generate(Page $root);", "title": "" }, { "docid": "02cb33cd8f27dd366a85a41cedb2137e", "score": "0.562207", "text": "protected function pageContent() { return; }", "title": "" }, { "docid": "e65184ef91e5345dbca14fdf274e125b", "score": "0.5617405", "text": "function getFirstPage() {\n\t\t\t\t\t$content.= '<div class=\"magentoimport-img\">\n\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"http://www.magentocommerce.com/\" target=\"_blank\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"res/magentologo.gif\" /><br />\n\t\t\t\t\t\t\t\t\t\t\t\t\tMagento<br />Open Source eCommerce Evolved\n\t\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t</div>'\n\t\t\t\t\t\t\t\t\t\t\t.$this->ll('text_about1').\n\t\t\t\t\t\t\t\t\t\t '<div class=\"magentoimport-img\">\n\t\t\t\t\t\t\t\t\t\t \t\t<a href=\"http://www.cyberhouse.at/\" target=\"_blank\">\n\t\t\t\t\t\t\t\t\t\t \t\t\t<img src=\"res/cyberhouselogo.gif\" /><br />\n\t\t\t\t\t\t\t\t\t\t \t\t\tCYBERhouse<br />Agentur für interaktive Kommunikation GmbH\n\t\t\t\t\t\t\t\t\t\t\t\t</a>\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.$this->ll('text_about2');\n\t\t\t\t\t\n\t\t\t\t\treturn $content;\n\t\t\t\t}", "title": "" }, { "docid": "5680f17b18f95f090feee31e873cae43", "score": "0.5612904", "text": "private function AutoRecordNewPage(){\n }", "title": "" }, { "docid": "ced191a985f2eaf09b0e6a16a7973f01", "score": "0.561181", "text": "public function testFirstVisit()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit('/')\n ->assertSee('Index')\n ->assertSee('Log in for options')\n ->click('a [alt=\" root \"]')\n ->waitFor('div.title',3)\n ->assertSee('Index');\n });\n }", "title": "" }, { "docid": "770777bdb23619137a4b00d7b02b5884", "score": "0.56099594", "text": "function newPage()\r\n\t{\r\n\t\t$this->_fields[] = array( '__PAGE__', $this->_pageCounter++ );\r\n\t}", "title": "" }, { "docid": "a9e59270425d2b866efdc3d3296f7768", "score": "0.5609238", "text": "public function getPageNumber(): int;", "title": "" }, { "docid": "3f1cdf86741e98ec20636487ca4007c5", "score": "0.56053704", "text": "function page() {\r\n return $GLOBALS['have_items']['page'];\r\n }", "title": "" }, { "docid": "ce4d6eb2c815bda079531c67aeeb108b", "score": "0.56028867", "text": "public function is_page(){\r\n\t\treturn true;\r\n\t}", "title": "" } ]
6997157bd65efbd019a0ed12a3679c03
Resets the pagination page resolver to the default ?page=1
[ { "docid": "5408f97a39d97320423ecba4999b5d76", "score": "0.7922548", "text": "public function resetPage()\n {\n Paginator::currentPageResolver(function()\n {\n return app('request')->input($this->defaultPage);\n });\n }", "title": "" } ]
[ { "docid": "f5fa79c81fa2e019087695d38d0b6faf", "score": "0.7119888", "text": "private function resetPage()\n {\n $this->getPaginator()->resetPage();\n }", "title": "" }, { "docid": "67354a7f506fc85a382360d87c3140d4", "score": "0.6640346", "text": "public function setCurrentPage(int $page): PaginatorInterface;", "title": "" }, { "docid": "c2eb36dfa36056bd345f0529ec4b217b", "score": "0.6389887", "text": "public function reset()\n {\n $this->page = 1;\n $this->page_limit_base = $this->page_limit;\n $this->search_sort_base = $this->search_sort;\n $this->search_order_base = $this->search_order;\n }", "title": "" }, { "docid": "9f66b033001d50b9869dfdeb24b7fd94", "score": "0.6129972", "text": "public function setPagination(int $currentPage, int $perPage=null) : Paginator;", "title": "" }, { "docid": "40512c36fc26c2c93688836f4f370f8c", "score": "0.6061133", "text": "public function getIndexDefaultPagination();", "title": "" }, { "docid": "e7c08c8b409ac5057b4a656d8542488b", "score": "0.59561986", "text": "public function rewind()\n {\n $this->currentPage = 1;\n\n $this->skipIgnoredPages();\n }", "title": "" }, { "docid": "30016cf906e9d3af36f3e7793a001c10", "score": "0.59302264", "text": "public function reset()\n {\n $this->page = 1;\n $this->perPage = null;\n $this->parsers = [];\n $this->sorts = [];\n $this->searchQuery = null;\n $this->rules = [\n 'page' => 'numeric',\n 'per_page' => 'numeric',\n 'sort' => 'string',\n 'q' => 'string',\n ];\n }", "title": "" }, { "docid": "0da4c812a456ecc2f5032f48fc519eee", "score": "0.5863058", "text": "public function setPageParameter($page = 'page')\n {\n Paginator::currentPageResolver(function() use($page)\n {\n return app('request')->input($page);\n });\n }", "title": "" }, { "docid": "72eb2def522c0ed189661aad9512f395", "score": "0.58596677", "text": "public function withDefaultPageSize($pageSize) {}", "title": "" }, { "docid": "3437a32c15e6af8ef1e4bebdadbe0cbe", "score": "0.5845837", "text": "public function setPageParameterName(string $name) : Paginator;", "title": "" }, { "docid": "ad8922d1e5caaf3ee4d4c6f93df8a348", "score": "0.5799432", "text": "public static function dfd_pagination() {\n\t\t\tglobal $wp_query, $portfolio_pagination_type;\n\n\t\t\tif($wp_query->max_num_pages > 1) {\n\t\t\t\tif (strcmp($portfolio_pagination_type, '1') === 0) {\n\t\t\t\t\tself::dfd_ajax_pagination();\n\t\t\t\t} elseif(strcmp($portfolio_pagination_type, '2') === 0) {\n\t\t\t\t\tself::dfd_lazy_load_pagination();\n\t\t\t\t} else {\n\t\t\t\t\tself::dfd_default_pagination();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "1c144f51ef31c97014a0a20c2ec02f88", "score": "0.5779452", "text": "public function setCurrentPage(int $currentPage): PaginationSpecification;", "title": "" }, { "docid": "772044a85a6cb3aad408cb3062a8ad93", "score": "0.570699", "text": "public function rewind()\n {\n $this->currentPage = 1;\n }", "title": "" }, { "docid": "215aae29496b3d721df7cef3a4c79b4d", "score": "0.5696178", "text": "private function setDefaults() {\n\t\t//set it to default (1)\n\t\tif (($this->currentpage == null) || ($this->currentpage < 1)) {\n\t\t\t$this->currentpage = 1;\n\t\t}\n\t\t//if limit is set to null set it to default (20)\n\t\tif (($this->limit == null)) {\n\t\t\t$this->limit = 20;\n\t\t\t//if limit is any number less than 1 then set it to 0 for displaying\n\t\t\t//items without limit\n\t\t} else if ($this->limit < 1) {\n\t\t\t$this->limit = 0;\n\t\t}\n\t}", "title": "" }, { "docid": "e369c88f5f73aa112fa9a51b8986861b", "score": "0.5614525", "text": "public function setFirstPage ( $arg ) {\n\t\t\t$this->firstPage = $arg;\n\t\t}", "title": "" }, { "docid": "7c68a205e1250ddd75ad155b1534cedd", "score": "0.55918664", "text": "function setPage( $page = 1 ) {\n $this->params['page'] = $page;\n }", "title": "" }, { "docid": "e7560b181759ba7183ff80a0d70cf3e4", "score": "0.5590217", "text": "private function addPaginationParams()\n {\n $resolver = new OptionsResolver();\n\n $resolver->setDefaults(array(\n 'page' => '1',\n 'limit' => '20',\n 'sort' => null,\n 'filter' => [],\n 'filteroperator' => [],\n ));\n\n $resolver->setAllowedTypes('page', ['NULL', 'string']);\n $resolver->setAllowedTypes('limit', ['NULL', 'string']);\n $resolver->setAllowedTypes('sort', ['NULL', 'string']);\n $resolver->setAllowedTypes('filter', ['NULL', 'array']);\n $resolver->setAllowedTypes('filteroperator', ['NULL', 'array']);\n\n $queryParams = $this->request->getQueryParams();\n\n return $resolver->resolve(array_filter([\n 'page' => isset($queryParams['page']) ? $queryParams['page'] : '',\n 'limit' => isset($queryParams['limit']) ? $queryParams['limit'] : '',\n 'sort' => isset($queryParams['sort']) ? $queryParams['sort'] : '',\n 'filter' => isset($queryParams['filter']) ? $queryParams['filter'] : '',\n 'filteroperator' => isset($queryParams['filteroperator']) ? $queryParams['filteroperator'] : '',\n ]));\n }", "title": "" }, { "docid": "30d47b8815399553ca4c51a0629334ac", "score": "0.55774593", "text": "function remove_page_from_query_string($query_string)\n{ \n if ($query_string['name'] == 'page' && isset($query_string['page'])) {\n unset($query_string['name']);\n // 'page' in the query_string looks like '/2', so i'm spliting it out\n list($delim, $page_index) = split('/', $query_string['page']);\n $query_string['paged'] = $page_index;\n } \n return $query_string;\n}", "title": "" }, { "docid": "3ccc3e2dcd09e2a49eab65599ddd4823", "score": "0.5571493", "text": "public function paginate();", "title": "" }, { "docid": "ab59d68e1d7e964cfc16211b9eb7fe41", "score": "0.55622816", "text": "public function setPage( $num = 1 ){\n\t\t$this->page = $num;\n\t}", "title": "" }, { "docid": "4bccdfa42e9e3b1c52023bc05b6dba60", "score": "0.5554342", "text": "public function testCustomFindPaginationDefaultNoAlias() {\n\t\t$this->Crud->executeAction('index');\n\n\t\t$this->assertEquals('all', $this->controller->paginate[0]);\n\t\t$this->assertEquals('all', $this->controller->paginate['findType']);\n\t}", "title": "" }, { "docid": "24a015621e553ea8075382061d797975", "score": "0.55500525", "text": "public function setPage($currentObject = null)\n {\n $rank = intval($this->getSqlRanks($currentObject));\n $perPage = $this->getMaxPerPage();\n if ($this->getMaxPerPage())\n {\n if ($rank % $this->getMaxPerPage() == 0)\n {\n $this->page = intval($rank / $perPage);\n }\n else\n {\n $this->page = floor($rank / $perPage) + 1;\n }\n $this->page = intval($this->page);\n }\n else\n {\n $this->page = 1;\n }\n\n if ($this->page <= 0)\n {\n // set first page, which depends on a maximum set\n $this->page = $this->getMaxPerPage() ? 1 : 0;\n }\n }", "title": "" }, { "docid": "50990546d6210263ad524ef4ae369aa4", "score": "0.5546669", "text": "public static function setPaginationPage(int $page): void\n {\n self::$pagination['page'] = $page;\n }", "title": "" }, { "docid": "78951a789d7d85b56f6febec6ae34c85", "score": "0.5538301", "text": "public function setNextPage()\n\t{\n\t\tif($this->pg < $this->num_of_pages){\n $this->next_pg = $this->pg + 1;\n } elseif($this->pg == $this->num_of_pages){\n if($this->around_the_world){\n $this->next_pg = 1;\n } else {\n $this->next_pg = NULL;\n }\n }\n\t}", "title": "" }, { "docid": "66fde07c18fc659a86110bcc51897746", "score": "0.55294675", "text": "public function setPaging($paging);", "title": "" }, { "docid": "2ff46ecbe25464280dd66177cf73fd7c", "score": "0.5520145", "text": "protected function _initPaginator(){\n Zend_Paginator::setDefaultScrollingStyle(Zend_Registry::get('config')->paginator->scrolling_style);\n Zend_View_Helper_PaginationControl::setDefaultViewPartial(\n 'default.phtml'\n );\n }", "title": "" }, { "docid": "68137d6dd035ace21019ed9dc0925886", "score": "0.5510564", "text": "public function getPaginate() {}", "title": "" }, { "docid": "2add6c6c65a6d361c6ad7df3df0ad069", "score": "0.55083746", "text": "protected function _initPaginator() {\n Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');\n }", "title": "" }, { "docid": "30d2fdb595096c4ee955877ff8ed3df7", "score": "0.5508103", "text": "protected function preparePageIterator(): void\n {\n $this->currentPage();\n if (is_null($this->currentResponse)) {\n return;\n }\n\n $this->perPage = self::PAGE_LIMIT;\n $this->totalCount = 0;\n $this->firstPage = 1;\n // At least the first page.\n $this->lastPage = 1;\n // The page is 1-based, but the index is 0-based, more common in loops.\n $this->currentPage = 1;\n $this->currentIndex = 0;\n $this->isValid = true;\n }", "title": "" }, { "docid": "b93eb8218051ca73c4c3863f4a6bda86", "score": "0.5463595", "text": "public function pagination()\n {\n }", "title": "" }, { "docid": "b93eb8218051ca73c4c3863f4a6bda86", "score": "0.5463595", "text": "public function pagination()\n {\n }", "title": "" }, { "docid": "f081dc18172d2ebd61f63dc7edd4d2da", "score": "0.5461691", "text": "public function pagination() {\n\n\t\t\n\t}", "title": "" }, { "docid": "75c9361db0953931a68d87a2f405a1bb", "score": "0.5423746", "text": "function Reset()\n\t{\t$this->pages = array();\n\t}", "title": "" }, { "docid": "c2c1b3a8eaed4735ed1116b326e3f695", "score": "0.542036", "text": "public function pagination(): ?Paginator\n {\n return PagePagination::make();\n }", "title": "" }, { "docid": "29ca74cf5feaed93b1ca653e5f47896e", "score": "0.54095507", "text": "function resetPage() {\n $_GET['page'] = 1;\n\n return true;\n}", "title": "" }, { "docid": "0ecb16efc7ae44fbddacc3bfcf9c7189", "score": "0.5408516", "text": "public function paginated($paginated = null);", "title": "" }, { "docid": "7c08fd73803d3cd823c21acfcd635807", "score": "0.5395537", "text": "public function updatedItems(){\n $this->page = 1;\n }", "title": "" }, { "docid": "a2e3a2f469206e46ae921c9b6b0de987", "score": "0.53907114", "text": "public static function dfd_default_pagination() {\n\t\t\tglobal $wp_query, $dfd_pagination_style;\n\t\t\t\n\t\t\t$page = get_query_var('paged');\n\t\t\t$paged = ($page > 1) ? $page : 1;\n\n\t\t\t$prev_link = '<span>'.esc_html__('Prev','dfd-native').'</span><i class=\"dfd-socicon-arrow-left-01\"></i>';\n\t\t\t$next_link = '<span>'.esc_html__('Next','dfd-native').'</span><i class=\"dfd-socicon-arrow-right-01\"></i>';\n\t\t\tif($paged > 1) {\n\t\t\t\t$prev_link = '<a href=\"'.esc_url(get_previous_posts_page_link()).'\">'.$prev_link.'</a>';\n\t\t\t}\n\t\t\t$prev_link = '<div class=\"dfd-prev-page\">'.$prev_link.'</div>';\n\t\t\t\n\t\t\t$next_link_url = get_next_posts_page_link($wp_query->max_num_pages);\n\t\t\tif($next_link_url) {\n \t\t\t\t$next_link = '<a href=\"'.esc_url($next_link_url).'\">'.$next_link.'</a>';\n\t\t\t}\n\t\t\t$next_link = '<div class=\"dfd-next-page\">'.$next_link.'</div>';\n\t\t\t\n\t\t\tif(empty($dfd_pagination_style)) {\n\t\t\t\t$dfd_pagination_style = '1';\n\t\t\t}\n\t\t\t\n\t\t\t$big = 9999999999;\n\t\t\t\n\t\t\t$pagination_class = 'dfd-pagination-style-'.$dfd_pagination_style;\n\n\t\t\t$paginate_links = get_the_posts_pagination(array(\n\t\t\t\t'mid_size' => 5,\n\t\t\t\t'prev_next'\t\t\t => false,\n\t\t\t\t'type'\t\t\t\t => 'list',\n\t\t\t\t'prev_text' => '',\n\t\t\t\t'next_text' => '',\n\t\t\t\t'screen_reader_text' => '',\n\t\t\t));\n\t\t\t\n\t\t\tif ( $paginate_links ) {\n\t\t\t\techo '<nav class=\"page-nav text-center\">';\n\t\t\t\t\techo '<div class=\"dfd-pagination '.esc_attr($pagination_class).'\">';\n\t\t\t\t\t\techo wp_kses( $prev_link , array(\n\t\t\t\t\t\t\t\t\t'a' => array(\n\t\t\t\t\t\t\t\t\t\t'href' => array(),\n\t\t\t\t\t\t\t\t\t\t'title' => array(),\n\t\t\t\t\t\t\t\t\t\t'target' => array(),\n\t\t\t\t\t\t\t\t\t\t'rel' => array()\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'div' => array(\n\t\t\t\t\t\t\t\t\t\t'class' => array()\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'span' => array(),\n\t\t\t\t\t\t\t\t\t'i' => array(\n\t\t\t\t\t\t\t\t\t\t'class' => array()\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\techo ($dfd_pagination_style != '5') ? $paginate_links : '';\n\t\t\t\t\t\techo wp_kses( $next_link , array(\n\t\t\t\t\t\t\t\t\t'a' => array(\n\t\t\t\t\t\t\t\t\t\t'href' => array(),\n\t\t\t\t\t\t\t\t\t\t'title' => array(),\n\t\t\t\t\t\t\t\t\t\t'target' => array(),\n\t\t\t\t\t\t\t\t\t\t'rel' => array()\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'div' => array(\n\t\t\t\t\t\t\t\t\t\t'class' => array()\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'span' => array(),\n\t\t\t\t\t\t\t\t\t'i' => array(\n\t\t\t\t\t\t\t\t\t\t'class' => array()\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t));\n\t\t\t\t\techo '</div><!--// end .pagination -->';\n\t\t\t\techo '</nav>';\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "4db6f02ac9b7226e7a9727ecbd88e29d", "score": "0.53594214", "text": "public function resetPagingControl()\n {\n // Per RFC 2696, to abandon a paged search you should send a size of 0 along with the cookie used in the search.\n // However, testing this it doesn't seem to completely work. Perhaps a PHP bug?\n if (!@ldap_control_paged_result($this->connection->getResource(), 0, false, $this->cookie)) {\n throw new LdapConnectionException(sprintf(\n 'Unable to reset paged results control for read operation: %s',\n $this->connection->getLastError()\n ));\n }\n }", "title": "" }, { "docid": "dbb816fe83efc5eae2a43d7887aaa4be", "score": "0.53588784", "text": "function nightingale_pagination() {\n global $wp_query, $wp_rewrite;\n\n // Don't print empty markup if there's only one page.\n if ( $wp_query->max_num_pages < 2 ) {\n return;\n }\n\n $paged = get_query_var( 'paged' ) ? intval( get_query_var( 'paged' ) ) : 1;\n $pagenum_link = html_entity_decode( get_pagenum_link() );\n $query_args = array();\n $url_parts = explode( '?', $pagenum_link );\n\n if ( isset( $url_parts[1] ) ) {\n wp_parse_str( $url_parts[1], $query_args );\n }\n\n $pagenum_link = remove_query_arg( array_keys( $query_args ), $pagenum_link );\n $pagenum_link = trailingslashit( $pagenum_link ) . '%_%';\n\n $format = $wp_rewrite->using_index_permalinks() && ! strpos( $pagenum_link, 'index.php' ) ? 'index.php/' : '';\n $format .= $wp_rewrite->using_permalinks() ? user_trailingslashit( $wp_rewrite->pagination_base . '/%#%', 'paged' ) : '?paged=%#%';\n\n // Set up paginated links.\n $links = nightingale_paginate_links(\n array(\n 'base' => $pagenum_link,\n 'format' => $format,\n 'total' => $wp_query->max_num_pages,\n 'current' => $paged,\n 'mid_size' => 1,\n 'add_args' => array_map( 'urlencode', $query_args ),\n 'prev_text' => __( 'Previous', 'nightingale-2-0' ),\n 'next_text' => __( 'Next', 'nightingale-2-0' ),\n )\n );\n\n if ( $links ) :\n\n ?>\n <nav class=\"nhsuk-pagination\" role=\"navigation\" aria-label=\"Pagination\">\n <ul class=\"nhsuk-list nhsuk-pagination__list\">\n <?php echo $links; ?>\n\n </ul>\n </nav>\n <?php\n endif;\n }", "title": "" }, { "docid": "d83f89c0230de339137e6e8ba683d7e6", "score": "0.5353597", "text": "public function scopePaginateDefault($query)\n\t{\n\t\treturn $query->paginate(Fractal::getSetting('Articles Listed Per Page', 10));\n\t}", "title": "" }, { "docid": "8908b3ed21de92c37af023ed8394d2d1", "score": "0.5347426", "text": "public function setPageNumber($pageNumber);", "title": "" }, { "docid": "e6cb89867b25e76777215e4d621153ce", "score": "0.53232723", "text": "public function togglePagination(){\n\t\t$this->_paginated = !$this->_paginated;\n\t}", "title": "" }, { "docid": "3ea2f002fa12910340cd6780f8706d2f", "score": "0.53211266", "text": "public function setPage(String $page='1') {\n $this->params['page'] = $page;\n }", "title": "" }, { "docid": "acf31e6a7be75d36c2332ba68420074f", "score": "0.5319051", "text": "public function setPageName(string $pageName): PaginationSpecification;", "title": "" }, { "docid": "ef29b8e7fb86536f407655546eac2d7d", "score": "0.5313704", "text": "public function paginationAction()\n {\n $pageNumber = (int)$_POST['page'];\n $baseUrl = $this->getRequest()->getBaseUrl().'/items/browse/';\n \t$request = Zend_Controller_Front::getInstance()->getRequest(); \n \t$requestArray = $request->getParams(); \n if($currentPage = $this->current) {\n $paginationUrl = $baseUrl.$currentPage;\n } else {\n $paginationUrl = $baseUrl;\n }\n }", "title": "" }, { "docid": "7e9e2807ac8b2dce3deb0d250ce9ae5d", "score": "0.531043", "text": "public function setPerPage($perPage);", "title": "" }, { "docid": "7e9e2807ac8b2dce3deb0d250ce9ae5d", "score": "0.531043", "text": "public function setPerPage($perPage);", "title": "" }, { "docid": "3d1cf38f9129a97cdbdbf331a87049b7", "score": "0.5303717", "text": "public function resetPageCount() {\n $pageN = 0;\n foreach ($listeners as &$listener) {\n $listener->resetPageCount();\n }\n }", "title": "" }, { "docid": "779e0092fe52532eb60c1f2301da6074", "score": "0.5303262", "text": "public function setCurrentPage($page)\n {\n if (is_null($this->total)) {\n $this->total = (int)$this->results->getTotal();\n }\n if ((int)$page != $page) {\n throw new \\InvalidArgumentException('Invalid argument $page, expected integer number, got ' . gettype($page));\n }\n $this->numPages = (int)ceil($this->total / $this->itemsPerPage);\n $this->currentPage = min(max(0, $this->getLast()), max($this->getFirst(), $page));\n\n $this->offset = $this->itemsPerPage * $this->currentPage;\n $this->lengthOfRange = $this->itemsPerPage;\n\n if ($this->offset + $this->lengthOfRange > $this->total) {\n $this->lengthOfRange = max(0, $this->total - $this->offset);\n }\n\n $this->results->setRange($this->offset, $this->lengthOfRange);\n }", "title": "" }, { "docid": "d393c0f001563f6d9b7964aa26e1c512", "score": "0.529466", "text": "public function setPage(int $page) {\n $this->page = max($page, -1);\n $this->modified = true;\n }", "title": "" }, { "docid": "bc8dc59bd2ecfca280879d1fbc633581", "score": "0.52841026", "text": "protected function collectPagination()\n {\n if (!is_array($this->pagination)) {\n $this->pagination = [\n $this->pagination,\n Wa::getThemesView(config('webarq.system.themes', 'default'), 'common.pagination', false)\n ];\n }\n\n }", "title": "" }, { "docid": "c866d029b60788d86462585532372214", "score": "0.52728087", "text": "public function setRecPerPage()\n {\n /* Set the cookie name. */\n $recPerPage = router::getInstance()->request->numPerPage;\n reset($this->recPerPageMap);\n list($key,$value)=each($this->recPerPageMap);\n $this->recPerPage = ($recPerPage > 0) ? $recPerPage : $value;\n }", "title": "" }, { "docid": "2d8ab3ab2f5500f6fac37f02349297a8", "score": "0.52726793", "text": "public function setCurrentPage($intValue = NULL) {\r\n\t\tif (is_null($intValue)) {\r\n\t\t\t$intPage = Request::get(\"page\", 1);\r\n\t\t\tif ($intPage > $this->pageCount() || $intPage < 1) $intPage = 1;\r\n\r\n\t\t\t$this->__currentPage = $intPage;\r\n\t\t} else {\r\n\t\t\t$this->__currentPage = $intValue;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b69985be6c37603684688f4e6cbaef8c", "score": "0.5268517", "text": "public function simplePaginate($perPage = 12, $currentPage = null): Paginator\n {\n $currentPage = $currentPage ?? request()->get('page', 1);\n $path = request()->path();\n $items = array_slice($this->all(), ($currentPage - 1) * $perPage);\n\n return (new \\Illuminate\\Pagination\\Paginator($items, $perPage, $currentPage))->setPath($path);\n }", "title": "" }, { "docid": "92eeb5d42522ce3fe5e8f29590a15558", "score": "0.52660537", "text": "public function page($page = 1)\n {\n $this->index($page);\n }", "title": "" }, { "docid": "8d821b3e41052d15a5375a93b6a66b98", "score": "0.5262688", "text": "public function setItemsPerPage(int $items): PaginatorInterface;", "title": "" }, { "docid": "e6bb1298f3bb52829e051dd13b53e555", "score": "0.52427924", "text": "protected function currentPage(): void\n {\n $this->currentResponse = [];\n $this->setInnerIterator(new ArrayIterator($this->currentResponse));\n }", "title": "" }, { "docid": "58ecf9c06a9859943b0012716de25d84", "score": "0.52412057", "text": "protected function _initPaginator()\n {\n Zend_Paginator::setDefaultScrollingStyle('Sliding');\n Zend_View_Helper_PaginationControl::setDefaultViewPartial(array(\n 'pagination/search.tpl',\n 'core'\n ));\n }", "title": "" }, { "docid": "7569e75a1ae693180d5994bf969b7d87", "score": "0.5241201", "text": "public function first_page()\n {\n return $this->url . query_string(array('page' => '1'));\n }", "title": "" }, { "docid": "994890d7d469447d065d6a21394bba38", "score": "0.52405834", "text": "public function rewind() {\n $this->_current = ($this->_page * $this->_pageSize) - $this->_pageSize;\n }", "title": "" }, { "docid": "5541119db8bb6132a39e3770d0df027a", "score": "0.5238168", "text": "function paginationmode ($pgm){\r\n\t\t$pgm=strtolower($pgm);\r\n\t\tif (!in_array($pgm, array(\"links\",\"select\",\"mixed\"))) $pgm=\"mixed\";\r\n\t\t$this->pagination=$pgm;\r\n\t}", "title": "" }, { "docid": "cc21047de908aaa52713875660338ec3", "score": "0.52370363", "text": "function paginate($pages = null, $limit = null, $page = null) : \\Papyrus\\Content\\Pagination\n {\n return app('content')->paginate($pages, $limit, $page);\n }", "title": "" }, { "docid": "2aaad2ac29168146cd0cd6910b4590bd", "score": "0.5219358", "text": "public function getFirstPage(): ?int;", "title": "" }, { "docid": "4fede6d4c3d1ecb13d97cc0d0415e3ef", "score": "0.5194777", "text": "function amans199_numbering_pagenation() {\n global $wp_query;\n $all_pages = $wp_query->max_num_pages;\n $current_page = max(1, get_query_var('paged'));\n if ($all_pages > 1) {\n return paginate_links(array(\n 'base' => get_pagenum_link() . '%_%',\n 'format' => 'page/%#%',\n 'current' => $current_page,\n 'total' => $all_pages\n ));\n }\n \n}", "title": "" }, { "docid": "1c32122ee914d61011908e25c00f0acf", "score": "0.5193659", "text": "public function customPaginate(){\n\n }", "title": "" }, { "docid": "a8208ab32ddd345d71de5eefe9e50b12", "score": "0.5190526", "text": "public function setPage($page): Pagination\n {\n $this->page = (int) $page;\n $this->_init();\n\n return $this;\n }", "title": "" }, { "docid": "c471a3e9cf8f803b3c35b0169b5e7dc8", "score": "0.5185113", "text": "function single_paginate_links( $args = '' ) {\n\tglobal $wp_query, $wp_rewrite;\n\n\t// Setting up default values based on the current URL.\n\t$pagenum_link = html_entity_decode( get_pagenum_link() );\n\t$url_parts = explode( '?', $pagenum_link );\n\n\t// Get max pages and current page out of the current query, if available.\n\t$total = isset( $wp_query->max_num_pages ) ? $wp_query->max_num_pages : 1;\n\t$current = get_query_var( 'paged' ) ? intval( get_query_var( 'paged' ) ) : 1;\n\n\t// Append the format placeholder to the base URL.\n\t$pagenum_link = trailingslashit( $url_parts[0] ) . '%_%';\n\n\t// URL base depends on permalink settings.\n\t$format = $wp_rewrite->using_index_permalinks() && ! strpos( $pagenum_link, 'index.php' ) ? 'index.php/' : '';\n\t$format .= $wp_rewrite->using_permalinks() ? user_trailingslashit( $wp_rewrite->pagination_base . '/%#%', 'paged' ) : '?paged=%#%';\n\n\t$defaults = array(\n\t\t'base' => $pagenum_link, // CKECK http://example.com/all_posts.php%_% : %_% is replaced by format (below) !\n\t\t'format' => $format, // \"?page=%#%\" \"%#%\" is replaced by the page number !\n\t\t'total' => $total,\n\t\t'current' => $current,\n\t\t'show_all' => false,\n\t\t'prev_next' => true,\n\t\t'prev_text' => __( '&laquo; Previous' ),\n\t\t'next_text' => __( 'Next &raquo;' ),\n\t\t'end_size' => 1,\n\t\t'mid_size' => 2,\n\t\t'type' => 'plain',\n\t\t'add_args' => array(), // CHECK array of query args to add !\n\t\t'add_fragment' => '',\n\t\t'before_page_number' => '',\n\t\t'after_page_number' => '',\n\t);\n\n\t$args = wp_parse_args( $args, $defaults );\n\n\tif ( ! is_array( $args['add_args'] ) ) {\n\t\t$args['add_args'] = array();\n\t}\n\n\t// Merge additional query vars found in the original URL into 'add_args' array.\n\tif ( isset( $url_parts[1] ) ) {\n\t\t// Find the format argument.\n\t\t$format = explode( '?', str_replace( '%_%', $args['format'], $args['base'] ) );\n\t\t$format_query = isset( $format[1] ) ? $format[1] : '';\n\t\twp_parse_str( $format_query, $format_args );\n\n\t\t// Find the query args of the requested URL.\n\t\twp_parse_str( $url_parts[1], $url_query_args );\n\n\t\t// Remove the format argument from the array of query arguments, to avoid overwriting custom format.\n\t\tforeach ( $format_args as $format_arg => $format_arg_value ) {\n\t\t\tunset( $url_query_args[ $format_arg ] );\n\t\t}\n\n\t\t$args['add_args'] = array_merge( $args['add_args'], urlencode_deep( $url_query_args ) );\n\t}\n\n\t// Who knows what else people pass in $args !\n\t$total = (int) $args['total'];\n\tif ( $total < 2 ) {\n\t\treturn;\n\t}\n\t$current = (int) $args['current'];\n\t$end_size = (int) $args['end_size']; // Out of bounds? Make it the default.\n\tif ( $end_size < 1 ) {\n\t\t$end_size = 1;\n\t}\n\t$mid_size = (int) $args['mid_size'];\n\tif ( $mid_size < 0 ) {\n\t\t$mid_size = 2;\n\t}\n\t$add_args = $args['add_args'];\n\t$r = '';\n\t$page_links = array();\n\t$dots = false;\n\n\tif ( $args['prev_next'] && $current && 1 < $current ) :\n\t\t$link = str_replace( '%_%', 2 == $current ? '' : $args['format'], $args['base'] );\n\n\t\t// If the last character of the permalink setting is anything other than a slash, add a slash !\n\t\t$link = add_slash_before_page_num( $link );\n\n\t\tif ( is_preview() ) {\n\t\t\tif ( is_perm_trailingslash() ) {\n\t\t\t\t$target = '%#%';\n\t\t\t} else {\n\t\t\t\t$target = '/%#%';\n\t\t\t}\n\t\t} else {\n\t\t\t$target = '%#%';\n\t\t}\n\n\t\t$link = str_replace( $target, $current - 1, $link );\n\n\t\t// Add code\n\t\t// For Plugin \"Public Post Preview\" !\n\t\tif ( isset( $_GET['p'] ) && isset( $_GET['_ppp'] ) ) {\n\t\t\t$link = str_replace( '&paged=1', '', $link );\n\t\t} else {\n\t\t\tif ( is_perm_trailingslash() ) {\n\t\t\t\t$target = '/1/';\n\t\t\t\t$replaced = '/';\n\t\t\t} else {\n\t\t\t\t$target = '/1';\n\t\t\t\t$replaced = '';\n\t\t\t}\n\t\t\t$link = str_replace( $target, $replaced, $link );\n\t\t}\n\n\t\tif ( $add_args ) {\n\t\t\t$link = add_query_arg( $add_args, $link );\n\t\t}\n\t\t$link .= $args['add_fragment'];\n\n\t\t/**\n\t\t * Filter the paginated links for the given archive pages.\n\t\t *\n\t\t * @since 3.0.0\n\t\t *\n\t\t * @param string $link The paginated link URL.\n\t\t */\n\t\t$page_links[] = '<a class=\"prev page-numbers\" href=\"' . esc_url( apply_filters( 'paginate_links', $link ) ) . '\">' . $args['prev_text'] . '</a>';\n\tendif;\n\tfor ( $n = 1; $n <= $total; $n++ ) :\n\t\tif ( $n == $current ) :\n\t\t\t$page_links[] = \"<span class='page-numbers current'>\" . $args['before_page_number'] . number_format_i18n( $n ) . $args['after_page_number'] . '</span>';\n\t\t\t$dots = true;\n\t\telse :\n\t\t\tif ( $args['show_all'] || ( $n <= $end_size || ( $current && $n >= $current - $mid_size && $n <= $current + $mid_size ) || $n > $total - $end_size ) ) :\n\t\t\t\t// Add code !\n\t\t\t\tif ( 1 == $n ) {\n\t\t\t\t\t// For Plugin \"Public Post Preview\" !\n\t\t\t\t\tif ( is_preview() ) {\n\t\t\t\t\t\t$link = str_replace( '&paged=%#%', '', $args['base'] );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ( is_perm_trailingslash() ) {\n\t\t\t\t\t\t\t$target = '%#%/';\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$target = '%#%';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$link = str_replace( $target, '', $args['base'] );\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$link = str_replace( '%_%', $args['format'], $args['base'] );\n\t\t\t\t}\n\n\t\t\t\tif ( ! is_preview() ) {\n\t\t\t\t\t// If the last character of the permalink setting is anything other than a slash, add a slash !\n\t\t\t\t\t\t$link = add_slash_before_page_num( $link );\n\t\t\t\t}\n\n\t\t\t\t\t$link = str_replace( '%#%', $n, $link );\n\t\t\t\tif ( $add_args ) {\n\t\t\t\t\t$link = add_query_arg( $add_args, $link );\n\t\t\t\t}\n\t\t\t\t\t$link .= $args['add_fragment'];\n\n\t\t\t\t\t/** This filter is documented in wp-includes/general-template.php */\n\t\t\t\t\t$page_links[] = \"<a class='page-numbers' href='\" . esc_url( apply_filters( 'paginate_links', $link ) ) . \"'>\" . $args['before_page_number'] . number_format_i18n( $n ) . $args['after_page_number'] . '</a>';\n\t\t\t\t\t$dots = true;\n\t\t\telseif ( $dots && ! $args['show_all'] ) :\n\t\t\t\t$page_links[] = '<span class=\"page-numbers dots\">' . __( '&hellip;' ) . '</span>';\n\t\t\t\t$dots = false;\n\t\t\tendif;\n\t\tendif;\n\tendfor;\n\tif ( $args['prev_next'] && $current && ( $current < $total || -1 == $total ) ) :\n\t\t$link = str_replace( '%_%', $args['format'], $args['base'] );\n\n\t\t// If the last character of the permalink setting is anything other than a slash, add a slash !\n\t\t$link = add_slash_before_page_num( $link );\n\n\t\tif ( is_preview() ) {\n\t\t\tif ( is_perm_trailingslash() ) {\n\t\t\t\t$target = '%#%';\n\t\t\t} else {\n\t\t\t\t$target = '/%#%';\n\t\t\t}\n\t\t} else {\n\t\t\t$target = '%#%';\n\t\t}\n\n\t\t$link = str_replace( $target, $current + 1, $link );\n\n\t\tif ( $add_args ) {\n\t\t\t$link = add_query_arg( $add_args, $link );\n\t\t}\n\t\t$link .= $args['add_fragment'];\n\n\t\t/** This filter is documented in wp-includes/general-template.php */\n\t\t$page_links[] = '<a class=\"next page-numbers\" href=\"' . esc_url( apply_filters( 'paginate_links', $link ) ) . '\">' . $args['next_text'] . '</a>';\n\tendif;\n\tswitch ( $args['type'] ) {\n\t\tcase 'array':\n\t\t\treturn $page_links;\n\n\t\tcase 'list':\n\t\t\t$r .= \"<ul class='page-numbers'>\\n\\t<li>\";\n\t\t\t$r .= join( \"</li>\\n\\t<li>\", $page_links );\n\t\t\t$r .= \"</li>\\n</ul>\\n\";\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\t$r = join( \"\\n\", $page_links );\n\t\t\tbreak;\n\t}\n\treturn $r;\n}", "title": "" }, { "docid": "9b8420ac4e154fab83d736fd0789130f", "score": "0.51672393", "text": "function setPage($page)\n {\n $page=intval($page);\n if($page <= 0)\n $page=1;\n else\n $this->_curpage=$page;\n }", "title": "" }, { "docid": "7b55bfaf09d1469ad9c909c7acfb26a8", "score": "0.5167031", "text": "public function _set_pagination_offset()\n {\n\n // Instantiate the CI super object so we have access to the uri class\n $CI = & get_instance();\n\n // parse uri\n preg_match('/\\/'.$this->pagination_selector.'(\\/)?([0-9]+)?$/i', $CI->uri->uri_string(), $matches);\n\n // Store pagination offset if it is set\n if (! empty($matches)) {\n\n // set uri based on matches\n $uri = substr($CI->uri->uri_string(), 0, strrpos($CI->uri->uri_string(), $matches[0]));\n\n // Get the segment offset for the pagination selector\n $segments = $CI->uri->segment_array();\n\n // Loop through segments to retrieve pagination offset\n foreach ($segments as $key => $value) {\n\n // Find the pagination_selector and work from there\n if ($value == $this->pagination_selector) {\n\n // Store pagination offset\n $this->offset = $CI->uri->segment($key + 1);\n\n // Store pagination segment\n $this->uri_segment = $key + 1;\n\n // Set base url for paging. This only works if the\n // pagination_selector and paging offset are AT THE END of\n // the URI!\n //$pos = strrpos($uri, $this->pagination_selector);\n $this->base_url = $CI->config->item('base_url') . $uri . '/' . $this->pagination_selector;\n }\n }\n } else { // Pagination selector was not found in URI string. So offset is 0\n $this->offset = 0;\n $this->uri_segment = 0;\n $this->base_url = $CI->config->item('base_url') . $CI->uri->uri_string() . '/' . $this->pagination_selector;\n }\n }", "title": "" }, { "docid": "70b7df00b14bc7ef7e4502de5a662e85", "score": "0.5164286", "text": "public function the_first_page() {\n Torque_Load_More_Helpers::render_page( $this->id, 1, $this->query_args, $this->loop_template_path );\n }", "title": "" }, { "docid": "939f322cc8550b75bdb07344d6b3e9a4", "score": "0.5163925", "text": "public function defaultPerPage()\n {\n return $this->default_per_page ?? 25;\n }", "title": "" }, { "docid": "7565ec3bfb4eaa047c6ff9eb4018488c", "score": "0.51602906", "text": "public function paginate ($limit, $offset = null);", "title": "" }, { "docid": "40038d05447a2687ee0523a2f7349eee", "score": "0.5155458", "text": "public function get_paged() {\n\t\treturn isset( $_GET['paged'] ) ? absint( $_GET['paged'] ) : 1;\n\t}", "title": "" }, { "docid": "d5814cebe9b9dcdf4e99006c500daa67", "score": "0.5150294", "text": "function all($paginate = null, $numberPerPage = null)\n {\n }", "title": "" }, { "docid": "fcf57159ac8c477e9eb0eebdb59f49f0", "score": "0.5144276", "text": "public function setPagination($pagination)\n {\n unset($pagination);\n return $this;\n }", "title": "" }, { "docid": "dbbb2faf07209e3d3b10b8c61b5553be", "score": "0.5143225", "text": "public function sortableResetPagination()\n\t{\n\t\treturn $this->sortable_reset_pagination;\n\t}", "title": "" }, { "docid": "99d1b9e9a00ef79d90379c257c12bbb5", "score": "0.51422244", "text": "protected function remapPagers()\n {\n return array_map(\n function ($pageEl) {\n return $pageEl->current;\n },\n $this->pagers\n );\n }", "title": "" }, { "docid": "e02875e2f9fad7a0fb79433a0679bc45", "score": "0.5141229", "text": "public function paginate(int $limit = null);", "title": "" }, { "docid": "ead40f6a72d0dd6e1f35198e5bdeda93", "score": "0.51347524", "text": "public function allWithPaginate(): object|null\n {\n return $this->select([\"*\"])->done(onlyOne: false, paginate: (object) [PERPAGE => 4, PAGE => Request::query(\"page\") ?? 1]) ?? null;\n }", "title": "" }, { "docid": "acb183393d5258e15abcd1aa42a7c5dd", "score": "0.5125846", "text": "public function setDefaultPaginator() :Collection\n {\n $args = [$this->all(), $this->total, $this->perPage, $this->currentPage];\n $paginator = new LengthAwarePaginator(...$args);\n\n $this->setPaginator($paginator);\n\n return $this;\n }", "title": "" }, { "docid": "2a9da0583ff36556fc188d55e1a6cdd0", "score": "0.5118758", "text": "public function index()\n {\n $this->page(1);\n }", "title": "" }, { "docid": "57680e3fd43411d33d67b1cb24ebad70", "score": "0.5115125", "text": "public function getPaginate()\n {\n }", "title": "" }, { "docid": "59a0a80ddce60cda21f0869746ec1a47", "score": "0.5112453", "text": "function wp_paginate($args = false) {\n\tglobal $wp_paginate;\n\t$wp_paginate->type = 'posts';\n\treturn $wp_paginate->paginate($args);\n}", "title": "" }, { "docid": "1447a5dcc368dbeee919d26e9281eaec", "score": "0.51120937", "text": "function cs_change_query_vars($query) {\n if (is_search() || is_archive() || is_author() || is_tax() || is_tag() || is_category() || is_home()) {\n if (empty($_GET['page_id_all']))\n $_GET['page_id_all'] = 1;\n $query->query_vars['paged'] = $_GET['page_id_all'];\n}\nreturn $query; // Return modified query variables\n}", "title": "" }, { "docid": "1447a5dcc368dbeee919d26e9281eaec", "score": "0.51120937", "text": "function cs_change_query_vars($query) {\n if (is_search() || is_archive() || is_author() || is_tax() || is_tag() || is_category() || is_home()) {\n if (empty($_GET['page_id_all']))\n $_GET['page_id_all'] = 1;\n $query->query_vars['paged'] = $_GET['page_id_all'];\n}\nreturn $query; // Return modified query variables\n}", "title": "" }, { "docid": "d5b7af0cf4d0fc79108267af74d284b6", "score": "0.511005", "text": "public function resolvePage()\n {\n // from within the original component mount run.\n return (int) request()->query('page', $this->page);\n }", "title": "" }, { "docid": "0537dec999f20146e9c3b6a16e4f6c9d", "score": "0.51069015", "text": "private function setDefaults()\n {\n if(!$this->pageNo) {\n $this->pageNo = isset($this->paginationDefaults['p']) ? $this->paginationDefaults['p'] : '';\n }\n if(!$this->sortBy) {\n $this->sortBy = isset($this->paginationDefaults['col']) ? $this->paginationDefaults['col'] : '';\n }\n if(!$this->orderBy) {\n $this->orderBy = isset($this->paginationDefaults['order']) ? $this->paginationDefaults['order'] : '';\n }\n if(!$this->searchTerm) {\n $this->searchTerm = isset($this->paginationDefaults['s']) ? $this->paginationDefaults['s'] : '';\n }\n if(!$this->filterTerm) {\n $this->filterTerm = isset($this->paginationDefaults['f']) ? $this->paginationDefaults['f'] : '';\n }\n }", "title": "" }, { "docid": "dd983382fb9fa198b97b44b067e79c7c", "score": "0.5105822", "text": "public function Action_FilterReset()\n {\n $this->Chunk_Init();\n\n $Filter = Zero_Filter::Factory($this->Model);\n $Filter->Reset();\n $Filter->Page = 1;\n\n $this->Chunk_View();\n return $this->View;\n }", "title": "" }, { "docid": "2344841a4e688fdf0206bcefb2280fa8", "score": "0.5098867", "text": "private function _paginate($per_page = null)\n\t{\n\t\t$total = $this->query->count();\n\n\t\t// The number of models to show per page may be specified as a static property\n\t\t// on the model. The models shown per page may also be overriden for the model\n\t\t// by passing the number into this method. If the models to show per page is\n\t\t// not available via either of these avenues, a default number will be shown.\n\t\tif (is_null($per_page))\n\t\t{\n\t\t\t$per_page = (property_exists(get_class($this), 'per_page')) ? static::$per_page : 20;\n\t\t}\n\n\t\treturn Paginator::make($this->for_page(Paginator::page($total, $per_page), $per_page)->get(), $total, $per_page);\n\t}", "title": "" }, { "docid": "7ff58ceab8c5cbb4a6cd8a69b7512fdf", "score": "0.5082112", "text": "public function homepagePagination(Request $request, EntityManagerInterface $em)\n {\n if ($request->isXmlHttpRequest()) {\n // Check the POST 'numberArticleLoad'\n $numberArticleLoad = htmlspecialchars($request->get('numberArticleLoad'));\n\n $items = $em\n ->getRepository(Item::class)\n ->listOfArticle($numberArticleLoad, $numberArticleLoad + 5);\n\n $req = json_encode($items);\n return new Response($req, 200);\n }\n }", "title": "" }, { "docid": "88b4bdaff0a7cf5d411e498c1f9094fd", "score": "0.50773597", "text": "protected function setPagination($query, $page, $limit) {\n\t\tif ($limit) {\n\t\t\t$query->setMaxResults($limit)->setFirstResult(($page - 1) * $limit);\n\t\t}\n\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "5a1f69983ed338db6131f6578076286c", "score": "0.5075163", "text": "public function allPagination(int $perPage = null)\n {\n //\n }", "title": "" }, { "docid": "ddaf5c066b384e766c25ec26471d354d", "score": "0.50650984", "text": "public function setPaginate($pageNumber, $pageSize) {\n return $this->setLimit($pageSize, ($pageNumber - 1) * $pageSize);\n }", "title": "" }, { "docid": "545718e5659d4fb1d3ac316771d27c31", "score": "0.50638044", "text": "protected function fetchPages()\n {\n if (null === $this->pages && !$this->loadPagesFromCache()) {\n $this->pages = $this->loadFromParser();\n $this->flattenPages($this->pages);\n $this->refreshCache();\n }\n }", "title": "" }, { "docid": "c1cceb2d3a6f3e8f0bb9c3224797b79b", "score": "0.5060111", "text": "function get_page_query() {\n global $paged;\n\n $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;\n return $paged;\n}", "title": "" }, { "docid": "14a5f19b610b1e1cbc923639e6e39e4a", "score": "0.50551635", "text": "public function updatingSearch() {\n $this->resetPage();\n }", "title": "" }, { "docid": "14a5f19b610b1e1cbc923639e6e39e4a", "score": "0.50551635", "text": "public function updatingSearch() {\n $this->resetPage();\n }", "title": "" }, { "docid": "919f9c7835b81aad147d580a9ef41840", "score": "0.50550455", "text": "public function setPerPage(int $perPage): PaginationSpecification;", "title": "" }, { "docid": "5d66e2bbf24b7ae9900983351a5eb3eb", "score": "0.50539654", "text": "function reset() { \n $this->results = Array(); \n $this->params = Array(); \n $this->_setDefaultParams(); \n }", "title": "" } ]
fdff4cc60d6f45b23b11f49ed1d47fc6
Returns the number of rows matching criteria, joining the related PekerjaanRelatedByPekerjaanIdIbu table
[ { "docid": "421df53e255e62ea0c8587de3d405a46", "score": "0.6004489", "text": "public static function doCountJoinAllExceptPekerjaanRelatedByPekerjaanIdIbu(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(PesertaDidikPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n PesertaDidikPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY should not affect count\n\n // Set the correct dbName\n $criteria->setDbName(PesertaDidikPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(PesertaDidikPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n \n $criteria->addJoin(PesertaDidikPeer::KEBUTUHAN_KHUSUS_ID_AYAH, KebutuhanKhususPeer::KEBUTUHAN_KHUSUS_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KEBUTUHAN_KHUSUS_ID_IBU, KebutuhanKhususPeer::KEBUTUHAN_KHUSUS_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KEWARGANEGARAAN, NegaraPeer::NEGARA_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::ID_LAYAK_PIP, AlasanLayakPipPeer::ID_LAYAK_PIP, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::ID_BANK, BankPeer::ID_BANK, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KODE_WILAYAH, MstWilayahPeer::KODE_WILAYAH, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KEBUTUHAN_KHUSUS_ID, KebutuhanKhususPeer::KEBUTUHAN_KHUSUS_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::AGAMA_ID, AgamaPeer::AGAMA_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PENGHASILAN_ID_AYAH, PenghasilanPeer::PENGHASILAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::JENIS_TINGGAL_ID, JenisTinggalPeer::JENIS_TINGGAL_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::ALAT_TRANSPORTASI_ID, AlatTransportasiPeer::ALAT_TRANSPORTASI_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::JENJANG_PENDIDIKAN_IBU, JenjangPendidikanPeer::JENJANG_PENDIDIKAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PENGHASILAN_ID_WALI, PenghasilanPeer::PENGHASILAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::JENJANG_PENDIDIKAN_AYAH, JenjangPendidikanPeer::JENJANG_PENDIDIKAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PENGHASILAN_ID_IBU, PenghasilanPeer::PENGHASILAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::JENJANG_PENDIDIKAN_WALI, JenjangPendidikanPeer::JENJANG_PENDIDIKAN_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" } ]
[ { "docid": "2f4225052f8878e45164bd3624be26b0", "score": "0.6770873", "text": "public static function doCountJoinPekerjaanRelatedByPekerjaanIdIbu(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(PesertaDidikPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n PesertaDidikPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count\n\n // Set the correct dbName\n $criteria->setDbName(PesertaDidikPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(PesertaDidikPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $criteria->addJoin(PesertaDidikPeer::PEKERJAAN_ID_IBU, PekerjaanPeer::PEKERJAAN_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "b66176db654ac320d748b8937fb6f47f", "score": "0.6629821", "text": "public static function doCountJoinPekerjaanRelatedByPekerjaanIdAyah(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(PesertaDidikPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n PesertaDidikPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count\n\n // Set the correct dbName\n $criteria->setDbName(PesertaDidikPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(PesertaDidikPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $criteria->addJoin(PesertaDidikPeer::PEKERJAAN_ID_AYAH, PekerjaanPeer::PEKERJAAN_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "f58b5cd0466c34468e7a213dec8d31fd", "score": "0.6600261", "text": "public static function doCountJoinPekerjaanRelatedByPekerjaanIdWali(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(PesertaDidikPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n PesertaDidikPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count\n\n // Set the correct dbName\n $criteria->setDbName(PesertaDidikPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(PesertaDidikPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $criteria->addJoin(PesertaDidikPeer::PEKERJAAN_ID_WALI, PekerjaanPeer::PEKERJAAN_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "7375ac835b143b0dc727db0b791ed291", "score": "0.65685666", "text": "public function countti()\n \t{\n \t\treturn $this->db->get_where('mahasiswa', array('prodi' => 'Teknik Informatika'))->num_rows();\n \t}", "title": "" }, { "docid": "c3bb2b65daaf28404c017ee8e9bbe42f", "score": "0.6507302", "text": "public static function doCountJoinPekerjaanRelatedByPekerjaanId(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(PesertaDidikPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n PesertaDidikPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count\n\n // Set the correct dbName\n $criteria->setDbName(PesertaDidikPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(PesertaDidikPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $criteria->addJoin(PesertaDidikPeer::PEKERJAAN_ID, PekerjaanPeer::PEKERJAAN_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "b8f7d697dbac049c6d2304e8213ab983", "score": "0.64678806", "text": "public static function doCountJoinPenghasilanRelatedByPenghasilanIdIbu(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(PesertaDidikPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n PesertaDidikPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count\n\n // Set the correct dbName\n $criteria->setDbName(PesertaDidikPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(PesertaDidikPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $criteria->addJoin(PesertaDidikPeer::PENGHASILAN_ID_IBU, PenghasilanPeer::PENGHASILAN_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "2dd9128064a7138b56523e93540cb388", "score": "0.63920796", "text": "public static function doCountJoinPenghasilanRelatedByPenghasilanIdAyah(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(PesertaDidikPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n PesertaDidikPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count\n\n // Set the correct dbName\n $criteria->setDbName(PesertaDidikPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(PesertaDidikPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $criteria->addJoin(PesertaDidikPeer::PENGHASILAN_ID_AYAH, PenghasilanPeer::PENGHASILAN_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "5ed9242ede2d9881b5c420cc520482d8", "score": "0.63312435", "text": "public function getJlhPelanggan()\n {\n $this -> st -> query(\"SELECT COUNT(id) FROM tbl_pelanggan;\");\n $q = $this -> st -> querySingle();\n return $q['COUNT(id)'];\n }", "title": "" }, { "docid": "5ecff7ba0fa42ca8eecab26ff79bf39a", "score": "0.63026613", "text": "public function count() : int {\n\t $this->whereStr = '';\n\t foreach ($this->whereArray as $rel) {\n\t $this->whereStr .= $rel->getSQL();\n\t }\n\t $this->havingStr = '';\n\t foreach ($this->havingArray as $rel) {\n\t $this->havingStr .= $rel->getSQL();\n\t }\n\t if ($this->whereStr == '') {\n\t $this->whereStr = '1';\n\t }\n\t\t$sqlStr = 'SELECT count(*) AS cc FROM `'.$this->fromStr.'` WHERE '.$this->whereStr;\n\t\t$this->setQuery($sqlStr);\n\t\t$res = $this->loadObject(); \n\t\tif ($res) {\n\t\t $result = $res->cc;\n\t\t} else {\n\t\t $result = 0; \n\t\t}\n\t\treturn $result; \n\t}", "title": "" }, { "docid": "39788ad8c438ebbe4db63f90d6aab523", "score": "0.62996167", "text": "function count()\n {\n $model = $this->model;\n $pKey = $model::getPrimaryKey();\n\n return intval($this->pivot()->count([$this->getForeignKey()], [$this->model->$pKey]));\n }", "title": "" }, { "docid": "f09d7111fbb8ad3a8b5fd5cc3a9873f9", "score": "0.6257003", "text": "public static function doCountJoinPenghasilanRelatedByPenghasilanIdWali(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(PesertaDidikPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n PesertaDidikPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count\n\n // Set the correct dbName\n $criteria->setDbName(PesertaDidikPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(PesertaDidikPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $criteria->addJoin(PesertaDidikPeer::PENGHASILAN_ID_WALI, PenghasilanPeer::PENGHASILAN_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "c68fb98760cf0582592d95be1abcfc2f", "score": "0.6249717", "text": "public function countPesertaDidiksRelatedByJenjangPendidikanIbu(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)\n {\n $partial = $this->collPesertaDidiksRelatedByJenjangPendidikanIbuPartial && !$this->isNew();\n if (null === $this->collPesertaDidiksRelatedByJenjangPendidikanIbu || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collPesertaDidiksRelatedByJenjangPendidikanIbu) {\n return 0;\n }\n\n if($partial && !$criteria) {\n return count($this->getPesertaDidiksRelatedByJenjangPendidikanIbu());\n }\n $query = PesertaDidikQuery::create(null, $criteria);\n if ($distinct) {\n $query->distinct();\n }\n\n return $query\n ->filterByJenjangPendidikanRelatedByJenjangPendidikanIbu($this)\n ->count($con);\n }\n\n return count($this->collPesertaDidiksRelatedByJenjangPendidikanIbu);\n }", "title": "" }, { "docid": "105250c2da42a03d4fa0ae5c05c83901", "score": "0.62355417", "text": "public static function doCountJoinKebutuhanKhususRelatedByKebutuhanKhususIdIbu(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(PesertaDidikPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n PesertaDidikPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count\n\n // Set the correct dbName\n $criteria->setDbName(PesertaDidikPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(PesertaDidikPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $criteria->addJoin(PesertaDidikPeer::KEBUTUHAN_KHUSUS_ID_IBU, KebutuhanKhususPeer::KEBUTUHAN_KHUSUS_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "85db12e7a83372b37822191ef8b4d169", "score": "0.62159216", "text": "public static function doCountJoinJenjangPendidikanRelatedByJenjangPendidikanIbu(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(PesertaDidikPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n PesertaDidikPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count\n\n // Set the correct dbName\n $criteria->setDbName(PesertaDidikPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(PesertaDidikPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $criteria->addJoin(PesertaDidikPeer::JENJANG_PENDIDIKAN_IBU, JenjangPendidikanPeer::JENJANG_PENDIDIKAN_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "fddb028157e3cd27fd4f6a7ba37619bb", "score": "0.61746556", "text": "function get_all_kawasan__lokasi_kumuh_count()\n {\n $this->db->from('kawasan__lokasi_kumuh');\n return $this->db->count_all_results();\n }", "title": "" }, { "docid": "70a14e59b5bb85763655bf880b7e3252", "score": "0.61630607", "text": "public static function doCountJoinJenjangPendidikanRelatedByJenjangPendidikanWali(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(PesertaDidikPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n PesertaDidikPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count\n\n // Set the correct dbName\n $criteria->setDbName(PesertaDidikPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(PesertaDidikPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $criteria->addJoin(PesertaDidikPeer::JENJANG_PENDIDIKAN_WALI, JenjangPendidikanPeer::JENJANG_PENDIDIKAN_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "e92ec622a269f8c065a6fbc37d562ba8", "score": "0.6154358", "text": "public static function doCountJoinKebutuhanKhususRelatedByKebutuhanKhususIdAyah(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(PesertaDidikPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n PesertaDidikPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count\n\n // Set the correct dbName\n $criteria->setDbName(PesertaDidikPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(PesertaDidikPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $criteria->addJoin(PesertaDidikPeer::KEBUTUHAN_KHUSUS_ID_AYAH, KebutuhanKhususPeer::KEBUTUHAN_KHUSUS_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "3f00e2466898b5514f4ca13616c78360", "score": "0.6147148", "text": "public function getCount(){\n\t\t\t$query = \"SELECT \".implode(\",\",$this->columns).\" FROM \".$this->table.$this->joins.$this->conditions.$this->order;\n\t\t\t$res = $this->fetch($query,$this->params);\n\t\t\treturn $this->rowCount;\n\t\t}", "title": "" }, { "docid": "5d2910e58fae59071da9c44fda41aa4a", "score": "0.608297", "text": "public function countPesertaDidiksRelatedByJenjangPendidikanWali(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)\n {\n $partial = $this->collPesertaDidiksRelatedByJenjangPendidikanWaliPartial && !$this->isNew();\n if (null === $this->collPesertaDidiksRelatedByJenjangPendidikanWali || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collPesertaDidiksRelatedByJenjangPendidikanWali) {\n return 0;\n }\n\n if($partial && !$criteria) {\n return count($this->getPesertaDidiksRelatedByJenjangPendidikanWali());\n }\n $query = PesertaDidikQuery::create(null, $criteria);\n if ($distinct) {\n $query->distinct();\n }\n\n return $query\n ->filterByJenjangPendidikanRelatedByJenjangPendidikanWali($this)\n ->count($con);\n }\n\n return count($this->collPesertaDidiksRelatedByJenjangPendidikanWali);\n }", "title": "" }, { "docid": "96c10f8e1f0a8c2d113d943dec1ed553", "score": "0.60784817", "text": "function countInschrijvingenByOptie($optieId){\n $this->db->where('optieId', $optieId);\n return $this->db->count_all_results('inschrijfOptie');\n }", "title": "" }, { "docid": "dbff4f9211d9956ff844f4f27898aa80", "score": "0.60768", "text": "public function countPesertaDidiksRelatedByJenjangPendidikanAyah(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)\n {\n $partial = $this->collPesertaDidiksRelatedByJenjangPendidikanAyahPartial && !$this->isNew();\n if (null === $this->collPesertaDidiksRelatedByJenjangPendidikanAyah || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collPesertaDidiksRelatedByJenjangPendidikanAyah) {\n return 0;\n }\n\n if($partial && !$criteria) {\n return count($this->getPesertaDidiksRelatedByJenjangPendidikanAyah());\n }\n $query = PesertaDidikQuery::create(null, $criteria);\n if ($distinct) {\n $query->distinct();\n }\n\n return $query\n ->filterByJenjangPendidikanRelatedByJenjangPendidikanAyah($this)\n ->count($con);\n }\n\n return count($this->collPesertaDidiksRelatedByJenjangPendidikanAyah);\n }", "title": "" }, { "docid": "0286a63c6664b4d0dbc6194a18581f8c", "score": "0.60656077", "text": "function countKeb($id_akun){\n\t\t// Query mysql select data ke kebiasaan\n\t\t$query = \"SELECT COUNT(`id_kebiasaan`) AS jml FROM `kebiasaan` WHERE id_akun = $id_akun\";\n\n\t\t// Mengeksekusi query\n\t\treturn $this->execute($query);\n\t}", "title": "" }, { "docid": "a04bcc61918d86371c0810155448214d", "score": "0.6065575", "text": "public function count2 ()\r\n {\r\n $sql = 'SELECT COUNT(*) FROM ' . $this->_myMeta['FROM'];\r\n $where = '';\r\n $props = $this->_myMeta['PTC'];\r\n $bind = array();\r\n foreach ($props as $prop => $col) {\r\n if ($this->$prop !== null) {\r\n $bind[] = $this->$prop;\r\n $col = $this->_quoteColumn($col);\r\n $where .= strlen($where) === 0 ? ' WHERE ' : ' AND ';\r\n $where .= \"$col = ?\";\r\n }\r\n }\r\n $sql .= $where;\r\n return (int) $this->getDbAdapter()->fetchOne($sql, $bind);\r\n }", "title": "" }, { "docid": "8c27bd6ed0813630475475ad0702947c", "score": "0.6061774", "text": "public static function doCountJoinJenjangPendidikanRelatedByJenjangPendidikanAyah(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(PesertaDidikPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n PesertaDidikPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count\n\n // Set the correct dbName\n $criteria->setDbName(PesertaDidikPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(PesertaDidikPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $criteria->addJoin(PesertaDidikPeer::JENJANG_PENDIDIKAN_AYAH, JenjangPendidikanPeer::JENJANG_PENDIDIKAN_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "628fb6fafb76d615d284ad1f988113d1", "score": "0.6016015", "text": "public function countsi()\n \t{\n \t\treturn $this->db->get_where('mahasiswa', array('prodi' => 'Sistem Informasi'))->num_rows();\n \t}", "title": "" }, { "docid": "173d9f35a49fdb7c3379f52b486ee947", "score": "0.60050505", "text": "public static function doCountJoinKebutuhanKhususRelatedByKebutuhanKhususId(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(PesertaDidikPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n PesertaDidikPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count\n\n // Set the correct dbName\n $criteria->setDbName(PesertaDidikPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(PesertaDidikPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $criteria->addJoin(PesertaDidikPeer::KEBUTUHAN_KHUSUS_ID, KebutuhanKhususPeer::KEBUTUHAN_KHUSUS_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "7bc02cb4f414b941f5995281b6c93df5", "score": "0.5995063", "text": "public function getIndividuales()\n {\n $c = 0;\n foreach ($this->areas as $area)\n {\n foreach($area->encuestas as $encuesta)\n {\n $c += $encuesta->componentes->count();\n }\n }\n return $c;\n\n\n //devuelvo collecion\n\n }", "title": "" }, { "docid": "24ed1593d093fa772f8d34710b3e838d", "score": "0.59763616", "text": "function model_users_count_Klant($winkels)\n{\n if (!is_array($winkels)) {\n $winkels = array($winkels);\n }\n\n $db = app_db();\n\n //What.\n $sql[] = 'SELECT COUNT(DISTINCT U.IDUser) AS User';\n\n // From where.\n $sql[] = 'FROM';\n $sql[] = 'Users AS U';\n $sql[] = 'INNER JOIN Permissies AS P ON (U.Permissie = P.IDPermissie)';\n $sql[] = 'INNER JOIN Bestelling AS B ON (U.IDUser = B.Koper)';\n $sql[] = 'INNER JOIN Winkels AS W ON (B.Winkel = W.IDWinkel)';\n\n //Criteria.\n $sql[] = 'WHERE';\n $winkelsIn = implode(', ', $winkels);\n $sql[] = 'W.IDWinkel IN (' . $winkelsIn . ')';\n $sql[] = 'AND U.Permissie = 1';\n \n $res = $db->query(implode(' ', $sql));\n $row = $res->fetch_assoc();\n\n return (int)$row['User'];\n}", "title": "" }, { "docid": "1ec41ff55436a6da6e10d3b6af5f35ef", "score": "0.5975033", "text": "function habitualPrisonerCount()\r\n {\r\n $usertype_id = $this->Auth->user('usertype_id');\r\n $condition = array(\r\n 'Prisoner.is_enable' => 1,\r\n 'Prisoner.is_trash' => 0,\r\n 'Prisoner.habitual_prisoner' => 1\r\n );\r\n if($usertype_id != 1 && $usertype_id != 2)\r\n {\r\n $prison_id = $this->Auth->user('prison_id');\r\n $condition += array(\r\n 'Prisoner.prison_id' => $prison_id\r\n );\r\n }\r\n $data = $this->Prisoner->find('all', array(\r\n \r\n 'recursive' => -1,\r\n 'fields' => array('count(Prisoner.id) AS total_count'),\r\n 'conditions' => $condition\r\n ));\r\n $total_count = 0;\r\n if(isset($data[0][0]['total_count']))\r\n {\r\n $total_count = $data[0][0]['total_count'];\r\n }\r\n return $total_count;\r\n }", "title": "" }, { "docid": "319e008d33e3d5ae9edde14f320351ce", "score": "0.5964253", "text": "function get_num_rows_lokasi()\n {\n $this->db->select('nama_prodi');\n $this->db->select('COUNT(id_lokasi) as jumlahLokasi');\n $this->db->join('tb_prodi', 'tb_prodi.id_prodi=tb_lokasi.id_prodi');\n $this->db->group_by('tb_lokasi.id_prodi');\n // $this->db->order_by('COUNT(tb_lokasi.id_prodi)', 'desc');\n return $this->db->get('tb_lokasi')->result_array();\n }", "title": "" }, { "docid": "33bd0bca1520fffb33ca4ae284ef921b", "score": "0.59447193", "text": "public static function doCountJoinJenjangPendidikan(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(RwyKerjaPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n RwyKerjaPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count\n\n // Set the correct dbName\n $criteria->setDbName(RwyKerjaPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(RwyKerjaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $criteria->addJoin(RwyKerjaPeer::JENJANG_PENDIDIKAN_ID, JenjangPendidikanPeer::JENJANG_PENDIDIKAN_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "b4611cdc3c9444cc7ceeab8fcf334d4c", "score": "0.59051377", "text": "public static function doCountJoinJenisPtk(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(RwyKerjaPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n RwyKerjaPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count\n\n // Set the correct dbName\n $criteria->setDbName(RwyKerjaPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(RwyKerjaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $criteria->addJoin(RwyKerjaPeer::JENIS_PTK_ID, JenisPtkPeer::JENIS_PTK_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "30a9fafb787789a3a12f0994ae11d140", "score": "0.5891235", "text": "public static function doCountJoinAllExceptPekerjaanRelatedByPekerjaanIdAyah(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(PesertaDidikPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n PesertaDidikPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY should not affect count\n\n // Set the correct dbName\n $criteria->setDbName(PesertaDidikPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(PesertaDidikPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n \n $criteria->addJoin(PesertaDidikPeer::KEBUTUHAN_KHUSUS_ID_AYAH, KebutuhanKhususPeer::KEBUTUHAN_KHUSUS_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KEBUTUHAN_KHUSUS_ID_IBU, KebutuhanKhususPeer::KEBUTUHAN_KHUSUS_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KEWARGANEGARAAN, NegaraPeer::NEGARA_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::ID_LAYAK_PIP, AlasanLayakPipPeer::ID_LAYAK_PIP, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::ID_BANK, BankPeer::ID_BANK, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KODE_WILAYAH, MstWilayahPeer::KODE_WILAYAH, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KEBUTUHAN_KHUSUS_ID, KebutuhanKhususPeer::KEBUTUHAN_KHUSUS_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::AGAMA_ID, AgamaPeer::AGAMA_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PENGHASILAN_ID_AYAH, PenghasilanPeer::PENGHASILAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::JENIS_TINGGAL_ID, JenisTinggalPeer::JENIS_TINGGAL_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::ALAT_TRANSPORTASI_ID, AlatTransportasiPeer::ALAT_TRANSPORTASI_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::JENJANG_PENDIDIKAN_IBU, JenjangPendidikanPeer::JENJANG_PENDIDIKAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PENGHASILAN_ID_WALI, PenghasilanPeer::PENGHASILAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::JENJANG_PENDIDIKAN_AYAH, JenjangPendidikanPeer::JENJANG_PENDIDIKAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PENGHASILAN_ID_IBU, PenghasilanPeer::PENGHASILAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::JENJANG_PENDIDIKAN_WALI, JenjangPendidikanPeer::JENJANG_PENDIDIKAN_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "753aad78ccfa873106889c4722b097ed", "score": "0.5878391", "text": "public function nbPatientAdmisParInfirmierTri(){\n\t\t$dateDuJour = (new \\DateTime (\"now\"))->format ( 'Y-m-d' );\n\t\t\n\t\t$db = $this->tableGateway->getAdapter();\n\t\t$sql = new Sql($db);\n\t\t$sQuery = $sql->select()\n\t\t->from(array('pat' => 'patient'))->columns(array('Numero_dossier' => 'NUMERO_DOSSIER'))\n\t\t->join(array('pers' => 'personne'), 'pat.ID_PERSONNE = pers.ID_PERSONNE', array('Nom'=>'NOM','Prenom'=>'PRENOM','Datenaissance'=>'DATE_NAISSANCE','Age'=>'AGE','Sexe'=>'SEXE','Adresse'=>'ADRESSE','Nationalite'=>'NATIONALITE_ACTUELLE','Taille'=>'TAILLE','id'=>'ID_PERSONNE','Idpatient'=>'ID_PERSONNE'))\n\t\t->join(array('au' => 'admission_urgence'), 'au.id_patient = pers.ID_PERSONNE' , array('Id_admission'=>'id_admission', 'Id_infirmier_tri'=>'id_infirmier_tri', 'Id_infirmier_service'=>'id_infirmier_service'))\n\t\t->where( array ( 'date' => $dateDuJour, 'id_infirmier_service' => null ) );\n\t\t\n\t\treturn $sql->prepareStatementForSqlObject($sQuery)->execute()->count();\n\t}", "title": "" }, { "docid": "d2901de3733b5eb49371ae836b31f457", "score": "0.58765334", "text": "public static function doCountJoinStatusKepegawaian(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(RwyKerjaPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n RwyKerjaPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count\n\n // Set the correct dbName\n $criteria->setDbName(RwyKerjaPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(RwyKerjaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $criteria->addJoin(RwyKerjaPeer::STATUS_KEPEGAWAIAN_ID, StatusKepegawaianPeer::STATUS_KEPEGAWAIAN_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "22e8064ff35bb7189ff1b4e4699f1375", "score": "0.5876394", "text": "public static function doCountJoinTbnivelinstrucaoRelatedByPaiIdNivelInstrucao(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n\t{\n\t\t// we're going to modify criteria, so copy it first\n\t\t$criteria = clone $criteria;\n\n\t\t// We need to set the primary table name, since in the case that there are no WHERE columns\n\t\t// it will be impossible for the BasePeer::createSelectSql() method to determine which\n\t\t// tables go into the FROM clause.\n\t\t$criteria->setPrimaryTableName(TbalunobackupPeer::TABLE_NAME);\n\n\t\tif ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n\t\t\t$criteria->setDistinct();\n\t\t}\n\n\t\tif (!$criteria->hasSelectClause()) {\n\t\t\tTbalunobackupPeer::addSelectColumns($criteria);\n\t\t}\n\t\t\n\t\t$criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count\n\t\t\n\t\t// Set the correct dbName\n\t\t$criteria->setDbName(self::DATABASE_NAME);\n\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(TbalunobackupPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\n\t\t$criteria->addJoin(TbalunobackupPeer::PAI_ID_NIVEL_INSTRUCAO, TbnivelinstrucaoPeer::ID_NIVEL_INSTRUCAO, $join_behavior);\n\n\t\t// symfony_behaviors behavior\n\t\tforeach (sfMixer::getCallables(self::getMixerPreSelectHook(__FUNCTION__)) as $sf_hook)\n\t\t{\n\t\t call_user_func($sf_hook, 'BaseTbalunobackupPeer', $criteria, $con);\n\t\t}\n\n\t\t$stmt = BasePeer::doCount($criteria, $con);\n\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$count = (int) $row[0];\n\t\t} else {\n\t\t\t$count = 0; // no rows returned; we infer that means 0 matches.\n\t\t}\n\t\t$stmt->closeCursor();\n\t\treturn $count;\n\t}", "title": "" }, { "docid": "09bea80cd863325fd0deec9fde2d9c55", "score": "0.58674985", "text": "public static function doCountJoinAllExceptPekerjaanRelatedByPekerjaanIdWali(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(PesertaDidikPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n PesertaDidikPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY should not affect count\n\n // Set the correct dbName\n $criteria->setDbName(PesertaDidikPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(PesertaDidikPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n \n $criteria->addJoin(PesertaDidikPeer::KEBUTUHAN_KHUSUS_ID_AYAH, KebutuhanKhususPeer::KEBUTUHAN_KHUSUS_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KEBUTUHAN_KHUSUS_ID_IBU, KebutuhanKhususPeer::KEBUTUHAN_KHUSUS_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KEWARGANEGARAAN, NegaraPeer::NEGARA_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::ID_LAYAK_PIP, AlasanLayakPipPeer::ID_LAYAK_PIP, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::ID_BANK, BankPeer::ID_BANK, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KODE_WILAYAH, MstWilayahPeer::KODE_WILAYAH, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KEBUTUHAN_KHUSUS_ID, KebutuhanKhususPeer::KEBUTUHAN_KHUSUS_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::AGAMA_ID, AgamaPeer::AGAMA_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PENGHASILAN_ID_AYAH, PenghasilanPeer::PENGHASILAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::JENIS_TINGGAL_ID, JenisTinggalPeer::JENIS_TINGGAL_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::ALAT_TRANSPORTASI_ID, AlatTransportasiPeer::ALAT_TRANSPORTASI_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::JENJANG_PENDIDIKAN_IBU, JenjangPendidikanPeer::JENJANG_PENDIDIKAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PENGHASILAN_ID_WALI, PenghasilanPeer::PENGHASILAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::JENJANG_PENDIDIKAN_AYAH, JenjangPendidikanPeer::JENJANG_PENDIDIKAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PENGHASILAN_ID_IBU, PenghasilanPeer::PENGHASILAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::JENJANG_PENDIDIKAN_WALI, JenjangPendidikanPeer::JENJANG_PENDIDIKAN_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "6bc581b1a551cb8e0cfb09a0b81f9650", "score": "0.58482295", "text": "public static function doCountJoinAlasanLayakPip(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(PesertaDidikPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n PesertaDidikPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count\n\n // Set the correct dbName\n $criteria->setDbName(PesertaDidikPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(PesertaDidikPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $criteria->addJoin(PesertaDidikPeer::ID_LAYAK_PIP, AlasanLayakPipPeer::ID_LAYAK_PIP, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "624e32c72400963e4e2995049c1da990", "score": "0.5833345", "text": "protected function getNumRows()\n {\n return self::$em->nativeQuery(\"SELECT COUNT(*) FROM `:p_users`\")->result();\n }", "title": "" }, { "docid": "65ac1ce2ce0ef8b7696938e532970471", "score": "0.5823763", "text": "public final function count(): int\n\t{\n\t\t$t = $this->model();\n\t\t$this->checkClauseBothValues();\n\t\t$t->WhereClause->setValues($this->getWhereClausePredicates());\n\t\t$query = $t->getSelectQuery();\n\t\t$this->lastStatement = $t->lastStatement;\n\t\t$query = \"SELECT COUNT(*) as count FROM ($query) AS c\";\n\t\t$this->lastStatement->query($query);\n\t\t$this->reset(true);\n\t\t\n\t\t//https://stackoverflow.com/questions/16584549/counting-number-of-grouped-rows-in-mysql\n\t\treturn intval($this->Con->dr($query)->getValue('count', 0));\n\t}", "title": "" }, { "docid": "c0ccb4cf6f02ac99e8822d972f06b417", "score": "0.5818043", "text": "public function GetWelfaresCount();", "title": "" }, { "docid": "a3f3687f31a50f7cef7d0f0afd156cca", "score": "0.58180046", "text": "public function numRows($where=false) {\n\t\t$sql = 'SELECT COUNT(*) as total from rapor_nilai_pts';\n\t\t\n\t\tif ($where !== false){\n\t\t\t$sql.=' where ';\n\t\t\t$whereArr = array();\n\t\t\tforeach($where as $clause => $val) {\n\t\t\t\t$whereArr[] = $clause.'=\\''.$val.'\\'';\n\t\t\t}\n\t\t\t$sql.=' where '.implode(',',$whereArr);\n\t\t}\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->querySingleResult($sqlQuery);\n\t }", "title": "" }, { "docid": "abfa7992c5562ebf15fdbee8fe8df79f", "score": "0.5815866", "text": "public function count($id){\n $tbr = \"barang\";\n $rowname = \"id_kepemilikan\";\n $count = parent::getCount($tbr, $rowname, $id);\n\n return $count;\n }", "title": "" }, { "docid": "f0e0333e47b15e218067a07891b69b18", "score": "0.5804093", "text": "public function brojPrijavaZaOglas($IdO){\n return count($this->where('IdO', $IdO)->findAll());\n }", "title": "" }, { "docid": "c3a6facd21ccce0229ab4bfd5be124d3", "score": "0.57995975", "text": "public function count_all_konfirmasi_JO()\n {\n $this->db->where(\"status\",\"Dalam Perjalanan\");\n $this->db->join(\"skb_customer\", \"skb_customer.customer_id = skb_job_order.customer_id\", 'left');\n return $this->db->count_all_results(\"skb_job_order\");\n }", "title": "" }, { "docid": "dfd9cab71e72e100450698885cac1333", "score": "0.57943296", "text": "function count_sisa_suara_1($lingkungan){\n\t\treturn $this->db->query(\"SELECT SUM(hs_dph) as hs_dph, SUM(hs_lingkungan) as hs_lingkungan, SUM(hs_wilayah) as hs_wilayah, SUM(hs_koor_wilayah) as hs_koor_wilayah FROM pemilih WHERE lingkungan = '$lingkungan'\") -> row_array();\n\t}", "title": "" }, { "docid": "698a226a9626bc2cff261a959383f9a4", "score": "0.57935727", "text": "public function numRows($where=false) {\n\t\t$sql = 'SELECT COUNT(*) as total from rapor_nilai_harian';\n\t\t\n\t\tif ($where !== false){\n\t\t\t$sql.=' where ';\n\t\t\t$whereArr = array();\n\t\t\tforeach($where as $clause => $val) {\n\t\t\t\t$whereArr[] = $clause.'=\\''.$val.'\\'';\n\t\t\t}\n\t\t\t$sql.=' where '.implode(',',$whereArr);\n\t\t}\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->querySingleResult($sqlQuery);\n\t }", "title": "" }, { "docid": "fa5a99458175736ebc340fdaa0ea857f", "score": "0.57898164", "text": "public function numRows($where=false) {\n\t\t$sql = 'SELECT COUNT(*) as total from cbt_kop_absensi';\n\t\t\n\t\tif ($where !== false){\n\t\t\t$sql.=' where ';\n\t\t\t$whereArr = array();\n\t\t\tforeach($where as $clause => $val) {\n\t\t\t\t$whereArr[] = $clause.'=\\''.$val.'\\'';\n\t\t\t}\n\t\t\t$sql.=' where '.implode(',',$whereArr);\n\t\t}\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->querySingleResult($sqlQuery);\n\t }", "title": "" }, { "docid": "31b21ea8d9e2297dc5845b218824b905", "score": "0.5782241", "text": "public function numRows($where=false) {\n\t\t$sql = 'SELECT COUNT(*) as total from rapor_nilai_akhir';\n\t\t\n\t\tif ($where !== false){\n\t\t\t$sql.=' where ';\n\t\t\t$whereArr = array();\n\t\t\tforeach($where as $clause => $val) {\n\t\t\t\t$whereArr[] = $clause.'=\\''.$val.'\\'';\n\t\t\t}\n\t\t\t$sql.=' where '.implode(',',$whereArr);\n\t\t}\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->querySingleResult($sqlQuery);\n\t }", "title": "" }, { "docid": "4edf120f9833c8da7c3ddd520c7e6907", "score": "0.57814366", "text": "public function countConditionement(){\n\t\t\t\t\t $this->db->setTablename($this->tablename);\n return $this->db->getRows(array(\"return_type\"=>\"count\"));\n\t\t\t\t\t }", "title": "" }, { "docid": "a397299b770102eb2a24c89ccce9fd55", "score": "0.57751477", "text": "public static function doCountJoinTbnivelinstrucaoRelatedByMaeIdNivelInstrucao(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n\t{\n\t\t// we're going to modify criteria, so copy it first\n\t\t$criteria = clone $criteria;\n\n\t\t// We need to set the primary table name, since in the case that there are no WHERE columns\n\t\t// it will be impossible for the BasePeer::createSelectSql() method to determine which\n\t\t// tables go into the FROM clause.\n\t\t$criteria->setPrimaryTableName(TbalunobackupPeer::TABLE_NAME);\n\n\t\tif ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n\t\t\t$criteria->setDistinct();\n\t\t}\n\n\t\tif (!$criteria->hasSelectClause()) {\n\t\t\tTbalunobackupPeer::addSelectColumns($criteria);\n\t\t}\n\t\t\n\t\t$criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count\n\t\t\n\t\t// Set the correct dbName\n\t\t$criteria->setDbName(self::DATABASE_NAME);\n\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(TbalunobackupPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\n\t\t$criteria->addJoin(TbalunobackupPeer::MAE_ID_NIVEL_INSTRUCAO, TbnivelinstrucaoPeer::ID_NIVEL_INSTRUCAO, $join_behavior);\n\n\t\t// symfony_behaviors behavior\n\t\tforeach (sfMixer::getCallables(self::getMixerPreSelectHook(__FUNCTION__)) as $sf_hook)\n\t\t{\n\t\t call_user_func($sf_hook, 'BaseTbalunobackupPeer', $criteria, $con);\n\t\t}\n\n\t\t$stmt = BasePeer::doCount($criteria, $con);\n\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$count = (int) $row[0];\n\t\t} else {\n\t\t\t$count = 0; // no rows returned; we infer that means 0 matches.\n\t\t}\n\t\t$stmt->closeCursor();\n\t\treturn $count;\n\t}", "title": "" }, { "docid": "8353e51034be6e4a803118d74a839908", "score": "0.5774683", "text": "public static function doCountJoinJenisLembaga(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(RwyKerjaPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n RwyKerjaPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count\n\n // Set the correct dbName\n $criteria->setDbName(RwyKerjaPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(RwyKerjaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $criteria->addJoin(RwyKerjaPeer::JENIS_LEMBAGA_ID, JenisLembagaPeer::JENIS_LEMBAGA_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "cfd61677d51352f99c29b734bd322e8d", "score": "0.57708365", "text": "function selectCountPersonnePropositionByIdPersonneIdProposition($idPersonne, $idProposition)\n{\n $personneProposition = $GLOBALS['db']->prepare('SELECT COUNT(*) FROM personne_proposition WHERE id_proposition = :idpo AND id_personne = :idpe');\n $personneProposition->bindParam(':idpo', $idProposition);\n $personneProposition->bindParam(':idpe', $idPersonne);\n $personneProposition->execute();\n $personne = $personneProposition->fetchAll();\n if (empty($personne)) {\n $personne = 'none';\n } else {\n $personne = $personne[0][0];\n }\n return $personne;\n}", "title": "" }, { "docid": "b23347bd5f7ecf971ee061c54838763c", "score": "0.57676935", "text": "public function count($criterio=\"\"){\n\t\t$sql = 'SELECT COUNT(id) AS qtd FROM jogo '.$criterio.'';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\t$rs=$this->execute($sqlQuery);\n return $rs[0][\"qtd\"];\n\t}", "title": "" }, { "docid": "36e5e2b7f8f052508e3200b886dc9c54", "score": "0.5753361", "text": "function cantidadPersonas() {\r\n\t\treturn $this->db->count_all('personas');\r\n\t}", "title": "" }, { "docid": "b0dc03d0a5c3066895d2f46b649c6734", "score": "0.574943", "text": "public function nbPatientSUP900(){\n\t\t$adapter = $this->tableGateway->getAdapter ();\n\t\t$sql = new Sql ( $adapter );\n\t\t$select = $sql->select ('patient');\n\t\t$select->columns(array ('ID_PERSONNE'));\n\t\t$select->where( array (\n\t\t\t\t'ID_PERSONNE > 900'\n\t\t) );\n\t\t$stmt = $sql->prepareStatementForSqlObject($select);\n\t\t$result = $stmt->execute();\n\t\treturn $result->count();\n\t}", "title": "" }, { "docid": "b0dc03d0a5c3066895d2f46b649c6734", "score": "0.574943", "text": "public function nbPatientSUP900(){\n\t\t$adapter = $this->tableGateway->getAdapter ();\n\t\t$sql = new Sql ( $adapter );\n\t\t$select = $sql->select ('patient');\n\t\t$select->columns(array ('ID_PERSONNE'));\n\t\t$select->where( array (\n\t\t\t\t'ID_PERSONNE > 900'\n\t\t) );\n\t\t$stmt = $sql->prepareStatementForSqlObject($select);\n\t\t$result = $stmt->execute();\n\t\treturn $result->count();\n\t}", "title": "" }, { "docid": "ca44613bcb8f3d72e16cda8ffb57c26d", "score": "0.57441026", "text": "public static function doCountJoinAllExceptPekerjaanRelatedByPekerjaanId(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(PesertaDidikPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n PesertaDidikPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY should not affect count\n\n // Set the correct dbName\n $criteria->setDbName(PesertaDidikPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(PesertaDidikPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n \n $criteria->addJoin(PesertaDidikPeer::KEBUTUHAN_KHUSUS_ID_AYAH, KebutuhanKhususPeer::KEBUTUHAN_KHUSUS_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KEBUTUHAN_KHUSUS_ID_IBU, KebutuhanKhususPeer::KEBUTUHAN_KHUSUS_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KEWARGANEGARAAN, NegaraPeer::NEGARA_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::ID_LAYAK_PIP, AlasanLayakPipPeer::ID_LAYAK_PIP, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::ID_BANK, BankPeer::ID_BANK, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KODE_WILAYAH, MstWilayahPeer::KODE_WILAYAH, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KEBUTUHAN_KHUSUS_ID, KebutuhanKhususPeer::KEBUTUHAN_KHUSUS_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::AGAMA_ID, AgamaPeer::AGAMA_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PENGHASILAN_ID_AYAH, PenghasilanPeer::PENGHASILAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::JENIS_TINGGAL_ID, JenisTinggalPeer::JENIS_TINGGAL_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::ALAT_TRANSPORTASI_ID, AlatTransportasiPeer::ALAT_TRANSPORTASI_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::JENJANG_PENDIDIKAN_IBU, JenjangPendidikanPeer::JENJANG_PENDIDIKAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PENGHASILAN_ID_WALI, PenghasilanPeer::PENGHASILAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::JENJANG_PENDIDIKAN_AYAH, JenjangPendidikanPeer::JENJANG_PENDIDIKAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PENGHASILAN_ID_IBU, PenghasilanPeer::PENGHASILAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::JENJANG_PENDIDIKAN_WALI, JenjangPendidikanPeer::JENJANG_PENDIDIKAN_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "17c3c9d91204aa9e1e683029f18b44d6", "score": "0.57404876", "text": "function get_all_stok_alat_kontrasepsi_count()\n {\n $stok_alat_kontrasepsi = $this->db->query(\"\n SELECT\n count(*) as count\n\n FROM\n `stok_alat_kontrasepsi`\n \")->row_array();\n\n return $stok_alat_kontrasepsi['count'];\n }", "title": "" }, { "docid": "7d535b92d4591373c995606ff3428623", "score": "0.5739693", "text": "function cont_all_fornecedores(){\n return $this->db->count_all('fornecedores');\n }", "title": "" }, { "docid": "5dc272090bb19e096bfa6e607d048b08", "score": "0.5733616", "text": "function selectCountPersonnePropositionByIdProposition($idProposition)\n{\n $proposition = $GLOBALS['db']->prepare('SELECT COUNT(*) FROM personne_proposition WHERE id_proposition = :idp');\n $proposition->bindParam(':idp', $idProposition);\n $proposition->execute();\n $prop = $proposition->fetchAll();\n $prop = $prop[0][0];\n return $prop;\n}", "title": "" }, { "docid": "92a8881de2623e1e5c5d28e80c6a7268", "score": "0.5730238", "text": "public function getZoneNumPeople($zone,$floor,$imm){\n \n $select = $this->select()\n ->from(\"registro_posizione\", array(\"Num\"=>\"COUNT(Zona)\",\n 'Immobile'=>'Immobile',\n 'Id_piano'=>'Id_piano',\n 'Zona' =>'Zona'))\n ->where('Id_piano =?',$floor) \n ->where('Zona =?',$zone)\n ->where('Immobile =?',$imm)\n ->group('Immobile')\n ->group('Id_piano')\n ->group('Zona')\n ->order('Immobile')\n ->order('Id_piano')\n ->order('Zona'); \n return $this->fetchAll($select);\n \n \n }", "title": "" }, { "docid": "a5cf6ac3ad780a40445559b5ec9e2ef0", "score": "0.5720468", "text": "public function count()\r\n {\r\n if ($this->rowCount !== null) {\r\n return $this->rowCount;\r\n }\r\n\r\n $select = clone $this->select;\r\n $select->reset(Select::COLUMNS);\r\n $select->reset(Select::LIMIT);\r\n $select->reset(Select::OFFSET);\r\n $select->reset(Select::ORDER);\r\n $select->reset(Select::GROUP);\r\n\r\n // get join information, clear, and repopulate without columns\r\n $joins = $select->getRawState(Select::JOINS);\r\n $select->reset(Select::JOINS);\r\n foreach ($joins as $join) {\r\n $select->join($join['name'], $join['on'], array(), $join['type']);\r\n }\r\n\r\n $select->columns(array('c' => new Expression('COUNT(DISTINCT ' . $select->getRawState(Select::TABLE) . '.id)')));\r\n\r\n $statement = $this->sql->prepareStatementForSqlObject($select);\r\n $result = $statement->execute();\r\n $row = $result->current();\r\n\r\n $this->rowCount = $row['c'];\r\n\r\n return $this->rowCount;\r\n }", "title": "" }, { "docid": "f3ad471a621710528e07f53447b4bc4d", "score": "0.57178617", "text": "public function getRepliesCount() {\r\n $srch = new SearchBaseNew('tbl_question_replies', 'r');\r\n $srch->joinTable('tbl_order_questions', 'INNER JOIN', 'r.reply_orquestion_id=oq.orquestion_id ', 'oq');\r\n $srch->joinTable('tbl_orders', 'INNER JOIN', 'o.order_id=oq.orquestion_order_id ', 'o');\r\n $srch->joinTable('tbl_users', 'LEFT JOIN', 'u.user_id=o.order_user_id ', 'u');\r\n $srch->joinTable('tbl_doctors', 'LEFT JOIN', 'd.doctor_id=oq.orquestion_doctor_id AND reply_by=' . Question::QUESTION_REPLIED_BY_DOCTOR, 'd');\r\n\t\t\r\n\t\t$rs = $srch->getResultSet();\r\n\t\t$all_reply_count = $srch->recordCount();\r\n\t\t//$all_reply_count = count($reply->fetch_all());\r\n\t\t\r\n return $all_reply_count;\r\n }", "title": "" }, { "docid": "49629ed9da7128fca61a67925d6cee2a", "score": "0.5716392", "text": "protected function selectCount() : int{\n DBManager::getInstance()->table($this->table);\n $results = DBManager::getInstance()->count($this->pk);\n return $results['counted']?? 0;\n }", "title": "" }, { "docid": "c88d7e9b6f96820cbe2da09046a4a6ae", "score": "0.57127446", "text": "function countEntriesOfJoin($table)\n {\n global $objDatabase;\n\n $objEntryResult = $objDatabase->Execute('SELECT COUNT(*) AS numberOfEntries\n FROM ('.$table.') AS num');\n\n return intval($objEntryResult->fields['numberOfEntries']);\n }", "title": "" }, { "docid": "80a826d289749e08634f42279eee2b29", "score": "0.5691336", "text": "function getTotalPlanificacions()\n\t{\t\n\n\t\t$query = $this->db->get('planificacion');\n\t\treturn $query->num_rows();\n\t}", "title": "" }, { "docid": "41d55f1ebad03f192221599ad50a3edd", "score": "0.5685399", "text": "function getNumeroPersonas($idcomp,$opc){\nparent::conectar();\n$sql=\"SELECT competenciasxempleado.ID_COMPETENCIA,competenciasxcargo.IDCARGO,competenciasxempleado.CODIGOEMPLEADO,OPCION,(VALORR-VALORDESEABLE) AS \nBRECHA FROM competenciasxempleado \nINNER JOIN opciones_empleado ON(competenciasxempleado.CODIGOEMPLEADO=opciones_empleado.CODIGOEMPLEADO)\nINNER JOIN competenciasxcargo ON(opciones_empleado.IDCARGO=competenciasxcargo.IDCARGO AND \ncompetenciasxempleado.ID_COMPETENCIA=competenciasxcargo.ID_COMPETENCIA)\nWHERE competenciasxempleado.ID_COMPETENCIA=$idcomp AND EVALUADOR='XX010101'\nAND VALORR IS NOT NULL AND OPCION=$opc AND (VALORR-VALORDESEABLE)<0\";\n$record_consulta=$this->obj_con->Execute($sql);\n if($record_consulta->RecordCount()<=0){\n return 0;\n }else{\n return $record_consulta->RecordCount();\n }\n}", "title": "" }, { "docid": "63e9dca3ac59bc094e4703d250792cd8", "score": "0.5682105", "text": "public static function count()\n {\n $sql = \"SELECT id FROM \" . self::$table_name. self::$sqlWhere;\n $result = DB::query($sql)->count();\n self::refresh();\n return $result;\n }", "title": "" }, { "docid": "17891eee655eee4fb0426cbdfee032ef", "score": "0.5679482", "text": "function count_pegawai_by_surat($id)\n {\n $this->db->select('*');\n $this->db->from('pegawai');\n $this->db->join('pangkat', 'pangkat.id_pangkat=pegawai.id_pangkat');\n $this->db->join('jabatan', 'jabatan.id_jabatan=pegawai.id_jabatan');\n $this->db->join('detail_surat', 'detail_surat.id_detail_pegawai=pegawai.id_pegawai');\n $this->db->join('surat_tugas', 'surat_tugas.id_surat_tugas=detail_surat.id_detail_surat');\n $this->db->join('maksud', 'maksud.id_maksud=surat_tugas.id_maksud');\n $this->db->order_by('golongan', 'DESC');\n $this->db->where('id_surat_tugas', $id);\n $query = $this->db->count_all_results();\n return $query;\n }", "title": "" }, { "docid": "5b1ef819a73ad485df436565a3eb51c8", "score": "0.5675384", "text": "public function numRows($where=false) {\n\t\t$sql = 'SELECT COUNT(*) as total from cbt_nilai';\n\t\t\n\t\tif ($where !== false){\n\t\t\t$sql.=' where ';\n\t\t\t$whereArr = array();\n\t\t\tforeach($where as $clause => $val) {\n\t\t\t\t$whereArr[] = $clause.'=\\''.$val.'\\'';\n\t\t\t}\n\t\t\t$sql.=' where '.implode(',',$whereArr);\n\t\t}\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->querySingleResult($sqlQuery);\n\t }", "title": "" }, { "docid": "884036a9675b751b9340c1ddc29b1190", "score": "0.56605846", "text": "public function countFiche_production(){\n\t\t\t\t\t $this->db->setTablename($this->tablename);\n return $this->db->getRows(array(\"return_type\"=>\"count\"));\n\t\t\t\t\t }", "title": "" }, { "docid": "72ded9d9f064dda647da6196c6eaa67c", "score": "0.5650045", "text": "public function gethabplannum_rows($id,$d,$an,$moneda){\n\t \t$this->db->select('p.idplan');\n\t \t$this->db->from('plan p');\n\t \t$this->db->join('habelec h','p.idhab= h.idhabelec');\n\t \t$this->db->where('h.idhabfk',$id);\n\t \t$this->db->where('h.idelecfk',$d);\n\t \t$this->db->where('p.idanho',$an);\n $this->db->where('p.idmoneda',$moneda);\n\t \t$query = $this->db->get();\n\t \treturn $query->num_rows();\n\t }", "title": "" }, { "docid": "1a554576ef9c4107be262c818bfdbdab", "score": "0.5648593", "text": "public static function doCountJoinJenisTinggal(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(PesertaDidikPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n PesertaDidikPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count\n\n // Set the correct dbName\n $criteria->setDbName(PesertaDidikPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(PesertaDidikPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $criteria->addJoin(PesertaDidikPeer::JENIS_TINGGAL_ID, JenisTinggalPeer::JENIS_TINGGAL_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "f2a7d28d413f653c43d4d625c31f4ae5", "score": "0.56478685", "text": "function rows($where='1'){\n\t\t$query=\"SELECT * FROM at_jobs as job,at_employee as emp where \".$where.\" and emp.id=job.emp_id \";\n\t\t\n\t\t$q=$this->db->query($query);\n\t\treturn $q->num_rows();\n\t}", "title": "" }, { "docid": "15c4b24bfcb4a3cb89616d18f545238e", "score": "0.5641994", "text": "public function gethabrealnum_rows($id,$dist,$an,$moneda){\n\t \t$this->db->select('r.idreal');\n\t \t$this->db->from('reales r');\n\t \t$this->db->join('habelec h','r.idhab = h.idhabelec');\n\t \t$this->db->where('h.idhabfk',$id);\n\t \t$this->db->where('h.idelecfk',$dist);\n\t \t$this->db->where('r.idanho',$an);\n $this->db->where('r.idmoneda',$moneda);\n\t \t$query = $this->db->get();\n\t \treturn $query->num_rows();\t\n\t }", "title": "" }, { "docid": "1bb8063d716e623ac002b87bdc640062", "score": "0.5634658", "text": "function qa_question_count(){\n \n $prefix = constant('QA_MYSQL_TABLE_PREFIX'); \n \n\t/* postauksien määrä */\n $query2 = qa_db_query_sub(\"select postid, acount from qa_posts where type='Q'; \") or die(mysql_error());\n\t$num_rows = mysql_num_rows($query2);\n\t\n\treturn $num_rows; \n \n }", "title": "" }, { "docid": "97562aa4257426d9fc44423dcde4b117", "score": "0.5633987", "text": "public static function doCountJoinAllExceptJenjangPendidikan(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(RwyKerjaPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n RwyKerjaPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY should not affect count\n\n // Set the correct dbName\n $criteria->setDbName(RwyKerjaPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(RwyKerjaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n \n $criteria->addJoin(RwyKerjaPeer::JENIS_LEMBAGA_ID, JenisLembagaPeer::JENIS_LEMBAGA_ID, $join_behavior);\n\n $criteria->addJoin(RwyKerjaPeer::JENIS_PTK_ID, JenisPtkPeer::JENIS_PTK_ID, $join_behavior);\n\n $criteria->addJoin(RwyKerjaPeer::PTK_ID, PtkPeer::PTK_ID, $join_behavior);\n\n $criteria->addJoin(RwyKerjaPeer::STATUS_KEPEGAWAIAN_ID, StatusKepegawaianPeer::STATUS_KEPEGAWAIAN_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "44e94fcd55644a51f777aa817776831d", "score": "0.56296766", "text": "public static function doCountJoinAllExceptPenghasilanRelatedByPenghasilanIdIbu(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(PesertaDidikPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n PesertaDidikPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY should not affect count\n\n // Set the correct dbName\n $criteria->setDbName(PesertaDidikPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(PesertaDidikPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n \n $criteria->addJoin(PesertaDidikPeer::KEBUTUHAN_KHUSUS_ID_AYAH, KebutuhanKhususPeer::KEBUTUHAN_KHUSUS_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KEBUTUHAN_KHUSUS_ID_IBU, KebutuhanKhususPeer::KEBUTUHAN_KHUSUS_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KEWARGANEGARAAN, NegaraPeer::NEGARA_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::ID_LAYAK_PIP, AlasanLayakPipPeer::ID_LAYAK_PIP, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::ID_BANK, BankPeer::ID_BANK, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KODE_WILAYAH, MstWilayahPeer::KODE_WILAYAH, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KEBUTUHAN_KHUSUS_ID, KebutuhanKhususPeer::KEBUTUHAN_KHUSUS_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PEKERJAAN_ID, PekerjaanPeer::PEKERJAAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::AGAMA_ID, AgamaPeer::AGAMA_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::JENIS_TINGGAL_ID, JenisTinggalPeer::JENIS_TINGGAL_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::ALAT_TRANSPORTASI_ID, AlatTransportasiPeer::ALAT_TRANSPORTASI_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PEKERJAAN_ID_AYAH, PekerjaanPeer::PEKERJAAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::JENJANG_PENDIDIKAN_IBU, JenjangPendidikanPeer::JENJANG_PENDIDIKAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PEKERJAAN_ID_IBU, PekerjaanPeer::PEKERJAAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::JENJANG_PENDIDIKAN_AYAH, JenjangPendidikanPeer::JENJANG_PENDIDIKAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PEKERJAAN_ID_WALI, PekerjaanPeer::PEKERJAAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::JENJANG_PENDIDIKAN_WALI, JenjangPendidikanPeer::JENJANG_PENDIDIKAN_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "5f206b8c50af7c217f1bf040417d2c24", "score": "0.56284386", "text": "public function numrows() {\t\t\n\t\tif ($this->lastresult) { \n\t\t\tif ($this->usedSelect()) { //PDO might not return the correct number of rows if a select was used \n \n //http://www.php.net/manual/en/pdostatement.rowcount.php \n if (($rowcount = $this->lastresult->rowCount()) !== null)\n return $rowcount;\n \n\t\t\t\t$lastquery = $this->lastquery;\n\t\t\t\t$count_sql = 'select count(*) as total from'; //Manual suggests to use count(*) with the same parameters \n\t\t\t\t\n\t\t\t\t$pos = strpos(strtolower($lastquery), 'from') + 4; //this will return the position of the keyword form plus 4 in the last query\n\t\t\t\t$code = substr($lastquery,$pos,strlen($lastquery)); //This will retrieve the query after the from\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t$query = $count_sql . $code; \n\n // TODO: Fix problems with queries with LIMIT\n // example: \n // select count(*) as total from vinhos WHERE v_tipo = 'branco' LIMIT 0, 15 <-- This will return something\n // select count(*) as total from vinhos WHERE v_tipo = 'branco' LIMIT 15, 15 <-- This will return nothing, not 0, but nothing!!\n \n $r = null;\n if ($r = $this->conn->query($query)->fetch())\n $r = current($r);\n \n\t\t\t\t$this->_rowcount = $r;\n\t\t\t\treturn $this->_rowcount; \n\t\t\t} \n\t\t\treturn $this->lastresult->rowCount(); //PDO way \n\t\t}\n\t\treturn null;//return $this->lastresult->num_rows; \n\t}", "title": "" }, { "docid": "2deffa0a3086468af8e0c37de606459b", "score": "0.56248564", "text": "public function counttidakditerima(){\n\t\t\t$con = $this->conn;\n\t\t\t$coba = mysqli_query($con, \"SELECT COUNT(idpendaftar) as 'total' from tbpendaftar WHERE status = 'Tidak diterima'\");\n\t\t\t$data=mysqli_fetch_assoc($coba);\n\t\t\techo $data['total'];\n\t\t}", "title": "" }, { "docid": "9d3b16e87a1f1db43fba4e4799761903", "score": "0.56209916", "text": "public function getNumberOfRecords()\n {\n return $this->getTable('NeatlineRecord')->count(array(\n 'exhibit_id' => $this->id\n ));\n }", "title": "" }, { "docid": "89fa256c855d7f5150d2c0bca639c374", "score": "0.56209093", "text": "public static function doCountJoinCodeSnippetRelatedByFinishCodeSnippetId(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(QueuedDocumentPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n QueuedDocumentPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count\n\n // Set the correct dbName\n $criteria->setDbName(QueuedDocumentPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(QueuedDocumentPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $criteria->addJoin(QueuedDocumentPeer::FINISH_CODE_SNIPPET_ID, CodeSnippetPeer::CODE_SNIPPET_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "26746a4016781b5ba47a4ec0f6062eb3", "score": "0.5611313", "text": "public function countPartners()\n {\n $descentants = DB::select('SELECT count(*) FROM bt_get_descendants(:id,:level)',['id'=>$this->userId,'level'=>100]);\n return $descentants[0]->count;\n }", "title": "" }, { "docid": "e29a6debd606f30f1835442b81308680", "score": "0.5610913", "text": "public function findAllWithTrickCount();", "title": "" }, { "docid": "a256f4e7a96fa13b061a09975ba92063", "score": "0.56103456", "text": "function selectCountec_preguntas($criterio){\n\t\t\t$this->connection = Connection::getinstance()->getConn();\n\t\t\t$PreparedStatement = \"SELECT COUNT(*) AS count FROM ec_preguntas WHERE pregunta_id = pregunta_id \";\n\t\t\t$PreparedStatement = $this->defineCriterias($criterio,$PreparedStatement);\n\t\t\t$ResultSet = mysql_query($PreparedStatement,$this->connection);\n\t\t\tlogs::set_log(__FILE__,__CLASS__,__METHOD__, $PreparedStatement);\n\n\t\t\t$rows = 0;\n\t\t\twhile ($row = mysql_fetch_array($ResultSet)) {\n\t\t\t\t$rows = ceil($row['count'] / TABLE_ROW_VIEW);\n\t\t\t}\n\t\t\tmysql_free_result($ResultSet);\n\t\t\treturn $rows;\n\t\t}", "title": "" }, { "docid": "6ae9d7af09935f72b1e563c9a1ab10d2", "score": "0.56064844", "text": "public static function doCountJoinAllExceptJenjangPendidikanRelatedByJenjangPendidikanIbu(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(PesertaDidikPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n PesertaDidikPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY should not affect count\n\n // Set the correct dbName\n $criteria->setDbName(PesertaDidikPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(PesertaDidikPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n \n $criteria->addJoin(PesertaDidikPeer::KEBUTUHAN_KHUSUS_ID_AYAH, KebutuhanKhususPeer::KEBUTUHAN_KHUSUS_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KEBUTUHAN_KHUSUS_ID_IBU, KebutuhanKhususPeer::KEBUTUHAN_KHUSUS_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KEWARGANEGARAAN, NegaraPeer::NEGARA_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::ID_LAYAK_PIP, AlasanLayakPipPeer::ID_LAYAK_PIP, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::ID_BANK, BankPeer::ID_BANK, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KODE_WILAYAH, MstWilayahPeer::KODE_WILAYAH, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KEBUTUHAN_KHUSUS_ID, KebutuhanKhususPeer::KEBUTUHAN_KHUSUS_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PEKERJAAN_ID, PekerjaanPeer::PEKERJAAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::AGAMA_ID, AgamaPeer::AGAMA_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PENGHASILAN_ID_AYAH, PenghasilanPeer::PENGHASILAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::JENIS_TINGGAL_ID, JenisTinggalPeer::JENIS_TINGGAL_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::ALAT_TRANSPORTASI_ID, AlatTransportasiPeer::ALAT_TRANSPORTASI_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PEKERJAAN_ID_AYAH, PekerjaanPeer::PEKERJAAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PENGHASILAN_ID_WALI, PenghasilanPeer::PENGHASILAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PEKERJAAN_ID_IBU, PekerjaanPeer::PEKERJAAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PENGHASILAN_ID_IBU, PenghasilanPeer::PENGHASILAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PEKERJAAN_ID_WALI, PekerjaanPeer::PEKERJAAN_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "46560a40cfbd13c582f41987c808d45b", "score": "0.5596902", "text": "public static function doCountJoinAllExceptPenghasilanRelatedByPenghasilanIdAyah(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(PesertaDidikPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n PesertaDidikPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY should not affect count\n\n // Set the correct dbName\n $criteria->setDbName(PesertaDidikPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(PesertaDidikPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n \n $criteria->addJoin(PesertaDidikPeer::KEBUTUHAN_KHUSUS_ID_AYAH, KebutuhanKhususPeer::KEBUTUHAN_KHUSUS_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KEBUTUHAN_KHUSUS_ID_IBU, KebutuhanKhususPeer::KEBUTUHAN_KHUSUS_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KEWARGANEGARAAN, NegaraPeer::NEGARA_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::ID_LAYAK_PIP, AlasanLayakPipPeer::ID_LAYAK_PIP, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::ID_BANK, BankPeer::ID_BANK, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KODE_WILAYAH, MstWilayahPeer::KODE_WILAYAH, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KEBUTUHAN_KHUSUS_ID, KebutuhanKhususPeer::KEBUTUHAN_KHUSUS_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PEKERJAAN_ID, PekerjaanPeer::PEKERJAAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::AGAMA_ID, AgamaPeer::AGAMA_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::JENIS_TINGGAL_ID, JenisTinggalPeer::JENIS_TINGGAL_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::ALAT_TRANSPORTASI_ID, AlatTransportasiPeer::ALAT_TRANSPORTASI_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PEKERJAAN_ID_AYAH, PekerjaanPeer::PEKERJAAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::JENJANG_PENDIDIKAN_IBU, JenjangPendidikanPeer::JENJANG_PENDIDIKAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PEKERJAAN_ID_IBU, PekerjaanPeer::PEKERJAAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::JENJANG_PENDIDIKAN_AYAH, JenjangPendidikanPeer::JENJANG_PENDIDIKAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PEKERJAAN_ID_WALI, PekerjaanPeer::PEKERJAAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::JENJANG_PENDIDIKAN_WALI, JenjangPendidikanPeer::JENJANG_PENDIDIKAN_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "f9c80f2465c3a4da74d93d96b2b05bb7", "score": "0.55938697", "text": "function get_all_poli_count()\r\n {\r\n $this->db->from('poli');\r\n return $this->db->count_all_results();\r\n }", "title": "" }, { "docid": "b6d3551af5670516c93a5402f7f9f3ce", "score": "0.5590293", "text": "public static function doCountJoinPtk(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(RwyKerjaPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n RwyKerjaPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count\n\n // Set the correct dbName\n $criteria->setDbName(RwyKerjaPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(RwyKerjaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n\n $criteria->addJoin(RwyKerjaPeer::PTK_ID, PtkPeer::PTK_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "0339ad09bb769e2d218919024052d84e", "score": "0.55820304", "text": "public function getRecordCount();", "title": "" }, { "docid": "0339ad09bb769e2d218919024052d84e", "score": "0.55820304", "text": "public function getRecordCount();", "title": "" }, { "docid": "4f411e30e9bd3ce138bb3b37712cd22d", "score": "0.5581211", "text": "public function nbPatientConsulteSexeMas(){\n\t\t$db = $this->tableGateway->getAdapter();\n\t\t$sql = new Sql($db);\n\t\t$sQuery = $sql->select()\n\t\t->from(array('pers' => 'personne'))\n\t\t->columns(array('*'))\n\t\t->join(array('pat' => 'patient') , 'pers.ID_PERSONNE = pat.ID_PERSONNE' , array('*'))\n\t\t->join(array('c' => 'consultation') , 'c.id_patient = pat.ID_PERSONNE' , array('*'))\n\t\t->join(array('a' => 'admission') , 'a.id_patient = pat.ID_PERSONNE', array('*'))\n\t\t->join(array('cons' => 'consultation') , 'cons.id_admission = a.id_admission', array('Id_cons' => 'ID_CONS'))\n\t\t->join(array('sd' => 'sous_dossier') , 'sd.id_sous_dossier = cons.id_sous_dossier', array('TypeSousDossier' => 'type_dossier', 'idSousDossier' => 'id_sous_dossier'))\n\t\t->group('pat.ID_PERSONNE')\n\t\t->where(array('pers.SEXE' => 'MASCULIN'));\n\t\n\t\t$requete = $sql->prepareStatementForSqlObject($sQuery)->execute()->count();\n\t\n\t\treturn $requete;\n\t}", "title": "" }, { "docid": "b378e275d9961cc83d681322fc9d8e33", "score": "0.5575857", "text": "function countNew(){\n $sql = \n \"select * from tutor \n inner join tutorteach\n on tutor.tutorUsername=tutorteach.tutorUsername\n where tutor.tutorStatus = '2' and tutorteach.status='2'\";\n $count = DB::run($sql);\n return $count->rowCount();\n }", "title": "" }, { "docid": "85756492b5603ad1ad9ed417c4600f48", "score": "0.5575769", "text": "function getPrisonerNumberOfConviction($prisoner_id)\r\n {\r\n $result = 0;\r\n if(isset($prisoner_id) && $prisoner_id != '')\r\n {\r\n $prisonerData = $this->Prisoner->findById($prisoner_id);\r\n if(isset( $prisonerData['Prisoner']['prisoner_unique_no']) && !empty( $prisonerData['Prisoner']['prisoner_unique_no']))\r\n {\r\n $result = $this->PrisonerSentence->find('count', array(\r\n 'recursive' => -1,\r\n 'joins' => array(\r\n array(\r\n 'table' => 'prisoners',\r\n 'alias' => 'Prisoner',\r\n 'type' => 'inner',\r\n 'conditions'=> array('Prisoner.id = PrisonerSentence.prisoner_id')\r\n )\r\n ),\r\n 'conditions' => array(\r\n 'PrisonerSentence.is_trash' => 0,\r\n 'Prisoner.prisoner_unique_no' => $prisonerData['Prisoner']['prisoner_unique_no']\r\n ),\r\n ));\r\n }\r\n }\r\n return $result;\r\n }", "title": "" }, { "docid": "7ea709201318a5da567a41123283d152", "score": "0.5569654", "text": "public function count()\n {\n return data_get($this->only('id')->search(), 'total');\n }", "title": "" }, { "docid": "7bff14d24679a0a0add7b71987c97d48", "score": "0.5567149", "text": "public static function doCountJoinTbpais(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n\t{\n\t\t// we're going to modify criteria, so copy it first\n\t\t$criteria = clone $criteria;\n\n\t\t// We need to set the primary table name, since in the case that there are no WHERE columns\n\t\t// it will be impossible for the BasePeer::createSelectSql() method to determine which\n\t\t// tables go into the FROM clause.\n\t\t$criteria->setPrimaryTableName(TbalunoPeer::TABLE_NAME);\n\n\t\tif ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n\t\t\t$criteria->setDistinct();\n\t\t}\n\n\t\tif (!$criteria->hasSelectClause()) {\n\t\t\tTbalunoPeer::addSelectColumns($criteria);\n\t\t}\n\t\t\n\t\t$criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count\n\t\t\n\t\t// Set the correct dbName\n\t\t$criteria->setDbName(self::DATABASE_NAME);\n\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(TbalunoPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\n\t\t$criteria->addJoin(TbalunoPeer::NACIONALIDADE, TbpaisPeer::ID_PAIS, $join_behavior);\n\n\t\t// symfony_behaviors behavior\n\t\tforeach (sfMixer::getCallables(self::getMixerPreSelectHook(__FUNCTION__)) as $sf_hook)\n\t\t{\n\t\t call_user_func($sf_hook, 'BaseTbalunoPeer', $criteria, $con);\n\t\t}\n\n\t\t$stmt = BasePeer::doCount($criteria, $con);\n\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$count = (int) $row[0];\n\t\t} else {\n\t\t\t$count = 0; // no rows returned; we infer that means 0 matches.\n\t\t}\n\t\t$stmt->closeCursor();\n\t\treturn $count;\n\t}", "title": "" }, { "docid": "c3a846be1b11dbd78c8119f88b3a28b0", "score": "0.556647", "text": "function po_count() {\r\n \r\n \t$this->db->select('po.po_id');\r\n \r\n $this->db->or_where('po.status', $this->config->item('activeFlag'));\r\n $this->db->or_where('po.status', $this->config->item('sentFlag'));\r\n $this->db->group_by('po.requisition_id');\r\n\t\t$result = $this->db->get('purchase_order po');\r\n\t\r\n\t\treturn $result->num_rows();\r\n\t\r\n }", "title": "" }, { "docid": "dea0a94f91b32b5de38cf8d364c92e15", "score": "0.55663455", "text": "public static function doCountJoinAllExceptJenjangPendidikanRelatedByJenjangPendidikanWali(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)\n {\n // we're going to modify criteria, so copy it first\n $criteria = clone $criteria;\n\n // We need to set the primary table name, since in the case that there are no WHERE columns\n // it will be impossible for the BasePeer::createSelectSql() method to determine which\n // tables go into the FROM clause.\n $criteria->setPrimaryTableName(PesertaDidikPeer::TABLE_NAME);\n\n if ($distinct && !in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {\n $criteria->setDistinct();\n }\n\n if (!$criteria->hasSelectClause()) {\n PesertaDidikPeer::addSelectColumns($criteria);\n }\n\n $criteria->clearOrderByColumns(); // ORDER BY should not affect count\n\n // Set the correct dbName\n $criteria->setDbName(PesertaDidikPeer::DATABASE_NAME);\n\n if ($con === null) {\n $con = Propel::getConnection(PesertaDidikPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n \n $criteria->addJoin(PesertaDidikPeer::KEBUTUHAN_KHUSUS_ID_AYAH, KebutuhanKhususPeer::KEBUTUHAN_KHUSUS_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KEBUTUHAN_KHUSUS_ID_IBU, KebutuhanKhususPeer::KEBUTUHAN_KHUSUS_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KEWARGANEGARAAN, NegaraPeer::NEGARA_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::ID_LAYAK_PIP, AlasanLayakPipPeer::ID_LAYAK_PIP, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::ID_BANK, BankPeer::ID_BANK, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KODE_WILAYAH, MstWilayahPeer::KODE_WILAYAH, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::KEBUTUHAN_KHUSUS_ID, KebutuhanKhususPeer::KEBUTUHAN_KHUSUS_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PEKERJAAN_ID, PekerjaanPeer::PEKERJAAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::AGAMA_ID, AgamaPeer::AGAMA_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PENGHASILAN_ID_AYAH, PenghasilanPeer::PENGHASILAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::JENIS_TINGGAL_ID, JenisTinggalPeer::JENIS_TINGGAL_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::ALAT_TRANSPORTASI_ID, AlatTransportasiPeer::ALAT_TRANSPORTASI_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PEKERJAAN_ID_AYAH, PekerjaanPeer::PEKERJAAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PENGHASILAN_ID_WALI, PenghasilanPeer::PENGHASILAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PEKERJAAN_ID_IBU, PekerjaanPeer::PEKERJAAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PENGHASILAN_ID_IBU, PenghasilanPeer::PENGHASILAN_ID, $join_behavior);\n\n $criteria->addJoin(PesertaDidikPeer::PEKERJAAN_ID_WALI, PekerjaanPeer::PEKERJAAN_ID, $join_behavior);\n\n $stmt = BasePeer::doCount($criteria, $con);\n\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $count = (int) $row[0];\n } else {\n $count = 0; // no rows returned; we infer that means 0 matches.\n }\n $stmt->closeCursor();\n\n return $count;\n }", "title": "" }, { "docid": "79cc764995626d0140a9be5202f7adc4", "score": "0.55649424", "text": "public function getCountBinadhor()\n {\n $this->db->query('SELECT * FROM '. $this->table);\n $this->db->execute(); \n return $this->db->rowCount();\n // echo($query);\n // exit();\n }", "title": "" } ]
1bdd22029e15f48be36b4c4f1255215f
Public constructor In addition to the parameters of Zend_Mail_Part::__construct() this constructor supports: file filename or file handle of a file with raw message content flags array with flags for message, keys are ignored, use constants defined in Zend_Mail_Storage
[ { "docid": "5e059c9c9f37cab3c4b7f8e654f2bd7a", "score": "0.72997904", "text": "public function __construct(array $params)\n {\n if (isset($params['file'])) {\n if (!is_resource($params['file'])) {\n $params['raw'] = @file_get_contents($params['file']);\n if ($params['raw'] === false) {\n /**\n * @see Zend_Mail_Exception\n */\n require_once 'Zend/Mail/Exception.php';\n throw new Zend_Mail_Exception('could not open file');\n }\n } else {\n $params['raw'] = stream_get_contents($params['file']);\n }\n }\n\n if (!empty($params['flags'])) {\n // set key and value to the same value for easy lookup\n $this->_flags = array_combine($params['flags'], $params['flags']);\n }\n\n parent::__construct($params);\n }", "title": "" } ]
[ { "docid": "b48469494c45b68845ebe5960fc3dac0", "score": "0.6716809", "text": "protected function __construct()\r\n {\r\n parent::__construct('msg_files');\r\n }", "title": "" }, { "docid": "06d1654ce959f5ff1dd5bf9e43a02c73", "score": "0.6675907", "text": "public function __construct()\n {\n\n global $config;\n\n try {\n\n $this->_mail = new Zend_Mail_Storage_Pop3(array(\n 'host' => $config->inboxHost,\n 'user' => $config->inboxAccount,\n 'password' => $config->inboxPass,\n 'ssl' => 'SSL'\n ));\n } catch (Exception $e) {\n print \"<pre>\";\n var_dump($e->getMessage());\n echo 'Mail Retrieval Failed...' . PHP_EOL;\n\n die();\n }\n\n $this->processMail();\n }", "title": "" }, { "docid": "34514a9600faca06384c23c01f00643c", "score": "0.64321226", "text": "public function __construct($options = NULL, $emailTemplateShort = NULL)\n\t{\n\t\tif (!$options instanceof L8M_MailV2) {\n\t\t\tthrow new L8M_MailV2_Part_Attachment_Exception('When constructing an L8M_MailV2_Part_Attachment instance, the parent L8M_Mail instance needs to be passed as an argument.');\n\t\t}\n\n\t\t$this->setEmailTemplatePartShort($emailTemplateShort);\n\t\t$this->setParent($options);\n\t}", "title": "" }, { "docid": "c257fb6804da94200521705e2f0df76c", "score": "0.63693374", "text": "public function __construct($mailTo, $subject, $content, $filePath, $ccTo, $mailFrom)\n {\n $this->mailTo = $mailTo;\n $this->subject = $subject;\n $this->content = $content;\n $this->filePath = $filePath;\n $this->ccTo = $ccTo;\n $this->mailFrom = $mailFrom;\n }", "title": "" }, { "docid": "d711d881eabf39d5b22c956d5e0e2321", "score": "0.631557", "text": "public function __construct($file = null, $stream = null, array $options = [])\n {\n if (null !== $stream) {\n $this->stream = $stream;\n $this->basename = $options['basename'] ?? 'file.tmp';\n } else if (null !== $file) {\n if (!file_exists($file)) {\n throw new Exception(\"Error: The file '\" . $file . \"' does not exist.\");\n } else {\n $this->filename = $file;\n $this->stream = file_get_contents($file);\n $this->basename = basename($file);\n }\n }\n\n $chunk = (isset($options['chunk'])) ? (bool)$options['chunk'] : false;\n $contentType = null;\n $encoding = null;\n\n // Set encoding\n if (isset($options['encoding'])) {\n switch (strtoupper($options['encoding'])) {\n case self::BASE64:\n case self::QUOTED_PRINTABLE:\n case self::BINARY:\n case self::_8BIT:\n case self::_7BIT:\n $encoding = strtoupper($options['encoding']);\n }\n }\n\n // Set content type\n foreach ($options as $key => $value) {\n $key = strtolower($key);\n if (($key == 'content-type') || ($key == 'contenttype') ||\n ($key == 'mime-type') || ($key == 'mimetype') || ($key == 'mime')) {\n $contentType = $value;\n }\n }\n\n // Fallback content type detection\n if ((null === $contentType) && (strpos($this->basename, '.') !== false)) {\n $pathInfo = pathinfo($this->basename);\n $ext = strtolower($pathInfo['extension']);\n $contentType = (array_key_exists($ext, $this->contentTypes)) ?\n $this->contentTypes[$ext] : 'application/octet-stream';\n }\n\n parent::__construct($this->stream, $contentType . '; name=\"' . $this->basename . '\"', $encoding, $chunk);\n\n $this->addHeader('Content-Description', $this->basename)\n ->addHeader('Content-Disposition', 'attachment; filename=\"' . $this->basename . '\"')\n ->setCharSet(null);\n }", "title": "" }, { "docid": "91feb90b5d36fe4ded272f32c59e8eeb", "score": "0.62621665", "text": "public function __construct($file_name, $content)\n {\n parent::__construct($file_name);\n $this->_content = $content;\n }", "title": "" }, { "docid": "352778fd33d22037d61e72a57ed91cc7", "score": "0.6247928", "text": "function __construct($file) {\n $this->file = $file;\n }", "title": "" }, { "docid": "e2261b36232490ee9f2b9fea27773cef", "score": "0.6231446", "text": "public function __construct(){\r\n\t$this->useSmtp = _USINGSMTP_;\r\n\t$this->smtpServer = _SMTPSERVER_;\r\n\t$this->smtpPort = _SMTPPORT_;\r\n\t$this->smtpUser = _SMTPUSER_;\r\n\t$this->smtpPassword = _SMTPPASSWORD_;\r\n\t$this->adminMail = _SYSTEMMAIL_;\r\n\t\r\n\t/* required email variables */\r\n\t$this->mailTo = null;\r\n\t$this->mailFrom = _ADMINMAIL_; // System account as default\r\n\t$this->nameFrom = _WEEBOSITETITLE_; // System name as default\r\n\t$this->mailBody = null;\r\n\t$this->mailSubject = null;\r\n\t$this->contentType = 'text/plain'; // Plain text as default ['text/plain' or 'text/html']\r\n\t$this->attachments = array(); // path/to/file\r\n\t\r\n\t/* init default system private vars */\r\n\t$this->smtpTimeout = _SMTPTIMEOUT_;\r\n\t$this->smtpNewLine = _SMTPNEWLINE_;\r\n\t$this->mailHeaders = null;\r\n\t$this->sendStatus = null;\r\n\t$this->smtpError = null;\r\n\t$this->smtpLog = array();\r\n\t$this->secure = _SMTPSECURE_;\r\n\t$this->smtpLocalhost = _SMTPLOCALHOST_;\r\n\t$this->attachmentSend = false;\r\n}", "title": "" }, { "docid": "2d1b9940f07409dbe35f213345f4a990", "score": "0.6221485", "text": "public function __construct( $disposition = 'inline',\n $fileName = null,\n $creationDate = null,\n $modificationDate = null,\n $readDate = null,\n $size = null,\n $additionalParameters = array(),\n $fileNameLanguage = null,\n $fileNameCharSet = null,\n $displayFileName = null )\n {\n $this->disposition = $disposition;\n $this->fileName = $fileName;\n $this->fileNameLanguage = $fileNameLanguage;\n $this->fileNameCharSet = $fileNameCharSet;\n $this->displayFileName = $displayFileName;\n $this->creationDate = $creationDate;\n $this->modificationDate = $modificationDate;\n $this->readDate = $readDate;\n $this->size = $size;\n $this->additionalParameters = $additionalParameters;\n }", "title": "" }, { "docid": "19b8a6a5713fb74030029b151f6a0733", "score": "0.62056625", "text": "public function __construct(\n protected string $file\n ){\n // \n }", "title": "" }, { "docid": "53f9bcf6c550dc09643beae5769f0b85", "score": "0.6186079", "text": "public function __construct(Mime $mime)\n\t{\n\t\t$this->mime \t= $mime;\n\t}", "title": "" }, { "docid": "93455fb517022cc8670fb5008a32caaf", "score": "0.61447", "text": "public function __construct($file) {\n $this->file= $file instanceof File ? $file : new File($file);\n }", "title": "" }, { "docid": "1c21cab4da90b3a73ef0577382539029", "score": "0.61446166", "text": "function __construct($_filename){\n\n\t\t\tif (!is_null($_filename)) {\n\t\t\t\t$this->filename = $_filename;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "a49d7e52d726cf642b7b0edbaef6572e", "score": "0.61140555", "text": "private function __construct()\n {\n $this->m_dataRead = false;\n $this->m_attachments = array();\n }", "title": "" }, { "docid": "4e28f89aa0d17348a247956778697105", "score": "0.6089573", "text": "public function __construct($settings, $file);", "title": "" }, { "docid": "1f8fff45288f4c1f941e402d0d2e7945", "score": "0.6088617", "text": "public function __construct(string $file)\n {\n //\n $this->file = $file;\n }", "title": "" }, { "docid": "1b35d3477c0de792613e0d0acaf74f68", "score": "0.6081037", "text": "public function __construct($fileInstance = null)\n {\n $this->_file = $fileInstance;\n }", "title": "" }, { "docid": "99061aad5d6511b1be472e6ee9774252", "score": "0.6074423", "text": "public function __construct($data)\n\t\t{\n\t\t\tif(is_string($data))\n\t\t\t{\n\t\t\t\tif(file_exists($data))\n\t\t\t\t{\n\t\t\t\t\t$this->document_name = basename($data);\n\t\t\t\t\t$this->file_name = $data;\n\t\t\t\t\t$this->file_size = filesize($data);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tthrow new Exception('ProcreateDocument was unable to find the specified file.');\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Usually, though, we'll want to deal with an uploaded file\n\t\t\telse if(is_array($data) and isset($data['name']) and isset($data['tmp_name']))\n\t\t\t{\n\t\t\t\t$this->document_name = $data['name'];\n\t\t\t\t$this->file_name = $data['tmp_name'];\n\t\t\t\t$this->file_size = filesize($data['tmp_name']);\n\t\t\t}\n\n\t\t\tif($this->file_name)\n\t\t\t{\n\t\t\t\t$this->extract();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new Exception('ProcreateDocument was unable to read the uploaded file.');\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "dabc7ea45f6543aef9bf80260bd74e89", "score": "0.60630286", "text": "public function __construct()\n\t{\n\t\t$this->mime_type = new MimeType();\n\n\t\t$whitelist = ee()->config->loadFile('mimes');\n\n\t\t$this->mime_type->addMimeTypes($whitelist);\n\n\t\t// Add any mime types from the config\n\t\t$extra_mimes = ee()->config->item('mime_whitelist_additions');\n\t\tif ($extra_mimes !== FALSE)\n\t\t{\n\t\t\tif (is_array($extra_mimes))\n\t\t\t{\n\t\t\t\t$this->mime_type->addMimeTypes($extra_mimes);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->mime_type->addMimeTypes(explode('|', $extra_mimes));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "669080ae5a5694954f48262d5aefdd5b", "score": "0.606256", "text": "function __construct($filename){\n\t\t$this->_Filename = $filename;\n\t}", "title": "" }, { "docid": "f1a99be472abdca67056b24fd87ad875", "score": "0.6062232", "text": "public function __construct($emailContent, $attachment)\n {\n //\n $this->emailContent = $emailContent;\n $this->attachment = $attachment;\n \n }", "title": "" }, { "docid": "12ab97d431458de44c2960a53e7be202", "score": "0.6056549", "text": "public function __construct(FilePath $filePath)\n {\n $this->subjectFile = $filePath;\n }", "title": "" }, { "docid": "533630ab187e38010da22737ca986919", "score": "0.6034194", "text": "public function __construct($file,$data)\n {\n $this->file = $file;\n $this->data = $data;\n }", "title": "" }, { "docid": "6965ac84f606e0c58efc8dcf060391ac", "score": "0.60305107", "text": "public function __construct()\n {\n $this->file = app('files');\n parent::__construct();\n }", "title": "" }, { "docid": "bf01eafee9957377ac242253747817b3", "score": "0.6009077", "text": "public function __construct()\n\t{\n\t\t$this->bodyHtmlTemplate = file_get_contents($_SERVER['DOCUMENT_ROOT'].'/mailers/foundation/ErrorHtmlEmailTemplate.html');\n\t\t$this->bodyTextTemplate = file_get_contents($_SERVER['DOCUMENT_ROOT'].'/mailers/foundation/ErrorTextEmailTemplate.txt');\n\n\t\tparent::__construct();\n\t}", "title": "" }, { "docid": "8295624a436c5803acd18771e683c9c9", "score": "0.60060817", "text": "public function __construct()\n {\n if (5 == func_num_args()) {\n $this->base64Content = func_get_arg(0);\n $this->fileName = func_get_arg(1);\n $this->base64ContentStyleSheet = func_get_arg(2);\n $this->convertToPDF = func_get_arg(3);\n $this->signaturePackageFormat = func_get_arg(4);\n }\n }", "title": "" }, { "docid": "d9b5755205d288e6cdb62156b9313851", "score": "0.60027325", "text": "public function __construct()\n {\n $this->mail = new Email_Mailer;\n if (EMAIL_DRIVER == \"smtp\") {\n $this->mail->isSMTP();\n }\n if (EMAIL_DRIVER == \"sendmail\") {\n $this->mail->IsSendmail();\n }\n if (EMAIL_DRIVER == \"mail\") {\n $this->mail->IsMail();\n }\n $this->mail->Host = EMAIL_HOST;\n $this->mail->SMTPAuth = EMAIL_SMTPAUTH;\n $this->mail->Username = EMAIL_USERNAME;\n $this->mail->Password = EMAIL_PASSWORD;\n $this->mail->From = EMAIL_FROM;\n $this->mail->FromName = EMAIL_FROMNAME;\n $this->mail->WordWrap = 78;\n $this->mail->CharSet = \"utf-8\";\n $this->mail->Encoding = \"quoted-printable\";\n }", "title": "" }, { "docid": "e862904a228c4b3afe0df6f946305a6c", "score": "0.6002222", "text": "public function __construct($file, $file_path = null, $file_name = null)\n\t{\n\t\t$this->file \t= $file;\n\t\t$this->file_name = $file_name;\n\t\t$this->file_path = $file_path;\n\t}", "title": "" }, { "docid": "2d22379ab6160bc5696251dac7b02da8", "score": "0.5987655", "text": "public function __construct()\r\n {\r\n $this->fileHolder = file(FILE_IMPORT);\r\n $this->fileExport = file(FILE_EXPORT);\r\n }", "title": "" }, { "docid": "452381a920cf6812d4124949d24610d5", "score": "0.596282", "text": "public function __construct($file = null)\n {\n $this->file = $file;\n }", "title": "" }, { "docid": "8ebd50eb82a53bc907f86ec98a4757bb", "score": "0.59498984", "text": "function __construct()\n {\n /* Read only session */\n define('_READONLYSESSION', true);\n\n /* Get requested filename */\n $file = Jojo::getFormData('file', false);\n\n /* Check file name is set */\n if (!$file) {\n /* No filename, 404 */\n include(_BASEPLUGINDIR . '/jojo_core/404.php');\n exit;\n }\n\n $file = _DOWNLOADDIR . '/' . Jojo::relative2absolute(urldecode($file), '/');\n if (!file_exists($file)) {\n /* Not found, 404 */\n include(_BASEPLUGINDIR . '/jojo_core/404.php');\n exit;\n }\n\n Jojo::runHook('jojo_inline:downloadFile', array('filename' => $file));\n\n /* Send header */\n header('Content-Type: ' . Jojo::getMimeType($file));\n header('Content-Length: ' . filesize($file));\n header('Content-disposition: inline; filename=\"' . basename($file) . '\"');\n header('Content-Transfer-Encoding: binary');\n header('Pragma: public');\n header('Cache-Control: public, max-age=28800');\n header('Expires: ' . date('D, d M Y H:i:s \\G\\M\\T', time() + 28800));\n\n /* Send Content */\n readfile($file, 'rb');\n exit;\n }", "title": "" }, { "docid": "8fc34d07e7ef7409beb46fc37f776ebc", "score": "0.5945657", "text": "public function __construct($file)\n {\n parent::__construct($file);\n }", "title": "" }, { "docid": "805fa1fcb6364de61aa27727637f0d23", "score": "0.59437996", "text": "function __construct (array $file, string $newFileName=NULL)\n\t{\n\t\t$this->initialize();\n\t\t$this->file \t\t\t= $file;\n\t\t$this->newFileName \t\t= $newFileName;\n\t}", "title": "" }, { "docid": "090c9b7ba11c1f5b72021c0f09e14f04", "score": "0.59277517", "text": "public function __construct($filename, $options = array())\n {\n $this->_reader = new Reader($this->_filename = $filename);\n if (isset($options[\"base\"]))\n $options[\"readonly\"] = true;\n $this->setOptions($options);\n $this->setOffset(0);\n $this->setSize($this->_reader->getSize());\n $this->setType(\"file\");\n $this->setContainer(true);\n $this->constructBoxes();\n }", "title": "" }, { "docid": "8da4f9d17968713ae9d0b9396b531ca5", "score": "0.5924537", "text": "function __construct($filepath, $language){\n\t\t$this->filepath = $filepath;\n\t\t$this->language = $language;\n\t}", "title": "" }, { "docid": "525398324ab6fc28e9723544dd3f625a", "score": "0.5918318", "text": "public function __construct($file)\n {\n $this->file = $file;\n }", "title": "" }, { "docid": "525398324ab6fc28e9723544dd3f625a", "score": "0.5918318", "text": "public function __construct($file)\n {\n $this->file = $file;\n }", "title": "" }, { "docid": "525398324ab6fc28e9723544dd3f625a", "score": "0.5918318", "text": "public function __construct($file)\n {\n $this->file = $file;\n }", "title": "" }, { "docid": "3ec400a277612cb5e4146ca217348d25", "score": "0.59150875", "text": "public function __construct(array $attributes = array()) {\n $this->hasAttachedFile('file');\n parent::__construct($attributes);\n }", "title": "" }, { "docid": "fff45f5711d512ff4dea6ba8f1ad1965", "score": "0.58955497", "text": "public function construct() {\n\t\tparent::construct();\n $this->addDateFields(array(\"dateuploaded\"));\n \n // set the custom error messages\n $this->addCustomErrorMessages(array(\n \t\t\t\t\t\t\t\t\t\"filename.notblank\" => $this->translate->_(\"document_filename_error\"),\n \t\t\t\t\t\t\t\t\t\"type.notblank\" => $this->translate->_(\"document_type_error\")\n \t\t\t\t\t\t\t\t));\n }", "title": "" }, { "docid": "332cdfd7fe90f916d1cd4ce7d0254c6f", "score": "0.5895454", "text": "public function __construct($filename)\n\t{\n\t\t$this->_filename = $filename;\n\t}", "title": "" }, { "docid": "d4d992bed6a907a9aa6dd5970d9f96d4", "score": "0.58851683", "text": "public function __construct($fileName, $message, Token $token = null, $line = null, $column = null)\n {\n $this->fileName = $fileName;\n $this->message = $message;\n $this->token = $token;\n $this->line = $line;\n $this->column = $column;\n }", "title": "" }, { "docid": "5eecffcf27218fdd68f25d9e43f21a38", "score": "0.58840394", "text": "public function __construct($fileptr)\n\t{\n\t\t$this->fileptr = $fileptr;\n\t}", "title": "" }, { "docid": "783b6c40935df7ecb6e754a2db8abedf", "score": "0.5883987", "text": "public function __construct()\n {\n parent::__construct();\n $this->file = new Filesystem();\n }", "title": "" }, { "docid": "8e8cdb0a58ef408e32504b031841ec2e", "score": "0.5872713", "text": "public function __construct()\n\t{\n\t\t// we can set the from address and name and mailer from\n\t\t// the vars defined in the ed config files\n\t\t$this->Sender = NOTIFICATION_EMAIL_FROM_ADDRESS;\n\t\t$this->From = NOTIFICATION_EMAIL_FROM_ADDRESS;\n\t\t$this->FromName = NOTIFICATION_EMAIL_FROM_NAME;\n\t\t$this->Host = NOTIFICATION_EMAIL_HOST;\n\t\t$this->Port = NOTIFICATION_EMAIL_PORT;\n\t\t$this->Priority = NOTIFICATION_EMAIL_PRIORITY;\n\t\t$this->AltBody = NOTIFICATION_EMAIL_ALTBODY;\n\t\t// check for SMTP auth\n\t\tif( NOTIFICATION_SMTP_AUTH_REQUIRED )\n\t\t{\n\t\t\t$this->Username = NOTIFICATION_SMTP_AUTH_USERNAME;\n\t\t\t$this->Password = NOTIFICATION_SMTP_AUTH_PASSWORD;\n\t\t\t$this->SMTPAuth = true;\n\t\t\t$this->IsSMTP();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->SMTPAuth = false;\n\t\t\t$this->IsSendmail();\n\t\t}\n\t}", "title": "" }, { "docid": "f8ca955bfc9f3caaccaec1a27ad57f49", "score": "0.5866441", "text": "public function \t__construct() {\n\t\t\t$this->_mail = new myMail();\n\t\t}", "title": "" }, { "docid": "4ff7c5c1453367b5fd492644ce8865af", "score": "0.5862073", "text": "public function __construct($file_name)\n {\n $this->file_name = $file_name;\n }", "title": "" }, { "docid": "132df737c730ec91a1a4a489e45811af", "score": "0.5858942", "text": "public function __construct($file = NULL)\n {\n\n if($file != null){\n $this->file = $file;\n $this->fileName = $file['name'];\n $this->fileTmpName = $file['tmp_name'];\n $this->fileSize = $file['size'];\n $this->fileError = $file['error'];\n $this->fileType = $file['type'];\n $this->uploadFile($this->file);\n }\n }", "title": "" }, { "docid": "83a25bac39bb3a24e094cd81cdaffcb7", "score": "0.58424395", "text": "public function __construct(string $file_name)\n {\n parent::__construct($file_name);\n }", "title": "" }, { "docid": "aba41bb1c50210273ef9475e6be0d275", "score": "0.5829034", "text": "public function __construct()\n {\n $this->setColumnsMeta(array(\n 'grabado'=> array(''),\n ));\n\n $this->setMultiLangColumnsList(array(\n ));\n\n $this->setAvailableLangs(array('es', 'eu'));\n\n $this->setParentList(array(\n 'CodigoAperturaIbfk1'=> array(\n 'property' => 'CentroEmergencia',\n 'table_name' => 'CentrosEmergencia',\n ),\n 'CodigoAperturaIbfk2'=> array(\n 'property' => 'Contribuyente',\n 'table_name' => 'Contribuyentes',\n ),\n ));\n\n $this->setDependentList(array(\n ));\n\n\n\n\n $this->_defaultValues = array(\n 'createdOn' => 'CURRENT_TIMESTAMP',\n 'grabado' => '0',\n );\n\n $this->_initFileObjects();\n parent::__construct();\n }", "title": "" }, { "docid": "61b6fb77184900659b18d21b9464aaf1", "score": "0.58285", "text": "public function __construct(string $file)\n {\n $this->file = $file;\n }", "title": "" }, { "docid": "61b6fb77184900659b18d21b9464aaf1", "score": "0.58285", "text": "public function __construct(string $file)\n {\n $this->file = $file;\n }", "title": "" }, { "docid": "cd50372c87a2d08fa42f8312b4bb6cae", "score": "0.58214676", "text": "public function __construct($file = '') {\n $exploded = explode(\"\\n\", $file);\n $this->full_title = $exploded[0];\n array_shift($exploded);\n $this->data = join(\"\\n\",$exploded);\n $this->title = preg_replace('/<[^>]*?>/', '', $this->full_title);\n \n parent::__construct();\n }", "title": "" }, { "docid": "2cba83500bdf4475014ef01e35bb3066", "score": "0.581985", "text": "public function __construct($file)\n {\n $this->file = new \\SplFileObject($file);\n }", "title": "" }, { "docid": "dca71856b516e8b6549726f1649b2abb", "score": "0.58175254", "text": "public function __construct($filename) {\n // Store\n $this->_filename = $filename;\n \n // Check if it exists\n if(!file_exists($this->_filename)) {\n // Warn\n trigger_error(\"Could not find template file: {$filename}\", E_USER_WARNING);\n }\n \n // Get file contents\n $this->_data = file_get_contents($filename);\n }", "title": "" }, { "docid": "dd094f646a542cd39ccf16af5c231c2a", "score": "0.581703", "text": "public function __construct($paramsFilePath);", "title": "" }, { "docid": "4f344665eba1785754a60a6ac09c37e8", "score": "0.5815026", "text": "public function __construct($filePath = false)\n {\n $this->settings = Settings::instance();\n\n // Create a new file object\n $this->file = new File;\n\n if ($filePath instanceof File) {\n $this->filePath = $filePath->getLocalPath();\n return;\n }\n\n $this->filePath = (file_exists($filePath))\n ? $filePath\n : $this->parseFileName($filePath);\n }", "title": "" }, { "docid": "81b3f7f953ac82222f585b8ca048a3e2", "score": "0.58102566", "text": "public function __construct(array $fileDocument = array())\n {\n $this\n ->setFileDocument($fileDocument);\n }", "title": "" }, { "docid": "f0ea921a8fd4b90e64694ca1f5a55820", "score": "0.5801995", "text": "function __construct(){\n $contentLen = $_SERVER['CONTENT_LENGTH'];\n $contentType = substr($_SERVER['CONTENT_TYPE'], 0, stripos($_SERVER['CONTENT_TYPE'], ';'));\n\n if ($contentType == 'multipart/form-data' && $contentLen > UPLOAD_MAX_SIZE) {\n Ak_Message::getInstance()->add('Maybe the file is too large, Max is: '.(UPLOAD_MAX_SIZE/1024/1024).'M.')->output(0);\n }\n\n $this->request = Yov_Router::getInstance()->getRequest();\n\n $this->view = Yov_init::getInstance()->view;\n\n $this->init();\n }", "title": "" }, { "docid": "89a5375ed494ff1fc96701d321082ace", "score": "0.57835513", "text": "public function __construct(File $archive);", "title": "" }, { "docid": "605ec25e388cee1e23878e87331d37ca", "score": "0.5768458", "text": "public function __construct($filepath, array $config = [])\n {\n // get folder name as it will be useful when moving or deleting\n $this->filepath = $filepath;\n\n $config = array_merge([\n 'regex' => self::REGEX,\n 'sections' => self::SECTIONS,\n 'schemaType' => self::SCHEMA_TYPE\n ], $config);\n\n $this->regex = $config['regex'];\n $this->schemaType = $config['schemaType'];\n $this->sections = $config['sections'];\n\n $this->_readFile();\n $this->_buildRawData();\n }", "title": "" }, { "docid": "a8603bb3a4f2c560fc1f55c88a306168", "score": "0.57615095", "text": "public function __construct()\n\t{\n\t\t$this->opt['content_type'] = 'application/x-zip';\n\t\tcall_user_func_array(array('parent', '__construct'), func_get_args());\n\t}", "title": "" }, { "docid": "fdc893462dafa33f7220f43d8c2e37c1", "score": "0.5755787", "text": "public function __construct($requestFile)\n {\n $this->requestFile = $requestFile;\n }", "title": "" }, { "docid": "06c8f7af020ceb1e8baccdb04382038c", "score": "0.57525474", "text": "public function __construct($upload_file) {\r\n\t\t \r\n\t\t $this->_upload_file = $upload_file;\r\n\t }", "title": "" }, { "docid": "0b15e332c826236778594cd42f2a32cd", "score": "0.57504076", "text": "public function __construct($data, $file_type)\n {\n $this->data = $data;\n $this->file_type = $file_type;\n }", "title": "" }, { "docid": "0e368c4d3b90b6c3b48a0d2f27a589aa", "score": "0.5748206", "text": "public function __construct(string $filename)\n {\n $this->_fileHandle = @fopen($filename, \"rb\");\n if ($this->_fileHandle === false) {\n throw new \\InvalidArgumentException(\"File could not be opened!\");\n }\n // declare(encoding=\"UTF-8\");\n $internalEncoding = mb_internal_encoding();\n mb_internal_encoding(\"UTF-8\");\n\n $this->_parseHeader();\n $this->_parseFrames();\n\n fclose($this->_fileHandle);\n mb_internal_encoding($internalEncoding);\n }", "title": "" }, { "docid": "a9d6a25184a9a38a148141641026b46a", "score": "0.5741161", "text": "public function __construct() {\n\t\t$this->newFile = \"\";\n\t}", "title": "" }, { "docid": "0f6b8cf733882fc3c370fd73a6832be1", "score": "0.5734731", "text": "public function __construct()\n {\n $ci =& get_instance();\n\n // Load the email config file\n $ci->load->config('email');\n\n // Get the config object\n $this->config = $ci->config;\n\n // Create the transport\n $transport = $this->createTransport();\n\n // Create the mailer\n $this->originalMailer = $this->mailer = new Swift_Mailer($transport);\n\n // Create the message\n $this->originalMessage = $this->message = new Swift_Message();\n\n // Set the config items from the email config file\n $this->useragent = $this->config->item('useragent');\n $this->protocol = $this->config->item('protocol');\n $this->mailpath = $this->config->item('mailpath');\n $this->smtp_host = $this->config->item('smtp_host');\n $this->smtp_user = $this->config->item('smtp_user');\n $this->smtp_pass = $this->config->item('smtp_pass');\n $this->smtp_port = $this->config->item('smtp_port');\n $this->smtp_timeout = $this->config->item('smtp_timeout');\n $this->wordwrap = $this->config->item('wordwrap');\n $this->wrapchars = $this->config->item('wrapchars');\n $this->mailtype = $this->config->item('mailtype');\n $this->charset = $this->config->item('charset');\n $this->validate = $this->config->item('validate');\n $this->priority = $this->config->item('priority');\n $this->clrf = $this->config->item('clrf');\n $this->newline = $this->config->item('newline');\n $this->bcc_batch_mode = $this->config->item('bcc_batch_mode');\n $this->bcc_batch_size = $this->config->item('bcc_batch_size');\n }", "title": "" }, { "docid": "f87d146c4ba92c92dbbf5532c758b2a0", "score": "0.5731379", "text": "public function __construct($file_has_header = true){\n\t\t\t$this->file_has_header = $file_has_header;\n\t\t}", "title": "" }, { "docid": "e519c8305bc1c54e0e84eccd56507f6f", "score": "0.57192343", "text": "public function __construct(\\SplFileObject $file)\n {\n $this->file = $file;\n }", "title": "" }, { "docid": "f5b7d3252154ef440de802bb9768c2c4", "score": "0.57179475", "text": "function __construct($file = NULL) {\n\t\tif (!is_null($file)) {\n\t\t\tset($file);\n\t\t}\n\t}", "title": "" }, { "docid": "65951cbc076e3ddd7936034bc9006ba9", "score": "0.57169205", "text": "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t\n\t\t$this->config->load('bbs');\n\t\t$conf_bbs = $this->config->item('bbs');\n\t\t$this->file_dir = $conf_bbs['file_dir'];\n\t}", "title": "" }, { "docid": "e1d7cf98051362e179a1f7fdfa193528", "score": "0.57160527", "text": "function __construct($msg, $file = __FILE__, $line = __LINE__)\n {\n $this->PEAR_Error(sprintf(\"%s [%s on line %d].\", $msg, $file, $line)); \n }", "title": "" }, { "docid": "3c4fd414fbd1ae7042cccb7ee4648a44", "score": "0.57097036", "text": "function __construct()\n {\n parent::__construct();\n\n $this->filePath = 'file:///C:/wamp64/www/supFile/application/dataClients/';\n $this->load->database();\n $this->load->model(\"SupFileModel\");\n $this->load->helper(array('form', 'url', 'download'));\n $this->load->library('zip');\n }", "title": "" }, { "docid": "489c0a17579d6fec3adbd9379cece659", "score": "0.57058954", "text": "public function __construct($path)\n {\n $this->writewhen=false;\n $this->key=false;\n $this->keyhigh=false;\n $this->fields=array();\n $this->header=array();\n $this->detailed=array();\n $this->path=$path;\n $this->readfile();\n return($this);\n }", "title": "" }, { "docid": "e98299db628460e777bdfa65fbec7903", "score": "0.5703942", "text": "private function __construct() {\n\n //if file exists then grab the content\n if(file_exists(self::path)) {\n\n //turns ini file into array\n $this->settings = parse_ini_file(self::path); \n }\n }", "title": "" }, { "docid": "ccd4b02ff105bd4e3173f930a561355a", "score": "0.5701713", "text": "public function __construct($fileToProcess)\n {\n /**\n * @uses subClass::readData() \n * \n * childClass requirment readData should exist in PluginBsdImporterCsv and PluginBsdImporterExcel\n */\n $this->setValidation(\"pre\");\n $this->readData($fileToProcess); \n }", "title": "" }, { "docid": "f1f7eb6db125cd0da0fa88b3e8bbb665", "score": "0.5683363", "text": "public function __construct()\r\n {\r\n $this->upload_dir = Config::get('upload-manager::files_directory');\r\n $this->temp_dir = Config::get('upload-manager::temp_files_dir');\r\n $this->filenames = array();\r\n }", "title": "" }, { "docid": "bd2d9ce7f7dc8e8d1ac1886daba690dc", "score": "0.5678381", "text": "public function __construct($filename)\n {\n $this->filename = $filename;\n }", "title": "" }, { "docid": "0c3c06889572fde49fe96e96a837cf83", "score": "0.5675673", "text": "public function __construct($properties = false)\r\n\t{\r\n\t\tif (is_array($properties))\r\n\t\t{\r\n\t\t\t$this->name = $properties['name'];\r\n\t\t\t$this->type = $properties['type'];\r\n\t\t\t$this->tmp_name = $properties['tmp_name'];\r\n\t\t\t$this->error = $properties['error'];\r\n\t\t\t$this->size = $properties['size'];\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b850aaf865141e5d69b9d2d37c9301a2", "score": "0.56731236", "text": "public function __construct() { \n // check if accounts.xml exists and is readable\n if (file_exists(dirname(__FILE__).'/accounts.xml') && \n is_readable(dirname(__FILE__).'/accounts.xml')) {\n // assign the filename to the accFilename variable\n $this->accFilename = dirname(__FILE__).'/accounts.xml';\n } else {\n // file doesn't exist - exit the application with errors message\n die(\"Can't find \".dirname(__FILE__).\"/accounts.xml to configure email!\\n\");\n }\n\n // call readAccounts function to parse the accounts file\n $this->readAccounts();\n\n // call readEmail function to read the email\n $this->readEmail();\n }", "title": "" }, { "docid": "46477ae6895c517d6beb03ed5416fbe5", "score": "0.5672575", "text": "public function __construct() {\n $types = [];\n foreach (scandir(dirname(__file__) . \"/types\") as $dir) {\n if (is_file(dirname(__file__) . \"/types/{$dir}\")) $types[] = substr($dir, 0, -4);\n }\n // set message types\n $this->types = $types;\n }", "title": "" }, { "docid": "ae1c8c4d93420d84cb098a733c122a52", "score": "0.56681424", "text": "public function __construct($file)\n {\n $this->data = file_get_contents($file);\n }", "title": "" }, { "docid": "e17dd19c05bf1c702aa2b8134a5b1c7e", "score": "0.5668074", "text": "public function __construct($message = null, $attachment = null)\n {\n $this->message = $message;\n $this->attachment = $attachment;\n }", "title": "" }, { "docid": "5713c7c55c38614e07d199b6d099cec1", "score": "0.5661808", "text": "protected function _construct()\n\t{\n\t\tparent::_construct();\n\t\t$this->setTemplate(self::TEMPLATE_FILE);\n\t}", "title": "" }, { "docid": "7893d8ce0706bef11587fccb1897cb5c", "score": "0.5661181", "text": "public function __construct()\n {\n parent::__construct();\n $this->init();\n $this->storages = $this->BE_USER->getFileStorages();\n $this->iconFactory = GeneralUtility::makeInstance(IconFactory::class);\n }", "title": "" }, { "docid": "6523b158fe20721614f823f67d82d5f8", "score": "0.5658832", "text": "public function __construct($filePath)\n {\n $this->filePath = $filePath;\n $this->checkStructure();\n }", "title": "" }, { "docid": "32dc78c2592b207ed02ecfef6750dc6d", "score": "0.56560826", "text": "public function __construct()\n\t{\n\t\t$this->template_path = Config::getEmailTemplatePath();\n\t\t$this->layout_path = Config::getEmailLayoutPath();\n\t}", "title": "" }, { "docid": "19dc699f5510aed33e32962b1dfa1dd8", "score": "0.5654517", "text": "public function __construct(TransferFile $file)\n {\n $this->file = $file;\n //\n }", "title": "" }, { "docid": "e596c9624578848af4dabaf4f9932001", "score": "0.5654009", "text": "public function __construct($upload){\n\t\ttry {\n\t\t\tif(isset($_FILES[$upload])){\n\t\t\t\t$this->error = $_FILES[$upload]['error'];\n\t\t\t\t$this->original_filename = $_FILES[$upload]['name'];\n\t\t\t\t$this->_setMimeType($_FILES[$upload]['type']);\n\t\t\t\tif($_FILES[$upload]['error'] == UPLOAD_ERR_OK){\n\t\t\t\t\tparent::__construct($_FILES[$upload]['tmp_name']);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthrow new BaseException('File upload identifier not found: '.$upload, E_USER_WARNING);\n\t\t\t}\n\t\t} catch (BaseException $e){\n\t\t\techo $e;\n\t\t}\n\t}", "title": "" }, { "docid": "60e5590358cf01205c0e07900267aa67", "score": "0.564586", "text": "public function __construct() {\n parent::__construct();\n $this->charset= '';\n for ($i= 0, $s= func_num_args(); $i < $s; $i++) {\n $this->addPart(func_get_arg($i));\n }\n $this->setBoundary('----=_Alternative_'.uniqid(time(), TRUE));\n }", "title": "" }, { "docid": "21e34d8e8f81dc7c7361e44cc4fabe97", "score": "0.5642431", "text": "public function __construct(ContactFile $contactFile)\n {\n $this->contactFile = $contactFile;\n }", "title": "" }, { "docid": "0c66ac8534a5c418e9eef6ce2cfd32bf", "score": "0.563778", "text": "public function __construct($extraParams = '-f%s')\n {\n call_user_func_array(\n array($this, '\\Talandis\\LaravelMailDriver\\Transport\\MailTransport::__construct' ),\n Swift_DependencyContainer::getInstance()\n ->createDependenciesFor('transport.mail')\n );\n\n $this->setExtraParams($extraParams);\n }", "title": "" }, { "docid": "c59a8c50322aab0d171b2db2cab3bad9", "score": "0.56298745", "text": "function __construct(array $allowed = array(\"types\" => array(\"*/*\"),\"extensions\" => array(),\"size\" => 1048576)){\n $this->types = $allowed['types'];\n $this->extensions = $allowed['extensions'];\n $this->size = $allowed['size'];\n //$this->allowedExtensions = $allowedExtensions;\n //$this->sizeLimit = $sizeLimit;\n\n $this->checkServerSettings();\n\n if (isset($_GET['file'])) {\n $this->file = new UploadedFileXhr();\n } else if (isset($_FILES['file'])) {\n $this->file = new UploadedFileForm();\n } else {\n $this->file = false;\n }\n }", "title": "" }, { "docid": "1d35d03e71dd863fbfac8759966c6a37", "score": "0.56268114", "text": "public function __construct(\n $id,\n $title,\n $content,\n $date,\n $display_order,\n $email_sent,\n $path,\n $filename,\n $size,\n $comment\n ) {\n parent::__construct($id,RESOURCE_ANNOUNCEMENT);\n\n $this->content\t= $content;\n $this->title \t= $title;\n $this->date \t= $date;\n $this->display_order\t= $display_order;\n $this->email_sent\t \t= $email_sent;\n\n $this->attachment_path \t= $path;\n $this->attachment_filename = $filename;\n $this->attachment_size \t= $size;\n $this->attachment_comment \t= $comment;\n }", "title": "" }, { "docid": "e897a25a18f7cd37bbc3d66c5a8928a3", "score": "0.5623362", "text": "public function __construct() {\n\t\tparent::start(\n\t\t\t'attachments',\n\t\t\t__( 'Attachments', 'bp-attachments' ),\n\t\t\tplugin_dir_path( dirname( __FILE__ ) )\n\t\t);\n\t}", "title": "" }, { "docid": "a54e80e9d1fe80ec1ca5960ab54b08a2", "score": "0.5615325", "text": "public function __construct($from, $subject, $body, $pdfFileName, $pdfData)\n {\n $this->_from = $from;\n $this->_subject = $subject;\n $this->_body = $body;\n $this->pdfFileName = $pdfFileName;\n $this->pdfData = $pdfData;\n }", "title": "" }, { "docid": "9dc2d72bc931f302329cb087d8e4022c", "score": "0.5613811", "text": "public function __construct(File $file)\n {\n $this->file = $file;\n }", "title": "" }, { "docid": "9dc2d72bc931f302329cb087d8e4022c", "score": "0.5613811", "text": "public function __construct(File $file)\n {\n $this->file = $file;\n }", "title": "" }, { "docid": "9ee5a44a1ed64e6577741d0cac2c30cb", "score": "0.5612548", "text": "public function __construct($filename, $type = null)\n {\n $this->filename = $filename;\n $this->initialize($type);\n }", "title": "" } ]
6095d7adb97078af7169d82d199fe4c8
Return a SAMLResponse indicating that the authentication is cancelled by the user.
[ { "docid": "512d8d6bc1895de0a17dd7ec6b79f645", "score": "0.6889263", "text": "public function sendAuthenticationCancelledByUser(ResponseContext $responseContext)\n {\n $originalRequestId = $responseContext->getInResponseTo();\n\n $logger = $this->samlLogger->forAuthentication($originalRequestId);\n $logger->notice('Authentication was cancelled by the user, creating Response with AuthnFailed status');\n\n $response = $this->responseBuilder\n ->createNewResponse($responseContext)\n ->setResponseStatus(\n Constants::STATUS_RESPONDER,\n Constants::STATUS_AUTHN_FAILED,\n 'Authentication cancelled by user'\n )\n ->get();\n\n $logger->notice(sprintf(\n 'Responding to request \"%s\" with response based on response from the remote IdP with response \"%s\"',\n $responseContext->getInResponseTo(),\n $response->getId()\n ));\n\n return $response;\n }", "title": "" } ]
[ { "docid": "d3628eba52001e7a9cc7fd050abe9917", "score": "0.6239643", "text": "public function cancelAction()\n {\n $structuredData = $this->getFormattedData($_POST[\"DATA\"]);\n\n // Add cancel in log file\n $this->addResultInLogFile($structuredData);\n\n if ($this->hp('jrk_sips_controller_response')) {\n // Add result payment in the request\n $response = $this->forward($this->p(\"jrk_sips_cancel_return_url\"), array('response_data'=>$structuredData));\n } else {\n // Add result payment in the request\n $response = $this->forward($this->routeToControllerName($this->p(\"jrk_sips_cancel_return_url\")), array('response_data'=>$structuredData));\n }\n\n return $response;\n }", "title": "" }, { "docid": "66d61f5f150df1a06525fb9e91263737", "score": "0.5993027", "text": "public function cancel() {\n $currencyCode = 'USD';\n $actionType = 'PAY';\n $preapprovalKey = $this->anAction->paymentMethod->preapprovalkey;\n \n $resp = $this->CallCancel ($currencyCode, $actionType, $preapprovalKey);\n \n // Dealing with the response \n $ack = strtoupper($resp['responseEnvelope.ack']);\n \n if ($ack == 'SUCCESS'){\n // Success case\n $rv = array(\n 'ResponseCode' => 1,\n 'ResponseReasonCode' => 1,\n 'ResponseReasonText' => 'SUCCESS',\n );\n }\n else {\n // Error case\n $rv = array(\n 'ResponseCode' => urldecode($resp[\"error(0).errorId\"]),\n 'ResponseReasonCode' => urldecode($resp[\"error(0).category\"]),\n 'ResponseReasonText' => urldecode($resp[\"error(0).message\"]),\n );\n }\n\n $pr = array();\n\t foreach($rv as $key => $value) {\n array_push($pr, sprintf(\"%s=%s\", $key, $value));\n\t }\n\t \n $retval = new GatewayResponse($rv['ResponseCode'], $rv['ResponseReasonText']);\n\t $retval->platformResponse = join(\"|\", $pr);\n\n return $retval;\n }", "title": "" }, { "docid": "2a0327cf24555e037829463a99a9f7ba", "score": "0.59418243", "text": "public function cancelledAction()\n {\n return $this->render('@PEUser/Invitation/cancelled.html.twig');\n }", "title": "" }, { "docid": "12fd2f166554db57bfbff13717ea2c39", "score": "0.59048736", "text": "public function CancelIntent($request) {\n $ssml = false;\n return $this->speech->endSession($ssml, 'Thank you for using '.$this->config['invocation']);\n }", "title": "" }, { "docid": "9ba04b5fb6cfd5a693d02b21349ea30d", "score": "0.5802251", "text": "public function logout()\n {\n if (Auth::check()) {\n Auth::user()->update(['is_logged_in' => 'false']);\n Auth::user()->AauthAcessToken()->delete();\n $response = $this->apiResponse(JsonResponse::HTTP_OK, 'message', 'User logout successfully');\n } else {\n $response = $this->apiResponse(JsonResponse::HTTP_UNAUTHORIZED, 'message', 'Unauthorizeccd access.');\n }\n return $response;\n }", "title": "" }, { "docid": "b43874bc28643c222ec8bc38ec7310ce", "score": "0.5779909", "text": "public function cancel()\n\t{\n\t\tJRequest::checkToken() or jExit(JText::_('JInvalid_Token'));\n\n\t\t// Initialize variables.\n\t\t$app\t= &JFactory::getApplication();\n\t\t$model\t= &$this->getModel('Alliance', 'EveModel');\n\n\t\t// Get the alliance id.\n\t\t$allianceID = (int) $app->getUserState('com_eve.edit.alliance.allianceID');\n\n\t\t// Attempt to check-in the current alliance.\n\t\tif ($allianceID) {\n\t\t\tif (!$model->checkin($allianceID)) {\n\t\t\t\t// Check-in failed, go back to the alliance and display a notice.\n\t\t\t\t$message = JText::sprintf('JError_Checkin_failed', $model->getError());\n\t\t\t\t$this->setRedirect('index.php?option=com_eve&view=alliance&layout=edit', $message, 'error');\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t// Clean the session data and redirect.\n\t\t$app->setUserState('com_eve.edit.alliance.allianceID',\t\tnull);\n\t\t$app->setUserState('com_eve.edit.alliance.data',\tnull);\n\t\t$this->setRedirect(JRoute::_('index.php?option=com_eve&view=alliances', false));\n\t}", "title": "" }, { "docid": "03206a75be04868c6b103c6e02b774e5", "score": "0.57561624", "text": "protected function anUnauthenticatedResponse()\n {\n return $this->aResponse(440);\n\n }", "title": "" }, { "docid": "1cb43867f50f09ccf616014e6d0e2291", "score": "0.57018805", "text": "public function cancelSubscription()\n {\n Auth::user()->cancelActiveSubscription();\n\n return response()->json(['message' => 'Subscription Canceled'], 200);\n }", "title": "" }, { "docid": "cee6187c28ac880955aef4f513b2a7ec", "score": "0.56862444", "text": "public function cancel()\r\n {\r\n $request = request()->all();\r\n\r\n $info = [\r\n 'transaction_id' => $request['transaction']['id'],\r\n 'amount' => $request['transaction']['amount'],\r\n ];\r\n\r\n $trait = $this->processAbort($info);\r\n\r\n if (!empty($trait['error'])) {\r\n return $this->errorMsg($trait['error'], $trait['message']);\r\n }\r\n\r\n return response()->json([\r\n 'status' => \"OK\",\r\n 'balance' => (new CurrencyService())->toDollarsClear($trait['balance']),\r\n 'bonus' => 0.00,\r\n 'uuid' => (string) Uuid::generate(4),\r\n ]);\r\n }", "title": "" }, { "docid": "8dc874fb76b41dd42e8619b30b2579ce", "score": "0.5679633", "text": "public function executeLogoutAction() {\n $this->get('security.context')->setToken(null);\n //invalidate the current user session\n $this->getRequest()->getSession()->invalidate();\n $response = new Response();\n $response->headers->setCookie(new \\Symfony\\Component\\HttpFoundation\\Cookie('REMEMBERME', null, new \\DateTime('-1 day')));\n $response->sendHeaders();\n return $response;\n }", "title": "" }, { "docid": "f37b1cb9b1576b6f41c9806846e11d49", "score": "0.5678208", "text": "public function unauthorized() {\n\t\treturn $this->jsonApiResponse(false, ['message' => config(\"apiResponse.unauthorized\")], 401);\n\t}", "title": "" }, { "docid": "19490c088825d99cf2a8a9e921f79132", "score": "0.56757295", "text": "static public function UnauthorizedResponse()\n {\n $Psr17Factory = new Psr17Factory();\n $Response = $Psr17Factory->createResponse(401);\n $Response->getBody()->write(json_encode([\"message\" => \"unauthorized request\"]));\n return $Response;\n }", "title": "" }, { "docid": "649f2d507ec5c41c344153a9df3b7f73", "score": "0.56246054", "text": "public function logout()\n {\n auth()->logout();\n\n return response_api(Response::HTTP_OK, true, __('auth.logout'));\n }", "title": "" }, { "docid": "d1dc64302916cb32a86f2376e2c304c1", "score": "0.5614607", "text": "protected function unauthenticated($request, AuthenticationException $exception)\n {\n $response = app('Lq\\Response');\n $response->message = $exception->getMessage();\n $response->error_code = 'unauthenticated';\n\n return $response->out(401);\n }", "title": "" }, { "docid": "b4cc5742b8f4394dfa726b54df1d63ae", "score": "0.5613235", "text": "public function cancelAction()\n {\n $result['success'] = false;\n try {\n $paymentMethod = Mage::helper('payments')->getMethodInstance(Zooz_Payments_Model_Payments::METHOD_CODE);\n if ($paymentMethod) {\n $paymentMethod->cancelPartialAuthorization(Mage::getSingleton('checkout/session')->getQuote()->getPayment());\n }\n $result['success'] = true;\n $result['update_html'] = $this->_getPaymentMethodsHtml();\n } catch (Mage_Core_Exception $e) {\n Mage::logException($e);\n $result['error_message'] = $e->getMessage();\n } catch (Exception $e) {\n Mage::logException($e);\n $result['error_message'] = $this->__('There was an error canceling transactions. Please contact us or try again later.');\n }\n\n Mage::getSingleton('checkout/session')->getQuote()->getPayment()->save();\n $this->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));\n }", "title": "" }, { "docid": "aba0ac1f969d8dd29b004f72433af20d", "score": "0.5608254", "text": "public function logout()\n {\n auth()->logout();\n\n return CustomResponseBuilder::success();\n }", "title": "" }, { "docid": "cc6f9827536284c1845a2ce061174604", "score": "0.56010354", "text": "public function testUserDeniesAccessResponse()\n {\n $server = $this->getTestServer();\n $request = OAuth2_Request::createFromGlobals();\n $request->query['client_id'] = 'Test Client ID'; // valid client id\n $request->query['redirect_uri'] = 'http://adobe.com'; // valid redirect URI\n $request->query['response_type'] = 'code'; // invalid response type\n $response = $server->handleAuthorizeRequest($request, false);\n\n $this->assertEquals($response->getStatusCode(), 302);\n $this->assertEquals($response->getResponseParameter('error'), 'access_denied');\n $this->assertEquals($response->getResponseParameter('error_description'), 'The user denied access to your application');\n }", "title": "" }, { "docid": "9ecb5a59def6587c8ab3eeb5a08f0e78", "score": "0.55935407", "text": "public function cancel()\n {\n $this->setRedirect($this->_ambit->getRedirectUrl());\n }", "title": "" }, { "docid": "ada19314d96888b02e8c8bd5fc3b03ee", "score": "0.5575994", "text": "protected function unauthorize(): Response\n {\n if ($this->config['unauthorizedRedirect']) {\n $this->Flash->error($this->config['authError']);\n $this->Session->write('Auth.redirect', $this->request()->path(true));\n\n return $this->controller()->redirect(Router::url($this->config['loginAction']));\n }\n \n throw new ForbiddenException($this->config['authError']);\n }", "title": "" }, { "docid": "70e323943692ac49eec7dfb9a37cb73c", "score": "0.55541676", "text": "public function cancelled()\n {\n \n $this->alert('info', 'Understood');\n }", "title": "" }, { "docid": "70e323943692ac49eec7dfb9a37cb73c", "score": "0.55541676", "text": "public function cancelled()\n {\n \n $this->alert('info', 'Understood');\n }", "title": "" }, { "docid": "70e323943692ac49eec7dfb9a37cb73c", "score": "0.55541676", "text": "public function cancelled()\n {\n \n $this->alert('info', 'Understood');\n }", "title": "" }, { "docid": "ffd5874c53a81321ff8870834be941a6", "score": "0.54928714", "text": "function cancel()\n {\n if ($this->id <= 0) {\n return false;\n }\n if (!$this->setStatus('annulleret')) {\n return false;\n }\n //session_destroy();\n return true;\n }", "title": "" }, { "docid": "5103d2f0dcc8142ad0c3491870cf7373", "score": "0.54785466", "text": "public function unauthorized()\n {\n $args = func_get_args();\n return $this->response($this->getData($args), Responses::HTTP_UNAUTHORIZED);\n }", "title": "" }, { "docid": "f52fb16e166f7cca0ff57430b306e8f8", "score": "0.54682344", "text": "public function cancel()\n {\n $token = SCMUtility::stripTags( (isset($_GET['token'])) ? $_GET['token'] : '');\n $courseID = SCMUtility::stripTags( (isset($_GET['courseID'])) ? $_GET['courseID'] : '');\n\n // make sure the scm_ec_token token is present before processing things\n if( Session::get('scm_ec_token') )\n {\n // check if token matched\n if( $token == Session::get('scm_ec_token') )\n {\n\n $course = Course::find($courseID);\n $message = 'You have canceled your registration payment for this course.';\n View::make('templates/front/payments/cancel.php',compact('course','message'));\n\n } else {\n\n $course = Course::find($courseID);\n $message = 'An error has occurred while paying for this course.';\n View::make('templates/front/payments/error.php',compact('course','message'));\n\n }\n } else {\n\n // show something fishy\n SCMUtility::setFlashMessage('Ops! looks like something went wrong!','info');\n\n }\n\n // remove session for this transaction\n Session::forget('scm_ec_token');\n }", "title": "" }, { "docid": "84b1f8dfd91f520add8d224b3ed89128", "score": "0.5425281", "text": "public function cancelNow()\n {\n return $this->cancel(false);\n }", "title": "" }, { "docid": "96e71414281591501323c6d762f82279", "score": "0.5415858", "text": "public function skrillCancelAction()\n {\n return $this->render(\n 'FrontEndBundle:payment:skrillResponseTest.html.twig',\n array('status' => 'Cancelled by Skrill'));\n }", "title": "" }, { "docid": "a68bfe720e1e421dabcd04277bd83ac8", "score": "0.5408585", "text": "public function cancel(string $id): SmsResponseInterface;", "title": "" }, { "docid": "58d9ab42e17d1d63ec96fe93f9325243", "score": "0.5403891", "text": "public function cancel()\n\t{\n\t\treturn parent::cancel();\n\t}", "title": "" }, { "docid": "cbbc5621d0ec00296659ee020420a69b", "score": "0.5371907", "text": "public function logout()\n\t{\n\t\treturn $this->apiOutput(function() {\n\n\t\t\t\t// delete api session related to auth_token\n\t\t\t\t$this->apiSessionRepository->delete(Input::get('auth_token'));\n\n\t\t\t\treturn $this->successResponse();\n\t\t\t}, false);\n\t}", "title": "" }, { "docid": "eb735ee3ac5117283c4ab045dc190b3b", "score": "0.5361327", "text": "public function payCancel()\n {\n if( ($this->isPaymentSessionActive()) && (Session::isLoggedIn()) )\n {\n\n $this->paymentSessionDeactivate();\n\n SCMUtility::setFlashMessage('You have cancelled your payment.','info');\n\n } else {\n\n SCMUtility::setFlashMessage('Ops! looks like something went wrong!','info');\n\n }\n\n // debugging\n if( Settings::isPayPalLoggingEnabled() )\n {\n $log = new Log();\n $log->payPalLog('--------Start PayPal logging debug--------');\n $log->payPalLog('Pay Pal Advanced Cancel Handle was triggered!');\n $log->payPalLog('--------End PayPal logging debug--------');\n }\n }", "title": "" }, { "docid": "f620c4589e95d0258058a07de5f77646", "score": "0.5353494", "text": "public function cancelAction()\n {\n $this->_helper->viewRenderer->setNoRender();\n $this->view->layout()->disableLayout();\n\n $bid = $this->_request->getParam('bid');\n if ($bid > 0)\n {\n echo $this->view->json(Sahara_Soap::getSchedServerBookingsClient()->cancelBooking(array(\n 'userID' => array('userQName' => $this->_auth->getIdentity()),\n 'bookingID' => array('bookingID' => $bid),\n 'reason' => $this->_request->getParam('reason', 'User cancellation.')\n )));\n }\n else\n {\n echo $this->view->json(array('success' => false));\n }\n }", "title": "" }, { "docid": "8c0dc1a7988fd2b1b98f67bec259336b", "score": "0.5349316", "text": "public function logout()\n {\n $token = $this->guard()->user()->token();\n if ($token->revoke()) {\n return response()->json([\n 'status' => true,\n 'message' => 'You have been successfully logged out!'\n ]);\n }\n\n return response()->json([\n 'status' => false,\n 'message' => 'Failed to logout!'\n ]);\n\n }", "title": "" }, { "docid": "7c5369ca7c911f1520f6001f57f8b8af", "score": "0.5324567", "text": "public function cancel()\n {\n session()->flash('error', 'Rave payment has been canceled.');\n\n return redirect()->route('shop.checkout.cart.index');\n }", "title": "" }, { "docid": "eefe13ba40311130541676b13a5cdd79", "score": "0.53220046", "text": "public function unauthorized () {\n\t\tif ( Sentinel::check() ) {\n\n\t\t\t// Check if ajax requested\n\t\t\tif ( Request::ajax()) {\n\n\t\t\t\treturn Response::json([ 'error' => 403 , 'message' => 'Unauthorized action.' ], 403);\n\n\t\t\t\t// return redirect()->back()->withInput()->withErrors('Unauthorized access!');\n\t\t\t\t// return abort(403);\n\t\t\t\t// return abort(403, 'Unauthorized action.');\n\t\t\t\t// return Redirect::back()->withInput()->withErrors('Unauthorized access!');\n\t\t\t\t\n\t\t\t}\t\t\t\n\n\t\t\t// Return no access view\n\t\t\treturn View::make('admin.errors.noaccess');\n\n\t\t} else {\n\n\t\t\t// Return redirect back to login page if not logged by sentinel\n\t\t\treturn Redirect::to(route('admin.login'))->withErrors('Unauthorized access!');\n\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "81b77b410a90a3fb6d1a457718fad853", "score": "0.5317931", "text": "public function getCancelled()\n {\n return $this->cancelled;\n }", "title": "" }, { "docid": "6cb0e28420b9075f7cc58b870c596569", "score": "0.5316864", "text": "public function stopImpersonation()\n {\n return response()->json([\n 'message' => auth()->user()->leaveImpersonation()\n ]);\n }", "title": "" }, { "docid": "d6b94851885685750e7b3cd4ae625218", "score": "0.5304388", "text": "public function logout()\n {\n auth()->logout();\n return RestResponse::message('Successfully logged out');\n\n }", "title": "" }, { "docid": "4f0c56e34f9747856dedc547b85fffb3", "score": "0.529867", "text": "public function canceled()\n {\n return ($this->cancel_at && $this->cancel_at->isPast()) || $this->status == self::STATUS_CANCELED;\n }", "title": "" }, { "docid": "48df27db3785194c0a58b2316f3a1e81", "score": "0.5291769", "text": "public function postCancel() {\n\t\treturn Redirect::to('/member');\n\t}", "title": "" }, { "docid": "f6f94e16899e2eb02e6c991e470a098e", "score": "0.52707136", "text": "public function logout()\n {\n // logout the user by revoking the token\n $token = auth()->user()->token();\n $token->revoke();\n return response()->json(['success' => 'Successfully logged out'], 200);\n }", "title": "" }, { "docid": "fe6fcb268465bf5d3939b4d382c659c6", "score": "0.52646005", "text": "public function isCancelled()\n {\n return $this->transaction->result === KPayResponseStatus::CANCELLED;\n }", "title": "" }, { "docid": "f201c9d136bb1620bf060ef6f70fce65", "score": "0.5255865", "text": "public function logout()\n {\n return phpCAS::logout();\n }", "title": "" }, { "docid": "a870b320065c2b63df8ea577625b9640", "score": "0.5253847", "text": "public function logout()\n {\n Auth::logout();\n\n return Response::make('Success', 200);\n }", "title": "" }, { "docid": "6a3978db866e76919d91d352babe5663", "score": "0.5247627", "text": "public function logout()\n {\n auth()->logout();\n return ResponseHelper::successResponse(__('common.logged_out_successfully'));\n }", "title": "" }, { "docid": "1fb7bae1f3de571860c3a265f0a1deca", "score": "0.5232453", "text": "public function logoutAction()\n {\n QuizSessionService::endSession();\n return new ResponseModel(ResponseModel::STATUS, true);\n }", "title": "" }, { "docid": "c9ad47b861826b9a28a845c590da9d36", "score": "0.5232364", "text": "public function testLogoutSigned()\n {\n $settingsDir = TEST_ROOT .'/settings/';\n include $settingsDir.'settings1.php';\n\n $settingsInfo['security']['logoutRequestSigned'] = true;\n\n $auth = new OneLogin_Saml2_Auth($settingsInfo);\n\n try {\n // The Header of the redirect produces an Exception\n $returnTo = 'http://example.com/returnto';\n $auth->logout($returnTo);\n // Do not ever get here\n $this->assertFalse(true);\n } catch (Exception $e) {\n $this->assertContains('Cannot modify header information', $e->getMessage());\n $trace = $e->getTrace();\n $targetUrl = getUrlFromRedirect($trace);\n $parsedQuery = getParamsFromUrl($targetUrl);\n\n $sloUrl = $settingsInfo['idp']['singleLogoutService']['url'];\n $this->assertContains($sloUrl, $targetUrl);\n $this->assertArrayHasKey('SAMLRequest', $parsedQuery);\n $this->assertArrayHasKey('RelayState', $parsedQuery);\n $this->assertArrayHasKey('SigAlg', $parsedQuery);\n $this->assertArrayHasKey('Signature', $parsedQuery);\n $this->assertEquals($parsedQuery['RelayState'], $returnTo);\n $this->assertEquals(XMLSecurityKey::RSA_SHA1, $parsedQuery['SigAlg']);\n }\n }", "title": "" }, { "docid": "643d3ef4f5f6418a33e76a1c465bb812", "score": "0.52320665", "text": "protected function unauthorized(): static\n {\n return $this->status(401);\n }", "title": "" }, { "docid": "32ca1b3fc92ef2aa17bae37cd7b7540d", "score": "0.5224552", "text": "public function cancelAction(Request $request)\n {\n $user = $this->get('pe_user.repository.user')->findUserByToken($token = $request->get('token'));\n\n if (!($user instanceof UserInterface)) {\n throw new NotFoundHttpException(sprintf('The user with token \"%s\" does not exist', $token));\n }\n\n $this->get('pe_user.repository.user')->removeUser($user);\n\n return $this->redirectToRoute('pe_user__invitation_cancelled');\n }", "title": "" }, { "docid": "35192421f1915054dbd2fa0b7356794d", "score": "0.522398", "text": "public function cancelling()\n {\n \n $this->basket->status = 'cancelled';\n\n $this->basket->save();\n\n return redirect('/');\n\n }", "title": "" }, { "docid": "a4f5dbd7a834ec0e7d4feed570718f57", "score": "0.52213234", "text": "public function logout() {\n\t\tif (Auth::check()) {\n\n\t\t\tAuth::logout();\n\n\t\t\treturn $this->respond([\n\t\t\t\t'message' => 'You are now logged out!'\n\t\t\t]);\n\t\t} else {\n\t\t\treturn $this->respondUnauthorized('Please login!');\n\t\t}\n\t}", "title": "" }, { "docid": "3aaf5eedd6d90c3e903b50995dd06829", "score": "0.52185035", "text": "public function logout()\n {\n auth(\"api\")->logout();\n\n return response()->json([\"message\" => \"User successfully signed out\"]);\n }", "title": "" }, { "docid": "9254f6b74d1e4c80d0c933191e41eb46", "score": "0.5213792", "text": "public function logout() {\n return $this->post('auth/logout/');\n }", "title": "" }, { "docid": "51d92bbdfdf797e74570a27fad72a71f", "score": "0.5211246", "text": "public function cancel() {\n\t\tif (!Yii::$app->request->isAjax)\n\t\t\treturn $this->sendError('Bad request', $code = 400);\n\n\t\tif (Yii::$app->user->isGuest)\n\t\t\treturn $this->sendError('You are not authorised', $code = 301);\n\n\t\tif (!isset($_POST['id']) || !is_numeric($_POST['id']) || intval($_POST['id']) < 1)\n\t\t\treturn $this->sendError('Incorrect parking id');\n\n\t\t$user = Yii::$app->user->identity;\n\t\t$parking = Parking::find()->where(['id'=>intval($_POST['id']), 'user_id'=>$user->id])->one();\n\n\t\tif ($parking == null)\n\t\t\treturn $this->sendError('Parking not found');\n\n\t\tif (!$this->canBeCanceled($parking))\n\t\t\treturn $this->sendError('You cant cancel the parking');\n\n\t\t$parking->status = 0;\n\n\t\tif (!$parking->save())\n\t\t\treturn $this->sendError('Cant cancel parking');\n\n\t\treturn $this->sendSuccess();\n\t}", "title": "" }, { "docid": "e268a11b696d5484c2923f790150136a", "score": "0.52107424", "text": "public function Logout()\n\t {\n\t\t Auth::logout();\n\t\t $responseContent = $this->queryResponseBuilder(UserController::MSG_TEXT, UserController::MSG_LOGOUT);\n\t\t return $this->reponseBuilder($responseContent);\n\t }", "title": "" }, { "docid": "079590e842cfb8752c94e0914fb51271", "score": "0.52043074", "text": "public function logout()\n {\n auth()->logout();\n return response_json(200, 'success');\n }", "title": "" }, { "docid": "ccd961f16f038d472a0544606c523343", "score": "0.51981926", "text": "public function logout(): RedirectResponse\n {\n $session = SessionHelper::getInstance();\n LoggingHelper::log($session->getSessionKey(), 'Logout triggered, dropping session');\n\n // Logout the user.\n SessionHelper::drop();\n session()->put('isLogout', true);\n\n // Redirect them to base path.\n return redirect('/');\n }", "title": "" }, { "docid": "f16013525bec0f61fa3e6761628b5669", "score": "0.5193517", "text": "public function logout()\n\t{\n\t\t// Build the request path.\n\t\t$path = '?action=login';\n\n\t\t// @TODO clear internal data as well\n\n\t\t// Send the request.\n\t\t$response = $this->client->get($this->fetchUrl($path));\n\n\t\treturn $this->validateResponse($response);\n\t}", "title": "" }, { "docid": "0d721d5c63f3b939d833c00a7fd6e048", "score": "0.51865244", "text": "public function logout()\n {\n $client = Auth::guard('clientApi')->user();\n $client->notifi_token = null;\n $client->save();\n Auth::guard('clientApi')->logout();\n return successResponse();\n }", "title": "" }, { "docid": "5261d3784d94804f15a645d08f5acaa0", "score": "0.518393", "text": "public function cancel()\n {\n $today = Carbon::now('America/Denver');\n $billingDay = $this->created_at->day;\n $billingDate = Carbon::createFromDate($today->year, $today->month, $billingDay)->timezone('America/Denver');\n\n $endingDate = $billingDate;\n\n if ($today->gte($endingDate)) {\n $endingDate = $billingDate->addDays($this->getBillingDays());\n }\n\n $requestor = new Requestor();\n $request = $requestor->prepare((new AnetAPI\\ARBCancelSubscriptionRequest()));\n $request->setSubscriptionId($this->authorize_id);\n $controller = new AnetController\\ARBCancelSubscriptionController($request);\n $response = $controller->executeWithApiResponse($requestor->env);\n\n if (($response != null) && ($response->getMessages()->getResultCode() == \"Ok\")) {\n // If the user was on trial, we will set the grace period to end when the trial\n // would have ended. Otherwise, we'll retrieve the end of the billing period\n // period and make that the end of the grace period for this current user.\n if ($this->onTrial()) {\n $this->ends_at = $this->trial_ends_at;\n } else {\n $this->ends_at = $endingDate;\n }\n\n $this->save();\n } else {\n throw new Exception(\"Response : \" . $errorMessages[0]->getCode() . \" \" .$errorMessages[0]->getText(), 1);\n }\n\n return $this;\n }", "title": "" }, { "docid": "60e8e9026a537e6f9f3677caee3cf993", "score": "0.51696503", "text": "public function signoutAction()\n\t\t{\n\t\t\treturn $this->signout();\n\t\t}", "title": "" }, { "docid": "42e01b4a6276a9f176dfc1eb842d02b2", "score": "0.5167565", "text": "public function is_cancelled() {\n }", "title": "" }, { "docid": "21717f08863e45c9e57b9df75495d12a", "score": "0.51615787", "text": "public function logoutOthers(Request $request): RedirectResponse\n {\n // Response failed status\n //\n $status = [ 'type' => 'error', 'message' => 'Error while trying to logout session'];\n\n // Trying to log out other devices on broker\n //\n if($this->broker->logout($request, 'others')) {\n\n // Response success status\n //\n $status = [ 'type' => 'success', 'message' => 'Session successfully logout'];\n }\n\n // Redirect with status message\n //\n return redirect()->back()->with('status', $status);\n }", "title": "" }, { "docid": "36d68eefd3bab4ee293d6ca3faa98e4b", "score": "0.5161207", "text": "public function cancelSubscription()\n {\n Auth::user()->subscription()->cancelAtEndOfPeriod();\n\n event(new SubscriptionCancelled(Auth::user()));\n\n return $this->users->getCurrentUser();\n }", "title": "" }, { "docid": "3ab7fe26b16d7bd168c749de7b4b1d23", "score": "0.51533103", "text": "public function testProcessSLOResponseValidDeletingSession()\n {\n $message = file_get_contents(TEST_ROOT . '/data/logout_responses/logout_response_deflated.xml.base64');\n\n if (!isset($_SESSION)) {\n $_SESSION = array();\n }\n $_SESSION['samltest'] = true;\n\n // In order to avoid the destination problem\n $plainMessage = gzinflate(base64_decode($message));\n $currentURL = OneLogin_Saml2_Utils::getSelfURLNoQuery();\n $plainMessage = str_replace('http://stuff.com/endpoints/endpoints/sls.php', $currentURL, $plainMessage);\n $message = base64_encode(gzdeflate($plainMessage));\n\n $_GET['SAMLResponse'] = $message;\n\n $this->_auth->setStrict(true);\n $this->_auth->processSLO(false);\n\n $this->assertEmpty($this->_auth->getErrors());\n\n $this->assertFalse(isset($_SESSION['samltest']));\n }", "title": "" }, { "docid": "d4a5c80294ef64c9cb8d17d8b59a311c", "score": "0.51431817", "text": "public function logout()\n {\n $this->guard()->logout();\n\n return $this->success('Successfully logged out');\n }", "title": "" }, { "docid": "b7a029826feeb99294e97b7257aa8286", "score": "0.5140446", "text": "public function cancelAppointment(Request $request)\n {\n try{\n $response = new Response();\n $response->cancelAppointment($request->txtReason, $request->response_id);\n return redirect('home');\n } catch (\\Exception $ex) {\n Log::error('Error :'. $ex);\n \\Session::flash('message', \"Some error occurred.\");\n return Redirect::back();\n }\n }", "title": "" }, { "docid": "0eee359267161ec741c45135e2cb5fde", "score": "0.5134981", "text": "function action_logout()\n{\n setLoggedInUser(null);\n setRequestInfo(null);\n return authCancel(null);\n}", "title": "" }, { "docid": "0288dfc69ea6c92783d91637397bdfe9", "score": "0.51302874", "text": "public function forbiddenResponse()\n {\n return $this -> respondUnauthorized( 'Permission denied. Invalid user credentials.' );\n }", "title": "" }, { "docid": "d53821f3cf7f65345569244abe7aabd8", "score": "0.51267016", "text": "protected function unauthenticated($request, AuthenticationException $exception)\n { \n return response()->json(['error' => 'Unauthenticated.'], 401); \n }", "title": "" }, { "docid": "88041bf748375bcf2aa6941f98e429a5", "score": "0.5120106", "text": "protected function unauthenticated($request, AuthenticationException $exception)\n {\n return response()->error('Unauthenticated.', 401);\n }", "title": "" }, { "docid": "a80f04fff76ab299bdd805ebfe6f9e3b", "score": "0.51190376", "text": "public function destroy() {\n\n $user = Auth::guard('api')\n ->user()\n ->token()\n ->revoke();\n\n return response('success');\n }", "title": "" }, { "docid": "05788f67a43881ca73c4c5f3f1f5cf09", "score": "0.51188457", "text": "public function testProcessSLOResponseNoSucess()\n {\n $message = file_get_contents(TEST_ROOT . '/data/logout_responses/invalids/status_code_responder.xml.base64');\n\n // In order to avoid the destination problem\n $plainMessage = gzinflate(base64_decode($message));\n $currentURL = OneLogin_Saml2_Utils::getSelfURLNoQuery();\n $plainMessage = str_replace('http://stuff.com/endpoints/endpoints/sls.php', $currentURL, $plainMessage);\n $message = base64_encode(gzdeflate($plainMessage));\n\n $_GET['SAMLResponse'] = $message;\n\n $this->_auth->setStrict(true);\n $this->_auth->processSLO(true);\n $this->assertEquals($this->_auth->getErrors(), array('logout_not_success'));\n }", "title": "" }, { "docid": "de61a4c332c737408d6dde9741bb14b4", "score": "0.5118669", "text": "protected function sendLockoutResponse()\n {\n $seconds = $this->secondsRemainingOnLockout();\n return redirect('/cabinet/otp')->withErrors($this->getLockoutErrorMessage($seconds));\n }", "title": "" }, { "docid": "be2d879559adfbcddf26e1a462d1fae6", "score": "0.5115478", "text": "public static function cancel($id)\n {\n return Veritrans_ApiRequestor::post(\n Veritrans_Config::getBaseUrl() . '/' . $id . '/cancel',\n Veritrans_Config::$serverKey,\n false)->status_code;\n }", "title": "" }, { "docid": "c6b263e32dddbdde4b7c7aa6bb77dbd6", "score": "0.5110707", "text": "public function getCancelReason()\n {\n return $this->cancel_reason;\n }", "title": "" }, { "docid": "f9cb6d6022461596c6a590c832b2e6e3", "score": "0.5110211", "text": "public function sendUnauthorizedStatusAction() {\n return $this->createResponse(self::NO_CONTENT, self::STATUS_UNAUTHORIZED);\n }", "title": "" }, { "docid": "7974b3d82c3a7a3da5b243f3bc432d7b", "score": "0.5109306", "text": "public function getCancelRequest()\n {\n return $this->readOneof(2);\n }", "title": "" }, { "docid": "94f6e94e295c82a22ddd015438eb8566", "score": "0.51074845", "text": "protected function forbiddenResponse()\n {\n $this->isForbidden = true;\n $this->forbiddenMessage = ['forbidden' => __('Forbidden')];\n\n return $this->buildResponse();\n }", "title": "" }, { "docid": "70bdab2b7142ddb17a33d8b296c4a0c0", "score": "0.5101383", "text": "public function cancelar(Context $context) {\n $response = new JsonResponse();\n try {\n $unidade = $context->getUser()->getUnidade();\n if (!$unidade) {\n throw new Exception(_('Nenhuma unidade selecionada'));\n }\n $id = (int) $context->request()->post('id');\n $atendimento = $this->getAtendimento($unidade, $id);\n $ab = new AtendimentoBusiness($this->em());\n $response->success = $ab->cancelar($atendimento, $unidade);\n } catch (Exception $e) {\n $response->message = $e->getMessage();\n }\n return $response;\n }", "title": "" }, { "docid": "51e6e7c6d17bdcdec33295b07deac6bb", "score": "0.5100711", "text": "private function unAuthorized()\n {\n return [\"message\" => $this->unAuthorizedMessage, \"code\" => 200];\n }", "title": "" }, { "docid": "3b67b3ac9c63a3ac0b45bc90d6a0180d", "score": "0.5098755", "text": "public function doVoid()\n {\n // populate fields\n $query = array(\n self::AUTHORIZATION_ID => $this->transactionId,\n // An informational note about the settlement\n self::NOTE => $this->note);\n // call request method\n $response = $this->request(self::DO_VOID, $query);\n // if parameters are success\n if (isset($response[self::ACK])\n && $response[self::ACK] == self::SUCCESS) {\n // Get the authorization ID\n return $response[self::AUTHORIZATION_ID];\n }\n\n return $response;\n }", "title": "" }, { "docid": "f62c5a6483e179616ad5bd190ced9d4d", "score": "0.50953555", "text": "public function logout(Request $request)\n {\n if ((env('SAML2_RLP_IDP_SSO_URL') !== null) and (! empty(env('SAML2_RLP_IDP_SSO_URL')))) {\n return redirect()->action(\"\\Aacotroneo\\Saml2\\Http\\Controllers\\Saml2Controller@logout\",\n [\n 'idpName' => 'rlp', //todo: add use dynamic value (env?)\n 'returnTo' => $request->query('returnTo'),\n 'sessionIndex' => $request->session()->get('sessionIndex'),\n 'nameId' => $request->session()->get('nameId'),\n ]);\n } else {\n $this->guard()->logout();\n\n $request->session()->invalidate();\n\n $request->session()->regenerateToken();\n\n return $this->loggedOut($request) ?: redirect('/');\n }\n }", "title": "" }, { "docid": "200bea93b65cf75c91815089a00ab776", "score": "0.50666827", "text": "public function unauthorised(Request $request) \n {\n return view('centurion::auth/unauthorised');\n }", "title": "" }, { "docid": "7d06787aef1a6099297d1314ac2a845d", "score": "0.50654256", "text": "final public function cancel()\n {\n $this->status = 'cancel';\n\n }", "title": "" }, { "docid": "aaf7f197ebb3b7784a04c236516abdfa", "score": "0.506322", "text": "public function logout(){\n Auth::logout();\n\n return $this->showMessage('Se ha cerrado la sesión del usuario correctamente.');\n }", "title": "" }, { "docid": "fe0c803e666f6af7d18139035a015caa", "score": "0.50631684", "text": "public function cancel()\n\t{\n\t\tJSession::checkToken() or jexit('Invalid Token');\n\n\t\t$id = JFactory::getApplication()->input->getInt('id', 0);\n\t\t$row = JTable::getInstance('blooms', 'Table');\n\t\t$row->checkin($id);\n\t\t$msg = JText::_('COM_ALVEARIUM_CANCELED');\n\t\t$this->setRedirect('index.php?option=com_alvearium&view=blooms', $msg);\n\t}", "title": "" }, { "docid": "e8459ad4aadae2f3d6eaf489b44e7893", "score": "0.5060724", "text": "public function logout()\n {\n auth('api_client')->logout();\n\n return response()->json(['message' => 'Successfully logged out']);\n }", "title": "" }, { "docid": "038d83781f67d69e6a0bcf3fdbd4ae64", "score": "0.50570434", "text": "public function getLogout()\n {\n Auth::logout();\n\n return redirect($this->redirectBackTo)\n ->with('successMessage', 'You have been logged out. See you soon!');\n }", "title": "" }, { "docid": "53878bd1273ddb5572668fd99f617277", "score": "0.50546724", "text": "function cancel()\n {\n JRequest::checkToken() or jexit( 'Invalid Token' );\n\n\n $vars = array();\n JRequest::setVar( 'view' , 'sales');\n JRequest::setVar( 'layout', 'default' );\n JRequest::setVar( 'cid', null );\n\n $this->setRedirect(TravelHelper::urlRequest($vars));\n\n }", "title": "" }, { "docid": "b31460faa8a090a0fa51ea25d71593f5", "score": "0.50472367", "text": "public function logout(Request $request)\n {\n $request->user()->token()->revoke();\n\n return $this->responseSuccess([\n \"message\" => \"Logged out successfully!\"\n ]);\n }", "title": "" }, { "docid": "9811bccca863d65372e9df71c9429e71", "score": "0.50456583", "text": "public function logout(Request $request)\n {\n $a = $request->user()->token()->revoke(); \n if($a){\n return response()->json([\n 'status'=>'200',\n 'message' => 'Successfully logged out',\n 'results'=>array() \n ], 200); \n }else{\n return response()->json([\n 'status'=>'400',\n 'message' => 'Please login.',\n 'results'=>array() \n ], 200); \n } \n }", "title": "" }, { "docid": "acb86cdfc82d7bfe3a212d8a0d9f5cdd", "score": "0.5038794", "text": "public function testLogoutNoSLO()\n {\n $settingsDir = TEST_ROOT .'/settings/';\n include $settingsDir.'settings1.php';\n\n unset($settingsInfo['idp']['singleLogoutService']);\n\n $auth = new OneLogin_Saml2_Auth($settingsInfo);\n\n try {\n $returnTo = 'http://example.com/returnto';\n $auth->logout($returnTo);\n $this->fail('OneLogin_Saml2_Error was not raised');\n } catch (OneLogin_Saml2_Error $e) {\n $this->assertContains('The IdP does not support Single Log Out', $e->getMessage());\n }\n }", "title": "" }, { "docid": "ceb50795225b2b882c4846ed1980dac5", "score": "0.50303143", "text": "public function logout() {\n auth()->logout();\n\n return response()->json($this->statusTransformer->transform(true));\n }", "title": "" }, { "docid": "db9ac2b5dad3f28ca08a71fc325b8a4b", "score": "0.5025939", "text": "function cancel()\n\t{\n\t\tif (!isset($this->redirect)) {\n\t\t\t$this->redirect = 'index.php?option='.$this->get('com').'&view='.$this->get('suffix');\n\t\t}\n\n\t\t$task = JRequest::getVar( 'task' );\n\t\tswitch (strtolower($task))\n\t\t{\n\t\t\tcase \"cancel\":\n\t\t\t\t$msg = JText::_( 'Operation Cancelled' );\n\t\t\t\t$type = \"notice\";\n\t\t\t\tbreak;\n\t\t\tcase \"close\":\n\t\t\tdefault:\n\t\t\t\t$model \t= $this->getModel( $this->get('suffix') );\n\t\t\t\t$row = $model->getTable();\n\t\t\t\t$row->load( $model->getId() );\n\t\t\t\tif (isset($row->checked_out) && !JTable::isCheckedOut( JFactory::getUser()->id, $row->checked_out) )\n\t\t\t\t{\n\t\t\t\t\t$row->checkin();\n\t\t\t\t}\n\t\t\t\t$msg = \"\";\n\t\t\t\t$type = \"\";\n\t\t\t\tbreak;\n\t\t}\n\n\t\t$this->setRedirect( $this->redirect, $msg, $type );\n\t}", "title": "" }, { "docid": "06b4acf34d4b23f3a95c5e2299e53dcc", "score": "0.5025397", "text": "public function cancelShipment($request): CancelShipmentResponse;", "title": "" }, { "docid": "991fa06d5960861692932243dd244935", "score": "0.5024506", "text": "public function abort()\n {\n $user = Auth::user();\n\n // Check if has not group throw forbidden\n if ($user->role_id != 1) \n return App::abort(403);\n\n }", "title": "" }, { "docid": "4ae55be22327a003e13c9d3470a9bdc4", "score": "0.50234324", "text": "public function cancel()\r\n\t{\r\n\t\tJRequest::checkToken() or jexit(JText::_('JInvalid_Token'));\r\n\r\n\t\t// Checkin the contact\r\n\t\t$model = $this->getModel('Contact');\r\n\t\t$model->checkin();\r\n\r\n\t\t$this->setRedirect('index.php?option=com_contacts&controller=contact');\r\n\t}", "title": "" }, { "docid": "d3b4edc81ebde5000c940fb76fcac769", "score": "0.50175285", "text": "public function cancel() {\n $this->status = Order::STATUS_CANCELED;\n return $this->save();\n }", "title": "" }, { "docid": "a9e0f2c7053350daed6ef1378f8f293e", "score": "0.50100654", "text": "public function cancelAction()\r\n\t{\r\n\t\t// verifica se o usuario estah logado na administracao do magento\r\n\t\tMage::getSingleton('core/session', array('name' => 'adminhtml'));\r\n\t\t$session = Mage::getSingleton('admin/session');\r\n\t\t\r\n\t\tif (!$session->isLoggedIn())\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t// pega pedido correspondente\r\n\t\t$orderId = $this->getRequest()->getParam('order');\r\n\t\t$order = Mage::getModel('sales/order')->load($orderId);\r\n\t\t\r\n\t\t$xml = $order->getPayment()->getMethodInstance()->cancelRequest($order);\r\n\t\t$status = (string) $xml->status;\r\n\t\t\r\n\t\t// tudo ok, transacao cancelada\r\n\t\tif($status == 9)\r\n\t\t{\r\n\t\t\t$html = \"<b>\" . Mage::helper('Query_Cielo')->__(\"Order cancelled with success\") . \"</b> &nbsp; &nbsp;\r\n\t\t\t\t\t<button type=\\\"button\\\" title=\\\" \" . Mage::helper('Query_Cielo')->__(\"Update Information\") . \"\\\" onclick=\\\"document.location.reload(true)\\\">\r\n\t\t\t\t\t<span>\" . Mage::helper('Query_Cielo')->__(\"Reload Page\") . \"</span>\r\n\t\t\t\t\t</button><br /><br />\";\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$html = \"\";\r\n\t\t}\r\n\t\t\r\n\t\t$this->getResponse()->setBody($html . Mage::helper('Query_Cielo')->xmlToHtml($xml));\r\n\t}", "title": "" } ]
b1f7df8f1883dc29a34d6931eeef95ff
get the list of browser accepted charactersets
[ { "docid": "6ba793337e4dfac262bb835951f5d4c0", "score": "0.80012697", "text": "public static function charsets() {\n\t\treturn explode ( ',', preg_replace ( '/(;q=.+)/i', '', strtolower ( trim ( \\Input::server ( 'http_accept_charset' ) ) ) ) );\n\t}", "title": "" } ]
[ { "docid": "e6941958d9de12f56972526fff0a3e4e", "score": "0.8348626", "text": "function ua_charsets()\n {\n return ua()->charsets();\n }", "title": "" }, { "docid": "dbbbff44a600fa9b10dc9b42431b5212", "score": "0.7790755", "text": "public function charsets()\n\t{\n\t\tif (count($this->charsets) == 0)\n\t\t{\n\t\t\t$this->_set_charsets();\n\t\t}\n\n\t\treturn $this->charsets;\n\t}", "title": "" }, { "docid": "655556c83356e301866364af67027039", "score": "0.72482586", "text": "private function _set_charsets()\n\t{\n\t\tif ((count($this->charsets) == 0) AND isset($_SERVER['HTTP_ACCEPT_CHARSET']) AND $_SERVER['HTTP_ACCEPT_CHARSET'] != '')\n\t\t{\n\t\t\t$charsets = preg_replace('/(;q=.+)/i', '', strtolower(trim($_SERVER['HTTP_ACCEPT_CHARSET'])));\n\n\t\t\t$this->charsets = explode(',', $charsets);\n\t\t}\n\n\t\tif (count($this->charsets) == 0)\n\t\t{\n\t\t\t$this->charsets = array('Undefined');\n\t\t}\n\t}", "title": "" }, { "docid": "0027361ca7083456fb66aa13561b7238", "score": "0.7004419", "text": "public static function getAllSupportedCharsets()\n {\n return self::$supportedCharset;\n }", "title": "" }, { "docid": "3f74741ddfdcbabd63665a3283a029b6", "score": "0.70043564", "text": "private function getDefaultCharsets()\n {\n return get_default_charsets();\n }", "title": "" }, { "docid": "16c55eb98055dba470134e5188561781", "score": "0.6978216", "text": "function getListOfCharacterSet()\n {\n $resql=$this->query('SHOW CHARSET');\n $liste = array();\n if ($resql)\n {\n $i = 0;\n while ($obj = $this->fetch_object($resql) )\n {\n $liste[$i]['charset'] = $obj->Charset;\n $liste[$i]['description'] = $obj->Description;\n $i++;\n }\n $this->free($resql);\n } else {\n // version Mysql < 4.1.1\n return null;\n }\n return $liste;\n }", "title": "" }, { "docid": "0bc9295d5debb14761b280965cacbc50", "score": "0.6947213", "text": "public function getCharsets()\n {\n if (count($this->charsets) == 0) {\n $this->setCharsets();\n }\n\n return $this->charsets;\n }", "title": "" }, { "docid": "1a10dd13b9165c79b7752a7278296547", "score": "0.6940252", "text": "public function getCharacterSet()\n {\n return $this->_charset;\n }", "title": "" }, { "docid": "6832d96265dcf63efda3fa232107cbdc", "score": "0.68487155", "text": "public static function getHttpCharset()\n {\n $httpcharsets = getenv('HTTP_ACCEPT_CHARSET');\n\n $charsets = array();\n if ($httpcharsets === false) {\n return $charsets;\n }\n\n $accepted = preg_split('/,\\s*/', $httpcharsets);\n foreach ($accepted as $accept) {\n if (empty($accept) === true) {\n continue;\n }\n\n if (strpos($accept, ';') !== false) {\n $quality = (float) substr($accept, (strpos($accept, '=') + 1));\n $pos = substr($accept, 0, strpos($accept, ';'));\n $charsets[$pos] = $quality;\n } else {\n $quality = 1.0;\n $charsets[$accept] = $quality;\n }\n }\n\n return $charsets;\n }", "title": "" }, { "docid": "b9ef293b91ce979cdbe734bde9c228c9", "score": "0.682366", "text": "function charsets(Request $req, array $available): array {\n return negotiate($req->getAcceptCharset() ?: [], $available,\n function(string $acceptable, string $available): bool {\n return $acceptable == '*' || !strcasecmp($acceptable, $available);\n });\n}", "title": "" }, { "docid": "e9ff90403d666bb5fdb28a9cb564e6d7", "score": "0.6753241", "text": "function mb_list_encodings(){}", "title": "" }, { "docid": "d7f14dceaf3796aaf35938d5338215cc", "score": "0.6747326", "text": "public function getClientCharsets()\n {\n return $this->_getQualityHeader(\"HTTP_ACCEPT_CHARSET\", \"charset\");\n }", "title": "" }, { "docid": "82cf4e28f58ee5089597d3201f7ca335", "score": "0.67218333", "text": "protected function setCharsets()\n {\n if ((count($this->charsets) == 0) AND isset($_SERVER['HTTP_ACCEPT_CHARSET']) AND ! empty($_SERVER['HTTP_ACCEPT_CHARSET'])) {\n $this->charsets = explode(',', preg_replace('/(;\\s?q=.+)|\\s/i', '', strtolower(trim($_SERVER['HTTP_ACCEPT_CHARSET']))));\n }\n if (count($this->charsets) == 0) {\n $this->charsets = array('Undefined');\n }\n }", "title": "" }, { "docid": "de2dd5b65ab079211fd8516da775ee71", "score": "0.6663966", "text": "public function getCharset();", "title": "" }, { "docid": "de2dd5b65ab079211fd8516da775ee71", "score": "0.6663966", "text": "public function getCharset();", "title": "" }, { "docid": "95377301e879ddefe872c4609545eebc", "score": "0.6640523", "text": "public function Get_CharSet()\n {\n $retarr = array();\n $stmt = $this->QueryResult(\"SHOW VARIABLES LIKE 'character_set%'\",1);\n while($d = $this->FetchResult($stmt,MYSQLI_NUM))\n {\n array_push($retarr,$d);\n }\n $this->FreeResult($stmt);\n return($retarr);\n }", "title": "" }, { "docid": "f45e928752def16389f62b58a43dfb37", "score": "0.6521273", "text": "public static function font_subsets() {\n\t\treturn [\n\t\t\t'greek-ext',\n\t\t\t'greek',\n\t\t\t'cyrillic-ext',\n\t\t\t'cyrillic',\n\t\t\t'latin-ext',\n\t\t\t'latin',\n\t\t\t'vietnamese',\n\t\t\t'arabic',\n\t\t\t'gujarati',\n\t\t\t'devanagari',\n\t\t\t'bengali',\n\t\t\t'hebrew',\n\t\t\t'khmer',\n\t\t\t'tamil',\n\t\t\t'telugu',\n\t\t\t'thai',\n\t\t];\n\t}", "title": "" }, { "docid": "1e1c79bf05f6c5b4f398e7f1c0477128", "score": "0.6407063", "text": "public function getCharList() {\n\t\treturn $this->options ['charlist'];\n\t}", "title": "" }, { "docid": "767754c4a1181712d716db43885dd6f7", "score": "0.6361664", "text": "public function getCharset(): string;", "title": "" }, { "docid": "10d82f046150d79afcd50c66fdd5efae", "score": "0.6352007", "text": "public function getCharsets()\n {\n /** @var Symfony\\Component\\HttpFoundation\\Request $instance */\n return $instance->getCharsets();\n }", "title": "" }, { "docid": "0f1be6af6b170355585ffbc9c9b91625", "score": "0.62303466", "text": "public abstract function getAcceptedCharsets($refresh = false);", "title": "" }, { "docid": "e38e92b3b7e31f3f9bef395ef38182e1", "score": "0.61943424", "text": "public function getAcceptCharset() {\r\n\t\treturn $this->getAtributo(\"accept-charset\");\r\n\t}", "title": "" }, { "docid": "efa90d0ad8af4fbd949101e27de3bf4a", "score": "0.6123862", "text": "public function getCharset ()\n {\n return $this->_parameters['charset'];\n }", "title": "" }, { "docid": "e4ff178704dce73e745dd861534067ba", "score": "0.61226386", "text": "public function getCharset()\r\n {\r\n return $this->charset;\r\n }", "title": "" }, { "docid": "12deef0fd8540913e42934d3f007c2d7", "score": "0.6099786", "text": "function customizer_library_get_google_font_subsets() {\n\treturn array(\n\t\t'all' => __( 'All', 'customizer-library' ),\n\t\t'cyrillic' => __( 'Cyrillic', 'customizer-library' ),\n\t\t'cyrillic-ext' => __( 'Cyrillic Extended', 'customizer-library' ),\n\t\t'devanagari' => __( 'Devanagari', 'customizer-library' ),\n\t\t'greek' => __( 'Greek', 'customizer-library' ),\n\t\t'greek-ext' => __( 'Greek Extended', 'customizer-library' ),\n\t\t'khmer' => __( 'Khmer', 'customizer-library' ),\n\t\t'latin' => __( 'Latin', 'customizer-library' ),\n\t\t'latin-ext' => __( 'Latin Extended', 'customizer-library' ),\n\t\t'vietnamese' => __( 'Vietnamese', 'customizer-library' ),\n\t);\n}", "title": "" }, { "docid": "c7027a3754c40a3f494485744d0ce232", "score": "0.6091977", "text": "public function getCharacterSetCode()\n {\n return $this->characterSetCode;\n }", "title": "" }, { "docid": "803ba8b3df77d9c3dd2ea4472ade9736", "score": "0.6086073", "text": "public function getAcceptCharset():string {\n return $this->getAttribute('accept-charset');\n }", "title": "" }, { "docid": "5dd38e95eafca0614f806ab1b26a344f", "score": "0.60734373", "text": "public function getPageCharset()\n {\n return Config::inst()->get('ContentNegotiator', 'encoding');\n }", "title": "" }, { "docid": "49696f140815ca6105370d95875a1c28", "score": "0.60653716", "text": "public function getCharset() {\r\n return $this->charset;\r\n }", "title": "" }, { "docid": "1e05d97e109d733dbedf5904a6560da3", "score": "0.6023608", "text": "public function getCharset()\n {\n return $this->charset;\n }", "title": "" }, { "docid": "1e05d97e109d733dbedf5904a6560da3", "score": "0.6023608", "text": "public function getCharset()\n {\n return $this->charset;\n }", "title": "" }, { "docid": "1e05d97e109d733dbedf5904a6560da3", "score": "0.6023608", "text": "public function getCharset()\n {\n return $this->charset;\n }", "title": "" }, { "docid": "1e05d97e109d733dbedf5904a6560da3", "score": "0.6023608", "text": "public function getCharset()\n {\n return $this->charset;\n }", "title": "" }, { "docid": "6a47ea98fece116d6c48551424678858", "score": "0.60206753", "text": "public function character_set_name(){}", "title": "" }, { "docid": "32c0a5d38d563ef856709ef75052bebc", "score": "0.60149306", "text": "public function getCharset() {\n\t\treturn $this->charset;\n\t}", "title": "" }, { "docid": "1b2108705fdab1de63d602e206737378", "score": "0.60035473", "text": "public static function getCharset() {\n return self::$charset;\n }", "title": "" }, { "docid": "74fd499dda450695e069d41e233203f9", "score": "0.6002338", "text": "private static function browsers(){\n\t\treturn array(\n\t\t\t0=>\t'Avant Browser','Arora', 'Flock', 'Konqueror','OmniWeb','Phoenix','Firebird','Mobile Explorer',\t'Opera Mini','Netscape',\n\t\t\t\t'Iceweasel','KMLite', 'Midori', 'SeaMonkey', 'Lynx', 'Fluid', 'chimera', 'NokiaBrowser',\n\t\t\t\t'Firefox','Chrome','MSIE','Internet Explorer','Opera','Safari','Mozilla','trident'\n\t\t\t);\n\t}", "title": "" }, { "docid": "0e4add06c4e0272218d960a747267a8a", "score": "0.6001334", "text": "public function get_charset()\n {\n return $this->charset;\n }", "title": "" }, { "docid": "8dceceba5ecdce1c5f9a662f493eb50c", "score": "0.59919083", "text": "public function getBestCharset()\n {\n return $this->_getBestQuality($this->getClientCharsets(), \"charset\");\n }", "title": "" }, { "docid": "ba5fdc4f3e3bcfbb19d95b1cb5f8345e", "score": "0.59883475", "text": "static public function getCharset()\n {\n return self::$charset;\n }", "title": "" }, { "docid": "47b7fc054c021ef4e8abb7d541a78f93", "score": "0.5976561", "text": "public static function detectCharset(){\n\t\t$strResult = false;\n\t\t$arAllowedCharset = [\n\t\t\t'UTF-8' => ['utf8', 'utf'],\n\t\t\t'windows-1251' => ['cp1251', 'cp-1251'],\n\t\t];\n\t\tif(is_array(static::$arHttpResponseHeaders)){\n\t\t\tforeach(static::$arHttpResponseHeaders as $strHeader){\n\t\t\t\tif(preg_match('#^Content-Type:[\\s]?[a-z0-9-_/]+;[\\s]?charset=([A-z0-9-_]+)#i', $strHeader, $arMatch)){\n\t\t\t\t\t$strResult = $arMatch[1];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(strlen($strResult)) {\n\t\t\t$strResultCharset = false;\n\t\t\tforeach($arAllowedCharset as $key => $arValue){\n\t\t\t\t$arValue[] = $key;\n\t\t\t\tforeach($arValue as $strItem){\n\t\t\t\t\tif(toLower($strItem) == toLower($strResult)){\n\t\t\t\t\t\t$strResultCharset = $key;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$strResult = $strResultCharset;\n\t\t}\n\t\tif(!$strResult){\n\t\t\treset($arAllowedCharset);\n\t\t\t$strResult = key($arAllowedCharset);\n\t\t}\n\t\treturn $strResult;\n\t}", "title": "" }, { "docid": "92544c9b58b7812483b5e290d11c7109", "score": "0.5960962", "text": "function getCharset()\r\n {\r\n return $this->_charset;\r\n }", "title": "" }, { "docid": "eb5e96f8deb2f2918a99a0e14389125c", "score": "0.5946692", "text": "public function getFromCharset();", "title": "" }, { "docid": "9f08a119045df8aa7aa6bf58b7cd1cf6", "score": "0.5939875", "text": "function getCharSet($metas) {\n\t\t\n\t\tforeach ($metas as $node) {\n\t\t\t$cs = $node->getAttribute(\"charset\");\n\t\t\tif (!empty($cs)) {\n\t\t\t\treturn $cs;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$cs = $node->getAttribute(\"charSet\");\n\t\t\t\tif (!empty($cs)) {\n\t\t\t\t\treturn $cs;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$cs = $node->getAttribute(\"content\");\n\t\t\t\t\tif (stripos($cs, \"utf-8\") !== false) {\n\t\t\t\t\t\treturn \"utf-8\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "49591cebbda178eaae53f437857e3cbd", "score": "0.5930665", "text": "private function _getBrowserLanguages() {\r\n \r\n // check if environment variable HTTP_ACCEPT_LANGUAGE exists\r\n if (!isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {\r\n return array();\r\n }\r\n\r\n $browserLanguages = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);\r\n\r\n // convert the headers string to an array\r\n $browserLanguagesSize = sizeof($browserLanguages);\r\n for ($i = 0; $i < $browserLanguagesSize; $i++) {\r\n # explode string at ;\r\n $browserLanguage = explode(';', $browserLanguages[$i]);\r\n # cut string and place into array\r\n $browserLanguages[$i] = substr($browserLanguage[0], 0, 2);\r\n if ($browserLanguages[$i] === 'auto')\r\n unset($browserLanguages[$i]);\r\n }\r\n\r\n return array_values(array_unique($browserLanguages));\r\n }", "title": "" }, { "docid": "afe092ddd4c8227e072b7cee77f55602", "score": "0.591524", "text": "public function getCharset()\n {\n return null;\n }", "title": "" }, { "docid": "266d50448d0035c11957831d3a752266", "score": "0.59040654", "text": "function getCharset()\n {\n return T_CHARSET;\n }", "title": "" }, { "docid": "6172fa541c95d98c3d0e8c21eefb7fd5", "score": "0.5901864", "text": "protected function specialcharmap() {\n\t\treturn array();\n\t}", "title": "" }, { "docid": "9c3d6cead2eb0144e11adbdd255d0c7f", "score": "0.58883846", "text": "public function testgetHttpCharset()\n {\n LocaleTestHelper::resetObject();\n putenv(\"HTTP_ACCEPT_CHARSET=\");\n $value = new LocaleTestHelper();\n $list = $value->getHttpCharset();\n $this->assertTrue(empty($list));\n\n LocaleTestHelper::resetObject();\n putenv(\"HTTP_ACCEPT_CHARSET=,iso-8859-1, utf-8, utf-16, *;q=0.1\");\n $value = new LocaleTestHelper();\n $list = $value->getHttpCharset();\n $this->assertTrue(isset($list['utf-8']));\n }", "title": "" }, { "docid": "5d850edc3d5edf08f328e899040a0db3", "score": "0.58578086", "text": "function getCharset()\n {\n return $this->_charset;\n }", "title": "" }, { "docid": "d2c8dfa615c206503ff86d645b70ff89", "score": "0.58397406", "text": "function qode_get_native_fonts_list(){\n\n return apply_filters('qode_native_fonts_list', array(\n 'Arial',\n 'Arial Black',\n 'Comic Sans MS',\n 'Courier New',\n 'Georgia',\n 'Impact',\n 'Lucida Console',\n 'Lucida Sans Unicode',\n 'Palatino Linotype',\n 'Tahoma',\n 'Times New Roman',\n 'Trebuchet MS',\n 'Verdana'\n ));\n }", "title": "" }, { "docid": "fe30f52021d73cdff30c365bac5e1311", "score": "0.5829743", "text": "public function getCharset() {\n return $this->_charset;\n }", "title": "" }, { "docid": "7a5b474767101dfbf2a28560d4c93504", "score": "0.5816801", "text": "public static function getBrowser()\n {\n if (self::$_browser !== null) {\n return self::$_browser;\n }\n\n $httplanguages = getenv('HTTP_ACCEPT_LANGUAGE');\n if (empty($httplanguages)) {\n if (array_key_exists('HTTP_ACCEPT_LANGUAGE', $_SERVER)) {\n $httplanguages = $_SERVER['HTTP_ACCEPT_LANGUAGE'];\n } else {\n $httplanguages = null;\n }\n }\n\n $languages = array();\n if (empty($httplanguages)) {\n return $languages;\n }\n\n $accepted = preg_split('/,\\s*/', $httplanguages);\n\n foreach ($accepted as $accept) {\n $match = null;\n $result = preg_match('/^([a-z]{1,8}(?:[-_][a-z]{1,8})*)(?:;\\s*q=(0(?:\\.[0-9]{1,3})?|1(?:\\.0{1,3})?))?$/i',\n $accept, $match);\n\n if ($result < 1) {\n continue;\n }\n\n if (isset($match[2]) === true) {\n $quality = (float) $match[2];\n } else {\n $quality = 1.0;\n }\n\n $countrys = explode('-', $match[1]);\n $region = array_shift($countrys);\n\n $country2 = explode('_', $region);\n $region = array_shift($country2);\n\n foreach ($countrys as $country) {\n $languages[$region . '_' . strtoupper($country)] = $quality;\n }\n\n foreach ($country2 as $country) {\n $languages[$region . '_' . strtoupper($country)] = $quality;\n }\n\n if ((isset($languages[$region]) === false) || ($languages[$region] < $quality)) {\n $languages[$region] = $quality;\n }\n }\n\n self::$_browser = $languages;\n return $languages;\n }", "title": "" }, { "docid": "5a3aa1e46e412e2473f20dcbdb996a42", "score": "0.5795932", "text": "protected function characters() {\n\t\treturn array();\n\t}", "title": "" }, { "docid": "0e6af1587e00a2ba2985449fb372fe22", "score": "0.57847166", "text": "public function metaCharset() {\n\t\treturn $this->Html->charset();\n\t}", "title": "" }, { "docid": "c16483429225787363354235562def4d", "score": "0.5777707", "text": "function getDefaultCharacterSetDatabase()\n {\n $resql=$this->query('SHOW VARIABLES LIKE \\'character_set_database\\'');\n if (!$resql)\n {\n // version Mysql < 4.1.1\n return $this->forcecharset;\n }\n $liste=$this->fetch_array($resql);\n $tmpval = $liste['Value'];\n\n return $tmpval;\n }", "title": "" }, { "docid": "4d27e9d29bf28c84acaea88c7d87edc6", "score": "0.5773351", "text": "public function getBrowsers(): string|array|null\n {\n return $this->haveRulesForDevice() ? $this->getRules()[$this->client->device->family] : null;\n }", "title": "" }, { "docid": "a62acbd6be053af8e90638a172c978c0", "score": "0.5759988", "text": "protected function availableCharacters()\n {\n // number come first. any letters that ambiguous with number will be comment out.\n return [\n '0', // ambiguous with O\n '1', // ambiguous with I J L T\n '2', // ambiguous with Z\n '3',\n '4',\n '5', // ambiguous with S\n '6',\n '7',\n '8', // ambiguous with B\n '9',\n 'A',\n //'B',\n 'C',\n 'D',\n 'E',\n 'F',\n 'G',\n 'H',\n //'I',\n //'J',\n 'K',\n //'L',\n 'M',\n 'N',\n //'O',\n 'P',\n 'Q',\n 'R',\n //'S',\n //'T',\n 'U', // ambiguous with V\n //'V', // ambiguous with U, double V (VV) or double u (W). so, i prefer W because V also ambiguous with U but U not ambiguous with W.\n 'W',\n 'X',\n 'Y',\n //'Z',\n ];\n }", "title": "" }, { "docid": "ea0cd71987a842806745d6d7348ca5d2", "score": "0.5758082", "text": "public function get()\n {\n return $this->getCharset();\n }", "title": "" }, { "docid": "aa522b2d677c25bc595491a1f5cc33fd", "score": "0.57510626", "text": "function _vsite_register_list_presets() {\n $presets = array();\n foreach (spaces_preset_load() as $name => $preset) {\n if (!(isset($preset->disabled) && $preset->disabled)) {\n $presets[$name] = $preset->title;\n }\n }\n return $presets;\n}", "title": "" }, { "docid": "505389518f75e29a37f997c98f280a82", "score": "0.57465214", "text": "public function getCharset($format)\n {\n return str_split((string) Mage::app()->getConfig()->getNode(sprintf(self::XML_CHARSET_NODE, $format)));\n }", "title": "" }, { "docid": "871276e4a315a81db83ed664b4c67dbc", "score": "0.57459563", "text": "public function getSupportedLocales() {\n\t\t$ret = array();\n if ($this->json['locale'])foreach( $this->json['locale'] as $locale ) {\n\t\t\t$ret[] = (string)$locale;\n\t\t}\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "e531ca8e53079a6821fe7cc8a85132a8", "score": "0.57352084", "text": "public function testgetBrowser()\n {\n LocaleTestHelper::resetObject();\n $value = new LocaleTestHelper();\n $list = $value->getBrowser();\n if (empty($list)) {\n $this->markTestSkipped('Browser autodetection not possible in current environment');\n }\n $this->assertTrue(isset($list['de']));\n $this->assertEquals(array('de' => 1, 'en_UK' => 0.5, 'en_US' => 0.5,\n 'en' => 0.5, 'fr_FR' => 0.2, 'fr' => 0.2), $list);\n\n LocaleTestHelper::resetObject();\n putenv(\"HTTP_ACCEPT_LANGUAGE=\");\n\n $value = new LocaleTestHelper();\n $list = $value->getBrowser();\n $this->assertEquals(array(), $list);\n }", "title": "" }, { "docid": "589eeb8b4fb7adf0ec2c1ccb2e300682", "score": "0.5723576", "text": "private function httpAcceptEncoding()\r\r\n\t{\r\r\n\t\tif (!array_key_exists('httpAcceptEncoding', $this->arrCache))\r\r\n\t\t{\r\r\n\t\t\t$this->arrCache['httpAcceptEncoding'] = array_values(array_unique(explode(',', strtolower($_SERVER['HTTP_ACCEPT_ENCODING']))));\r\r\n\t\t}\r\r\n\r\r\n\t\treturn $this->arrCache['httpAcceptEncoding'];\r\r\n\t}", "title": "" }, { "docid": "351bc7abf38ab1239dee6b06ce4305da", "score": "0.56962734", "text": "public function get_charset(/* ... */)\n {\n return $this->_charset;\n }", "title": "" }, { "docid": "faba96b6ffee7d36cd2ef5bd30b16000", "score": "0.56882614", "text": "protected function getCurrentCharset()\n {\n $charset = mb_internal_encoding();\n\n if (isset(Yii::$app)) {\n $charset = Yii::$app->charset;\n }\n\n return $charset;\n }", "title": "" }, { "docid": "d08f08f7f80ca8d10e664b22a25c6df0", "score": "0.568528", "text": "public function get_google_font_subsets() {\n\n\t\t$i18n = Kirki_Toolkit::i18n();\n\t\treturn array(\n\t\t\t'all' => $i18n['all'],\n\t\t\t'cyrillic' => $i18n['cyrillic'],\n\t\t\t'cyrillic-ext' => $i18n['cyrillic-ext'],\n\t\t\t'devanagari' => $i18n['devanagari'],\n\t\t\t'greek' => $i18n['greek'],\n\t\t\t'greek-ext' => $i18n['greek-ext'],\n\t\t\t'khmer' => $i18n['khmer'],\n\t\t\t'latin' => $i18n['latin'],\n\t\t\t'latin-ext' => $i18n['latin-ext'],\n\t\t\t'vietnamese' => $i18n['vietnamese'],\n\t\t);\n\n\t}", "title": "" }, { "docid": "48a48ba19c424568a1dd3220622d3a29", "score": "0.56536186", "text": "function getCharacterGroups();", "title": "" }, { "docid": "d6f1218db1e72aeaf35d824f1594297d", "score": "0.5640147", "text": "function customizer_library_get_font_choices() {\n\t$fonts = customizer_library_get_all_fonts();\n\t$choices = array();\n\n\t// Repackage the fonts into value/label pairs\n\tforeach ( $fonts as $key => $font ) {\n\t\t$choices[$key] = $font['label'];\n\t}\n\n\treturn $choices;\n}", "title": "" }, { "docid": "6e350af5f0c0203ceb44498aedfaa18a", "score": "0.563474", "text": "public function charset()\n {\n return ini_get('default_charset');\n }", "title": "" }, { "docid": "465aba2335b841c0ec2a683b06060753", "score": "0.5632555", "text": "public function get_charset(): ?object {}", "title": "" }, { "docid": "fc13cdc6d1903be356b56d1204e520e7", "score": "0.5628349", "text": "public function getAvailableCodecs(): array;", "title": "" }, { "docid": "38c9654c32c36b1ee08b3ecfd1adaadb", "score": "0.5576421", "text": "function serendipity_getCharset() {\n global $serendipity;\n\n $charset = $serendipity['charset'] ?? '';\n if (!empty($_POST['charset'])) {\n if ($_POST['charset'] == 'UTF-8/') {\n $charset = 'UTF-8/';\n } else {\n $charset = '';\n }\n }\n\n if (!empty($serendipity['POST']['charset'])) {\n if ($serendipity['POST']['charset'] == 'UTF-8/') {\n $charset = 'UTF-8/';\n } else {\n $charset = '';\n }\n }\n return $charset;\n}", "title": "" }, { "docid": "51efe215f6e7aa467ef12039b60bea69", "score": "0.5573835", "text": "public function getBrowsers() {\n return $this->get('https://www.browserstack.com/screenshots/browsers.json');\n }", "title": "" }, { "docid": "54ed96e5e837fd46d144592a4d722912", "score": "0.55664796", "text": "function udm_check_charset($agent, $charset){}", "title": "" }, { "docid": "4521ec07665b4b2e7041d435c7e1f152", "score": "0.5558052", "text": "private function getCharacterSet($tbl)\n\t{\n\t\t$query = \"SELECT CCSA.character_set_name\n\t\t\t\t\tFROM information_schema.`TABLES` T, information_schema.`COLLATION_CHARACTER_SET_APPLICABILITY` CCSA\n\t\t\t\t\tWHERE CCSA.collation_name = T.table_collation\n\t\t\t\t\tAND T.table_schema = \" . $this->db->quote(\\Config::get('db')) . \"\n\t\t\t\t\tAND T.table_name = \" . $this->db->quote($tbl);\n\n\t\t$this->db->setQuery($query);\n\t\treturn $this->db->loadResult();\n\t}", "title": "" }, { "docid": "8c633fce319094aaee0335f7c8d354fb", "score": "0.5554233", "text": "public function getSupportedLocales(): array;", "title": "" }, { "docid": "c00f618c19184e7ea8f538659649ec11", "score": "0.55509466", "text": "public function getCharset()\n {\n if ($this->charset === null) {\n $this->charset = $this->getDefaultCharset();\n }\n\n return $this->charset;\n }", "title": "" }, { "docid": "f1408877181c5b7eb9feb143b276b690", "score": "0.55371815", "text": "public function setCharacterSet($charset);", "title": "" }, { "docid": "8d83b2adb236e1cffed187e863d9dfec", "score": "0.5536542", "text": "protected function unicodecharmap() {\n\t\treturn array(\n\t\t\t/* Latin 1 */\n\t\t\t'À' => 'A',\n\t\t\t'Á' => 'A',\n\t\t\t'Â' => 'A',\n\t\t\t'Ã' => 'A',\n\t\t\t'Ä' => 'A',\n\t\t\t'Å' => 'A',\n\t\t\t'Æ' => 'AE',\n\t\t\t'Ç' => 'C',\n\t\t\t'È' => 'E',\n\t\t\t'É' => 'E',\n\t\t\t'Ê' => 'E',\n\t\t\t'Ë' => 'E',\n\t\t\t'Ì' => 'I',\n\t\t\t'Í' => 'I',\n\t\t\t'Î' => 'I',\n\t\t\t'Ï' => 'I',\n\t\t\t'Ð' => 'D',\n\t\t\t'Ñ' => 'N',\n\t\t\t'Ò' => 'O',\n\t\t\t'Ó' => 'O',\n\t\t\t'Ô' => 'O',\n\t\t\t'Õ' => 'O',\n\t\t\t'Ö' => 'O',\n\t\t\t'Ù' => 'U',\n\t\t\t'Ú' => 'U',\n\t\t\t'Û' => 'U',\n\t\t\t'Ü' => 'U',\n\t\t\t'Ý' => 'Y',\n\t\t\t'ß' => 'ss',\n\t\t\t'à' => 'a',\n\t\t\t'á' => 'a',\n\t\t\t'â' => 'a',\n\t\t\t'ã' => 'a',\n\t\t\t'ä' => 'a',\n\t\t\t'å' => 'a',\n\t\t\t'æ' => 'ae',\n\t\t\t'ç' => 'c',\n\t\t\t'è' => 'e',\n\t\t\t'é' => 'e',\n\t\t\t'ê' => 'e',\n\t\t\t'ë' => 'e',\n\t\t\t'ì' => 'i',\n\t\t\t'í' => 'i',\n\t\t\t'î' => 'i',\n\t\t\t'ï' => 'i',\n\t\t\t'ð' => 'd',\n\t\t\t'ñ' => 'n',\n\t\t\t'ò' => 'o',\n\t\t\t'ó' => 'o',\n\t\t\t'ô' => 'o',\n\t\t\t'õ' => 'o',\n\t\t\t'ö' => 'o',\n\t\t\t'ù' => 'u',\n\t\t\t'ú' => 'u',\n\t\t\t'û' => 'u',\n\t\t\t'ü' => 'u',\n\t\t\t'ý' => 'y',\n\t\t\t'ÿ' => 'y',\n\t\t\t/* Latin ext A, B */\n\t\t\t'Ā' => 'A',\n\t\t\t'ā' => 'a',\n\t\t\t'Ă' => 'A',\n\t\t\t'ă' => 'a',\n\t\t\t'Ą' => 'A',\n\t\t\t'ą' => 'a',\n\t\t\t'Ć' => 'C',\n\t\t\t'ć' => 'c',\n\t\t\t'Ĉ' => 'C',\n\t\t\t'ĉ' => 'c',\n\t\t\t'Ċ' => 'C',\n\t\t\t'ċ' => 'c',\n\t\t\t'Č' => 'C',\n\t\t\t'č' => 'c',\n\t\t\t'Ď' => 'D',\n\t\t\t'ď' => 'd',\n\t\t\t'Đ' => 'D',\n\t\t\t'đ' => 'd',\n\t\t\t'Ē' => 'E',\n\t\t\t'ē' => 'e',\n\t\t\t'Ĕ' => 'E',\n\t\t\t'ĕ' => 'e',\n\t\t\t'Ė' => 'E',\n\t\t\t'ė' => 'e',\n\t\t\t'Ę' => 'E',\n\t\t\t'ę' => 'e',\n\t\t\t'Ě' => 'E',\n\t\t\t'ě' => 'e',\n\t\t\t'Ĝ' => 'G',\n\t\t\t'ĝ' => 'g',\n\t\t\t'Ğ' => 'G',\n\t\t\t'ğ' => 'g',\n\t\t\t'Ġ' => 'G',\n\t\t\t'ġ' => 'g',\n\t\t\t'Ģ' => 'G',\n\t\t\t'ģ' => 'g',\n\t\t\t'Ĥ' => 'H',\n\t\t\t'ĥ' => 'h',\n\t\t\t'Ħ' => 'H',\n\t\t\t'ħ' => 'h',\n\t\t\t'Ĩ' => 'I',\n\t\t\t'ĩ' => 'i',\n\t\t\t'Ī' => 'I',\n\t\t\t'ī' => 'i',\n\t\t\t'Ĭ' => 'I',\n\t\t\t'ĭ' => 'i',\n\t\t\t'Į' => 'I',\n\t\t\t'į' => 'i',\n\t\t\t'İ' => 'I',\n\t\t\t'ı' => 'i',\n\t\t\t'IJ' => 'IJ',\n\t\t\t'ij' => 'ij',\n\t\t\t'Ĵ' => 'J',\n\t\t\t'ĵ' => 'j',\n\t\t\t'Ķ' => 'K',\n\t\t\t'ķ' => 'k',\n\t\t\t'ĸ' => 'k',\n\t\t\t'Ĺ' => 'L',\n\t\t\t'ĺ' => 'l',\n\t\t\t'Ļ' => 'L',\n\t\t\t'ļ' => 'l',\n\t\t\t'Ľ' => 'L',\n\t\t\t'ľ' => 'l',\n\t\t\t'Ŀ' => 'L',\n\t\t\t'Ł' => 'L',\n\t\t\t'ł' => 'l',\n\t\t\t'Ń' => 'N',\n\t\t\t'ń' => 'n',\n\t\t\t'Ņ' => 'N',\n\t\t\t'ņ' => 'n',\n\t\t\t'Ň' => 'N',\n\t\t\t'ň' => 'n',\n\t\t\t'ʼn' => 'n',\n\t\t\t'Ŋ' => 'N',\n\t\t\t'ŋ' => 'n',\n\t\t\t'Ō' => 'O',\n\t\t\t'ō' => 'o',\n\t\t\t'Ŏ' => 'O',\n\t\t\t'ŏ' => 'o',\n\t\t\t'Ő' => 'O',\n\t\t\t'ő' => 'o',\n\t\t\t'Œ' => 'OE',\n\t\t\t'œ' => 'oe',\n\t\t\t'Ŕ' => 'R',\n\t\t\t'ŕ' => 'r',\n\t\t\t'Ŗ' => 'R',\n\t\t\t'ŗ' => 'r',\n\t\t\t'Ř' => 'R',\n\t\t\t'ř' => 'r',\n\t\t\t'Ś' => 'S',\n\t\t\t'ś' => 's',\n\t\t\t'Ŝ' => 'S',\n\t\t\t'ŝ' => 's',\n\t\t\t'Ş' => 'S',\n\t\t\t'ş' => 's',\n\t\t\t'Š' => 'S',\n\t\t\t'š' => 's',\n\t\t\t'Ţ' => 'T',\n\t\t\t'ţ' => 't',\n\t\t\t'Ť' => 'T',\n\t\t\t'ť' => 't',\n\t\t\t'Ŧ' => 'T',\n\t\t\t'ŧ' => 't',\n\t\t\t'Ũ' => 'U',\n\t\t\t'ũ' => 'u',\n\t\t\t'Ū' => 'U',\n\t\t\t'ū' => 'u',\n\t\t\t'Ŭ' => 'U',\n\t\t\t'ŭ' => 'u',\n\t\t\t'Ů' => 'U',\n\t\t\t'ů' => 'u',\n\t\t\t'Ų' => 'U',\n\t\t\t'Ű' => 'U',\n\t\t\t'ű' => 'u',\n\t\t\t'ų' => 'u',\n\t\t\t'Ŵ' => 'W',\n\t\t\t'ŵ' => 'w',\n\t\t\t'Ŷ' => 'Y',\n\t\t\t'ŷ' => 'y',\n\t\t\t'Ÿ' => 'Y',\n\t\t\t'Ź' => 'Z',\n\t\t\t'ź' => 'z',\n\t\t\t'Ż' => 'Z',\n\t\t\t'ż' => 'z',\n\t\t\t'Ž' => 'Z',\n\t\t\t'ž' => 'z',\n\t\t\t'ſ' => 'f',\n\t\t\t'ƀ' => 'b',\n\t\t\t'Ɓ' => 'B',\n\t\t\t'Ƃ' => 'b',\n\t\t\t'ƃ' => 'B',\n\t\t\t'Ƅ' => 'b',\n\t\t\t'ƅ' => 'B',\n\t\t\t'Ɔ' => 'C',\n\t\t\t'Ƈ' => 'C',\n\t\t\t'ƈ' => 'c',\n\t\t\t'Ɖ' => 'D',\n\t\t\t'Ɗ' => 'D',\n\t\t\t'Ƌ' => 'd',\n\t\t\t'ƌ' => 'D',\n\t\t\t//'ƍ' => '',\n\t\t\t//'Ǝ' => '',\n\t\t\t//'Ə' => 'e',\n\t\t\t//'Ɛ' => '',\n\t\t\t'Ƒ' => 'F',\n\t\t\t'ƒ' => 'f',\n\t\t\t'Ɠ' => 'G',\n\t\t\t'Ɣ' => 'y',\n\t\t\t//'ƕ' => '',\n\t\t\t//'Ɩ' => '',\n\t\t\t//'Ɨ' => '',\n\t\t\t'Ƙ' => 'K',\n\t\t\t'ƙ' => 'l',\n\t\t\t'ƚ' => 'l',\n\t\t\t'ƛ' => 'L',\n\t\t\t//'Ɯ' => '',\n\t\t\t//'Ɲ' => '',\n\t\t\t//'ƞ' => '',\n\t\t\t//'Ɵ' => '',\n\t\t\t//'Ơ' => '',\n\t\t\t//'ơ' => '',\n\t\t\t//'Ƣ' => '',\n\t\t\t//'ƣ' => '',\n\t\t\t//'Ƥ' => '',\n\t\t\t//'ƥ' => '',\n\t\t\t//'Ʀ' => '',\n\t\t\t//'Ƨ' => '',\n\t\t\t//'ƨ' => '',\n\t\t\t//'Ʃ' => '',\n\t\t\t//'ƪ' => '',\n\t\t\t//'ƫ' => '',\n\t\t\t//'Ƭ' => '',\n\t\t\t//'ƭ' => '',\n\t\t\t//'Ʈ' => '',\n\t\t\t'Ư' => 'U',\n\t\t\t'ư' => 'u',\n\t\t\t//'Ʊ' => '',\n\t\t\t//'Ʋ' => '',\n\t\t\t'Ƴ' => 'Y',\n\t\t\t'ƴ' => 'y',\n\t\t\t'Ƶ' => 'Z',\n\t\t\t'ƶ' => 'z',\n\t\t\t'Ʒ' => '3',\n\t\t\t'Ƹ' => '3',\n\t\t\t'ƹ' => '3',\n\t\t\t'ƺ' => '3',\n\t\t\t'ƻ' => '2',\n\t\t\t'Ƽ' => '5',\n\t\t\t'ƽ' => '5',\n\t\t\t//'ƾ' => '',\n\t\t\t//'ƿ' => '',\n\t\t\t'ǀ' => '',\n\t\t\t'ǁ' => '',\n\t\t\t'ǂ' => '',\n\t\t\t'ǃ' => '!',\n\t\t\t'DŽ' => 'DZ',\n\t\t\t'Dž' => 'Dz',\n\t\t\t'dž' => 'dz',\n\t\t\t'LJ' => 'LJ',\n\t\t\t'Lj' => 'Lj',\n\t\t\t'lj' => 'lj',\n\t\t\t'NJ' => 'NJ',\n\t\t\t'Nj' => 'Nj',\n\t\t\t'nj' => 'nj',\n\t\t\t'Ǎ' => 'A',\n\t\t\t'ǎ' => 'a',\n\t\t\t'Ǐ' => 'I',\n\t\t\t'ǐ' => 'i',\n\t\t\t'Ǒ' => 'O',\n\t\t\t'ǒ' => 'o',\n\t\t\t'Ǔ' => 'U',\n\t\t\t'ǔ' => 'u',\n\t\t\t'Ǖ' => 'U',\n\t\t\t'ǖ' => 'u',\n\t\t\t'Ǘ' => 'U',\n\t\t\t'ǘ' => 'u',\n\t\t\t'Ǚ' => 'U',\n\t\t\t'ǚ' => 'u',\n\t\t\t'Ǜ' => 'U',\n\t\t\t'ǜ' => 'u',\n\t\t\t//'ǝ' => '',\n\t\t\t'Ǟ' => 'A',\n\t\t\t'ǟ' => 'a',\n\t\t\t'Ǡ' => 'A',\n\t\t\t'ǡ' => 'a',\n\t\t\t'Ǣ' => 'AE',\n\t\t\t'ǣ' => 'ae',\n\t\t\t'Ǥ' => 'G',\n\t\t\t'ǥ' => 'g',\n\t\t\t'Ǧ' => 'G',\n\t\t\t'ǧ' => 'g',\n\t\t\t'Ǩ' => 'K',\n\t\t\t'ǩ' => 'k',\n\t\t\t'Ǫ' => 'O',\n\t\t\t'ǫ' => 'o',\n\t\t\t'Ǭ' => 'O',\n\t\t\t'ǭ' => 'o',\n\t\t\t//'Ǯ' => '',\n\t\t\t//'ǯ' => '',\n\t\t\t'ǰ' => 'j',\n\t\t\t'DZ' => 'DZ',\n\t\t\t'Dz' => 'Dz',\n\t\t\t'dz' => 'dz',\n\t\t\t'Ǵ' => 'G',\n\t\t\t'ǵ' => 'g',\n\t\t\t//'Ƕ' => '',\n\t\t\t//'Ƿ' => '',\n\t\t\t'Ǹ' => 'N',\n\t\t\t'ǹ' => 'n',\n\t\t\t'Ǻ' => 'A',\n\t\t\t'ǻ' => 'a',\n\t\t\t'Ǽ' => 'AE',\n\t\t\t'ǽ' => 'ae',\n\t\t\t'Ǿ' => 'O',\n\t\t\t'ǿ' => 'o',\n\t\t\t'Ȁ' => 'A',\n\t\t\t'ȁ' => 'a',\n\t\t\t'Ȃ' => 'A',\n\t\t\t'ȃ' => 'a',\n\t\t\t'Ȅ' => 'E',\n\t\t\t'ȅ' => 'e',\n\t\t\t'Ȇ' => 'E',\n\t\t\t'ȇ' => 'e',\n\t\t\t'Ȉ' => 'I',\n\t\t\t'ȉ' => 'i',\n\t\t\t'Ȋ' => 'I',\n\t\t\t'ȋ' => 'i',\n\t\t\t'Ȍ' => 'O',\n\t\t\t'ȍ' => 'o',\n\t\t\t'Ȏ' => 'O',\n\t\t\t'ȏ' => 'o',\n\t\t\t'Ȑ' => 'R',\n\t\t\t'ȑ' => 'r',\n\t\t\t'Ȓ' => 'R',\n\t\t\t'ȓ' => 'r',\n\t\t\t'Ȕ' => 'U',\n\t\t\t'ȕ' => 'u',\n\t\t\t'Ȗ' => 'U',\n\t\t\t'ȗ' => 'u',\n\t\t\t'Ș' => 'S',\n\t\t\t'ș' => 's',\n\t\t\t'Ț' => 'T',\n\t\t\t'ț' => 't',\n\t\t\t//'Ȝ' => ''\n\t\t\t//'ȝ' => '',\n\t\t\t'Ȟ' => 'H',\n\t\t\t'ȟ' => 'h',\n\t\t\t'Ƞ' => 'n',\n\t\t\t'ȡ' => 'd',\n\t\t\t//'Ȣ' => ''\n\t\t\t//'ȣ' => ''\n\t\t\t'Ȥ' => 'Z',\n\t\t\t'ȥ' => 'z',\n\t\t\t'Ȧ' => 'A',\n\t\t\t'ȧ' => 'a',\n\t\t\t'Ȩ' => 'E',\n\t\t\t'ȩ' => 'e',\n\t\t\t'Ȫ' => 'O',\n\t\t\t'ȫ' => 'o',\n\t\t\t'Ȭ' => 'O',\n\t\t\t'ȭ' => 'O',\n\t\t\t'Ȯ' => 'O',\n\t\t\t'ȯ' => 'o',\n\t\t\t'Ȱ' => 'O',\n\t\t\t'ȱ' => 'o',\n\t\t\t'Ȳ' => 'Y',\n\t\t\t'ȳ' => 'y',\n\t\t\t//'ȴ' => ''\n\t\t\t//'ȵ' => '',\n\t\t\t//'ȶ' => '',\n\t\t\t//'ȷ' => '',\n\t\t\t//'ȸ' => '',\n\t\t\t//'ȹ' => '',\n\t\t\t'Ⱥ' => 'A',\n\t\t\t'Ȼ' => 'C',\n\t\t\t'ȼ' => 'c',\n\t\t\t'Ƚ' => 'L',\n\t\t\t'Ⱦ' => 'T',\n\t\t\t'ȿ' => 's',\n\t\t\t'ɀ' => 'z',\n\t\t\t//'Ɂ' => '',\n\t\t\t//'ɂ' => '',\n\t\t\t'Ƀ' => 'B',\n\t\t\t'Ʉ' => 'U',\n\t\t\t'Ʌ' => '',\n\t\t\t'Ɇ' => 'E',\n\t\t\t'ɇ' => 'e',\n\t\t\t'Ɉ' => 'J',\n\t\t\t'ɉ' => 'j',\n\t\t\t'Ɋ' => 'Q',\n\t\t\t'ɋ' => 'q',\n\t\t\t'Ɍ' => 'R',\n\t\t\t'ɍ' => 'r',\n\t\t\t'Ɏ' => 'Y',\n\t\t\t'ɏ' => 'y',\n\t\t\t'À' => 'A',\n\t\t\t'Á' => 'A',\n\t\t\t'Â' => 'A',\n\t\t\t'Ã' => 'A',\n\t\t\t'Ä' => 'A',\n\t\t\t'Å' => 'A',\n\t\t\t'Æ' => 'AE',\n\t\t\t'Ç' => 'C',\n\t\t\t'È' => 'E',\n\t\t\t'É' => 'E',\n\t\t\t'Ê' => 'E',\n\t\t\t'Ë' => 'E',\n\t\t\t'Ì' => 'I',\n\t\t\t'Í' => 'I',\n\t\t\t'Î' => 'I',\n\t\t\t'Ï' => 'I',\n\t\t\t'Ð' => 'D',\n\t\t\t'Ñ' => 'N',\n\t\t\t'Ò' => 'O',\n\t\t\t'Ó' => 'O',\n\t\t\t'Ô' => 'O',\n\t\t\t'Õ' => 'O',\n\t\t\t'Ö' => 'O',\n\t\t\t'Ù' => 'U',\n\t\t\t'Ú' => 'U',\n\t\t\t'Û' => 'U',\n\t\t\t'Ü' => 'U',\n\t\t\t'Ý' => 'Y',\n\t\t\t'ß' => 'ss',\n\t\t\t'à' => 'a',\n\t\t\t'á' => 'a',\n\t\t\t'â' => 'a',\n\t\t\t'ã' => 'a',\n\t\t\t'ä' => 'a',\n\t\t\t'å' => 'a',\n\t\t\t'æ' => 'ae',\n\t\t\t'ç' => 'c',\n\t\t\t'è' => 'e',\n\t\t\t'é' => 'e',\n\t\t\t'ê' => 'e',\n\t\t\t'ë' => 'e',\n\t\t\t'ì' => 'i',\n\t\t\t'í' => 'i',\n\t\t\t'î' => 'i',\n\t\t\t'ï' => 'i',\n\t\t\t'ð' => 'd',\n\t\t\t'ñ' => 'n',\n\t\t\t'ò' => 'o',\n\t\t\t'ó' => 'o',\n\t\t\t'ô' => 'o',\n\t\t\t'õ' => 'o',\n\t\t\t'ö' => 'o',\n\t\t\t'ù' => 'u',\n\t\t\t'ú' => 'u',\n\t\t\t'û' => 'u',\n\t\t\t'ü' => 'u',\n\t\t\t'ý' => 'y',\n\t\t\t'ÿ' => 'y',\n\t\t);\n\t}", "title": "" }, { "docid": "ffae3c6569a15a83b68d6720ba276424", "score": "0.5532292", "text": "function charsArray()\n {\n return $charsArray = array(\n 'a' => array(\n 'à', 'á', 'ả', 'ã', 'ạ', 'ă', 'ắ', 'ằ', 'ẳ', 'ẵ',\n 'ặ', 'â', 'ấ', 'ầ', 'ẩ', 'ẫ', 'ậ', 'ä', 'ā', 'ą',\n 'å', 'α', 'ά', 'ἀ', 'ἁ', 'ἂ', 'ἃ', 'ἄ', 'ἅ', 'ἆ',\n 'ἇ', 'ᾀ', 'ᾁ', 'ᾂ', 'ᾃ', 'ᾄ', 'ᾅ', 'ᾆ', 'ᾇ', 'ὰ',\n 'ά', 'ᾰ', 'ᾱ', 'ᾲ', 'ᾳ', 'ᾴ', 'ᾶ', 'ᾷ', 'а', 'أ'),\n 'b' => array('б', 'β', 'Ъ', 'Ь', 'ب'),\n 'c' => array('ç', 'ć', 'č', 'ĉ', 'ċ'),\n 'd' => array('ď', 'ð', 'đ', 'ƌ', 'ȡ', 'ɖ', 'ɗ', 'ᵭ', 'ᶁ', 'ᶑ',\n 'д', 'δ', 'د', 'ض'),\n 'e' => array('é', 'è', 'ẻ', 'ẽ', 'ẹ', 'ê', 'ế', 'ề', 'ể', 'ễ',\n 'ệ', 'ë', 'ē', 'ę', 'ě', 'ĕ', 'ė', 'ε', 'έ', 'ἐ',\n 'ἑ', 'ἒ', 'ἓ', 'ἔ', 'ἕ', 'ὲ', 'έ', 'е', 'ё', 'э',\n 'є', 'ə'),\n 'f' => array('ф', 'φ', 'ف'),\n 'g' => array('ĝ', 'ğ', 'ġ', 'ģ', 'г', 'ґ', 'γ', 'ج'),\n 'h' => array('ĥ', 'ħ', 'η', 'ή', 'ح', 'ه'),\n 'i' => array('í', 'ì', 'ỉ', 'ĩ', 'ị', 'î', 'ï', 'ī', 'ĭ', 'į',\n 'ı', 'ι', 'ί', 'ϊ', 'ΐ', 'ἰ', 'ἱ', 'ἲ', 'ἳ', 'ἴ',\n 'ἵ', 'ἶ', 'ἷ', 'ὶ', 'ί', 'ῐ', 'ῑ', 'ῒ', 'ΐ', 'ῖ',\n 'ῗ', 'і', 'ї', 'и'),\n 'j' => array('ĵ', 'ј', 'Ј'),\n 'k' => array('ķ', 'ĸ', 'к', 'κ', 'Ķ', 'ق', 'ك'),\n 'l' => array('ł', 'ľ', 'ĺ', 'ļ', 'ŀ', 'л', 'λ', 'ل'),\n 'm' => array('м', 'μ', 'م'),\n 'n' => array('ñ', 'ń', 'ň', 'ņ', 'ʼn', 'ŋ', 'ν', 'н', 'ن'),\n 'o' => array('ó', 'ò', 'ỏ', 'õ', 'ọ', 'ô', 'ố', 'ồ', 'ổ', 'ỗ',\n 'ộ', 'ơ', 'ớ', 'ờ', 'ở', 'ỡ', 'ợ', 'ø', 'ō', 'ő',\n 'ŏ', 'ο', 'ὀ', 'ὁ', 'ὂ', 'ὃ', 'ὄ', 'ὅ', 'ὸ', 'ό',\n 'ö', 'о', 'و', 'θ'),\n 'p' => array('п', 'π'),\n 'r' => array('ŕ', 'ř', 'ŗ', 'р', 'ρ', 'ر'),\n 's' => array('ś', 'š', 'ş', 'с', 'σ', 'ș', 'ς', 'س', 'ص'),\n 't' => array('ť', 'ţ', 'т', 'τ', 'ț', 'ت', 'ط'),\n 'u' => array('ú', 'ù', 'ủ', 'ũ', 'ụ', 'ư', 'ứ', 'ừ', 'ử', 'ữ',\n 'ự', 'ü', 'û', 'ū', 'ů', 'ű', 'ŭ', 'ų', 'µ', 'у'),\n 'v' => array('в'),\n 'w' => array('ŵ', 'ω', 'ώ'),\n 'x' => array('χ'),\n 'y' => array('ý', 'ỳ', 'ỷ', 'ỹ', 'ỵ', 'ÿ', 'ŷ', 'й', 'ы', 'υ',\n 'ϋ', 'ύ', 'ΰ', 'ي'),\n 'z' => array('ź', 'ž', 'ż', 'з', 'ζ', 'ز'),\n 'aa' => array('ع'),\n 'ae' => array('æ'),\n 'ch' => array('ч'),\n 'dj' => array('ђ', 'đ'),\n 'dz' => array('џ'),\n 'gh' => array('غ'),\n 'kh' => array('х', 'خ'),\n 'lj' => array('љ'),\n 'nj' => array('њ'),\n 'oe' => array('œ'),\n 'ps' => array('ψ'),\n 'sh' => array('ш'),\n 'shch' => array('щ'),\n 'ss' => array('ß'),\n 'th' => array('þ', 'ث', 'ذ', 'ظ'),\n 'ts' => array('ц'),\n 'ya' => array('я'),\n 'yu' => array('ю'),\n 'zh' => array('ж'),\n '(c)' => array('©'),\n 'A' => array('Á', 'À', 'Ả', 'Ã', 'Ạ', 'Ă', 'Ắ', 'Ằ', 'Ẳ', 'Ẵ',\n 'Ặ', 'Â', 'Ấ', 'Ầ', 'Ẩ', 'Ẫ', 'Ậ', 'Ä', 'Å', 'Ā',\n 'Ą', 'Α', 'Ά', 'Ἀ', 'Ἁ', 'Ἂ', 'Ἃ', 'Ἄ', 'Ἅ', 'Ἆ',\n 'Ἇ', 'ᾈ', 'ᾉ', 'ᾊ', 'ᾋ', 'ᾌ', 'ᾍ', 'ᾎ', 'ᾏ', 'Ᾰ',\n 'Ᾱ', 'Ὰ', 'Ά', 'ᾼ', 'А'),\n 'B' => array('Б', 'Β'),\n 'C' => array('Ç','Ć', 'Č', 'Ĉ', 'Ċ'),\n 'D' => array('Ď', 'Ð', 'Đ', 'Ɖ', 'Ɗ', 'Ƌ', 'ᴅ', 'ᴆ', 'Д', 'Δ'),\n 'E' => array('É', 'È', 'Ẻ', 'Ẽ', 'Ẹ', 'Ê', 'Ế', 'Ề', 'Ể', 'Ễ',\n 'Ệ', 'Ë', 'Ē', 'Ę', 'Ě', 'Ĕ', 'Ė', 'Ε', 'Έ', 'Ἐ',\n 'Ἑ', 'Ἒ', 'Ἓ', 'Ἔ', 'Ἕ', 'Έ', 'Ὲ', 'Е', 'Ё', 'Э',\n 'Є', 'Ə'),\n 'F' => array('Ф', 'Φ'),\n 'G' => array('Ğ', 'Ġ', 'Ģ', 'Г', 'Ґ', 'Γ'),\n 'H' => array('Η', 'Ή'),\n 'I' => array('Í', 'Ì', 'Ỉ', 'Ĩ', 'Ị', 'Î', 'Ï', 'Ī', 'Ĭ', 'Į',\n 'İ', 'Ι', 'Ί', 'Ϊ', 'Ἰ', 'Ἱ', 'Ἳ', 'Ἴ', 'Ἵ', 'Ἶ',\n 'Ἷ', 'Ῐ', 'Ῑ', 'Ὶ', 'Ί', 'И', 'І', 'Ї'),\n 'K' => array('К', 'Κ'),\n 'L' => array('Ĺ', 'Ł', 'Л', 'Λ', 'Ļ'),\n 'M' => array('М', 'Μ'),\n 'N' => array('Ń', 'Ñ', 'Ň', 'Ņ', 'Ŋ', 'Н', 'Ν'),\n 'O' => array('Ó', 'Ò', 'Ỏ', 'Õ', 'Ọ', 'Ô', 'Ố', 'Ồ', 'Ổ', 'Ỗ',\n 'Ộ', 'Ơ', 'Ớ', 'Ờ', 'Ở', 'Ỡ', 'Ợ', 'Ö', 'Ø', 'Ō',\n 'Ő', 'Ŏ', 'Ο', 'Ό', 'Ὀ', 'Ὁ', 'Ὂ', 'Ὃ', 'Ὄ', 'Ὅ',\n 'Ὸ', 'Ό', 'О', 'Θ', 'Ө'),\n 'P' => array('П', 'Π'),\n 'R' => array('Ř', 'Ŕ', 'Р', 'Ρ'),\n 'S' => array('Ş', 'Ŝ', 'Ș', 'Š', 'Ś', 'С', 'Σ'),\n 'T' => array('Ť', 'Ţ', 'Ŧ', 'Ț', 'Т', 'Τ'),\n 'U' => array('Ú', 'Ù', 'Ủ', 'Ũ', 'Ụ', 'Ư', 'Ứ', 'Ừ', 'Ử', 'Ữ',\n 'Ự', 'Û', 'Ü', 'Ū', 'Ů', 'Ű', 'Ŭ', 'Ų', 'У'),\n 'V' => array('В'),\n 'W' => array('Ω', 'Ώ'),\n 'X' => array('Χ'),\n 'Y' => array('Ý', 'Ỳ', 'Ỷ', 'Ỹ', 'Ỵ', 'Ÿ', 'Ῠ', 'Ῡ', 'Ὺ', 'Ύ',\n 'Ы', 'Й', 'Υ', 'Ϋ'),\n 'Z' => array('Ź', 'Ž', 'Ż', 'З', 'Ζ'),\n 'AE' => array('Æ'),\n 'CH' => array('Ч'),\n 'DJ' => array('Ђ'),\n 'DZ' => array('Џ'),\n 'KH' => array('Х'),\n 'LJ' => array('Љ'),\n 'NJ' => array('Њ'),\n 'PS' => array('Ψ'),\n 'SH' => array('Ш'),\n 'SHCH' => array('Щ'),\n 'SS' => array('ẞ'),\n 'TH' => array('Þ'),\n 'TS' => array('Ц'),\n 'YA' => array('Я'),\n 'YU' => array('Ю'),\n 'ZH' => array('Ж'),\n ' ' => array(\"\\xC2\\xA0\", \"\\xE2\\x80\\x80\", \"\\xE2\\x80\\x81\",\n \"\\xE2\\x80\\x82\", \"\\xE2\\x80\\x83\", \"\\xE2\\x80\\x84\",\n \"\\xE2\\x80\\x85\", \"\\xE2\\x80\\x86\", \"\\xE2\\x80\\x87\",\n \"\\xE2\\x80\\x88\", \"\\xE2\\x80\\x89\", \"\\xE2\\x80\\x8A\",\n \"\\xE2\\x80\\xAF\", \"\\xE2\\x81\\x9F\", \"\\xE3\\x80\\x80\"),\n );\n }", "title": "" }, { "docid": "39594c751b52eda57c0e180113fd0b8d", "score": "0.55301946", "text": "public function getCharset()\n {\n /** @var Symfony\\Component\\HttpFoundation\\Response $instance */\n return $instance->getCharset();\n }", "title": "" }, { "docid": "39594c751b52eda57c0e180113fd0b8d", "score": "0.55301946", "text": "public function getCharset()\n {\n /** @var Symfony\\Component\\HttpFoundation\\Response $instance */\n return $instance->getCharset();\n }", "title": "" }, { "docid": "435b86b1e90fee1e343b424624c7afe8", "score": "0.5522525", "text": "function serendipity_getCharset() {\n global $serendipity;\n\n $charset = $serendipity['charset'] ?? 'UTF-8/';\n if (!empty($_POST['charset'])) {\n if ($_POST['charset'] == 'UTF-8/') {\n $charset = 'UTF-8/';\n } else {\n $charset = '';\n }\n }\n\n if (!empty($serendipity['POST']['charset'])) {\n if ($serendipity['POST']['charset'] == 'UTF-8/') {\n $charset = 'UTF-8/';\n } else {\n $charset = '';\n }\n }\n return $charset;\n}", "title": "" }, { "docid": "457d6ac60aa8715fd8d58afe254e0598", "score": "0.5514914", "text": "public function getFormatEncodingOptions()\n {\n $options = [\n 'utf-8',\n 'us-ascii',\n 'iso-8859-1',\n 'iso-8859-2',\n 'iso-8859-3',\n 'iso-8859-4',\n 'iso-8859-5',\n 'iso-8859-6',\n 'iso-8859-7',\n 'iso-8859-8',\n 'iso-8859-0',\n 'iso-8859-10',\n 'iso-8859-11',\n 'iso-8859-13',\n 'iso-8859-14',\n 'iso-8859-15',\n 'Windows-1251',\n 'Windows-1252'\n ];\n\n $translated = array_map(function ($option) {\n return Lang::get('backend::lang.import_export.encodings.'.Str::slug($option, '_'));\n }, $options);\n\n return array_combine($options, $translated);\n }", "title": "" }, { "docid": "fd15bd00fd8b011a01241bbb8acb5c05", "score": "0.54998714", "text": "function cocobasic_get_color_scheme_choices() {\n $color_schemes = cocobasic_get_color_schemes();\n $color_scheme_control_options = array();\n\n foreach ($color_schemes as $color_scheme => $value) {\n $color_scheme_control_options[$color_scheme] = $value['label'];\n }\n\n return $color_scheme_control_options;\n }", "title": "" }, { "docid": "85de47e64fb0f9fe4817153227ee0cc2", "score": "0.5464948", "text": "public function getFontList()\n {\n return array(\n array(\n 'value' => 'HiraKakuProN-W3',\n 'label' => 'HiraKakuProN-W3',\n ),\n array(\n 'value' => 'Courier',\n 'label' => 'Courier',\n ),\n array(\n 'value' => 'Courier-BoldOblique',\n 'label' => 'Courier-BoldOblique',\n ),\n array(\n 'value' => 'Courier-Oblique',\n 'label' => 'Courier-Oblique',\n ),\n array(\n 'value' => 'Courier-Bold',\n 'label' => 'Courier-Bold',\n ),\n array(\n 'value' => 'ArialMT',\n 'label' => 'ArialMT',\n ),\n array(\n 'value' => 'Arial-BoldMT',\n 'label' => 'Arial-BoldMT',\n ),\n array(\n 'value' => 'Arial-BoldItalicMT',\n 'label' => 'Arial-BoldItalicMT',\n ),\n array(\n 'value' => 'Arial-ItalicMT',\n 'label' => 'Arial-ItalicMT',\n ),\n array(\n 'value' => 'STHeitiTC-Light',\n 'label' => 'STHeitiTC-Light',\n ),\n array(\n 'value' => 'STHeitiTC-Medium',\n 'label' => 'STHeitiTC-Medium',\n ),\n array(\n 'value' => 'AppleGothic',\n 'label' => 'AppleGothic',\n ),\n array(\n 'value' => 'CourierNewPS-BoldMT',\n 'label' => 'CourierNewPS-BoldMT',\n ),\n array(\n 'value' => 'CourierNewPS-ItalicMT',\n 'label' => 'CourierNewPS-ItalicMT',\n ),\n array(\n 'value' => 'CourierNewPS-BoldItalicMT',\n 'label' => 'CourierNewPS-BoldItalicMT',\n ),\n array(\n 'value' => 'CourierNewPSMT',\n 'label' => 'CourierNewPSMT',\n ),\n array(\n 'value' => 'Zapfino',\n 'label' => 'Zapfino',\n ),\n array(\n 'value' => 'HiraKakuProN-W6',\n 'label' => 'HiraKakuProN-W6',\n ),\n array(\n 'value' => 'ArialUnicodeMS',\n 'label' => 'ArialUnicodeMS',\n ),\n array(\n 'value' => 'STHeitiSC-Medium',\n 'label' => 'STHeitiSC-Medium',\n ),\n array(\n 'value' => 'STHeitiSC-Light',\n 'label' => 'STHeitiSC-Light',\n ),\n array(\n 'value' => 'AmericanTypewriter',\n 'label' => 'AmericanTypewriter',\n ),\n array(\n 'value' => 'AmericanTypewriter-Bold',\n 'label' => 'AmericanTypewriter-Bold',\n ),\n array(\n 'value' => 'Helvetica-Oblique',\n 'label' => 'Helvetica-Oblique',\n ),\n array(\n 'value' => 'Helvetica-BoldOblique',\n 'label' => 'Helvetica-BoldOblique',\n ),\n array(\n 'value' => 'Helvetica',\n 'label' => 'Helvetica',\n ),\n array(\n 'value' => 'Helvetica-Bold',\n 'label' => 'Helvetica-Bold',\n ),\n array(\n 'value' => 'MarkerFelt-Thin',\n 'label' => 'MarkerFelt-Thin',\n ),\n array(\n 'value' => 'HelveticaNeue',\n 'label' => 'HelveticaNeue',\n ),\n array(\n 'value' => 'HelveticaNeue-Bold',\n 'label' => 'HelveticaNeue-Bold',\n ),\n array(\n 'value' => 'DBLCDTempBlack',\n 'label' => 'DBLCDTempBlack',\n ),\n array(\n 'value' => 'Verdana-Bold',\n 'label' => 'Verdana-Bold',\n ),\n array(\n 'value' => 'Verdana-BoldItalic',\n 'label' => 'Verdana-BoldItalic',\n ),\n array(\n 'value' => 'Verdana',\n 'label' => 'Verdana',\n ),\n array(\n 'value' => 'Verdana-Italic',\n 'label' => 'Verdana-Italic',\n ),\n array(\n 'value' => 'TimesNewRomanPSMT',\n 'label' => 'TimesNewRomanPSMT',\n ),\n array(\n 'value' => 'TimesNewRomanPS-BoldMT',\n 'label' => 'TimesNewRomanPS-BoldMT',\n ),\n array(\n 'value' => 'TimesNewRomanPS-BoldItalicMT',\n 'label' => 'TimesNewRomanPS-BoldItalicMT',\n ),\n array(\n 'value' => 'TimesNewRomanPS-ItalicMT',\n 'label' => 'TimesNewRomanPS-ItalicMT',\n ),\n array(\n 'value' => 'Georgia-Bold',\n 'label' => 'Georgia-Bold',\n ),\n array(\n 'value' => 'Georgia',\n 'label' => 'Georgia',\n ),\n array(\n 'value' => 'Georgia-BoldItalic',\n 'label' => 'Georgia-BoldItalic',\n ),\n array(\n 'value' => 'Georgia-Italic',\n 'label' => 'Georgia-Italic',\n ),\n array(\n 'value' => 'STHeitiJ-Medium',\n 'label' => 'STHeitiJ-Medium',\n ),\n array(\n 'value' => 'STHeitiJ-Light',\n 'label' => 'STHeitiJ-Light',\n ),\n array(\n 'value' => 'ArialRoundedMTBold',\n 'label' => 'ArialRoundedMTBold',\n ),\n array(\n 'value' => 'TrebuchetMS-Italic',\n 'label' => 'TrebuchetMS-Italic',\n ),\n array(\n 'value' => 'TrebuchetMS',\n 'label' => 'TrebuchetMS',\n ),\n array(\n 'value' => 'Trebuchet-BoldItalic',\n 'label' => 'Trebuchet-BoldItalic',\n ),\n array(\n 'value' => 'TrebuchetMS-Bold',\n 'label' => 'TrebuchetMS-Bold',\n ),\n array(\n 'value' => 'STHeitiK-Medium',\n 'label' => 'STHeitiK-Medium',\n ),\n array(\n 'value' => 'STHeitiK-Light',\n 'label' => 'STHeitiK-Light',\n ));\n }", "title": "" }, { "docid": "fe91c84a616dff3022ac87ab81fab6fe", "score": "0.5463129", "text": "public function getSpecialCharMap() {\n\t\treturn $this->specialcharmap();\n\t}", "title": "" }, { "docid": "37a38a8a5803ea50add9ccfa31758214", "score": "0.5462375", "text": "function ua_languages()\n {\n return ua()->languages();\n }", "title": "" }, { "docid": "b711dff2b6e08e7b00591de0d9034dcf", "score": "0.5453653", "text": "public function encoding(): array\n {\n return $this->config['encoding'] ?? [];\n }", "title": "" }, { "docid": "3adb0795fba0c6791e2ed4ad60eee5e0", "score": "0.545", "text": "function getSupportedLocales() {\n\t\t$locales = $this->getData('supportedLocales');\n if ($index = in_array('zh_TW', $locales)) {\n $newLocales = array('zh_TW');\n foreach ($locales AS $l) {\n if ($l === \"zh_TW\") {\n continue;\n }\n $newLocales[] = $l;\n }\n $locales = $newLocales;\n }\n\t\treturn isset($locales) ? $locales : array();\n\t}", "title": "" }, { "docid": "58907a31424a1823a6f724d337f21d3e", "score": "0.54433995", "text": "public function getSupportedCodecs()\n {\n return $this->supported_codecs;\n }", "title": "" }, { "docid": "008598cf3196e6d68a6f1c62a1e9370a", "score": "0.5435158", "text": "public function getToCharset();", "title": "" }, { "docid": "850fdd20da93aa4c1b0ba023b81af64d", "score": "0.54273444", "text": "function udm_check_charset($agent, $charset)\n{\n}", "title": "" }, { "docid": "e26e2563729f3e55d3898567d0ce6e04", "score": "0.54263955", "text": "public function getAcceptContentType(): array\n {\n $acceptContentType = str_replace(';', ',', $_SERVER['HTTP_ACCEPT']);\n $acceptContentType = explode(',', $acceptContentType);\n $ContentType = [];\n foreach ($acceptContentType as $content) {\n if (strpos($content, 'q=') === false) {\n $ContentType[] = $content;\n }\n }\n\n return $ContentType;\n }", "title": "" }, { "docid": "853b1b482da55686e4335ea5c038d370", "score": "0.54220897", "text": "function ua_accepts_charset($charset = 'utf-8') \n {\n return ua()->accept_charset($charset);\n }", "title": "" }, { "docid": "c182fb0b85e0aa99325fb5b92adbddd3", "score": "0.5408292", "text": "public static function encoding($charset)\n{\n// Normalization from UTS #22\nswitch (strtolower(preg_replace('/(?:[^a-zA-Z0-9]+|([^0-9])0+)/', '\\1', $charset)))\n{\ncase 'adobestandardencoding':\ncase 'csadobestandardencoding':\nreturn 'Adobe-Standard-Encoding';\ncase 'adobesymbolencoding':\ncase 'cshppsmath':\nreturn 'Adobe-Symbol-Encoding';\ncase 'ami1251':\ncase 'amiga1251':\nreturn 'Amiga-1251';\ncase 'ansix31101983':\ncase 'csat5001983':\ncase 'csiso99naplps':\ncase 'isoir99':\ncase 'naplps':\nreturn 'ANSI_X3.110-1983';\ncase 'arabic7':\ncase 'asmo449':\ncase 'csiso89asmo449':\ncase 'iso9036':\ncase 'isoir89':\nreturn 'ASMO_449';\ncase 'big5':\ncase 'csbig5':\nreturn 'Big5';\ncase 'big5hkscs':\nreturn 'Big5-HKSCS';\ncase 'bocu1':\ncase 'csbocu1':\nreturn 'BOCU-1';\ncase 'brf':\ncase 'csbrf':\nreturn 'BRF';\ncase 'bs4730':\ncase 'csiso4unitedkingdom':\ncase 'gb':\ncase 'iso646gb':\ncase 'isoir4':\ncase 'uk':\nreturn 'BS_4730';\ncase 'bsviewdata':\ncase 'csiso47bsviewdata':\ncase 'isoir47':\nreturn 'BS_viewdata';\ncase 'cesu8':\ncase 'cscesu8':\nreturn 'CESU-8';\ncase 'ca':\ncase 'csa71':\ncase 'csaz243419851':\ncase 'csiso121canadian1':\ncase 'iso646ca':\ncase 'isoir121':\nreturn 'CSA_Z243.4-1985-1';\ncase 'csa72':\ncase 'csaz243419852':\ncase 'csiso122canadian2':\ncase 'iso646ca2':\ncase 'isoir122':\nreturn 'CSA_Z243.4-1985-2';\ncase 'csaz24341985gr':\ncase 'csiso123csaz24341985gr':\ncase 'isoir123':\nreturn 'CSA_Z243.4-1985-gr';\ncase 'csiso139csn369103':\ncase 'csn369103':\ncase 'isoir139':\nreturn 'CSN_369103';\ncase 'csdecmcs':\ncase 'dec':\ncase 'decmcs':\nreturn 'DEC-MCS';\ncase 'csiso21german':\ncase 'de':\ncase 'din66003':\ncase 'iso646de':\ncase 'isoir21':\nreturn 'DIN_66003';\ncase 'csdkus':\ncase 'dkus':\nreturn 'dk-us';\ncase 'csiso646danish':\ncase 'dk':\ncase 'ds2089':\ncase 'iso646dk':\nreturn 'DS_2089';\ncase 'csibmebcdicatde':\ncase 'ebcdicatde':\nreturn 'EBCDIC-AT-DE';\ncase 'csebcdicatdea':\ncase 'ebcdicatdea':\nreturn 'EBCDIC-AT-DE-A';\ncase 'csebcdiccafr':\ncase 'ebcdiccafr':\nreturn 'EBCDIC-CA-FR';\ncase 'csebcdicdkno':\ncase 'ebcdicdkno':\nreturn 'EBCDIC-DK-NO';\ncase 'csebcdicdknoa':\ncase 'ebcdicdknoa':\nreturn 'EBCDIC-DK-NO-A';\ncase 'csebcdices':\ncase 'ebcdices':\nreturn 'EBCDIC-ES';\ncase 'csebcdicesa':\ncase 'ebcdicesa':\nreturn 'EBCDIC-ES-A';\ncase 'csebcdicess':\ncase 'ebcdicess':\nreturn 'EBCDIC-ES-S';\ncase 'csebcdicfise':\ncase 'ebcdicfise':\nreturn 'EBCDIC-FI-SE';\ncase 'csebcdicfisea':\ncase 'ebcdicfisea':\nreturn 'EBCDIC-FI-SE-A';\ncase 'csebcdicfr':\ncase 'ebcdicfr':\nreturn 'EBCDIC-FR';\ncase 'csebcdicit':\ncase 'ebcdicit':\nreturn 'EBCDIC-IT';\ncase 'csebcdicpt':\ncase 'ebcdicpt':\nreturn 'EBCDIC-PT';\ncase 'csebcdicuk':\ncase 'ebcdicuk':\nreturn 'EBCDIC-UK';\ncase 'csebcdicus':\ncase 'ebcdicus':\nreturn 'EBCDIC-US';\ncase 'csiso111ecmacyrillic':\ncase 'ecmacyrillic':\ncase 'isoir111':\ncase 'koi8e':\nreturn 'ECMA-cyrillic';\ncase 'csiso17spanish':\ncase 'es':\ncase 'iso646es':\ncase 'isoir17':\nreturn 'ES';\ncase 'csiso85spanish2':\ncase 'es2':\ncase 'iso646es2':\ncase 'isoir85':\nreturn 'ES2';\ncase 'cseucpkdfmtjapanese':\ncase 'eucjp':\ncase 'extendedunixcodepackedformatforjapanese':\nreturn 'EUC-JP';\ncase 'cseucfixwidjapanese':\ncase 'extendedunixcodefixedwidthforjapanese':\nreturn 'Extended_UNIX_Code_Fixed_Width_for_Japanese';\ncase 'gb18030':\nreturn 'GB18030';\ncase 'chinese':\ncase 'cp936':\ncase 'csgb2312':\ncase 'csiso58gb231280':\ncase 'gb2312':\ncase 'gb231280':\ncase 'gbk':\ncase 'isoir58':\ncase 'ms936':\ncase 'windows936':\nreturn 'GBK';\ncase 'cn':\ncase 'csiso57gb1988':\ncase 'gb198880':\ncase 'iso646cn':\ncase 'isoir57':\nreturn 'GB_1988-80';\ncase 'csiso153gost1976874':\ncase 'gost1976874':\ncase 'isoir153':\ncase 'stsev35888':\nreturn 'GOST_19768-74';\ncase 'csiso150':\ncase 'csiso150greekccitt':\ncase 'greekccitt':\ncase 'isoir150':\nreturn 'greek-ccitt';\ncase 'csiso88greek7':\ncase 'greek7':\ncase 'isoir88':\nreturn 'greek7';\ncase 'csiso18greek7old':\ncase 'greek7old':\ncase 'isoir18':\nreturn 'greek7-old';\ncase 'cshpdesktop':\ncase 'hpdesktop':\nreturn 'HP-DeskTop';\ncase 'cshplegal':\ncase 'hplegal':\nreturn 'HP-Legal';\ncase 'cshpmath8':\ncase 'hpmath8':\nreturn 'HP-Math8';\ncase 'cshppifont':\ncase 'hppifont':\nreturn 'HP-Pi-font';\ncase 'cshproman8':\ncase 'hproman8':\ncase 'r8':\ncase 'roman8':\nreturn 'hp-roman8';\ncase 'hzgb2312':\nreturn 'HZ-GB-2312';\ncase 'csibmsymbols':\ncase 'ibmsymbols':\nreturn 'IBM-Symbols';\ncase 'csibmthai':\ncase 'ibmthai':\nreturn 'IBM-Thai';\ncase 'cp37':\ncase 'csibm37':\ncase 'ebcdiccpca':\ncase 'ebcdiccpnl':\ncase 'ebcdiccpus':\ncase 'ebcdiccpwt':\ncase 'ibm37':\nreturn 'IBM037';\ncase 'cp38':\ncase 'csibm38':\ncase 'ebcdicint':\ncase 'ibm38':\nreturn 'IBM038';\ncase 'cp273':\ncase 'csibm273':\ncase 'ibm273':\nreturn 'IBM273';\ncase 'cp274':\ncase 'csibm274':\ncase 'ebcdicbe':\ncase 'ibm274':\nreturn 'IBM274';\ncase 'cp275':\ncase 'csibm275':\ncase 'ebcdicbr':\ncase 'ibm275':\nreturn 'IBM275';\ncase 'csibm277':\ncase 'ebcdiccpdk':\ncase 'ebcdiccpno':\ncase 'ibm277':\nreturn 'IBM277';\ncase 'cp278':\ncase 'csibm278':\ncase 'ebcdiccpfi':\ncase 'ebcdiccpse':\ncase 'ibm278':\nreturn 'IBM278';\ncase 'cp280':\ncase 'csibm280':\ncase 'ebcdiccpit':\ncase 'ibm280':\nreturn 'IBM280';\ncase 'cp281':\ncase 'csibm281':\ncase 'ebcdicjpe':\ncase 'ibm281':\nreturn 'IBM281';\ncase 'cp284':\ncase 'csibm284':\ncase 'ebcdiccpes':\ncase 'ibm284':\nreturn 'IBM284';\ncase 'cp285':\ncase 'csibm285':\ncase 'ebcdiccpgb':\ncase 'ibm285':\nreturn 'IBM285';\ncase 'cp290':\ncase 'csibm290':\ncase 'ebcdicjpkana':\ncase 'ibm290':\nreturn 'IBM290';\ncase 'cp297':\ncase 'csibm297':\ncase 'ebcdiccpfr':\ncase 'ibm297':\nreturn 'IBM297';\ncase 'cp420':\ncase 'csibm420':\ncase 'ebcdiccpar1':\ncase 'ibm420':\nreturn 'IBM420';\ncase 'cp423':\ncase 'csibm423':\ncase 'ebcdiccpgr':\ncase 'ibm423':\nreturn 'IBM423';\ncase 'cp424':\ncase 'csibm424':\ncase 'ebcdiccphe':\ncase 'ibm424':\nreturn 'IBM424';\ncase '437':\ncase 'cp437':\ncase 'cspc8codepage437':\ncase 'ibm437':\nreturn 'IBM437';\ncase 'cp500':\ncase 'csibm500':\ncase 'ebcdiccpbe':\ncase 'ebcdiccpch':\ncase 'ibm500':\nreturn 'IBM500';\ncase 'cp775':\ncase 'cspc775baltic':\ncase 'ibm775':\nreturn 'IBM775';\ncase '850':\ncase 'cp850':\ncase 'cspc850multilingual':\ncase 'ibm850':\nreturn 'IBM850';\ncase '851':\ncase 'cp851':\ncase 'csibm851':\ncase 'ibm851':\nreturn 'IBM851';\ncase '852':\ncase 'cp852':\ncase 'cspcp852':\ncase 'ibm852':\nreturn 'IBM852';\ncase '855':\ncase 'cp855':\ncase 'csibm855':\ncase 'ibm855':\nreturn 'IBM855';\ncase '857':\ncase 'cp857':\ncase 'csibm857':\ncase 'ibm857':\nreturn 'IBM857';\ncase 'ccsid858':\ncase 'cp858':\ncase 'ibm858':\ncase 'pcmultilingual850euro':\nreturn 'IBM00858';\ncase '860':\ncase 'cp860':\ncase 'csibm860':\ncase 'ibm860':\nreturn 'IBM860';\ncase '861':\ncase 'cp861':\ncase 'cpis':\ncase 'csibm861':\ncase 'ibm861':\nreturn 'IBM861';\ncase '862':\ncase 'cp862':\ncase 'cspc862latinhebrew':\ncase 'ibm862':\nreturn 'IBM862';\ncase '863':\ncase 'cp863':\ncase 'csibm863':\ncase 'ibm863':\nreturn 'IBM863';\ncase 'cp864':\ncase 'csibm864':\ncase 'ibm864':\nreturn 'IBM864';\ncase '865':\ncase 'cp865':\ncase 'csibm865':\ncase 'ibm865':\nreturn 'IBM865';\ncase '866':\ncase 'cp866':\ncase 'csibm866':\ncase 'ibm866':\nreturn 'IBM866';\ncase 'cp868':\ncase 'cpar':\ncase 'csibm868':\ncase 'ibm868':\nreturn 'IBM868';\ncase '869':\ncase 'cp869':\ncase 'cpgr':\ncase 'csibm869':\ncase 'ibm869':\nreturn 'IBM869';\ncase 'cp870':\ncase 'csibm870':\ncase 'ebcdiccproece':\ncase 'ebcdiccpyu':\ncase 'ibm870':\nreturn 'IBM870';\ncase 'cp871':\ncase 'csibm871':\ncase 'ebcdiccpis':\ncase 'ibm871':\nreturn 'IBM871';\ncase 'cp880':\ncase 'csibm880':\ncase 'ebcdiccyrillic':\ncase 'ibm880':\nreturn 'IBM880';\ncase 'cp891':\ncase 'csibm891':\ncase 'ibm891':\nreturn 'IBM891';\ncase 'cp903':\ncase 'csibm903':\ncase 'ibm903':\nreturn 'IBM903';\ncase '904':\ncase 'cp904':\ncase 'csibbm904':\ncase 'ibm904':\nreturn 'IBM904';\ncase 'cp905':\ncase 'csibm905':\ncase 'ebcdiccptr':\ncase 'ibm905':\nreturn 'IBM905';\ncase 'cp918':\ncase 'csibm918':\ncase 'ebcdiccpar2':\ncase 'ibm918':\nreturn 'IBM918';\ncase 'ccsid924':\ncase 'cp924':\ncase 'ebcdiclatin9euro':\ncase 'ibm924':\nreturn 'IBM00924';\ncase 'cp1026':\ncase 'csibm1026':\ncase 'ibm1026':\nreturn 'IBM1026';\ncase 'ibm1047':\nreturn 'IBM1047';\ncase 'ccsid1140':\ncase 'cp1140':\ncase 'ebcdicus37euro':\ncase 'ibm1140':\nreturn 'IBM01140';\ncase 'ccsid1141':\ncase 'cp1141':\ncase 'ebcdicde273euro':\ncase 'ibm1141':\nreturn 'IBM01141';\ncase 'ccsid1142':\ncase 'cp1142':\ncase 'ebcdicdk277euro':\ncase 'ebcdicno277euro':\ncase 'ibm1142':\nreturn 'IBM01142';\ncase 'ccsid1143':\ncase 'cp1143':\ncase 'ebcdicfi278euro':\ncase 'ebcdicse278euro':\ncase 'ibm1143':\nreturn 'IBM01143';\ncase 'ccsid1144':\ncase 'cp1144':\ncase 'ebcdicit280euro':\ncase 'ibm1144':\nreturn 'IBM01144';\ncase 'ccsid1145':\ncase 'cp1145':\ncase 'ebcdices284euro':\ncase 'ibm1145':\nreturn 'IBM01145';\ncase 'ccsid1146':\ncase 'cp1146':\ncase 'ebcdicgb285euro':\ncase 'ibm1146':\nreturn 'IBM01146';\ncase 'ccsid1147':\ncase 'cp1147':\ncase 'ebcdicfr297euro':\ncase 'ibm1147':\nreturn 'IBM01147';\ncase 'ccsid1148':\ncase 'cp1148':\ncase 'ebcdicinternational500euro':\ncase 'ibm1148':\nreturn 'IBM01148';\ncase 'ccsid1149':\ncase 'cp1149':\ncase 'ebcdicis871euro':\ncase 'ibm1149':\nreturn 'IBM01149';\ncase 'csiso143iecp271':\ncase 'iecp271':\ncase 'isoir143':\nreturn 'IEC_P27-1';\ncase 'csiso49inis':\ncase 'inis':\ncase 'isoir49':\nreturn 'INIS';\ncase 'csiso50inis8':\ncase 'inis8':\ncase 'isoir50':\nreturn 'INIS-8';\ncase 'csiso51iniscyrillic':\ncase 'iniscyrillic':\ncase 'isoir51':\nreturn 'INIS-cyrillic';\ncase 'csinvariant':\ncase 'invariant':\nreturn 'INVARIANT';\ncase 'iso2022cn':\nreturn 'ISO-2022-CN';\ncase 'iso2022cnext':\nreturn 'ISO-2022-CN-EXT';\ncase 'csiso2022jp':\ncase 'iso2022jp':\nreturn 'ISO-2022-JP';\ncase 'csiso2022jp2':\ncase 'iso2022jp2':\nreturn 'ISO-2022-JP-2';\ncase 'csiso2022kr':\ncase 'iso2022kr':\nreturn 'ISO-2022-KR';\ncase 'cswindows30latin1':\ncase 'iso88591windows30latin1':\nreturn 'ISO-8859-1-Windows-3.0-Latin-1';\ncase 'cswindows31latin1':\ncase 'iso88591windows31latin1':\nreturn 'ISO-8859-1-Windows-3.1-Latin-1';\ncase 'csisolatin2':\ncase 'iso88592':\ncase 'iso885921987':\ncase 'isoir101':\ncase 'l2':\ncase 'latin2':\nreturn 'ISO-8859-2';\ncase 'cswindows31latin2':\ncase 'iso88592windowslatin2':\nreturn 'ISO-8859-2-Windows-Latin-2';\ncase 'csisolatin3':\ncase 'iso88593':\ncase 'iso885931988':\ncase 'isoir109':\ncase 'l3':\ncase 'latin3':\nreturn 'ISO-8859-3';\ncase 'csisolatin4':\ncase 'iso88594':\ncase 'iso885941988':\ncase 'isoir110':\ncase 'l4':\ncase 'latin4':\nreturn 'ISO-8859-4';\ncase 'csisolatincyrillic':\ncase 'cyrillic':\ncase 'iso88595':\ncase 'iso885951988':\ncase 'isoir144':\nreturn 'ISO-8859-5';\ncase 'arabic':\ncase 'asmo708':\ncase 'csisolatinarabic':\ncase 'ecma114':\ncase 'iso88596':\ncase 'iso885961987':\ncase 'isoir127':\nreturn 'ISO-8859-6';\ncase 'csiso88596e':\ncase 'iso88596e':\nreturn 'ISO-8859-6-E';\ncase 'csiso88596i':\ncase 'iso88596i':\nreturn 'ISO-8859-6-I';\ncase 'csisolatingreek':\ncase 'ecma118':\ncase 'elot928':\ncase 'greek':\ncase 'greek8':\ncase 'iso88597':\ncase 'iso885971987':\ncase 'isoir126':\nreturn 'ISO-8859-7';\ncase 'csisolatinhebrew':\ncase 'hebrew':\ncase 'iso88598':\ncase 'iso885981988':\ncase 'isoir138':\nreturn 'ISO-8859-8';\ncase 'csiso88598e':\ncase 'iso88598e':\nreturn 'ISO-8859-8-E';\ncase 'csiso88598i':\ncase 'iso88598i':\nreturn 'ISO-8859-8-I';\ncase 'cswindows31latin5':\ncase 'iso88599windowslatin5':\nreturn 'ISO-8859-9-Windows-Latin-5';\ncase 'csisolatin6':\ncase 'iso885910':\ncase 'iso8859101992':\ncase 'isoir157':\ncase 'l6':\ncase 'latin6':\nreturn 'ISO-8859-10';\ncase 'iso885913':\nreturn 'ISO-8859-13';\ncase 'iso885914':\ncase 'iso8859141998':\ncase 'isoceltic':\ncase 'isoir199':\ncase 'l8':\ncase 'latin8':\nreturn 'ISO-8859-14';\ncase 'iso885915':\ncase 'latin9':\nreturn 'ISO-8859-15';\ncase 'iso885916':\ncase 'iso8859162001':\ncase 'isoir226':\ncase 'l10':\ncase 'latin10':\nreturn 'ISO-8859-16';\ncase 'iso10646j1':\nreturn 'ISO-10646-J-1';\ncase 'csunicode':\ncase 'iso10646ucs2':\nreturn 'ISO-10646-UCS-2';\ncase 'csucs4':\ncase 'iso10646ucs4':\nreturn 'ISO-10646-UCS-4';\ncase 'csunicodeascii':\ncase 'iso10646ucsbasic':\nreturn 'ISO-10646-UCS-Basic';\ncase 'csunicodelatin1':\ncase 'iso10646':\ncase 'iso10646unicodelatin1':\nreturn 'ISO-10646-Unicode-Latin1';\ncase 'csiso10646utf1':\ncase 'iso10646utf1':\nreturn 'ISO-10646-UTF-1';\ncase 'csiso115481':\ncase 'iso115481':\ncase 'isotr115481':\nreturn 'ISO-11548-1';\ncase 'csiso90':\ncase 'isoir90':\nreturn 'iso-ir-90';\ncase 'csunicodeibm1261':\ncase 'isounicodeibm1261':\nreturn 'ISO-Unicode-IBM-1261';\ncase 'csunicodeibm1264':\ncase 'isounicodeibm1264':\nreturn 'ISO-Unicode-IBM-1264';\ncase 'csunicodeibm1265':\ncase 'isounicodeibm1265':\nreturn 'ISO-Unicode-IBM-1265';\ncase 'csunicodeibm1268':\ncase 'isounicodeibm1268':\nreturn 'ISO-Unicode-IBM-1268';\ncase 'csunicodeibm1276':\ncase 'isounicodeibm1276':\nreturn 'ISO-Unicode-IBM-1276';\ncase 'csiso646basic1983':\ncase 'iso646basic1983':\ncase 'ref':\nreturn 'ISO_646.basic:1983';\ncase 'csiso2intlrefversion':\ncase 'irv':\ncase 'iso646irv1983':\ncase 'isoir2':\nreturn 'ISO_646.irv:1983';\ncase 'csiso2033':\ncase 'e13b':\ncase 'iso20331983':\ncase 'isoir98':\nreturn 'ISO_2033-1983';\ncase 'csiso5427cyrillic':\ncase 'iso5427':\ncase 'isoir37':\nreturn 'ISO_5427';\ncase 'iso5427cyrillic1981':\ncase 'iso54271981':\ncase 'isoir54':\nreturn 'ISO_5427:1981';\ncase 'csiso5428greek':\ncase 'iso54281980':\ncase 'isoir55':\nreturn 'ISO_5428:1980';\ncase 'csiso6937add':\ncase 'iso6937225':\ncase 'isoir152':\nreturn 'ISO_6937-2-25';\ncase 'csisotextcomm':\ncase 'iso69372add':\ncase 'isoir142':\nreturn 'ISO_6937-2-add';\ncase 'csiso8859supp':\ncase 'iso8859supp':\ncase 'isoir154':\ncase 'latin125':\nreturn 'ISO_8859-supp';\ncase 'csiso10367box':\ncase 'iso10367box':\ncase 'isoir155':\nreturn 'ISO_10367-box';\ncase 'csiso15italian':\ncase 'iso646it':\ncase 'isoir15':\ncase 'it':\nreturn 'IT';\ncase 'csiso13jisc6220jp':\ncase 'isoir13':\ncase 'jisc62201969':\ncase 'jisc62201969jp':\ncase 'katakana':\ncase 'x2017':\nreturn 'JIS_C6220-1969-jp';\ncase 'csiso14jisc6220ro':\ncase 'iso646jp':\ncase 'isoir14':\ncase 'jisc62201969ro':\ncase 'jp':\nreturn 'JIS_C6220-1969-ro';\ncase 'csiso42jisc62261978':\ncase 'isoir42':\ncase 'jisc62261978':\nreturn 'JIS_C6226-1978';\ncase 'csiso87jisx208':\ncase 'isoir87':\ncase 'jisc62261983':\ncase 'jisx2081983':\ncase 'x208':\nreturn 'JIS_C6226-1983';\ncase 'csiso91jisc62291984a':\ncase 'isoir91':\ncase 'jisc62291984a':\ncase 'jpocra':\nreturn 'JIS_C6229-1984-a';\ncase 'csiso92jisc62991984b':\ncase 'iso646jpocrb':\ncase 'isoir92':\ncase 'jisc62291984b':\ncase 'jpocrb':\nreturn 'JIS_C6229-1984-b';\ncase 'csiso93jis62291984badd':\ncase 'isoir93':\ncase 'jisc62291984badd':\ncase 'jpocrbadd':\nreturn 'JIS_C6229-1984-b-add';\ncase 'csiso94jis62291984hand':\ncase 'isoir94':\ncase 'jisc62291984hand':\ncase 'jpocrhand':\nreturn 'JIS_C6229-1984-hand';\ncase 'csiso95jis62291984handadd':\ncase 'isoir95':\ncase 'jisc62291984handadd':\ncase 'jpocrhandadd':\nreturn 'JIS_C6229-1984-hand-add';\ncase 'csiso96jisc62291984kana':\ncase 'isoir96':\ncase 'jisc62291984kana':\nreturn 'JIS_C6229-1984-kana';\ncase 'csjisencoding':\ncase 'jisencoding':\nreturn 'JIS_Encoding';\ncase 'cshalfwidthkatakana':\ncase 'jisx201':\ncase 'x201':\nreturn 'JIS_X0201';\ncase 'csiso159jisx2121990':\ncase 'isoir159':\ncase 'jisx2121990':\ncase 'x212':\nreturn 'JIS_X0212-1990';\ncase 'csiso141jusib1002':\ncase 'iso646yu':\ncase 'isoir141':\ncase 'js':\ncase 'jusib1002':\ncase 'yu':\nreturn 'JUS_I.B1.002';\ncase 'csiso147macedonian':\ncase 'isoir147':\ncase 'jusib1003mac':\ncase 'macedonian':\nreturn 'JUS_I.B1.003-mac';\ncase 'csiso146serbian':\ncase 'isoir146':\ncase 'jusib1003serb':\ncase 'serbian':\nreturn 'JUS_I.B1.003-serb';\ncase 'koi7switched':\nreturn 'KOI7-switched';\ncase 'cskoi8r':\ncase 'koi8r':\nreturn 'KOI8-R';\ncase 'koi8u':\nreturn 'KOI8-U';\ncase 'csksc5636':\ncase 'iso646kr':\ncase 'ksc5636':\nreturn 'KSC5636';\ncase 'cskz1048':\ncase 'kz1048':\ncase 'rk1048':\ncase 'strk10482002':\nreturn 'KZ-1048';\ncase 'csiso19latingreek':\ncase 'isoir19':\ncase 'latingreek':\nreturn 'latin-greek';\ncase 'csiso27latingreek1':\ncase 'isoir27':\ncase 'latingreek1':\nreturn 'Latin-greek-1';\ncase 'csiso158lap':\ncase 'isoir158':\ncase 'lap':\ncase 'latinlap':\nreturn 'latin-lap';\ncase 'csmacintosh':\ncase 'mac':\ncase 'macintosh':\nreturn 'macintosh';\ncase 'csmicrosoftpublishing':\ncase 'microsoftpublishing':\nreturn 'Microsoft-Publishing';\ncase 'csmnem':\ncase 'mnem':\nreturn 'MNEM';\ncase 'csmnemonic':\ncase 'mnemonic':\nreturn 'MNEMONIC';\ncase 'csiso86hungarian':\ncase 'hu':\ncase 'iso646hu':\ncase 'isoir86':\ncase 'msz77953':\nreturn 'MSZ_7795.3';\ncase 'csnatsdano':\ncase 'isoir91':\ncase 'natsdano':\nreturn 'NATS-DANO';\ncase 'csnatsdanoadd':\ncase 'isoir92':\ncase 'natsdanoadd':\nreturn 'NATS-DANO-ADD';\ncase 'csnatssefi':\ncase 'isoir81':\ncase 'natssefi':\nreturn 'NATS-SEFI';\ncase 'csnatssefiadd':\ncase 'isoir82':\ncase 'natssefiadd':\nreturn 'NATS-SEFI-ADD';\ncase 'csiso151cuba':\ncase 'cuba':\ncase 'iso646cu':\ncase 'isoir151':\ncase 'ncnc1081':\nreturn 'NC_NC00-10:81';\ncase 'csiso69french':\ncase 'fr':\ncase 'iso646fr':\ncase 'isoir69':\ncase 'nfz62010':\nreturn 'NF_Z_62-010';\ncase 'csiso25french':\ncase 'iso646fr1':\ncase 'isoir25':\ncase 'nfz620101973':\nreturn 'NF_Z_62-010_(1973)';\ncase 'csiso60danishnorwegian':\ncase 'csiso60norwegian1':\ncase 'iso646no':\ncase 'isoir60':\ncase 'no':\ncase 'ns45511':\nreturn 'NS_4551-1';\ncase 'csiso61norwegian2':\ncase 'iso646no2':\ncase 'isoir61':\ncase 'no2':\ncase 'ns45512':\nreturn 'NS_4551-2';\ncase 'osdebcdicdf3irv':\nreturn 'OSD_EBCDIC_DF03_IRV';\ncase 'osdebcdicdf41':\nreturn 'OSD_EBCDIC_DF04_1';\ncase 'osdebcdicdf415':\nreturn 'OSD_EBCDIC_DF04_15';\ncase 'cspc8danishnorwegian':\ncase 'pc8danishnorwegian':\nreturn 'PC8-Danish-Norwegian';\ncase 'cspc8turkish':\ncase 'pc8turkish':\nreturn 'PC8-Turkish';\ncase 'csiso16portuguese':\ncase 'iso646pt':\ncase 'isoir16':\ncase 'pt':\nreturn 'PT';\ncase 'csiso84portuguese2':\ncase 'iso646pt2':\ncase 'isoir84':\ncase 'pt2':\nreturn 'PT2';\ncase 'cp154':\ncase 'csptcp154':\ncase 'cyrillicasian':\ncase 'pt154':\ncase 'ptcp154':\nreturn 'PTCP154';\ncase 'scsu':\nreturn 'SCSU';\ncase 'csiso10swedish':\ncase 'fi':\ncase 'iso646fi':\ncase 'iso646se':\ncase 'isoir10':\ncase 'se':\ncase 'sen850200b':\nreturn 'SEN_850200_B';\ncase 'csiso11swedishfornames':\ncase 'iso646se2':\ncase 'isoir11':\ncase 'se2':\ncase 'sen850200c':\nreturn 'SEN_850200_C';\ncase 'csiso102t617bit':\ncase 'isoir102':\ncase 't617bit':\nreturn 'T.61-7bit';\ncase 'csiso103t618bit':\ncase 'isoir103':\ncase 't61':\ncase 't618bit':\nreturn 'T.61-8bit';\ncase 'csiso128t101g2':\ncase 'isoir128':\ncase 't101g2':\nreturn 'T.101-G2';\ncase 'cstscii':\ncase 'tscii':\nreturn 'TSCII';\ncase 'csunicode11':\ncase 'unicode11':\nreturn 'UNICODE-1-1';\ncase 'csunicode11utf7':\ncase 'unicode11utf7':\nreturn 'UNICODE-1-1-UTF-7';\ncase 'csunknown8bit':\ncase 'unknown8bit':\nreturn 'UNKNOWN-8BIT';\ncase 'ansix341968':\ncase 'ansix341986':\ncase 'ascii':\ncase 'cp367':\ncase 'csascii':\ncase 'ibm367':\ncase 'iso646irv1991':\ncase 'iso646us':\ncase 'isoir6':\ncase 'us':\ncase 'usascii':\nreturn 'US-ASCII';\ncase 'csusdk':\ncase 'usdk':\nreturn 'us-dk';\ncase 'utf7':\nreturn 'UTF-7';\ncase 'utf8':\nreturn 'UTF-8';\ncase 'utf16':\nreturn 'UTF-16';\ncase 'utf16be':\nreturn 'UTF-16BE';\ncase 'utf16le':\nreturn 'UTF-16LE';\ncase 'utf32':\nreturn 'UTF-32';\ncase 'utf32be':\nreturn 'UTF-32BE';\ncase 'utf32le':\nreturn 'UTF-32LE';\ncase 'csventurainternational':\ncase 'venturainternational':\nreturn 'Ventura-International';\ncase 'csventuramath':\ncase 'venturamath':\nreturn 'Ventura-Math';\ncase 'csventuraus':\ncase 'venturaus':\nreturn 'Ventura-US';\ncase 'csiso70videotexsupp1':\ncase 'isoir70':\ncase 'videotexsuppl':\nreturn 'videotex-suppl';\ncase 'csviqr':\ncase 'viqr':\nreturn 'VIQR';\ncase 'csviscii':\ncase 'viscii':\nreturn 'VISCII';\ncase 'csshiftjis':\ncase 'cswindows31j':\ncase 'mskanji':\ncase 'shiftjis':\ncase 'windows31j':\nreturn 'Windows-31J';\ncase 'iso885911':\ncase 'tis620':\nreturn 'windows-874';\ncase 'cseuckr':\ncase 'csksc56011987':\ncase 'euckr':\ncase 'isoir149':\ncase 'korean':\ncase 'ksc5601':\ncase 'ksc56011987':\ncase 'ksc56011989':\ncase 'windows949':\nreturn 'windows-949';\ncase 'windows1250':\nreturn 'windows-1250';\ncase 'windows1251':\nreturn 'windows-1251';\ncase 'cp819':\ncase 'csisolatin1':\ncase 'ibm819':\ncase 'iso88591':\ncase 'iso885911987':\ncase 'isoir100':\ncase 'l1':\ncase 'latin1':\ncase 'windows1252':\nreturn 'windows-1252';\ncase 'windows1253':\nreturn 'windows-1253';\ncase 'csisolatin5':\ncase 'iso88599':\ncase 'iso885991989':\ncase 'isoir148':\ncase 'l5':\ncase 'latin5':\ncase 'windows1254':\nreturn 'windows-1254';\ncase 'windows1255':\nreturn 'windows-1255';\ncase 'windows1256':\nreturn 'windows-1256';\ncase 'windows1257':\nreturn 'windows-1257';\ncase 'windows1258':\nreturn 'windows-1258';\ndefault:\nreturn $charset;\n}\n}", "title": "" }, { "docid": "a0f03f5571c4205c8721f76d0d58f19b", "score": "0.54006773", "text": "static function vmGetCharset() {\n\t\treturn 'UTF-8';\n\t}", "title": "" }, { "docid": "432cf6e7d2ce335e840a145731b4d3fb", "score": "0.5395264", "text": "public function getResponseCharset()\n {\n return $this->responseCharset;\n }", "title": "" }, { "docid": "7fe14917e1f4b09c9b46f91ff7c4c78a", "score": "0.5380172", "text": "public static function get_available_color_schemes(){\n\t\t$color_schemes = [];\n\t\t$color_schemes_css_files = FileSystemIO::get_files_in_dir(Request::get_application_path().self::FILE_PATH.'{*.css}');\n\n\t\tforeach($color_schemes_css_files AS $key => $css_file)\n\t\t\t$color_schemes[] = new ColorScheme(str_replace('.css','',$css_file->name));\n\t\t\n\t\treturn $color_schemes;\n\t}", "title": "" } ]
cdbaef96a5e9c0d618986ae1f7ef577a
Not cached since subclasses hardcode
[ { "docid": "0f00a9b805bed81899bbf8f236121754", "score": "0.0", "text": "public function getVisibility($path)\n {\n return $this->getBackend()->getVisibility($path);\n }", "title": "" } ]
[ { "docid": "b4e425e88b336f2040e816b9d78c807f", "score": "0.6271963", "text": "protected function __init__() { }", "title": "" }, { "docid": "d6e55210f4fa2ba48ea793700054193b", "score": "0.6234596", "text": "protected function get_class()\n {\n }", "title": "" }, { "docid": "e321771a734900af0dd4ab4eda76374b", "score": "0.6203356", "text": "function Classifieds(){\n\t\t$this->__construct();\n\t}", "title": "" }, { "docid": "8c8a84d957a72ffda2c923ee8683d451", "score": "0.6138994", "text": "public static function get_class(){return \\get_class();}", "title": "" }, { "docid": "35f8ff218e4c2a5ffd6533829018fd5f", "score": "0.6136852", "text": "abstract protected function _get();", "title": "" }, { "docid": "b7fa635fbc907a59f084000c4063605d", "score": "0.6049416", "text": "abstract protected function get_base();", "title": "" }, { "docid": "3d1975087b310895dc9cfb4dfe1b62bf", "score": "0.5957024", "text": "abstract protected function get();", "title": "" }, { "docid": "3d1975087b310895dc9cfb4dfe1b62bf", "score": "0.5957024", "text": "abstract protected function get();", "title": "" }, { "docid": "385c1e1f00caf7cc0fa08b8253e0b4ea", "score": "0.59545505", "text": "protected function init() {\n\t\t// Must be overriden in subclass.\n\t}", "title": "" }, { "docid": "0a7f71e01947364746dda0b3b4311953", "score": "0.58386225", "text": "protected function _getClass()\n {\n \treturn $this->_class;\n }", "title": "" }, { "docid": "8055020c5cdd5700075fcb1e2e4f7e34", "score": "0.57907516", "text": "function ________utils___________(){}", "title": "" }, { "docid": "a9e876c85e38882c5a3514c2eca20d6c", "score": "0.5785335", "text": "final private function __construct() {}", "title": "" }, { "docid": "a9e876c85e38882c5a3514c2eca20d6c", "score": "0.5785335", "text": "final private function __construct() {}", "title": "" }, { "docid": "a9e876c85e38882c5a3514c2eca20d6c", "score": "0.5785335", "text": "final private function __construct() {}", "title": "" }, { "docid": "d7015ee715630a1ee9faa153c5e56517", "score": "0.57726306", "text": "public function fornecedor();", "title": "" }, { "docid": "29192e65fa895c0fa4c5260b1e9b51ac", "score": "0.5691012", "text": "function __toString() { return __CLASS__; }", "title": "" }, { "docid": "d2a2559d57786190420dfaacce3b8322", "score": "0.5667056", "text": "abstract protected function _getCacheInstance();", "title": "" }, { "docid": "e802366590f1cbe09fd8090ae3d33e58", "score": "0.5658643", "text": "abstract public function get();", "title": "" }, { "docid": "e802366590f1cbe09fd8090ae3d33e58", "score": "0.5658643", "text": "abstract public function get();", "title": "" }, { "docid": "e802366590f1cbe09fd8090ae3d33e58", "score": "0.5658643", "text": "abstract public function get();", "title": "" }, { "docid": "e802366590f1cbe09fd8090ae3d33e58", "score": "0.5658643", "text": "abstract public function get();", "title": "" }, { "docid": "0e59379112512b1f4fc1b3ae6ccaa830", "score": "0.565602", "text": "private function __construct () {}", "title": "" }, { "docid": "bf576553ec72294462117443a185f534", "score": "0.5652234", "text": "protected function __construct(){}", "title": "" }, { "docid": "bf576553ec72294462117443a185f534", "score": "0.5652234", "text": "protected function __construct(){}", "title": "" }, { "docid": "bf576553ec72294462117443a185f534", "score": "0.5652234", "text": "protected function __construct(){}", "title": "" }, { "docid": "bf576553ec72294462117443a185f534", "score": "0.5652234", "text": "protected function __construct(){}", "title": "" }, { "docid": "234df910fd6d0625815224572994165c", "score": "0.5651178", "text": "protected function init(){\n\t\t// todo: extend constructor logic of abstract here, do not override the parent constructor\n }", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.5644734", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.5644734", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.5644734", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.5644734", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.5644734", "text": "protected function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.56445915", "text": "private function __construct() {}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5642748", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5642748", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5642748", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5642748", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5642748", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5642748", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5642748", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5642748", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5642748", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.5642748", "text": "private function __construct(){}", "title": "" }, { "docid": "ad54d4fe4c9eb964cf8cb0893646f101", "score": "0.5637655", "text": "abstract public static function baseclassName(): string;", "title": "" }, { "docid": "657640331a317074d299a61934e44e01", "score": "0.56349677", "text": "function __constructor(){\n parent::__constructor();\n }", "title": "" }, { "docid": "bf8b6b2eac30c1afd7ebe8a254f2bc09", "score": "0.5634498", "text": "private function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "bf8b6b2eac30c1afd7ebe8a254f2bc09", "score": "0.5634498", "text": "private function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "19104fe9d48758598f5ba27645597deb", "score": "0.56290954", "text": "abstract public function used();", "title": "" }, { "docid": "5f9f5fa3a014641feea554aa7442c551", "score": "0.56281114", "text": "protected function overrideSuper() {}", "title": "" }, { "docid": "fee2d8e4baff3427d3afaf74efd7a999", "score": "0.56262827", "text": "abstract protected function getClassName(): string;", "title": "" }, { "docid": "3f55fa0b6c0660cf026d5f3b012cb549", "score": "0.56186247", "text": "protected function __construct(){\n self::setGeneric();\n }", "title": "" }, { "docid": "2be480987f54f4187ce2b034bde9c5f6", "score": "0.5610428", "text": "private function __construct() {\t}", "title": "" }, { "docid": "9cb0a2cbf77751899ed5f2c029bc53f6", "score": "0.5598957", "text": "public function __toString() \n {\n return __CLASS__; \n }", "title": "" } ]
5cc83540b51ecc0bc01a65233c6aa6c5
Get user's email by login
[ { "docid": "344e73e054d1c0730420304bbdfacadb", "score": "0.7469268", "text": "public function getEmailByLogin($login) {\n $result = Db::queryOne('SELECT `email` FROM `users` WHERE `login` = ?', [$login]);\n\n return isset($result['email']) ? $result['email'] : $result;\n }", "title": "" } ]
[ { "docid": "e37caeef1b8364494933b081c251160d", "score": "0.76395637", "text": "protected function getUserEmail()\r\n {\r\n // TODO: this should probably be offloaded\r\n if (isset($_SESSION['user']['useremail'])) {\r\n return $_SESSION['user']['useremail'];\r\n }\r\n }", "title": "" }, { "docid": "d7e0b6ca93dd3263d651bfb5d6ebeb21", "score": "0.75962657", "text": "public function getUser($email);", "title": "" }, { "docid": "dc8add57acff49e09d6dc387ffdd26ba", "score": "0.75756484", "text": "public function getEmail();", "title": "" }, { "docid": "dc8add57acff49e09d6dc387ffdd26ba", "score": "0.75756484", "text": "public function getEmail();", "title": "" }, { "docid": "dc8add57acff49e09d6dc387ffdd26ba", "score": "0.75756484", "text": "public function getEmail();", "title": "" }, { "docid": "dc8add57acff49e09d6dc387ffdd26ba", "score": "0.75756484", "text": "public function getEmail();", "title": "" }, { "docid": "dc8add57acff49e09d6dc387ffdd26ba", "score": "0.75756484", "text": "public function getEmail();", "title": "" }, { "docid": "dc8add57acff49e09d6dc387ffdd26ba", "score": "0.75756484", "text": "public function getEmail();", "title": "" }, { "docid": "dc8add57acff49e09d6dc387ffdd26ba", "score": "0.75756484", "text": "public function getEmail();", "title": "" }, { "docid": "dc8add57acff49e09d6dc387ffdd26ba", "score": "0.75756484", "text": "public function getEmail();", "title": "" }, { "docid": "dc8add57acff49e09d6dc387ffdd26ba", "score": "0.75756484", "text": "public function getEmail();", "title": "" }, { "docid": "dc8add57acff49e09d6dc387ffdd26ba", "score": "0.75756484", "text": "public function getEmail();", "title": "" }, { "docid": "dc8add57acff49e09d6dc387ffdd26ba", "score": "0.75756484", "text": "public function getEmail();", "title": "" }, { "docid": "f1ce3303b9f1deba07176b7ecee616a6", "score": "0.7555388", "text": "public function getLogin()\n {\n return $this->email;\n }", "title": "" }, { "docid": "fa34cf1375a4d8443729c6c8a878f09c", "score": "0.75366515", "text": "public static function getEmail() {\n return $_SESSION['user']['email'];\n }", "title": "" }, { "docid": "cc5ad894c511a46bc61c39cfecfc89b9", "score": "0.74221545", "text": "function get_user_by_email($email)\n {\n }", "title": "" }, { "docid": "bb528c97af381c419104b906277ed12f", "score": "0.7386389", "text": "function getUserEmail(){\n\t//follow this example, add session variable to the sql select statement using a where clause\n\t$result = queryDB(\"Select * from user limit 1\");\n\t$row = mysql_fetch_array($result);\n\techo $row['email'];\n\treturn $row['email'];\n}", "title": "" }, { "docid": "917aed810d2666f871e4a2bc3a858de7", "score": "0.73307204", "text": "public function getEmail()\n {\n return isset($this->user['email']) ? $this->user['email'] : $this->user['id'].'@mail.com';\n }", "title": "" }, { "docid": "d4e4b8aec64c5a306b76a90df0c70a24", "score": "0.7329506", "text": "public function getEmail() {}", "title": "" }, { "docid": "d4e4b8aec64c5a306b76a90df0c70a24", "score": "0.7329506", "text": "public function getEmail() {}", "title": "" }, { "docid": "d4e4b8aec64c5a306b76a90df0c70a24", "score": "0.73290825", "text": "public function getEmail() {}", "title": "" }, { "docid": "d4e4b8aec64c5a306b76a90df0c70a24", "score": "0.73290825", "text": "public function getEmail() {}", "title": "" }, { "docid": "d4e4b8aec64c5a306b76a90df0c70a24", "score": "0.73290825", "text": "public function getEmail() {}", "title": "" }, { "docid": "948e324beec81a004c9e29e52e57cc3a", "score": "0.73091024", "text": "public function get_email()\n\t{\n\t\tif (empty($this->user))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn $this->user[static::_column('email')];\n\t}", "title": "" }, { "docid": "7ed5e6f6c130fd7816637c12dd08b7ee", "score": "0.729303", "text": "public function getUserByEmail($email);", "title": "" }, { "docid": "feb5d58e0a9510d36b9626df1a31019f", "score": "0.726644", "text": "public function getEmail() {\n return $this->get('email', 'user');\n }", "title": "" }, { "docid": "bc594e4316394d3199505688270f74f5", "score": "0.7262743", "text": "public function getUserByEmail()\n {\n $db = init_db();\n $req = $db->prepare(\"SELECT * FROM user WHERE email = ?\");\n $req->execute(array($this->getEmail()));\n $db = null;\n\n return $req->fetch();\n }", "title": "" }, { "docid": "2146565c067d4c2db5e1bcc723a08415", "score": "0.72307706", "text": "public function getUserEmail () {\n\t\treturn ($this->userEmail);\n\t}", "title": "" }, { "docid": "d79674270ebaf78816e2cd6ba61f64f7", "score": "0.7212797", "text": "public function getLogin()\n\t{\n\t\t$profile = $this->getProfile();\n \n if(null === $profile)\n {\n throw new Exception(\"User's profile is null.\");\n }\n \n return $profile->getEmail();\n }", "title": "" }, { "docid": "c6349103a626fb3f8e21624cad7d2203", "score": "0.7208512", "text": "public function getuserEmail()\n {\n return $this->userEmail;\n }", "title": "" }, { "docid": "c1dfdc75545cdd9e80fca87417bcdf6e", "score": "0.7201855", "text": "public function getAuthoremail() {}", "title": "" }, { "docid": "1691d720c0967c340d3e617efe11cbee", "score": "0.7191583", "text": "public function getEmail_user()\r\n {\r\n return $this->email_user;\r\n }", "title": "" }, { "docid": "5118d582b045ce48c82f9686caa5a92d", "score": "0.716885", "text": "public function getUserEmail()\n {\n return $this->user_email;\n }", "title": "" }, { "docid": "5118d582b045ce48c82f9686caa5a92d", "score": "0.716885", "text": "public function getUserEmail()\n {\n return $this->user_email;\n }", "title": "" }, { "docid": "f58092acbd37158390fadd2459436aa6", "score": "0.7159022", "text": "public function getUserEmail() {\n\t\treturn $this->userEmail;\n\t}", "title": "" }, { "docid": "f58092acbd37158390fadd2459436aa6", "score": "0.7159022", "text": "public function getUserEmail() {\n\t\treturn $this->userEmail;\n\t}", "title": "" }, { "docid": "1a203f5066bace9d4eecf9d3bfa27eef", "score": "0.7156629", "text": "public function getUserEmail() {\n\t\treturn ($this->userEmail);\n\t}", "title": "" }, { "docid": "2a33dbdef927979ecb45e8968168bbf5", "score": "0.7118911", "text": "public function getEmail()\n {\n // Look for value only if not already set\n if (!isset($this->email)) {\n $us = SemanticScuttle_Service_Factory::get('User');\n $user = $us->getUser($this->id);\n $this->email = $user['email'];\n }\n return $this->email;\n }", "title": "" }, { "docid": "cd30f3f15c271eebc68080989ba15bef", "score": "0.7089478", "text": "public function getCurrentUserEmail() {\n $userId = $this->getLoggedInUserId();\n return $this->makeCall($id, $this->base . 'api/public/current_user_email/' . $userId, false);\n }", "title": "" }, { "docid": "53afbbdd565ba95420ed0cc5d1043a60", "score": "0.70781183", "text": "private function emailAtLogin() {}", "title": "" }, { "docid": "f69fad4ba03e021cb6de6a9757cf5924", "score": "0.7072978", "text": "public function getUser()\n\t{\n\t\treturn $this->config('email');\n\t}", "title": "" }, { "docid": "dec485e434881acc19f4c5ec42c60297", "score": "0.7068889", "text": "public function getUserEmail()\n {\n return $this->getUserAttribute(static::ATTRIBUTE_EMAIL);\n }", "title": "" }, { "docid": "6c5fada313a6ea9b2374cba0dba8988f", "score": "0.70493025", "text": "function get_user_email(){\n\t$current_user = wp_get_current_user();\n\t$user_info = get_userdata($current_user->ID);\n\treturn $current_user->user_email;\n}", "title": "" }, { "docid": "dec285ade8bb33e2374a739b9c05167c", "score": "0.7048144", "text": "protected function loginUsername()\n {\n return 'email';\n }", "title": "" }, { "docid": "af4ade5387c45ae8574408fb98ed24a0", "score": "0.704213", "text": "public function getEmail() {\r\n\t\t\t$email = null;\r\n\t\t\tif( $user != null ) {\r\n\t\t\t\t$email = $user->getEmail();\r\n\t\t\t}\r\n\t\t\treturn $email;\r\n\t\t}", "title": "" }, { "docid": "0589527e9236c9a33f85357989bf9331", "score": "0.7026179", "text": "public function getUsuarioPorEmail(){\n\n\t\t$query = \"select nome, email from usuarios where email = :email\";\n\t\t$stmt = $this->db->prepare($query);\n\t\t$stmt->bindValue(':email', $this->__get('email'));\n\t\t$stmt->execute();\n\n\t\treturn $stmt->fetchAll(\\PDO::FETCH_ASSOC);\n\t}", "title": "" }, { "docid": "989ad71920ad90ef444de8ca1dd4d0fd", "score": "0.7023476", "text": "public function get_user_by_email($arg){\n\n return $this->db->query(\"SELECT * FROM admins WHERE email= ?\", $arg)->row_array();\n \n }", "title": "" }, { "docid": "8dabb1ac5cbb2bb8ee322cf1015fb0a6", "score": "0.69858825", "text": "function get_email_of_user($userName){\r\n global $pdo;\r\n $select = $pdo->prepare(\"SELECT id,email FROM users \r\n WHERE username = ?\");\r\n $select->execute(array($userName));\r\n\t\treturn $select->fetchAll(PDO::FETCH_ASSOC);\r\n }", "title": "" }, { "docid": "6f9310ebe49925811f4e0b1522a1ff33", "score": "0.698581", "text": "public function get_user_email() { \n return $this->session->userdata('user_email');\n }", "title": "" }, { "docid": "bee232d01244f7e3e57f3616be19a54e", "score": "0.69805896", "text": "public function loginUsername()\n {\n return 'email';\n }", "title": "" }, { "docid": "bffbed8b0b5214c759589fa6e85a790e", "score": "0.6975877", "text": "public function getUserByLogin($email, $pass) {\n\t\t\n\t}", "title": "" }, { "docid": "f3fc9244f1f7e891c7bd948844d93e8e", "score": "0.6965729", "text": "public function getCustomerEmail();", "title": "" }, { "docid": "f3fc9244f1f7e891c7bd948844d93e8e", "score": "0.6965729", "text": "public function getCustomerEmail();", "title": "" }, { "docid": "f3fc9244f1f7e891c7bd948844d93e8e", "score": "0.6965729", "text": "public function getCustomerEmail();", "title": "" }, { "docid": "c9061bc7b40513437e83a8562cfdd42e", "score": "0.69645226", "text": "public function getUserByEmail($email){\n \n if (filter_var($email, FILTER_VALIDATE_EMAIL)){\n \n $sql = new Sql();\n $res = $sql->select('SELECT * FROM usuarios \n WHERE email_usuario = :email_usuario',array(\n ':email_usuario'=>$email));\n \n if($res==false || count($res)==0){\n return 0;//caso NADA ENCONTRADO\n }else{\n return $res[0];//retorna array associativo com dados do usuario\n }\n\n }else{\n return false;//RETORNA FALSO (EMAIL INVÁLIDO)\n }\n \n }", "title": "" }, { "docid": "6863c6d26d3747760ccc6fd18a8475e0", "score": "0.6958523", "text": "public function getUserEmail($userid)\n {\n $user = R::findOne('user', 'id = ?', [$userid]);\n return $user->email;\n }", "title": "" }, { "docid": "6deca95d0ba6e68067735597021acbe7", "score": "0.6931955", "text": "public function getEmail(): string;", "title": "" }, { "docid": "6deca95d0ba6e68067735597021acbe7", "score": "0.6931955", "text": "public function getEmail(): string;", "title": "" }, { "docid": "6deca95d0ba6e68067735597021acbe7", "score": "0.6931955", "text": "public function getEmail(): string;", "title": "" }, { "docid": "8b168368957c9d0016e5ba96ca8f23b6", "score": "0.69209826", "text": "public function getUsuarioPorEmail() {\n $query = \"select nome,email from usuarios where email = :email\";\n $stmt = $this->db->prepare($query);\n $stmt->bindValue(':email',$this->__get('email'));\n $stmt->execute();\n\n return $stmt->fetchAll(\\PDO::FETCH_ASSOC);\n }", "title": "" }, { "docid": "da3c9365766beceaaba8758987e152ac", "score": "0.68883836", "text": "function getuser($email)\n\t\t{\n\t\t\t$email = \"'\".$email.\"'\";\n\t\t\t$sql = $this->conn_id->query(\"select * from users where email = \".$email );\n\t\t\t$r = $sql->fetchALL(PDO::FETCH_ASSOC);\n\t\t\treturn $r;\n\t\t}", "title": "" }, { "docid": "80783c86a3f46c46f948b8776a75def9", "score": "0.68806016", "text": "function GetUserEmail(){\n $q=\"SELECT `email` FROM `\".TblModUser.\"` WHERE `sys_user_id`='\".$this->user_id.\"'\";\n //echo $q;\n $this->db->db_Query($q);\n $user=$this->db->db_FetchAssoc();\n return $user['email'];\n }", "title": "" }, { "docid": "4d23fb149af1c0630d93e64846bc9680", "score": "0.687674", "text": "public function getEmail()\n {\n return $this->getParameter('email');\n }", "title": "" }, { "docid": "4d23fb149af1c0630d93e64846bc9680", "score": "0.687674", "text": "public function getEmail()\n {\n return $this->getParameter('email');\n }", "title": "" }, { "docid": "4d23fb149af1c0630d93e64846bc9680", "score": "0.687674", "text": "public function getEmail()\n {\n return $this->getParameter('email');\n }", "title": "" }, { "docid": "4d23fb149af1c0630d93e64846bc9680", "score": "0.687674", "text": "public function getEmail()\n {\n return $this->getParameter('email');\n }", "title": "" }, { "docid": "4d23fb149af1c0630d93e64846bc9680", "score": "0.687674", "text": "public function getEmail()\n {\n return $this->getParameter('email');\n }", "title": "" }, { "docid": "48b99806d453858ed6eddc7b8cab3061", "score": "0.6868246", "text": "public function getEmail()\n {\n return $this->get(self::EMAIL);\n }", "title": "" }, { "docid": "f96e983f5ed4633c7930ef7c94eeb7da", "score": "0.6868131", "text": "public function getEmailAddress()\n {\n $credential = $this->getCredentialObject();\n if($credential->isOAuthRequest())\n return $credential->getEmailFromOAuth();\n else\n return $this->session->get('email');\n }", "title": "" }, { "docid": "468494ee8228ccc1c81cf7b451b1f711", "score": "0.68622327", "text": "public function get_user_email($id) {\n $users = TableRegistry::get('Administrator.Users');\n\n if(isset($id) && !empty($id)) {\n $user = $users->get($id);\n if(!empty($user->email)) {\n return $user->email;\n } else {\n return NULL;\n }\n } else {\n return NULL;\n }\n\n }", "title": "" }, { "docid": "f6eadd887e53d319c2bf36701119c1a9", "score": "0.6857258", "text": "public function getEmailAddress()\n {\n return $this->_getVar('user_email');\n }", "title": "" }, { "docid": "e31bee70fb6b68a66d30054acb2ffc73", "score": "0.6829644", "text": "function get_user_id_from_string($email_or_login)\n {\n }", "title": "" }, { "docid": "abeb5418888f2af8a2daec5cfce13704", "score": "0.6824079", "text": "function get_profile_email($email){\r\n\t\r\n}", "title": "" }, { "docid": "a2b78428f399de5e012033864709ab82", "score": "0.68126214", "text": "function getUserNameFromEmail( $email ) {\n $d = loadDB();\n\n foreach ( $d[\"users\"] as $key => $value ) {\n if ($value[\"email\"] == $email) {\n return $value[\"name\"];\n }\n }\n return \"unknown\";\n }", "title": "" }, { "docid": "a1083a5fabdd2c76bb748285f1faedbe", "score": "0.68087965", "text": "public function diviroids_user_email($atts)\n {\n return DiviRoids_Security::get_current_user('user_email');\n }", "title": "" }, { "docid": "aa2095242c8606cf7132cc577125109f", "score": "0.68019533", "text": "function get_username_by_email($h, $email){\n \n $sql = \"SELECT user_username FROM \" . TABLE_USERS . \" WHERE user_email=%s LIMIT 1\";\n $query = $h->db->prepare($sql, $email);\n \n\treturn $username= $h->db->get_var($query);\n }", "title": "" }, { "docid": "6ca1dda559d8de6d7df674d8e3931a6b", "score": "0.67988855", "text": "function getEmail() {\n\t\treturn $this->getData('email');\n\t}", "title": "" }, { "docid": "696791a658bac70b9ebd861be1bae8d0", "score": "0.6794072", "text": "public function getEmail()\n {\n return $this->getParam(self::EMAIL);\n }", "title": "" }, { "docid": "abe0874ac35de0fbeb31cdb4d8985b85", "score": "0.6791637", "text": "public function getUsername(): string\n {\n return $this->getEmail();\n }", "title": "" }, { "docid": "2ebf6a66fa51545d2c69ccf63e0defe6", "score": "0.67895705", "text": "public function user()\n\t{\n\t\treturn $this->config('email');\n\t}", "title": "" }, { "docid": "77519ca8a363159d70026bfa964b3718", "score": "0.6785974", "text": "public function fetchUserByEmail($email);", "title": "" }, { "docid": "fa43d4346dd77d75de9ebf8699545e78", "score": "0.6785535", "text": "public function getUserByEmail($email) {\n //create user query by email\n $user_query_by_email = Doctrine_Query::create()\n ->select('sgu.id')\n ->from('sfGuardUser sgu')\n ->where('sgu.email_address =?', $email);\n return $user_query_by_email->fetchOne();\n }", "title": "" }, { "docid": "349d591f8caf4a1bf8812168325b61fe", "score": "0.67766565", "text": "public function getUsername(): string\n {\n return $this->email;\n }", "title": "" }, { "docid": "349d591f8caf4a1bf8812168325b61fe", "score": "0.67766565", "text": "public function getUsername(): string\n {\n return $this->email;\n }", "title": "" }, { "docid": "56fde19331d8e492a9fc6710d15b8585", "score": "0.6763456", "text": "public function getUsername()\n {\n return $this->getEmail();\n }", "title": "" }, { "docid": "56fde19331d8e492a9fc6710d15b8585", "score": "0.6763456", "text": "public function getUsername()\n {\n return $this->getEmail();\n }", "title": "" }, { "docid": "56fde19331d8e492a9fc6710d15b8585", "score": "0.6763456", "text": "public function getUsername()\n {\n return $this->getEmail();\n }", "title": "" }, { "docid": "93e7f1c0508f0506ee5a7c2c97ac779f", "score": "0.67509854", "text": "public function getEmail() {\n return $this->getValue('email');\n }", "title": "" }, { "docid": "fb726954cdc74b6864a15664ac10c099", "score": "0.674644", "text": "function getUserEmail($username){\r\n\t\t$table='users';\r\n\t\t$query=\"SELECT Email FROM $table WHERE `ID` = '$username'\";\r\n\t\t$result = mysql_query($query);\r\n\t\t$Email=mysql_fetch_array($result);\r\n\t\t$Email=$Email['Email'];\r\n\t\treturn $Email;\r\n\t}", "title": "" }, { "docid": "441927fc2eaaab194b379e553fc04fa4", "score": "0.67290866", "text": "public function getUserByEmail($email=NULL)\n\t{\n\t\t$result = Yii::app()->db->createCommand()\n \t->select('*')\n \t->from($this->tableName())\n \t \t->where('loginId=:loginId', array(':loginId'=>$email))\t\n \t \t->queryRow();\n\t\t\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "ae137c43b4cbae23db78ef4652bdff88", "score": "0.6728052", "text": "function getUserEmail($id) {\n $this->db->select(\"email\");\n $this->db->where(\"userID\", $id);\n $query = $this->db->get('user');\n if ($query->num_rows() > 0) {\n foreach ($query->result() as $rows) {\n $email = $rows->email;\n return $email;\n }\n }\n }", "title": "" }, { "docid": "7edd0eae724f94ebce7ef4367811a5d1", "score": "0.67241716", "text": "public function sGetUserMailById()\n {\n return $this->db->fetchOne(\n 'SELECT email FROM s_user WHERE id = ?',\n [$this->session->offsetGet('sUserId')]\n ) ?: null;\n }", "title": "" }, { "docid": "6a49acd8ca79d858edf551959c6ef3e3", "score": "0.6723879", "text": "public static function getEmail(): ?string\n {\n if (Self::checkIsLogged()) {\n if (!isset($auth)) {\n $auth = new Auth(DbManager::openDB(), null, null, false);\n }\n\n return $auth->getEmail();\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "caed3d39b736f93502492767eaf02868", "score": "0.6717678", "text": "function getUserByEmail($userEmail){\n\n\t\tglobal $conn;\n\n\t\t$query = \"SELECT firstname, lastname, email, phone FROM User WHERE email='\" . $userEmail . \"'\";\n\n\t\t$result = $conn->query($query);\n\n\t\tif($result->num_rows != 1){\n\t\t\treturn \"NO_USER_BY_EMAIL\";\n\t\t}else{\n\t\t\treturn $result->fetch_assoc();\n\t\t}\n\t}", "title": "" }, { "docid": "0dc2d1d147c9e59e923905b8fe30d8f2", "score": "0.67154527", "text": "public function getUsername()\n {\n return $this->email;\n }", "title": "" }, { "docid": "0dc2d1d147c9e59e923905b8fe30d8f2", "score": "0.67154527", "text": "public function getUsername()\n {\n return $this->email;\n }", "title": "" }, { "docid": "0dc2d1d147c9e59e923905b8fe30d8f2", "score": "0.67154527", "text": "public function getUsername()\n {\n return $this->email;\n }", "title": "" }, { "docid": "0dc2d1d147c9e59e923905b8fe30d8f2", "score": "0.67154527", "text": "public function getUsername()\n {\n return $this->email;\n }", "title": "" }, { "docid": "0dc2d1d147c9e59e923905b8fe30d8f2", "score": "0.67154527", "text": "public function getUsername()\n {\n return $this->email;\n }", "title": "" }, { "docid": "0dc2d1d147c9e59e923905b8fe30d8f2", "score": "0.67154527", "text": "public function getUsername()\n {\n return $this->email;\n }", "title": "" } ]
a044f85410d2412af610fa30654304c4
Shortcut to get boolean option
[ { "docid": "b75b546e5f37f7743797da8126a598f8", "score": "0.6899874", "text": "public function getBoolean( $key, $default = false ) {\n\t\treturn OptionParser::getBoolean( $key, $default );\n\t}", "title": "" } ]
[ { "docid": "5ff1fe2cf96d46bf84233264acba60c7", "score": "0.759071", "text": "public function getBoolean(): string;", "title": "" }, { "docid": "87328a56f21eef21ef43f4a150aef9a2", "score": "0.69185215", "text": "public function getBoolValue()\n {\n return isset($this->bool_value) ? $this->bool_value : false;\n }", "title": "" }, { "docid": "9a2ead02bc357bae8eb3b777c7d4152a", "score": "0.6815655", "text": "public function getBoolean( $attr );", "title": "" }, { "docid": "9cec5e7b2132710d56b9d11ad5c108c0", "score": "0.6789753", "text": "public static function hasOptions(): bool;", "title": "" }, { "docid": "871f0ea1d7e3d665088b868eced739df", "score": "0.675133", "text": "function java_config_flag($field) {\n $val = java_config($field);\n return (bool) $val;\n}", "title": "" }, { "docid": "59a646d354c3549050175d2f1c4b0a49", "score": "0.6730914", "text": "function getoption($name, $slashes = FALSE)\n {\n if (isset($this->opts[$name]))\n {\n if (is_bool($this->opts[$name]))\n return TRUE;\n \n return $slashes ? addslashes($this->opts[$name]) : $this->opts[$name];\n }\n \n return FALSE;\n }", "title": "" }, { "docid": "52a3e10b09c9185570a461ced4a68904", "score": "0.6706804", "text": "function config_boolean_field($name, $label, $value)\n {\n config_boolean_select($name,$label,$value,array('False','True'));\n }", "title": "" }, { "docid": "ec9e2fa9c065ca33af2e43429834ea5f", "score": "0.66873014", "text": "public function getBoolField()\n {\n return $this->get(self::BOOL_FIELD);\n }", "title": "" }, { "docid": "2fa50dc7f74d4f3d8a897e2f260d9b22", "score": "0.66808975", "text": "public function get_value() {\n\t\treturn $this->value === true || strtolower($this->value) === 'true' || strtolower($this->value) === \"t\" || $this->value === \"1\" || $this->value === 1;\n\t}", "title": "" }, { "docid": "8d02a54cf4ff36377305c7abea6145ed", "score": "0.66806066", "text": "public static function boolean() {\n\t\treturn Type::boolean();\n\t}", "title": "" }, { "docid": "3fc5a9e308d957f6e1db8a6e6bb42b5f", "score": "0.6644243", "text": "public function testParsingBoolean()\n {\n $this->assertSame(true, $this->config_file->getOption('THIS_IS_TRUE'));\n $this->assertSame(false, $this->config_file->getOption('THIS_IS_FALSE'));\n }", "title": "" }, { "docid": "ac9d4484118d742855aa0cea895c313b", "score": "0.6639129", "text": "public function asBool()\n\t{\n\t\treturn $this->returnValueAsType(\"boolean\");\n\t}", "title": "" }, { "docid": "eabb3d18149f7f23663056f94c7e63e9", "score": "0.65874004", "text": "public function getPBool()\n {\n return isset($this->p_bool) ? $this->p_bool : false;\n }", "title": "" }, { "docid": "b768a20015de23f2bfd44f514cf239e4", "score": "0.65743893", "text": "public function getValueBoolean()\n {\n return $this->valueBoolean;\n }", "title": "" }, { "docid": "b768a20015de23f2bfd44f514cf239e4", "score": "0.65743893", "text": "public function getValueBoolean()\n {\n return $this->valueBoolean;\n }", "title": "" }, { "docid": "5a5c2c046e72d26624caf5c549042638", "score": "0.6573121", "text": "public function getBoolField()\n {\n return $this->bool_field;\n }", "title": "" }, { "docid": "eece8ba0c356ca18241d1a67b679cb35", "score": "0.6528068", "text": "public static function boolean()\n {\n return Type::boolean();\n }", "title": "" }, { "docid": "eece8ba0c356ca18241d1a67b679cb35", "score": "0.6528068", "text": "public static function boolean()\n {\n return Type::boolean();\n }", "title": "" }, { "docid": "accd86ea2efef74b64901f7d4edfc073", "score": "0.64866364", "text": "public function show($bool = null)\n {\n if ($bool !== null)\n {\n $this->_show = (bool) $bool;\n }\n\n return $this->_show;\n }", "title": "" }, { "docid": "f7d79988960d68c4c008ad095bad2672", "score": "0.645598", "text": "abstract public static function get_option();", "title": "" }, { "docid": "61a06e7e34778a4757fe55c3606fe68d", "score": "0.64246005", "text": "public function check_option($name) {\n if (isset($this->options[$name]) && $this->options[$name] == 'on')\n return true;\n\n return false;\n }", "title": "" }, { "docid": "19441acd7b9b9f5b8008fc8632df840a", "score": "0.6419117", "text": "public function getBool($key, $options = null) {\n Assert::string($key, '$key');\n $notFound = false;\n $value = $this->getProperty($key, $notFound);\n\n if ($notFound) {\n if (is_bool($options))\n return $options;\n if (is_array($options) && \\key_exists('default', $options))\n return (bool) $options['default'];\n throw new RuntimeException('No configuration found for key \"'.$key.'\"');\n }\n\n $flags = 0;\n if (is_int($options)) {\n $flags = $options;\n }\n else if (is_array($options) && \\key_exists('flags', $options)) {\n Assert::int($options['flags'], 'option \"flags\"');\n $flags = $options['flags'];\n }\n if ($flags & FILTER_NULL_ON_FAILURE && ($value===null || $value==='')) // crap-PHP considers NULL and '' as valid strict booleans\n return null;\n return filter_var($value, FILTER_VALIDATE_BOOLEAN, $flags);\n }", "title": "" }, { "docid": "35ed91bed38a36f9cae41050afa137c7", "score": "0.6411573", "text": "function discernBoolean($str) {\n \t\t# TODO: replace with boolean interpretation based on ConfigItem properties\n \t\tif ($str == \"yes\" or $str == \"on\") return true;\n \t\telse if ($str == \"no\" or $str == \"off\") return false;\n \t\telse return NULL;\n }", "title": "" }, { "docid": "ec0c45bb4839dbcb57e0c3e608023ec3", "score": "0.6410957", "text": "public function getOption($option) {\n if (array_key_exists($option, $this->options)) {\n return $this->options[$option];\n }\n return false;\n }", "title": "" }, { "docid": "bee103f476e60bc7f6174026d909fa7f", "score": "0.63900363", "text": "function kickpress_boolean( $value = null, $default = false ) {\n\t// ensure that the default is a boolean value\n\tif ( ! is_bool( $default ) )\n\t\t$default = kickpress_boolean( $default );\n\n\tif ( is_null( $value ) ) {\n\t\treturn $default;\n\t} elseif ( is_string( $value ) ) {\n\t\t$true_strings = array( 'true', 'enable' );\n\t\t$false_strings = array( 'false', 'disable' );\n\n\t\t$lower_value = strtolower( $value );\n\n\t\tif ( in_array( $lower_value, $true_strings ) )\n\t\t\treturn true;\n\t\telseif ( in_array( $lower_value, $false_strings ) )\n\t\t\treturn false;\n\n\t\treturn (bool) trim( $value );\n\t} elseif ( is_scalar( $value ) ) {\n\t\treturn (bool) $value;\n\t}\n\n\treturn $default;\n}", "title": "" }, { "docid": "01ace3512b19d64814c16a1f83316a2a", "score": "0.63768005", "text": "public function isBool();", "title": "" }, { "docid": "098697eb6cd3190b8815be983334ae84", "score": "0.6361176", "text": "function paramBoolVal($paramName) {\n\t$retBoolean = 0;\n\tif (strtolower(getParamVal($paramName)) == 'true') {\n\t\t$retBoolean = 1;\n\t}\n\treturn $retBoolean;\n}", "title": "" }, { "docid": "8429bd6217ad6a50efa2e1e47a3217d5", "score": "0.6358625", "text": "function affBool($b){\n if ($b) return 'oui';\n return 'non';\n}", "title": "" }, { "docid": "7b604e31aa0858b9c675673fed04af71", "score": "0.63500977", "text": "function getFlag()\n\t{\n\t\tif( $flag )\n\t\t{\n\t\t\t$flag=false;\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": "956020e767c23f4832c19996023fb56a", "score": "0.63280827", "text": "public function hasOptions();", "title": "" }, { "docid": "956020e767c23f4832c19996023fb56a", "score": "0.63280827", "text": "public function hasOptions();", "title": "" }, { "docid": "45a35433153f82d65c569d5d8d208e76", "score": "0.6287508", "text": "public function getBoolean($path, $default = FALSE)\n\t{\n\t\t$value = $this->get($path, $default);\n\n\t\tif (is_bool($value))\n\t\t{\n\t\t\treturn $value;\n\t\t}\n\n\t\tswitch(strtolower($value))\n\t\t{\n\t\t\tcase 'yes':\n\t\t\tcase 'y':\n\t\t\tcase 'on':\n\t\t\t\treturn TRUE;\n\t\t\tbreak;\n\n\t\t\tcase 'no':\n\t\t\tcase 'n':\n\t\t\tcase 'off':\n\t\t\t\treturn FALSE;\n\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\treturn NULL;\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "acd4b52300f249e1b45e3390f0febabe", "score": "0.6271386", "text": "public function get_setting() {\n return true;\n }", "title": "" }, { "docid": "4ed303b1d213d827b99fccc3e40b73f8", "score": "0.6271019", "text": "public function getOptBool(string $key, ?bool $default = null): ?bool\n {\n $value = $this->config->get($key, $default);\n try\n {\n return Cast::toOptBool($value);\n }\n catch (InvalidCastException $exception)\n {\n throw self::createException($key, 'boolean', $value);\n }\n }", "title": "" }, { "docid": "9a152a986909f4841c363e66a5a13693", "score": "0.626256", "text": "abstract protected function getHasOptionLabel(): string;", "title": "" }, { "docid": "614ccfb3512edc3f2bbb1d1e958f066c", "score": "0.6242778", "text": "public function isDefaulted($option);", "title": "" }, { "docid": "6fa4cf3a31167df019ed57c47d8c3682", "score": "0.62395704", "text": "private function get_true_options( $name = false ) {\n\t\t\n\t\tglobal $wpdb;\n\t\t\n\t\t$options = '';\n\t\t\t\t\t\t\n\t\t$result = $wpdb->get_results( \"SELECT option_value FROM {$wpdb->options} WHERE option_name = '\" . POF . $this->prefix . \"'\" );\n\t\t\n\t\tif ( $result ) {\n\t\t\n\t\t\t$options = $result[0]->option_value;\n\t\t\n\t\t}\n\n\t\t$options = unserialize( $options );\n\t\t\n\t\tif ( ! $name ) return $options;\n\t\t\n\t\tif ( isset( $options[$name] ) ) return $options[$name];\n\t\t\n\t\treturn null;\n\t}", "title": "" }, { "docid": "df8958777919e5a718235074980bf3b5", "score": "0.6236159", "text": "function boolval($boolean)\n {\n /**\n * Proxy call to boolval_emulation()\n */\n return boolval_emulation($boolean);\n }", "title": "" }, { "docid": "adabf615ae225d7517a8fbc887e5b09d", "score": "0.623238", "text": "function get_boolean_prefs($label) {\n\n \t\t//if (!isset($_COOKIE[$label])) return NULL;\n\n \t\tif ($_COOKIE[$label] !== FALSE) {\n\n \t\t\t$selected_pref = $_COOKIE[$label];\n\n \t\t\tif ($selected_pref === '0') return FALSE;\n \t\t\telseif ($selected_pref === '1') return TRUE;\n\n \t\t} else return FALSE;\n\n \t}", "title": "" }, { "docid": "079424f7101657fab4289ab56b750c00", "score": "0.6228841", "text": "public function GetOption($name)\n {\n if(isset($this->options[$name]))\n return $this->options[$name];\n\n return false;\n }", "title": "" }, { "docid": "9a4792fda67a7d03e0e5b89c91855afc", "score": "0.6186533", "text": "public function value(): Bool\n {\n return $this->value;\n }", "title": "" }, { "docid": "96a62bbce94f290c0f5ffc6b32a7c282", "score": "0.61846167", "text": "function yesNoBOOL($val = false, $get='string', $yes ='Yes', $no='No' )\n\t{\n\t\tif($get=='string')\n\t\t{\n\t\t\treturn ($val)? $yes : $no ;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn ( strtolower($val) == 'yes' )? true : false ;\n\t\t}\n\t\treturn 'no';\n\t}", "title": "" }, { "docid": "153e5331784b517ebcd3df6524d1d0c4", "score": "0.61834687", "text": "public function getOption()\n {\n return $this->option;\n }", "title": "" }, { "docid": "0a1c6dc661979208061c2275138a3a33", "score": "0.61764264", "text": "public function getName()\n {\n return 'bool';\n }", "title": "" }, { "docid": "291deb37fc9fd9233f7d2979ee30cba0", "score": "0.61695504", "text": "public function options_status(){\r\n\t\treturn array('0' => 'No', '1' => 'Yes');\r\n\t}", "title": "" }, { "docid": "5de9ba038c4d38462ca023b1a33fe125", "score": "0.61690354", "text": "public function toBoolean()\n {\n return NBool::get($this->bool());\n }", "title": "" }, { "docid": "68489a24dfe74b98b152fb5bf638c69a", "score": "0.61688817", "text": "public static function has_option($option_name);", "title": "" }, { "docid": "dc39586393398453489baaa526a5e6ab", "score": "0.6159991", "text": "public function flag()\n\t{\n\t\treturn $this->flag;\n\t}", "title": "" }, { "docid": "e002a0ddbe36bffc076b846a6815e734", "score": "0.6158537", "text": "public function getSetting() : bool\n {\n return $this->setting;\n }", "title": "" }, { "docid": "3d901e1d475a23d281ca2c7b33db9d95", "score": "0.6144467", "text": "function show_boolean_options($current)\n{\n $options = ['any', 'all', 'raw'];\n foreach ($options as $val => $type) {\n echo '<input type=\"radio\" id=\"boolean' . $val . '\" name=\"boolean\" value=\"', $val, '\"';\n if ($val === $current) {\n echo ' checked=\"checked\"';\n }\n echo '><label for=\"boolean' . $val . '\">'.$type.'</label>';\n }\n}", "title": "" }, { "docid": "177686fa3a84cf353fd9c2c293ab0594", "score": "0.61362296", "text": "public function get_opt()\n {\n return $this->_opt;\n }", "title": "" }, { "docid": "b090987844a4951764628427fc20e5c4", "score": "0.6132815", "text": "function getBoolean( $in=null, $default=false ) // {{{\n{\n // Analyze $in and return Boolean value.\n // Return $default if no pattern match\n\n if( is_bool( $in ) ) return $in;\t\t\t\t\t\t\t\t// if it's already a boolean value\n if( is_null( $in ) || strlen( $in ) == 0 ) return $default;\t\t// if null or empty string, return default\n\n $in = strtoupper( $in );\n $c = substr( $in, 0, 1 );\n\n# \tlogger( __FUNCTION__ . \"(): in=$in\" );\n\n if( $in == \"ON\" ) return true;\n if( $c == 'T' ) return true;\n if( $c == 'Y' ) return true;\n if( $in == 'CHECKED' ) return true;\n\n if( $in == \"OFF\" ) return false;\n if( $c == 'F' ) return false;\n if( $c == 'N' ) return false;\n\n //if( $in == \"\" ) return false;\t\t\t\t\t\t// empty string == false\t\t(now handled above)\n if( strlen( $in > 0 ) ) return true;\t\t\t\t// non-empty string == true\n\n return $default;\t\t\t\t\t\t\t\t\t// null ==> default\n}", "title": "" }, { "docid": "1192c99766fdb0ae9e658e50f691a961", "score": "0.6120903", "text": "private function getAutoloadOptions()\n\t{\n\t\t$options = $this->timber->option_model->getOptions('on');\n\t\tif( !(is_array($options)) || !(count($options) > 0) ){\n\t\t\treturn false;\n\t\t}\n\t\tforeach ($options as $key => $option) {\n\t\t\t$this->timber->config($option['op_key'], $option['op_value']);\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "5aa91f7940cca52d3e4b6a731bbd2995", "score": "0.6111562", "text": "function pods_doing_shortcode( $bool = null ) {\n\tstatic $check = false;\n\tif ( null !== $bool ) {\n\t\t$check = (bool) $bool;\n\t}\n\treturn $check;\n}", "title": "" }, { "docid": "815d0a3a70170b2b1c63664e3be21a3c", "score": "0.6104744", "text": "abstract protected function getHasOptionFunctionName(): string;", "title": "" }, { "docid": "eab9382ca794786d32e3987d0dabf718", "score": "0.61020607", "text": "public function getDefault(): bool;", "title": "" }, { "docid": "2561ee68ce518478d122f53ec2ad0f97", "score": "0.61011755", "text": "public function bool(){\n $this->clean();\n $type = VarLoader::env('DB_TYPE');\n if(strtolower($type) == 'sqlite')\n array_push($this->options, 'INT(1)');\n else if(strtolower($type) == 'mysql')\n array_push($this->options, 'TINYINT');\n $this->PHP_type = \"bool\";\n return $this;\n }", "title": "" }, { "docid": "09917db9c508ce12445b12314e15cbe0", "score": "0.6065037", "text": "public function getBoolValue()\n {\n return $this->readOneof(2);\n }", "title": "" }, { "docid": "c3e8edad98af98e800c5d5612feb2b2b", "score": "0.6064253", "text": "public function getIniBoolean($key)\n {\n return (bool)(filter_var($this->getIni($key), FILTER_VALIDATE_BOOLEAN));\n }", "title": "" }, { "docid": "e8924929052ea21adc9a4da598819d10", "score": "0.60567695", "text": "public function getOption($option) {}", "title": "" }, { "docid": "a85092faef1b5f43ac552b3755cb36cc", "score": "0.6055582", "text": "function parseBool($value){\r\nreturn filter_var($value, FILTER_VALIDATE_BOOLEAN);\r\n}", "title": "" }, { "docid": "0b6c0b6b1e06a4dc9e9c5f7c339ed3c2", "score": "0.6054175", "text": "abstract protected function getHasOptionFieldName(): string;", "title": "" }, { "docid": "8d1a7fff61959d30c9cd3395be1fb5e4", "score": "0.6049429", "text": "function mytheme_option( $option ) {\n\t\t$options = get_option( 'gisig_Lesson_inspiration-setting_a' );\n\t\tif ( isset( $options[$option] ) )\n\t\t\treturn $options[$option];\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "ca10a7fb9096364f0e82e970cc72ee53", "score": "0.6049417", "text": "public function getOption() {\n return $this->option;\n }", "title": "" }, { "docid": "7ea7da9c57d3727316b961d8e5ff0496", "score": "0.604728", "text": "function db2_get_option($resource, string $option): string|false {}", "title": "" }, { "docid": "8ce07ff447022ff83c797c9696cc1db1", "score": "0.6044043", "text": "function isOptions()\r\n {\r\n\r\n }", "title": "" }, { "docid": "2c06fc5469f331fee4731d2568fc914d", "score": "0.6040567", "text": "public function getOption()\n {\n return $this->$option;\n }", "title": "" }, { "docid": "485555d584f9604433c0a636a75fbe64", "score": "0.6036163", "text": "public function getFlag()\n\t{\n\t\treturn $this->flag;\n\t}", "title": "" }, { "docid": "520f0edae93862c200acc62ae1e8cc2f", "score": "0.60330945", "text": "public function getFlag() {\n return $this->flag;\n }", "title": "" }, { "docid": "1f4b8cd206cba33bcd30698fd56e9df3", "score": "0.60261697", "text": "public function getBool(string $key, bool $default = false): bool\n\t{\n\t\treturn filter_var($this->get($key, $default), FILTER_VALIDATE_BOOLEAN);\n\t}", "title": "" }, { "docid": "6689e2b87c224155844dd587d4bec990", "score": "0.6019532", "text": "public function toBoolean()\n {\n return filter_var($this->value, FILTER_VALIDATE_BOOLEAN);\n }", "title": "" }, { "docid": "dd7127dc70e8ff7290d1840bd8b9eafb", "score": "0.6003145", "text": "protected function get_type() {\n\t\treturn 'boolean';\n\t}", "title": "" }, { "docid": "90cfe65b9ca1275e1398aff69ee44f06", "score": "0.6000396", "text": "public function getIsSelected()\n {\n return $this->is_selected;\n }", "title": "" }, { "docid": "7897e47251b9504d57f4e986e0b2d377", "score": "0.5998672", "text": "public function describeBoolOption(string $name, string $description): BoolOptionBuilderInterface;", "title": "" }, { "docid": "81e115c8f22af97d96b92b341f04d705", "score": "0.5989342", "text": "public static function option($name)\n\t{\n\t\treturn isset(self::$options[$name]);\n\t}", "title": "" }, { "docid": "42366d0bfa0ae2620e12431857b72dd4", "score": "0.5988589", "text": "public function getFlag()\n {\n return $this->flag;\n }", "title": "" }, { "docid": "42366d0bfa0ae2620e12431857b72dd4", "score": "0.5988589", "text": "public function getFlag()\n {\n return $this->flag;\n }", "title": "" }, { "docid": "42366d0bfa0ae2620e12431857b72dd4", "score": "0.5988589", "text": "public function getFlag()\n {\n return $this->flag;\n }", "title": "" }, { "docid": "61467e497b2e97a6d0cc7edbfffc7323", "score": "0.5987754", "text": "public function getOption($name);", "title": "" }, { "docid": "61467e497b2e97a6d0cc7edbfffc7323", "score": "0.5987754", "text": "public function getOption($name);", "title": "" }, { "docid": "d0a262b5635fd88309fc0ac0af98c3dd", "score": "0.59870094", "text": "public function TRUE() {\n }", "title": "" }, { "docid": "87dfacb284370abe7b3129fb9e6f476a", "score": "0.5985734", "text": "public function getOption() {\n\t\treturn $this->_option;\n\t}", "title": "" }, { "docid": "c22111e6b91438734a5c94d89a2bcd3a", "score": "0.59856915", "text": "public function getBool($path, $default_value = false){\n\t\treturn (bool)$this->getRaw($path, $default_value);\n\t}", "title": "" }, { "docid": "55458f48e466b0a0da3e6b416b168d63", "score": "0.5982023", "text": "function setBoolean($value=null){\n $retStr=\"\";\n $dbType=$this->retDbType();\n \n if(!HiUtils::isEmpty($value)){\n\t\t\t\n\t\t\tif($dbType==\"mysql\"){\n\t\t\t\tif($value==\"false\" || $value==\"f\") $retStr=\"0\";\n\t\t\t\telseif($value==\"true\" || $value==\"t\") $retStr=\"1\"; \n\t\t\t\telse $retStr=$value;\n\t\t\t }elseif($dbType==\"pgsql\"){\n\t\t\t\tif((is_bool($value) && $value===false) || $value==0) $retStr=\"false\";\n\t\t\t\telseif((is_bool($value) && $value===true) || $value==1) $retStr=\"true\";\n\t\t\t\telse $retStr=$value;\n\t\t\t }\n\t\t}else{\n\t\t\tif($dbType==\"mysql\") $retStr=\"0\"; \n\t\t\telseif($dbType==\"pgsql\") $retStr=\"false\";\n\t\t}\n \n \n return $retStr;\n }", "title": "" }, { "docid": "7ce2628292393cc3f9f58c0ae2a4068d", "score": "0.59741384", "text": "public function setBoolean(string $boolean): static;", "title": "" }, { "docid": "0d45a59167132733568046734b0c9513", "score": "0.59734595", "text": "public function getFlag() { return $this->flag; }", "title": "" }, { "docid": "643eb667add2ab1ca8f83a4c2c42c4cb", "score": "0.59703195", "text": "public function getOption($option);", "title": "" }, { "docid": "643eb667add2ab1ca8f83a4c2c42c4cb", "score": "0.59703195", "text": "public function getOption($option);", "title": "" }, { "docid": "633b93bf837dfe221031b5caba7095e7", "score": "0.5965651", "text": "function testBoolean()\n\t{\n\t\t$bit = $this->sqlmap->queryForObject(\"GetBoolean\", 1);\n\t\t$this->assertIdentical(true, $bit);\n\t}", "title": "" }, { "docid": "fdc16a9edaf97ca773263f3cef631c5e", "score": "0.5957352", "text": "function printBoolean($boolean) {\r\n if ($boolean) {\r\n return 'Yes';\r\n } else {\r\n return 'No';\r\n }\r\n }", "title": "" }, { "docid": "c509d1679c6c7f821581898d67932032", "score": "0.59547323", "text": "protected function getBoolValueScript(): string\n {\n return ($this->xValue) ? 'true' : 'false';\n }", "title": "" }, { "docid": "7fc964672a31f522e461ca23f311535a", "score": "0.5954548", "text": "function get_db_bool($input) {\n return $input ? \"true\" : \"false\";\n}", "title": "" }, { "docid": "e541531c3b4fa6a8189684eefd8b60fc", "score": "0.5951785", "text": "function _toBoolean( $key )\r\n\t{\r\n\t\t$val = $this->$key;\r\n\t\t\r\n\t\t//if( eregi( \"(true|yes|1|on|y)\", $val ) )\r\n\t\tif( preg_match( \"/(true|yes|1|on|y)/i\", $val ) )\r\n\t\t{\r\n\t\t\t$this->$key = true;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t//else if( eregi( \"(false|no|0|off|n)\", $val ) )\r\n\t\telse if( preg_match( \"/(false|no|0|off|n)/i\", $val ) )\r\n\t\t{\r\n\t\t\t$this->$key = false;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\ttrigger_error( \"_toBoolean operation failed. Value couldn't be detected (\" . $key . \" = \" . $val . \").Please check the value in the configuration file.\", E_USER_WARNING );\r\n\t\t\tunset( $this->$key );\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "583f7ddcc8c23a0020a1a4f1eff71c51", "score": "0.5942277", "text": "public function isOptions(){\n return Dadiweb_Http_Client::getInstance()->isOptions();\n }", "title": "" }, { "docid": "ec44f22587c04ea81751315bdab8b668", "score": "0.59420305", "text": "protected function get( $optionName ) {\n if ( isset( $this->options[$optionName] ) ) {\n return $this->options[$optionName];\n }\n return false;\n }", "title": "" }, { "docid": "e87f23a152ccdebf8c83be2c369c11ee", "score": "0.59315944", "text": "public function isOff() {\n $setting = $this->where(array('key' => 'off'))->find();\n\n if ($setting->value == \"TRUE\") {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "8c2f1c036d5e265fc2dd7de0ecfe14c0", "score": "0.592346", "text": "public function getManBool(string $key, ?bool $default = null): bool\n {\n $value = $this->config->get($key, $default);\n try\n {\n return Cast::toManBool($value);\n }\n catch (InvalidCastException $exception)\n {\n throw self::createException($key, 'boolean', $value);\n }\n }", "title": "" }, { "docid": "e2a78b42c4f47a78f24dab21399bdadc", "score": "0.5912249", "text": "private function getOption() {\n\t\t\n\t\t// figure out which option was passed\n\t\t$searchOption = Console::findCommandOptionValue(\"get\");\n\t\t$optionValue = Config::getOption($searchOption);\n\t\t\n\t\t// write it out\n\t\tif (!$optionValue) {\n\t\t\tConsole::writeError(\"the --get value you provided, <info>\".$searchOption.\"</info>, does not exists in the config...\");\n\t\t} else {\n\t\t\t$optionValue = (is_array($optionValue)) ? implode(\", \",$optionValue) : $optionValue;\n\t\t\t$optionValue = (!$optionValue) ? \"false\" : $optionValue;\n\t\t\tConsole::writeInfo($searchOption.\": <ok>\".$optionValue.\"</ok>\");\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "3c33946f8ab9bbc364e730b155de5723", "score": "0.59030527", "text": "public static function OpcjaBool($key){\n self::LoadOpcje();\n $o = self::FindOpcja($key);\n if($o == null) return false;\n else{\n if($o == \"True\") return true;\n }\n return false;\n }", "title": "" }, { "docid": "0eb0cbc0ba232602fd8ba4cdcce1ad24", "score": "0.59004986", "text": "function reserveBool($input)\n{\n if( gettype($input)=='boolean' && $input == true )\n {\n return false;\n }elseif( gettype($input)=='boolean' && $input == false )\n {\n return true;\n }\n else{\n return 'bukan boolean';\n }\n}", "title": "" } ]
f1e45b81d40661eb37a6c98e02c95f54
PHP iUnTAR Version 3.0 license: Revised BSD license
[ { "docid": "28703a95c065d8b2890a4eb7259437c8", "score": "0.64712423", "text": "function untar($tarfile,$outdir,$chmod=null) {\n$TarSize = filesize($tarfile);\n$TarSizeEnd = $TarSize - 1024;\nif($outdir!=\"\"&&!file_exists($outdir)) {\n mkdir($outdir,0777); }\n$thandle = fopen($tarfile, \"r\");\nwhile (ftell($thandle)<$TarSizeEnd) {\n $FileName = $outdir.trim(fread($thandle,100));\n $FileMode = trim(fread($thandle,8));\n if($chmod===null) {\n $FileCHMOD = octdec(\"0\".substr($FileMode,-3)); }\n if($chmod!==null) {\n $FileCHMOD = $chmod; }\n $OwnerID = trim(fread($thandle,8));\n $GroupID = trim(fread($thandle,8));\n $FileSize = octdec(trim(fread($thandle,12)));\n $LastEdit = trim(fread($thandle,12));\n $Checksum = trim(fread($thandle,8));\n $FileType = trim(fread($thandle,1));\n $LinkedFile = trim(fread($thandle,100));\n fseek($thandle,255,SEEK_CUR);\n if($FileType==\"0\") {\n $FileContent = fread($thandle,$FileSize); }\n if($FileType==\"1\") {\n $FileContent = null; }\n if($FileType==\"2\") {\n $FileContent = null; }\n if($FileType==\"5\") {\n $FileContent = null; }\n if($FileType==\"0\") {\n $subhandle = fopen($FileName, \"a+\");\n fwrite($subhandle,$FileContent,$FileSize);\n fclose($subhandle);\n chmod($FileName,$FileCHMOD); }\n if($FileType==\"1\") {\n link($FileName,$LinkedFile); }\n if($FileType==\"2\") {\n symlink($LinkedFile,$FileName); }\n if($FileType==\"5\") {\n mkdir($FileName,$FileCHMOD); }\n //touch($FileName,$LastEdit);\n if($FileType==\"0\") {\n $CheckSize = 512;\n while ($CheckSize<$FileSize) {\n if($CheckSize<$FileSize) {\n $CheckSize = $CheckSize + 512; } }\n $SeekSize = $CheckSize - $FileSize;\n fseek($thandle,$SeekSize,SEEK_CUR); } }\n fclose($thandle);\n return true;\n}", "title": "" } ]
[ { "docid": "e634df200e4afb6a91c6b3941fc712fb", "score": "0.6155093", "text": "function _tar_header($filename, $stat)\n\t{\n\t\t$mode = isset($stat[2]) ? $stat[2] : 0x8000;\n\t\t$uid = isset($stat[4]) ? $stat[4] : 0;\n\t\t$gid = isset($stat[5]) ? $stat[5] : 0;\n\t\t$size = $stat[7];\n\t\t$time = isset($stat[9]) ? $stat[9] : time();\n\t\t$link = \"\";\n\t\t\n\t\tif ($mode & 0x4000) {\n\t\t $type = 5; // Directory\n\t\t} else if ($mode & 0x8000) {\n\t\t $type = 0; // Regular\n\t\t} else if ($mode & 0xA000) {\n\t\t $type = 1; // Link\n\t\t $link = @readlink($current);\n\t\t} else {\n\t\t $type = 9; // Unknown\n\t\t}\n\t\t\n\t\t$filePrefix = '';\n\t\tif (strlen($filename) > 255) {\n\t\t return PEAR::raiseError(\n\t\t\t\"$filename is too long to be put in a tar archive\"\n\t\t );\n\t\t} else if (strlen($filename) > 100) {\n\t\t $filePrefix = substr($filename, 0, strlen($filename)-100);\n\t\t $filename = substr($filename, -100);\n\t\t}\n\t\t\n\t\t$blockbeg = pack('a100a8a8a8a12a12',\n\t\t $filename,\n\t\t decoct($mode),\n\t\t sprintf(\"%6s \",decoct($uid)),\n\t\t sprintf(\"%6s \",decoct($gid)),\n\t\t sprintf(\"%11s \",decoct($size)),\n\t\t sprintf(\"%11s \",decoct($time))\n\t\t );\n\t\t\n\t\t$blockend = pack('a1a100a6a2a32a32a8a8a155a12',\n\t\t $type,\n\t\t $link,\n\t\t 'ustar',\n\t\t '00',\n\t\t 'Unknown',\n\t\t 'Unknown',\n\t\t '',\n\t\t '',\n\t\t $filePrefix,\n\t\t '');\n\t\t\n\t\t$checksum = 8*ord(' ');\n\t\tfor ($i = 0; $i < 148; $i++) {\n\t\t $checksum += ord($blockbeg{$i});\n\t\t}\n\t\tfor ($i = 0; $i < 356; $i++) {\n\t\t $checksum += ord($blockend{$i});\n\t\t}\n\t\t\n\t\t$checksum = pack('a8',sprintf('%6s ',decoct($checksum)));\n\t\t\n\t\treturn $blockbeg . $checksum . $blockend;\n\t}", "title": "" }, { "docid": "d742ae11988ce2d1937f4393f208d701", "score": "0.60552895", "text": "public function manualExtract() {\n\t\t$filename = $this->settings['path_to_file'];\n\t\t$returnValue = array();\n\t\tif ($this->settings['file_ext'] == 'tgz') {\n\t\t\t$ghandle = gzopen($filename, 'r');\n\t\t\t$reghandle = fopen($filename.'gzconvert', 'w');\n\t\t\tgzseek($ghandle, 0);\n\t\t\twhile ($temp = gzread($ghandle, 1048576)) {\n\t\t\t\tfwrite($reghandle, $temp);\n\t\t\t}\n\t\t\tfclose($reghandle);\n\t\t\tgzclose($ghandle);\n\t\t\t$filename = $filename.'gzconvert';\n\t\t}\n\t\t$tarfile = @fopen($filename, 'r');\n\t\twhile (!feof($tarfile)) {\n\t\t\t$readdata = fread($tarfile,512);\n\t\t\tif (substr($readdata,257,5) == 'ustar') {\n\t\t\t\t$tfilename = substr($readdata, 0, 100);\n\t\t\t\t$indicator = substr($readdata, 156, 1);\n\t\t\t\tif ($indicator == 5) {\n\t\t\t\t\tif (!@mkdir($tfilename)) {\n\t\t\t\t\t\t$levels = explode(\"/\", $tfilename);\n\t\t\t\t\t\t$thestring = \"\";\n\t\t\t\t\t\tforeach ($levels as $level) {\n\t\t\t\t\t\t\t$thestring .= $level . \"/\";\n\t\t\t\t\t\t\t$st = @mkdir($thestring);\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\t@fclose($tarfile);\n\t\t$tarfile = @fopen($filename, 'r');\n\t\t$thetar = @fopen($filename, 'r');\n\t\t$longlinkfound = false;\n\t\twhile (!feof($tarfile)) {\n\t\t\t$readdata = fread($tarfile, 512);\n\t\t\tif (substr($readdata, 257, 5) == 'ustar') {\n\t\t\t\t$tfilename = substr($readdata, 0, 100);\n\t\t\t\t$permissions = substr($readdata, 100, 8);\n\t\t\t\t$tfilename = $this->settings['full_install_path'].trim($tfilename);\n\t\t\t\t$indicator = substr($readdata, 156, 1);\n\t\t\t\tif ($indicator == 2) {\n\t\t\t\t\t$linklocation = $this->settings['full_install_path'].substr($readdata, 157, 100);\n\t\t\t\t}\n\t\t\t\t$offset = ftell($tarfile);\n\t\t\t\t$filesize = octdec(substr($readdata, 124, 12));\n\t\t\t\t$directory = \"\";\n\t\t\t}\n\t\t\tif (substr($readdata, 257, 5) == 'ustar') {\n\t\t\t\tif ($indicator == 5) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif ($indicator == 2) {\n\t\t\t\t\tsymlink($linklocation, $tfilename);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif ($longlinkfound) {\n\t\t\t\t\t$tfilename = $this->settings['full_install_path'].$longlinkfound;\n\t\t\t\t}\n\t\t\t\tif ($tfilename == $this->settings['full_install_path'].'././@LongLink') {\n\t\t\t\t\tfseek($thetar, $offset);\n\t\t\t\t\t$data = @fread($thetar, $filesize);\n\t\t\t\t\t$longlinkfound = $data;\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if ($longlinkfound) {\n\t\t\t\t\t$longlinkfound = false;\n\t\t\t\t}\n\t\t\t\t$fh = @fopen($tfilename, 'wb');\n\t\t\t\tif (!$fh) {\n\t\t\t\t\t$levels = explode(\"/\", $tfilename);\n\t\t\t\t\t$thestring = \"\";\n\t\t\t\t\tforeach ($levels as $level) {\n\t\t\t\t\t\t$thestring .= $level . \"/\";\n\t\t\t\t\t\t@mkdir($thestring);\n\t\t\t\t\t}\n\t\t\t\t\t$fh = @fopen($tfilename, 'wb');\n\t\t\t\t}\n\t\t\t\tfseek($thetar, $offset);\n\t\t\t\t$data = @fread($thetar, $filesize);\n\t\t\t\t$st = @fwrite($fh, $data);\n\t\t\t\t@fclose($fh);\n\t\t\t\tif ($this->settings['os'] != 'WIN') {\n\t\t\t\t\t@chmod($tfilename, 0 . octdec(substr($permissions, 3)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t@fclose($thetar);\n\t\t@fclose($tarfile);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bcb9771ac5f015a2fb6caad153c0c6e5", "score": "0.57750607", "text": "function viewer_tar ( $fp, $filename, $ext, $dir, $query_string ) {\n global $tar_exec, $gunzip_exec, $viewers;\n \n switch ( $ext ) {\n case \"tgz\":\n case \"gz\":\n $tar_parms = \" -tzf \";\n break;\n default:\n $tar_parms = \" -tf \";\n }\n\n $find_ext = explode( \".\", strtolower($filename) );\n $gz_ext = $find_ext[count($find_ext)-2];\n\n $tmp_name = tempnam ( \"/tmp\", \"tar\" );\n $tp = fopen ( $tmp_name, \"w+\" );\n while ( !feof ( $fp ) )\n fwrite ( $tp, fread ( $fp, 1024 ), 1024 );\n fclose ( $tp );\n\n $out_fp = tmpfile ();\n if ( $ext == \"tar\" || $ext == \"tgz\" || $gz_ext == \"tar\" ) {\n fwrite ( $out_fp, sprintf ( \"%s %s:\\n\\n\", gettext (\"Listing of\"), $filename ) );\n fwrite ( $out_fp, shell_exec ( $tar_exec.$tar_parms.$tmp_name ) );\n $file = array ( \"text/plain\", $out_fp );\n } else {\n fwrite ( $out_fp, shell_exec ( $gunzip_exec.\" -c \".$tmp_name ) );\n rewind ( $out_fp );\n if ( compat_array_key_exists ($gz_ext, $viewers) )\n $use_viewer = $gz_ext;\n else\n $use_viewer = \"default\";\n\n $file = $viewers[$use_viewer] ( $out_fp, $filename, $gz_ext, $dir, $query_string );\n }\n unlink ( $tmp_name );\n\n return $file;\n}", "title": "" }, { "docid": "cae1eb3e282c97d147c7c9361110a472", "score": "0.5772702", "text": "function testread() {\n $oTar = new Archive_Tar($this->sFile, 'gz');\n $sExpected = $oTar->extractInString('Beautifier.php');\n unset($oTar);\n $sActual = '';\n $fp = @fopen('tarz://'.$this->sFile.\"#Beautifier.php\", 'rb');\n $this->assertTrue((boolean)$fp);\n if ($fp) {\n while (!feof($fp)) {\n $sBuffer = fread($fp, 8192);\n $sActual.= $sBuffer;\n }\n }\n $this->assertTrue($sExpected == $sActual, 'fread');\n $sActual = '';\n rewind($fp);\n do {\n $data = fread($fp, 8192);\n if (strlen($data) == 0) {\n break;\n }\n $sActual.= $data;\n }\n while (true);\n fclose($fp);\n $this->assertTrue($sExpected == $sActual, 'do');\n $sActual = file_get_contents('tarz://'.$this->sFile.\"#Beautifier.php\");\n $this->assertTrue($sExpected == $sActual, 'file_get_contents');\n $sActual = implode(\"\", file('tarz://'.$this->sFile.\"#Beautifier.php\"));\n $this->assertTrue($sExpected == $sActual, 'file');\n }", "title": "" }, { "docid": "f5c0fee8ecc451ac76583f9683a5ddb5", "score": "0.5743671", "text": "function convert_zip_to_tar($in_path, $out_path = null)\n{\n if (php_function_allowed('set_time_limit')) {\n @set_time_limit(200);\n }\n\n require_code('tar');\n require_code('files');\n require_lang('dearchive');\n\n if ((!function_exists('zip_open')) && (get_option('unzip_cmd') == '')) {\n warn_exit(do_lang_tempcode('ZIP_NOT_ENABLED'));\n }\n if (!function_exists('zip_open')) {\n require_code('m_zip');\n $mzip = true;\n } else {\n $mzip = false;\n }\n\n $in_file = zip_open($in_path);\n if (is_integer($in_file)) {\n require_code('failure');\n warn_exit(zip_error($in_file, $mzip));\n }\n\n if (is_null($out_path)) {\n $out_path = cms_tempnam();\n }\n $out_file = tar_open($out_path, 'wb');\n\n while (false !== ($entry = zip_read($in_file))) {\n // Load in file\n zip_entry_open($in_file, $entry);\n\n $_file = zip_entry_name($entry);\n\n $temp_path = cms_tempnam();\n $temp_file = @fopen($temp_path, 'wb') or intelligent_write_error($temp_path);\n $more = mixed();\n do {\n $more = zip_entry_read($entry);\n if (fwrite($temp_file, $more) < strlen($more)) {\n warn_exit(do_lang_tempcode('COULD_NOT_SAVE_FILE', escape_html($out_path)));\n }\n } while (($more !== false) && ($more != ''));\n fclose($temp_file);\n\n tar_add_file($out_file, $_file, $temp_path, 0644, null, true, false, true);\n\n @unlink($temp_path);\n\n zip_entry_close($entry);\n }\n\n zip_close($in_file);\n tar_close($out_file);\n\n return $out_path;\n}", "title": "" }, { "docid": "3e08c7bb1845a851198d43ac2745642c", "score": "0.57383424", "text": "public function testTarExtract() {\n $archive = $this->temp_data_path . 'test.tar';\n $return = $this->execute(UNISH_DRUSH . ' archiver-extract ' . $archive . ' ' . $this->temp_path, self::EXIT_SUCCESS);\n // Check if files exist\n $this->assertTrue(is_file($this->temp_path . 'testfile_1.txt'), 'testfile_1.txt not found');\n $this->assertTrue(is_dir($this->temp_path . 'folder'), 'folder not found');\n $this->assertTrue(is_file($this->temp_path . 'folder/testfile_2.txt'), 'folder/testfile_2.txt not found');\n }", "title": "" }, { "docid": "2665a21b50432b3edb2cf6afee48d9ff", "score": "0.5582082", "text": "public function testTarGzExtract() {\n $archive = $this->temp_data_path . 'test.tar.gz';\n $return = $this->execute(UNISH_DRUSH . ' archiver-extract ' . $archive . ' ' . $this->temp_path, self::EXIT_SUCCESS);\n // Check if files exist\n $this->assertTrue(is_file($this->temp_path . 'testfile_1.txt'), 'testfile_1.txt not found');\n $this->assertTrue(is_dir($this->temp_path . 'folder'), 'folder not found');\n $this->assertTrue(is_file($this->temp_path . 'folder/testfile_2.txt'), 'folder/testfile_2.txt not found');\n }", "title": "" }, { "docid": "7f37c483c173a362fdfb53ad48edd76d", "score": "0.5480166", "text": "public function testTarCompress() {\n if (!file_exists($this->temp_path)) {\n mkdir($this->temp_path);\n }\n $archive = $this->temp_path . 'test.tar';\n $files = array(\n $this->temp_data_path . 'testfile_1.txt',\n $this->temp_data_path . 'folder',\n );\n $return = $this->execute(UNISH_DRUSH . ' archiver-compress ' . $archive . ' ' . implode(' ', $files), self::EXIT_SUCCESS);\n // Check if files exist\n $this->assertTrue(is_file($archive), 'Archive not found');\n }", "title": "" }, { "docid": "0d0ef5363cbcb68c8a2b813333a89437", "score": "0.5468083", "text": "public function testTarBzExtract() {\n $archive = $this->temp_data_path . 'test.tar.bz2';\n $return = $this->execute(UNISH_DRUSH . ' archiver-extract ' . $archive . ' ' . $this->temp_path, self::EXIT_SUCCESS);\n // Check if files exist\n $this->assertTrue(is_file($this->temp_path . 'testfile_1.txt'), 'testfile_1.txt not found');\n $this->assertTrue(is_dir($this->temp_path . 'folder'), 'folder not found');\n $this->assertTrue(is_file($this->temp_path . 'folder/testfile_2.txt'), 'folder/testfile_2.txt not found');\n }", "title": "" }, { "docid": "749feb30c475452ec5a2a8a4c61e4386", "score": "0.5421019", "text": "function PackFile($TAR_id, $filename, $pack_to = '', $force_mode = '')\r\n {\r\n global $QF;\r\n\r\n if (!isset($this->TARs[$TAR_id]))\r\n return false;\r\n if (!is_file($filename))\r\n return false;\r\n\r\n extract($this->TARs[$TAR_id]);\r\n $TARcont =& $this->TARs[$TAR_id]['TARcont'];\r\n\r\n if (!$is_pack)\r\n {\r\n trigger_error('TARLIB: trying to pack data into archive opened for reading', E_USER_WARNING);\r\n return false;\r\n }\r\n\r\n if (!$pack_to)\r\n {\r\n $pack_to = $filename;\r\n $pack_to = preg_replace('#^('.preg_quote($root_link, '#').')#', '', $pack_to);\r\n }\r\n\r\n $pack_to = qf_str_path($pack_to);\r\n\r\n if (in_array($pack_to, $TARcont))\r\n return false;\r\n\r\n if ($dir = qf_str_path(dirname($pack_to)))\r\n if (!in_array($dir, $TARcont))\r\n {\r\n $dir_perms = decoct(fileperms(dirname($filename)));\r\n $this->MakeDir($TAR_id, $dir, $dir_perms);\r\n }\r\n\r\n $filesize = filesize($filename);\r\n $header = Array(\r\n 'name' => $pack_to,\r\n 'mode' => decoct(fileperms($filename)),\r\n 'uid' => fileowner($filename),\r\n 'gid' => filegroup($filename),\r\n 'size' => $filesize,\r\n 'time' => filemtime($filename),\r\n 'type' => 0,\r\n );\r\n\r\n if (preg_match('#^[0-7]{3}$#', $force_mode))\r\n $header['mode'] = $force_mode;\r\n\r\n $header = $this->MakeRawHeader($header);\r\n\r\n if ($inp = fopen($filename, 'rb'))\r\n {\r\n $QF->EFS->Write($TARstream, $header);\r\n $bls_toread = (int) ceil($filesize/512);\r\n While (!feof($inp) && $bls_toread>0)\r\n {\r\n $bls_read = min($bls_toread, QF_TARFS_BLOCKS_BUF);\r\n $data_read = $bls_read*512;\r\n $data = fread($inp, $data_read);\r\n $data = str_pad($data, $data_read, chr(0), STR_PAD_RIGHT);\r\n $QF->EFS->Write($TARstream, $data);\r\n $bls_toread-= $bls_read;\r\n }\r\n fclose($inp);\r\n }\r\n\r\n $TARcont[] = $pack_to;\r\n return True;\r\n }", "title": "" }, { "docid": "38937de6680947e0b0678380530c6021", "score": "0.53957814", "text": "function drush_tinypng_tinify_download() {\n $args = func_get_args();\n if (!empty($args[0])) {\n $path = $args[0];\n }\n else {\n $path = 'sites/all/libraries';\n }\n\n // Create the path if it does not exist.\n if (!is_dir($path)) {\n drush_op('mkdir', $path);\n drush_log(dt('Directory @path was created', array('@path' => $path)), 'notice');\n }\n\n // Set the directory to the download location.\n $olddir = getcwd();\n chdir($path);\n\n // Download the zip archive.\n if ($filepath = drush_download_file(TINIFY_PHP_DOWNLOAD_URI, TINIFY_PHP_VERSION . '.zip')) {\n $filename = basename($filepath);\n $dirname = basename($filepath, '.zip');\n\n // Remove any existing Tinify PHP library directory.\n if (is_dir($dirname) || is_dir(TINIFY_PHP_DIRNAME)) {\n drush_delete_dir($dirname, TRUE);\n drush_delete_dir(TINIFY_PHP_DIRNAME, TRUE);\n drush_log(dt('A existing Tinify PHP library was deleted from @path', array('@path' => $path)), 'notice');\n }\n\n // Decompress the zip archive.\n drush_tarball_extract($filename, $dirname);\n drush_move_dir(TINIFY_PHP_VERSION . '/' . TINIFY_PHP_DIRNAME . '-' . TINIFY_PHP_VERSION, TINIFY_PHP_DIRNAME, TRUE);\n drush_delete_dir(TINIFY_PHP_VERSION);\n\n // Delete the zip archive.\n @chmod($filename, 0777);\n unlink($filename);\n }\n\n if (is_dir(TINIFY_PHP_DIRNAME)) {\n drush_log(dt('Tinify PHP library has been installed in @path', array('@path' => $path)), 'success');\n }\n else {\n drush_log(dt('Drush was unable to install the Tinify PHP library to @path', array('@path' => $path)), 'error');\n }\n\n // Set working directory back to the previous working directory.\n chdir($olddir);\n}", "title": "" }, { "docid": "935e2d47d29cb09307bdb59a4fd03db2", "score": "0.5388051", "text": "function decompress($file) {\n\n $target = str_replace ('.zip', '', $file);\n \n \n require_once(DOKU_INC.\"inc/ZipLib.class.php\");\n \n \n\n $zip = new ZipLib();\n \n $ok = $zip->Extract($file, $target);\n\n if($ok) {\n $this->showDebug('decompress worked');\n \n //rename .usfm to .usfm.txt\n $exfiles = $zip->get_List($file);\n foreach($exfiles as $exfile) {\n \n if (utf8_strpos($exfile['filename'], \".usfm\")){\n //rename .usfm to .usfm.txt, ignore all other file types\n $new_name= str_replace(\".usfm\", \".usfm.txt\", $exfile['filename']);\n $new_dest = $target.DIRECTORY_SEPARATOR.$new_name;\n $old_dest = $target.DIRECTORY_SEPARATOR.$exfile['filename'];\n \n if(!@io_rename($old_dest,$new_dest)){\n msg (springf($this->getlang['rn_failed'], $old_dest), -1 );\n }\n //$ret=io_rename($old_dest, $new_dest);\n //$this->showDebug(\"io_rename returns: \".($ret)?'true':'false');\n \n \n }\n }\n \n \n \n return true;\n } else {\n return false;\n }\n\n }", "title": "" }, { "docid": "6c50d2e22b25913b4faade5c545116c9", "score": "0.5349645", "text": "function UnpackFile($TAR_id, $fid, $unpack_to = '', $do_replace = false, $force_mode = '')\r\n {\r\n global $QF;\r\n\r\n if (!isset($this->TARs[$TAR_id]))\r\n return false;\r\n\r\n if (!$fid)\r\n return false;\r\n\r\n extract($this->TARs[$TAR_id]);\r\n\r\n if ($is_pack)\r\n {\r\n trigger_error('TARLIB: trying to unpack data from archive opened for writing', E_USER_WARNING);\r\n return false;\r\n }\r\n\r\n if (!isset($TARcont[$fid]))\r\n return false;\r\n\r\n $header = $TARcont[$fid];\r\n $filename = $header['name'];\r\n\r\n if (!$unpack_to)\r\n $unpack_to = $root_link.'/'.$filename;\r\n\r\n $unpack_to = qf_str_path($unpack_to);\r\n\r\n if (file_exists($unpack_to) && !$do_replace)\r\n return false;\r\n if ($dir = qf_str_path(dirname($unpack_to)))\r\n qf_mkdir_recursive($dir);\r\n\r\n $QF->EFS->Seek($TARstream, $header['seek']);\r\n\r\n if (preg_match('#^[0-7]{3}$#', $force_mode))\r\n $header['mode'] = $force_mode;\r\n\r\n $to_read = $header['size'];\r\n $type = $header['type'];\r\n if ($type == 0)\r\n {\r\n if ($outp = @fopen($unpack_to, 'wb'))\r\n {\r\n $bls_toread = (int) ceil($to_read/512);\r\n While (!$QF->EFS->EOF($TARstream) && $to_read>0)\r\n {\r\n $bls_read = min($bls_toread, QF_TARFS_BLOCKS_BUF);\r\n $data_read = $bls_read*512;\r\n $data = $QF->EFS->Read($TARstream, $data_read);\r\n if ($to_read < $data_read)\r\n $data = substr($data, 0, $to_read);\r\n fwrite($outp, $data);\r\n\r\n $bls_toread-= $bls_read;\r\n $to_read -= $data_read;\r\n }\r\n fclose($outp);\r\n if ($fmode = octdec($header['mode']))\r\n chmod($unpack_to, $fmode);\r\n if ($ftime = $header['time'])\r\n touch($unpack_to, $ftime);\r\n\r\n return true;\r\n }\r\n }\r\n elseif ($type == 5)\r\n {\r\n if (!($fmode = octdec($header['mode'])))\r\n $fmode = 0755;\r\n return mkdir($unpack_to, $fmode);\r\n }\r\n\r\n return false;\r\n }", "title": "" }, { "docid": "12a7c5cdcf2b74039f1c41eba4d3be20", "score": "0.5343331", "text": "function configuration_tar_create($name, $contents) {\n $tar = '';\n $binary_data_first = pack(\"a100a8a8a8a12A12\",\n $name,\n '100644 ', // File permissions\n ' 765 ', // UID,\n ' 765 ', // GID,\n sprintf(\"%11s \", decoct(strlen($contents))), // Filesize,\n sprintf(\"%11s\", decoct(REQUEST_TIME)) // Creation time\n );\n $binary_data_last = pack(\"a1a100a6a2a32a32a8a8a155a12\", '', '', '', '', '', '', '', '', '', '');\n\n $checksum = 0;\n for ($i = 0; $i < 148; $i++) {\n $checksum += ord(substr($binary_data_first, $i, 1));\n }\n for ($i = 148; $i < 156; $i++) {\n $checksum += ord(' ');\n }\n for ($i = 156, $j = 0; $i < 512; $i++, $j++) {\n $checksum += ord(substr($binary_data_last, $j, 1));\n }\n\n $tar .= $binary_data_first;\n $tar .= pack(\"a8\", sprintf(\"%6s \", decoct($checksum)));\n $tar .= $binary_data_last;\n\n $buffer = str_split($contents, 512);\n foreach ($buffer as $item) {\n $tar .= pack(\"a512\", $item);\n }\n return $tar;\n}", "title": "" }, { "docid": "2c92d2b0e0db1a522cb732f5bce82942", "score": "0.5298327", "text": "function plugin_install()\n\t{\t\t\n global $IN, $DSP, $LANG;\n \n\t\tif ( ! @include_once(PATH_LIB.'pclzip.lib.php'))\n\t\t{\n\t\t\treturn $DSP->error_message($LANG->line('plugin_zlib_missing'));\n\t\t}\n\t\t\n\t\tif ( ! is_writable(PATH_PI))\n\t\t{\n\t\t\treturn $DSP->error_message($LANG->line('plugin_folder_not_writable'));\n\t\t}\n\t\t\n\t\tif ( ! extension_loaded('curl') || ! function_exists('curl_init'))\n\t\t{\n\t\t\treturn $DSP->error_message($LANG->line('plugin_no_curl_support'));\n\t\t}\n \n $file = $IN->GBL('file');\n \n $local_name = basename($file);\n $local_file = PATH_PI.$local_name;\n \n\t\t// Get the remote file\n\t\t$c = curl_init($file);\n\t\tcurl_setopt($c, CURLOPT_RETURNTRANSFER, 1);\n\t\tcurl_setopt($c, CURLOPT_FOLLOWLOCATION, 1);\n\t\t$code = curl_exec($c);\n\t\tcurl_close($c);\n\t \n\t $file_info = pathinfo($local_file);\n\t\n\t if ($file_info['extension'] == 'txt' ) // Get rid of any notes/headers in the TXT file\n {\n\t\t\t$code = strstr($code, '<?php');\n\t\t}\n\t \n\t if ( ! $fp = fopen($local_file, 'wb'))\n\t {\n\t\t\treturn $DSP->error_message($LANG->line('plugin_problem_creating_file'));\n\t }\n\t \n\t flock($fp, LOCK_EX);\n\t fwrite($fp, $code);\n\t flock($fp, LOCK_UN);\n\t fclose($fp);\n\n\t @chmod($local_file, 0777);\n\t \n // Check file information so we know what to do with it\n \n\t\tif ($file_info['extension'] == 'txt' ) // We've got a TXT file!\n {\n\t\t\t$new_file = basename($local_file, '.txt');\n\t\t\tif ( ! rename($local_file, PATH_PI.$new_file))\n\t\t\t{\n\t\t\t\t$message = $LANG->line('plugin_install_other');\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t@chmod($new_file, 0777);\n\t\t\t\t$message = $LANG->line('plugin_install_success');\n\t\t\t}\n }\n else if ($file_info['extension'] == 'zip' ) // We've got a ZIP file!\n {\n \t// Unzip and install plugin\n\t\t\tif (class_exists('PclZip'))\n\t\t\t{\n\t\t\t\t$zip = new PclZip($local_file);\n\t\t\t\tchdir(PATH_PI);\n\t\t\t\t$ok = @$zip->extract('');\n\t\t\t\t\n\t\t\t\tif ($ok)\n\t\t\t\t{\n\t\t\t\t\t$message = $LANG->line('plugin_install_success');\n\t\t\t\t\tunlink($local_file);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$message = $LANG->line('plugin_error_uncompress');\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$message = $LANG->line('plugin_error_no_zlib');\n\t\t\t}\n }\n else\n {\n \t\t$message = $LANG->line('plugin_install_other');\n }\n\t\t\n\t\treturn Utilities::plugin_manager($message);\n\n\t}", "title": "" }, { "docid": "08d67463c955a62b638bc7c7854c2ae4", "score": "0.5261609", "text": "public function testTarGzCompress() {\n if (!file_exists($this->temp_path)) {\n mkdir($this->temp_path);\n }\n $archive = $this->temp_path . 'test.tar.gz';\n $files = array(\n $this->temp_data_path . 'testfile_1.txt',\n $this->temp_data_path . 'folder',\n );\n $return = $this->execute(UNISH_DRUSH . ' archiver-compress ' . $archive . ' ' . implode(' ', $files), self::EXIT_SUCCESS);\n // Check if files exist\n $this->assertTrue(is_file($archive), 'Archive not found');\n }", "title": "" }, { "docid": "6ceaab3a94212441cab072ae3bc9f206", "score": "0.5245404", "text": "function _tar_footer($size)\n\t{\n\t\tif ($size % 512 > 0) {\n\t\t\treturn pack('a'.(512 - $size%512), '');\n\t\t} else {\n\t\t\treturn \"\";\n\t\t}\n\t}", "title": "" }, { "docid": "a99fac5d3f742ce5e11773e01bc64acd", "score": "0.5245041", "text": "function Extract($TAR_id, $unpack_to = '', $force_Dmode = '', $force_Fmode = '', $ch_callback=false)\r\n {\r\n global $QF;\r\n\r\n if (!isset($this->TARs[$TAR_id]))\r\n return false;\r\n\r\n extract($this->TARs[$TAR_id]);\r\n\r\n if ($is_pack)\r\n {\r\n trigger_error('TARLIB: trying to unpack data from archive opened for writing', E_USER_WARNING);\r\n return false;\r\n }\r\n\r\n if (!$unpack_to)\r\n $unpack_to = $root_link;\r\n\r\n $unpack_to = qf_str_path($unpack_to);\r\n\r\n if (is_file($unpack_to))\r\n return false;\r\n\r\n $do_replace = false;\r\n\r\n if (!is_callable($ch_callback))\r\n {\r\n if ($ch_callback)\r\n $do_replace = true;\r\n $ch_callback = null;\r\n }\r\n\r\n qf_mkdir_recursive($unpack_to, octdec($force_Dmode));\r\n\r\n $QF->EFS->Restart($TARstream);\r\n $i = 0;\r\n while (!$QF->EFS->EOF($TARstream))\r\n {\r\n $header = $QF->EFS->Read($TARstream, 512);\r\n if ($header = $this->ParseRawHeader($header))\r\n {\r\n $i++;\r\n $pos = $QF->EFS->Pos($TARstream);\r\n $TARcont[$i] = $header + Array('seek' => $pos);\r\n\r\n $filename = $unpack_to.'/'.$header['name'];\r\n $to_read = $header['size'];\r\n $bls_toread = (int) ceil($to_read/512);\r\n $type = $header['type'];\r\n\r\n $do_file = ($ch_callback) ? call_user_func($ch_callback, $filename) : (!file_exists($filename) || $do_replace);\r\n\r\n if ($do_file)\r\n {\r\n if ($dir = qf_str_path(dirname($filename)))\r\n qf_mkdir_recursive($dir);\r\n\r\n if ($type == 0)\r\n {\r\n if (preg_match('#^[0-7]{3}$#', $force_Fmode))\r\n $header['mode'] = $force_Fmode;\r\n\r\n if ($outp = @fopen($filename, 'wb'))\r\n {\r\n While (!$QF->EFS->EOF($TARstream) && $to_read>0)\r\n {\r\n $bls_read = min($bls_toread, QF_TARFS_BLOCKS_BUF);\r\n $data_read = $bls_read*512;\r\n $data = $QF->EFS->Read($TARstream, $data_read);\r\n if ($to_read < $data_read)\r\n $data = substr($data, 0, $to_read);\r\n fwrite($outp, $data);\r\n\r\n $bls_toread-= $bls_read;\r\n $to_read -= $data_read;\r\n }\r\n fclose($outp);\r\n if ($fmode = octdec($header['mode']))\r\n chmod($filename, $fmode);\r\n if ($ftime = $header['time'])\r\n touch($filename, $ftime);\r\n }\r\n }\r\n elseif ($type == 5)\r\n {\r\n if (preg_match('#^[0-7]{3}$#', $force_Dmode))\r\n $header['mode'] = $force_Dmode;\r\n\r\n if (!($fmode = octdec($header['mode'])))\r\n $fmode = 0755;\r\n qf_mkdir_recursive($filename, $fmode);\r\n }\r\n\r\n }\r\n if ($bls_toread)\r\n $QF->EFS->SeekRel($TARstream, $bls_toread*512);\r\n }\r\n }\r\n\r\n $this->TARs[$TAR_id]['TARcont'] = $TARcont;\r\n\r\n return true;\r\n }", "title": "" }, { "docid": "69d138c40488c8e2f8687df81ffbb582", "score": "0.5225555", "text": "function UnpackData($TAR_id, $fid)\r\n {\r\n global $QF;\r\n\r\n if (!isset($this->TARs[$TAR_id]))\r\n return false;\r\n\r\n if (!$fid)\r\n return false;\r\n\r\n extract($this->TARs[$TAR_id]);\r\n\r\n if ($is_pack)\r\n {\r\n trigger_error('TARLIB: trying to unpack data from archive opened for writing', E_USER_WARNING);\r\n return false;\r\n }\r\n\r\n if (!isset($TARcont[$fid]))\r\n return false;\r\n\r\n $header = $TARcont[$fid];\r\n\r\n $QF->EFS->Seek($TARstream, $header['seek']);\r\n\r\n $to_read = $header['size'];\r\n $type = $header['type'];\r\n if ($type == 0)\r\n {\r\n $datastring = '';\r\n $bls_toread = (int) ceil($to_read/512);\r\n While (!$QF->EFS->EOF($TARstream) && $to_read>0)\r\n {\r\n $bls_read = min($bls_toread, QF_TARFS_BLOCKS_BUF);\r\n $data_read = $bls_read*512;\r\n $data = $QF->EFS->Read($TARstream, $data_read);\r\n if ($to_read < $data_read)\r\n $data = substr($data, 0, $to_read);\r\n\r\n $datastring.= $data;\r\n $bls_toread-= $bls_read;\r\n $to_read -= $data_read;\r\n }\r\n return $datastring;\r\n }\r\n\r\n return null;\r\n }", "title": "" }, { "docid": "e126a6e88646ecb7da77e2ae459d4570", "score": "0.5182728", "text": "function gzpassthru($zp)\n{\n}", "title": "" }, { "docid": "f908f9834e6b01240f98cd58aa12d590", "score": "0.5162192", "text": "public static function getTorrentInfoFromSource( $torrent_location ){\n \n // Start by getter the raw torrent data\n $raw_data;\n if( preg_match( \"/https{0,1}:\\/\\//i\", $torrent_location ) ){\n \n $ch = curl_init(); \n curl_setopt( $ch, CURLOPT_URL, $torrent_location );\n curl_setopt( $ch, CURLOPT_HEADER, false );\n curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); \n curl_setopt( $ch, CURLOPT_ENCODING , \"gzip\" );\n curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true );\n $raw_data = curl_exec( $ch );\n curl_close( $ch );\n \n }else if( preg_match( \"/magnet:/i\", $torrent_location ) ){\n // TODO All i need to do is parse the magnet url correctly\n $url_components = parse_url( $torrent_location );\n parse_str( $url_components[ \"query\" ], $test );\n var_dump( $test );\n exit();\n }else{\n // Everthing else like ftp and local files\n $raw_data = file_get_contents( $torrent_location );\n }\n \n // Now parse and convert \n $data;\n try{\n $data = Bencode::decode( $raw_data );\n }catch( Exception $e ){\n return false;\n }\n \n // Start constructing the torrent info object \n $torrent_info = new TorrentInformation();\n \n $announce_info_list = new AnnounceInformationList;\n $announce_info = new AnnounceInformation;\n $announce_info->url = $data[ 'announce' ];\n $announce_info_list->add( $announce_info ); \n if( isset( $data[ 'announce-list' ] ) ){ \n foreach( $data[ 'announce-list' ] as $url ){\n $announce_info = new AnnounceInformation; \n $announce_info->url = $url;\n $announce_info_list->add( $announce_info );\n }\n }\n \n $file_info_list = new FileInformationList; \n if( isset( $data[ 'info' ][ 'files' ] ) ){ \n foreach( $data[ 'info' ][ 'files' ] as $file ){\n $file_info = new FileInformation;\n $relative_name = implode( DIRECTORY_SEPARATOR, $file[ 'path' ] ); \n $file_info->name = $data[ 'info' ][ 'name' ] . DIRECTORY_SEPARATOR . $relative_name;\n $file_info->size = $file[ 'length' ];\n $file_info_list->add( $file_info );\n }\n }else{\n $file_info = new FileInformation;\n $file_info->name = $data[ 'info' ][ 'name' ];\n $file_info->size = $data[ 'info' ][ 'length' ];\n $file_info_list->add( $file_info );\n }\n \n \n $torrent_info->piece_length = $data[ 'info' ][ 'piece length' ];\n $torrent_info->pieces = $data[ 'info' ][ 'pieces' ];\n $torrent_info->announce_infos = $announce_info_list;\n $torrent_info->files = $file_info_list; \n $torrent_info->name = $data[ 'info' ][ 'name' ];\n $torrent_info->info_hash = sha1( Bencode::encode( $data[ 'info' ] ), false );\n \n return $torrent_info;\n }", "title": "" }, { "docid": "c76b34013cf555515df07c5f12644d17", "score": "0.51301235", "text": "function get_compressed_header() {\n \n}", "title": "" }, { "docid": "28b0963213b598bbcfe0edc8622f7d6a", "score": "0.51254714", "text": "public function entrar($Tarjeta){\n \n }", "title": "" }, { "docid": "0283a9d60d6b94d4c1f82291bad4bc2c", "score": "0.5115872", "text": "function repec_generate_archive_template() {\n $repec_archive_path = variable_get('repec_base_path') . '/' . variable_get('repec_archive_code') . '/';\n if (!file_exists($repec_archive_path)) {\n if (!mkdir($repec_archive_path, 0777, TRUE)) {\n drupal_set_message(t(\"Directory couldn't be created in this path\"), 'error');\n }\n }\n\n $file_name = variable_get('repec_archive_code') . 'arch.rdf';\n\n $content = 'Template-type: ReDIF-Archive 1.0';\n $content .= \"\\n\";\n $content .= 'Handle: RePEc:' . variable_get('repec_archive_code');\n $content .= \"\\n\";\n $content .= 'Name: ' . variable_get('repec_provider_name');\n $content .= \"\\n\";\n $content .= 'Maintainer-Name: ' . variable_get('repec_maintainer_name');\n $content .= \"\\n\";\n $content .= 'Maintainer-Email: ' . variable_get('repec_maintainer_email');\n $content .= \"\\n\";\n $content .= 'Description: This archive collects ' . variable_get('repec_paper_name') . ' from ' . variable_get('repec_provider_name');\n $content .= \"\\n\";\n $content .= 'URL: ' . variable_get('repec_provider_homepage') . variable_get('repec_base_path') . '/' . variable_get('repec_archive_code') . '/';\n $content .= \"\\n\";\n\n if (!file_put_contents($repec_archive_path . $file_name, $content)) {\n drupal_set_message(t(\"File couldn't be created\"), \"error\");\n }\n return $repec_archive_path . $file_name;\n}", "title": "" }, { "docid": "0c52c784543ea9fe59767821732d980e", "score": "0.51156324", "text": "public function archive();", "title": "" }, { "docid": "0c52c784543ea9fe59767821732d980e", "score": "0.51156324", "text": "public function archive();", "title": "" }, { "docid": "15b46194dba01342bb0feaa4eae4ff69", "score": "0.51099277", "text": "public function testTarBzCompress() {\n if (!file_exists($this->temp_path)) {\n mkdir($this->temp_path);\n }\n $archive = $this->temp_path . 'test.tar.bz2';\n $files = array(\n $this->temp_data_path . 'testfile_1.txt',\n $this->temp_data_path . 'folder',\n );\n $return = $this->execute(UNISH_DRUSH . ' archiver-compress ' . $archive . ' ' . implode(' ', $files), self::EXIT_SUCCESS);\n // Check if files exist\n $this->assertTrue(is_file($archive), 'Archive not found');\n }", "title": "" }, { "docid": "0f355ee8dfbe7c9e6f3b1e03d159b3fe", "score": "0.51019925", "text": "public function testCrceBundleAdministrationGetAvailableTariff()\n {\n\n }", "title": "" }, { "docid": "5c2926d40a93f5c4c3685a5d6446b53d", "score": "0.5101594", "text": "public function getTar() {\r\n\t\tif($this->tar === null) {\r\n\t\t\t$this->tar = new Tar($this->getPath());\r\n\t\t}\r\n\t\t\t\r\n\t\treturn $this->tar;\r\n\t}", "title": "" }, { "docid": "e7fc9ac8dc8d2314c4479720090ecc31", "score": "0.50956887", "text": "function DobaOrderFile() {}", "title": "" }, { "docid": "67a76cdd222b584c47fdb82c6d3e3cc6", "score": "0.5079601", "text": "function test_unzipBogusArchive() {\n\t\t$hd = new HandsetDetection\\HD4($this->ultimateConfig);\n\t\t$hd->setTimeout(500);\n\n\t\tfile_put_contents('/tmp/test.zip', 'testy mc testery fish fish fish');\n\t\t$result = $hd->installArchive('/tmp/test.zip');\n\t\t$data = $hd->getReply();\n\t\t$this->assertFalse($result);\n\t\t$this->assertEquals(299, $data['status']);\n\t}", "title": "" }, { "docid": "454f2a967e03557e80fc14380de46036", "score": "0.5068536", "text": "function outputTarball($exportDir) {\n ob_end_clean();\n header('Content-Type: application/x-gzip');\n\n chdir($exportDir);\n\n $fp = popen(\"tar -cvzf - .\", \"r\");\n\n while (!feof($fp)) {\n echo fread($fp, 8192);\n }\n\n pclose($fp);\n}", "title": "" }, { "docid": "2510a78ae2367a9273c4442e2cf871ab", "score": "0.50622994", "text": "public function run() {\n // Open input xar\n $source= new Archive(new File($this->inputFile));\n $source->open(ARCHIVE_READ);\n \n if (!$source->contains($this->classToFilename($this->mainClass))) {\n $this->err->writeLinef('Class \"%s\" not found in source archive.', $this->mainClass);\n return 1;\n }\n \n // Open temporary xar\n $temp= new Archive(new TempFile());\n $temp->open(ARCHIVE_CREATE);\n $this->out->writeLine('===> Creating temporary archive:', $temp);\n \n while ($entry= $source->getEntry()) {\n $temp->addFileBytes(\n $entry,\n '',\n '',\n $source->extract($entry)\n );\n }\n \n // HACK, to be removed later\n $temp->addFileBytes(\n 'lang/archive/ArchiveSelfRunner.class.php',\n 'lang/archive/',\n 'ArchiveSelfRunner.class.php',\n FileUtil::getContents(new File('overrides/lang/archive/ArchiveSelfRunner.class.php'))\n );\n \n // Hack, to be removed later\n $temp->addFileBytes(\n 'net/xp_framework/experiments/ShowContents.class.php',\n 'net/xp_framework/experiments/',\n 'ShowContents.class.php',\n FileUtil::getContents(new File('cmd/ShowContents.class.php'))\n );\n \n $this->out->writeLine('===> Creating META-INF directory');\n $temp->addFileBytes(\n 'META-INF/runner.ini',\n 'META-INF',\n 'runner.ini',\n sprintf('; Runner file, created by %s\n;\n; $Id$\n;\n\n[main]\nclass=\"%s\"\n',\n $this->getClassName(),\n $this->mainClass\n ));\n $temp->create();\n \n // Final xar must contain lang.base.php\n $this->out->writeLine('===> Creating final xar');\n $target= new File($this->outputFile);\n $target->open(FILE_MODE_WRITE);\n \n $target->writeLine(substr(\n trim(FileUtil::getContents(new File($this->langBase))),\n 0,\n -2 // Remove ? >\n ));\n $target->write('__halt_compiler();');\n \n $target->write(FileUtil::getContents($temp->file));\n $target->close();\n \n $this->out->writeLine('===> Done.');\n return 0;\n }", "title": "" }, { "docid": "141ed42c8ac523c3bfe5ff26507a8f41", "score": "0.50514495", "text": "function PackData($TAR_id, $inp, $pack_to = '', $force_mode = '')\r\n {\r\n global $QF;\r\n static $packd_id = 1;\r\n\r\n if (!isset($this->TARs[$TAR_id]))\r\n return false;\r\n if (!strlen($inp))\r\n return false;\r\n\r\n extract($this->TARs[$TAR_id]);\r\n $TARcont =& $this->TARs[$TAR_id]['TARcont'];\r\n\r\n if (!$is_pack)\r\n {\r\n trigger_error('TARLIB: trying to pack data into archive opened for reading', E_USER_WARNING);\r\n return false;\r\n }\r\n\r\n if (!$pack_to)\r\n $pack_to = 'data_'.($packd_id++).'.bin';\r\n else\r\n $pack_to = qf_str_path($pack_to);\r\n\r\n if (in_array($pack_to, $TARcont))\r\n return false;\r\n\r\n if ($dir = qf_str_path(dirname($pack_to)))\r\n if (!in_array($dir, $TARcont))\r\n $this->MakeDir($TAR_id, $dir);\r\n\r\n $filesize = strlen($inp);\r\n $header = Array(\r\n 'name' => $pack_to,\r\n 'mode' => '644',\r\n 'uid' => fileowner(__FILE__),\r\n 'gid' => filegroup(__FILE__),\r\n 'size' => $filesize,\r\n 'time' => time(),\r\n 'type' => 0,\r\n );\r\n\r\n if (preg_match('#^[0-7]{3}$#', $force_mode))\r\n $header['mode'] = $force_mode;\r\n\r\n $header = $this->MakeRawHeader($header);\r\n\r\n $QF->EFS->Write($TARstream, $header);\r\n\r\n $start = 0;\r\n $datasize = (int) ceil($filesize/512)*512;\r\n $QF->EFS->Write($TARstream, $inp);\r\n if ($datasize > $filesize)\r\n $QF->EFS->Write($TARstream, str_repeat(chr(0), ($datasize - $filesize)));\r\n\r\n $TARcont[] = $pack_to;\r\n return True;\r\n }", "title": "" }, { "docid": "17b7cdef23b600d70de2b3dbfa08616e", "score": "0.5042985", "text": "function makelicense($info){\t\n\t/*$data=\"type:$type;\";\n\t$data.=\"userid:\".$info['userid'].\";\";\n\t$data.=\"username:\".$info['username'].\";\";\t\n\t$data.=\"softname:YSVNM;\";\n\t$data.=\"ver:1.1.0;\";\n\t$data.=\"softdesc:基于WEB的SVN综合管理工具;\";\n\t$data.=\"copy:深圳市耀泰明德科技有限公司;\";\t\n\t*/\n\t\n\t$data=\"\";\n\tforeach ($info as $k=>$v){\n\t\t$data.=\"$k:$v;\";\n\t}\n\t$data.=\"startdate:\".date(\"Y-m-d\").\";\";\n\t\n\t$type=$info[\"type\"];\n\t$deadline=$info[\"deadline\"];//$type==\"trialcopy\"?date(\"Y-m-d\",strtotime(\"+65 days\")):\"2099-11-11\";\n\t$data.=\"deadline:\".$deadline;\n\t\n\t$dir=\"out/\".$info['userid'].\"/\".$type;\n\t@mkdir($dir,0755,true);\n\t\n\t$key=$info['key'];\n\t$filekey=$dir.\"/license.key\";\n\tfile_put_contents($filekey, $key);\n\t$filelic=$dir.\"/license.lic\";\n\tfile_put_contents($filelic, encrypt($data, $key));\t\n\n\t\t$encode = mb_detect_encoding ( $data, array (\"ASCII\", \"UTF-8\", \"GB2312\", \"GBK\", \"BIG5\", \"EUC-CN\" ) );\t\t\n\t\t// 解决window执行命令 中文乱码的问题\n\t\tif ($encode == \"UTF-8\"){\n\t\t\t//$data = iconv ( 'UTF-8','EUC-CN', $data );\n\t\t}\n\t\t$filesrc=$dir.\"/license.src\";\n\t\tfile_put_contents($filesrc, $data);\n}", "title": "" }, { "docid": "f0e16628c6ace1e05184f72a7230d402", "score": "0.50264543", "text": "private function UnZipFile($zipfile, $name, $con) {\n\n //$unzip = $this->globalconf['unzip'];\n\t\t$zip = new ZipArchive();\n $tmpdir = $this->globalconf['basedir'].'/tmp';\n $longdirparts = explode('_', $name);\n $zipname = end($longdirparts);\n $dirparts = explode('.', $zipname);\n $targetdir = $dirparts[0];\n\n\n //UNPACK THE FILE INTO TMP DIR. SHOULD CREATE A DIR UNDER <ROOT>/tmp/$targetdir with all contents\n //`$unzip -o -d $tmpdir $zipfile`;\n\n\t\t$res = $zip->open($zipfile);\n\t\tif ($res === TRUE) {\n\t\t $zip->extractTo($tmpdir);\n\t\t $zip->close();\n\t\t} else {\n\t\t $message = \"The unzip process did not work. Please examine your zip file and make sure there are no errors.\";\n\t\t $this->ReturnData('error',$message);\n\t\t}\n\n\n if (file_exists($tmpdir.'/'.$targetdir)) {\n\n if (file_exists($tmpdir.'/'.$targetdir.'/ActionParams.json')){\n $actionparams = file_get_contents($tmpdir.'/'.$targetdir.'/ActionParams.json');\n $taskdescr = file_get_contents($tmpdir.'/'.$targetdir.'/description.txt');\n $actionparams = json_decode($actionparams);\n $modulesComply = $this->CheckModules($actionparams);\n if ($modulesComply === true) {\n $addAction = $this->AddAction($tmpdir.'/'.$targetdir.'/'.$actionparams->actioncodefile, $actionparams->actioncodefile,$con);\n if ($addAction) {\n $taskFields = $tmpdir.'/'.$targetdir.'/outputfields.txt';\n $addTaskParams = $this->AddTaskParams($taskdescr, $actionparams, $taskFields, $tmpdir.'/'.$targetdir, $con);\n if ($addTaskParams) {\n\n } else {//Something wrong with mysql insert/update of task table\n\n $message = \"Could not add Task Fields or params for the task. If you got this from the VirtuOps Action Library, please send an email to [email protected] and attach the package zip file.\";\n $this->ReturnData('error',$message);\n\n }\n\n } else {//Something wrong with copy\n $message = \"Could not copy the action script. Please make sure that your \".$tmpdir.\"/\".$targetdir.\"/\".$actionparams->actioncodefile.\" and your \".$this->globalconf['basedir'].\"/app/server/actiontext directory exists and are writable by the user that is running your web server.\";\n $this->ReturnData('error',$message);\n\n }\n\n\n } else { //perldoc failed\n $this->ReturnData('error',$modulesComply);\n }\n\n\n\n } else { //ActionParams.json is missing or corrupt\n\n $message = \"ActionParams.json is missing. Package install failed.\";\n $this->l->varErrorLog('{\"status\":\"error\",\"message\":\"ActionParams.json is missing. Package install failed.\"}');\n $this->ReturnData('error',$message);\n //exit();\n\n }\n\n\n\n } else { //UNZIP FAILED\n\n $message = \"Unzip operation failed\";\n $this->l->varErrorLog('{\"status\":\"error\",\"message\":\"Unzip operation failed\"}');\n $this->ReturnData('error',$message);\n //exit();\n\n }\n return \"Success\";\n\n }", "title": "" }, { "docid": "aee84f3cd8392fd0ea8850ae61b9cd31", "score": "0.50237364", "text": "function &_extract( $filename )\n\t{\n\t\tstatic $fp;\n\n\t\t$false = false; // Used to return false values in case an error occurs\n\n\t\t// Generate a return array\n\t\t$retArray = array(\n\t\t\t\"filename\"\t\t\t=> '',\t\t// File name extracted\n\t\t\t\"data\"\t\t\t\t=> '',\t\t// File data\n\t\t);\n\n\t\t$fp = @fopen($filename, 'rb');\n\n\t\t// If we can't open the file, return an error condition\n\t\tif( $fp === false ) return $false;\n\n\t\t// Go to the beggining of the file\n\t\trewind( $fp );\n\n\t\t// Read the signature\n\t\t$sig = fread( $fp, 3 );\n\n\t\tif ($sig != 'JPA') return false; // Not a JoomlaPack Archive?\n\n\t\t// Read and parse header length\n\t\t$header_length_array = unpack( 'v', fread( $fp, 2 ) );\n\t\t$header_length = $header_length_array[1];\n\n\t\t// Read and parse the known portion of header data (14 bytes)\n\t\t$bin_data = fread($fp, 14);\n\t\t$header_data = unpack('Cmajor/Cminor/Vcount/Vuncsize/Vcsize', $bin_data);\n\n\t\t// Load any remaining header data (forward compatibility)\n\t\t$rest_length = $header_length - 19;\n\t\tif( $rest_length > 0 ) $junk = fread($fp, $rest_length);\n\n\t\t// Get and decode Entity Description Block\n\t\t$signature = fread($fp, 3);\n\n\t\t// Check signature\n\t\tif( $signature == 'JPF' )\n\t\t{\n\t\t\t// This a JPA Entity Block. Process the header.\n\n\t\t\t// Read length of EDB and of the Entity Path Data\n\t\t\t$length_array = unpack('vblocksize/vpathsize', fread($fp, 4));\n\t\t\t// Read the path data\n\t\t\t$file = fread( $fp, $length_array['pathsize'] );\n\t\t\t// Read and parse the known data portion\n\t\t\t$bin_data = fread( $fp, 14 );\n\t\t\t$header_data = unpack('Ctype/Ccompression/Vcompsize/Vuncompsize/Vperms', $bin_data);\n\t\t\t// Read any unknwon data\n\t\t\t$restBytes = $length_array['blocksize'] - (21 + $length_array['pathsize']);\n\t\t\tif( $restBytes > 0 ) $junk = fread($fp, $restBytes);\n\n\t\t\t$compressionType = $header_data['compression'];\n\n\t\t\t// Populate the return array\n\t\t\t$retArray['filename'] = $file;\n\n\t\t\tswitch( $header_data['type'] )\n\t\t\t{\n\t\t\t\tcase 0:\n\t\t\t\t\t// directory\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 1:\n\t\t\t\t\t// file\n\t\t\t\t\tswitch( $compressionType )\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 0: // No compression\n\t\t\t\t\t\t\tif( $header_data['compsize'] > 0 ) // 0 byte files do not have data to be read\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$retArray['data'] = fread( $fp, $header_data['compsize'] );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase 1: // GZip compression\n\t\t\t\t\t\t\t$zipData = fread( $fp, $header_data['compsize'] );\n\t\t\t\t\t\t\t$retArray['data'] = gzinflate( $zipData );\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase 2: // BZip2 compression\n\t\t\t\t\t\t\t$zipData = fread( $fp, $header_data['compsize'] );\n\t\t\t\t\t\t\t$retArray['data'] = bzdecompress( $zipData );\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t@fclose($fp);\n\t\t\treturn $retArray;\n\t\t} else {\n\t\t\t// This is not a file header. This means we are done.\n\t\t\t@fclose($fp);\n\t\t\treturn $retArray;\n\t\t}\n\t}", "title": "" }, { "docid": "9ec1d9dcda76c5ef7e92d94946de88c8", "score": "0.50090665", "text": "function archive() {\n\n\t}", "title": "" }, { "docid": "b5ccc0d6e29e8e42854f2493ec125dce", "score": "0.49948984", "text": "public function testCommandExtractTarGz()\n {\n $command = $this->getApplication()->find(DownloadCommand::NAME);\n $commandTester = new CommandTester($command);\n $result = $commandTester->execute(array(\n 'command' => DownloadCommand::NAME,\n DownloadCommand::ARGUMENT_NAME => 'magento-1.9.0.0.tar.gz',\n DownloadCommand::ARGUMENT_DESTINATION => '/tmp/magento-targz.tar.gz',\n '--' . DownloadCommand::OPTION_EXTRACT => true,\n ));\n $this->assertEquals(0, $result);\n $this->assertContains('Complete', $commandTester->getDisplay());\n $this->assertFileExists('/tmp/magento-targz/index.php');\n }", "title": "" }, { "docid": "fae515319cab503141140c8db5ca1390", "score": "0.49714556", "text": "function odtExtract($url,$dir){\n $zip = new ZipArchive; // INSTANCIA A CLASSE ZIPARCHIVE\n $fileOdt = PATHAPP.'/files/'.$url; // PEGA O CAMINHO DO ARQUIVO CONCATENANDO A URL\n $fileZip = PATHAPP.'/files/'.$url.\".zip\"; // ADD UMA EXTENCAO ZIP NO FINAL (CRIANDO OUTRO CAMINHO)\n copy($fileOdt, $fileZip); // FAZ UMA COPIA DO ARQUIVO PARA UM OUTRO ARQUIVO .ZIP\n if ($zip->open($fileZip)=== TRUE) { // TENTA ABRIR O ZIP\n $zip->extractTo(PATHAPP.'/files/'.$dir); // EXTRAI O ZIP PARA A PASTA\n $zip->close();\n }\n}", "title": "" }, { "docid": "c81bb7b8094dd8c684da97a7e9e1fe3d", "score": "0.49552473", "text": "public static function get() : TarAdapter {\n $container = AdapterContainer::load();\n $container['va_gov_cms_tar'] = function ($container) {\n return TarAdapter::newInstance(\n $container['executable-finder'],\n $container['resource-manager'],\n $container['gnu-tar.inflator'],\n $container['gnu-tar.deflator']\n );\n };\n\n return $container['va_gov_cms_tar'];\n }", "title": "" }, { "docid": "f809cc171aca96eeca1bca5609813018", "score": "0.49311417", "text": "public function alupload(){\n \t//die();\n \trequire_once(PLUGINS_PATH.'/aliyun/autoload.php');\n\n\t\t// 阿里云主账号AccessKey拥有所有API的访问权限,风险很高。强烈建议您创建并使用RAM账号进行API访问或日常运维,请登录 https://ram.console.aliyun.com 创建RAM账号。\n\t\t$accessKeyId = \"LTAIBUQrnfEHh9hH\";\n\t\t$accessKeySecret = \"PfipJYzbcfjVHUSTYEcA1Cgi0eQeUx\";\n\t\t// Endpoint以杭州为例,其它Region请按实际情况填写。\n\t\t$endpoint = \"https://oss-cn-huhehaote-internal.aliyuncs.com\";\n\t\t// 存储空间名称\n\t\t$bucket= \"bogosignb5\";\n\t\t// 文件名称\n\t\t$object = \"o_1dh1029i61nnj1vkvr5e1es.ipa\";\n\t\t// <yourLocalFile>由本地文件路径加文件名包括后缀组成,例如/users/local/myfile.txt\n\t\t$filePath = \"upload/super_signature_ipa/o_1dh1029i61nnj1vkvr5e1es51paja.ipa\";\n\n\t\ttry{\n\t\t $ossClient = new OssClient($accessKeyId, $accessKeySecret, $endpoint);\n\n\t\t $ossClient->uploadFile($bucket, $object, $filePath);\n\t\t} catch(OssException $e) {\n\t\t printf(__FUNCTION__ . \": FAILED\\n\");\n\t\t printf($e->getMessage() . \"\\n\");\n\t\t return;\n\t\t}\n\t\tprint(__FUNCTION__ . \": OK\" . \"\\n\");\n }", "title": "" }, { "docid": "15c028584f52f6d61bd8c6e3b4712f58", "score": "0.49194112", "text": "function dfm_dl_serve_archive($info) {\n if (!class_exists('ZipArchive')) {\n drupal_set_message(t('Missing PHP Class: ZipArchive.'), 'error');\n return FALSE;\n }\n // Create temp file\n $temp = drupal_tempnam('temporary://', 'dfm');\n register_shutdown_function('file_unmanaged_delete', $temp);\n // Initiate zip\n $zip = new ZipArchive;\n if ($zip->open(drupal_realpath($temp), ZipArchive::OVERWRITE) !== TRUE) {\n drupal_set_message(t('Unable to create a zip archive in temp directory.'), 'error');\n return FALSE;\n }\n // Add folders\n if (!empty($info['folders'])) {\n foreach ($info['folders'] as $localname) {\n $zip->addEmptyDir($localname);\n }\n }\n // Add files\n if (!empty($info['files'])) {\n foreach ($info['files'] as $localname => $path) {\n $zip->addFile(drupal_realpath($path), $localname);\n }\n }\n // Finalize\n if ($zip->close() !== TRUE) {\n drupal_set_message(t('Error closing the zip archive.'), 'error');\n return FALSE;\n }\n // Serve file\n $headers = array(\n 'Content-type' => 'application/zip',\n 'Content-Length' => filesize($temp),\n 'Content-Disposition' => 'attachment; filename=\"' . basename($temp) . '.zip\"',\n );\n file_transfer($temp, $headers);\n}", "title": "" }, { "docid": "19fba7ffe594dcabdf47c8357ae5a765", "score": "0.49106476", "text": "private function archive()\n {\n $command = sprintf('tar -czf %s -C %s . --exclude .gitkeep', $this->backupConfiguration->getArchiveOutputPath(), $this->backupConfiguration->getTempDirectory());\n exec($command);\n }", "title": "" }, { "docid": "893ffdc030daf6b2b5001254292d213f", "score": "0.48995388", "text": "public function main() {\n // refer to http://pear.php.net/package/PEAR_PackageFileManager2/docs/latest/PEAR_PackageFileManager2/PEAR_PackageFileManager2.html\n PEAR_Frontend::setFrontendObject(new PEARCraterTask_Frontend($this));\n $package = new PEAR_PackageFileManager2();\n $this->_initOptions();\n $a = $package->setOptions($this->_options);\n if (PEAR::isError($a)) {\n $this->log($a->getMessage(), Project::MSG_ERR);\n exit(-1);\n }\n\n $package->setPackage((string) $this->_name);\n $package->setSummary((string) $this->_summary);\n\n $desc = preg_replace(\"/^({$this->_description->indention_type}{{$this->_description->indentions_to_remove}}|\\t)+/m\", '', (string) $this->_description);\n $package->setDescription($desc);\n\n $package->setChannel((string) $this->_channel);\n $package->setAPIVersion($this->_version->api);\n $package->setReleaseVersion($this->_version->release);\n $package->setAPIStability($this->_stability->api);\n $package->setReleaseStability($this->_stability->release);\n\n // TODO: allow different types\n $package->setPackageType($this->_type);\n $package->addRelease();\n if (!is_null($this->_dependencies->php)) {\n $this->log('Using explicit PHP minimum version: ' . $this->_dependencies->php->minimum_version);\n $package->setPhpDep($this->_dependencies->php->minimum_version);\n } else {\n $this->log('Using current PHP version as minimum: ' . phpversion());\n $package->setPhpDep(phpversion());\n }\n\n if (!is_null($this->_dependencies->pear)) {\n $this->log('setting minimum PEAR version: ' . $this->_dependencies->pear->minimum_version);\n $package->setPearinstallerDep(\n $this->_dependencies->pear->minimum_version, $this->_dependencies->pear->maximum_version, $this->_dependencies->pear->recommended_version, $this->_dependencies->pear->exclude_version\n );\n } else {\n $this->log('setting minimum PEAR version to currently installed version');\n $pear_version = PEAR_Config::singleton()->getRegistry()->packageInfo('PEAR', 'version');\n $this->log('minimum PEAR version: ' . $pear_version);\n $package->setPearinstallerDep(\n PEAR_Config::singleton()->getRegistry()->packageInfo('PEAR', 'version')\n );\n }\n\n foreach ($this->_maintainers as $maintainer) {\n $this->log(\"adding maintainer [{$maintainer->user}/{$maintainer->name}] with role [{$maintainer->role}]\");\n $package->addMaintainer(\n $maintainer->role, $maintainer->user, $maintainer->name, $maintainer->email, $maintainer->active\n );\n }\n\n // handle dependencies\n if (!empty($this->_dependencies)) {\n $this->log('adding dependencies');\n if (count($this->_dependencies->groups) > 0) {\n $this->log('found dependency groups');\n foreach ($this->_dependencies->groups as $group) {\n $this->log(\"adding [{$group->name}] :: [{$group->hint}]\");\n $package->addDependencyGroup($group->name, $group->hint);\n foreach ($group->packages as $sub_package) {\n $package->addGroupPackageDepWithChannel(\n 'subpackage', $group->name, $sub_package->name, $sub_package->channel, '0.0.1'\n );\n }\n }\n }\n if (count($this->_dependencies->packages) > 0) {\n $this->log('found dependencies');\n foreach ($this->_dependencies->packages as $dependency) {\n $this->log(\"adding following dependency: {$dependency->channel}/{$dependency->name}\");\n $package->addPackageDepWithChannel(\n $dependency->type, $dependency->name, $dependency->channel, $dependency->minimum_version, $dependency->maximum_version, $dependency->recommended_version, $dependency->exclude_version, $dependency->providesextension, $dependency->nodefault\n );\n }\n }\n\n if (count($this->_dependencies->extensions) > 0) {\n $this->log('adding extension dependencies');\n foreach ($this->_dependencies->extensions as $extension) {\n $this->log(\"adding ext dependency for: {$extension->name}\");\n $package->addExtensionDep(\n $extension->type, $extension->name, $extension->minimum_version, $extension->maximum_version, $extension->recommended_version, $extension->extension\n );\n }\n }\n }\n\n foreach ($this->_changelogs as $changelog) {\n $this->log(\"adding changelog for prior release [{$changelog->version}]\");\n $changelog->package = $package;\n $package->setChangelogEntry(\n $changelog->version, $changelog->toArray()\n );\n\n if (is_null($this->_notes) && $package->getVersion() == $changelog->version) {\n $this->log(\"no package notes specified, using changelog entry\");\n $this->_notes = $changelog->contents;\n }\n }\n\n foreach ($this->_replacements as $replacement) {\n $replacement->isValid();\n\n $this->log(\"adding replace from [{$replacement->from}] to [{$replacement->to}]\");\n $package->addReplacement(\n $replacement->path, $replacement->type, $replacement->from, $replacement->to\n );\n }\n\n foreach ($this->_releases as $release) {\n $this->log('adding new release');\n $package->addRelease();\n foreach ($release->install as $install) {\n $this->log(\"installing [{$install->name}] as [{$install->as}]\");\n $package->addInstallAs($install->name, $install->as);\n }\n }\n\n $notes = preg_replace(\"/^( {4}|\\t)+/m\", '', (string) $this->_notes);\n $package->setNotes($notes);\n\n\n $package->setLicense($this->_license->license, $this->_license->uri);\n $package->generateContents();\n $e = $package->writePackageFile();\n if (PEAR::isError($e)) {\n throw new PEARCraterTask_Exception(\n 'unable to write package.xml file: ' . $e->getMessage()\n );\n }\n }", "title": "" }, { "docid": "eb213e8d3483f12dc554a5d781765b36", "score": "0.4884246", "text": "function __construct($asset=NULL,$versioning_method = self::VERSIONING_NONE,$ssl=FALSE,$squash_prefixes = array('http://www.trutv.com'),$passthru_prefixes=array('http://'))\n {\n // automatically sets mutable variable new_asset\n try {\n if(!empty($asset))\n $this->setAsset($asset); // automatically renders squashed_asset\n else{\n $this->setAsset(self::SPACER);\n throw new AssetManagerException('Asset not defined properly, set to default value.');\n }\n }catch (AssetManagerException $e) {\n\n }\n\n // get file extension (type)\n try {\n $matches=array();\n if(preg_match(\"/\\.([^\\.]+)$/\", $this->new_asset, $matches))\n $this->type = $matches[1];\n else\n throw new AssetManagerException('Cannot determine asset type from filename.');\n }catch (AssetManagerException $e) {\n\n }\n\n // check if file extension is acceptable\n try {\n if(!in_array($this->type,$this->static_assets))\n throw new AssetManagerException('Asset doesn\\'t appear to be of an acceptable type: '.implode(',',$this->static_assets).'.');\n }catch (AssetManagerException $e) {\n\n }\n\n // set the document root, in case $_SERVER is not available\n $this->docroot = defined('DOCUMENT_ROOT') ? DOCUMENT_ROOT : '/www/data/ubik.trutv.com' ;\n\n // get the full path to the file\n $this->file = $this->docroot.$this->new_asset;\n\n // set the versioning method, defaulting to VERSIONING_NONE if there are issues\n try {\n if($versioning_method >= self::VERSIONING_NONE && $versioning_method <= self::VERSIONING_TIMESTAMP)\n $this->versioning_method=$versioning_method;\n else {\n $this->versioning_method=self::VERSIONING_NONE;\n throw new AssetManagerException('Versioning method out of range: '.$versioning_method.'. Setting to VERSIONING_NONE.');\n }\n }catch (AssetManagerException $e) {\n\n }\n\n // set fingerprint, if needed\n if(in_array($this->versioning_method,array(self::VERSIONING_QUERYSTRING,self::VERSIONING_PATH))) {\n $this->fingerprint=substr(sha1_file($this->file),0,7);\n if(empty($this->fingerprint)) {;}//throw new AssetManagerException('Error creating fingerprint.');\n }\n\n // other stuff\n $this->ssl=$ssl; // TODO: implement ssl properly\n $this->squash_prefixes=$squash_prefixes;\n $this->passthru_prefixes=$passthru_prefixes;\n $this->spacer=isset($GLOBALS['assetmanager_spacer']) ? $GLOBALS['assetmanager_spacer'] : self::SPACER;\n\n $this->cdn = isset($GLOBALS['cdnval']) ? $GLOBALS['cdnval'] : self::TEST_CDN;\n $this->cdnff = isset($GLOBALS['cdnvalff']) ? $GLOBALS['cdnvalff'] : self::TEST_CDNFF;\n $this->cdnzip = isset($GLOBALS['cdnvalzip']) ? $GLOBALS['cdnvalzip'] : self::TEST_CDNZIP;\n $this->cdnssl = isset($GLOBALS['cdnvalssl']) ? $GLOBALS['cdnvalssl'] : self::TEST_CDNSSL;\n $this->cdnnow = isset($GLOBALS['cdnvalnow']) ? $GLOBALS['cdnvalnow'] : self::TEST_CDNNOW;\n $this->cdnmod = isset($GLOBALS['cdnvalmod']) ? $GLOBALS['cdnvalmod'] : self::TEST_CDNMOD;\n\n }", "title": "" }, { "docid": "ae7a60b3021a165b2b925f7dda4150e4", "score": "0.48811254", "text": "function ExtractTO(){\n\t\tif(!empty($this->pointPackageStart)){\n\t\t\t$tmpfname = tempnam(sys_get_temp_dir(), \"ebk\");\n\t\t\t$fp = fopen($this->EBKPath, \"r+\");\n\t\t\tfseek($fp, $this->pointerPackageStart);\n\t\t\t$temp = fopen($tmpfname, \"w\");\n\t\t\t\n\t\t\twhile (!feof($fp)) {\n\t\t\t fwrite($temp, fread($fp, 8192));\n\t\t\t}\n\t\t\tfclose($fp);\n\t\t\tfclose($temp);\n\t\t}\n\t\t\n\t\t$workpath = HostManager::getBookshelfBase(false,true).'work/';\n\t\tcommon::unzip($tmpfname,$workpath);\n\t\t@unlink($tmpfname);\n\t\t\n\t\t//set sysfiles path\n\t\tif(is_file($workpath.'data/cover.jpg')){\n\t\t\t$this->CoverImagePath = $workpath.'data/cover.jpg';\n\t\t}else{\n\t\t\tcopy(ROOT_PATH.'/images/cover.jpg',$workpath.'data/');\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "0f805a7ab12c7442937d25b3f57113f0", "score": "0.48742503", "text": "function gzclose($zp)\n{\n}", "title": "" }, { "docid": "109c5fadbcec089b83beb2528dc58ffa", "score": "0.48734584", "text": "function aifrd($aifdir)\n{\n $GLOBALS['g_lin'] = '0';\n if (aifck($aifdir)) {\n $aidty = $GLOBALS['g_lin'];\n if ($aidty == '4') {\n $aidch = curl_init();\n curl_setopt($aidch, CURLOPT_URL, $aifdir);\n curl_setopt($aidch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($aidch, CURLOPT_CONNECTTIMEOUT, 10);\n $aidur = curl_exec($aidch);\n } elseif ($aidty == '2') {\n $aidur = readfile($aifdir);\n //$aidur=file_get_contents($aifdir);\n } else {\n $aidur = '';\n }\n return $aidur;\n }\n}", "title": "" }, { "docid": "833c59d193ee218c940a2c08ea5574d9", "score": "0.48670503", "text": "public function getInfo() {\n if (file_exists($this->path)) {\n $this->fd = fopen($this->path, 'rb');\n } else {\n return false;\n }\n\n $tags = new _();\n $size = filesize($this->path);\n fseek($this->fd, $size - 128);\n $header = fread($this->fd, 128);\n fseek($this->fd, 0);\n\n /* Process an ID3v1[.1] header if present */\n $v1 = new _();\n $v1->version = '1.0';\n\n if (substr($header, 0, 3) === 'TAG') {\n $v1->title = $this->getString($header, 3, 30);\n $v1->artist = $this->getString($header, 33, 30);\n $v1->album = $this->getString($header, 63, 30);\n $v1->year = $this->getString($header, 94, 4);\n\n if (substr($header, 125, 2) == 0) {\n $v1->comment = $this->getString($header, 97, 28);\n $v1->version = '1.1';\n $v1->track = intval($this->getUint8($header, 126));\n } else {\n $v1->comment = $this->getString($header, 97, 30);\n }\n\n $genre = $this->getUint8($header, 127);\n\n if ($genre <= count(FrameInfo::$Genres)) {\n $v1->genre = FrameInfo::$Genres[$genre];\n }\n }\n\n $tags->v1 = $v1;\n\n /* Process ID3v2.[2,3] frames if present */\n $v2 = new _();\n\n\n /* 14 bytes (10 for ID3v2 header, 4 for possible extended header size) */\n $header = fread($this->fd, 14);\n $headerSize = 10;\n\n if (substr($header, 0, 3) == 'ID3') {\n $major = $this->getUint8($header, 3);\n $minor = $this->getUint8($header, 4);\n $flags = $this->getUint8($header, 5);\n\n $v2->version = [$major, $minor];\n $v2->flags = $flags;\n\n /* Synchronization not supported */\n if (($flags & 0x80) !== 0) {\n return;\n }\n\n /* Increment the header size offset if an extended header exists */\n if (($flags & 0x40) != 0) {\n $headerSize += $this->getUint32Sync($header, 11);\n }\n\n $tagSize = $this->getUint32Sync($header, 6);\n fseek($this->fd, $headerSize);\n $buffer = fread($this->fd, $tagSize);\n fclose($this->fd);\n $position = 0;\n\n while ($position < strlen($buffer)) {\n $isFrame = true;\n\n for ($i = 0; $i < 3; $i++) {\n $frameBit = $this->getUint8($buffer, $position + $i);\n\n if (($frameBit < 0x41 || $frameBit > 0x5A) && ($frameBit < 0x30 || $frameBit > 0x39)) {\n $isFrame = false;\n }\n }\n\n if (!$isFrame) {\n break;\n }\n\n $frame = new _();\n /* < v2.3, frame ID is 3 chars, size is 3 bytes making a total size of 6 bytes */\n /* >= v2.3, frame ID is 4 chars, size is 4 bytes, flags are 2 bytes, total 10 bytes */\n if ($v2->version[0] < 3) {\n $frameSize = $this->getUint24($buffer, $position + 3) + 6;\n $slice = substr($buffer, $position, $frameSize);\n $frame = $this->parseFrame22($slice);\n } else {\n $frameSize = $this->getUint32($buffer, $position + 4) + 10;\n $slice = substr($buffer, $position, $frameSize);\n $frame = $this->parseFrame23($slice);\n }\n\n $position += strlen($slice);\n\n if ($frame)\n $v2->{$frame->tag} = $frame->value;\n }\n }\n\n $tags->v2 = $v2;\n\n $tags->artist = $v2->artist ? $v2->artist : $v1->artist;\n $tags->album = $v2->album ? $v2->album : $v1->album;\n $tags->title = $v2->title ? $v2->title : $v1->title;\n $tags->track = $v2->track ? $v2->track : $v1->track;\n $tags->year = $v2->year ? $v2->year : $v1->year;\n $tags->genre = $v2->genre ? $v2->genre : $tags->v1->genre;\n\n return $tags;\n }", "title": "" }, { "docid": "85690589348b2f2282493edb8aaec959", "score": "0.48591477", "text": "function vendor_1099IRS($file_name) {\r\n $f1 = urldecode($_GET['f1']);\r\n $f2 = urldecode($_GET['f2']);\r\n $f3 = urldecode($_GET['f3']);\r\n $f4 = urldecode($_GET['f4']);\r\n $f5 = urldecode($_GET['f5']);\r\n $f6 = urldecode($_GET['f6']);\r\n $f7 = urldecode($_GET['f7']);\r\n $f8 = urldecode($_GET['f8']);\r\n $f9 = urldecode($_GET['f9']);\r\n $f10 = urldecode($_GET['f10']);\r\n $f13 = urldecode($_GET['f13']);\r\n $f14 = urldecode($_GET['f14']);\r\n $f15a = urldecode($_GET['f15a']);\r\n $f15b = urldecode($_GET['f15b']);\r\n $f16 = urldecode($_GET['f16']);\r\n $f17 = urldecode($_GET['f17']);\r\n $f18 = urldecode($_GET['f18']);\r\n $tax_id = urldecode($_GET['tax_id']);\r\n $vendor_hash = $_GET['vendor_hash'];\r\n \t$vendor_acctno = urldecode($_GET['vendor_acctno']);\r\n \t$vendor_tinNot = $_GET['vendor_tinNot'];\r\n \t$f_void = $_GET['f_void'];\r\n \t$f_corrected = $_GET['f_corrected'];\r\n \t$year = $_GET['year'];\r\n\r\n \t$vendors = new vendors();\r\n \t$vendors->fetch_master_record($vendor_hash);\r\n\r\n \t$recipient = array();\r\n \t$recipient['name'] = $vendors->current_vendor['vendor_name'];\r\n \t$file_name = preg_replace('/[^A-Za-z0-9]/', \"\", $recipient['name']);\r\n \tif (strlen($file_name) > 12)\r\n $file_name = substr($file_name,0,12);\r\n\r\n $file_name = strtolower($file_name).\"_f1099-misc.pdf\";\r\n\r\n if ( $vendors->current_vendor['street'] ) {\r\n\r\n \t$_address = explode(\"\\n\", stripslashes($vendors->current_vendor['street']) );\r\n \tif ( count($_address) > 2 ) {\r\n\r\n \t\t$recipient['address'] = \"{$_address[0]}\\n{$_address[1]}\";\r\n \t\tfor ( $i = 2; $i <= count($_address); $i++ )\r\n \t\t\t$recipient['address'] .= \" {$_address[$i]}\";\r\n\r\n \t} else\r\n \t$recipient['address'] = stripslashes($vendors->current_vendor['street']);\r\n }\r\n\r\n\r\n \t$recipient['city_state_zip'] = stripslashes($vendors->current_vendor['city']) . \", {$vendors->current_vendor['state']} {$vendors->current_vendor['zip']}\";\r\n \t$recipient['tax_id'] = $vendors->current_vendor['tax_id'];\r\n\r\n $payer = array();\r\n $payer['name'] = (defined('MY_COMPANY_NAME') ? MY_COMPANY_NAME : '');\r\n $payer['address'] = (defined('MY_COMPANY_ADDRESS') ? MY_COMPANY_ADDRESS : '');\r\n\r\n if (defined('MY_COMPANY_ZIP') && !ereg(MY_COMPANY_ZIP,$payer['address']))\r\n $payer['address'] .= \" \".MY_COMPANY_ZIP;\r\n\r\n $payer['phone'] = (defined('MY_COMPANY_PHONE') ? MY_COMPANY_PHONE : '');\r\n\r\n $pdf = new FPDI();\r\n\r\n $template_pages = array(1,2,3);\r\n\r\n for ($i = 0; $i < 3; $i++) {\r\n\t\t $pdf->AddPage();\r\n\t\t\t\t// Use a hard coded templates directory for now because only the 2011 form works \r\n\t\t\t\t// $template_file = realpath( TEMPLATE_DIR . \"pdf/f1099msc_{$year}.pdf\" );\r\n\t\t $template_file = realpath( \"/var/www/html/templates.dealer-choice.com/pdf/f1099msc_11.pdf\" );\r\n\t\t if ( ! $template_file || ! file_exists( $template_file ) ) {\r\n\t\r\n\t print \"PDF Error. Can't load PDF template for report printing\";\r\n\t exit;\r\n\t\t }\r\n\t\r\n\t\t $pdf->setSourceFile( $template_file );\r\n\t\r\n\t\t // import page 1\r\n\t\t $tplIdx = $pdf->importPage($template_pages[$i],'/MediaBox');\r\n\t\r\n\t\t $page_size = $pdf->getTemplateSize($tplIdx);\r\n\t\r\n\t\t // use the imported page and place it at point 10,10 with a width of 100 mm\r\n\t\t $pdf->useTemplate($tplIdx,0, 0, $page_size['w'], $page_size['h']);\r\n\t\r\n\t\r\n\t\r\n\t\t // now write some text above the imported page\r\n\t\t $pdf->SetFont('Arial');\r\n\t\t $pdf->SetFontSize('10');\r\n\t\t $pdf->SetTextColor(0,0,0);\r\n\t\r\n\t\t if ($i != 2 && $i != 3) {\r\n\t\t\t $pdf->SetXY(60.0,11.0);\r\n\t\t\t $pdf->Write(0,($f_void ? 'X' : NULL));\r\n\t\t }\r\n\t $pdf->SetXY(80.0,11.0);\r\n\t $pdf->Write(0,($f_corrected ? 'X' : NULL));\r\n\t\r\n\t\t $pdf->SetLeftMargin(18);\r\n\t\r\n\t\t $pdf->SetY(26);\r\n\t\t $pdf->Write(0,$payer['name']);\r\n\t\t $pdf->Ln(5);\r\n\t\t $pdf->Write(4,$payer['address']);\r\n\t\t $pdf->Ln(6);\r\n\t\t $pdf->Write(4,$payer['phone']);\r\n\t\r\n\t\t $pdf->SetY(61);\r\n\t\t $pdf->Write(0,$tax_id);\r\n\t\r\n\t\t $pdf->SetX(61);\r\n\t\t $pdf->Write(0,$recipient['tax_id']);\r\n\t\r\n\t\t $pdf->SetXY(16,72);\r\n\t\t $pdf->Write(0,$recipient['name']);\r\n\t\r\n\t\t $pdf->SetXY(16,84);\r\n\t\t $pdf->Write(4,$recipient['address']);\r\n\t\r\n\t\t $pdf->SetXY(16,97);\r\n\t\t $pdf->Write(0,$recipient['city_state_zip']);\r\n\t\r\n\t\t $pdf->SetXY(15,110);\r\n\t\t $pdf->Write(0,$vendor_acctno);\r\n\t\r\n\t\t $pdf->SetXY(88.5,109.5);\r\n\t\t $pdf->Write(0,($vendor_tinNot ? 'X' : NULL));\r\n\t\r\n\t\t $pdf->SetXY(14,125.0);\r\n\t\t $pdf->Write(0,$f15a);\r\n\t\r\n\t\t $pdf->SetXY(57,125.0);\r\n\t\t $pdf->Write(0,$f15b);\r\n\t\r\n\t\t $pdf->SetXY(100,23.5);\r\n\t\t $pdf->Write(0,$f1);\r\n\t\t $pdf->SetXY(100,36.5);\r\n\t\t $pdf->Write(0,$f2);\r\n\t\t $pdf->SetXY(100,45.0);\r\n\t\t $pdf->Write(0,$f3);\r\n\t\t $pdf->SetXY(100,61.5);\r\n\t\t $pdf->Write(0,$f5);\r\n\t\t $pdf->SetXY(100,79);\r\n\t\t $pdf->Write(0,$f7);\r\n\t\t $pdf->SetXY(129.0,91.5);\r\n\t\t $pdf->Write(0,($f9 ? 'X' : NULL));\r\n\t\t $pdf->SetXY(100,113.0);\r\n\t\t $pdf->Write(0,$f13);\r\n\t\t $pdf->SetXY(100,121.5);\r\n\t\t $pdf->Write(0,$f16);\r\n\t\r\n\t\t $pdf->SetXY(136,45);\r\n\t\t $pdf->Write(0,$f4);\r\n\t\t $pdf->SetXY(136,62.0);\r\n\t\t $pdf->Write(0,$f6);\r\n\t\t $pdf->SetXY(136,79.0);\r\n\t\t $pdf->Write(0,$f8);\r\n\t\t $pdf->SetXY(136,91.5);\r\n\t\t $pdf->Write(0,$f10);\r\n\t\t $pdf->SetXY(136,112.5);\r\n\t\t $pdf->Write(0,$f14);\r\n\t\t $pdf->SetXY(136,121);\r\n\t\t $pdf->Write(0,$f17);\r\n\t\r\n\t\t $pdf->SetXY(172,121.5);\r\n\t\t $pdf->Write(0,$f18);\r\n\t\r\n\t\t $pdf->endTemplate($tplIdx);\r\n }\r\n\r\n $pdf->Output($file_name, 'I');\r\n\t\texit;\r\n }", "title": "" }, { "docid": "5518e5f696b11ccc78eadd093c95850f", "score": "0.4852483", "text": "public function next() {\n\t\tif ( $this->seekToEnd > 0 ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t//Skip the data and the footer if they haven't been uncompressed\n\t\tif ( $this->header !== null && $this->data === null ) {\n\t\t\t$toSkip = $this->header['CLen'];\n\t\t\t$error = $this->source->skip( $toSkip );\n\t\t\tif ( ( new PEAR )->isError( $error ) ) {\n\t\t\t\treturn $error;\n\t\t\t}\n\t\t}\n\n\t\t$this->offset = 0;\n\t\t$this->data = null;\n\n\t\t//Read the header\n\t\t$header = $this->source->getData( 4 );\n\t\t// Handle PK00PK archives\n\t\tif ( $header == \"\\x50\\x4b\\x30\\x30\" ) { //PK00\n\t\t\t$header = $this->source->getData( 4 );\n\t\t}\n\t\t// Sometimes this header is used to tag the data descriptor section\n\t\tif ( $header == \"\\x50\\x4b\\x07\\x08\" ) {\n\t\t\t// Read out the data descriptor (always 12 bytes)\n\t\t\t$this->source->getData( 12 );\n\n\t\t\t// Get a new header from the file\n\t\t\t$header = $this->source->getData( 4 );\n\t\t}\n\t\tif ( ( new PEAR )->isError( $header ) ) {\n\t\t\treturn $header;\n\t\t}\n\t\tif ( $header == \"\\x50\\x4b\\x03\\x04\" ) {\n\t\t\t//New entry\n\t\t\t$header = $this->source->getData( 26 );\n\t\t\tif ( ( new PEAR )->isError( $header ) ) {\n\t\t\t\treturn $header;\n\t\t\t}\n\t\t\t$this->header = unpack(\n\t\t\t\t\"vVersion/vFlag/vMethod/vTime/vDate/VCRC/VCLen/VNLen/vFile/vExtra\",\n\t\t\t\t$header );\n\n\t\t\t//Check the compression method\n\t\t\tif ( $this->header['Method'] != 0 &&\n\t\t\t $this->header['Method'] != 8 &&\n\t\t\t $this->header['Method'] != 12 ) {\n\t\t\t\treturn PEAR::raiseError( \"File_Archive_Reader_Zip doesn't \" .\n\t\t\t\t \"handle compression method {$this->header['Method']}\" );\n\t\t\t}\n\t\t\tif ( $this->header['Flag'] & 1 ) {\n\t\t\t\treturn PEAR::raiseError( \"File_Archive_Reader_Zip doesn't \" .\n\t\t\t\t \"handle encrypted files\" );\n\t\t\t}\n\t\t\tif ( $this->header['Flag'] & 8 ) {\n\t\t\t\tif ( $this->centralDirectory === null ) {\n\t\t\t\t\t$this->readCentralDirectory();\n\t\t\t\t}\n\t\t\t\t$centralDirEntry = $this->centralDirectory[ count( $this->files ) ];\n\n\t\t\t\t$this->header['CRC'] = $centralDirEntry['CRC'];\n\t\t\t\t$this->header['CLen'] = $centralDirEntry['CLen'];\n\t\t\t\t$this->header['NLen'] = $centralDirEntry['NLen'];\n\t\t\t}\n\t\t\tif ( $this->header['Flag'] & 32 ) {\n\t\t\t\treturn PEAR::raiseError( \"File_Archive_Reader_Zip doesn't \" .\n\t\t\t\t \"handle compressed patched data\" );\n\t\t\t}\n\t\t\tif ( $this->header['Flag'] & 64 ) {\n\t\t\t\treturn PEAR::raiseError( \"File_Archive_Reader_Zip doesn't \" .\n\t\t\t\t \"handle strong encrypted files\" );\n\t\t\t}\n\n\t\t\t$this->currentStat = array(\n\t\t\t\t7 => $this->header['NLen'],\n\t\t\t\t9 => mktime(\n\t\t\t\t\t( $this->header['Time'] & 0xF800 ) >> 11, //hour\n\t\t\t\t\t( $this->header['Time'] & 0x07E0 ) >> 5, //minute\n\t\t\t\t\t( $this->header['Time'] & 0x001F ) >> 1, //second\n\t\t\t\t\t( $this->header['Date'] & 0x01E0 ) >> 5, //month\n\t\t\t\t\t( $this->header['Date'] & 0x001F ), //day\n\t\t\t\t\t( ( $this->header['Date'] & 0xFE00 ) >> 9 ) + 1980 //year\n\t\t\t\t)\n\t\t\t);\n\t\t\t$this->currentStat['size'] = $this->currentStat[7];\n\t\t\t$this->currentStat['mtime'] = $this->currentStat[9];\n\n\t\t\t$this->currentFilename = $this->source->getData( $this->header['File'] );\n\n\t\t\t$error = $this->source->skip( $this->header['Extra'] );\n\t\t\tif ( ( new PEAR )->isError( $error ) ) {\n\t\t\t\treturn $error;\n\t\t\t}\n\n\t\t\t$this->files[] = array(\n\t\t\t\t'name' => $this->currentFilename,\n\t\t\t\t'stat' => $this->currentStat,\n\t\t\t\t'CRC' => $this->header['CRC'],\n\t\t\t\t'CLen' => $this->header['CLen']\n\t\t\t);\n\n\t\t\treturn true;\n\t\t} else {\n\t\t\t//Begining of central area\n\t\t\t$this->seekToEnd = 4;\n\t\t\t$this->currentFilename = null;\n\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "0d6e7bfebb78283a12472ef4a7ba924d", "score": "0.48479", "text": "public function autoExtract() {\n\t\t$options = null;\n\t\tif ($this->settings['file_ext'] == 'tar') {\n\t\t\t$options = 'xf';\n\t\t} elseif ($this->settings['file_ext'] == 'tgz') {\n\t\t\t$options = 'xzf';\n\t\t} else {\n\t\t\t$this->error['incompatibleExtension'] = 'extension not compatible with extraction process.';\n\t\t\t$this->error['extra'] = $this->settings['full_install_path'] . $this->settings['filename'];\n\t\t\t$this->errorDie();\n\t\t}\n\t\t$command = 'cd ' . $this->settings['full_install_path'] . '; tar --no-same-owner -' . $options . ' ' . $this->settings['path_to_file'] . ' 2>/dev/null';\n\t\t$this->settings['command'] = $command;\n\t\t$result = $this->runCommand($command);\n\t\t$this->settings['list'] = preg_split(\"/\\n/\", $results);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "23159ba5dda9a82e912e2ee26a1db63d", "score": "0.48406133", "text": "function ut_main()\n{\n $res_str = '';\n\n $locales = array(\n 'uk-ua_CALIFORNIA@currency=;currency=GRN',\n 'root',\n 'uk@currency=EURO',\n 'Hindi',\n//Simple language subtag\n 'de',\n 'fr',\n 'ja',\n 'i-enochian', //(example of a grandfathered tag)\n//Language subtag plus Script subtag:\n 'zh-Hant',\n 'zh-Hans',\n 'sr-Cyrl',\n 'sr-Latn',\n//Language-Script-Region\n 'zh-Hans-CN',\n 'sr-Latn-CS',\n//Language-Variant\n 'sl-rozaj',\n 'sl-nedis',\n//Language-Region-Variant\n 'de-CH-1901',\n 'sl-IT-nedis',\n//Language-Script-Region-Variant\n 'sl-Latn-IT-nedis',\n//Language-Region:\n 'de-DE',\n 'en-US',\n 'es-419',\n//Private use subtags:\n 'de-CH-x-phonebk',\n 'az-Arab-x-AZE-derbend',\n//Extended language subtags\n 'zh-min',\n 'zh-min-nan-Hant-CN',\n//Private use registry values\n 'x-whatever',\n 'qaa-Qaaa-QM-x-southern',\n 'sr-Latn-QM',\n 'sr-Qaaa-CS',\n//Tags that use extensions (examples ONLY: extensions MUST be defined\n// by revision or update to this document or by RFC):\n 'en-US-u-islamCal',\n 'zh-CN-a-myExt-x-private',\n 'en-a-myExt-b-another',\n//Some Invalid Tags:\n 'de-419-DE',\n 'a-DE',\n 'ar-a-aaa-b-bbb-a-ccc'\n );\n\n/*\n\t$locales = array(\n\t\t'es'\n\t);\n*/\n $res_str = '';\n\n foreach( $locales as $locale )\n {\n $isSuccessful = ut_loc_set_default( $locale);\n\tif ($isSuccessful ){\n\t\t$lang = ut_loc_get_default( );\n\t\t$res_str .= \"$locale: set locale '$lang'\";\n\t}\n\telse{\n\t\t$res_str .= \"$locale: Error in set locale\";\n\t}\n $res_str .= \"\\n\";\n }\n\n return $res_str;\n\n}", "title": "" }, { "docid": "2c484b378ddfff1c49d4d00c4b2f2f64", "score": "0.48404026", "text": "public function testOrgApacheSlingDistributionPackagingImplImporterRemoteDistributi() {\n\n }", "title": "" }, { "docid": "1c5bb491cdcae07ba479ce2a028ec980", "score": "0.4838853", "text": "public function extractRelease($pi_filename)\r\n\t{\r\n\t\tglobal $messageStack;\r\n\t\tif(is_file(UPLOAD_DIR.$pi_filename))\r\n\t\t{\r\n\t\t\tif(!is_dir(INSTALL_TEMP_DIR))\r\n\t\t\t\tmkdir(INSTALL_TEMP_DIR);\r\n\t\t\tif(is_dir(INSTALL_TEMP_DIR.session_id()))\r\n\t\t\t\t$this->delete_directory(INSTALL_TEMP_DIR.session_id());\r\n\t\t\tmkdir(INSTALL_TEMP_DIR.session_id());\r\n\t\t\t//only zip or tar.gz is supported\r\n\t\t\tif(strstr($pi_filename,'.tar.gz'))\r\n\t\t\t\texec('tar xvf '.UPLOAD_DIR.$pi_filename.' --directory='.INSTALL_TEMP_DIR.session_id());\r\n\t\t\telse\r\n\t\t\t\texec('unzip -u '.UPLOAD_DIR.$pi_filename.' -d '.INSTALL_TEMP_DIR.session_id());\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$messageStack->add('Hiba történt, a telepítendő fájl nem létezik!','error');\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "70b8da1d988a0db32052fc4771cf83eb", "score": "0.48386797", "text": "function do_release($name_suffix, $prefix, $version_must_be_newer_than = null)\n{\n if ($GLOBALS['DEV_MODE']) {\n $t = 'Composr version 1337';\n\n $myrow = array(\n 'd_id' => 123,\n 'num_downloads' => 321,\n 'name' => $name_suffix,\n 'file_size' => 12345,\n );\n } else {\n $sql = 'SELECT d.num_downloads,d.name,d.file_size,d.id AS d_id FROM ' . get_table_prefix() . 'download_downloads d';\n if (strpos(get_db_type(), 'mysql') !== false) {\n $sql .= ' FORCE INDEX (downloadauthor)';\n }\n $sql .= ' WHERE ' . db_string_equal_to('author', 'ocProducts') . ' AND validated=1 AND ' . $GLOBALS['SITE_DB']->translate_field_ref('name') . ' LIKE \\'' . db_encode_like('%' . $name_suffix) . '\\' ORDER BY add_date DESC';\n $rows = $GLOBALS['SITE_DB']->query($sql, 1, null, false, false, array('name' => 'SHORT_TRANS'));\n if (!array_key_exists(0, $rows)) {\n return null; // Shouldn't happen, but let's avoid transitional errors\n }\n\n $myrow = $rows[0];\n }\n\n if (!is_null($version_must_be_newer_than)) {\n if (strpos($version_must_be_newer_than, '.') === false) {\n $version_must_be_newer_than .= '.0.0'; // Weird, but PHP won't do version_compare right without it\n }\n }\n\n $id = $myrow['d_id'];\n\n $num_downloads = $myrow['num_downloads'];\n\n $keep = symbol_tempcode('KEEP');\n $url = find_script('dload', false, 1) . '?id=' . strval($id) . $keep->evaluate();\n\n require_code('version2');\n $t = get_translated_text($myrow['name']);\n $t = preg_replace('# \\(.*#', '', $t);\n $version = get_version_dotted__from_anything($t);\n\n require_code('files');\n $filesize = clean_file_size($myrow['file_size']);\n\n if (!is_null($version_must_be_newer_than)) {\n if (version_compare($version_must_be_newer_than, $version) == 1) {\n return null;\n }\n }\n\n $ret = array();\n $ret[$prefix . 'VERSION'] = $version;\n $ret[$prefix . 'NAME'] = $name_suffix;\n $ret[$prefix . 'FILESIZE'] = $filesize;\n $ret[$prefix . 'NUM_DOWNLOADS'] = integer_format($num_downloads);\n $ret[$prefix . 'URL'] = $url;\n return $ret;\n}", "title": "" }, { "docid": "864ba885f4d3a90ff9ee9b175f02a21f", "score": "0.4826297", "text": "public function Import() {\n $this->_upload_file('tmp/', array( '.zip', '.supra' ), 'import');\n }", "title": "" }, { "docid": "bf5b81714281f84e00628ac2dfd456c9", "score": "0.48243266", "text": "function ferme_source(){\n\tglobal $unite_source_utilisee,$standard_utilise;\n\tif ($standard_utilise!='s') {$r = gzclose($unite_source_utilisee); }\n\telse {$r=true;}\n\t$unite_source_utilisee=NULL;$standard_utilise=='';\n\treturn ($r);\n}", "title": "" }, { "docid": "762b3f0aefa036b62f36bc64a480270d", "score": "0.48238286", "text": "function ParseContent($TAR_id, $force = false)\r\n {\r\n global $QF;\r\n static $packd_id = 1;\r\n\r\n if (!isset($this->TARs[$TAR_id]))\r\n return false;\r\n\r\n extract($this->TARs[$TAR_id]);\r\n\r\n if ($is_pack)\r\n {\r\n trigger_error('TARLIB: trying to parse content for archive opened for writing', E_USER_WARNING);\r\n return false;\r\n }\r\n\r\n if (is_array($TARcont) && !$force)\r\n return $TARcont;\r\n\r\n $stoptime = time() + QF_TARFS_MAX_PARSETIME; //some archives includes too many files so we need to watch the time not to spent lots of it\r\n $QF->EFS->Restart($TARstream);\r\n $i = 0;\r\n while (!$QF->EFS->EOF($TARstream))\r\n {\r\n $header = $QF->EFS->Read($TARstream, 512);\r\n if ($header = $this->ParseRawHeader($header))\r\n {\r\n $i++;\r\n $pos = $QF->EFS->Pos($TARstream);\r\n $size = $header['size'];\r\n $seek = ceil($size/512)*512;\r\n $QF->EFS->SeekRel($TARstream, $seek);\r\n $TARcont[$i] = $header + Array('seek' => $pos);\r\n }\r\n else\r\n break;\r\n\r\n if (($i%10 == 0) && (time() > $stoptime))\r\n {\r\n trigger_error('TARLIB: contents list parsing got too much time', E_USER_NOTICE);\r\n break;\r\n }\r\n\r\n }\r\n\r\n $this->TARs[$TAR_id]['TARcont'] = $TARcont;\r\n\r\n return $TARcont;\r\n }", "title": "" }, { "docid": "fa387c2f80f25e3a82cacce4f939f688", "score": "0.4818638", "text": "function http_upload($repos,$local,$distant)\n{\n\n $data=@file_get_contents($local);\n $data=gzencode($data);\n\n $zfilename = $local . \".gz\";\n $fp=fopen($zfilename,\"wb\");\n if(!$fp) \n {\n print \"FAILED: Cannot create zipped file $zfilename\";\n return false;\n }\n fwrite($fp,$data);\n fclose($fp);\n\n\n $url=parse_url($repos);\n $user=rawurlencode($url[\"user\"]);\n $pass=rawurlencode($url[\"pass\"]);\n $path=$url[\"path\"];\n $host=$url[\"host\"];\n \n $post = Array();\n $post[ 'file' ] = $distant;\n $post[ 'type' ] = \"putGzip\";\n $post[ 'username' ] = $user;\n $post[ 'password' ] = $pass;\n $post[ 'data' ] = \"@\".$zfilename;\n\n $ch = curl_init();\n if (defined($GLOBALS['raydium_proxy']))\n curl_setopt ($ch, CURLOPT_PROXY, $GLOBALS['raydium_proxy']);\n curl_setopt($ch, CURLOPT_URL, \"http://\".$host.$path );\n curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);\n curl_setopt($ch, CURLOPT_POST, 1 );\n // seems no need to tell it enctype='multipart/data' it already knows\n curl_setopt($ch, CURLOPT_POSTFIELDS, $post );\n $response = curl_exec( $ch ); \n\n unlink($zfilename);\n\n if($response[0]=='+')\n {\n return true;\n }\n else\n {\n echo \"HTTP reply: $response\";\n return false;\n }\n}", "title": "" }, { "docid": "6e0af6888bb686752e7880bb6b37623f", "score": "0.4815613", "text": "public function showUnpackForm()\n\t{\n\t\t$this->html->form_code = 'module=games&section=import';\n\t\t$formcode = 'untar';\n\t\t$button = 'Unpack Tar File(s)';\n\t\t\n\t\t$array = array();\n\t\t// Check to see what tars we have in the tar directory\n\n\n$row = $this->DB->buildAndFetch( array( \n\t'select' => '*', \n\t'from' => 'iarcade_tars', \n 'where' => \"added='0'\",\n\t'order' => 'timestamp DESC',\n\t'limit' => array( 0, 1)\n\t) );\n$row['formcode'] = ipsRegistry::getClass('output')->formCheckbox( $row['tarfile_name'] );\n\n\t\t$this->registry->output->html .= $this->html->tar_page($tarfiles,$formcode,$button,$row);\n\t}", "title": "" }, { "docid": "e213eb8feb9e4982bab20f026f55902e", "score": "0.48097256", "text": "public static function getPackageContents() {\n\n $result = array('entries' => array());\n $phar_can_open = true;\n\n try {\n $phar = new Phar(DIR_FS_WORK . 'updates/update.phar');\n } catch ( Exception $e ) {\n $phar_can_open = false;\n\n trigger_error($e->getMessage());\n }\n\n if ( $phar_can_open === true ) {\n $update_pkg = array();\n\n foreach ( new RecursiveIteratorIterator($phar) as $iteration ) {\n if ( ($pos = strpos($iteration->getPathName(), 'update.phar')) !== false ) {\n $update_pkg[] = substr($iteration->getPathName(), $pos+12);\n }\n }\n\n natcasesort($update_pkg);\n \n $counter = 0;\n\n foreach ( $update_pkg as $file ) {\n $custom = false;\n \n // update the path with admin config value to account for a different admin/ dir\n $file = str_replace('admin/', DIR_WS_ADMIN, $file); \n\n $result['entries'][] = array('key' => $counter,\n 'name' => $file,\n 'exists' => file_exists(realpath(DIR_FS_CATALOG) . '/' . $file),\n 'writable' => self::isWritable(realpath(DIR_FS_CATALOG) . '/' . $file) && self::isWritable(realpath(DIR_FS_CATALOG) . '/' . dirname($file)),\n 'custom' => $custom,\n 'to_delete' => false);\n\n $counter++;\n }\n }\n\n $meta = $phar->getMetadata();\n \n if ( isset($meta['delete']) ) {\n $files = array();\n\n if (is_array($meta['delete']) && count($meta['delete']) > 0) {\n foreach ( $meta['delete'] as $file ) {\n \n // update the path with admin config value to account for a different admin/ dir\n $file = str_replace('admin/', DIR_WS_ADMIN, $file);\n \n if ( file_exists(realpath(DIR_FS_CATALOG) . '/' . $file) ) {\n if ( is_dir(realpath(DIR_FS_CATALOG) . '/' . $file) ) {\n $DL = new DirectoryListing(realpath(DIR_FS_CATALOG) . '/' . $file);\n $DL->setRecursive(true);\n $DL->setAddDirectoryToFilename(true);\n $DL->setIncludeDirectories(false);\n\n foreach ( $DL->getFiles() as $f ) {\n $files[] = $file . '/' . $f['name'];\n }\n } else {\n $files[] = $file;\n }\n }\n }\n }\n \n natcasesort($files);\n\n foreach ( $files as $d ) {\n $writable = false;\n $custom = false;\n\n $writable = self::isWritable(realpath(DIR_FS_CATALOG) . '/' . $d) && self::isWritable(realpath(DIR_FS_CATALOG) . '/' . dirname($d));\n\n $result['entries'][] = array('key' => $counter,\n 'name' => $d,\n 'exists' => true,\n 'writable' => $writable,\n 'custom' => $custom,\n 'to_delete' => true);\n $counter++;\n }\n }\n $result['total'] = count($result['entries']);\n\n return $result;\n }", "title": "" }, { "docid": "4fa45105d0e9df8ad5c7b20951316bf7", "score": "0.48074585", "text": "function installFromTorbara () {\n if($this->installFromTorbara_run()){\n $this->installFromTorbara_cleanTrash();\n echo '<div class=\"uk-alert uk-alert-success uk-display-block\">Import completed successfully!</div>';\n }else{\n echo '<div class=\"uk-alert uk-alert-danger uk-display-block\">Import completed with error!</div>';\n }\n }", "title": "" }, { "docid": "bffd45ba8a08e5e6b01505171a2ad436", "score": "0.4789801", "text": "public function extractFiles($offset = false, $limit = false) {\n\t\t\t$currentOffset = 0;\n\n\t\t\t$this->open();\n\n\t\t\tfseek($this->handle, 0, SEEK_SET);\n\n\t\t\twhile($currentOffset < $offset) {\n\t\t\t\t$data = fread($this->handle, umiTarExtracter::TAR_CHUNK_SIZE);\n\t\t\t\tif($this->eof($data)) {\n\t\t\t\t\treturn $currentOffset;\n\t\t\t\t}\n\t\t\t\t$header = $this->parseEntryHeader($data);\n\t\t\t\tif($header['typeflag'] == umiTarExtracter::TAR_ENTRY_REGULARFILE) {\n\t\t\t\t\t$fileChunkCount = floor($header['size'] / umiTarExtracter::TAR_CHUNK_SIZE) + 1;\n\t\t\t\t\tfseek($this->handle, $fileChunkCount * umiTarExtracter::TAR_CHUNK_SIZE, SEEK_CUR);\n\t\t\t\t}\n\t\t\t\t$currentOffset++;\n\t\t\t}\n\n\t\t\twhile($limit === false || ($currentOffset < $offset + $limit)) {\n\t\t\t\t$data = fread($this->handle, umiTarExtracter::TAR_CHUNK_SIZE);\n\t\t\t\tif($this->eof($data)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t$header = $this->parseEntryHeader($data);\n\t\t\t\t$name = (strlen($header['prefix']) ? ($header['prefix'] . '/') : '') . $header['name'];\n\t\t\t\tswitch($header['typeflag']) {\n\t\t\t\t\tcase umiTarExtracter::TAR_ENTRY_REGULARFILE : {\n\t\t\t\t\t\t$dstHandle = fopen($name, \"wb\");\n\t\t\t\t\t\tif (!$dstHandle) {\n\t\t\t\t\t\t\tthrow new Exception(\"umiTarExtracter: не удается записать файл: \" . $name);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$bytesLeft = $header['size'];\n\t\t\t\t\t\tif ($bytesLeft)\n\t\t\t\t\t\tdo {\n\t\t\t\t\t\t\t$bytesToWrite = $bytesLeft < umiTarExtracter::TAR_CHUNK_SIZE ? $bytesLeft : umiTarExtracter::TAR_CHUNK_SIZE;\n\t\t\t\t\t\t\t$bytes = fread($this->handle, umiTarExtracter::TAR_CHUNK_SIZE);\n\t\t\t\t\t\t\tfwrite($dstHandle, $bytes, $bytesToWrite);\n\t\t\t\t\t\t\t$bytesLeft -= umiTarExtracter::TAR_CHUNK_SIZE;\n\t\t\t\t\t\t} while($bytesLeft > 0);\n\t\t\t\t\t\tfclose($dstHandle);\n\t\t\t\t\t\tif (strtolower(substr($name, -4, 4))==='.php') {\n\t\t\t\t\t\t\tchmod($name, PHP_FILES_ACCESS_MODE);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcase umiTarExtracter::TAR_ENTRY_DIRECTORY : {\n\t\t\t\t\t\tif(!is_dir($name)) {\n\t\t\t\t\t\t\tif (!mkdir($name, 0777, true)) {\n\t\t\t\t\t\t\t\tthrow new Exception(\"umiTarExtracter: не удается создать директорию: \" . $name);\n\t\t\t\t\t\t\t\texit();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$currentOffset++;\n\t\t\t}\n\n\t\t\treturn $currentOffset;\n\t\t}", "title": "" }, { "docid": "2d07246e11daf16e9b661c9a70b44d76", "score": "0.4787633", "text": "function download($reqst = '') {\n\n //checando a existencia do arquivo solicitado\n $reqst = _file_exists($reqst);\n if($reqst == false) return false;\n\n //gerando header apropriado\n include WEB_PATH . '.php/config/mimetypes.php';\n $ext = end((explode('.', $reqst)));\n if (!isset($_mimes[$ext])) $mime = 'text/plain';\n else $mime = (is_array($_mimes[$ext])) ? $_mimes[$ext][0] : $_mimes[$ext];\n\n //get file\n $dt = file_get_contents($reqst);\n\n //download\n ob_end_clean();\n ob_start('ob_gzhandler');\n\n header('Vary: Accept-Language, Accept-Encoding');\n header('Content-Type: ' . $mime);\n header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 31536000) . ' GMT');\n header('Last-Modified: ' . gmdate('D, d M Y H:i:s', filemtime($reqst)) . ' GMT');\n header('Cache-Control: must_revalidate, public, max-age=31536000');\n header('Content-Length: ' . strlen($dt));\n header('x-Server: Qzumba.com');\n header('ETAG: '.md5($reqst));\n exit($dt);\n}", "title": "" }, { "docid": "a92f96bdcf6f808f5db6dab0c33dd551", "score": "0.47817656", "text": "public function testOrgApacheSlingDistributionPackagingImplImporterLocalDistributio() {\n\n }", "title": "" }, { "docid": "e02b3a924edaef647853145b22f645b8", "score": "0.47798103", "text": "public function testComAdobeGraniteTaskmanagementImplJcrTaskArchiveService() {\n\n }", "title": "" }, { "docid": "be4e20acb6621fe29eba97f5c0bd73dd", "score": "0.47704893", "text": "public function download($name)\n {\n // force close the tar archive ZipArchive\n $this->close();\n header(\"Content-Type: application/x-gzip\");\n header('Content-Length: ' . filesize($this->tmpFile));\n header(\"Content-disposition: attachment; filename={$name}\"); \n header(\"Content-Transfer-Encoding: binary\");\n ob_clean(); // clear the buffer for the may coming error\n readfile($this->tmpFile);\n\n // remove the temporary file at the end\n $this->remove();\n }", "title": "" }, { "docid": "47c0322b1731f0324d1f4982316edc01", "score": "0.47658706", "text": "public function testComDayCqDamCoreImplUnzipUnzipConfig() {\n\n }", "title": "" }, { "docid": "800ae4e2489aaa3b887f1463e7616c08", "score": "0.47657645", "text": "function beplus_import_pack_extract_package_demo() {\n global $Bears_Backup;\n extract( $_POST );\n\n $package_name = $data['package_name'];\n $package = $data['package'];\n \n $upload_dir = wp_upload_dir();\n $path = $upload_dir['basedir'];\n $path_file_package = $path . '/' . $package;\n\n $backup_path = $Bears_Backup->upload_path();\n $extract_to = $backup_path . '/' . sprintf( 'package-install__%s', $package_name );\n\n if ( ! wp_mkdir_p( $extract_to ) ) {\n return array(\n 'success' => true,\n 'result' => array(\n 'extract_success' => false,\n )\n );\n }\n\n $zipFile = new \\PhpZip\\ZipFile();\n $zipFile\n ->openFile( $path_file_package )\n ->extractTo( $extract_to )\n ->close();\n\n // remove zip file\n wp_delete_file( $path_file_package );\n\n wp_send_json( array(\n 'success' => true,\n 'result' => array(\n 'extract_success' => true,\n 'extract_to' => $extract_to,\n )\n ) );\n\n exit();\n }", "title": "" }, { "docid": "a6add4291f4983767f44505791dffb8d", "score": "0.4763691", "text": "public function testCommandExtractTarBz2()\n {\n $command = $this->getApplication()->find(DownloadCommand::NAME);\n $commandTester = new CommandTester($command);\n $result = $commandTester->execute(array(\n 'command' => DownloadCommand::NAME,\n DownloadCommand::ARGUMENT_NAME => 'magento-1.9.0.0.tar.bz2',\n DownloadCommand::ARGUMENT_DESTINATION => '/tmp/magento-tarbz2.tar.bz2',\n '--' . DownloadCommand::OPTION_EXTRACT => true,\n ));\n $this->assertEquals(0, $result);\n $this->assertContains('Complete', $commandTester->getDisplay());\n $this->assertFileExists('/tmp/magento-tarbz2/index.php');\n }", "title": "" }, { "docid": "b92e568290d084b8d0be05735078e426", "score": "0.4761255", "text": "function gzdecode($in)\n{\n $tmp=str_pad(\"\",256);\n raydium_file_home_path_cpy(\"tmp.tmp.gz\",$tmp);\n $fp=fopen($tmp,\"wb\");\n if(!$fp) return false;\n fwrite($fp,$in);\n fclose($fp);\n \n $fp=gzopen($tmp,\"rb\");\n if(!$fp) return false;\n while(!gzeof($fp))\n {\n $data.=gzread($fp,128);\n }\n gzclose($fp);\n unlink($tmp);\n return $data;\n}", "title": "" }, { "docid": "e5c3c6d3e2e4b82c005bca3c84cd4fc2", "score": "0.47539392", "text": "function gzfile($filename)\n{\n return array();\n}", "title": "" }, { "docid": "d16c34a7958bda154c6fa3bae3770243", "score": "0.47520933", "text": "public function testOrgApacheSlingDistributionPackagingImplImporterRepositoryDistri() {\n\n }", "title": "" }, { "docid": "3f793e7aa281dfb13f64c44333803688", "score": "0.4738959", "text": "function Uncompress() {\n\t\t//---------------------\n\t\t\t$this->set_modes('uncompress',true); \n\t\t\t$this->support=\"pdftk\";\n\t\t}", "title": "" }, { "docid": "175afda8110f7d8a25e58ffd101ce91c", "score": "0.4727243", "text": "function createArchive($file_path)\n{\n\t$temp_path = \"./tmp/\";\n\tif( is_file($file_path))\n\t\t@unlink($file_path);\n\trequire_once(\"CORE/DBSetup.inc.php\");\n\trequire_once(\"CORE/extensionManager.inc.php\");\n\trequire_once(\"CORE/ArchiveTar.inc.php\");\n\t$tar = new ArchiveTar($file_path,true);\n\t$dir_list = getExtensions();\n\t$archive_header = \"-------\\n\";\n\tforeach($dir_list as $ext_name => $ext_path) {\n\t\t$q = '';\n\t\t$SQL_file_name=$temp_path.\"data_\".$ext_name.\".sql\";\n\t\t$ext = new Extension($ext_name,$ext_path);\n\t\tforeach($ext->extend_tables as $table => $desc) {\n\t\t\trequire_once($ext_path.$table.'.tbl.php');\n\t\t\t$class_name = 'DBObj_'.$ext_name.'_'.$table;\n\t\t\t$tbl = new $class_name;\n\t\t\t$setup = new DBObj_Setup($tbl);\n\t\t\t$q .= \"-- Structure de la classe \".$ext_name.\"::$table\\n\";\n\t\t\t$q .= $setup->describeSQLTable( true).\"\\n\";\n\t\t\t$q .= \"-- Contenu de la classe \".$ext_name.\"::$table\\n\";\n\t\t\t$q .= $setup->extractSQLData().\"\\n\\n\";\n\t\t}\n\t\tif ($q!='') {\n\t\t\t/*$handle = @fopen($SQL_file_name, \"w+\");\n\t\t\tif ($handle) {\n\t\t\t\t@fwrite($handle,$q);\n\t\t\t\t@fclose($handle);\n\t\t\t}\n\t\t\telse\n\t\t\t\tthrow new LucteriosException(IMPORTANT,\"Fichier $SQL_file_name non créable!\");\n\t\t\t$tar->addModify($SQL_file_name,'',$temp_path);\n\t\t\t@unlink($SQL_file_name);*/\n\t\t\t$tar->addString(\"data_\".$ext_name.\".sql\",$q);\n\t\t}\n\t\t$archive_header.=$ext->Name.\":\";\n\t\t$archive_header.=$ext->getDBVersion().\":\";\n\t\t$archive_header.=$ext->titre.\":\";\n\t\t$archive_header.=$ext->Appli;\n\t\t$archive_header.=\"\\n\";\n\t}\n\t$archive_header.= \"-------\\n\";\n\t$tar->addString(\"info.head\",$archive_header);\n\t$tar->add(\"usr/\");\n}", "title": "" }, { "docid": "9ce2513142448f8e182f6006f2acfe3c", "score": "0.47203174", "text": "public function buildPhar()\n {\n\n $filePath = $this->targetDir.DIRECTORY_SEPARATOR.$this->pharName;\n $this->say(\"Creating new phar archive: \".$filePath);\n if (file_exists($filePath)) {\n Phar::unlinkArchive($filePath);\n $this->say(\"Deleting old build: \".$filePath);\n }\n\n $this->phar = new Phar($filePath, 0, $this->pharName);\n //$this->phar->compress(Phar::GZ);\n $this->phar->setSignatureAlgorithm(Phar::SHA1);\n\n $files = array();\n //$files[$this->stubName] = $this->targetDir.DIRECTORY_SEPARATOR.$this->stubName;\n $this->copyStub();\n\n $rd = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($this->targetDir));\n foreach ($rd as $file) {\n if ((strpos($file->getPath(), '.svn') ===false) &&\n $file->getFilename() != '..' &&\n $file->getFilename() != '.') {\n $files[substr($file->getPath().DIRECTORY_SEPARATOR.$file->getFilename(), strlen($this->targetDir))] = $file->getPath().DIRECTORY_SEPARATOR.$file->getFilename();\n\n }\n\n }\n\n $this->phar->startBuffering();\n $this->phar->buildFromIterator(new ArrayIterator($files));\n $this->phar->stopBuffering();\n $this->phar->setStub($this->phar->createDefaultStub($this->stubName, \"public/index.php\"));\n $this->phar = null;\n //print_r($files);\n $this->say(\"Phar successfully created \".$filePath);\n }", "title": "" }, { "docid": "0474298f8e5198f7bdc22ffce8d4d188", "score": "0.47200757", "text": "public function archive() {\n // TODO\n }", "title": "" }, { "docid": "75f606d31156794611a7ca3712583d38", "score": "0.4708188", "text": "public function testOrgApacheJackrabbitVaultPackagingImplPackagingImpl() {\n\n }", "title": "" }, { "docid": "56b1ba6a65b0c75fcbc6fbf2f081a28d", "score": "0.4704737", "text": "function create_magnet($dn, $xl = false, $btih = '', $tr = '')\r\n{\r\n $magnet = 'magnet:?';\r\n if ($dn)\r\n {\r\n $magnet .= 'dn=' . $dn; // download name\r\n }\r\n if ($xl)\r\n {\r\n $magnet .= '&xl=' . $xl; // size\r\n }\r\n if ($btih)\r\n {\r\n $magnet .= '&xt=urn:btih:' . $btih; // bittorrent info_hash (Base32)\r\n }\r\n if ($tr)\r\n {\r\n if(is_array($tr)) {\r\n $magnet .= '&tr=' . implode(\"&tr=\",$tr);\r\n } else {\r\n $magnet .= '&tr=' . $tr; // gnutella sha1 (base32)\r\n }\r\n }\r\n return $magnet;\r\n}", "title": "" }, { "docid": "8af69ae068e43b56fda47c8f52da2231", "score": "0.46941045", "text": "public function buildAcrhiveAction()\n {\n\n $zip = new ZipArchive();\n $archive = $this->targetDir.DIRECTORY_SEPARATOR.$this->deploymentName;\n $this->verbose ? $this->say($this->getActionsCount()\n .\". Building new ZIP acrhive in \".$archive) : \n $this->say($this->getActionsCount()\n .\". Archiving files...\");\n if (file_exists($archive)) {\n unlink($archive);\n $this->verbose ? $this->say(\"Deleting old archive: \".$archive) : false;\n }\n\n if ($zip->open($archive, ZIPARCHIVE::CREATE) !== true) {\n $this->say(\"Cannot create new archive in\".$archive);\n return;\n }\n\n $this->addDir($this->targetDir, '.', $zip);\n\n $zip->close();\n\n if (!file_exists($archive)) {\n $this->say(__METHOD__.': Backup was not created for unknown reason');\n throw new RuntimeException(__METHOD__.': Backup was not created for unknown reason');\n }\n\n $command = \"gzip -9 \".$archive;\n system($command, $status);\n $this->deploymentName = $this->deploymentName.\".gz\";\n $this->verbose ? $this->say(\"New archive created and ready for deployment: \".$archive.\".gz\") : $this->sayYes(\"Done\");\n\n }", "title": "" }, { "docid": "f829925fe3ec071da69d87f400a5023e", "score": "0.4691924", "text": "public function testAddAsnFileByURL()\n {\n }", "title": "" }, { "docid": "3b452db7b3748ccb4d35104e9b96d06c", "score": "0.46869445", "text": "private function _zipReadinfo( $data )\r\n\t{\r\n\t\t// Lets init\r\n\t\t$entries\t\t=\tarray();\r\n\t\t$offset\t\t\t=\t0;\r\n\t\t$ctrldirend\t\t=\t$this->getCtrldirend();\r\n\t\t$ctrldirhead\t=\t$this->getCtrldirhead();\r\n\t\t$fhLast\t\t\t=\tstrpos( $data, $ctrldirend );\r\n\t\t\r\n\t\tdo {\r\n\t\t\t$last = $fhLast;\r\n\t\t}\r\n\t\twhile ( ( $fhLast = strpos( $data, $ctrldirend, $fhLast + 1 ) ) !== false );\r\n\t\t\r\n\t\tif ( $last ) {\r\n\t\t\t$endOfCentralDirectory = unpack(\r\n\t\t\t\t\t'vNumberOfDisk/vNoOfDiskWithStartOfCentralDirectory/vNoOfCentralDirectoryEntriesOnDisk/' .\r\n\t\t\t\t\t'vTotalCentralDirectoryEntries/VSizeOfCentralDirectory/VCentralDirectoryOffset/vCommentLength',\r\n\t\t\t\t\tsubstr( $data, $last + 4 )\r\n\t\t\t);\r\n\t\t\t$offset = $endOfCentralDirectory['CentralDirectoryOffset'];\r\n\t\t}\r\n\t\t\r\n\t\t// Get details from central directory structure.\r\n\t\t$fhStart\t=\tstrpos( $data, $ctrldirhead, $offset );\r\n\t\t$dataLength\t=\tstrlen( $data );\r\n\t\t$methods\t=\t$this->getMethods();\r\n\t\t$fileheader\t=\t$this->getFileheader();\r\n\t\t\r\n\t\tdo {\r\n\t\t\tif ( $dataLength < $fhStart + 31 ) {\r\n\t\t\t\t$this->setError( 'Invalid zip data' );\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$info\t=\tunpack( 'vMethod/VTime/VCRC32/VCompressed/VUncompressed/vLength', substr( $data, $fhStart + 10, 20 ) );\r\n\t\t\t$name\t=\tsubstr( $data, $fhStart + 46, $info['Length'] );\r\n\t\t\t\r\n\t\t\t$entries[$name] = array(\r\n\t\t\t\t'attr'\t\t\t=>\tnull,\r\n\t\t\t\t'crc'\t\t\t=>\tsprintf( \"%08s\", dechex( $info['CRC32'] ) ),\r\n\t\t\t\t'csize' \t\t=>\t$info['Compressed'],\r\n\t\t\t\t'date'\t\t\t=>\tnull,\r\n\t\t\t\t'_dataStart'\t=>\tnull,\r\n\t\t\t\t'name'\t\t\t=>\t$name,\r\n\t\t\t\t'method'\t\t=>\t$methods[$info['Method']],\r\n\t\t\t\t'_method'\t\t=>\t$info['Method'],\r\n\t\t\t\t'size'\t\t\t=>\t$info['Uncompressed'],\r\n\t\t\t\t'type'\t\t\t=>\tnull\r\n\t\t\t);\r\n\t\t\t\r\n\t\t\t$entries[$name]['date'] = mktime(\r\n\t\t\t\t\t( ( $info['Time'] >> 11 ) & 0x1f ),\r\n\t\t\t\t\t( ( $info['Time'] >> 5 ) & 0x3f ),\r\n\t\t\t\t\t( ( $info['Time'] << 1 ) & 0x3e ),\r\n\t\t\t\t\t( ( $info['Time'] >> 21 ) & 0x07 ),\r\n\t\t\t\t\t( ( $info['Time'] >> 16) & 0x1f),\r\n\t\t\t\t\t( ( ( $info['Time'] >> 25 ) & 0x7f ) + 1980 )\r\n\t\t\t);\r\n\t\t\t\r\n\t\t\tif ( $dataLength < $fhStart + 43 ) {\r\n\t\t\t\t$this->setError( 'Invalid ZIP data' );\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$info = unpack('vInternal/VExternal/VOffset', substr($data, $fhStart + 36, 10));\r\n\t\t\t\r\n\t\t\t$entries[$name]['type'] \t=\t( $info['Internal'] & 0x01 ) ? 'text' : 'binary';\r\n\t\t\t$entries[$name]['attr'] \t=\t( ( $info['External'] & 0x10 ) ? 'D' : '-' ) . ( ( $info['External'] & 0x20 ) ? 'A' : '-' )\r\n\t\t\t\t\t\t\t\t\t\t.\t( ( $info['External'] & 0x03 ) ? 'S' : '-' ) . ( ( $info['External'] & 0x02 ) ? 'H' : '-' )\r\n\t\t\t\t\t\t\t\t\t\t.\t( ( $info['External'] & 0x01 ) ? 'R' : '-' );\r\n\t\t\t$entries[$name]['offset']\t=\t$info['Offset'];\r\n\t\t\t\r\n\t\t\t// Get details from local file header since we have the offset\r\n\t\t\t$lfhStart = strpos( $data, $fileheader, $entries[$name]['offset'] );\r\n\t\t\t\r\n\t\t\tif ( $dataLength < $lfhStart + 34 ) {\r\n\t\t\t\t$this->setError( 'Invalid ZIP Data' );\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$info\t=\tunpack( 'vMethod/VTime/VCRC32/VCompressed/VUncompressed/vLength/vExtraLength', substr( $data, $lfhStart + 8, 25 ) );\r\n\t\t\t$name\t=\tsubstr( $data, $lfhStart + 30, $info['Length'] );\r\n\t\t\t\r\n\t\t\t$entries[$name]['_dataStart']\t=\t$lfhStart + 30 + $info['Length'] + $info['ExtraLength'];\r\n\t\t\t\r\n\t\t\t// Bump the max execution time because not using the built in php zip libs makes this process slow.\r\n\t\t\t@set_time_limit( ini_get( 'max_execution_time' ) );\r\n\t\t}\r\n\t\t\r\n\t\twhile ( ( ( $fhStart = strpos( $data, $ctrldirhead, $fhStart + 46 ) ) !== false ) );\r\n\t\t\r\n\t\t$this->setMetadata( array_values( $entries ) );\r\n\t\t\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "60b329b0295a74bd58716ccc95bc21c4", "score": "0.46861956", "text": "public function fetch(){\n\t\t$url = $this->repository->source; \n\t\t\n\t\t// create a tmpfile for downloading the zip archive\n\t\t$tmpfname = \\tempnam('/tmp', 'pere');\n\n\t\t$urlzip = \\fopen($url,'rb');\n\t\t\\file_put_contents( $tmpfname , \\stream_get_contents($urlzip) );\n\n\t\t$file = $tmpfname;\n\n\t\t$basefolder = '';\n\t\tif( \\is_array($this->repository->options) && array_key_exists('subfolder',$this->repository->options) ) {\n\t\t\t$basefolder = $this->repository->options['subfolder'];\n\t\t}\n\n\t\tif( !file_exists($this->repository->target) ) {\n\t\t\t\\mkdir($this->repository->target);\n\t\t}\n\t\t\n\t\t$za = new \\ZipArchive();\n\t\t$za->open($file);\n\t\t\n\t\t$extract = array();\n\t\tfor ($i=0; $i<$za->numFiles;$i++) {\n\t\t\t$name = $za->getNameIndex($i);\n\t\t\tif( $basefolder=='' || \\substr($name, 0, \\strlen($basefolder) )==$basefolder ) {\n\t\t\t\t$nameInFilesystem = $this->repository->target.'/'.\\substr($name, \\strlen($basefolder));\n\t\t\t\t\n\t\t\t\tif( \\substr($nameInFilesystem, -1,1)=='/' ) {\n\t\t\t\t\tif( !\\file_exists($nameInFilesystem) ){\n\t\t\t\t\t\t\\mkdir( $nameInFilesystem );\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t\\copy('zip://'.$file.'#'.$name, $nameInFilesystem);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\\unlink($tmpfname);\n }", "title": "" }, { "docid": "37028df4d7f201fd526494e3416e771e", "score": "0.46646187", "text": "function privConvertHeader2FileInfo($p_header, &$p_info)\n {\n }", "title": "" }, { "docid": "a07a001d26a0dabc4abd80f8638fceaa", "score": "0.4656767", "text": "function downloadFichier($nomFichier)\n{\n$header = \"Content-Disposition: attachment; \";\n$header .=\"filename=$nomFichier\\n\";\nheader($header);\nheader(\"Content-Type: application/x-rar-compressed\\n\");// x/y signifie que le navigateur accepte les MIME\nset_magic_quotes_runtime(0);\nreadfile($nomFichier);\n// a faire attention: il faut utiliser cette fonction au debut de la page car on va envoyer des header\n}", "title": "" }, { "docid": "53bc4a77a9a35826d8ad9ffb4e0765f2", "score": "0.46535772", "text": "function tag_image($file_name)\n{\n\t//echo $iptc->get(IPTC_COPYRIGHT_STRING); \n\n\t//Update copyright statement:\n\t$iptc = new iptc($file_name);\n\t//echo $iptc->set(IPTC_COPYRIGHT_STRING,\"Here goes the new data\"); \n\t\n\n\t\n\t$iptc->set(IPTC_CITY,\"Pittsford\"); \n\t$iptc->set(IPTC_PROVINCE_STATE,\"New York\"); \n\t$iptc->set(IPTC_COUNTRY,\"USA\"); \n\t$iptc->set(IPTC_BYLINE_TITLE,\"Images by Embrasse-moi.com\"); \n\t$iptc->set(IPTC_HEADLINE,\"Photography by Embrasse-moi.com\"); \n\t$iptc->set(IPTC_CREDIT,\"Craig Iannazzi 1 N Main Street, Pittsford, NY 14534\"); \n\t$iptc->set(IPTC_KEYWORDS,\"embrasse-moi bras clothing footwear swimwear\"); \n\t\n\t$iptc->set(IPTC_CAPTION,\"Embrasse-moi.com\"); \n\t$iptc->set(IPTC_SOURCE,\"Craig Iannazzi\"); \n\t$iptc->set(IPTC_COPYRIGHT_STRING,\"Copyright Craig and Kristine Iannazzi, Embrasse-Moi 1 N Main Street Pittsford, NY 14534. All rights reserved.\"); \n\n\t$iptc->write();\n}", "title": "" }, { "docid": "f5c054e74be6707f4a4bb0d540e84ed8", "score": "0.46522093", "text": "function _arfs_upload_file($filepath, $encryption_key = '', $fid = 0, $orginal_file_id = 0, $extras = NULL) {\n\n if(file_exists($source) && filesize($source)) {\n $newFilePath = $filepath;\n $path_parts = pathinfo($filepath);\n\n $destFile = $filepath . '.encrypt';\n\n \n $org_filename = $path_parts['basename'];\n \n \n //Use encrypted file\n if($encryption) {\n $encrypted_file = _arfs_encrypt_file($filepath, $encryption_key, $destFile);\n if($encrypted_file && file_exists($encrypted_file)) {\n $newFilePath = $encrypted_file;\n }\n }\n\n //Create tags here \n $type = _arfs_get_file_type($filepath);\n $tags = _arfs_file_create_tags($destFile, $fid, $type, $org_filename, '', $orginal_file_id, $extras);\n $ar_Txn = _ar_upload_file($newFilePath, $tags);\n\n }\n}", "title": "" }, { "docid": "5c0e680b03fe3a70e8a8ee388944c2f2", "score": "0.46512038", "text": "function usage() \n{\n echo \"\\n\";\n echo \"Program: navcopy.php\\nVersion: 0.9 \\\"Shark Bait\\\"\\nAuthors: Aaron Sweeney, Chris Olson\\n\";\n echo \"Rolling Deck To Repository (R2R): Navigation Manager\\n\";\n echo \"Purpose: Convert raw nav data to the r2rnav standard format.\\n\";\n echo \"\\n\";\n echo \"Usage: navcopy.php -i | <input file> -d <data_diretory> -f <format> -o <outifle> [-t <time range>] [-h]\\n\\n\";\n\techo \"Required:\\n\";\n\techo \"\\t-i <input file>\\n\";\n\techo \"\\t\\tPath to directory containing raw navigation data.\\n\";\n\techo \"\\t-d <data_directory>\\n\";\n\techo \"\\t\\tPath to directory containing raw navigation data.\\n\";\n\techo \"\\t-f <format>\\n\";\n\techo \"\\t\\tThe format of raw navigation files. (see navformat.php)\\n\";\n\techo \"\\t-o <outfile>\\n\";\n\techo \"\\t\\tThe destination filename for the raw r2rnav file.\\n\\n\";\n\techo \"Options\\n\";\n\techo \"\\t-t <start_time/end_time>\\n\";\n\techo \"\\t\\tThe time interval which to sample at.\\n\";\n\techo \"\\t\\tFormat: [yyyy]-[mm]-[dd]T[hh]:[mm]:[ss]Z/[yyyy]-[mm]-[dd]T[hh]:[mm]:[ss]Z\\n\";\n\techo \"\\t\\tExample: -t 2014-03-01T00:00:00Z/2014-03-12T00:00:00Z\\n\";\n\techo \"\\t-h or --help\\n\";\n\techo \"\\t\\tShow this help message.\\n\";\n\n echo \"\\n\";\n \n}", "title": "" }, { "docid": "9485006f8a5f16c901d1c3b7dd7b1371", "score": "0.46369657", "text": "function pestle_cli()\n{\n $localPharPath = getLocalPharPath(); \n $tmpFile = fetchCurrentAndWriteToTemp();\n \n validateLocalPharPath($localPharPath); \n backupCurrent($localPharPath); \n \n //super gross -- thanks PHP\n $permissions = substr(sprintf('%o', fileperms($localPharPath)),-4);\n \n \\Pulsestorm\\Pestle\\Library\\output(\"Replaced $localPharPath\");\n rename($tmpFile, $localPharPath);\n \n chmod($localPharPath, octdec($permissions));\n}", "title": "" }, { "docid": "8f60ba05f26d4a87474eaccca7f7f809", "score": "0.46327266", "text": "function gzfile($filename)\n{\n\treturn array();\n}", "title": "" }, { "docid": "412b03e22ba13f2d1ea17607786347a7", "score": "0.46293065", "text": "function convert_archive()\n {\n \n if(!($info = self::start())) return; //uncomment in real operation\n /* only during development so to skip the zip-extracting portion.\n $info = Array(\"temp_dir\" => \"/opt/homebrew/var/www/eol_php_code/tmp/dir_37276/\",\n \"tables\" => Array(\n \"process_reference\" => \"TRY reference map.csv\", //the one needs massaging...\n \"measurements\" => \"TRY_measurements.csv\",\n \"references\" => \"TRY_references.csv\",\n \"taxa\" => \"TRY_taxa.csv\",\n \"occurrence\" => \"TRY-occurrences.csv\"\n )\n );\n */\n \n print_r($info);\n $temp_dir = $info['temp_dir'];\n $tables = $info['tables'];\n echo \"\\nConverting TRY dbase CSV archive to EOL DwCA...\\n\";\n foreach($tables as $class => $filename) {\n self::process_extension($class, $temp_dir.$filename);\n }\n $this->archive_builder->finalize(TRUE);\n // remove temp dir\n recursive_rmdir($temp_dir); //un-comment in real operation\n echo (\"\\n temporary directory removed: \" . $temp_dir);\n if($this->debug) Functions::start_print_debug($this->debug, $this->resource_id);\n }", "title": "" }, { "docid": "e5da67885f579f5ea3a1e46bf1711e3b", "score": "0.46145505", "text": "function downloadAndUnpackDistro()\n\t{\n\t\t$filename = 'ezpublish.tar.gz';\n\t\t\n\t\t// keep old dir\n\t\t$old_dir = getcwd();\n\t\t\n\t\t// fetch distro location\n\t\t$distroLocation = $this->cfg->getSetting('ezupgrade', 'General', 'DistroLocation');\n\t\t\n\t\t// change to install folder\n\t\tchdir($this->upgradeData['upgrade_base_path']) or die(\"can't chdir!\\n\");\n\t\t\n\t\t$newDistroFolderName = 'ezpublish-' . $this->upgradeToVersion;\n\t\t\n\t\t// if a distro location is specified\n\t\tif($distroLocation != false)\n\t\t{\n\t\t\t$this->log('Copying distro from specified location ');\n\t\t\t\n\t\t\t// build distro file name and path\n\t\t\t$distroFile = $distroLocation . $newDistroFolderName . '-gpl.tar.gz';\n\t\t\t\n\t\t\t// make sure the diso file exists at the specified location\n\t\t\tif(!file_exists($distroFile))\n\t\t\t{\n\t\t\t\t$this->log('The distro file ' . $distroFile . ' does not exist.', 'critical');\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// do a checkpoint\n\t\t\t\t$this->checkpoint( 'Copying distro', 'Distro to copy: ' . $distroFile );\n\t\t\t\t\n\t\t\t\t// copy distro from distro location\n\t\t\t\t$cmd = 'cp \\'' . $distroFile . '\\' ' . $this->upgradeData['upgrade_base_path'] . $filename;\n\t\t\t\t\t\t\t\t\n\t\t\t\texec($cmd);\n\t\t\t\t\n\t\t\t\t$this->log(\"OK\\n\", 'ok');\n\t\t\t}\n\t\t}\n\t\t\n\t\t// if no distro location is specified\n\t\telse\n\t\t{\n\t\t\t$this->log(\"Downloading distro ($filename)\\n\");\n\n\t\t\t// do a checkpoint\n\t\t\t$this->checkpoint( 'Downloadind distro' );\n\n\t\t\t// download the file\n\t\t\t$command = \"curl -s -o $filename \" . $this->upgradeVersionSettings['DownloadURL'] . \" 2>&1\";\n\t\t\texec($command, $output, $rc);\n\t\t\n\t\t\tif ( $rc ) die(\"Error downloading file:<br>\" . implode(\"<br>\", $output));\n\t\t\t\n\t\t\t$this->log(\"OK\\n\", 'ok');\n\t\t}\n\t\t\n\t\t// unpacking tarball\n\t\t$this->unPackTar($filename, $this->upgradeData['upgrade_base_path']);\n\t\t\n\t\t// get the folder name\n\t\t// TODO: this is not entirely accurate, because eZ systems might change the way\n\t\t// they package their distros, but we use this for now\n\t\t// Previously, we tried fetching the last created folder, but since the unpacked\n\t\t// distro uses the date it was packed, this does not work\n\t\t$this->data['new_distro_folder_name'] = $this->upgradeData['upgrade_base_path'] . $newDistroFolderName . '/';\n\t\tif ( !is_dir( $this->data['new_distro_folder_name'] ) )\n\t\t{\n\t\t\tif ( is_dir( $this->upgradeData['upgrade_base_path'] . $newDistroFolderName . '-gpl/' ) )\n\t\t\t{\n\t\t\t\texec( 'mv ' . $this->upgradeData['upgrade_base_path'] . $newDistroFolderName . '-gpl/ ' . $this->data['new_distro_folder_name'] );\n\t\t\t}\n\t\t else if ( is_dir( $this->upgradeData['upgrade_base_path'] . $newDistroFolderName . '-with_ezc-gpl/' ) )\n\t\t\t{\n\t\t\t\texec( 'mv ' . $this->upgradeData['upgrade_base_path'] . $newDistroFolderName . '-with_ezc-gpl/ ' . $this->data['new_distro_folder_name'] );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->log( 'Did not find ' . $this->data['new_distro_folder_name'], 'critical' );\n\t\t\t}\n\t\t}\n\t\t// $last_line = exec(\"cd \" . $this->upgradeData['upgrade_base_path'] . \";ls -lrt | grep ^d\");\n\t\t// $this->data['new_distro_folder_name'] = rtrim(array_pop(preg_split(\"/[\\s]+/\", $last_line,-1,PREG_SPLIT_NO_EMPTY)), \"\\n\");\n\t\t\n\t\t// TODO: change ownership of files - uncertaion which user we should change to here\n\t\t// $cmd = \"chown -R \" . $this->data['ssh_user'] . \" \" . $this->data[''];\n\t\t// exec($cmd, $output, $rc);\n\t\t// if ( $rc ) print(\"WARNING: failed to chown $folder_name<br>\");\n\t\t\n\t\t// remove the distro file\n\t\tunlink($this->upgradeData['upgrade_base_path'] . $filename);\n\t\t\n\t\t// change back to old dir\n\t\tchdir($old_dir);\n\t}", "title": "" }, { "docid": "fd0246c1fae038b9fe683d0db3a8f849", "score": "0.4614449", "text": "public function make_signature() {\n echo '<p id=\"loading\"></p>';\n\t echo '<script> document.getElementById(\"loading\").innerHTML = \"<div class=\\\"loader\\\"></div> Please wait!\" </script>';\n foreach (glob($this->backup_dir.'/*.sig') as $filename) { \n if (file_exists($filename)) {\n\t unlink($filename);\n\t }\n }\n\n\t foreach (glob($this->backup_dir.'/backup.*') as $filename) {\n if (file_exists($filename) && ((strcmp(pathinfo($filename, PATHINFO_EXTENSION),'mbz')==0) || (strcmp(pathinfo($filename, PATHINFO_EXTENSION),'gz')==0) || (strcmp(pathinfo($filename, PATHINFO_EXTENSION),'zip')==0) || (strcmp(pathinfo($filename, PATHINFO_EXTENSION),'bz2')==0))) {\n if (strcmp($this->method,'rdiffdir') == 0){\n exec(\"rm -r '$this->backup_dir/backup'\");\n\t\t mkdir($this->backup_dir.'/backup', 0777);\n\t\t if ((strcmp(pathinfo($filename, PATHINFO_EXTENSION),'mbz')==0) || (strcmp(pathinfo($filename, PATHINFO_EXTENSION),'gz')==0) || (strcmp(pathinfo($filename, PATHINFO_EXTENSION),'bz2')==0)) {\n\t\t exec(\"tar xf '$filename' -C '$this->backup_dir/backup'\");\n\t\t } elseif (strcmp(pathinfo($filename, PATHINFO_EXTENSION),'zip')==0) {\n exec(\"unzip '$filename' -d '$this->backup_dir/backup'\");\n } else {\n\t\t echo '<script> alert(\"cannot extract, unsupported archive format, use regular rdiff\") </script>';\n\t\t }\n\t\t exec(\"chmod -R 777 '$this->backup_dir/backup'; rdiffdir signature '$this->backup_dir/backup' '$filename.sig'\");\n\t\t chmod($filename.sig, 0777);\n } else {\n\t exec(\"rdiff signature '$filename' '$filename.sig'\");\n }\n\t }\n }\n foreach (glob($this->backup_dir.'/*.sig') as $filename) { \n if (file_exists($filename)) {\n echo '<script> document.getElementById(\"loading\").innerHTML = \"'.$filename.' Created!\" </script>';\n\t }\n }\n\t }", "title": "" }, { "docid": "e3ddca806b1dfe2623fba843295f2458", "score": "0.4613386", "text": "function extract_alphred() {\n\t$me = Phar::running( false );\n\t$phar = new Phar( $me );\n\tif ( ! file_exists( 'Alphred' ) ) {\n\t\tmkdir( 'Alphred', 0775 );\n\t}\n\t$phar->extractTo( './Alphred' );\n\t$basedir = realpath( '.' );\n\tprint \"Extracted Alphred to `{$basedir}/Alphred/`.\\n\";\n}", "title": "" }, { "docid": "a4f9667ffc5cf9f9cd9d0b2811b19e65", "score": "0.46132758", "text": "final protected function initSUT( ) { }", "title": "" }, { "docid": "ca0786e689c6a10dfec7431e451f9b15", "score": "0.4612336", "text": "private function addFileHeader(): void\n {\n $forceEnableZip64 = $this->enableZeroHeader && $this->enableZip64;\n\n $footer = $this->buildZip64ExtraBlock($forceEnableZip64);\n\n $zip64Enabled = $footer !== '';\n\n if($zip64Enabled) {\n $this->version = Version::ZIP64;\n }\n\n if ($this->generalPurposeBitFlag & GeneralPurposeBitFlag::EFS) {\n // Put the tricky entry to\n // force Linux unzip to lookup EFS flag.\n $footer .= Zs\\ExtendedInformationExtraField::generate();\n }\n\n $data = LocalFileHeader::generate(\n versionNeededToExtract: $this->version->value,\n generalPurposeBitFlag: $this->generalPurposeBitFlag,\n compressionMethod: $this->compressionMethod,\n lastModificationDateTime: $this->lastModificationDateTime,\n crc32UncompressedData: $this->crc,\n compressedSize: $zip64Enabled\n ? 0xFFFFFFFF\n : $this->compressedSize,\n uncompressedSize: $zip64Enabled\n ? 0xFFFFFFFF\n : $this->uncompressedSize,\n fileName: $this->fileName,\n extraField: $footer,\n );\n\n\n ($this->send)($data);\n }", "title": "" }, { "docid": "194ee8da4bc950e07596a84ac99c6100", "score": "0.46084574", "text": "function download($reqst = '') {\n //não faz download se a pasta for diferente de 'assets'\n if (strpos($reqst, 'assets/') === false) return false;\n\n //checando a existencia do arquivo solicitado\n $reqst = _file_exists($reqst);\n if($reqst == false) return false;\n\n //gerando header apropriado\n include __DIR__ . '/mimetypes.php';\n $ext = end((explode('.', $reqst)));\n if (!isset($_mimes[$ext])) $mime = 'text/plain';\n else $mime = (is_array($_mimes[$ext])) ? $_mimes[$ext][0] : $_mimes[$ext];\n\n //get file\n $dt = file_get_contents($reqst);\n\n //download\n ob_end_clean();\n ob_start('ob_gzhandler');\n\n header('Vary: Accept-Language, Accept-Encoding');\n header('Content-Type: ' . $mime);\n header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 31536000) . ' GMT');\n header('Last-Modified: ' . gmdate('D, d M Y H:i:s', filemtime($reqst)) . ' GMT');\n header('Cache-Control: must_revalidate, public, max-age=31536000');\n header('Content-Length: ' . strlen($dt));\n header('x-Server: nfw/RunPHP');\n header('ETAG: '.md5($reqst));\n exit($dt);\n}", "title": "" }, { "docid": "65131391ce951d8488a1452fbcf019e0", "score": "0.46058586", "text": "private function get_license() {\n\t\treturn include self::ROOT . '/LICENSE.php';\n\t}", "title": "" } ]
2e65c2f8173ebb25208dfcbeb190cf6b
Get an option from the configuration options.
[ { "docid": "68b7616f4a1bcf278d08473488087056", "score": "0.0", "text": "public static function getConfig($option){\n //Method inherited from \\Illuminate\\Database\\Connection\n return \\Illuminate\\Database\\MySqlConnection::getConfig($option);\n }", "title": "" } ]
[ { "docid": "643eb667add2ab1ca8f83a4c2c42c4cb", "score": "0.77891785", "text": "public function getOption($option);", "title": "" }, { "docid": "1d8516649fa326e3e5638965a2112d12", "score": "0.7705714", "text": "public function getOption();", "title": "" }, { "docid": "786e4176288687079bde341ec55d2b45", "score": "0.7533601", "text": "public function get(string $option)\n {\n return $this->configuration->get($option);\n }", "title": "" }, { "docid": "153e5331784b517ebcd3df6524d1d0c4", "score": "0.74623924", "text": "public function getOption()\n {\n return $this->option;\n }", "title": "" }, { "docid": "153e5331784b517ebcd3df6524d1d0c4", "score": "0.74623924", "text": "public function getOption()\n {\n return $this->option;\n }", "title": "" }, { "docid": "ac8b48ed49eb1ac2823a72e4dee12d85", "score": "0.7412964", "text": "public function getOption ()\n {\n if (!isset($this->_option))\n {\n $this->_option = OptionMapper::getInstance()->find($this->optionId);\n }\n\n return $this->_option;\n }", "title": "" }, { "docid": "7c377956c571dda03134a7e77d446528", "score": "0.72318774", "text": "public function getConfOption() {\n $count= func_num_args();\n if($count==0)\n return $this->options['options'];\n $args= func_get_args();\n $value=$this->options['options'];\n $counter=0;\n foreach ($args as $arg) {\n if(is_string($arg) && isset($value[$arg])){\n $value=$value[$arg];\n $counter++;\n }\n }\n if($counter==$count)\n return $value;\n else\n return false;\n }", "title": "" }, { "docid": "ee109aad9d68538196219f18223bf103", "score": "0.72179526", "text": "final public function getOption($option)\n {\n return $this->definition->getOption($option);\n }", "title": "" }, { "docid": "61467e497b2e97a6d0cc7edbfffc7323", "score": "0.72070557", "text": "public function getOption($name);", "title": "" }, { "docid": "61467e497b2e97a6d0cc7edbfffc7323", "score": "0.72070557", "text": "public function getOption($name);", "title": "" }, { "docid": "fde39212658493d6236339c9afddd840", "score": "0.71875095", "text": "public function __get($option) {\n try {\n return $this->getOption($option);\n }\n catch (InvalidArgumentException $e) {\n // Do nothing. Allow the option to be improperly accessed, which\n // should throw an error anyways.\n }\n }", "title": "" }, { "docid": "fb83ddda7316abae65bdd9dc265262f6", "score": "0.7145705", "text": "public static function get($name)\n {\tif (!self::exists($name))\n return NULL;\n return self::$options[$name];\n }", "title": "" }, { "docid": "c8f7735afced7f00dfa4c7b6f08677f4", "score": "0.70580804", "text": "public function getOption($option) {\n if (strpos($option, '_') !== FALSE) {\n $option = implode('', array_map('ucfirst', explode('_', $option)));\n }\n $method = 'get'. ucfirst($option);\n if (!method_exists($this, $method)) {\n throw new InvalidArgumentException('Invalid option '. $option .'.');\n }\n return $this->{$method}();\n }", "title": "" }, { "docid": "7fe84089ba05c496b1e710b1cbf29026", "score": "0.7057343", "text": "public function getOption($option)\n {\n return @$this->_options[$option];\n }", "title": "" }, { "docid": "9be1cf721c7bb5f6ff6460ca6a698cf5", "score": "0.70489", "text": "public function __get( string $option ) {\n\t\treturn ( $this->options[ $option ] ?? self::$option_defaults[ $option ] );\n\t}", "title": "" }, { "docid": "8c1bcd70d5044a6cf79528bc8cd4601d", "score": "0.70424753", "text": "protected function option($name) {\n if( !$this->options ) \n $options = $this->default_options;\n else\n $options = $this->options;\n \n if( !empty($options[$name]) )\n return $options[$name];\n \n elseif( !empty($this->default_options[$name]))\n return $this->default_options[$name];\n \n else\n return false;\n }", "title": "" }, { "docid": "6789ce5bb1a83666f8853ce2ddeffd5c", "score": "0.7042145", "text": "public function getOption($key) {\n if (array_key_exists($key, $this->options))\n return $this->options[$key];\n }", "title": "" }, { "docid": "38c6ff0b5b28b0a59eae01af5cf948f0", "score": "0.7028317", "text": "public function getOption($name)\n {\n if (!isset($this->options[$name]))\n {\n return;\n }\n\n return $this->options[$name];\n }", "title": "" }, { "docid": "1f92cc1656b0b37735c5dd2387b270bb", "score": "0.7021976", "text": "public function getOption(string $name): mixed;", "title": "" }, { "docid": "e249219b558d7517d551e21c2f27c9c7", "score": "0.7013899", "text": "public function getOption($option, $default = null);", "title": "" }, { "docid": "e249219b558d7517d551e21c2f27c9c7", "score": "0.7013899", "text": "public function getOption($option, $default = null);", "title": "" }, { "docid": "9352fc58e8ee58043003827a97ab7725", "score": "0.6993554", "text": "public function getOption($name) {\n\t\tif(isset($this->globalProperties['Options'][$name])) {\n\t\t\treturn $this->globalProperties['Options'][$name];\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e981e711a9d720b1199d9dd983db5773", "score": "0.69927764", "text": "public static function getOption($option) {\n if (self::$init === false) return false;\n return self::$redis->getOption($option);\n }", "title": "" }, { "docid": "fad8068ab97d95e8f5801510b2ce39a4", "score": "0.69669324", "text": "function GetOption( $key ) {\r\n if ( array_key_exists( $key, $this->options ) ) {\r\n return $this->options[$key];\r\n } else return null;\r\n }", "title": "" }, { "docid": "b5d386cd7c097e86fa2349ffe69ddb41", "score": "0.69334847", "text": "public function getConfig($option = null)\n {\n return Arr::get($this->config, $option);\n }", "title": "" }, { "docid": "e8daabdef5f3460095e59b3aa4ea69de", "score": "0.69146353", "text": "public function getOption($key);", "title": "" }, { "docid": "cd90dc56162c6bbee40038dec302d735", "score": "0.6899419", "text": "protected function getConfigOption($option) {\n\t\ttry {\n\t\t\t$option_container = $this->config_xml->xpath(\"//config[@name='\".$option.\"']\");\n\t\t\tif ($option_container[0] instanceof SimpleXMLElement) {\n\t\t\t \treturn $option_container[0][0];\n\t\t\t} else {\n\t\t\t\tthrow new Exception(\"getConfigOption: could not retrieve config option\");\n\t\t\t}\n\t\t} catch (Exception $e) {\n\t\t\tprint \"Error: \" . $e->getMessage();\n\t\t\texit ;\n\t\t}\n\t}", "title": "" }, { "docid": "1c0a8fe62b9fd9608f318b6d0efcdba5", "score": "0.6896215", "text": "function get_option($name){\n\t\t$_this =& bpModeration::get_istance();\n\n\t\tif( isset( $_this->options[$name] ) )\n\t\t\treturn $_this->options[$name];\n\t\telse\n\t\t\treturn null;\n\t}", "title": "" }, { "docid": "75cd140111e18136802ccb489ce35c5a", "score": "0.6883221", "text": "public function getOpt(String $option=null)\n\t{\n\t\treturn $this->options[$option] ?? null;\n\t}", "title": "" }, { "docid": "5b7e83d2218e3af900edbb519dc2de8c", "score": "0.68506867", "text": "public function get($option = null)\n {\n if (!is_null($option)) {\n return $this->has($option) ? $this->options[$option] : null;\n\n } else {\n return $this->options;\n }\n\n }", "title": "" }, { "docid": "e147d0be8b3338056918932ed8ce1cf1", "score": "0.68013763", "text": "public function get_option($option_name)\n {\n $method = \"get_option_\".$option_name;\n if(! method_exists($this, $method))\n {\n return null;\n } \n return $this->$method();\n }", "title": "" }, { "docid": "5d7808f3233dc62534ca70c838b3f0f5", "score": "0.67988944", "text": "public function getOption( $name ) {\n return isset( $this->options[$name]) ? $this->options[$name] : null;\n }", "title": "" }, { "docid": "b8143e9763773663c575c0e9347b351e", "score": "0.67886245", "text": "public function getOption($name) {\n\t\t$name = strtoupper(str_replace('-', '_', $name));\n\t\treturn isset($this->options[$name]) ? $this->options[$name] : null;\n\t}", "title": "" }, { "docid": "7d8adeea07026d70789896880e9185be", "score": "0.67874044", "text": "public function Get($key) {\n if($this->IsValidKey($key)) return get_option($key);\n else return FALSE;\n }", "title": "" }, { "docid": "9bae2eb28372863a8177193b28cc4b1b", "score": "0.6786918", "text": "public function get() {\n\t\treturn $this->encrypted_options->get( self::OPTION );\n\t}", "title": "" }, { "docid": "a17578fb853444453e3d865d3072f9c8", "score": "0.6781282", "text": "public function getOption($key)\n {\n return $this->options[$key];\n }", "title": "" }, { "docid": "a17578fb853444453e3d865d3072f9c8", "score": "0.6781282", "text": "public function getOption($key)\n {\n return $this->options[$key];\n }", "title": "" }, { "docid": "5f0ef35ee92be8c94c216a90345df1ad", "score": "0.6771993", "text": "protected function option($option)\n {\n if (! isset($this->options[$option])) {\n return null;\n }\n\n return $this->options[$option];\n }", "title": "" }, { "docid": "9ce67faddcb253c107c12bce592bf81e", "score": "0.67441404", "text": "public function getOption($name)\n {\n return isset($this->options[$name]) ? $this->options[$name] : null;\n }", "title": "" }, { "docid": "67cc21239222fbfa989fb3de5e0d4070", "score": "0.6734157", "text": "public function getOption($key)\n {\n if ($this->_consoleOpt->$key) {\n\n return $this->_consoleOpt->$key;\n } else {\n\n return $this->_requestValue($key);\n }\n }", "title": "" }, { "docid": "127f4b9a2e69bbcefab6ef9d1f1a7443", "score": "0.67325056", "text": "public function getOption($key)\n {\n return $this->hasOption($key) ? $this->options[$key] : null;\n }", "title": "" }, { "docid": "dcd1653050e87ca73da8bc50054b8c6a", "score": "0.6720275", "text": "public function getOption($name)\n {\n if (array_key_exists($name, $this->options)) {\n return $this->options[$name];\n }\n return null;\n }", "title": "" }, { "docid": "0249c95a577db951b662f346203a101b", "score": "0.6719779", "text": "public function getOpt()\n {\n return $this->getValue(self::OPT);\n }", "title": "" }, { "docid": "da67a4d91fce0f229966f77215fd5401", "score": "0.67135537", "text": "public function get($param = '') {\n $this->validate();\n\n if ($param) {\n if (array_key_exists($param, $this->config)) {\n return $this->config[$param];\n }\n else {\n throw new OptionConfigException('option param not valid: ' . $param);\n }\n }\n\n return $this->config;\n }", "title": "" }, { "docid": "43b0de1c304bbbfbeaaadcfde63a95a2", "score": "0.67067397", "text": "public function getOption($name)\n {\n if (isset($this->options[$name])) {\n return $this->options[$name];\n }\n return false;\n }", "title": "" }, { "docid": "86f58187885f1dfd2c22e9caa6e5ec10", "score": "0.6705636", "text": "function GetOption($name){}", "title": "" }, { "docid": "2aa850f7de26d93c8e2f6d440685401e", "score": "0.6702161", "text": "public function get()\n\t{\n\t\t$distro = self::getDistro();\n\t\tif (isset($this->options[$distro->slug])) {\n\t\t\treturn $this->options[$distro->slug];\n\t\t} elseif (isset($this->options[$distro->majorSlug])) {\n\t\t\treturn $this->options[$distro->majorSlug];\n\t\t} elseif (isset($this->options[$distro->distroID])) {\n\t\t\treturn $this->options[$distro->distroID];\n\t\t} elseif (isset($this->options[$distro->base])) {\n\t\t\treturn $this->options[$distro->base];\n\t\t}\n\t\treturn $this->default;\n\t}", "title": "" }, { "docid": "51943561fb4b2130dc2a5667be61c732", "score": "0.6699363", "text": "public function getOption(int $name): string|int|bool|null\n {\n return $this->_Memcached->getOption($name);\n }", "title": "" }, { "docid": "487c14e793ddd5780f0b2b79c4987342", "score": "0.6698176", "text": "function of_get_option( $name, $default = false )\n\t\t{\n\n\t\t\t$config = get_option( 'optionsframework' );\n\n\t\t\tif( ! isset( $config['id'] ) )\n\t\t\t{\n\t\t\t\treturn $default;\n\t\t\t}\n\n\t\t\t$options = get_option( $config['id'] );\n\n\t\t\tif( isset( $options[$name] ) )\n\t\t\t{\n\t\t\t\treturn $options[$name];\n\t\t\t}\n\n\t\t\treturn $default;\n\n\t\t}", "title": "" }, { "docid": "f9cf260a234f8c6cf5e5ada5ce1eb879", "score": "0.66961616", "text": "public function getOption($name)\n {\n return isset($this->optionMapping[$name]) ? $this->optionMapping[$name] : null;\n }", "title": "" }, { "docid": "18a84e664e5475731ebd362eebdb4f61", "score": "0.66946894", "text": "public static function getOption($key = null)\n {\n self::init();\n return self::$instance->getOption($key);\n }", "title": "" }, { "docid": "1da848e29c4eaaafa01821424962a80e", "score": "0.669405", "text": "public function getOption($name) {\n if (isset($this->getOptions()[$name])) {\n return $this->getOptions()[$name];\n }\n\n return null;\n }", "title": "" }, { "docid": "7ff5ad393d79e89de288af75d3fd2554", "score": "0.6676751", "text": "public static function get($option_name = null)\n {\n if (is_null($option_name))\n {\n return static::$options;\n }\n else\n {\n if (false !== strstr($option_name, '.')) // Sub-sectioned name\n {\n try\n {\n return self::_getSection(explode('.', $option_name), static::$options);\n }\n catch (InternalException $e)\n {\n throw new Exception(\"Option '$option_name' doesn't exist\");\n }\n }\n else // Top-level name\n {\n if (array_key_exists($option_name, static::$options))\n {\n return static::$options[$option_name];\n }\n else\n {\n throw new Exception(\"Option '$option_name' doesn't exist\");\n }\n }\n }\n }", "title": "" }, { "docid": "5e7b1a5e8f78a490c68d44a708c09262", "score": "0.6658738", "text": "public function getOption ($option) {\n\t\tif (isset($this->aOption[$option])) {\n\t\t\t$this->iResultCode = Memcached::RES_SUCCESS;\n\t\t\t$this->sResultMessage = '';\n\t\t\treturn $this->aOption[$option];\n\t\t}\n\t\telse {\n\t\t\t$this->iResultCode = Memcached::RES_FAILURE;\n\t\t\t$this->sResultMessage = 'Option not seted.';\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "aa6527e7b1f5d7a39d37443b15aa9763", "score": "0.66530615", "text": "function acapi_get_option($name) {\n list($site) = acapi_get_site();\n\n $options = acapi_common_options();\n if (!isset($options[$name])) {\n return drush_set_error('ACAPI_UNKNOWN_OPTION', dt('Unknown ac-api option @name.', array('@name' => $name)));\n }\n\n $value = drush_get_option($name, NULL);\n if (isset($value)) {\n return $value;\n }\n\n drush_load_config_file('home.user', drush_get_option('ac-config', $options['ac-config']['default_value']));\n $acapi_options = drush_get_option('acapi', array(), 'home.user');\n if (isset($acapi_options[$name])) {\n return $acapi_options[$name];\n }\n\n drush_load_config_file('home.drush', drush_acapi_get_config($site));\n $acapi_options = drush_get_option('acapi', array());\n if (isset($acapi_options[$site][$name])) {\n return $acapi_options[$site][$name];\n }\n\n if (!empty($options[$name]['default_value'])) {\n return $options[$name]['default_value'];\n }\n\n return;\n}", "title": "" }, { "docid": "0f19ec439d16569288d9ff0eda121fa1", "score": "0.6629281", "text": "protected function get_option( $class_name ) {\n\t\tif ( ! isset( $this->lookup[ $class_name ] ) ) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn $this->lookup[ $class_name ]['option'];\n\t}", "title": "" }, { "docid": "f773abc3236fb95801b3154c6c382d2b", "score": "0.6623421", "text": "function astoundify_themecustomizer_get_option( $option ) {\n\treturn Astoundify_ThemeCustomizer_Manager::get_option( $option );\n}", "title": "" }, { "docid": "f28eba85da931a82971574a77978519c", "score": "0.6602731", "text": "public function __get($option)\n {\n // properties that can be get directly\n static $getting_allowed = array('uri');\n\n $r = null;\n if (isset($this->options[$option])) {\n $r = $this->options[$option];\n } elseif (property_exists($this, $option)) {\n if (in_array($option, $getting_allowed)) {\n $r = $this->$option;\n }\n }\n return $r;\n }", "title": "" }, { "docid": "e8fa099469454c256a5a6837f51ff896", "score": "0.66012204", "text": "function GetOption($key) {\r\n\t\tif(strpos($key,\"sm_\")!==0) $key=\"sm_\" . $key;\r\n\t\tif(array_key_exists($key,$this->_options)) {\r\n\t\t\treturn $this->_options[$key];\t\r\n\t\t} else return null;\r\n\t}", "title": "" }, { "docid": "bd8316c161e20602ccc96b1ccb9c8d18", "score": "0.6593933", "text": "public function getOption($name)\n {\n if (isset($this->_options[$name])) {\n return $this->_options[$name];\n }\n return null;\n }", "title": "" }, { "docid": "a43da361a1561c72b5060612343ef4ae", "score": "0.6575827", "text": "public function getOption(string $name)\n {\n if (array_key_exists($name, $this->options)) {\n return $this->options[$name];\n }\n\n return null;\n }", "title": "" }, { "docid": "35594a9e82fa477cc4ca72c3eb21e26f", "score": "0.6572698", "text": "final public function getOption($parameter)\n {\n return $this->options[$parameter];\n }", "title": "" }, { "docid": "4e6c8935c5a3007930764d95a203d061", "score": "0.65723157", "text": "public function getOption($name) {\n\t\tif ($name == 'tag_cache') {\n\t\t\treturn $this->getInnerCache ();\n\t\t} else {\n\t\t\tif (in_array ( $name, $this->_options )) {\n\t\t\t\treturn $this->_options [$name];\n\t\t\t}\n\t\t\tif ($name == 'lifetime') {\n\t\t\t\treturn parent::getLifetime ();\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "6e119777a170b8b484fa5855c0d116fa", "score": "0.6566284", "text": "protected function get($configOption, $fallback = null) {\n\t\treturn isset($this->configuration[$configOption]) ? $this->configuration[$configOption] : $fallback;\n }", "title": "" }, { "docid": "500b442456cfc152559d78b9684d5a83", "score": "0.6566264", "text": "public function get($name)\n\t{\n\t\t$nameInput = $name;\n\n\t\t// long variant to name\n\t\tif (substr($name, 0, 2) == '--')\n\t\t{\n\t\t\t$long = substr($name, 2);\n\t\t\t$name = isset($this->optionsLongs[$long]) ? $this->optionsLongs[$long] : NULL;\n\t\t}\n\t\t// short variant to name\n\t\telseif (substr($name, 0, 1) == '-')\n\t\t{\n\t\t\t$short = substr($name, 1);\n\t\t\t$name = isset($this->optionsShorts[$short]) ? $this->optionsShorts[$short] : NULL;\n\t\t}\n\n\t\tif (!isset($this->optionsValues[$name]))\n\t\t{\n\t\t\tthrow new InvalidArgumentException($nameInput . ': Unknown option.');\n\t\t}\n\n\t\t// default option\n\t\tif (!is_null($this->defaults) && ($this->defaults['name'] == $name) && (count(Arguments::options()) == 0))\n\t\t{\n\t\t\treturn $this->defaults['value'];\n\t\t}\n\n\t\treturn $this->optionsValues[$name];\n\t}", "title": "" }, { "docid": "4dbee80a05eb235c6f7ee251131ae437", "score": "0.6559145", "text": "protected function getOption($key)\n {\n return $this->options[$key];\n }", "title": "" }, { "docid": "8a301d26658007778b3643af7a0f0a8a", "score": "0.6551565", "text": "public function findOneByOption($option) {\r\n\t return $this->settingsRepository->findOneByOption($option);\r\n }", "title": "" }, { "docid": "d103511403d170504274b44b8c1df382", "score": "0.65298754", "text": "public function getOption(string $optionName)\n {\n if (in_array($optionName, array_keys($this->config))) {\n return $this->config[$optionName];\n }\n\n return null;\n }", "title": "" }, { "docid": "e62df6cfd5a93687f91a864a16dd37a2", "score": "0.65151787", "text": "public function getOption($name)\n {\n $this->getOptions();\n \n $name = strtoupper($name);\n \n if(!isset($this->options[$name]))\n {\n throw new InvalidArgumentException('Invalid option name');\n }\n \n return $this->options[$name];\n }", "title": "" }, { "docid": "bddfcdc633e1a0dcd7608f95892b3cf6", "score": "0.6510486", "text": "function getOption($varName){\n\t\treturn $this->options[$varName];\n\t}", "title": "" }, { "docid": "870a0220f3e116d5ef48076ff94b464f", "score": "0.65097255", "text": "public function getOption($name)\n {\n if ( !$this->has_run ) {\n $this->run();\n }\n $given_option = NULL;\n $other_name = NULL;\n // is this a valid thing to ask for?\n foreach ( $this->options as $given_option ) {\n // in either case, track what the \"other\" name for this\n // might be, so that we could invoke the long form\n // \"--verbose\" but ask for the short form \"v\"\n if ( array_key_exists('long', $given_option) && $given_option['long'] === $name ) {\n $option = $given_option;\n $other_name = array_key_exists('short', $option) ? $option['short'] : NULL;\n break;\n } elseif ( array_key_exists('short', $given_option) && $given_option['short'] === $name ) {\n $option = $given_option;\n $other_name = array_key_exists('long', $option) ? $option['long'] : NULL;\n break;\n }\n }\n if ( !$given_option ) {\n throw new \\Exception('Invalid option requested');\n }\n if ( array_key_exists($name, $this->parsed_options) ) {\n $return = $this->parsed_options[$name];\n } elseif ( array_key_exists($other_name, $this->parsed_options) ) {\n $return = $this->parsed_options[$other_name];\n } else {\n $return = NULL;\n }\n if ( $return === FALSE ) {\n $return = TRUE;\n }\n return $return;\n }", "title": "" }, { "docid": "31c2c37ab362b7fc8795e1e1c46640ef", "score": "0.6508553", "text": "private function getOption($option, $default = null)\n {\n return sfConfig::get('app_nc_tracker_plugin_'.$option, $default);\n }", "title": "" }, { "docid": "4c75f404ff2b99f407de962149215be6", "score": "0.65002304", "text": "public function getValue(string $option);", "title": "" }, { "docid": "09787619039385f6a53745453be7658c", "score": "0.6491987", "text": "public function getOption($name)\n {\n return $this->cur->getOption($name);\n }", "title": "" }, { "docid": "1f293a83cac18c70a618d78fd31aa49a", "score": "0.64882517", "text": "public function getConfig($option = null)\n {\n return $this->client->getConfig($option);\n }", "title": "" }, { "docid": "5b32658ace14984093a3a20d5d5d8116", "score": "0.6481024", "text": "public function get($key)\n {\n if (!array_key_exists($key, $this->options)) {\n return null;\n }\n /** @var string|array|mixed $options */\n $options = $this->options[$key];\n return $options;\n }", "title": "" }, { "docid": "1e30ff7a674299c4e33b0a121a243982", "score": "0.64809626", "text": "protected function getOption($name)\n {\n $options = $this->getOptions();\n\n return isset($options[$name]) ? $options[$name] : null;\n }", "title": "" }, { "docid": "b3c05e18212965ba6c2b1c51b6323b8e", "score": "0.6468034", "text": "public static function get_settings_option($option)\n {\n $options = get_option(self::$plugin_name);\n return $options[$option];\n }", "title": "" }, { "docid": "0261edf4cae68ed5a7274d72c22a52de", "score": "0.6466509", "text": "function rocket_lazyload_get_option( $option, $default = false ) {\n\t$options = get_option( 'rocket_lazyload_options' );\n\treturn isset( $options[ $option ] ) && '' !== $options[ $option ] ? $options[ $option ] : $default;\n}", "title": "" }, { "docid": "627948f235830ad7f6356fae7615dbb2", "score": "0.64638996", "text": "public function option(String $name)\n {\n return $this->options[$name] ?? false;\n }", "title": "" }, { "docid": "0150f1a346ad9d494c9877fae6fe92b4", "score": "0.64534664", "text": "public static function getOption($key){\n\t\tif(class_exists(\"ORM\")){\n\t\t\t$option = ORM::for_table(System::getConfig('settingstable'))->where('key', $key)->find_one();\n\t\t\tif($option !== false){\n\t\t\t\treturn $option->value;\n\t\t\t}else{\n\t\t\t\tSystem::log(\"Option was not found\", true);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}else{\n\t\t\tself::log(\"Calling a DB-function before the ORM-class is defined is just silly..\");\n\t\t}\n\t}", "title": "" }, { "docid": "1196562f977f2a0c10cdf24ca127940f", "score": "0.6452667", "text": "public function getOption($name)\n {\n if (false === $this->hasOption($name)) {\n return null;\n }\n\n return $this->options[$name];\n }", "title": "" }, { "docid": "43280e9917122d7a9799706c7293c773", "score": "0.64389634", "text": "public function getOption(string $key)\n {\n if (isset($this->options[$key])) {\n return $this->options[$key];\n }\n\n throw new ConverterException('Option \"' . $key . '\" has not been set');\n }", "title": "" }, { "docid": "d9daa0a0ee8bfbc388d6e56e87f9c42b", "score": "0.6434983", "text": "public static function getOption($name)\n {\n return OptionsPage::getInstance()->getOption($name);\n }", "title": "" }, { "docid": "cc34ff8e443f3b2454a39cf5fb0bef18", "score": "0.6414699", "text": "public function get($name)\n {\n if (isset($this->options[$name])) {\n return $this->options[$name];\n }\n\n $keys = explode('.', $name);\n $array = $this->options;\n\n do {\n $key = array_shift($keys);\n if (isset($array[$key])) {\n if ($keys) {\n if (is_array($array[$key])) {\n $array = $array[$key];\n } else {\n break;\n }\n } else {\n return $array[$key];\n }\n } else {\n break;\n }\n } while ($keys);\n\n return null;\n }", "title": "" }, { "docid": "100d9ebd8a1b5c59f44a0d4ef2ad72fd", "score": "0.6405474", "text": "public function get_option() {\n if ( ! function_exists('icl_object_id') ) {\n $options = wp_cache_get( $this->cc->values[ 'settings_name' ], 'berocket_framework_option' );\n }\n if( empty($options) ) {\n $options = get_option( $this->cc->values[ 'settings_name' ] );\n\n if ( ! empty($options) && is_array( $options ) ) {\n $options = array_merge( $this->cc->defaults, $options );\n } else {\n $options = $this->cc->defaults;\n }\n $options = apply_filters('brfr_get_option_cache_' . $this->cc->info[ 'plugin_name' ], $options, $this->cc->defaults);\n wp_cache_set( $this->cc->values[ 'settings_name' ], $options, 'berocket_framework_option', 600 );\n }\n $global_options = $this->get_global_option();\n if( count($this->global_settings) ) {\n foreach($this->global_settings as $global_setting) {\n if( isset($global_options[$global_setting]) ) {\n $options[$global_setting] = $global_options[$global_setting];\n }\n }\n }\n\n $options = apply_filters('brfr_get_option_' . $this->cc->info[ 'plugin_name' ], $options, $this->cc->defaults);\n\n return $options;\n }", "title": "" }, { "docid": "97cb8cd9084b3793b1857b2340185afe", "score": "0.6397069", "text": "public function getOption( $option, $default = false ) {\n\t\t// prefix options to prevent namespace conflicts\n\t\t$option = 'cubepoints_' . $option;\n\n\t\treturn get_site_option( $option, $default );\n\t}", "title": "" }, { "docid": "97d51233fbaf1544fb02e92d5aca7abd", "score": "0.6390048", "text": "function vf_get_option($option_name, $default_value = FALSE) {\n\t$vf_options = get_option(VF_OPTIONS_NAME);\n\treturn vf_get_value($option_name, $vf_options, $default_value);\n}", "title": "" }, { "docid": "f27c4d8ed4bac88b06bf957623662e43", "score": "0.6383899", "text": "public function getOption($id){\n\t\tforeach ($this->options as $key => $option) {\n\t\t\tif($option->id == $id){\n\t\t\t\treturn $option;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e9565159941bbfebb88aaeed3eecd7a6", "score": "0.637823", "text": "protected function getOption($key)\n {\n if (!isset($this->options[$key])) {\n return null;\n }\n\n return $this->options[$key];\n }", "title": "" }, { "docid": "55df15c0fc2423d394fc5e6de030a274", "score": "0.6373489", "text": "function wp_cache_get_option( $option ) {\n\tglobal $wp_object_cache;\n\n\treturn $wp_object_cache->getOption( $option );\n}", "title": "" }, { "docid": "41a9f0fb596521676e6a11615b1e3e1a", "score": "0.6366041", "text": "public function getOption($name)\n {\n if (!array_key_exists($name, $this->commandOptions)) {\n return null;\n }\n\n $option = $this->commandOptions[$name];\n\n if ($option->hasBeenProvided() && $option->getProvidedValue() === null && $option->getDefaultValue() === null) {\n return true;\n }\n\n return $option->getValue();\n }", "title": "" }, { "docid": "48632d6ff8e9ca04b6797244c3b61688", "score": "0.6362467", "text": "public function getOption($name, $default = null);", "title": "" }, { "docid": "7ead05ef4e4f59d036a7dd0d6197a2dd", "score": "0.63557416", "text": "public function getOption($key, $default = null);", "title": "" }, { "docid": "2b28d58631062b86b43fa4e75b2f2a06", "score": "0.63280416", "text": "public static function better_get_option($option) {\n $value = get_option($option);\n\n if (false === $value) {\n return null;\n }\n else {\n if ('Y' == strtoupper($value)) {\n $value = true;\n }\n else if ('N' == strtoupper($value)) {\n $value = false;\n }\n }\n\n return $value;\n }", "title": "" }, { "docid": "12e1ed11b95f8bfd302aeeb51d73eb6a", "score": "0.6307901", "text": "public function getOption($option, $default = null)\n {\n return isset($this->_options[$option]) ?\n $this->_options[$option] : $default;\n }", "title": "" }, { "docid": "455c612649cc0f841016091200f452dc", "score": "0.6296871", "text": "public static function get ( $option, $default = false ) {\n\t\t$option = self::get_options( $option );\n\t\tif ( is_array( $option ) && empty( $option ) ) {\n\t\t\treturn null;\n\n\t\t}\n\n\t\tif ( is_null( $option ) ) {\n\t\t\treturn $default;\n\n\t\t}\n\n\t\treturn $option;\n\n\t}", "title": "" }, { "docid": "6ae5e0d7061912d9087ad4c6f6af4dab", "score": "0.62896216", "text": "public function getOption($strName)\n\t{\n\t\treturn $this->arrOptions[$strName];\n\t}", "title": "" }, { "docid": "d7c9f772f33a83ea83e27b468deaa444", "score": "0.62884945", "text": "public function get_option( $name, $default = null );", "title": "" }, { "docid": "0495fd186f013850a182ae2b00c23525", "score": "0.6288287", "text": "public static function getOption( $name = '' ) {\r\n\t\t$options = get_option( 'wpfc_options' );\r\n\r\n\t\tif ( ! empty( $options[ $name ] ) ) {\r\n\t\t\treturn $options[ $name ];\r\n\t\t}\r\n\r\n\t\treturn '';\r\n\t}", "title": "" }, { "docid": "cd790bd70a2ada99bfb4b32023e94991", "score": "0.6284418", "text": "public function getOption($name)\n {\n if (isset($this->defaultOptions[$name])) {\n return $this->defaultOptions[$name];\n }\n\n return null;\n }", "title": "" } ]
246fe5a18349c9783ba5b64b501f41c4
Loads the column information into a [[ColumnSchema]] object.
[ { "docid": "b1d4618afcf81c2f7e64be42b1082d5d", "score": "0.70265543", "text": "protected function loadColumnSchema($info)\n {\n $column = $this->createColumnSchema();\n\n $column->name = $info['column_name'];\n $column->allowNull = $info['is_nullable'] === 'YES';\n $column->dbType = $info['data_type'];\n $column->enumValues = []; // mssql has only vague equivalents to enum\n $column->isPrimaryKey = null; // primary key will be determined in findColumns() method\n $column->autoIncrement = $info['is_identity'] == 1;\n $column->isComputed = (bool)$info['is_computed'];\n $column->unsigned = stripos($column->dbType, 'unsigned') !== false;\n $column->comment = $info['comment'] === null ? '' : $info['comment'];\n\n $column->type = self::TYPE_STRING;\n if (preg_match('/^(\\w+)(?:\\(([^\\)]+)\\))?/', $column->dbType, $matches)) {\n $type = $matches[1];\n if (isset($this->typeMap[$type])) {\n $column->type = $this->typeMap[$type];\n }\n if (!empty($matches[2])) {\n $values = explode(',', $matches[2]);\n $column->size = $column->precision = (int) $values[0];\n if (isset($values[1])) {\n $column->scale = (int) $values[1];\n }\n if ($column->size === 1 && ($type === 'tinyint' || $type === 'bit')) {\n $column->type = 'boolean';\n } elseif ($type === 'bit') {\n if ($column->size > 32) {\n $column->type = 'bigint';\n } elseif ($column->size === 32) {\n $column->type = 'integer';\n }\n }\n }\n }\n\n $column->phpType = $this->getColumnPhpType($column);\n\n if ($info['column_default'] === '(NULL)') {\n $info['column_default'] = null;\n }\n if (!$column->isPrimaryKey && ($column->type !== 'timestamp' || $info['column_default'] !== 'CURRENT_TIMESTAMP')) {\n $column->defaultValue = $column->defaultPhpTypecast($info['column_default']);\n }\n\n return $column;\n }", "title": "" } ]
[ { "docid": "d41444eb0223b4a45f19268d53164d3d", "score": "0.74395376", "text": "protected function _loadTableSchema()\n {\n $tblSchema = $this->_db->queryArray('SHOW COLUMNS FROM '.$this->_table);\n\n foreach($tblSchema as $colSchema)\n {\n $column = array\n (\n 'name' => $colSchema['Field'],\n 'type' => $colSchema['Type']\n );\n $this->_columns[$colSchema['Field']] = $column;\n }\n }", "title": "" }, { "docid": "87a17430b2b449da38c05b67473afc19", "score": "0.7016463", "text": "protected function loadColumnSchema($info)\n {\n\n $column = $this->createColumnSchema();\n $column->name = $info['column_name'];\n $column->allowNull = $info['nulls'] === 'Y';\n $column->dbType = $info['base_type'];\n $column->enumValues = []; // mssql has only vague equivalents to enum\n $column->size = $info['width']; // display size of the column (integer)\n $column->scale = $info['scale']; // display size of the column (integer)\n $column->isPrimaryKey = null; // primary key will be determined in findColumns() method\n $column->autoIncrement = $info['default'] == 'autoincrement';\n $column->unsigned = stripos($column->dbType, 'unsigned') !== false;\n //$column->comment = $info['comment'] === null ? '' : $info['comment'];\n\n $column->type = self::TYPE_STRING;\n if (preg_match('/^(\\w+)(?:\\(([^\\)]+)\\))?/', $column->dbType, $matches)) {\n $type = $matches[1];\n if (isset($this->typeMap[$type])) {\n $column->type = $this->typeMap[$type];\n }\n\n if (!empty($matches[2])) {\n $values = explode(',', $matches[2]);\n $column->size = $column->precision = (int) $values[0];\n if (isset($values[1])) {\n $column->scale = (int) $values[1];\n }\n if ($column->size === 1 && ($type === 'tinyint' || $type === 'bit')) {\n $column->type = 'boolean';\n } elseif ($type === 'bit') {\n if ($column->size > 32) {\n $column->type = 'bigint';\n } elseif ($column->size === 32) {\n $column->type = 'integer';\n }\n }\n }\n }\n\n $column->phpType = $this->getColumnPhpType($column);\n\n if ($info['default'] === '(NULL)') {\n $info['default'] = null;\n }\n if (!$column->isPrimaryKey && ($column->type !== 'timestamp' || $info['default'] !== 'CURRENT_TIMESTAMP')) {\n $column->defaultValue = $column->phpTypecast($info['default']);\n }\n\n return $column;\n }", "title": "" }, { "docid": "4357668a9833ab2fb3ad9ea3d6e57cd0", "score": "0.6900506", "text": "public function loadColumnMetadata() {\n\t\t//\tgetCleanData() will use this to prepare data for SQL query.\n\t\t$result = $this->dbconn->query(\"DESC {$this->table}\");\n\t\twhile ($row = $result->fetch_assoc()) $this->columnType[$row['Field']] = $row['Type'];\n\t}", "title": "" }, { "docid": "8899ecf6977befbf889573558c0e24d1", "score": "0.6786821", "text": "private function loadColumns(){\n $sql = \"DESCRIBE \".$this->tableName;\n $rs = $this->pdo->query($sql);\n $data = $rs->fetchAll(PDO::FETCH_ASSOC);\n $rs = null;\n\n foreach ($data as $item){\n if($item['Key'] == 'PRI'){\n $this->pkName = $item['Field'];\n }\n $col = new DBColumn(\n $item['Field'],\n $item['Type'],\n $item['Null']=='NO'?false:true,\n $item['Key']=='PRI'?true:false,\n $item['Extra']=='auto_increment'?true:false\n );\n \n array_push($this->columns, $col);\n }\n\n var_dump($this->columns);\n }", "title": "" }, { "docid": "70063bfec5146d3f604d8d19e06f15a3", "score": "0.6768918", "text": "protected function loadColumnSchema($info)\n {\n $column = $this->createColumnSchema();\n\n $column->name = $info['field'];\n $column->allowNull = $info['null'] === 'YES';\n $column->isPrimaryKey = strpos($info['key'], 'PRI') !== false;\n $column->autoIncrement = stripos($info['extra'], 'auto_increment') !== false;\n $column->comment = $info['comment'];\n\n $column->dbType = $info['type'];\n $column->unsigned = stripos($column->dbType, 'unsigned') !== false;\n\n $column->type = self::TYPE_STRING;\n if (preg_match('/^(\\w+)(?:\\(([^\\)]+)\\))?/', $column->dbType, $matches)) {\n $type = strtolower($matches[1]);\n if (isset($this->typeMap[$type])) {\n $column->type = $this->typeMap[$type];\n }\n if (!empty($matches[2])) {\n if ($type === 'enum') {\n preg_match_all(\"/'[^']*'/\", $matches[2], $values);\n foreach ($values[0] as $i => $value) {\n $values[$i] = trim($value, \"'\");\n }\n $column->enumValues = $values;\n } else {\n $values = explode(',', $matches[2]);\n $column->size = $column->precision = (int) $values[0];\n if (isset($values[1])) {\n $column->scale = (int) $values[1];\n }\n if ($column->size === 1 && $type === 'bit') {\n $column->type = 'boolean';\n } elseif ($type === 'bit') {\n if ($column->size > 32) {\n $column->type = 'bigint';\n } elseif ($column->size === 32) {\n $column->type = 'integer';\n }\n }\n }\n }\n }\n\n $column->phpType = $this->getColumnPhpType($column);\n\n if (!$column->isPrimaryKey) {\n /**\n * When displayed in the INFORMATION_SCHEMA.COLUMNS table, a default CURRENT TIMESTAMP is displayed\n * as CURRENT_TIMESTAMP up until MariaDB 10.2.2, and as current_timestamp() from MariaDB 10.2.3.\n *\n * See details here: https://mariadb.com/kb/en/library/now/#description\n */\n if (in_array($column->type, ['timestamp', 'datetime', 'date', 'time'])\n && isset($info['default'])\n && preg_match('/^current_timestamp(?:\\(([0-9]*)\\))?$/i', $info['default'], $matches)) {\n $column->defaultValue = new Expression('CURRENT_TIMESTAMP' . (!empty($matches[1]) ? '(' . $matches[1] . ')' : ''));\n } elseif (isset($type) && $type === 'bit') {\n $column->defaultValue = bindec(trim(isset($info['default']) ? $info['default'] : '', 'b\\''));\n } else {\n $column->defaultValue = $column->phpTypecast($info['default']);\n }\n }\n\n return $column;\n }", "title": "" }, { "docid": "30f45584d97bb3fc0c61d84bcae89177", "score": "0.65668714", "text": "protected function load_col_info() {\n\t\tif ($this->col_info)\n\t\t\treturn;\n\t\t$this->col_info = $this->dbh->get_columns();\n\t}", "title": "" }, { "docid": "8ff2861e1398e518704b018f7a304265", "score": "0.643472", "text": "protected function load_col_info()\n {\n }", "title": "" }, { "docid": "ec2cd0e972ef8773329cdc83d728c44b", "score": "0.59692574", "text": "private function getTableSchema()\n {\n $queryString = \"\n SELECT COLUMN_NAME,IS_NULLABLE,DATA_TYPE,COLUMN_TYPE, COLUMN_KEY, EXTRA\n FROM INFORMATION_SCHEMA.COLUMNS\n WHERE TABLE_NAME=:table AND TABLE_SCHEMA = :database;\";\n $query = $this->mysqlDb->prepare($queryString);\n $query->bindValue(':table', $this->table, PDO::PARAM_STR);\n $query->bindValue(':database', $this->database, PDO::PARAM_STR);\n $query->execute();\n $schemaArray = $query->fetchAll(PDO::FETCH_ASSOC);\n\n foreach ($schemaArray as $key => $columnInfoArray){\n foreach ($columnInfoArray as $key2 => $value2){\n $type = $columnInfoArray['DATA_TYPE'];\n $COLUMN_TYPE = $columnInfoArray['COLUMN_TYPE'];\n if ($type == 'varchar' || $type == 'char' || $type == 'tinyint' || $type == 'smallint' ||\n $type == 'int' || $type == 'mediumint' || $type == 'bigint') {\n // todo - ensure this is right for *int* per https://dev.mysql.com/doc/refman/5.7/en/integer-types.html and\n // also https://stackoverflow.com/a/3135854\n $schemaArray[$key]['SIMPLE_SIZE'] = $this->getFieldMaxFromColumnType($COLUMN_TYPE);\n }\n if ($type == 'enum' ) {\n $schemaArray[$key]['SIMPLE_VALUES'] = $this->getEnumValuesFromColumnType($COLUMN_TYPE);\n }\n if ($type == 'text' ) {\n $schemaArray[$key]['SIMPLE_SIZE'] = 65535;\n }\n }\n }\n $cookedArray = array();\n foreach ($schemaArray as $key => $columnInfoArray){\n unset($columnInfoArray['COLUMN_TYPE']);\n $cookedArray[$columnInfoArray['COLUMN_NAME']] = $columnInfoArray;\n }\n return $cookedArray;\n }", "title": "" }, { "docid": "37f1c4181bd9f2cb36d9cd64ba00eaad", "score": "0.5965137", "text": "protected function loadColumnSchema(array $info): array {\n\n static $typeMap = [\n // abstract type => php type\n 'smallint' => 'integer',\n 'integer' => 'integer',\n 'bigint' => 'integer',\n 'int' => 'integer',\n 'boolean' => 'boolean',\n 'float' => 'double',\n 'double' => 'double',\n 'binary' => 'resource',\n ];\n\n $column = array();\n\n $column[\"name\"] = $info['Field'];\n $column[\"allowNull\"] = $info['Null'] === 'YES';\n $column[\"isPrimaryKey\"] = strpos($info['Key'], 'PRI') !== false;\n $column[\"autoIncrement\"] = stripos($info['Extra'], 'auto_increment') !== false;\n $column[\"comment\"] = $info['Comment'];\n\n $column[\"dbType\"] = $info['Type'];\n $column[\"unsigned\"] = stripos($column[\"dbType\"], 'unsigned') !== false;\n\n $column[\"type\"] = static::TYPE_STRING;\n if (preg_match('/^(\\w+)(?:\\(([^\\)]+)\\))?/', $column[\"dbType\"], $matches)) {\n $type = strtolower($matches[1]);\n if (isset($typeMap[$type])) {\n $column[\"type\"] = $typeMap[$type];\n }\n\n if (!empty($matches[2])) {\n if ($type === 'enum') {\n $values = explode(',', $matches[2]);\n foreach ($values as $i => $value) {\n $values[$i] = trim($value, \"'\");\n }\n $column[\"enumValues\"] = $values;\n } else {\n $values = explode(',', $matches[2]);\n $column[\"size\"] = $column[\"precision\"] = (int) $values[0];\n if (isset($values[1])) {\n $column[\"scale\"] = (int) $values[1];\n }\n if ($column[\"size\"] === 1 && $type === 'bit') {\n $column[\"type\"] = 'boolean';\n } elseif ($type === 'bit') {\n if ($column[\"size\"] > 32) {\n $column[\"type\"] = 'bigint';\n } elseif ($column[\"size\"] === 32) {\n $column[\"type\"] = 'integer';\n }\n }\n }\n }\n }\n\n $column[\"phpType\"] = $this->getColumnPhpType($column);\n\n if (!$column[\"isPrimaryKey\"]) {\n if ($column[\"type\"] === 'timestamp' && $info['Default'] === 'CURRENT_TIMESTAMP') {\n $column[\"defaultValue\"] = date(\"Y-m-d H:i:s\");\n } elseif (isset($type) && $type === 'bit') {\n $column[\"defaultValue\"] = bindec(trim($info['Default'], 'b\\''));\n } else {\n $column[\"defaultValue\"] = $info['Default'];\n }\n }\n\n return $column;\n }", "title": "" }, { "docid": "7eca2cbd05b788406340e604bbd5ee8f", "score": "0.5854428", "text": "protected function initColumns() \r\n {\r\n \r\n include_once 'creole/metadata/ColumnInfo.php';\r\n include_once 'creole/metadata/PrimaryKeyInfo.php';\r\n include_once 'creole/drivers/sqlite/SQLiteTypes.php'; \r\n \r\n // To get all of the attributes we need, we'll actually do \r\n // two separate queries. The first gets names and default values\r\n // the second will fill in some more details.\r\n \r\n $sql = 'PRAGMA table_info('.$this->name.')';\r\n \r\n $res = sqlite_query($this->conn->getResource(), $sql);\r\n \r\n \r\n while($row = sqlite_fetch_array($res, SQLITE_ASSOC)) {\r\n \r\n $name = $row['name'];\r\n \r\n $fulltype = $row['type']; \r\n $size = null;\r\n $precision = null;\r\n $scale = null;\r\n \r\n if (preg_match('/^([^\\(]+)\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*\\)$/', $fulltype, $matches)) {\r\n $type = $matches[1];\r\n $precision = $matches[2];\r\n $scale = $matches[3]; // aka precision \r\n } elseif (preg_match('/^([^\\(]+)\\(\\s*(\\d+)\\s*\\)$/', $fulltype, $matches)) {\r\n $type = $matches[1];\r\n $size = $matches[2];\r\n } else {\r\n $type = $fulltype;\r\n }\r\n \r\n $not_null = $row['notnull'];\r\n $is_nullable = !$not_null;\r\n \r\n $default_val = $row['dflt_value'];\r\n \r\n $this->columns[$name] = new ColumnInfo($this, $name, SQLiteTypes::getType($type), $type, $size, $precision, $scale, $is_nullable, $default_val);\r\n \r\n if (($row['pk'] == 1) || (strtolower($type) == 'integer primary key')) {\r\n if ($this->primaryKey === null) {\r\n $this->primaryKey = new PrimaryKeyInfo($name);\r\n }\r\n $this->primaryKey->addColumn($this->columns[ $name ]);\r\n }\r\n \r\n } \r\n \r\n $this->colsLoaded = true;\r\n }", "title": "" }, { "docid": "634d9abe2f970db2981d9db65096ad3a", "score": "0.5775184", "text": "public function getSchema()\n\t{\n\t\treturn $this->columns;\n\t}", "title": "" }, { "docid": "634d9abe2f970db2981d9db65096ad3a", "score": "0.5775184", "text": "public function getSchema()\n\t{\n\t\treturn $this->columns;\n\t}", "title": "" }, { "docid": "bec2ce787c2c97d5f2b5473a7bdb4f62", "score": "0.5764646", "text": "protected function fillColumnsVariable()\n {\n $this->columns = App()->make(TableColumnDefinitions::class)->all();\n }", "title": "" }, { "docid": "7badc747757997857d2d31e8b017a6de", "score": "0.56035197", "text": "protected function initColumns()\n {\n if (empty($this->columns)) {\n $this->guessColumns();\n }\n foreach ($this->columns as $i => $column) {\n if (is_string($column)) {\n $column = $this->createDataColumn($column);\n } else {\n if (isset($column['class']) && isset($this->columnClasses[$column['class']])) {\n $column['class'] = $this->columnClasses[$column['class']];\n }\n\n $column = Yii::createObject(array_merge([\n 'class' => $this->dataColumnClass ?: DataColumn::class,\n 'grid' => $this,\n ], $column));\n }\n if (!$column->visible) {\n unset($this->columns[$i]);\n continue;\n }\n $this->columns[$i] = $column;\n }\n }", "title": "" }, { "docid": "b1a896cce457afbc23248473fd5e192f", "score": "0.5567089", "text": "protected function initColumns() {\n if (empty($this->columns)) {\n $this->guessColumns();\n }\n foreach ($this->columns as $i => $column) {\n if (is_string($column)) {\n $column = $this->createDataColumn($column);\n } else {\n $column = Yii::createObject(array_merge([\n 'class' => $this->dataColumnClass ? : DataColumn::className(),\n 'grid' => $this,\n ], $column));\n }\n if (!$column->visible) {\n unset($this->columns[$i]);\n continue;\n }\n $this->columns[$i] = $column;\n }\n }", "title": "" }, { "docid": "90784c2a5c4c60324fe1ede5a403ea46", "score": "0.5561523", "text": "protected function createColumn($column)\n {\n $c=new CMdblibColumnSchema;\n $c->name=$column['column_name'];\n $c->rawName=$this->quoteColumnName($c->name);\n $c->allowNull=$column['nulls']=='Y';\n if ($column['scale']!==0)\n {\n // We have a numeric datatype\n $c->size=$c->precision=$column['width'];\n $c->scale=$column['scale'];\n }\n elseif ($column['base_type']=='image' || $column['base_type']=='text')\n $c->size=$c->precision=null;\n else\n $c->size=$c->precision=$column['width'];\n\n switch($this->AsaVersion)\n {\n case 9:\n case 11:\n $c->init($column['base_type'], strtoupper($column['default']) == strtoupper('autoincrement')\n || strtoupper($column['default']) == strtoupper('global autoincrement')\n ? null\n : $column['default']);\n break;\n case 12:\n case 16:\n case 17:\n $c->init($column['base_type'],strtoupper($column['default']) == strtoupper('autoincrement')\n || strtoupper($column['default'])==strtoupper('global autoincrement')\n || !is_null($column['sequence_name']\n )\n ? null\n : $column['default']);\n break;\n\n default:\n throw new Exception(\"This version ASA( Ver.$this->AsaVersion ) is not supported.\");\n }\n\n return $c;\n }", "title": "" }, { "docid": "be9f81db7ea6363cee6d251123228f86", "score": "0.5540271", "text": "public function initialize_columns()\n {\n $this->add_column(new DataClassPropertyTableColumn(Source::class_name(), Source::PROPERTY_NAME));\n $this->add_column(new DataClassPropertyTableColumn(Source::class_name(), Source::PROPERTY_URI));\n $this->add_column(new DataClassPropertyTableColumn(Source::class_name(), Source::PROPERTY_DESCRIPTION));\n }", "title": "" }, { "docid": "ecbc4e9ff0014dbd33f12ffb34205654", "score": "0.5523024", "text": "public function __construct(ColumnSchema $columnSchema)\n {\n $this->columnSchema = $columnSchema;\n }", "title": "" }, { "docid": "a210011207aa209276e44a9de107880a", "score": "0.5516019", "text": "public function loadFromMetadata(ClassMetadata $metadata)\n\t{\n\t\tforeach ($metadata->getFieldNames() as $attribute) {\n\t\t\t$type = Type::getTypeRegistry()->get(\n\t\t\t\t$metadata->getTypeOfField($attribute)\n\t\t\t);\n\t\t\t$name = $this->camelCaseToSnakeCaseNameConverter->normalize($attribute);\n\t\t\tif ($type instanceof DateTimeImmutableType) {\n\t\t\t\t$this->addColumn($name, null, null, CellRender::DateTime());\n\t\t\t} elseif ($type instanceof BooleanType) {\n\t\t\t\t$this->addColumn($name, null, null, CellRender::Check());\n\t\t\t} else {\n\t\t\t\t$this->addColumn($name);\n\t\t\t}\n\t\t}\n\n\t\t// hide primary key columns\n\t\tforeach ($metadata->getIdentifierFieldNames() as $attribute) {\n\t\t\t$name = $this->camelCaseToSnakeCaseNameConverter->normalize($attribute);\n\t\t\t$this->hideColumn($name);\n\t\t}\n\t}", "title": "" }, { "docid": "b24d00940d5c81128551d0afbfd5846a", "score": "0.54854137", "text": "public function loadTableMeta(Connection $connection, $tableName)\n {\n // geometry type columns. Internal SchemaManager Column metadata APIs are\n // closed to querying individual columns.\n $platform = $connection->getDatabasePlatform();\n $gcSql = 'SELECT f_geometry_column, srid, type FROM \"public\".\"geometry_columns\"'\n . ' WHERE f_table_name = ?'\n ;\n $gcParams = array();\n if (false !== strpos($tableName, \".\")) {\n $tableNameParts = explode('.', $tableName, 2);\n $gcParams[] = $tableNameParts[1];\n $gcSql .= ' AND \"f_table_schema\" = ?';\n $gcParams[] = $tableNameParts[0];\n } else {\n $gcParams[] = $tableName;\n $gcSql .= ' AND \"f_table_schema\" = current_schema()';\n }\n $gcInfos = array();\n try {\n foreach ($connection->executeQuery($gcSql, $gcParams) as $row) {\n $gcInfos[$row['f_geometry_column']] = array($row['type'], $row['srid']);\n }\n } catch (\\Doctrine\\DBAL\\Exception $e) {\n // Ignore (DataStore on PostgreSQL / no Postgis)\n }\n\n $sql = $platform->getListTableColumnsSQL($tableName);\n $columns = array();\n /** @see \\Doctrine\\DBAL\\Platforms\\PostgreSqlPlatform::getListTableColumnsSQL */\n /** @see \\Doctrine\\DBAL\\Schema\\PostgreSqlSchemaManager::_getPortableTableColumnDefinition */\n $result = $connection->executeQuery($sql);\n $data = $result->fetchAllAssociative();\n foreach ($data as $row) {\n $name = trim($row['field'], '\"'); // Undo quote_ident\n $notNull = !$row['isnotnull'];\n $hasDefault = !!$row['default'];\n $isNumeric = !!preg_match('#int|float|double|real|decimal|numeric#i', $row['complete_type']);\n if (!empty($gcInfos[$name])) {\n $geomType = $gcInfos[$name][0];\n $srid = $gcInfos[$name][1];\n } else {\n $geomType = $srid = null;\n }\n\n $columns[$name] = new Column($notNull, $hasDefault, $isNumeric, $geomType, $srid);\n }\n $tableMeta = new TableMeta($connection->getDatabasePlatform(), $columns);\n return $tableMeta;\n }", "title": "" }, { "docid": "8befd799c50730b29035fa2254f00ac3", "score": "0.54714555", "text": "public function initialize_columns()\n {\n $this->add_column(new StaticTableColumn(Translation::get('Type')));\n $this->add_column(new StaticTableColumn(Translation::get('Entity')));\n $this->add_column(new StaticTableColumn(Translation::get('Group')));\n $this->add_column(new StaticTableColumn(Translation::get('Path')));\n }", "title": "" }, { "docid": "eb3695e95783dcd601b6e55fe0b19db4", "score": "0.5463672", "text": "protected function createColumn($column)\n {\n $c = new ColumnSchema(['name' => $column['field']]);\n $c->quotedName = $this->quoteColumnName($c->name);\n $c->allowNull = $column['null'] === 'YES';\n $c->isPrimaryKey = strpos($column['key'], 'PRI') !== false;\n $c->isUnique = strpos($column['key'], 'UNI') !== false;\n $c->isIndex = strpos($column['key'], 'MUL') !== false;\n $c->autoIncrement = strpos(strtolower($column['extra']), 'auto_increment') !== false;\n $c->dbType = $column['type'];\n if (isset($column['collation']) && !empty($column['collation'])) {\n $collation = $column['collation'];\n if (0 === stripos($collation, 'utf') || 0 === stripos($collation, 'ucs')) {\n $c->supportsMultibyte = true;\n }\n }\n if (isset($column['comment'])) {\n $c->comment = $column['comment'];\n }\n $this->extractLimit($c, $c->dbType);\n $c->fixedLength = $this->extractFixedLength($c->dbType);\n $this->extractType($c, $c->dbType);\n\n if ($c->dbType === 'timestamp' && (0 === strcasecmp(strval($column['default']), 'CURRENT_TIMESTAMP'))) {\n if (0 === strcasecmp(strval($column['extra']), 'on update CURRENT_TIMESTAMP')) {\n $c->defaultValue = ['expression' => 'CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP'];\n $c->type = DbSimpleTypes::TYPE_TIMESTAMP_ON_UPDATE;\n } else {\n $c->defaultValue = ['expression' => 'CURRENT_TIMESTAMP'];\n $c->type = DbSimpleTypes::TYPE_TIMESTAMP_ON_CREATE;\n }\n } else {\n $this->extractDefault($c, $column['default']);\n }\n\n return $c;\n }", "title": "" }, { "docid": "a479360e2c3555dff8f5ecca64f9faa9", "score": "0.54549164", "text": "protected function setDbColumns()\n {\n $connection = $this->model()->eloquent()->getConnectionName();\n\n $this->dbColumns = collect(Schema::connection($connection)->getColumnListing($this->model()->getTable()));\n }", "title": "" }, { "docid": "815d34017f37f1a0c8d81d7b70cf13f8", "score": "0.5431843", "text": "public function LookupColumnObject()\n {\n // section -64--88--106-1-1d17cda6:13aff8f3ef5:-8000:0000000000000AB4 begin\n // section -64--88--106-1-1d17cda6:13aff8f3ef5:-8000:0000000000000AB4 end\n }", "title": "" }, { "docid": "bc959c275925fad94c6d0b07d91190f7", "score": "0.541076", "text": "private function getColumnsFromInformationSchema(): array\n {\n return AuditDataLayer::$dl->getTableColumns($this->dataSchemaName, $this->tableName);\n }", "title": "" }, { "docid": "c630aa629d846fea6b78acfce80da4a6", "score": "0.5398619", "text": "public function columns()\n {\n return static::getSchema()->columns;\n }", "title": "" }, { "docid": "41f7714b1821a1dba1e8ff6114560c65", "score": "0.5389256", "text": "public function getColumns(){\n $this->sql = \"SELECT COLUMN_NAME FROM\tINFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = '{$this->table}' \";\n $this->columns = $this->list();\n }", "title": "" }, { "docid": "3b6e6f13d0486ebfd2dad06e538f9e0d", "score": "0.53657717", "text": "public function schema()\n\t{\n\t\treturn array(\n\t\t\t'columns'=>array(\n\t\t\t\t\"{$this->columnCreatedBy}\" => 'int',\n\t\t\t\t\"{$this->columnUpdatedBy}\" => 'int',\n\t\t\t\t\"{$this->columnCreatedAt}\" => 'datetime',\n\t\t\t\t\"{$this->columnUpdatedAt}\" => 'datetime',\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "06615b9ca3d1a252ce85847e84dd7164", "score": "0.53508586", "text": "public function testMetadataCanIdentifyColumnsPresent()\n {\n $schemaFactory = $this->mockSchemaFactory();\n $instance = $this->newInstance($schemaFactory);\n\n $this->assertTrue($instance->hasColumn('id'));\n $this->assertTrue($instance->hasColumn('field_1'));\n $this->assertFalse($instance->hasColumn('foobar'));\n }", "title": "" }, { "docid": "22136c08c43ce2e97d4829c9bdcb2888", "score": "0.5338963", "text": "private function getColumns()\n {\n //get column names and place it into $data\n $pdo = PdoDb::getInstance();\n\n $sql = \"SELECT * \";\n $sql .= \"FROM \" . self::$table . \" \";\n $sql .= \"LIMIT 0\";\n\n $stmt = $pdo->prepare($sql);\n $stmt->execute();\n\n for ($i = 0; $i < $stmt->columnCount() ; $i++) {\n $column = $stmt->getColumnMeta($i);\n $this->data[$column['name']] = null;\n }\n //unset any data column that are inserted/updated automatically\n unset($this->data['created_at']);\n unset($this->data['modified_at']);\n\n //store column names only\n self::$col_names = array_keys($this->data);\n }", "title": "" }, { "docid": "ebd2feb064a140863a92fe9c136bea95", "score": "0.5331966", "text": "public function getSchema();", "title": "" }, { "docid": "ebd2feb064a140863a92fe9c136bea95", "score": "0.5331966", "text": "public function getSchema();", "title": "" }, { "docid": "ebd2feb064a140863a92fe9c136bea95", "score": "0.5331966", "text": "public function getSchema();", "title": "" }, { "docid": "792ebc56a9ef29b5b572811ff7d95496", "score": "0.53199905", "text": "abstract public function buildSchema();", "title": "" }, { "docid": "bd17bc228be32346271333f2c594c9ac", "score": "0.5312897", "text": "protected function get_column_info()\n {\n }", "title": "" }, { "docid": "18d9ea67744dcebf90d853b7aa6057a4", "score": "0.5312332", "text": "public function toSchema();", "title": "" }, { "docid": "a967758a3487c11c5e73a4d9b274ffe4", "score": "0.53037417", "text": "private function fetchColumns()\n {\n $sql = \"SHOW COLUMNS FROM `\" . $this->m_table . \"`\";\n $result = $this->m_mysqliConn->query($sql);\n \n $this->m_columns = array();\n \n while (($row = $result->fetch_array()) != null) {\n $this->m_columns[] = $row[0];\n }\n \n $result->free();\n }", "title": "" }, { "docid": "c5bf3e0d2535903d190a5fab38fb81b6", "score": "0.530175", "text": "public function initialize_columns()\n {\n $this->addEntityColumns();\n\n if($this->getAssignmentServiceBridge()->canEditAssignment())\n {\n $this->add_column(new SortableStaticTableColumn(self::PROPERTY_FIRST_ENTRY_DATE));\n $this->add_column(new SortableStaticTableColumn(self::PROPERTY_LAST_ENTRY_DATE));\n $this->add_column(new SortableStaticTableColumn(self::PROPERTY_ENTRY_COUNT));\n $this->add_column(new StaticTableColumn(self::PROPERTY_FEEDBACK_COUNT));\n $this->add_column(new StaticTableColumn(self::PROPERTY_LAST_SCORE));\n }\n }", "title": "" }, { "docid": "36571c9872bae1e0aee8245c01b27227", "score": "0.53014815", "text": "protected function _column_definitions()\n {\n \n }", "title": "" }, { "docid": "50fa823e5ffe3a3d50cfa0be026df453", "score": "0.52656955", "text": "public function initialize_columns()\n {\n $this->add_column(new DataClassPropertyTableColumn(User::class_name(), User::PROPERTY_USERNAME));\n\n $showEmail = Configuration::getInstance()->get_setting(array('Chamilo\\Core\\User', 'show_email_addresses'));\n\n if($showEmail)\n {\n $this->add_column(new DataClassPropertyTableColumn(User::class_name(), User::PROPERTY_EMAIL));\n }\n\n $this->add_column(\n new DataClassPropertyTableColumn(CourseEntityRelation::class_name(), CourseEntityRelation::PROPERTY_STATUS));\n }", "title": "" }, { "docid": "9be8320cbfdc7fece4e7b8aefcf2c604", "score": "0.5256518", "text": "public function load_column( $params ) {\n\n\t\tpods_deprecated( 'PodsAPI::load_column', '2.0', 'PodsAPI::load_field' );\n\n\t\treturn $this->obj->load_field( $params );\n\t}", "title": "" }, { "docid": "0b1db7f028acb806b920068f3432825e", "score": "0.5242741", "text": "public function DetectColumns() {\r\n\t\t// first, get the columns\r\n\t\t$cols = $this->db->queryDB(\r\n\t\t\"SHOW COLUMNS FROM \" . $this->name,\r\n\t\t\tarray());\r\n\t\t\t\r\n\t\t// now, store them for later use\r\n\t\tforeach($cols as $col) {\r\n\t\t\t$this->columns[$col[\"Field\"]] = $col;\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e3983f2dc04279e2c56da2bfe3bef87f", "score": "0.52034163", "text": "function prepareColumns()\n {\n $this->columns[] = array(\n \"name\" => \"_modified_by\",\n \"type\" => DB_COLUMN_NUMERIC\n );\n $this->columns[] = array(\n \"name\" => \"_created_by\",\n \"type\" => DB_COLUMN_NUMERIC\n );\n $this->columns[] = array(\n \"name\" => \"_priority\",\n \"type\" => DB_COLUMN_NUMERIC\n );\n $this->columns[] = array(\n \"name\" => \"active\",\n \"type\" => DB_COLUMN_NUMERIC,\n \"notnull\" => 0,\n \"dtype\" => \"int\"\n );\n DataManipulator::prepareMultilangColumns($this->columns, $this->Connection->Kernel->Languages);\n }", "title": "" }, { "docid": "756fa812602ed3e28fc98d518ec7f2fa", "score": "0.51970917", "text": "function col($real_column=true)\n {\n return new \\Ratno\\Resources\\Column($real_column);\n }", "title": "" }, { "docid": "73ef2b1d0a9fd2eaa1fa8630b69e1b63", "score": "0.5183112", "text": "public function testMetadataCanGetModelTableColumns()\n {\n $schemaFactory = $this->mockSchemaFactory();\n $instance = $this->newInstance($schemaFactory);\n $result = $instance->columns();\n $this->assertEquals(2, count($result));\n $this->assertArrayHasKey('id', $result);\n $this->assertArrayHasKey('primary', $result['id']);\n $this->assertArrayHasKey('type', $result['id']);\n $this->assertArrayHasKey('length', $result['id']);\n $this->assertTrue($result['id']['primary']);\n $this->assertEquals('integer', $result['id']['type']);\n $this->assertEquals(11, $result['id']['length']);\n $this->assertArrayHasKey('field_1', $result);\n $this->assertArrayHasKey('primary', $result['field_1']);\n $this->assertArrayHasKey('type', $result['field_1']);\n $this->assertArrayHasKey('length', $result['field_1']);\n $this->assertFalse($result['field_1']['primary']);\n $this->assertEquals('varchar', $result['field_1']['type']);\n $this->assertEquals(256, $result['field_1']['length']);\n }", "title": "" }, { "docid": "7e95d09a47f6568ceddc00afe3865724", "score": "0.5173237", "text": "public function initialize_columns()\n {\n $this->add_column(\n new StaticTableColumn(\n self::COLUMN_TYPE, \n Theme::getInstance()->getImage(\n 'Action/Category', \n 'png', \n Translation::get('Type', null, $this->get_component()->package()), \n null, \n ToolbarItem::DISPLAY_ICON, \n false, \n 'Chamilo\\Configuration')));\n \n $this->add_column(new DataClassPropertyTableColumn(Vocabulary::class_name(), Vocabulary::PROPERTY_VALUE));\n }", "title": "" }, { "docid": "50376e17d2458d87597c209cd5679f8b", "score": "0.51597005", "text": "public function preImport(){\n $options = array(\n 'nullable' => true,\n 'default' => null,\n );\n $this->addColumn('TEST_VARCHAR', Processor_DB_Abstract::TYPE_VARCHAR, 255, $options);\n\n $options = array(\n 'unsigned' => true,\n 'nullable' => true,\n 'default' => null,\n );\n $this->addColumn('TEST_INT', Processor_DB_Abstract::TYPE_INTEGER, 255, $options);\n\n // Adding/modifying a column using raw SQL\n $SQL = \"ALTER TABLE `\" . $this->getTableName() . \"` ADD `TEST ADD COL` VARCHAR(255) NULL DEFAULT NULL ;\";\n try{\n $this->query($SQL, true);\n } catch (\\Exception $e){\n // do nothing, this is okay because on multiple imports it might fail on\n // the second import when the column already exists.\n }\n\n // Change a column to a UTF8 column\n $this->modifyColumn('utf8column', Processor_DB_Abstract::TYPE_VARCHAR, 255, ['collate' => 'utf8_general_ci'], 'My UTF8 column');\n // or\n $this->changeColumnCollation('utf8column', 'utf8_general_ci', 'utf8');\n // or\n $columns = $this->getColumns();\n foreach($columns as $columnName => $columnDefinition) {\n $this->changeColumnCollation($columnName, 'utf8_general_ci');\n }\n\n return $this;\n }", "title": "" }, { "docid": "6f995c2d14d6ebe2d5482e2c47834623", "score": "0.5151848", "text": "public function columnTypes()\n {\n return [\n [Schema::TYPE_PK, 'NUMBER(10) NOT NULL PRIMARY KEY'],\n [Schema::TYPE_PK . '(8)', 'NUMBER(8) NOT NULL PRIMARY KEY'],\n [Schema::TYPE_PK . ' CHECK (value > 5)', 'NUMBER(10) NOT NULL PRIMARY KEY CHECK (value > 5)'],\n [Schema::TYPE_PK . '(8) CHECK (value > 5)', 'NUMBER(8) NOT NULL PRIMARY KEY CHECK (value > 5)'],\n [Schema::TYPE_STRING, 'VARCHAR2(255)'],\n [Schema::TYPE_STRING . '(32)', 'VARCHAR2(32)'],\n [Schema::TYPE_STRING . ' CHECK (value LIKE \\'test%\\')', 'VARCHAR2(255) CHECK (value LIKE \\'test%\\')'],\n [Schema::TYPE_STRING . '(32) CHECK (value LIKE \\'test%\\')', 'VARCHAR2(32) CHECK (value LIKE \\'test%\\')'],\n [Schema::TYPE_STRING . ' NOT NULL', 'VARCHAR2(255) NOT NULL'],\n [Schema::TYPE_TEXT, 'CLOB'],\n [Schema::TYPE_TEXT . '(255)', 'CLOB'],\n [Schema::TYPE_TEXT . ' CHECK (value LIKE \\'test%\\')', 'CLOB CHECK (value LIKE \\'test%\\')'],\n [Schema::TYPE_TEXT . '(255) CHECK (value LIKE \\'test%\\')', 'CLOB CHECK (value LIKE \\'test%\\')'],\n [Schema::TYPE_TEXT . ' NOT NULL', 'CLOB NOT NULL'],\n [Schema::TYPE_TEXT . '(255) NOT NULL', 'CLOB NOT NULL'],\n [Schema::TYPE_SMALLINT, 'NUMBER(5)'],\n [Schema::TYPE_SMALLINT . '(8)', 'NUMBER(8)'],\n [Schema::TYPE_INTEGER, 'NUMBER(10)'],\n [Schema::TYPE_INTEGER . '(8)', 'NUMBER(8)'],\n [Schema::TYPE_INTEGER . ' CHECK (value > 5)', 'NUMBER(10) CHECK (value > 5)'],\n [Schema::TYPE_INTEGER . '(8) CHECK (value > 5)', 'NUMBER(8) CHECK (value > 5)'],\n [Schema::TYPE_INTEGER . ' NOT NULL', 'NUMBER(10) NOT NULL'],\n [Schema::TYPE_BIGINT, 'NUMBER(20)'],\n [Schema::TYPE_BIGINT . '(8)', 'NUMBER(8)'],\n [Schema::TYPE_BIGINT . ' CHECK (value > 5)', 'NUMBER(20) CHECK (value > 5)'],\n [Schema::TYPE_BIGINT . '(8) CHECK (value > 5)', 'NUMBER(8) CHECK (value > 5)'],\n [Schema::TYPE_BIGINT . ' NOT NULL', 'NUMBER(20) NOT NULL'],\n [Schema::TYPE_FLOAT, 'NUMBER'],\n [Schema::TYPE_FLOAT . '(16,5)', 'NUMBER'],\n [Schema::TYPE_FLOAT . ' CHECK (value > 5.6)', 'NUMBER CHECK (value > 5.6)'],\n [Schema::TYPE_FLOAT . '(16,5) CHECK (value > 5.6)', 'NUMBER CHECK (value > 5.6)'],\n [Schema::TYPE_FLOAT . ' NOT NULL', 'NUMBER NOT NULL'],\n [Schema::TYPE_DOUBLE, 'NUMBER'],\n [Schema::TYPE_DOUBLE . '(16,5)', 'NUMBER'],\n [Schema::TYPE_DOUBLE . ' CHECK (value > 5.6)', 'NUMBER CHECK (value > 5.6)'],\n [Schema::TYPE_DOUBLE . '(16,5) CHECK (value > 5.6)', 'NUMBER CHECK (value > 5.6)'],\n [Schema::TYPE_DOUBLE . ' NOT NULL', 'NUMBER NOT NULL'],\n [Schema::TYPE_DECIMAL, 'NUMBER'],\n [Schema::TYPE_DECIMAL . '(12,4)', 'NUMBER'],\n [Schema::TYPE_DECIMAL . ' CHECK (value > 5.6)', 'NUMBER CHECK (value > 5.6)'],\n [Schema::TYPE_DECIMAL . '(12,4) CHECK (value > 5.6)', 'NUMBER CHECK (value > 5.6)'],\n [Schema::TYPE_DECIMAL . ' NOT NULL', 'NUMBER NOT NULL'],\n [Schema::TYPE_DATETIME, 'TIMESTAMP'],\n //[Schema::TYPE_DATETIME . \" CHECK (value BETWEEN '2011-01-01' AND '2013-01-01')\", \"TIMESTAMP CHECK (value BETWEEN '2011-01-01' AND '2013-01-01')\"],\n [Schema::TYPE_DATETIME . ' NOT NULL', 'TIMESTAMP NOT NULL'],\n [Schema::TYPE_TIMESTAMP, 'TIMESTAMP'],\n //[Schema::TYPE_TIMESTAMP . \" CHECK (value BETWEEN '2011-01-01' AND '2013-01-01')\", \"TIMESTAMP CHECK (value BETWEEN '2011-01-01' AND '2013-01-01')\"],\n [Schema::TYPE_TIMESTAMP . ' NOT NULL', 'TIMESTAMP NOT NULL'],\n [Schema::TYPE_TIME, 'TIMESTAMP'],\n //[Schema::TYPE_TIME . \" CHECK (value BETWEEN '12:00:00' AND '13:01:01')\", \"TIMESTAMP CHECK (value BETWEEN '12:00:00' AND '13:01:01')\"],\n [Schema::TYPE_TIME . ' NOT NULL', 'TIMESTAMP NOT NULL'],\n [Schema::TYPE_DATE, 'DATE'],\n //[Schema::TYPE_DATE . \" CHECK (value BETWEEN '2011-01-01' AND '2013-01-01')\", \"DATE CHECK (value BETWEEN '2011-01-01' AND '2013-01-01')\"],\n [Schema::TYPE_DATE . ' NOT NULL', 'DATE NOT NULL'],\n [Schema::TYPE_BINARY, 'BLOB'],\n [Schema::TYPE_BOOLEAN, 'NUMBER(1)'],\n [Schema::TYPE_BOOLEAN . ' DEFAULT 1 NOT NULL', 'NUMBER(1) DEFAULT 1 NOT NULL'],\n [Schema::TYPE_MONEY, 'NUMBER(19,4)'],\n [Schema::TYPE_MONEY . '(16,2)', 'NUMBER(16,2)'],\n [Schema::TYPE_MONEY . ' CHECK (value > 0.0)', 'NUMBER(19,4) CHECK (value > 0.0)'],\n [Schema::TYPE_MONEY . '(16,2) CHECK (value > 0.0)', 'NUMBER(16,2) CHECK (value > 0.0)'],\n [Schema::TYPE_MONEY . ' NOT NULL', 'NUMBER(19,4) NOT NULL'],\n ];\n }", "title": "" }, { "docid": "8f75d3c8a81c0be6a2e5f0576ce31586", "score": "0.5150351", "text": "protected function loadFields(TableSchema $table)\n {\n if (!empty($columns = $this->findColumns($table))) {\n foreach ($columns as $column) {\n $column = array_change_key_case((array)$column, CASE_LOWER);\n $c = $this->createColumn($column);\n\n if ($c->isPrimaryKey) {\n if ($c->autoIncrement) {\n $table->sequenceName = array_get($column, 'sequence', $c->name);\n if ((DbSimpleTypes::TYPE_INTEGER === $c->type)) {\n $c->type = DbSimpleTypes::TYPE_ID;\n }\n }\n if ($table->primaryKey === null) {\n $table->primaryKey = $c->name;\n } elseif (is_string($table->primaryKey)) {\n $table->primaryKey = [$table->primaryKey, $c->name];\n } else {\n $table->primaryKey[] = $c->name;\n }\n }\n $table->addColumn($c);\n }\n }\n\n // merge db extras\n if (!empty($extras = $this->getSchemaExtrasForFields($table->name))) {\n foreach ($extras as $extra) {\n if (!empty($columnName = array_get($extra, 'field'))) {\n unset($extra['field']);\n if (!empty($type = array_get($extra, 'extra_type'))) {\n $extra['type'] = $type;\n // upgrade old entries\n if ('virtual' === $type) {\n $extra['is_virtual'] = true;\n if (!empty($functionInfo = array_get($extra, 'db_function'))) {\n $type = $extra['type'] = array_get($functionInfo, 'type', DbSimpleTypes::TYPE_STRING);\n if ($function = array_get($functionInfo, 'function')) {\n $extra['db_function'] = [\n [\n 'use' => [DbFunctionUses::SELECT],\n 'function' => $function,\n 'function_type' => FunctionTypes::DATABASE,\n ]\n ];\n }\n if ($aggregate = array_get($functionInfo, 'aggregate')) {\n $extra['is_aggregate'] = $aggregate;\n }\n }\n }\n }\n unset($extra['extra_type']);\n\n if (!empty($alias = array_get($extra, 'alias'))) {\n $extra['quotedAlias'] = $this->quoteColumnName($alias);\n }\n\n if (null !== $c = $table->getColumn($columnName)) {\n $c->fill($extra);\n // may need to reevaluate internal types\n $c->phpType = static::extractPhpType($c->type);\n } elseif (!empty($type) && (array_get($extra, 'is_virtual') || !static::PROVIDES_FIELD_SCHEMA)) {\n $extra['name'] = $columnName;\n $c = new ColumnSchema($extra);\n $c->quotedName = $this->quoteColumnName($c->name);\n // may need to reevaluate internal types\n $c->phpType = static::extractPhpType($c->type);\n $table->addColumn($c);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "c06d4e2e2f908ef74aadd579f1949e15", "score": "0.5147869", "text": "protected function initColumns()\n {\n if($this->columns===array())\n {\n if($this->dataProvider instanceof CActiveDataProvider)\n $this->columns=$this->dataProvider->model->attributeNames();\n elseif($this->dataProvider instanceof IDataProvider)\n {\n // use the keys of the first row of data as the default columns\n $data=$this->dataProvider->getData();\n if(isset($data[0]) && is_array($data[0]))\n $this->columns=array_keys($data[0]);\n }\n }\n $id=$this->getId();\n foreach($this->columns as $i=>$column)\n {\n if(is_string($column))\n $column=$this->createDataColumn($column);\n else\n {\n if(!isset($column['class']))\n $column['class']='AdminDataColumn';\n $column=Yii::createComponent($column, $this);\n }\n if(!$column->visible)\n {\n unset($this->columns[$i]);\n continue;\n }\n if($column->id===null)\n $column->id=$id.'_c'.$i;\n $this->columns[$i]=$column;\n }\n\n foreach($this->columns as $column)\n $column->init();\n }", "title": "" }, { "docid": "384e9a21910e191d5ca05b7b1f8a98b8", "score": "0.5141963", "text": "public function columnas();", "title": "" }, { "docid": "9d61c613d2a9a3265018ede93b9ba2b1", "score": "0.5133087", "text": "private static function get_schema()\n {\n }", "title": "" }, { "docid": "07099c11ecdb244166b11c8ea89310ec", "score": "0.5132434", "text": "public function get_col()\n\t{\n\t\treturn\n\t\t\t\tarray(\n\t\t\t\t\t\t'name' => array('col_name' => 'name','title' => 'Rest Name', 'type' => 'text'),\n 'street_num' => array('col_name' => 'street_num','title' => 'Street Num', 'type' => 'text'),\n\t\t\t\t\t\t'address_comment' => array('col_name' => 'address_comment','title' => 'Rest Address Comment', 'type' => 'textarea'),\n\t\t\t\t\t\t'email' \t\t => array('col_name' => 'email','title' => 'Rest E-Mail', 'type' => 'text'),\n\t\t\t\t\t\t'phone' => array('col_name' => 'phone','title' => 'Rest Main Phone', 'type' => 'text'),\n\t\t\t\t\t\t'phone2' => array('col_name' => 'phone2','title' => 'Rest Sub Phone', 'type' => 'text'),\n\t\t\t\t\t\t'fax' \t\t => array('col_name' => 'fax','title' => 'Rest Fax', 'type' => 'text'),\n\t\t\t\t\t\t'delivery_time' => array('col_name' => 'delivery_time','title' => 'Max Time To Delivery', 'type' => 'numeric'),\n\t\t\t\t\t\t'delivery_cost' => array('col_name' => 'delivery_cost','title' => 'Delivery Cost', 'type' => 'numeric'),\n\t\t\t\t\t\t'delivery_min' => array('col_name' => 'delivery_min','title' => 'Delivery Min Fee', 'type' => 'numeric'),\n\t\t\t\t\t\t'about' => array('col_name' => 'about','title' => 'About', 'type' => 'textarea')\n\t\t\t\t )\n\t\t;\n\t}", "title": "" }, { "docid": "21b346b7d418b37d4772ed0b137a2a55", "score": "0.51250625", "text": "public function initializeSchemaInformation()\n {\n try {\n $this->execute(\"CREATE TABLE schema_info (\".\n \" version \".$this->typeToSql('integer').\n \")\");\n return $this->execute(\"INSERT INTO schema_info (version) VALUES (0)\");\n } catch (Exception $e) {}\n }", "title": "" }, { "docid": "46615d5357b090cc551c2ea91e14ed01", "score": "0.5121289", "text": "#[TentativeType]\n #[ArrayShape([\n \"name\" => \"string\",\n \"len\" => \"int\",\n \"precision\" => \"int\",\n \"oci:decl_type\" => \"int|string\",\n \"native_type\" => \"string\",\n \"scale\" => \"int\",\n \"flags\" => \"array\",\n \"pdo_type\" => \"int\"\n ])]\n public function getColumnMeta(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $column): array|false {}", "title": "" }, { "docid": "ea3d025bce49ed1aeda2288501a7629d", "score": "0.5120809", "text": "protected function createColumns()\n {\n $doLater = [];\n foreach ($this->table->getColumns() as $column) {\n //if it is a generic column such as timestamps, soft deletes, etc; put at the end of the column list.\n if ($column->name === '' || $column->name === null || $column->name === $column->type) {\n array_push($doLater, $column);\n }\n else {\n $this->content .= $this->createColumn($column);\n }\n }\n\n foreach ($doLater as $column) {\n $column->name = null;\n $this->content .= $this->createColumn($column);\n }\n }", "title": "" }, { "docid": "2b47746bfbf616084a495332273eaaaf", "score": "0.5115286", "text": "public function getColumns()\n {\n $columns = new ArrayCollection();\n foreach ($this->table->getColumns() as $column) {\n $columns[$column->getName()] = $column;\n }\n\n return $columns;\n }", "title": "" }, { "docid": "fb976bb10d6013a7017963265672b800", "score": "0.5114157", "text": "public function schema();", "title": "" }, { "docid": "fb976bb10d6013a7017963265672b800", "score": "0.5114157", "text": "public function schema();", "title": "" }, { "docid": "9dd59892dfbab418d320f8d598e47226", "score": "0.51002663", "text": "protected function ExtractColumnData() {\n\t\t\n\t\t$columns = array();\n\t\t\n\t\tif($row = $this->db->fetch()) {\n\t\t\t\n\t\t\t$cols = array_keys($row);\n\n\t\t\tforeach($cols as $col) {\n\n\t\t\t\t$columns[($col)] = array('label' => $col);//, 'sortable' => $this->cfg['columns_sortable']);\n\n\t\t\t\t// TODO: add this on client side, rather than passing\n\t\t\t\t// down the extra server load in ajax request?\n\t\t\t\tif(!$this->cfg['columns_sortable'])\n\t\t\t\t\t$columns[($col)]['sortable'] = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $columns;\n\t}", "title": "" }, { "docid": "e98922a7440148e7cf7fa900d6fbc2d1", "score": "0.509174", "text": "protected function _schemaFromReflection(): void\n {\n $db = ConnectionManager::get($this->connection());\n assert($db instanceof Connection);\n try {\n $name = Inflector::camelize($this->table);\n $ormTable = $this->fetchTable($name, ['connection' => $db]);\n\n // Remove the fetched table from the locator to avoid conflicts\n // with test cases that need to (re)configure the alias.\n $this->getTableLocator()->remove($name);\n\n $schema = $ormTable->getSchema();\n assert($schema instanceof TableSchema);\n $this->_schema = $schema;\n\n $this->getTableLocator()->clear();\n } catch (CakeException $e) {\n $message = sprintf(\n 'Cannot describe schema for table `%s` for fixture `%s`. The table does not exist.',\n $this->table,\n static::class\n );\n throw new CakeException($message, null, $e);\n }\n }", "title": "" }, { "docid": "e02bfd124d3124a6d2bd20e5c7f34011", "score": "0.5091716", "text": "private function getSchema()\n {\n $table = $this->getTableName();\n $file = $this->schemaPath . DIRECTORY_SEPARATOR . $table;\n if (!is_file($file)) {\n $data = Core::$app->db->getTableInfo($table);\n file_put_contents($file, json_encode($data));\n }\n $schema = file_get_contents($file);\n\n return json_decode($schema, true);\n }", "title": "" }, { "docid": "99a8ee6c5a7c54b732cec2bdcae3d979", "score": "0.5070468", "text": "public function tableStructure()\n {\n $dbh = $this->db();\n $table = $this->table();\n $driver = $dbh->getAttribute(PDO::ATTR_DRIVER_NAME);\n if ($driver === self::SQLITE_DRIVER_NAME) {\n $query = sprintf('PRAGMA table_info(\"%s\") ', $table);\n } else {\n $query = sprintf('SHOW COLUMNS FROM `%s`', $table);\n }\n\n $this->logger->debug($query);\n $sth = $dbh->query($query);\n\n $cols = $sth->fetchAll((PDO::FETCH_GROUP | PDO::FETCH_UNIQUE | PDO::FETCH_ASSOC));\n if ($driver === self::SQLITE_DRIVER_NAME) {\n $struct = [];\n foreach ($cols as $col) {\n // Normalize SQLite's result (PRAGMA) with mysql's (SHOW COLUMNS)\n $struct[$col['name']] = [\n 'Type' => $col['type'],\n 'Null' => !!$col['notnull'] ? 'NO' : 'YES',\n 'Default' => $col['dflt_value'],\n 'Key' => !!$col['pk'] ? 'PRI' : '',\n 'Extra' => '',\n ];\n }\n return $struct;\n } else {\n return $cols;\n }\n }", "title": "" }, { "docid": "8c8dafb6562105786a654db2eca2c03c", "score": "0.5064847", "text": "protected function getColumnMap() {\n if ($this->columnMap === null) {\n\n $camelToUnderscoreFunction = function ($name) {\n return strtolower(preg_replace('/([a-z])([A-Z])/', '$1_$2', $name));\n }; // camelCase to underscore\n\n $objectClass = $this->getObjectClass();\n $members = $objectClass::getAllowedMembers();\n $this->columnMap = array_combine($members, array_map($camelToUnderscoreFunction, $members));\n } //if\n return $this->columnMap;\n }", "title": "" }, { "docid": "72e37aef98430bec6d7a35ab78c78cfb", "score": "0.50610685", "text": "abstract public function get_columns();", "title": "" }, { "docid": "c9c7f9a5804a11bfbb025a7987a51e05", "score": "0.50558084", "text": "function addColumn( string $columnName, string $columnType, string $validate = null, string $length = null ) {\r\n $this->columns[$columnName] = new MappingColumnTypes( $columnType, $validate, $length, null);\r\n }", "title": "" }, { "docid": "8ee4bb283ff16a1641f8559cb3af6bf3", "score": "0.50281775", "text": "protected function defineColumns(): array\n {\n return [];\n }", "title": "" }, { "docid": "5947518f2393fa5b739dabac350bf72d", "score": "0.50170785", "text": "public function getTableSchema() {\n\t\tif (is_null($this->table)) return;\n\n\t\t// does this table exist\n\t\t$sql = \"SELECT relname FROM pg_class WHERE relname = \".$this->database->quote($this->table).\" AND relkind='r'\";\n\t\t$table = $this->database->queryMulti($sql);\n\t\tif (count($table) == 0) {\n\t\t\treturn NULL;\n\t\t}\n\n\t\t// get the columns\n\t\t$sql = \"\n\t\t\tSELECT *,\n\t\t\t\tcolumn_name,\n\t\t\t\tdata_type,\n\t\t\t\tis_nullable,\n\t\t\t\tcolumn_default\n\t\t\tFROM information_schema.columns\n\t\t\tWHERE\n\t\t\t\ttable_schema = 'public'\n\t\t\t\tAND table_name = \".$this->database->quote($this->table).\"\n\t\t\";\n\t\t$columns = [];\n\t\t$columns_raw = $this->database->queryMulti($sql);\n\t\tforeach ($columns_raw as $column) {\n\t\t\t// is this an autoincrement field\n\t\t\t$auto_increment = FALSE;\n\t\t\tif (preg_match('/^nextval/', $column['column_default'])) {\n\t\t\t\t$column['column_default'] = NULL;\n\t\t\t\t$auto_increment = TRUE;\n\t\t\t}\n\n\t\t\t$columns[$column['column_name']] = [\n\t\t\t\t'data_type' => $this->translateDataType($column['data_type']),\n\t\t\t\t'null_allowed' => ($column['is_nullable'] == 'YES') ? TRUE : FALSE,\n\t\t\t\t'auto_increment' => $auto_increment,\n\t\t\t\t'default_value' => $column['column_default'],\n\t\t\t];\n\t\t}\n\n\t\t// get the indexes\n\t\t$sql = \"\n\t\t\tSELECT\n\t\t\t\ti.relname as indname,\n\t\t\t\ti.relowner as indowner,\n\t\t\t\tidx.indrelid::regclass,\n\t\t\t\tam.amname as indam,\n\t\t\t\tidx.indkey,\n\t\t\t\tARRAY(\n\t\t\t\t\tSELECT pg_get_indexdef(idx.indexrelid, k + 1, true)\n\t\t\t\t\tFROM generate_subscripts(idx.indkey, 1) as k\n\t\t\t\t\tORDER BY k\n\t\t\t\t) as indkey_names,\n\t\t\t\tidx.indexprs IS NOT NULL as indexprs,\n\t\t\t\tidx.indpred IS NOT NULL as indpred\n\t\t\tFROM\n\t\t\t\tpg_index as idx\n\t\t\t\tJOIN pg_class as i ON i.oid = idx.indexrelid\n\t\t\t\tJOIN pg_am as am ON i.relam = am.oid\n\t\t\t\tJOIN pg_namespace as ns ON ns.oid = i.relnamespace AND ns.nspname = ANY(current_schemas(false))\n\t\t\";\n\t\t$indexes = [];\n\t\t$raw_indexes = $this->database->queryMulti($sql);\n\t\tforeach ($raw_indexes as $index) {\n\t\t\tif ($index['indrelid'] == $this->table) {\n\t\t\t\tpreg_match('/^{(.*)}$/', $index['indkey_names'], $matches);\n\t\t\t\t$array = str_getcsv($matches[1]);\n\t\t\t\t$indexes[$index['indname']] = $array;\n\t\t\t}\n\t\t}\n\n\t\t// get the foreign keys\n\t\t$sql = \"\n\t\t\tSELECT *,\n\t\t\t\ttc.constraint_name,\n\t\t\t\tkcu.column_name,\n\t\t\t\tconstraint_type,\n\t\t\t\tccu.table_name AS foreign_table_name,\n\t\t\t\tccu.column_name AS foreign_column_name\n\t\t\tFROM\n\t\t\t\tinformation_schema.table_constraints AS tc\n\t\t\t\tJOIN information_schema.key_column_usage AS kcu\n\t\t\t\t\tON tc.constraint_name = kcu.constraint_name\n\t\t\t\tJOIN information_schema.constraint_column_usage AS ccu\n\t\t\t\t\tON ccu.constraint_name = tc.constraint_name\n\t\t\tWHERE\n\t\t\t\ttc.table_name=\".$this->database->quote($this->table).\"\n\t\t\";\n\t\t$primary_key = NULL;\n\t\t$foreign_keys = [];\n\t\t$uniques = [];\n\t\t$raw_constraints = $this->database->queryMulti($sql);\n\t\tforeach ($raw_constraints as $constraint) {\n\t\t\tif ($constraint['constraint_type'] == 'FOREIGN KEY') {\n\t\t\t\t$foreign_keys[$constraint['column_name']] = [\n\t\t\t\t\t$constraint['foreign_table_name'],\n\t\t\t\t\t$constraint['foreign_column_name'],\n\t\t\t\t];\n\t\t\t}\n\t\t\telseif ($constraint['constraint_type'] == 'PRIMARY KEY') {\n\t\t\t\t$primary_key = [\n\t\t\t\t\t'name' => $constraint['constraint_name'],\n\t\t\t\t\t'column' => $constraint['column_name']\n\t\t\t\t];\n\t\t\t}\n\t\t\telseif ($constraint['constraint_type'] == 'UNIQUE') {\n\t\t\t\tif (isset($indexes[$constraint['constraint_name']])) {\n\t\t\t\t\t$uniques[$constraint['constraint_name']] = $indexes[$constraint['constraint_name']];\n\t\t\t\t\tunset($indexes[$constraint['constraint_name']]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$schema = [\n\t\t\t'primary_key' => $primary_key,\n\t\t\t'columns' => $columns,\n\t\t\t'indexes' => $indexes,\n\t\t\t'uniques' => $uniques,\n\t\t\t'foreign_keys' => $foreign_keys,\n\t\t];\n\n\t\treturn $schema;\n\t}", "title": "" }, { "docid": "ac63c0f3e84f91b87ebecd2c0345d304", "score": "0.49980962", "text": "protected function loadConstraintsFromSchema($exclude = array())\n {\n $mixer = $this->getMixer();\n $columns = $mixer->getColumns();\n foreach($columns AS $id => $column)\n {\n if($column->primary || in_array($id, $exclude)) continue;\n\n $constraint_set = array();\n\n $required_type = 'required';\n if($column->name == 'email' || $column->name == 'email_address') $constraint_set['email'] = array();\n if($column->name == 'ip' || $column->name == 'ip_address') $constraint_set['ip'] = array();\n\n switch($column->type)\n {\n case 'date': $constraint_set['date'] = array('allow_zeros' => !$column->required); break;\n case 'datetime': $constraint_set['timestamp'] = array('allow_zeros' => !$column->required); break;\n case 'time': $constraint_set['time'] = array('allow_zeros' => !$column->required); break;\n\n case 'int':\n case 'integer':\n case 'tinyint':\n case 'smallint':\n case 'mediumint':\n case 'bigint':\n if($column->type == 'tinyint' && $column->length == 1) $constraint_set['boolean'] = array();\n else $constraint_set['int'] = array();\n break;\n\n case 'float':\n case 'double':\n case 'real':\n case 'double':\n case 'double precision':\n $constraint_set['float'] = array();\n break;\n\n case 'bit':\n case 'bool':\n case 'boolean':\n $required_type = 'notnull'; //booleans can be 0, notblank fails on this\n $constraint_set['boolean'] = array();\n break;\n\n case 'varchar':\n case 'text':\n case 'tinytext':\n case 'mediumtext':\n case 'longtext':\n case 'blob':\n case 'tinyblob':\n case 'smallblob':\n case 'longblob':\n $constraint_set['string'] = array();\n break;\n }\n\n if($column->required) $constraint_set[$required_type] = array();\n\n if($column->length) $constraint_set['length'] = array('max' => $column->length);\n\n foreach($constraint_set AS $constraint => $options){\n $this->addConstraint($id, $constraint, $options);\n }\n }\n\n return $this;\n }", "title": "" }, { "docid": "1e354327cde7834af17f3173df523c06", "score": "0.4991485", "text": "function createFromDb($column)\n {\n foreach ($column as $key => $value) {\n $this->columns[$key] = $value;\n }\n }", "title": "" }, { "docid": "e8f2446aaf66d90cfc4873b65f4e1f1f", "score": "0.49879023", "text": "protected static function getColumns()\n\t{\n\t\treturn array(\n\t\t\t\t\t\t\"id\",\n\t\t\t\t\t\t\"account_id\",\n\t\t\t\t\t\t\"invoice_run_id\",\n\t\t\t\t\t\t\"last_updated\",\n\t\t\t\t\t\t\"customer_status_id\"\n\t\t\t\t\t);\n\t}", "title": "" }, { "docid": "a861a9382ea5afb890aaaf6b517f5509", "score": "0.49702874", "text": "function getColumns()\r\n\t{\r\n\t\t$classname = strtolower( get_class($this) );\r\n\t\t$cache = JFactory::getCache( $classname . '.columns', '' );\r\n\t\t$cache->setCaching(true);\r\n\t\t$cache->setLifeTime('86400');\r\n\t\t$fields = $cache->get($classname);\r\n\t\tif (empty($fields))\r\n\t\t{\r\n\t\t\t$fields = $this->_db->getTableFields($this->getTableName());\r\n\t\t\tif(version_compare(JVERSION,'1.6.0','ge'))\r\n\t\t\t{\r\n\t\t\t\t// joomla! 1.6+ code here\r\n\t\t\t\t$cache->store( $fields, $classname);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$cache->store( serialize( $fields ), $classname);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif(!version_compare(JVERSION,'1.6.0','ge'))\r\n\t\t\t{\r\n\t\t\t\t$fields = unserialize( trim( $fields ) );\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t $fields = @$fields[$this->getTableName()];\r\n \r\n if (empty($fields)) {\r\n $fields = array();\r\n }\r\n \r\n\t\treturn $fields;\r\n\t}", "title": "" }, { "docid": "d46c93fb7895cad4373a398c31f6b4c2", "score": "0.49597073", "text": "public function get_field_schema()\n {\n }", "title": "" }, { "docid": "ba47e70b43941e7281de85da57bd7841", "score": "0.4959485", "text": "protected function _setTableColumns(){\r\n $columns = $this->get_columns();\r\n \r\n foreach($columns as $column){\r\n $columnName = $column->Field;\r\n $this->_columnNames[] = $column->Field;\r\n $this->{$columnName} = null;\r\n }\r\n }", "title": "" }, { "docid": "c57eb3837a89a1e391ecc15749862a5a", "score": "0.49552512", "text": "protected function initColumns()\n {\n foreach ($this->columns as $i => $column) {\n if (is_array($column) && !isset($column['class'])) {\n $this->columns[$i]['class'] = 'bootstrap.widgets.BsDataColumn';\n }\n }\n parent::initColumns();\n }", "title": "" }, { "docid": "7a16f859918b9096417bb540b1fb3030", "score": "0.49391112", "text": "public function __construct()\n {\n $this->columnData = array( \n 'name' => array( \n 'name' => 'name',\n 'attributes' => array( \n 'type' => 'varchar(128)',\n 'isa' => 'str',\n 'size' => 128,\n ),\n ),\n 'email' => array( \n 'name' => 'email',\n 'attributes' => array( \n 'type' => 'varchar(128)',\n 'isa' => 'str',\n 'required' => true,\n 'size' => 128,\n ),\n ),\n 'v' => array( \n 'name' => 'v',\n 'attributes' => array( \n 'type' => 'text',\n 'isa' => 'str',\n 'label' => 'Virtual Column',\n 'virtual' => true,\n 'inflator' => function($value,$record) {\n return $record->email . $record->email;\n },\n ),\n ),\n 'identity' => array( \n 'name' => 'identity',\n 'attributes' => array( \n 'type' => 'varchar(128)',\n 'isa' => 'str',\n 'unique' => true,\n 'required' => true,\n 'size' => 128,\n ),\n ),\n 'confirmed' => array( \n 'name' => 'confirmed',\n 'attributes' => array( \n 'type' => 'boolean',\n 'isa' => 'bool',\n 'default' => false,\n ),\n ),\n 'updated_on' => array( \n 'name' => 'updated_on',\n 'attributes' => array( \n 'type' => 'timestamp',\n 'isa' => 'DateTime',\n 'timezone' => true,\n 'default' => function() { \n return date('c'); \n },\n ),\n ),\n 'created_on' => array( \n 'name' => 'created_on',\n 'attributes' => array( \n 'type' => 'timestamp',\n 'isa' => 'DateTime',\n 'timezone' => true,\n 'default' => function() { \n return date('c'); \n },\n ),\n ),\n 'id' => array( \n 'name' => 'id',\n 'attributes' => array( \n 'type' => 'integer',\n 'isa' => 'int',\n 'primary' => true,\n 'autoIncrement' => true,\n ),\n ),\n);\n $this->columnNames = array( \n 'name',\n 'email',\n 'v',\n 'identity',\n 'confirmed',\n);\n $this->primaryKey = 'id';\n $this->table = 'authors';\n $this->modelClass = 'tests\\\\Author';\n $this->collectionClass = 'tests\\\\AuthorCollection';\n $this->label = 'Author';\n $this->relations = array( \n 'addresses' => \\LazyRecord\\Schema\\Relationship::__set_state(array( \n 'data' => array( \n 'type' => 2,\n 'self_column' => 'id',\n 'self_schema' => 'tests\\\\AuthorSchema',\n 'foreign_column' => 'author_id',\n 'foreign_schema' => '\\\\tests\\\\AddressSchema',\n ),\n)),\n 'author_books' => \\LazyRecord\\Schema\\Relationship::__set_state(array( \n 'data' => array( \n 'type' => 2,\n 'self_column' => 'id',\n 'self_schema' => 'tests\\\\AuthorSchema',\n 'foreign_column' => 'author_id',\n 'foreign_schema' => '\\\\tests\\\\AuthorBookSchema',\n ),\n)),\n 'books' => \\LazyRecord\\Schema\\Relationship::__set_state(array( \n 'data' => array( \n 'type' => 3,\n 'relation_junction' => 'author_books',\n 'relation_foreign' => 'book',\n ),\n)),\n);\n $this->readSourceId = 'default';\n $this->writeSourceId = 'default';\n parent::__construct();\n }", "title": "" }, { "docid": "fcf15f927c0ad1e2782debae41088910", "score": "0.49348047", "text": "public static function build(string $type): ColumnInterface\n {\n switch ($type) {\n case Schema::TYPE_PK:\n $column = new PrimaryKeyColumn();\n break;\n\n case Schema::TYPE_UPK:\n $column = new UnsignedPrimaryKeyColumn();\n break;\n\n case Schema::TYPE_BIGPK:\n $column = new BigPrimaryKeyColumn();\n break;\n\n case Schema::TYPE_UBIGPK:\n $column = new BigUnsignedPrimaryKeyColumn();\n break;\n\n case Schema::TYPE_CHAR:\n $column = new CharacterColumn();\n break;\n\n case Schema::TYPE_STRING:\n $column = new StringColumn();\n break;\n\n case Schema::TYPE_TEXT:\n $column = new TextColumn();\n break;\n\n case Schema::TYPE_TINYINT:\n $column = new TinyIntegerColumn();\n break;\n\n case Schema::TYPE_SMALLINT:\n $column = new SmallIntegerColumn();\n break;\n\n case Schema::TYPE_INTEGER:\n $column = new IntegerColumn();\n break;\n\n case Schema::TYPE_BIGINT:\n $column = new BigIntegerColumn();\n break;\n\n case Schema::TYPE_BINARY:\n $column = new BinaryColumn();\n break;\n\n case Schema::TYPE_FLOAT:\n $column = new FloatColumn();\n break;\n\n case Schema::TYPE_DOUBLE:\n $column = new DoubleColumn();\n break;\n\n case Schema::TYPE_DATETIME:\n $column = new DateTimeColumn();\n break;\n\n case Schema::TYPE_TIMESTAMP:\n $column = new TimestampColumn();\n break;\n\n case Schema::TYPE_TIME:\n $column = new TimeColumn();\n break;\n\n case Schema::TYPE_DATE:\n $column = new DateColumn();\n break;\n\n case Schema::TYPE_DECIMAL:\n $column = new DecimalColumn();\n break;\n\n case Schema::TYPE_BOOLEAN:\n $column = new BooleanColumn();\n break;\n\n case Schema::TYPE_MONEY:\n $column = new MoneyColumn();\n break;\n\n case Schema::TYPE_JSON:\n $column = new JsonColumn();\n break;\n\n default:\n throw new InvalidArgumentException(\"Unsupported schema type '$type' for ColumnFactory.\");\n }\n\n $column->setType($type);\n\n return $column;\n }", "title": "" }, { "docid": "cc1c55534f46f017f8dca1fd6476b497", "score": "0.4930986", "text": "public function testColumns()\n {\n $this->assertNotEmpty($this->validator->columns,\n \"[-] The `columns` can not be empty\"\n );\n\n // check assigned columns has type integer\n $this->assertContainsOnly('int', $this->validator->columns,\n \"[-] The `columns` property must have only (int) keys\"\n );\n\n // check count of types alowed to parse\n $this->assertCount(6, $this->validator->columns,\n \"[-] The `columns` property counted must be equals to 6\"\n );\n }", "title": "" }, { "docid": "21e71f964b2e0f7b676c3932a5e191c4", "score": "0.49299312", "text": "protected function getColumns(): array\n {\n if (is_null(self::$_columns)) {\n self::$_columns = parent::addColumns();\n }\n return self::$_columns;\n }", "title": "" }, { "docid": "1c60a21e7541e0f2727e76a1aa6bb86c", "score": "0.4921885", "text": "private function setColumnArray()\r\n {\r\n $this->columns = array();\r\n\r\n //handle the simple insert case first\r\n if(strtoupper(substr($this->sql, 0, 6)) == 'INSERT') {\r\n $firstPos = strpos($this->sql, '(');\r\n $secPos = strpos($this->sql, ')');\r\n $collist = substr($this->sql, $firstPos + 1, $secPos - $firstPos - 1);\r\n $this->columns = explode(',', $collist);\r\n }\r\n if (strtoupper(substr($this->sql, 0, 6)) == 'UPDATE') {\r\n //handle more complex update case\r\n //first get the string setup so we can explode based on '=?'\r\n //second split results from previous action based on ' '\r\n // the last token from this should be a column name\r\n $tmp = $this->sql;\r\n $tmp = str_replace(\" =\", \"=\", $this->sql);\r\n $tmp = str_replace(\"= \", \"=\", $tmp);\r\n $tmp = str_replace(\",\", \" \", $tmp);\r\n $stage1 = explode(\"=?\",$tmp);\r\n \r\n foreach($stage1 as $chunk) {\r\n $stage2 = explode(' ', $chunk);\r\n $this->columns[count($this->columns)] = $stage2[count($stage2) - 1];\r\n }\r\n }\r\n }", "title": "" }, { "docid": "643989113f347d046e348c88dd254c60", "score": "0.49055097", "text": "public function db_build_schema()\n {\n $db = new Database;\n\n return $db->build_schema();\n }", "title": "" }, { "docid": "8d663d2a354ebc3931772b6ebcacc72a", "score": "0.4901098", "text": "abstract public function getColumns();", "title": "" }, { "docid": "8d663d2a354ebc3931772b6ebcacc72a", "score": "0.4901098", "text": "abstract public function getColumns();", "title": "" }, { "docid": "de1d8a734d286b55707ff374596a030f", "score": "0.4897252", "text": "public function getColumnInfo()\n {\n return $this->definition;\n }", "title": "" }, { "docid": "b8eca76cab20b7d67724fce3c4d63bfe", "score": "0.48951524", "text": "public function describeColumns($table, $schema){ }", "title": "" }, { "docid": "afa2e494329aa93e3a2841cdcf9d8292", "score": "0.48896676", "text": "function get_schema($table_name)\n\t{\n\t\t$sql = 'SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name=\\'' . $table_name . '\\'';\n\t\t$db_result = pg_exec($this->connection, $sql);\n\t\t\n\t\t$schema = null;\n\t\tif ($db_result) {\n\t\t\t$schema = array(); // Only one structure per table\n\t\t\t$data_struct = $schema->create_entity($table_name);\n\t\t\twhile($field = pg_fetch_array($db_result, NULL, PGSQL_ASSOC)) { \n\t\t\t\t$field_info = &$data_struct->add_field_description($field['column_name']\n\t\t\t\t\t\t, $this->get_type_mapping($field['udt_name'])\n\t\t\t\t\t\t, $this->is_nullable($field), $this->is_key($field), $this->default_val($field)\n\t\t\t\t\t);\n\t\t\t\t$field_info->is_identity = $this->is_identity($field);\n\t\t\t\t$field_info->is_unique = $this->is_unique($field);\n\t\t\t\t$field_info->min_length = $this->min_length($field);\n\t\t\t\t$field_info->max_length = $this->max_length($field);\n\n\t\t\t\t$field_info->is_updatable = $this->is_updatable($field);\n\t\t\t\t$field_info->is_insertable = $this->is_insertable($field);\n\n\t\t\t\t$field_info->is_searchable = $this->is_searchable($field);\n\t\t\t\t$field_info->min_val = $this->min_val($field);\n\t\t\t\t$field_info->max_val = $this->max_val($field);\n\t\t\t} \n\t\t\t\n\t\t\t// Introspecting indexes\n\t\t\t/*\n\t\t\t$db_result = $this->connection->query('SHOW INDEX FROM ' . $table_name);\n\t\t\tif ($db_result) {\n\t\t\t\twhile($row = $db_result->fetch_assoc()){ \n\t\t\t\t\t$unique = ($row['Non_unique'] == 0) ? true : false;\n\t\t\t\t\t$data_struct->add_index($row['Column_name'], $row['Key_name'], $unique);\n\t\t\t\t} \n\t\t\t}*/\n\t\t}\n\n\t\treturn $schema;\n\t}", "title": "" }, { "docid": "5d271f60b6020abecd4ad63c3d67668a", "score": "0.48892033", "text": "public function getColumns ()\n {\n $this->lazyLoad();\n\n self::lazyInject($this->columns, [\n \"board_id\" => $this->getId()\n ]);\n self::lazyCastAll($this->columns, \"PulseColumn\");\n\n return $this->columns;\n }", "title": "" }, { "docid": "8f4c2e4da412281941eb4f66c1468748", "score": "0.48800373", "text": "protected function loadSchema($data, Schema $schema)\n {\n // init database\n $allowedColumnsTypes = Constants::getColumnsAllowedTypes();\n\n // TODO always have a query result\n if ($data instanceof QueryResult) {\n $tablesData = $data->getResults(Constants::FETCH_TYPE_ARRAY);\n } else {\n $tablesData = $data['tables'];\n }\n // read data, create table and load table into database schema\n foreach ($tablesData as $tableName => $tableData) {\n $table = new Table();\n $table->setName($tableName);\n\n foreach ($tableData as $columnName => $columnsData) {\n // class behaviors\n if ($columnName == 'behaviors') {\n foreach ($columnsData as $behavior) {\n $table->addBehavior($behavior);\n }\n // behaviors is not a \"real\" column, we skip the rest of the process\n continue;\n }\n // guess id type if not exist\n if ($columnName == 'id' and !array_key_exists('type', $columnsData)) {\n $columnsData['type'] = 'id';\n }\n // set type if allowed\n if (!in_array($columnsData['type'], $allowedColumnsTypes)) {\n throw new Exception('Invalid column type : ' . $columnsData['type'] . ', name : ' . $columnName);\n }\n // creating new column\n $column = new Column();\n $column->setName($columnName);\n $column->setType($columnsData['type']);\n\n if (array_key_exists('behaviors', $columnsData)) {\n foreach ($columnsData['behaviors'] as $behavior) {\n $column->addBehavior($behavior);\n }\n }\n $table->addColumn($column);\n }\n $schema->addTable($table);\n }\n $this->isLoaded = true;\n\n return $schema;\n }", "title": "" }, { "docid": "9f863aab78cd2076e6527230dae378a8", "score": "0.48769814", "text": "public function setProperties(): void\n {\n $columnQuery = (new Query())->select('column_name')\n ->from('information_schema.columns')\n ->where('table_schema', $this->query->getConnection()->getName())\n ->where('table_name', $this->getTable())\n ->execute()->fetchAll();\n\n foreach ($columnQuery as $column) {\n $this->columns[$column['column_name']] = '';\n }\n }", "title": "" }, { "docid": "4af15a9a9473eb020eda13b6f103b38d", "score": "0.48725435", "text": "protected function crudColumns() {\n if (!is_a($this->crudColumns, Chainset\\Columns::class, true))\n throw new Exception\\Exception($this->crudColumns . ' is not a subclass of ' . Chainset\\Columns::class);\n $columns = new $this->crudColumns;\n return $columns;\n}", "title": "" }, { "docid": "957f4eacd9fb26c27cc70d821b2dc6c0", "score": "0.48699647", "text": "public function ddl_create_column(DB_Schema_Column $column);", "title": "" }, { "docid": "a41c2376f2af2c581d03175454bd52d0", "score": "0.48678428", "text": "protected function getColumn() : Column {}", "title": "" }, { "docid": "a0a635af4c463af57187b1357c45906a", "score": "0.48583305", "text": "public function describeColumns($table, $schema = NULL) {\n\n $oldColumn = NULL;\n $sizePattern = \"#\\\\(([0-9]+)(?:,\\\\s*([0-9]+))*\\\\)#\";\n $columns = [];\n\n /**\n * Get the SQL to describe a table\n * We're using FETCH_NUM to fetch the columns\n * Get the describe\n * Field Indexes: 0:name, 1:type, 2:not null, 3:key, 4:default, 5:extra\n */\n foreach ($this->fetchAll($this->_dialect->describeColumns($table, $schema), Db::FETCH_NUM) as $field) {\n /**\n * By default the bind types is two\n */\n $definition = [\"bindType\" => Column::BIND_PARAM_STR];\n\n /**\n * By checking every column type we convert it to a Phalcon\\Db\\Column\n */\n\n $columnType = $field[1];\n\n if (strpos($columnType, \"enum\") !== False) {\n /**\n * Enum are treated as char\n */\n $definition[\"type\"] = Column::TYPE_CHAR;\n } elseif (strpos($columnType, \"bigint\") !== False) {\n /**\n * Smallint/Bigint/Integers/Int are int\n */\n $definition[\"type\"] = Column::TYPE_BIGINTEGER;\n $definition[\"isNumeric\"] = true;\n $definition[\"bindType\"] = Column::BIND_PARAM_INT;\n } elseif (strpos($columnType, \"int\") !== False) {\n /**\n * Smallint/Bigint/Integers/Int are int\n */\n $definition[\"type\"] = Column::TYPE_INTEGER;\n $definition[\"isNumeric\"] = true;\n $definition[\"bindType\"] = Column::BIND_PARAM_INT;\n } elseif (strpos($columnType, \"varchar\") !== False) {\n /**\n * Varchar are varchars\n */\n $definition[\"type\"] = Column::TYPE_VARCHAR;\n } elseif (strpos($columnType, \"datetime\") !== False) {\n /**\n * Special type for datetime\n */\n $definition[\"type\"] = Column::TYPE_DATETIME;\n } elseif (strpos($columnType, \"char\") !== False) {\n /**\n * Chars are chars\n */\n $definition[\"type\"] = Column::TYPE_CHAR;\n } elseif (strpos($columnType, \"date\") !== False) {\n /**\n * Date are dates\n */\n $definition[\"type\"] = Column::TYPE_DATE;\n } elseif (strpos($columnType, \"timestamp\") !== False) {\n /**\n * Timestamp are dates\n */\n $definition[\"type\"] = Column::TYPE_TIMESTAMP;\n } elseif (strpos($columnType, \"text\") !== False) {\n /**\n * Text are varchars\n */\n $definition[\"type\"] = Column::TYPE_TEXT;\n } elseif (strpos($columnType, \"decimal\") !== False) {\n /**\n * Decimals are floats\n */\n $definition[\"type\"] = Column::TYPE_DECIMAL;\n $definition[\"isNumeric\"] = true;\n $definition[\"bindType\"] = Column::BIND_PARAM_DECIMAL;\n } elseif (strpos($columnType, \"double\") !== False) {\n /**\n * Doubles\n */\n $definition[\"type\"] = Column::TYPE_DOUBLE;\n $definition[\"isNumeric\"] = true;\n $definition[\"bindType\"] = Column::BIND_PARAM_DECIMAL;\n } elseif (strpos($columnType, \"float\") !== False) {\n /**\n * Float/Smallfloats/Decimals are float\n */\n $definition[\"type\"] = Column::TYPE_FLOAT;\n $definition[\"isNumeric\"] = true;\n $definition[\"bindType\"] = Column::BIND_PARAM_DECIMAL;\n } elseif (strpos($columnType, \"bit\") !== False) {\n /**\n * Boolean\n */\n $definition[\"type\"] = Column::TYPE_BOOLEAN;\n $definition[\"bindType\"] = Column::BIND_PARAM_BOOL;\n } elseif (strpos($columnType, \"tinyblob\") !== False) {\n /**\n * Tinyblob\n */\n $definition[\"type\"] = Column::TYPE_TINYBLOB;\n } elseif (strpos($columnType, \"mediumblob\") !== False) {\n /**\n * Mediumblob\n */\n $definition[\"type\"] = Column::TYPE_MEDIUMBLOB;\n } elseif (strpos($columnType, \"longblob\") !== False) {\n /**\n * Longblob\n */\n $definition[\"type\"] = Column::TYPE_LONGBLOB;\n } elseif (strpos($columnType, \"blob\") !== False) {\n /**\n * Blob\n */\n $definition[\"type\"] = Column::TYPE_BLOB;\n } elseif (strpos($columnType, \"json\") !== False) {\n /**\n * Blob\n */\n $definition[\"type\"] = Column::TYPE_JSON;\n } else {\n /**\n * By default is string\n */\n $definition[\"type\"] = Column::TYPE_VARCHAR;\n }\n\n /**\n * If the column type has a parentheses we try to get the column size from it\n */\n if (strpos($columnType, \"(\") !== False) {\n $matches = NULL;\n if (preg_match($sizePattern, $columnType, $matches)) {\n if (isset($matches[1])) {\n $matchOne = $matches[1];\n $definition[\"size\"] = (int) $matchOne;\n }\n if (isset($matches[2])) {\n $matchTwo = $matches[2];\n $definition[\"scale\"] = (int) $matchTwo;\n }\n }\n }\n\n /**\n * Check if the column is unsigned, only MySQL support this\n */\n if (strpos($columnType, \"unsigned\") !== False) {\n $definition[\"unsigned\"] = True;\n }\n\n /**\n * Positions\n */\n if ($oldColumn == NULL) {\n $definition[\"first\"] = True;\n } else {\n $definition[\"after\"] = $oldColumn;\n }\n\n /**\n * Check if the field is primary key\n */\n if ($field[3] == \"PRI\") {\n $definition[\"primary\"] = True;\n }\n\n /**\n * Check if the column allows NULL VALUES\n */\n if ($field[2] == \"NO\") {\n $definition[\"notNull\"] = True;\n }\n\n /**\n * Check if the column is auto increment\n */\n if ($field[5] == \"auto_increment\") {\n $definition[\"autoIncrement\"] = True;\n }\n\n /**\n * Check if the column is default values\n */\n if (gettype($field[4]) != \"null\") {\n $definition[\"default\"] = $field[4];\n }\n\n /**\n * Every route is stored as a Phalcon\\Db\\Column\n */\n $columnName = $field[0];\n $columns[] = new Column($columnName, $definition);\n $oldColumn = $columnName;\n }\n\n return $columns;\n }", "title": "" }, { "docid": "2152e0416c58cdbef6636d73c86891fc", "score": "0.48573005", "text": "protected function getColumns()\n {\n foreach ($this->commonTables as $table => $currentSchema) {\n $currentColumns = $currentSchema->columns();\n $oldColumns = $this->dumpSchema[$table]->columns();\n\n // brand new columns\n $addedColumns = array_diff($currentColumns, $oldColumns);\n foreach ($addedColumns as $columnName) {\n $column = $currentSchema->column($columnName);\n $key = array_search($columnName, $currentColumns);\n if ($key > 0) {\n $column['after'] = $currentColumns[$key - 1];\n }\n $this->templateData[$table]['columns']['add'][$columnName] = $column;\n }\n\n // changes in columns meta-data\n foreach ($currentColumns as $columnName) {\n $column = $currentSchema->column($columnName);\n $oldColumn = $this->dumpSchema[$table]->column($columnName);\n unset($column['collate']);\n unset($oldColumn['collate']);\n\n if (in_array($columnName, $oldColumns) &&\n $column !== $oldColumn\n ) {\n $changedAttributes = array_diff($column, $oldColumn);\n\n foreach (['type', 'length', 'null', 'default'] as $attribute) {\n $phinxAttributeName = $attribute;\n if ($attribute == 'length') {\n $phinxAttributeName = 'limit';\n }\n if (!isset($changedAttributes[$phinxAttributeName])) {\n $changedAttributes[$phinxAttributeName] = $column[$attribute];\n }\n }\n\n if (isset($changedAttributes['length'])) {\n if (!isset($changedAttributes['limit'])) {\n $changedAttributes['limit'] = $changedAttributes['length'];\n }\n\n unset($changedAttributes['length']);\n }\n\n $this->templateData[$table]['columns']['changed'][$columnName] = $changedAttributes;\n }\n }\n\n // columns deletion\n if (!isset($this->templateData[$table]['columns']['remove'])) {\n $this->templateData[$table]['columns']['remove'] = [];\n }\n $removedColumns = array_diff($oldColumns, $currentColumns);\n if (!empty($removedColumns)) {\n foreach ($removedColumns as $columnName) {\n $column = $this->dumpSchema[$table]->column($columnName);\n $key = array_search($columnName, $oldColumns);\n if ($key > 0) {\n $column['after'] = $oldColumns[$key - 1];\n }\n $this->templateData[$table]['columns']['remove'][$columnName] = $column;\n }\n }\n }\n }", "title": "" }, { "docid": "8e422822cd6f65af1cc8d6340c74492c", "score": "0.48561823", "text": "protected function loadDefaults() {\n\t\t// #BEGIN DEFAULTS\n\t\t$this->createColumn('id', DATATYPE_INT, NULL, true);\n\t\t$this->createColumn('name', DATATYPE_STRING, NULL, false);\n\t\t$this->createColumn('version', DATATYPE_INT, NULL, false);\n\t\t$this->createColumn('ruleSetFile', DATATYPE_STRING, NULL, false);\n\t\t// #END DEFAULTS\n\t\t\n\t\t// change defaults here if you want user-defined default values\n\t\t// $this->updateColumnDefault('column', DEFAULT_VALUE, NOT_NULL);\n\t}", "title": "" }, { "docid": "3a45abf5f2d8632d24351ebd3c8173d1", "score": "0.48556438", "text": "public function schema() {\n if (empty($this->schema)) {\n $class = $this->getDriverClass('DatabaseSchema', array('schema.inc'));\n if (class_exists($class)) {\n $this->schema = new $class($this);\n }\n }\n return $this->schema;\n }", "title": "" }, { "docid": "c1d7640fc4cfad7d3055a5c23562141a", "score": "0.48515266", "text": "protected function createSchema() : Schema {}", "title": "" }, { "docid": "cb65ffd134bf67769e96ad891e380a16", "score": "0.48505124", "text": "protected function tableColumns() {\n\t\t\t$this->table->columns = array();\n\t\t\t$this->table->columns[] = array('name' => 'Title', 'key' => 'title', 'class' => 'center');\n\t\t\t$this->table->columns[] = array('name' => 'Type', 'key' => 'filename_file_type', 'class' => 'center');\n\t\t\t$this->table->columns[] = array('name' => 'Size', 'key' => 'filename_file_size', 'class' => 'center');\n\t\t\t$this->table->columns[] = array('name' => 'Last Updated', 'key' => 'last_updated', 'class' => 'center');\n\t\t\t$this->table->columns[] = array('name' => 'Action', 'class' => 'actions');\n\t\t}", "title": "" }, { "docid": "6b2297c1550b4ab67d087ee394ac21be", "score": "0.48486906", "text": "protected function _initializeSchema(TableSchema $schema) {\n\t\t$schema = parent::_initializeSchema($schema);\n\n\t\tif (!empty($this->_serialized)) {\n\t\t\tforeach ($this->_serialized as $col) {\n\t\t\t\t$schema->setColumnType($col, 'notifier.serialize');\n\t\t\t}\n\t\t}\n\n\t\treturn $schema;\n\t}", "title": "" }, { "docid": "d18aa716bcde0e5af30a94c6eeb55df6", "score": "0.48286653", "text": "public static function columns() {\n\t\n\t\t$columns['id'] = new \\Gino\\IntegerField(array(\n\t\t\t'name'=>'id',\n\t\t\t'primary_key'=>true,\n\t\t\t'auto_increment'=>true,\n\t\t\t'max_lenght'=>11,\n\t\t));\n\t\t$columns['instance'] = new \\Gino\\IntegerField(array(\n\t\t\t'name'=>'instance',\n\t\t\t'required'=>true,\n\t\t\t'max_lenght'=>11,\n\t\t));\n\t\t$columns['name'] = new \\Gino\\CharField(array(\n\t\t\t'name'=>'name',\n\t\t\t'label'=>_(\"Nome\"),\n\t\t\t'required'=>true,\n\t\t\t'max_lenght'=>200,\n\t\t));\n\t\t$columns['slug'] = new \\Gino\\SlugField(array(\n\t\t\t'name' => 'slug',\n\t\t\t'unique_key' => true,\n\t\t\t'label' => array(_(\"Slug\"), _('utilizzato per creare un permalink alla risorsa')),\n\t\t\t'required' => true,\n\t\t\t'max_lenght' => 200,\n\t\t\t'autofill' => array('name'),\n\t\t));\n\t\t$columns['description'] = new \\Gino\\TextField(array(\n\t\t\t'name' => 'description',\n\t\t\t'label' => _(\"Descrizione\"),\n\t\t));\n\t\t\n\t\treturn $columns;\n\t}", "title": "" } ]
73903ecdd0e4fd664ef47f2d78375562
Gets a the prefix['name'] option and, if not set, returns the default value provided
[ { "docid": "f5521330bb1d34613140b026ddaa03f1", "score": "0.7389683", "text": "public static function get_option($prefix, $name, $default = null) {\n $prefixes = explode('[', $prefix);\n $firstPrefix = array_shift($prefixes);\n $options = get_option(trim($firstPrefix, ']'));\n while (!empty($prefixes)):\n $thePrefix = trim(array_shift($prefixes), ']');\n if (isset($options[$thePrefix])):\n $options = $options[$thePrefix];\n else:\n break;\n endif;\n endwhile;\n if (!isset($options[$name])):\n return $default;\n else:\n return $options[$name];\n endif;\n }", "title": "" } ]
[ { "docid": "7a7ff8f95ff79799efa48e72fcafd95f", "score": "0.7491426", "text": "public function getOptionPrefix();", "title": "" }, { "docid": "5bb63dea4c537e5325e0c271e8b7e6de", "score": "0.7327316", "text": "public static function adminHelper_get_option($prefix, $name, $default = null) {\n return self::get_option($prefix, $name, $default);\n }", "title": "" }, { "docid": "907cfceac61b180458cd02ca057b4aab", "score": "0.71973926", "text": "public function getOptionPrefix()\n {\n return $this->getValue(self::OPTION_PREFIX);\n }", "title": "" }, { "docid": "bd2d3ca5e2f6bedf3582282da0a5a26f", "score": "0.70032513", "text": "public function getOptionPrefix($option = '')\n {\n \n return isset($this->prefix_list[$option]) ? $this->prefix_list[$option] : '';\n }", "title": "" }, { "docid": "46241fdebf94739feb4168cfcd37b93f", "score": "0.69338405", "text": "protected function getPrefix() {\n\t\treturn !empty($this->request->params['prefix']) ? $this->request->params['prefix'] : null;\n\t}", "title": "" }, { "docid": "cef66c5e65641c7eb0a83593c1e29520", "score": "0.6780191", "text": "private function getPrefix(): string\n {\n if ($this->prefix === null) {\n $this->prefix = (string)$this->deploymentConfig->get(\n ConfigOptionsListConstants::CONFIG_PATH_DB_CONNECTION_DEFAULT\n . '/'\n . ConfigOptionsListConstants::KEY_NAME,\n ''\n );\n }\n\n return $this->prefix;\n }", "title": "" }, { "docid": "10e9a22d6c623c1365d1aad46c3e7e76", "score": "0.67102796", "text": "function get_ns_prefix()\n {\n return $this->get_default_property(self :: PROPERTY_NS_PREFIX);\n }", "title": "" }, { "docid": "b4f470a6237d22c85f4ea81438b7a3da", "score": "0.6638117", "text": "public function getConfigPrefix();", "title": "" }, { "docid": "3e6e82973b833dbc902f3eec4c473fb1", "score": "0.657717", "text": "public function getPrefix(): ?string\n {\n return $this->{self::PREFIX};\n }", "title": "" }, { "docid": "d5bc9f4f0a3d2b94e807d9c9e51e88b2", "score": "0.64553493", "text": "protected function getDefaultName()\n {\n return $this->defaultName;\n }", "title": "" }, { "docid": "3f3821efa6fbd1c1eb80345311f21376", "score": "0.64171124", "text": "public function getDefaultName()\n {\n return $this->name;\n }", "title": "" }, { "docid": "4fd7479607916cfe04647a2defb9d225", "score": "0.6405683", "text": "function pustaka_get_option( $name, $default = null ) {\n\treturn get_theme_mod( 'pustaka_' . $name, $default );\n}", "title": "" }, { "docid": "9a05a1646b0fa1435ee30b07cef22cb0", "score": "0.63760805", "text": "public function getDefaultName();", "title": "" }, { "docid": "1ca271c2756e2248cf20d37d979880ee", "score": "0.6370583", "text": "public function getPrefix(): string;", "title": "" }, { "docid": "d3ed572cae9ec4433a1a1ebbacc55bca", "score": "0.6369591", "text": "function get_option($name, $default = false) {\n\t\treturn get_option(Ekklesia_Importer::$prefix.$name, $default);\t\n\t}", "title": "" }, { "docid": "c5edf46c9416dfc48aed057ecd022195", "score": "0.6358337", "text": "public function get_name_prefix() {\n return $this->get_person_name_field( 'prefix' );\n }", "title": "" }, { "docid": "6049cb8ed76a2084c29b4a474a2aa6be", "score": "0.6351142", "text": "public function getPrefix();", "title": "" }, { "docid": "6049cb8ed76a2084c29b4a474a2aa6be", "score": "0.6351142", "text": "public function getPrefix();", "title": "" }, { "docid": "6049cb8ed76a2084c29b4a474a2aa6be", "score": "0.6351142", "text": "public function getPrefix();", "title": "" }, { "docid": "6049cb8ed76a2084c29b4a474a2aa6be", "score": "0.6351142", "text": "public function getPrefix();", "title": "" }, { "docid": "98a9dd5aff71ce2f98a30bf055ae00ac", "score": "0.63510287", "text": "public function get_option($name)\r\n {\r\n if ($name == 'number_padding_invoice_and_estimate') {\r\n $name = 'number_padding_prefixes';\r\n }\r\n\r\n $name = trim($name);\r\n\r\n if (isset($this->options[$name])) {\r\n if (in_array($name, $this->dynamic_options)) {\r\n $this->_instance->db->where('name', $name);\r\n return $this->_instance->db->get('tbloptions')->row()->value;\r\n } else {\r\n return $this->options[$name];\r\n }\r\n }\r\n return '';\r\n }", "title": "" }, { "docid": "bdb04f65b8488634198bfa8734c154db", "score": "0.633599", "text": "public function getPrefix() : string;", "title": "" }, { "docid": "540b3705cac3a692ad7d9a26e731b0f4", "score": "0.6327472", "text": "public function getPrefix(): string\n {\n return $this->prefix;\n }", "title": "" }, { "docid": "540b3705cac3a692ad7d9a26e731b0f4", "score": "0.6327472", "text": "public function getPrefix(): string\n {\n return $this->prefix;\n }", "title": "" }, { "docid": "ae916f130af353773ad64d3ebc6b6fbb", "score": "0.6326686", "text": "public function forPrefix(): ?string;", "title": "" }, { "docid": "cf7d897d5c02d08ed5c576b71309b4fe", "score": "0.6321455", "text": "protected function init_prefix()\r\n\t\t{ \r\n\t\t\treturn self::PREFIX; \r\n\t\t}", "title": "" }, { "docid": "05af5b2db33cd6d177acb6c7442b08f9", "score": "0.63083386", "text": "public function get($name, $default = null) {\n\t\treturn get_option($this->prefix.$name, $default);\n\t}", "title": "" }, { "docid": "612232f388a70690cbfa8cf9680622dc", "score": "0.6304292", "text": "public function get_prefix() {\n return $this->prefix;\n }", "title": "" }, { "docid": "638a267fe3f85fe67e89c1afa65c53ac", "score": "0.63034284", "text": "function acf_get_option_meta( $prefix = '' ) {\n}", "title": "" }, { "docid": "d10d938c1562b59fc8a2f773e2bdec19", "score": "0.6295072", "text": "public function get_prefix() : string {\n\t\t\treturn $this->prefix;\n\t\t}", "title": "" }, { "docid": "b427986ae5600108c48648af4863e70d", "score": "0.6274676", "text": "function get_opt ($name, $default = '')\n{\n static $options = null;\n\n if ($options === null) {\n $options = get_option (OPTIONS, array ());\n }\n return isset ($options[$name]) ? $options[$name] : $default;\n}", "title": "" }, { "docid": "521b75850c6cbcb6c2f9f49269dd1216", "score": "0.6245104", "text": "public function getDefaultParameterPrefix()\n {\n // TODO this should probably be stored per <search> element\n return 'search_';\n }", "title": "" }, { "docid": "90ca16cc66fa628a7305e8f1779316c7", "score": "0.6234627", "text": "function guest_name_prefix()\n{\n return get_option(\"GUEST_NAME_PREFIX\");\n}", "title": "" }, { "docid": "c8fd4a6b55082014152750d95eaf1a02", "score": "0.62252355", "text": "public function getPrefix() : string\n {\n return $this->prefix;\n }", "title": "" }, { "docid": "b584b598330bef644770cf0799e73be3", "score": "0.6217158", "text": "public function prefix()\n\t{\n\t\tif(isset($this->prefix))\n\t\t\treturn $this->prefix;\n\t\telse return \"\";\n\t}", "title": "" }, { "docid": "45fb69f84ff55294d3890b5dcfdaf97a", "score": "0.62017965", "text": "public function getPrefix()\n {\n return $this->prefix;\n }", "title": "" }, { "docid": "45fb69f84ff55294d3890b5dcfdaf97a", "score": "0.62017965", "text": "public function getPrefix()\n {\n return $this->prefix;\n }", "title": "" }, { "docid": "45fb69f84ff55294d3890b5dcfdaf97a", "score": "0.62017965", "text": "public function getPrefix()\n {\n return $this->prefix;\n }", "title": "" }, { "docid": "45fb69f84ff55294d3890b5dcfdaf97a", "score": "0.62017965", "text": "public function getPrefix()\n {\n return $this->prefix;\n }", "title": "" }, { "docid": "45fb69f84ff55294d3890b5dcfdaf97a", "score": "0.62017965", "text": "public function getPrefix()\n {\n return $this->prefix;\n }", "title": "" }, { "docid": "a8b4debe111c72b4f9c5cecd4f834276", "score": "0.6184327", "text": "public static function getPrefix(){\r\n\t\treturn self::$res->prefix;\r\n\t}", "title": "" }, { "docid": "3bfd750b8b10ae726e3c8418be908aa9", "score": "0.61688966", "text": "public function getPrefix() {\n return $this->prefix;\n }", "title": "" }, { "docid": "8be17ffde495b349173575936173c474", "score": "0.61545384", "text": "public function getPrefix()\n\t{\n\t\treturn $this->prefix;\n\t}", "title": "" }, { "docid": "9a5547f1ca6397b21317ce252b009acb", "score": "0.6133417", "text": "public function getPrefix()\r\n\t{\r\n\t\treturn $this->_prefix;\r\n\t}", "title": "" }, { "docid": "1f55ce1d2f1bb53cb1c1197ede4d0a38", "score": "0.6125736", "text": "function shGetComponentPrefix( $option) {\r\n\r\n if (empty($option)) return '';\r\n $sefConfig = shRouter::shGetConfig();\r\n $option = str_replace('com_', '', $option);\r\n $prefix = '';\r\n $prefix = empty($sefConfig->defaultComponentStringList[@$option]) ?\r\n\t\t'':$sefConfig->defaultComponentStringList[@$option];\r\n return $prefix;\r\n}", "title": "" }, { "docid": "8819b273dd599916e4690a27fbe21d0f", "score": "0.6102532", "text": "function get_option($name, $default=null) {\r\n if ($this->options == null) $this->options = get_option($this->uid, array());\r\n $value = $this->options[$name];\r\n return isset($value)?$value:$default;\r\n }", "title": "" }, { "docid": "c5254e8e31f6e605a112c219d0b84a7f", "score": "0.61016595", "text": "public function getPrefix() {\n return $this->_prefix;\n }", "title": "" }, { "docid": "48632d6ff8e9ca04b6797244c3b61688", "score": "0.60888416", "text": "public function getOption($name, $default = null);", "title": "" }, { "docid": "4bef2196f94be2e7d85a8baf26b797bd", "score": "0.60849273", "text": "function name() {\n return 'default';\n }", "title": "" }, { "docid": "ed76ef8ca6a3e9202b8b273103c80dcf", "score": "0.60675895", "text": "public function getPrefix()\n {\n return $this->prefix;\n }", "title": "" }, { "docid": "035114477b906c69386fefcfc58c9224", "score": "0.6063614", "text": "function getOption($name, $default = null)\n{\n global $autoload_options;\n\n // if (! $autoload_options) {\n // $autoload_options = \\App\\Models\\Option::where('autoload', 1)->get()->keyBy('name');\n // }\n\n if (isset($autoload_options[$name])) {\n if($autoload_options[$name]->value == \"\")\n return $default;\n return $autoload_options[$name]->value;\n } else {\n $option = \\App\\Models\\Option::getOption($name, $default);\n return $option;\n }\n}", "title": "" }, { "docid": "227f6fe2ea04577fb9c474ef687fc3ed", "score": "0.60602236", "text": "public function input_prefix($value = NULL)\n\t{\n\t\tif (func_num_args() !== 0)\n\t\t{\n\t\t\treturn $this->set('input_prefix', $value);\n\t\t}\n\n\t\treturn $this->input_prefix;\n\t}", "title": "" }, { "docid": "6286a9c1d22b1f4093512d5598086934", "score": "0.60578126", "text": "function get_name()\n {\n return $this->get_default_property(self :: PROPERTY_NAME);\n }", "title": "" }, { "docid": "5e7c09067bad4771280a01fa96ad9ece", "score": "0.6049098", "text": "public function getPrefix() {\n\t\treturn '';\n\t}", "title": "" }, { "docid": "d103a6bf94a58f4bf0a74951e4870fd7", "score": "0.60434705", "text": "function get_themeName_option( $key, $default = '' ) {\n\treturn apply_filters( 'theme_option', $default, $key );\n}", "title": "" }, { "docid": "e55f03eafc088fe3a4164fb8acc8749c", "score": "0.60305923", "text": "protected function getDefaultName()\n {\n return null;\n }", "title": "" }, { "docid": "95e2ecc822a52605de8289167d33023f", "score": "0.60038817", "text": "public function getDefaultName(): string\n {\n return self::$DEFAULT_NAME;\n }", "title": "" }, { "docid": "95e2ecc822a52605de8289167d33023f", "score": "0.60038817", "text": "public function getDefaultName(): string\n {\n return self::$DEFAULT_NAME;\n }", "title": "" }, { "docid": "36d4e64fb2ed61902149a471cca9df8d", "score": "0.5996222", "text": "function quest_get_default( $name ) {\n\t\tglobal $quest_defaults;\n\n\t\tif ( array_key_exists( $name, $quest_defaults ) ) {\n\t\t\treturn $quest_defaults[ $name ];\n\t\t}\n\n\t\treturn '';\n\t}", "title": "" }, { "docid": "511833d8026c5cd32fd10d8907fb863c", "score": "0.5959571", "text": "public function getParamPrefix(): string;", "title": "" }, { "docid": "8ef274f4a14e190d0f19f6fa4af2f36d", "score": "0.595637", "text": "public function get_option_default( $name ) {\n\t\tif ( ! isset( $this->config['fields'][ $name ] ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn isset( $this->config['fields'][ $name ]['default'] ) ? $this->config['fields'][ $name ]['default'] : false;\n\t}", "title": "" }, { "docid": "23dcf590bca0745bf2bb98cd78c8de96", "score": "0.595323", "text": "protected function getPrefix(): string\n {\n $config = SiteConfig::current_site_config();\n return (string)$config->EstimateNumberPrefix;\n }", "title": "" }, { "docid": "a42c1ab890e60bcecc8084621ed02bda", "score": "0.59381425", "text": "function get_default_property($name)\n {\n return $this->defaultProperties[$name];\n }", "title": "" }, { "docid": "270f3401277194aa0056119975b20428", "score": "0.5931655", "text": "function qed_get_option( $name, $id = null, $default = null ) {\r\n\t\t$option = ( $id ) ? $id:'';\r\n\t\tif ( get_field( $name, $option ) ) {\r\n\t\t\treturn get_field( $name, $option );\r\n\t\t} else {\r\n\t\t\treturn $default;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "231c5076212357dac83f27571e8130cd", "score": "0.5931479", "text": "function get_name()\n {\n return $this->get_default_property(self::PROPERTY_NAME);\n }", "title": "" }, { "docid": "ef484f84d05f094047007e80bbd8cf4d", "score": "0.59270954", "text": "protected function getPrefix() {\n\t\treturn DbCon::getInstance()->getPrefix();\n\t}", "title": "" }, { "docid": "45f598e4c4ca5bb6d0a679fd681a63cd", "score": "0.58983696", "text": "public function getSetting($name, $default = null) { }", "title": "" }, { "docid": "fabf44caf1aaed830b2abfac5a78b267", "score": "0.589216", "text": "public function getNationalPrefix(): ?string\n {\n return $this->get('dialling.national_prefix');\n }", "title": "" }, { "docid": "ec296eb0279269d67a865061bc8b08fe", "score": "0.58809537", "text": "public function getOptionNames($sPrefix)\n {\n \treturn Container::getInstance()->getConfig()->getOptionNames($sPrefix);\n }", "title": "" }, { "docid": "d9d74c0b630a726c9a6086159e4ab91b", "score": "0.5874324", "text": "function theme_get_option($name, $default = false) {\n\treturn of_get_option($name, $default);\n}", "title": "" }, { "docid": "acb2ff9947ec10cd1baaa5c87a980e11", "score": "0.5873519", "text": "public function getRestPrefix()\n {\n return $this->getValue(self::REST_PREFIX);\n }", "title": "" }, { "docid": "ee5ab27ca4573ce8141eb712656f8f77", "score": "0.5872101", "text": "protected function prefix()\n\t{\n\t\tif ($this->root)\n\t\t\treturn $this->root;\n\t\t\t\n\t\t$name = $this->name();\n\t\t\n\t\tif (!$name)\n\t\t\treturn null;\n\t\t\t\n\t\t$parts = explode(\".\", $name);\n\t\t\n\t\treturn $parts[0];\n\t}", "title": "" }, { "docid": "b10488ae8aac5e6db06bd6ef8578d8df", "score": "0.58699596", "text": "public function option($name, $default= NULL) {\n return isset($this->options[$name]) ? $this->options[$name] : $default;\n }", "title": "" }, { "docid": "91a82addf8388e8d7a694c47a425cc8c", "score": "0.58696884", "text": "public function getPrefix(): string\n {\n return $this->DBPrefix;\n }", "title": "" }, { "docid": "b6a08dc0577d20e5a43250479699cc25", "score": "0.5864564", "text": "static public function getPrefix() {\r\n\t\treturn O_Registry::get ( \"app/dao-params/table_prefix\" );\r\n\t}", "title": "" }, { "docid": "c784768ad33281439c014b391a83db27", "score": "0.58562535", "text": "public function getOptionName(): string\n {\n return $this->reflectionProperty->getName();\n }", "title": "" }, { "docid": "0d9f294b73a0809a6395ca22a18dd7bc", "score": "0.58532995", "text": "function jpid_get_option( $option_name, $default = false ) {\n return JPID()->option->get_option( $option_name, $default );\n}", "title": "" }, { "docid": "d9fd9972f8c73ce0d3a382a1696e6f4c", "score": "0.5852003", "text": "protected function _getCountryPrefix()\n {\n $storeId = $this->_helper->getCurrentStoreId();\n $countryCode = Mage::getStoreConfig('general/country/default', $storeId);\n return $countryCode.'::';\n }", "title": "" }, { "docid": "fdcbeb8c2fa60bb36b61b14331bc331f", "score": "0.5843301", "text": "public function prefix(): ?string\n {\n $prefix = config('short-url.prefix');\n\n if ($prefix === null) {\n return null;\n }\n\n return trim($prefix, '/');\n }", "title": "" }, { "docid": "d6a336c560c3965dfffac93739fee6f4", "score": "0.584262", "text": "function kfn_get_default_option( $option ) {\r\n\tglobal $kfn_options;\r\n\r\n\tif ( isset( $kfn_options ) && method_exists( $kfn_options, 'get_option') ) {\r\n\t\treturn $kfn_options->get_option( 'defaults' )[ $option ];\r\n\t}\r\n\r\n\treturn $option;\r\n}", "title": "" }, { "docid": "0aa6b493738815c2f9bd89c73d04cd8d", "score": "0.5840704", "text": "public function getBasePrefix(): string;", "title": "" }, { "docid": "14675dca4224f940b1fb4325a33f276d", "score": "0.5833894", "text": "function getCompoundOption($optionName,$default='') {\n if (!$this->set_Plugin()) { return; }\n $matches = array();\n if (preg_match('/^(.*?)\\[(.*?)\\]/',$optionName,$matches) === 1) {\n if (!isset($this->plugin->mapsettingsData[$matches[1]])) {\n $this->plugin->mapsettingsData[$matches[1]] = get_option($matches[1],$default);\n }\n return \n isset($this->plugin->mapsettingsData[$matches[1]][$matches[2]]) ?\n $this->plugin->mapsettingsData[$matches[1]][$matches[2]] :\n ''\n ;\n\n } else {\n return $this->plugin->helper->getData($optionName,'get_option',array($optionName,$default));\n //return get_option($optionName,$default);\n }\n }", "title": "" }, { "docid": "1b42813c041e4aa3088d46d436d5c947", "score": "0.58333766", "text": "public function getDefaultSuffix() : ?string;", "title": "" }, { "docid": "f127bb742015f58d2268505ea04d8649", "score": "0.581454", "text": "public function getOption($name, $default = null) {\n return isset($this->options[$name]) ? $this->options[$name] : $default;\n }", "title": "" }, { "docid": "e7491a2d69ec901645f10dd196b67c36", "score": "0.57998693", "text": "function prefix()\n {\n return $this->db_config['prefix'];\n }", "title": "" }, { "docid": "e7491a2d69ec901645f10dd196b67c36", "score": "0.57998693", "text": "function prefix()\n {\n return $this->db_config['prefix'];\n }", "title": "" }, { "docid": "9358e4d431fff9f4995b39312d70b360", "score": "0.5796168", "text": "public static function get_option_name( $suffix = '' ) {\n\t\t$option_name = $suffix ? PREFIX . $suffix : DOMAIN;\n\n\t\treturn (string) apply_filters( PREFIX . 'option_name', $option_name, $suffix );\n\t}", "title": "" }, { "docid": "83116b925afff1bc52a01e5762f9b19a", "score": "0.57961404", "text": "public function getDefault($name)\n {\n return $this->default[$name];\n }", "title": "" }, { "docid": "c2326ef659cc70a5b27ef0b8a34b1c42", "score": "0.57952505", "text": "public function getDefaultSubscriptionOption()\n {\n return $this->getData(self::DEFAULT_SUBSCRIPTION_OPTION);\n }", "title": "" }, { "docid": "5e83608e5dfe5203d20c60cbd53a23aa", "score": "0.5795227", "text": "public function getInternationalPrefix(): ?string\n {\n return $this->get('dialling.international_prefix');\n }", "title": "" }, { "docid": "617c244b94693c0356bf2024f60b433b", "score": "0.579269", "text": "public function getPrefix()\n {\n return $this->store->getPrefix();\n }", "title": "" }, { "docid": "617c244b94693c0356bf2024f60b433b", "score": "0.579269", "text": "public function getPrefix()\n {\n return $this->store->getPrefix();\n }", "title": "" }, { "docid": "4c6ac07905944c07b67d679fabe6d33e", "score": "0.5785091", "text": "function get_prefix($name)\n{\n\tglobal $prefix;\n\t\n\t$p = '';\n\t\n\tif (preg_match('/(?<prefix>(.*)[\\/|#])(?<local>[A-Za-z_\\.]+)$/', $name, $matches))\n\t{\n\t\t//print_r($matches);\n\t\t\n\t\t$p = $matches['prefix'];\n\t}\n\t\n\t\n\treturn $p;\n}", "title": "" }, { "docid": "375fb217f5ea161c0ac5a5a954910684", "score": "0.578267", "text": "private function cssOptionalNamespacePrefix() {\n\t\tif ( !isset( $this->cache[__METHOD__] ) ) {\n\t\t\t$this->cache[__METHOD__] = Quantifier::optional( $this->cssNamespacePrefix() );\n\t\t\t$this->cache[__METHOD__]->setDefaultOptions( [ 'skip-whitespace' => false ] );\n\t\t}\n\t\treturn $this->cache[__METHOD__];\n\t}", "title": "" }, { "docid": "f94e1b0cf44d0fc7992503138cc4d9d1", "score": "0.5776281", "text": "public function getCommandPrefix()\n {\n if (isset($this->commands['prefix']) === false) {\n return '';\n }\n\n return (string)$this->commands['prefix'].' ';\n }", "title": "" }, { "docid": "fc95c5d020a83805b1cd927036ea4b67", "score": "0.5765244", "text": "public function getConfigName();", "title": "" }, { "docid": "3a73b3ac4d6556461e8ff5f295de9d93", "score": "0.5764602", "text": "public function &getPrefix() {\n return $this->prefix;\n }", "title": "" }, { "docid": "9c926e9cdcd215273dc3af7394a55866", "score": "0.57630086", "text": "public function getOption($option, $default = false){\n $option = $this->prefix(str_replace('-', '_', sanitize_title_with_dashes($option)));\n\n return get_option($option, $default);\n }", "title": "" }, { "docid": "f33a5b573873c0a9d2680dfa25497a6f", "score": "0.5754468", "text": "public function GetGlobalOption( $option, $default = false, $prefix = '' ) {\n\t\t return $this->GetGlobalSetting( $option, $default );\n\t\t}", "title": "" }, { "docid": "1743552c01e80503fae93a71bd447327", "score": "0.5744138", "text": "public function getPrefix()\n {\n return $this->getTaggedStore()->getPrefix();\n }", "title": "" } ]
cef394f3dc153dc9605d72160a144db1
Restrict Access To Page: Grant or deny access to this page
[ { "docid": "6716fa05b6a63e42ff1db9462a5cd5c9", "score": "0.0", "text": "function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup)\n{\n // For security, start by assuming the visitor is NOT authorized. \n $isValid = False;\n // When a visitor has logged into this site, the Session variable MM_Username set equal to their username. \n // Therefore, we know that a user is NOT logged in if that Session variable is blank. \n if (!empty($UserName)) {\n // Besides being logged in, you may restrict access to only certain users based on an ID established when they login. \n // Parse the strings into arrays. \n $arrUsers = Explode(\",\", $strUsers);\n $arrGroups = Explode(\",\", $strGroups);\n if (in_array($UserName, $arrUsers)) {\n $isValid = true;\n }\n // Or, you may restrict access to only certain users based on their username. \n if (in_array($UserGroup, $arrGroups)) {\n $isValid = true;\n }\n if (($strUsers == \"\") && true) {\n $isValid = true;\n }\n }\n return $isValid;\n}", "title": "" } ]
[ { "docid": "bbb73cb045c68c6337a828bfb4765774", "score": "0.74691504", "text": "public function checkPageAccess()\n {\n if (($this->_isBlockablePage()) && !Mage::helper('privatesales')->canShowAnything() ||\n ($this->_isCmsPage() && !Mage::helper('privatesales')->canShowCmsPage()) ||\n ($this->_isCatalogPage() && !Mage::helper('privatesales')->canShowCatalogPage()))\n {\n $this->_loginRedirect();\n }\n }", "title": "" }, { "docid": "bcd5418c73e1e010e2cbfc10759d93b0", "score": "0.7231885", "text": "protected function pageAccessForbiddenHandler() {\n\t\t$this->redirectToLoginPage();\n\t\t$header = $this->frontendController->TYPO3_CONF_VARS['FE']['pageForbidden_handling_statheader'];\n\t\t$this->frontendController->pageErrorHandler($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['linktypeswitch']['pageForbidden_handling'], $header, 'The requested page was not accessible!');\n\t}", "title": "" }, { "docid": "754478f9d96ac17280655c92348ba26e", "score": "0.7198275", "text": "protected function restrictAccess()\n {\n if (!$this->isAdminUser()) {\n $this->isRestricted = true;\n $this->filterByUser();\n }\n }", "title": "" }, { "docid": "90315a163f84b9464d792d71812abe5e", "score": "0.69502217", "text": "function deny()\r\n\t{\r\n\t\t$data = null;\r\n\t\t$this->template->write('title', 'You cannot access this page');\r\n\t\t$this->template->write_view('content', 'users/deny', $data, true);\r\n\t\t$this->template->render();\t\t\t\r\n\t\r\n\t}", "title": "" }, { "docid": "0525ba5039913a3b6ab7e386e2acd68e", "score": "0.6858227", "text": "public function restrictAdmin()\n {\n $permission = $this->session->readWithParam('auth', 'permission');\n if ($permission === 'user') {\n $this->session->setFlash('danger', $this->options['restriction_msg']);\n App::redirect('News');\n }\n }", "title": "" }, { "docid": "3979296dceaab7b1f64322864cbbc836", "score": "0.68248224", "text": "protected function restrict() {\n $this->restrict_to_permission('block_users');\n }", "title": "" }, { "docid": "371c82a0d2330cb77ddbee2ca38738bd", "score": "0.6774326", "text": "function admEnforceAccess()\n{\n if( !admCheckAccess() ) {\n // no access. stop right now.\n\n // should print error message, but hey. let's just dump back to homepage\n header('HTTP/1.0 403 Forbidden');\n print(\"not logged in.\");\n exit;\n }\n}", "title": "" }, { "docid": "356e935d380aadd62e7e91d464f45147", "score": "0.6757341", "text": "public function deny();", "title": "" }, { "docid": "d9c913b1088255c9aa9d7a4bebc4fbe2", "score": "0.67143327", "text": "function deny_access(){\n\t\theader('HTTP/1.0 403 Forbidden');\n\t\tdie();\n\t}", "title": "" }, { "docid": "16ad49bc96026bf9e797a59e93e8fd97", "score": "0.6702251", "text": "public function set_page_access()\n {\n // Delete to cleanup\n $zone = post_param_string('zone');\n $GLOBALS['SITE_DB']->query('DELETE FROM ' . $GLOBALS['SITE_DB']->get_table_prefix() . 'group_page_access WHERE page_name NOT LIKE \\'' . db_encode_like('%:%') . '\\' AND ' . db_string_equal_to('zone_name', $zone));\n\n $groups = $GLOBALS['FORUM_DRIVER']->get_usergroup_list(false, true);\n $admin_groups = $GLOBALS['FORUM_DRIVER']->get_super_admin_groups();\n $zones = array($zone);\n foreach ($zones as $zone) {\n $pages = find_all_pages_wrap($zone);\n\n foreach (array_keys($pages) as $page) {\n foreach (array_keys($groups) as $id) {\n if (in_array($id, $admin_groups)) {\n continue;\n }\n\n $val = post_param_integer('p_' . $zone . '__' . $page . '__' . strval($id), 0);\n\n if ($val == 0) { // If we're denied permission, we make an entry (we store whether DENIED)\n $GLOBALS['SITE_DB']->query_insert('group_page_access', array('zone_name' => $zone, 'page_name' => $page, 'group_id' => $id));\n }\n }\n }\n }\n\n decache('menu');\n require_code('caches3');\n erase_block_cache();\n erase_persistent_cache();\n\n log_it('PAGE_ACCESS');\n\n // Show it worked / Refresh\n $url = build_url(array('page' => '_SELF', 'type' => 'page'), '_SELF');\n return redirect_screen($this->title, $url, do_lang_tempcode('SUCCESS'));\n }", "title": "" }, { "docid": "439a4dfc2b5feeb66d3f690f8676b1a4", "score": "0.66154474", "text": "public function restrict() {\n if (!$this->is_logged_in()) {\n redirect('login');\n }\n }", "title": "" }, { "docid": "535c43c84416d3b87e445763ee8bd3d5", "score": "0.6588374", "text": "public function authorize()\n {\n return \\Gate::allows('view-admin-pages');\n }", "title": "" }, { "docid": "a606bee472ca0cf4e831537bc2c69449", "score": "0.6579126", "text": "public function authorize()\n {\n\n // return false; -> no one can access it\n return true;\n }", "title": "" }, { "docid": "eb409d1c7ed30de3aa0c31c7fc0a6926", "score": "0.65372586", "text": "function restrictAccess ($access) {\t\r\n session_start();\r\n $currentAccess = $_SESSION['SESS_TYPE'];\r\n if($currentAccess == 1) $i = 0;\r\n elseif($currentAccess == 200) $i = 1;\r\n elseif($currentAccess == 300) $i = 2;\r\n elseif($currentAccess == 400) $i = 3;\r\n else header(\"Location: memberProfileView.php\");;\r\n if(!intval(substr($access, $i, 1))) header(\"Location: memberProfileView.php\");\r\n}", "title": "" }, { "docid": "30ffc1a2bda145bfc75771c8457cbaf6", "score": "0.6524905", "text": "function userpro_global_page_restrict($content){\n\t\tglobal $post;\n\t\t$restrict = (array)userpro_get_option('userpro_restricted_pages');\n\t\tif (isset($post->ID) && in_array($post->ID, $restrict)){\n\t\t\t\n\t\t\tif (userpro_get_option('restricted_page_verified') == 1) {\n\t\t\t\t$shortcode = '[userpro_private restrict_to_verified=1]'.$content.'[/userpro_private]';\n\t\t\t} else {\n\t\t\t\t$shortcode = '[userpro_private]'.$content.'[/userpro_private]';\n\t\t\t}\n\t\t\t\n\t\t\t// Locked page\n\t\t\t$content = do_shortcode($shortcode);\n\t\t\t\n\t\t}\n\t\treturn $content;\n\t}", "title": "" }, { "docid": "adb77d78074d851d8ba91a1f2ad98e63", "score": "0.651049", "text": "function can_access_page() {\n\t$CI = & get_instance();\n\n\tif($CI->session->userdata('admin') == 1) {\n\t\treturn true;\n\t}\n\telse {\n\t$exclude_pages = array(\"dashboard-index\", \"profile-index\", 'leads-view_single_lead');\n\t$user_caps = array();\n\t$all_caps = user_page_capabilities();\n\n\t$controller_name = $CI->uri->segment(1);\n\n\t$method_name = $CI->uri->segment(2);\n\n\tif(!$method_name) {\n\t\t$method_name = \"index\";\n\t}\n\t$page = $controller_name.\"-\".$method_name;\n\tif(in_array($page, $exclude_pages)) {\n\t\treturn true;\n\t}\n\telse {\n\t\t$current_page_cap = $all_caps[$page];\n\n\t\t$role = $CI->session->userdata('admin');\n\t\t$user_caps = get_capabilities($role);\n\t\tif($user_caps) {\n\t\t\tif(in_array($current_page_cap, $user_caps)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}\n\t//exit;\n\t}\n}", "title": "" }, { "docid": "88eae808d3a778729fea855314d0d18b", "score": "0.64893657", "text": "private function isRestricted() {\r\n\r\n if ( !empty($_SESSION['ssbidbuy']['restricted']) || !empty($_SESSION['ssbidbuy']['level_disabled']) ) :\r\n header('Location: '. URL::get_site_url() . '/userDisable');\r\n exit();\r\n endif;\r\n\r\n }", "title": "" }, { "docid": "8a2de0f6c9ddd1eb935d86106e2619bc", "score": "0.6452416", "text": "public function limitedAccess(){\r\n\t}", "title": "" }, { "docid": "f15bc31ddc74f0255f015765c3cc2d85", "score": "0.64450616", "text": "public function access() {\n $site_api_key = $this->routeMatch->getParameter('site_api_key');\n $node_id = $this->routeMatch->getParameter('node_id');\n $values = [\n 'type' => 'page',\n 'nid' => $node_id,\n ];\n // Get the node data.\n $node_load = $this->entityTypeManager->getStorage('node')->loadByProperties($values);\n $config_site_api_key = $this->configFactory->getEditable('axelerant_coding_test.settings')->get('siteapikey');\n if ($config_site_api_key != $site_api_key || empty($node_load) || $config_site_api_key == \"No API Key yet\") {\n return AccessResult::forbidden();\n }\n return AccessResult::allowed();\n }", "title": "" }, { "docid": "68c30d7760786cdc322444daad26e0d4", "score": "0.6443075", "text": "public function non_admin_users_cannot_visit_the_admin_news_page()\n {\n // Permite obtener más detalles al correr las pruebas\n // $this->withoutExceptionHandling();\n \n $this->actingAs($this->createOperator())\n ->get(route('admin.admin_news_page'))\n // Indica que la ruta está prohibida. La ruta puede existir y uno está conectado, pero no tiene permiso para verla\n ->assertStatus(403);\n }", "title": "" }, { "docid": "30e74717b86ffd409e009d19ec255fe8", "score": "0.64395046", "text": "protected function _isAllowed()\n {\n return true;\n }", "title": "" }, { "docid": "30e74717b86ffd409e009d19ec255fe8", "score": "0.64395046", "text": "protected function _isAllowed()\n {\n return true;\n }", "title": "" }, { "docid": "30e74717b86ffd409e009d19ec255fe8", "score": "0.64395046", "text": "protected function _isAllowed()\n {\n return true;\n }", "title": "" }, { "docid": "30e74717b86ffd409e009d19ec255fe8", "score": "0.64395046", "text": "protected function _isAllowed()\n {\n return true;\n }", "title": "" }, { "docid": "30e74717b86ffd409e009d19ec255fe8", "score": "0.64395046", "text": "protected function _isAllowed()\n {\n return true;\n }", "title": "" }, { "docid": "f7bf897548dc0c444c58726a3e3ce0bb", "score": "0.6435161", "text": "public function requireAccessAction() {\r\n parent::requireaccessAction();\r\n }", "title": "" }, { "docid": "7b1d284c7eddc8006b8a702a7da9b8d8", "score": "0.6412169", "text": "function AdministratorsOnly() {\n\t\tglobal $tc_db, $smarty, $tpl_page;\n\t\t\n\t\tif (!$this->CurrentUserIsAdministrator()) {\n\t\t\texitWithErrorPage('That page is for admins only.');\n\t\t}\n\t}", "title": "" }, { "docid": "cdb65ef116f8ebf9858a3b57837d0a48", "score": "0.63990533", "text": "public function access_denied() {\r\n }", "title": "" }, { "docid": "9580e37d496c29d03b7f2ae35a960940", "score": "0.63687724", "text": "function authorised($page)\n {\n //if the page is viewable by anyone, or if a super admin user is signed in, then the page is authorised to be viewed\n if ($page[\"anonymousUser\"]||super_admin())\n return 1;\n else\n if ($page[$_SESSION[\"user\"][\"userType\"].\"User\"])\n return 1;\n else\n return 0; \n }", "title": "" }, { "docid": "cb9acb9bc80376b530ae28b09c3356d2", "score": "0.63683414", "text": "protected function policyAllow()\n {\n return true;\n }", "title": "" }, { "docid": "66a7f363783bee6b7810613f537c8a9f", "score": "0.6343121", "text": "protected function _isAllowed()\n {\n //return $this->_authorization->isAllowed('Tutorial_SimpleNews::manage_news');\n }", "title": "" }, { "docid": "5895ccb73e37750e800d2dd497a5dff3", "score": "0.6342568", "text": "protected function access_only_allowed_members() {\n if ($this->access_type == \"all\") {\n return true; \n } else if ($this->module_group === \"hr\" && $this->access_type === \"supper\") {\n return true;\n } else {\n redirect(\"forbidden\");\n }\n }", "title": "" }, { "docid": "831bc6a0e038c937cf1ee994cb1ef5d2", "score": "0.6333429", "text": "function requireAccessLevel( $reqAccess, $access, $redirect ){\n\t\t$isIndex = basename($_SERVER['PHP_SELF']) == 'index.php';\n\t\tif($access < $reqAccess && !$isIndex){ \n\t\t\techo \"<script>window.location = '$redirect';</script>\";\n\t\t}\n\t\treturn $access;\n\t}", "title": "" }, { "docid": "18e9c3f937015ba41ad415b5e7554d34", "score": "0.6327736", "text": "public function reject() {\n $cpress = $this->getUser()->getObject(aam_Control_Object_ConfigPress::UID);\n if (is_admin()) {\n $redirect = $cpress->getParam('backend.access.deny.redirect');\n $message = $cpress->getParam(\n 'backend.access.deny.message', __('Access denied', 'aam')\n );\n } else {\n $redirect = $cpress->getParam('frontend.access.deny.redirect');\n $message = $cpress->getParam(\n 'frontend.access.deny.message', __('Access denied', 'aam')\n );\n }\n\n if (filter_var($redirect, FILTER_VALIDATE_URL)) {\n wp_redirect($redirect);\n exit;\n } elseif (is_int($redirect)) {\n wp_redirect(get_post_permalink($redirect));\n exit;\n } else {\n wp_die($message);\n }\n }", "title": "" }, { "docid": "b5e60baa1d7dde2afd017f30351cbdbb", "score": "0.6311728", "text": "public function forbidden()\n {\n $$this->router->runHttpErrorPage(403);\n }", "title": "" }, { "docid": "fef55db83bb8b737f8bc3a0fb7930c64", "score": "0.62403744", "text": "function is_authorized_page($block_designation_id,$page_name)\n{\n\t$exclude_pages = array('home','unauthorized_request');\n\tif(in_array($page_name, $exclude_pages))\n\t{\n\t\treturn true;\n\t}\n\tif($block_designation_id!=''&&$page_name!='')\n\t{\n\t\t$ci = & get_instance();\n\t\t$ci->db->from('block_designation_page bdp');\n\t\t$ci->db->join('page p','p.page_id = bdp.page_id','inner');\n\t\t$ci->db->where('bdp.block_designation_id',$block_designation_id);\n\t\t$ci->db->where('p.name',$page_name);\n\t\t$res = $ci->db->get();\n\t\treturn ($res->num_rows()>0)?true:false;\n\t}\n}", "title": "" }, { "docid": "7f110cc8ef1bd1d6d8962f4263ef8126", "score": "0.6228432", "text": "function AllowAnonymousUser() {\n\t\tswitch (@$this->PageID) {\n\t\t\tcase \"add\":\n\t\t\tcase \"register\":\n\t\t\tcase \"addopt\":\n\t\t\t\treturn FALSE;\n\t\t\tcase \"edit\":\n\t\t\tcase \"update\":\n\t\t\tcase \"changepwd\":\n\t\t\tcase \"forgotpwd\":\n\t\t\t\treturn FALSE;\n\t\t\tcase \"delete\":\n\t\t\t\treturn FALSE;\n\t\t\tcase \"view\":\n\t\t\t\treturn FALSE;\n\t\t\tcase \"search\":\n\t\t\t\treturn FALSE;\n\t\t\tdefault:\n\t\t\t\treturn FALSE;\n\t\t}\n\t}", "title": "" }, { "docid": "7f110cc8ef1bd1d6d8962f4263ef8126", "score": "0.6228432", "text": "function AllowAnonymousUser() {\n\t\tswitch (@$this->PageID) {\n\t\t\tcase \"add\":\n\t\t\tcase \"register\":\n\t\t\tcase \"addopt\":\n\t\t\t\treturn FALSE;\n\t\t\tcase \"edit\":\n\t\t\tcase \"update\":\n\t\t\tcase \"changepwd\":\n\t\t\tcase \"forgotpwd\":\n\t\t\t\treturn FALSE;\n\t\t\tcase \"delete\":\n\t\t\t\treturn FALSE;\n\t\t\tcase \"view\":\n\t\t\t\treturn FALSE;\n\t\t\tcase \"search\":\n\t\t\t\treturn FALSE;\n\t\t\tdefault:\n\t\t\t\treturn FALSE;\n\t\t}\n\t}", "title": "" }, { "docid": "7f110cc8ef1bd1d6d8962f4263ef8126", "score": "0.6228432", "text": "function AllowAnonymousUser() {\n\t\tswitch (@$this->PageID) {\n\t\t\tcase \"add\":\n\t\t\tcase \"register\":\n\t\t\tcase \"addopt\":\n\t\t\t\treturn FALSE;\n\t\t\tcase \"edit\":\n\t\t\tcase \"update\":\n\t\t\tcase \"changepwd\":\n\t\t\tcase \"forgotpwd\":\n\t\t\t\treturn FALSE;\n\t\t\tcase \"delete\":\n\t\t\t\treturn FALSE;\n\t\t\tcase \"view\":\n\t\t\t\treturn FALSE;\n\t\t\tcase \"search\":\n\t\t\t\treturn FALSE;\n\t\t\tdefault:\n\t\t\t\treturn FALSE;\n\t\t}\n\t}", "title": "" }, { "docid": "edf3606aa6e2f6cfee51fc2b7050e7c2", "score": "0.6216793", "text": "function user_restrict_to_moderators() : void\n{\n // Fetch the user's language\n $lang = user_get_language();\n\n // Prepare the error message that will be displayed\n $error_message = ($lang === 'EN') ? \"This page is restricted to website staff only.\" : \"Cette page est réservée aux équipes d'administration du site.\";\n\n // Check if the user is logged in\n if(user_is_logged_in())\n {\n // Check if the user has global moderator rights\n if(!user_is_moderator($_SESSION['user_id']))\n error_page($error_message);\n }\n // If the user is logged out, throw the error\n else\n error_page($error_message);\n}", "title": "" }, { "docid": "6908b879d28fb338bed25ea56f736c91", "score": "0.6210683", "text": "public function setForbidden()\n {\n $this->_helper->layout->disableLayout();\n $this->_helper->viewRenderer->setNoRender(TRUE);\n $this->getResponse()->setHttpResponseCode(403);\n }", "title": "" }, { "docid": "c5248820c6a628462e306bcfd6b04965", "score": "0.6207796", "text": "private function access_allowed( $page, $type )\n\t{\n\t\t$user = User::identify();\n\t\t$require_any = array();\n\t\t$result = false;\n\n\t\tswitch ( $page ) {\n\t\t\tcase 'comment':\n\t\t\tcase 'comments':\n\t\t\tcase 'ajax_comments':\n\t\t\tcase 'ajax_in_edit':\n\t\t\tcase 'ajax_update_comment':\n\t\t\t\t$require_any = array( 'manage_all_comments' => true, 'manage_own_post_comments' => true );\n\t\t\t\tbreak;\n\n\t\t\tcase 'tags':\n\t\t\tcase 'ajax_tags':\n\t\t\tcase 'ajax_get_tags':\n\t\t\t\t$require_any = array( 'manage_tags' => true );\n\t\t\t\tbreak;\n\t\t\tcase 'options':\n\t\t\t\t$require_any = array( 'manage_options' => true );\n\t\t\t\tbreak;\n\t\t\tcase 'themes':\n\t\t\t\t$require_any = array( 'manage_themes' => true, 'manage_theme_config' => true );\n\t\t\t\tbreak;\n\t\t\tcase 'activate_theme':\n\t\t\t\t$require_any = array( 'manage_themes' => true );\n\t\t\t\tbreak;\n\t\t\tcase 'preview_theme':\n\t\t\t\t$require_any = array( 'manage_themes' => true );\n\t\t\t\tbreak;\n\t\t\tcase 'plugins':\n\t\t\t\t$require_any = array( 'manage_plugins' => true, 'manage_plugins_config' => true );\n\t\t\t\tbreak;\n\t\t\tcase 'plugin_toggle':\n\t\t\t\t$require_any = array( 'manage_plugins' => true );\n\t\t\t\tbreak;\n\t\t\tcase 'import':\n\t\t\t\t$require_any = array( 'manage_import' => true );\n\t\t\t\tbreak;\n\t\t\tcase 'users':\n\t\t\tcase 'ajax_update_users':\n\t\t\tcase 'ajax_users':\n\t\t\t\t$require_any = array( 'manage_users' => true );\n\t\t\t\tbreak;\n\t\t\tcase 'user':\n\t\t\t\t$require_any = array( 'manage_users' => true, 'manage_self' => true );\n\t\t\t\tbreak;\n\t\t\tcase 'groups':\n\t\t\tcase 'group':\n\t\t\tcase 'ajax_update_groups':\n\t\t\tcase 'ajax_groups':\n\t\t\t\t$require_any = array( 'manage_groups' => true );\n\t\t\t\tbreak;\n\t\t\tcase 'logs':\n\t\t\tcase 'ajax_delete_logs':\n\t\t\tcase 'ajax_logs':\n\t\t\t\t$require_any = array( 'manage_logs' => true );\n\t\t\t\tbreak;\n\t\t\tcase 'publish':\n\t\t\tcase 'ajax_media':\n\t\t\tcase 'ajax_media_panel':\n\t\t\tcase 'ajax_media_upload':\n\t\t\t\t$type = Post::type_name( $type );\n\t\t\t\t$require_any = array(\n\t\t\t\t\t'post_any' => array( ACL::get_bitmask( 'create' ), ACL::get_bitmask( 'edit' ) ),\n\t\t\t\t\t'post_' . $type => array( ACL::get_bitmask( 'create' ), ACL::get_bitmask( 'edit' ) ),\n\t\t\t\t\t'own_posts' => array( ACL::get_bitmask( 'create' ), ACL::get_bitmask( 'edit' ) ),\n\t\t\t\t);\n\t\t\t\tbreak;\n\t\t\tcase 'delete_post':\n\t\t\t\t$type = Post::type_name( $type );\n\t\t\t\t$require_any = array(\n\t\t\t\t\t'post_any' => ACL::get_bitmask( 'delete' ),\n\t\t\t\t\t'post_' . $type => ACL::get_bitmask( 'delete' ),\n\t\t\t\t\t'own_posts' => ACL::get_bitmask( 'delete' ),\n\t\t\t\t);\n\t\t\t\tbreak;\n\t\t\tcase 'posts':\n\t\t\tcase 'ajax_posts':\n\t\t\tcase 'ajax_update_posts':\n\t\t\t\t$require_any = array(\n\t\t\t\t\t'post_any' => array( ACL::get_bitmask( 'delete' ), ACL::get_bitmask( 'edit' ) ),\n\t\t\t\t\t'own_posts' => array( ACL::get_bitmask( 'delete' ), ACL::get_bitmask( 'edit' ) ),\n\t\t\t\t);\n\t\t\t\tforeach ( Post::list_active_post_types() as $type => $type_id ) {\n\t\t\t\t\t$require_any['post_' . $type] = array( ACL::get_bitmask( 'delete' ), ACL::get_bitmask( 'edit' ) );\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'sysinfo':\n\t\t\t\t$require_any = array( 'super_user' => true );\n\t\t\t\tbreak;\n\t\t\tcase 'dashboard':\n\t\t\tcase 'ajax_dashboard':\n\t\t\t\t$result = true;\n\t\t\t\tbreak;\n\t\t\tcase 'ajax_add_block':\n\t\t\t\t$result = true;\n\t\t\t\tbreak;\n\t\t\tcase 'ajax_delete_block':\n\t\t\t\t$result = true;\n\t\t\t\tbreak;\n\t\t\tcase 'configure_block':\n\t\t\t\t$result = true;\n\t\t\t\tbreak;\n\t\t\tcase 'ajax_save_areas':\n\t\t\t\t$result = true;\n\t\t\t\tbreak;\n\t\t\tcase 'locale':\n\t\t\t\t$result = true;\n\t\t\t\tbreak;\n\t\t\tcase 'admin_ajax':\n\t\t\t\t$result = true;\n\t\t\t\tbreak;\n\t\t\tcase 'ajax_facets':\n\t\t\t\t$result = true;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\n\t\t$require_any = Plugins::filter( 'admin_access_tokens', $require_any, $page, $type );\n\n\n\t\tforeach ( $require_any as $token => $access ) {\n\t\t\t$access = Utils::single_array( $access );\n\t\t\tforeach ( $access as $mask ) {\n\t\t\t\tif ( is_bool( $mask ) && $user->can( $token ) ) {\n\t\t\t\t\t$result = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telseif ( $user->can( $token, $mask ) ) {\n\t\t\t\t\t$result = true;\n\t\t\t\t\tbreak 2;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$result = Plugins::filter( 'admin_access', $result, $page, $type );\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "3c62fb31666789842e8e325840c6c198", "score": "0.620004", "text": "abstract public function url_authorize();", "title": "" }, { "docid": "c79f1a14d0a48ef52656fcb580d1e9aa", "score": "0.61996627", "text": "public function authorize()\n {\n abort_if(Gate::denies('contract_details_edit'), Response::HTTP_FORBIDDEN, '403 Forbidden');\n return true;\n }", "title": "" }, { "docid": "772cb63f3a1ec8a7d1f23161412e0149", "score": "0.61954635", "text": "public function display_permission_denied(Page $page) {\n\t\theader(\"HTTP/1.0 403 Permission Denied\");\n\t\t$this->display_error($page, \"Permission Denied\", \"You do not have permission to access this page\");\n\t}", "title": "" }, { "docid": "9abee59dc81d0105a489f32ca9826afd", "score": "0.6193723", "text": "protected function permission_checker() {\r\n if (!isset($_SESSION['id'])) {\r\n // Then we need to redirect user to login page\r\n self::redirect(LANDING_PAGE);\r\n }\r\n }", "title": "" }, { "docid": "f6b2a05eb056e33af2086284772bd0cb", "score": "0.61907554", "text": "private function _isBlockablePage()\n {\n return !(\n (Mage::getSingleton('admin/session')->isLoggedIn()) ||\n (self::$m==Mage::helper('privatesales')->getAdminPath()) ||\n (self::$m=='api') ||\n (self::$m=='customer' && self::$c=='account') ||\n $this->_isWhitelistedPage()\n );\n }", "title": "" }, { "docid": "3d608e2b129cf889b9b975923e636a10", "score": "0.61887", "text": "public static function applySecurity()\n {\n /**\n * @var MembershipUser\n */\n $user = self::getUser();\n $allow = self::getPermissionSet()->resolve($user);\n \n if ($allow == Permission::PERMISSION_DENY)\n {\n FormsAuthentication::redirectToLoginPage(HttpContext::getInfo()->getRequestUri());\n }\n }", "title": "" }, { "docid": "1e1b2a76eb59669fb737a94da97612fe", "score": "0.6187797", "text": "public function setPagePermit($value='') {\r\n\r\n // if( !empty($this->me['permission']) ){\r\n\r\n // foreach ($permit as $key => $value) {\r\n \r\n // if( !empty($this->me['permission'][ $key ]) ){\r\n // $permit[$key] = array_merge($value, $this->me['permission'][ $key ]);\r\n // }\r\n // }\r\n\r\n // }\r\n\r\n $permit = $this->model->query('system')->permit( !empty($this->me['access']) ? $this->me['access']: array() );\r\n if( !empty($this->me[\"permission\"]) ){\r\n foreach ($this->me[\"permission\"] as $key => $value) {\r\n $permit[$key] = $value;\r\n }\r\n }\r\n\r\n if( !empty($this->me['username']) ){\r\n if( $this->me['username']=='admin' ){\r\n // print_r($permit); die;\r\n }\r\n }\r\n \r\n $this->permit = $permit;\r\n $this->view->setData('permit', $this->permit);\r\n // print_r($this->permit); die;\r\n }", "title": "" }, { "docid": "e0ed3da23265adcc3ee620738228971b", "score": "0.6186409", "text": "protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('oyst/oyst_oneclick/actions');\n }", "title": "" }, { "docid": "d590b1d9508a49b78a0d0e2dec9a5ae1", "score": "0.61807865", "text": "public function privacy_policy()\n\t{\n\t\t$data[\"page\"] = \"Page123\";\n\t\t$this->load->view($this->_privacy_policy,$data);\n\t}", "title": "" }, { "docid": "804e90c5e9121b2a90e0866962f77139", "score": "0.617801", "text": "public function requireOwner()\n\t{\n\t\tif(!hasPermission(\"view\", \"admin\"))\n\t\t{\n\t\t\t$this->view($this->box(\"Access denied\", \"You do not have permission to access this page.\"));\n\t\t}\n\t}", "title": "" }, { "docid": "fef08e1d49488885d944c24600eb5450", "score": "0.6176834", "text": "public function allow();", "title": "" }, { "docid": "fa93dbdc1a60e96a8768b1b1ba233cbf", "score": "0.61598384", "text": "function DenyAccess()\n\t{\n\t\tif (!isset($GLOBALS['ErrorMessage'])) {\n\t\t\t$GLOBALS['ErrorMessage'] = GetLang('NoAccess');\n\t\t}\n\n\t\t$this->ParseTemplate('AccessDenied');\n\t\t$this->PrintFooter();\n\t\texit();\n\t}", "title": "" }, { "docid": "415147c08656c83854f37d0a7222b5d2", "score": "0.6137088", "text": "public function authorize()\n {\n return AccessController::isWebmaster(LoginController::currentUser());\n }", "title": "" }, { "docid": "af36f7cb2f9f8b8d28a437170c4b971c", "score": "0.61273897", "text": "function user_restrict_to_banned() : void\n{\n // Fetch the path to the website's root\n $path = root_path();\n\n // Check if the user is logged out or logged in but not banned, then redirect them\n if(!user_is_logged_in() || !user_is_banned())\n exit(header(\"Location: \".$path.\"index\"));\n}", "title": "" }, { "docid": "50cfedc5f714534e002466bb506044bd", "score": "0.6127234", "text": "function authorize_access_allowed(Request $request) {\n $account = \\Drupal::service('authentication')->authenticate($request);\n if ($account) {\n \\Drupal::currentUser()->setAccount($account);\n }\n return Settings::get('allow_authorize_operations', TRUE) && \\Drupal::currentUser()->hasPermission('administer software updates');\n}", "title": "" }, { "docid": "f56579677e1a86eaca3e6b05b00cc4ed", "score": "0.6109979", "text": "function checkIfAllowedPage() {\r\n\t\tglobal $_zp_gallery_page, $_zp_current_image, $_zp_current_album, $_zp_current_zenpage_page,\r\n\t\t\t\t\t\t$_zp_current_zenpage_news, $_zp_current_admin_obj, $_zp_current_category;\r\n\t\t$hint = $show = '';\r\n\t\tif ($this->disable || zp_loggedin(ADMIN_RIGHTS)) {\r\n\t\t\treturn false;\t// don't cache pages the admin views!\r\n\t\t}\r\n\t\t\tswitch ($_zp_gallery_page) {\r\n\t\t\t\tcase \"image.php\": // does it really makes sense to exclude images and albums?\r\n\t\t\t\t\t$obj = $_zp_current_album;\r\n\t\t\t\t\t$title = $_zp_current_image->filename;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"album.php\":\r\n\t\t\t\t\t$obj = $_zp_current_album;\r\n\t\t\t\t\t$title = $_zp_current_album->name;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'pages.php':\r\n\t\t\t\t\t$obj = $_zp_current_zenpage_page;\r\n\t\t\t\t\t$title = $_zp_current_zenpage_page->getTitlelink();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'news.php':\r\n\t\t\t\t\tif (in_context(ZP_ZENPAGE_NEWS_ARTICLE)) {\r\n\t\t\t\t\t\t$obj = $_zp_current_zenpage_news;\r\n\t\t\t\t\t\t$title = $obj->getTitlelink();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (in_context(ZP_ZENPAGE_NEWS_CATEGORY)) {\r\n\t\t\t\t\t\t\t$obj = $_zp_current_category;\r\n\t\t\t\t\t\t\t$title = $obj->getTitlelink();\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$obj = NULL;\r\n\t\t\t\t\t\t\t$title = NULL;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\t$obj = NULL;\r\n\t\t\t\t\tif(isset($_GET['title'])) {\r\n\t\t\t\t\t\t$title = sanitize($_GET['title']);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$title = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif ($obj) {\r\n\t\t\t\tif ($obj->isMyItem($obj->manage_some_rights)) {\r\n\t\t\t\t\treturn false;\t// don't cache manager's objects\r\n\t\t\t\t}\r\n\t\t\t\t$guestaccess = $obj->checkforGuest($hint,$show);\r\n\t\t\t\tif ($guestaccess && $guestaccess != 'zp_public_access') {\r\n\t\t\t\t\treturn false;\t// a guest is logged onto a protected item, no caching!\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t$excludeList = array_merge(explode(\",\",getOption('static_cache_excludedpages')),array('404.php/','password.php/'));\r\n\t\tforeach($excludeList as $item) {\r\n\t\t\t$page_to_exclude = explode(\"/\",$item);\r\n\t\t\tif ($_zp_gallery_page == trim($page_to_exclude[0])) {\r\n\t\t\t\t$exclude = trim($page_to_exclude[1]);\r\n\t\t\t\tif(empty($exclude) || $title == $exclude) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "6956ec23fa804bb8ff5d1e62a2240ff3", "score": "0.6093593", "text": "public function beforeAction($action)\n {\n if (parent::beforeAction($action)) {\n if (!Yii::$app->user->can($action->id)) {\n throw new ForbiddenHttpException('Access denied');\n }\n\n return true;\n } else return false;\n }", "title": "" }, { "docid": "79489a3494ad369628a5b74f840c736a", "score": "0.60922885", "text": "public function action_privacy_policy() {\n\t\tif (!$this->load_page()) {\n\t\t\t$this->response->body(new View('pages/privacy_policy'));\n\t\t}\n\t}", "title": "" }, { "docid": "4594c1d3280b751b235f9168004bf1ca", "score": "0.6088432", "text": "function restrict($logged_out = FALSE)\n\t{\n\t\t// If the user is logged in and he's trying to access a page\n\t\t// he's not allowed to see when logged in,\n\t\t// redirect him to the index!\n\t\tif ($logged_out && is_logged_in())\n\t\t{\n\t\t\t\tredirect('');\n\t\t\t\texit;\n\t\t\t\t//echo $this->CI->fungsi->warning('Maaf, sepertinya Anda sudah login...',site_url());\n\t\t\t\t//die();\n\t\t}\n\t\t\n\t\t// If the user isn' logged in and he's trying to access a page\n\t\t// he's not allowed to see when logged out,\n\t\t// redirect him to the login page!\n\t\tif ( ! $logged_out && !is_logged_in()) \n\t\t{\n\t\t\t\techo $this->CI->fungsi->warning('Anda diharuskan untuk Login bila ingin mengakses halaman ini.',site_url());\n\t\t\t\tdie();\n\t\t}\n\t}", "title": "" }, { "docid": "a1665c8f1c8c235844f854e12eca462c", "score": "0.60872793", "text": "abstract protected function authorize();", "title": "" }, { "docid": "12ab43e40c20ae9226e2a1fa58f96ff7", "score": "0.60735595", "text": "function wyz_restrict_menu_items() {\n\tglobal $pagenow;\n\n\tif ( ! current_user_can( 'administrator' ) && ( ( isset( $_GET['post_type'] ) && \n\t ( 'wyz_business_rating' == $_GET['post_type'] || 'wyz_business' == $_GET['post_type'] || ( 'post-new.php' == $pagenow && isset( $_GET['post_type'] ) && 'wyz_offers' == $_GET['post_type'] ) || 'wyz_business_post' == $_GET['post_type'] || 'wyz_location' == $_GET['post_type'] ) ) || \n\t \t isset( $_GET['page'] ) && 'wpcf7' == $_GET['page'] ) ) {\n\t\twp_die( esc_html__( 'You don\\'t have the right to acces this part of the site', 'wyzi-business-finder' ) );\n\t}\n}", "title": "" }, { "docid": "76d6710a7efb5853bb458bfd93de80e1", "score": "0.60719365", "text": "public function current_status_grants_access();", "title": "" }, { "docid": "ccf0dbf50a5aef97a9cb7bd5746a96a3", "score": "0.6059445", "text": "protected function _isAllowed()\n {\n return $this->_authorization->isAllowed('TransPerfect_GlobalLink::management');\n }", "title": "" }, { "docid": "66a2462d8c7d96f92bf910fb2820bdb2", "score": "0.60555106", "text": "function wsi_access_test() {\n\tglobal $current_user, $bp;\n\n\tif ( !is_user_logged_in() )\n\t\treturn false;\n\n\t// The site admin can see all\n\tif ( current_user_can( 'bp_moderate' ) ) {\n\t\treturn true;\n\t}\n\n\tif ( bp_displayed_user_id() && !bp_is_my_profile() )\n\t\treturn false;\n\n\treturn true;\n\n}", "title": "" }, { "docid": "20bc3665d3236548967f86be5a73ef10", "score": "0.6038962", "text": "public function authorize()\n {\n // TODO: 檢查是否有權限\n return true;\n }", "title": "" }, { "docid": "eb177129ab3629083c4ccdbc40e40266", "score": "0.60356677", "text": "public function authorize()\n\t{\n\t\t//EDIT 20200816\n\t\t//return false;\n\t\treturn true;\n\t}", "title": "" }, { "docid": "9d3580d9da3215837dfca39f043b0aa8", "score": "0.60251725", "text": "function before_every_protected_page() {\n\tconfirm_user_logged_in();\n\tconfirm_session_is_valid();\n}", "title": "" }, { "docid": "d4db56cede6a49c013775158080b2498", "score": "0.60129917", "text": "public function authorize()\n {\n if(Auth::user()->is_admin == 1) {\n return true;\n } else {\n return abort('403');\n }\n }", "title": "" }, { "docid": "61e45ea8d39d002a3987c3cfdf9c7b30", "score": "0.6012599", "text": "public function bflwp_block(){\r\n $ip = $this->getIp();\r\n \r\n $denylist = $this->getIPList('denylist');\r\n\r\n if(in_array($ip, $denylist)){\r\n header('HTTP/1.0 403 Forbidden');\r\n die('No podras pasar');\r\n }\r\n\r\n foreach ($denylist as $value) {\r\n if($this->ip_in_range($ip,$value)){\r\n header('HTTP/1.0 403 Forbidden');\r\n die('No podras pasar');\r\n }\r\n }\r\n }", "title": "" }, { "docid": "1b08fc6181ee343d6cae9eceb124e812", "score": "0.60121465", "text": "function can_access($perms,$block=true)\n{\n $l=user('level');\n if(($l&$perms)!==$perms)\n\t{\n\t\t//stop there!\n\t\tif($block)\n\t\t{\n\t\t\tif(($l&PERM_USER)===PERM_USER){?><div class=\"alert alert-danger\"><b>Oh no!</b><br/>You don't have permissions to access this page.</div><?php\n\t\t\t}elseif(($l&PERM_DEMO)===PERM_DEMO){?><div class=\"alert alert-danger\"><b>This is a Restricted Area</b><br/>This page cannot be accessed in demo/read-only mode.</div><?php\n\t\t\t}else{?><div class=\"alert alert-error\"><a href='login?redir=<?php echo urlencode($_SERVER['REQUEST_URI']) ?>'>Please Login</a> to Continue</div><?php\n\t\t\t}\n\t\t\texit();\n\t\t}\n\t\treturn false;\n\t}\n\treturn true;//every thing fine.\n}", "title": "" }, { "docid": "5b4682e750af8163457bbcc855b239db", "score": "0.60112286", "text": "function content_access_page($form, &$form_state, $node) {\n drupal_set_title(t('Access control for @title', array('@title' => $node->title)));\n\n foreach (_content_access_get_operations() as $op => $label) {\n $defaults[$op] = content_access_per_node_setting($op, $node);\n }\n\n // Get roles form\n content_access_role_based_form($form, $defaults);\n\n // Add an after_build handler that disables checkboxes, which are enforced by permissions.\n $form['per_role']['#after_build'] = array('content_access_force_permissions');\n\n // ACL form\n if (module_exists('acl')) {\n // This is disabled when there is no node passed.\n $form['acl'] = array(\n '#type' => 'fieldset',\n '#title' => t('User access control lists'),\n '#description' => t('These settings allow you to grant access to specific users.'),\n '#collapsible' => TRUE,\n '#tree' => TRUE,\n );\n\n foreach (array('view', 'update', 'delete') as $op) {\n $acl_id = content_access_get_acl_id($node, $op);\n acl_node_add_acl($node->nid, $acl_id, (int) ($op == 'view'), (int) ($op == 'update'), (int) ($op == 'delete'), content_access_get_settings('priority', $node->type));\n\n $form['acl'][$op] = acl_edit_form($form_state, $acl_id, t('Grant !op access', array('!op' => $op)));\n $form['acl'][$op]['#collapsed'] = !isset($_POST['acl_' . $acl_id]) && !unserialize($form['acl'][$op]['user_list']['#default_value']);\n }\n }\n\n $form_state['node'] = $node;\n\n $form['reset'] = array(\n '#type' => 'submit',\n '#value' => t('Reset to defaults'),\n '#weight' => 10,\n '#submit' => array('content_access_page_reset'),\n '#access' => count(content_access_get_per_node_settings($node)) > 0,\n );\n $form['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Submit'),\n '#weight' => 10,\n );\n\n // @todo not true anymore?\n // http://drupal.org/update/modules/6/7#hook_node_access_records\n if (!$node->status) {\n drupal_set_message(t(\"Warning: Your content is not published, so this settings are not taken into account as long as the content remains unpublished.\"), 'error');\n }\n\n return $form;\n}", "title": "" }, { "docid": "7936136699e0dc9829e8e502ed02067d", "score": "0.6010918", "text": "public function can() {\n\t\t\tif ( !current_user_can( $this->security_level ) ) $this->error('forbidden');\n\t\t}", "title": "" }, { "docid": "ed6c347570964f13287fcc5241d3101c", "score": "0.60087544", "text": "public function actionPrivacy()\n\t{\n\t\t$Obj = new common;\n\t\t$data['PageDetails'] = $Obj->getSelectQueryRowDetails(\"{{pages}}\",\"*\",\"page_url='privacy'\",\"\");\n\t\t$this->render('trl-privacy',array('data'=>$data));\t\n\t}", "title": "" }, { "docid": "3dfc716a14df79ace84e346fd2fc953a", "score": "0.6006779", "text": "function checkAccess() {\n if (!$this->isAuthorized()) {\n $this->Controller->Log->authorized = false;\n $this->Controller->Log->log();\n if (!User::isGuest()) {\n // display a more explicit error if user is logged in\n $msg = sprintf(__('Sorry you are not allowed to access this resource (%s:%s).',true),\n $this->Controller->name, $this->Controller->action);\n $this->Message->error(\n 'ERROR_ACCESS_DENIED', $msg, true\n );\n } else {\n // TODO save requested url in session for further use\n // if the user is not logged in, display a vague error msg\n // unless the user is asking for '/' then redirect to login\n if ($this->Controller->here != $this->Controller->webroot) {\n $msg = __('Sorry you are not allowed to access this resource.',true);\n $this->Message->error(\n 'ERROR_ACCESS_DENIED', $msg, '/login'\n );\n } else {\n $this->Controller->redirect('/login');\n }\n }\n }\n }", "title": "" }, { "docid": "0951bc6a35acc7bb0f2c70b4325693fc", "score": "0.6005969", "text": "public function authorize()\n {\n //return false;\n\t\treturn true;\n }", "title": "" }, { "docid": "6c3247c0a582d28ea128b6ea7e080c16", "score": "0.6000783", "text": "function access() {\n // Needs permission to administer comments in general.\n return user_access('administer comments');\n }", "title": "" }, { "docid": "4d5332dc3d3bdf52dacf1363de53f952", "score": "0.6000333", "text": "function att_admin_only() {\n if (isset($_SESSION['username']) && isset($_SESSION['password']) && !is_att_admin($_SESSION['username'], $_SESSION['password'])) {\n die(\"You do not have access to this page!\");\n }\n return true;\n}", "title": "" }, { "docid": "4abf8835091b32f589979f4c26bf43cf", "score": "0.5992501", "text": "function ModeratorsOnly() {\n\t\tglobal $tc_db, $smarty, $tpl_page;\n\t\t\n\t\tif ($this->CurrentUserIsAdministrator()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\t$results = $tc_db->GetAll(\"SELECT HIGH_PRIORITY `type` FROM `\" . KU_DBPREFIX . \"staff` WHERE `username` = '\" . $_SESSION['manageusername'] . \"' AND `password` = '\" . $_SESSION['managepassword'] . \"' LIMIT 1\");\n\t\t\tforeach ($results as $line) {\n\t\t\t\tif ($line['type'] != 2) {\n\t\t\t\t\texitWithErrorPage('That page is for moderators and administrators only.');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ff382933e4bd35f662c444065c092199", "score": "0.5990973", "text": "function user_restrict_to_administrators() : void\n{\n // Fetch the user's language\n $lang = user_get_language();\n\n // Prepare the error message that will be displayed\n $error_message = ($lang === 'EN') ? \"This page is restricted to website administrators only.\" : \"Cette page est réservée aux équipes d'administration du site.\";\n\n // Check if the user is logged in\n if(user_is_logged_in())\n {\n // If the user isn't an administrator, throw the error\n if(!user_is_administrator())\n error_page($error_message);\n }\n // If the user is logged out, throw the error\n else\n error_page($error_message);\n}", "title": "" }, { "docid": "2c38a2c88b1a621b721d0e286f432002", "score": "0.59886605", "text": "public function deniedAction()\n {\n throw new App_AccessDenied_Exception('test exception: access was denied');\n }", "title": "" }, { "docid": "4e7258f45eec339f026bc0fafda7f5c6", "score": "0.59658635", "text": "protected function denyAccess(){\n\t\tif(!isset($_SESSION['username'])){\n\t\t\t$this->jump(\"Please Login First!!\",\"?c=User&a=login\");\n\t\t}\n\t}", "title": "" }, { "docid": "2a6258bf5bfe4c4682dafb2a3ef86135", "score": "0.59602225", "text": "function access() {\n return user_access('administer comments');\n }", "title": "" }, { "docid": "1c21a4b6614c377de3235ee534a105dc", "score": "0.5959708", "text": "private function user_can_access_current_page() {\r\n\t\t$current_item = $this->get_current_menu_item();\r\n\t\tif ( $current_item === null ) {\r\n\t\t\treturn true; //Let WordPres handle it.\r\n\t\t}\r\n\t\treturn $this->current_user_can($current_item['access_level']);\r\n\t}", "title": "" }, { "docid": "a3e5cff15a4da0a13ab2a91c1d34b5cb", "score": "0.5955507", "text": "public static function check($levelRequired) {\n if ($levelRequired > 0 && $levelRequired > self::getLevel()) {\n throw new ForbiddenException(\"User is not authenticated to view page \\\"\". Request::getRequestUri().\"\\\"\");\n }\n }", "title": "" }, { "docid": "dfda82760604ffb0890bf36b44685e55", "score": "0.59504116", "text": "public function authorize() {\n $action = $this->route()->getAction();\n\n $is_edit = Auth::guard('admin')->user()->can($action['as'], 'edit');\n $own_edit = Auth::guard('admin')->user()->can($action['as'], 'own_edit');\n\n if ($is_edit == 1 || (!empty($own_edit) && ($this->food->created_by == Auth::guard('admin')->user()->id))) {\n return true;\n } else {\n abort(403);\n }\n }", "title": "" }, { "docid": "f6d5b34da76eb4cbd9d7a90dd96b50ee", "score": "0.59467393", "text": "public function forbidden()\n { echo \"403 Forbidden\";\n }", "title": "" }, { "docid": "de33331b6d31e56f7478016c9b5066d9", "score": "0.59298587", "text": "function learndash_assignment_permissions() {\n\tglobal $post;\n\n\tif ( ! empty( $post->post_type ) && $post->post_type === learndash_get_post_type_slug( 'assignment' ) && is_singular() ) {\n\t\t$user_id = get_current_user_id();\n\n\t\tif ( learndash_is_admin_user( $user_id ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( absint( $user_id ) === absint( $post->post_author ) ) {\n\t\t\treturn;\n\t\t} elseif ( learndash_is_group_leader_of_user( $user_id, $post->post_author ) ) {\n\t\t\treturn;\n\t\t} else {\n\t\t\twp_safe_redirect( apply_filters( 'learndash_assignment_permissions_redirect_url', get_bloginfo( 'url' ) ) );\n\t\t\texit;\n\t\t}\n\t}\n}", "title": "" }, { "docid": "1d42f4c4be11ebec358b802eb495bd90", "score": "0.59269387", "text": "protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('bs_exam/bs_docwise/scores');\n }", "title": "" }, { "docid": "1d8d1921509b0e3c0d42049250591495", "score": "0.5924264", "text": "public function isAccessGranted() {\n\t\t\n\t\tif ($this->system_status) {\n\t\t\tif (!isset($_SESSION[\"login\"])) {\n\t\t\t\tredirect(\"auth\");\n\t\t\t}\n\t\t\telseif ((!isset($_SESSION['id_properti'])) && ($_SESSION['id_akses'] != 1)) {\n\t\t\t\tredirect(\"auth/kelompokproperti\");\n\t\t\t}else{\n\t\t\t\t$CI =& get_instance();\n\t\t\t\t$CI->db->where(array('id_role' => $this->getUserRole(), 'controller_name' => $this->getController()));\n\t\t\t\t$query = $CI->db->get('controller_access');\n\t\t\t\t\n\t\t\t\tif ($query->num_rows() < 1) {\n\t\n\t\t\t\t\tredirect(\"home\");\n\t\n\t\t\t\t} \n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "c6fedb7f364bd6a74015c54ce40169d8", "score": "0.59219676", "text": "private function checkPageLevelPrivileges() \r\n\t{\r\n\t\tglobal $user_rights, $double_data_entry, $Proj;\r\n\t\t\r\n\t\t// Check Data Entry page rights (edit/read-only/none), if we're on that page\r\n\t\tif (PAGE == 'DataEntry/index.php' || PAGE == 'Mobile/data_entry.php') \r\n\t\t{\r\n\t\t\t// If 'page' is not a valid form, then redirect to home page\r\n\t\t\tif (isset($_GET['page']) && !isset($Proj->forms[$_GET['page']])) {\r\n\t\t\t\tredirect(APP_PATH_WEBROOT . \"index.php?pid=\" . PROJECT_ID);\r\n\t\t\t}\r\n\t\t\t// If user does not have rights to this form, then return false\r\n\t\t\tif (!isset($user_rights['forms'][$_GET['page']])) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t// If user has no access to form, kick out; otherwise set as full access or disabled\r\n\t\t\tif (isset($user_rights['forms'][$_GET['page']])) {\r\n\t\t\t\treturn ($user_rights['forms'][$_GET['page']] != \"0\");\r\n\t\t\t}\t\r\n\t\t}\t\t\r\n\t\t\r\n\t\t// DDE Person will have no rights to certain pages that display data \r\n\t\tif ($double_data_entry && $user_rights['double_data'] != 0 && in_array(PAGE, $this->pagesRestrictedDDE)) { \r\n\t\t\treturn false; \r\n\t\t}\r\n\t\t\r\n\t\t// Determine if user has rights to current page\r\n\t\tif (isset($this->page_rights[PAGE]) && isset($user_rights[$this->page_rights[PAGE]])) \r\n\t\t{\r\n\t\t\t// Does user have access to this page (>0)?\r\n\t\t\treturn ($user_rights[$this->page_rights[PAGE]] > 0);\r\n\t\t}\r\n\t\t\r\n\t\t// If you got here, then you're on a page not dictated by rights in the $user_rights array, so allow access\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "c35eaac2f2db49fb4eb22cd3bd0075d9", "score": "0.5907263", "text": "public function authorize()\n {\n return true; //特にアクセス権限などを求めないリクエストであればtrueを返すように書く\n }", "title": "" }, { "docid": "344482f7b2806bb7bd6ee6607e7ce210", "score": "0.5900269", "text": "protected function _isAllowed()\n {\n return $this->_authorization->isAllowed('Amasty_Payrestriction::sales_restiction');\n }", "title": "" }, { "docid": "9b94895dc20d68381be023e36dfdb70f", "score": "0.5893193", "text": "public function authorize()\n {\n return $this->user() && ! $this->user()->hasApplied($this->route('listings'));\n }", "title": "" }, { "docid": "7bcc485340a18720af16dd0c814a4fcc", "score": "0.5890569", "text": "public function testPermissionForSettingsPage() {\n $this->checkPermissionForSettingsPage();\n }", "title": "" }, { "docid": "73537aa4589147dd50b85c2a94c91458", "score": "0.5886947", "text": "abstract public function authorize();", "title": "" }, { "docid": "9850398482f154b03c03a24c1b5c3716", "score": "0.58864075", "text": "public function authorize()\n {\n if ($this->route()->getName() == 'employee.update' && ! \\Auth::getUser()->can('employee.edit')) {\n return false;\n }\n \n if ($this->route()->getName() == 'employee.store' && ! \\Auth::getUser()->can('employee.create')) {\n return false;\n }\n \n return true;\n }", "title": "" }, { "docid": "9bfce85248fa3bc17d76dc57c91b5890", "score": "0.588639", "text": "function rest_public_permissions_check() {\n\treturn true;\n}", "title": "" }, { "docid": "c11d5254615dac1cebabcae48231e4e2", "score": "0.5883768", "text": "public function testIsAllowedWhenAllowed(): void {\r\n\r\n $roles = ['administrator', 'moderator'];\r\n $resources = ['blog.edit', 'blog.delete', 'blog.create', 'blog.view'];\r\n\r\n $this -> acl -> allow($roles, $resources);\r\n $this -> assertTrue($this -> acl -> isAllowed('administrator', 'blog.edit'));\r\n \r\n $this -> acl -> deny($roles, $resources);\r\n $this -> acl -> allow($roles, $resources);\r\n $this -> assertTrue($this -> acl -> isAllowed('administrator', 'blog.edit'));\r\n }", "title": "" }, { "docid": "ccd40585d55446ba0711b52205e92cf3", "score": "0.5879282", "text": "function accessDeniedPage()\n\t{\n\t\t$node = &$this->getNode();\n\n\t\t$content = \"<br><br>\".atktext(\"error_node_action_access_denied\", \"\", $node->m_type).\"<br><br><br>\";\n\n\t\t// Add a cancel button to an error page if it is a dialog.\n\t\tif ($node->m_partial == 'dialog')\n\t\t$content.= $this->getDialogButton('cancel', 'close');\n\n\t\treturn $this->genericPage(atktext('access_denied'), $content);\n\t}", "title": "" } ]
89e68902b3c317f9692ee1d565942b14
Creates a new instance of SoundImpl for the block.muddy_mangrove_roots.step sound.
[ { "docid": "87745081e65f756e786b3336946d92b1", "score": "0.78393084", "text": "public static function BLOCK_MUDDY_MANGROVE_ROOTS_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_MUDDY_MANGROVE_ROOTS_STEP);\n }", "title": "" } ]
[ { "docid": "c6b53fed4910020b444b5e59428b62df", "score": "0.77552044", "text": "public static function BLOCK_MANGROVE_ROOTS_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_MANGROVE_ROOTS_STEP);\n }", "title": "" }, { "docid": "45c1a35f3eff4d2257a45b4c5ce838b4", "score": "0.7609275", "text": "public static function STEP_ROOTS(): SoundImpl\n {\n return new SoundImpl(SoundIds::STEP_ROOTS);\n }", "title": "" }, { "docid": "2b0dcfa597e46485ac12a6901aca6fc4", "score": "0.7290711", "text": "public static function STEP_STEM(): SoundImpl\n {\n return new SoundImpl(SoundIds::STEP_STEM);\n }", "title": "" }, { "docid": "e9b64132c15fd4e30112de221e9f4749", "score": "0.7205485", "text": "public static function MOB_HUSK_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_HUSK_STEP);\n }", "title": "" }, { "docid": "5b548aeba4cc71d7d3a8ff93b246582e", "score": "0.7182669", "text": "public static function MOB_SKELETON_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_SKELETON_STEP);\n }", "title": "" }, { "docid": "0fe8db10fda36086ce272db925ff95b7", "score": "0.71587634", "text": "public static function BLOCK_MUD_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_MUD_STEP);\n }", "title": "" }, { "docid": "3a5087afdb87a3383173e16bdf6856eb", "score": "0.7129258", "text": "public static function BLOCK_MOSS_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_MOSS_STEP);\n }", "title": "" }, { "docid": "861adaa378a5acf4c078a218a56893ec", "score": "0.70651317", "text": "public static function STEP_SOUL_SAND(): SoundImpl\n {\n return new SoundImpl(SoundIds::STEP_SOUL_SAND);\n }", "title": "" }, { "docid": "d87975ba6d05430bd26dbdad8bab1543", "score": "0.7021306", "text": "public static function MOB_SPIDER_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_SPIDER_STEP);\n }", "title": "" }, { "docid": "d9cbee132310f780e7f955563c6556eb", "score": "0.7002245", "text": "public static function MOB_PANDA_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_PANDA_STEP);\n }", "title": "" }, { "docid": "258481a8720c7e6f457c8ce9a08dba27", "score": "0.69476956", "text": "public static function MOB_CAMEL_STEP_SAND(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_CAMEL_STEP_SAND);\n }", "title": "" }, { "docid": "e2414a300eb3b5a4fd058851b7d120e0", "score": "0.6927424", "text": "public static function STEP_SAND(): SoundImpl\n {\n return new SoundImpl(SoundIds::STEP_SAND);\n }", "title": "" }, { "docid": "690f94299ac0186f21231dc8db28c85c", "score": "0.6920844", "text": "public static function STEP_VINES(): SoundImpl\n {\n return new SoundImpl(SoundIds::STEP_VINES);\n }", "title": "" }, { "docid": "860801b0c0f204d8183308fdf840c78a", "score": "0.6910875", "text": "public static function BLOCK_PACKED_MUD_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_PACKED_MUD_STEP);\n }", "title": "" }, { "docid": "bd8fc971da89aa026e02720bd784a4b6", "score": "0.6886763", "text": "public static function MOB_SHEEP_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_SHEEP_STEP);\n }", "title": "" }, { "docid": "607fb1c776bbd6a9912c38851bfbe238", "score": "0.6883475", "text": "public static function MOB_PIGLIN_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_PIGLIN_STEP);\n }", "title": "" }, { "docid": "b9d5ce34ed24f65f7990a8d2b4b51061", "score": "0.6883226", "text": "public static function BLOCK_HANGING_ROOTS_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_HANGING_ROOTS_STEP);\n }", "title": "" }, { "docid": "1161fcc56c5b7054a3d3dab6b81503af", "score": "0.6877454", "text": "public static function BLOCK_SUSPICIOUS_SAND_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_SUSPICIOUS_SAND_STEP);\n }", "title": "" }, { "docid": "1e517b107c13454f0ddeea6d8eaf4e95", "score": "0.6871883", "text": "public static function STEP_GRAVEL(): SoundImpl\n {\n return new SoundImpl(SoundIds::STEP_GRAVEL);\n }", "title": "" }, { "docid": "7173ac41e2a333e63466761a82f47c78", "score": "0.68601555", "text": "public static function MOB_STRAY_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_STRAY_STEP);\n }", "title": "" }, { "docid": "66f4db7b4e65daa8c128a790bf35d53c", "score": "0.68531704", "text": "public static function MOB_PIG_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_PIG_STEP);\n }", "title": "" }, { "docid": "9a9a325987efac24fccc14a85b361a33", "score": "0.6839907", "text": "public static function MOB_RAVAGER_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_RAVAGER_STEP);\n }", "title": "" }, { "docid": "7d8ed9ab98f59bd9b9f7ff05355752b6", "score": "0.6833613", "text": "public static function MOB_GOAT_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_GOAT_STEP);\n }", "title": "" }, { "docid": "176d81de56e14b6dc41a90368f42ef81", "score": "0.6791836", "text": "public static function MOB_WARDEN_STEP_(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_WARDEN_STEP_);\n }", "title": "" }, { "docid": "7c55276843165aab6d6ac9db4a23a404", "score": "0.6788923", "text": "public static function STEP_STONE(): SoundImpl\n {\n return new SoundImpl(SoundIds::STEP_STONE);\n }", "title": "" }, { "docid": "079b3c46154d4c684eeaf75e4c2a73c7", "score": "0.6775224", "text": "public static function BLOCK_SCULK_SENSOR_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_SCULK_SENSOR_STEP);\n }", "title": "" }, { "docid": "c3815b4defcc0e3364c6970e60b0833b", "score": "0.67472845", "text": "public static function BLOCK_SUSPICIOUS_GRAVEL_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_SUSPICIOUS_GRAVEL_STEP);\n }", "title": "" }, { "docid": "e2f6da75b7619489fa490dbfea7e9fca", "score": "0.67389876", "text": "public static function STEP_SNOW(): SoundImpl\n {\n return new SoundImpl(SoundIds::STEP_SNOW);\n }", "title": "" }, { "docid": "1eba5f9645c5b5b59e4d600bd6f01140", "score": "0.672331", "text": "public static function MOB_SNIFFER_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_SNIFFER_STEP);\n }", "title": "" }, { "docid": "1f99fb05f928b6f013b8cb64efa87e71", "score": "0.67091227", "text": "public static function MOB_WOLF_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_WOLF_STEP);\n }", "title": "" }, { "docid": "94b9b25453bfb247e0dbdd2b2a2f1661", "score": "0.6708664", "text": "public static function MOB_POLARBEAR_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_POLARBEAR_STEP);\n }", "title": "" }, { "docid": "656e49e57703a4850c760c750a7d6c37", "score": "0.6703583", "text": "public static function MOB_STRIDER_STEP_LAVA(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_STRIDER_STEP_LAVA);\n }", "title": "" }, { "docid": "cf5544f1dbfa58640a19234c912ba707", "score": "0.6700146", "text": "public static function MOB_STRIDER_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_STRIDER_STEP);\n }", "title": "" }, { "docid": "b1ad3124881194da34cccb1b90101939", "score": "0.6698055", "text": "public static function STEP_SOUL_SOIL(): SoundImpl\n {\n return new SoundImpl(SoundIds::STEP_SOUL_SOIL);\n }", "title": "" }, { "docid": "d689b28e53cdc6b76e76cd1218037deb", "score": "0.668923", "text": "public static function STEP_LADDER(): SoundImpl\n {\n return new SoundImpl(SoundIds::STEP_LADDER);\n }", "title": "" }, { "docid": "c9174d605db655d46715bd7cbe8c231e", "score": "0.66877925", "text": "public static function BLOCK_SPORE_BLOSSOM_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_SPORE_BLOSSOM_STEP);\n }", "title": "" }, { "docid": "9c232379ebbb0634e433646fdd38a4cd", "score": "0.6682853", "text": "public static function BLOCK_MUD_BRICKS_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_MUD_BRICKS_STEP);\n }", "title": "" }, { "docid": "015fc8fcb0f646ef6e3308bef42cc3fe", "score": "0.6671597", "text": "public static function BLOCK_POWDER_SNOW_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_POWDER_SNOW_STEP);\n }", "title": "" }, { "docid": "fc8d1b678a50da3cc8a04052f08ab1cd", "score": "0.6670538", "text": "public static function BLOCK_AMETHYST_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_AMETHYST_STEP);\n }", "title": "" }, { "docid": "d8ab3919bab968b39ad964b41a1c8880", "score": "0.6640214", "text": "public static function STEP_GRASS(): SoundImpl\n {\n return new SoundImpl(SoundIds::STEP_GRASS);\n }", "title": "" }, { "docid": "cfec09b18f15faee37ec890390127fe6", "score": "0.66288906", "text": "public static function MOB_PIGLIN_BRUTE_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_PIGLIN_BRUTE_STEP);\n }", "title": "" }, { "docid": "df78e3bfe9435a8156234c2b5258343d", "score": "0.66262436", "text": "public static function MOB_ZOGLIN_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_ZOGLIN_STEP);\n }", "title": "" }, { "docid": "249fb3ea84d786528fd499b38c39e466", "score": "0.6623333", "text": "public static function MOB_CAMEL_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_CAMEL_STEP);\n }", "title": "" }, { "docid": "38a324b780728ff12e86718870f22660", "score": "0.66225874", "text": "public static function BLOCK_AZALEA_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_AZALEA_STEP);\n }", "title": "" }, { "docid": "c3e9a68ff976c9364e7301ced9db0abc", "score": "0.66212106", "text": "public static function BLOCK_AMETHYST_STEP1(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_AMETHYST_STEP1);\n }", "title": "" }, { "docid": "f7e0d429847294d5c687e9b99b0187cd", "score": "0.66124755", "text": "public static function MOB_HOGLIN_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_HOGLIN_STEP);\n }", "title": "" }, { "docid": "07447ca340ef0aed157dd555246e890f", "score": "0.66085154", "text": "public static function BLOCK_MUDDY_MANGROVE_ROOTS_BREAK(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_MUDDY_MANGROVE_ROOTS_BREAK);\n }", "title": "" }, { "docid": "40be9cd4b3fde70cf6f77734fdb8d16d", "score": "0.6585506", "text": "public static function STEP_BASALT(): SoundImpl\n {\n return new SoundImpl(SoundIds::STEP_BASALT);\n }", "title": "" }, { "docid": "cf5c6b2b805391cf246341476f50b012", "score": "0.6585132", "text": "public static function BLOCK_AZALEA_LEAVES_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_AZALEA_LEAVES_STEP);\n }", "title": "" }, { "docid": "cda51a0144b64e08dfadb7f5ee4452b0", "score": "0.65776616", "text": "public static function MOB_LLAMA_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_LLAMA_STEP);\n }", "title": "" }, { "docid": "8c40cc4917090b70781e690559b8c172", "score": "0.6559582", "text": "public static function BLOCK_HANGING_SIGN_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_HANGING_SIGN_STEP);\n }", "title": "" }, { "docid": "ae577dd16cb98c4658884ba7b1d2a0e5", "score": "0.65481347", "text": "public static function BLOCK_MANGROVE_ROOTS_BREAK(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_MANGROVE_ROOTS_BREAK);\n }", "title": "" }, { "docid": "4c9313444cbd24d44d09b75b01a65a03", "score": "0.6519651", "text": "public static function STEP_HONEY_BLOCK(): SoundImpl\n {\n return new SoundImpl(SoundIds::STEP_HONEY_BLOCK);\n }", "title": "" }, { "docid": "b9b03708eee4395cd90e462fefb16273", "score": "0.6509714", "text": "public static function BLOCK_CHERRY_LEAVES_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_CHERRY_LEAVES_STEP);\n }", "title": "" }, { "docid": "d231ec2b58525c7bf800044498074994", "score": "0.6485357", "text": "public static function STEP_WOOD(): SoundImpl\n {\n return new SoundImpl(SoundIds::STEP_WOOD);\n }", "title": "" }, { "docid": "6e481ce10c490d08f84eb65db20914c3", "score": "0.64851457", "text": "public static function STEP_NYLIUM(): SoundImpl\n {\n return new SoundImpl(SoundIds::STEP_NYLIUM);\n }", "title": "" }, { "docid": "b5a877c985f0b596c3e6682bf77c8cd9", "score": "0.6461236", "text": "public static function BLOCK_DRIPSTONE_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_DRIPSTONE_STEP);\n }", "title": "" }, { "docid": "43eb71361a8388b8db9bc27009717fdf", "score": "0.643584", "text": "public static function BLOCK_CALCITE_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_CALCITE_STEP);\n }", "title": "" }, { "docid": "2c5b00bafb79cee978d4037ca7697acb", "score": "0.63899136", "text": "public static function BLOCK_SCULK_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_SCULK_STEP);\n }", "title": "" }, { "docid": "7732942fb6ebe1ea4dbae11931b08923", "score": "0.6374394", "text": "public static function MOB_PARROT_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_PARROT_STEP);\n }", "title": "" }, { "docid": "30b8e91a47b742c7163db5ec7fa02e47", "score": "0.63527143", "text": "public static function BLOCK_BIG_DRIPLEAF_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_BIG_DRIPLEAF_STEP);\n }", "title": "" }, { "docid": "6d752750e53a455434e8da0ce6abf5ba", "score": "0.6333898", "text": "public static function BLOCK_FROG_SPAWN_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_FROG_SPAWN_STEP);\n }", "title": "" }, { "docid": "30074fbd3a71a09d77b542c49591638e", "score": "0.63277835", "text": "public static function DIG_STEM(): SoundImpl\n {\n return new SoundImpl(SoundIds::DIG_STEM);\n }", "title": "" }, { "docid": "76f847270a8601cca1d7134658e26b07", "score": "0.6320663", "text": "public static function BLOCK_TUFF_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_TUFF_STEP);\n }", "title": "" }, { "docid": "142bec27921deb6f8e0f1be9b81de23d", "score": "0.63065183", "text": "public static function BLOCK_CANDLE_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_CANDLE_STEP);\n }", "title": "" }, { "docid": "0b9bda9bee0866b790fad17dc8d763c8", "score": "0.6287147", "text": "public static function STEP_NETHER_GOLD_ORE(): SoundImpl\n {\n return new SoundImpl(SoundIds::STEP_NETHER_GOLD_ORE);\n }", "title": "" }, { "docid": "43fcd4b764159cafdb0d0263bc9e6037", "score": "0.627751", "text": "public static function BLOCK_COPPER_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_COPPER_STEP);\n }", "title": "" }, { "docid": "7563ccb9205ec9ee6d4e53ccd305a53f", "score": "0.6267782", "text": "public static function MOB_COW_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_COW_STEP);\n }", "title": "" }, { "docid": "1680364628efdd14bf70e043f7670427", "score": "0.62623245", "text": "public static function MOB_ZOMBIE_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_ZOMBIE_STEP);\n }", "title": "" }, { "docid": "256ad5aa9715b0e946e014be2d00031b", "score": "0.62598234", "text": "public static function MOB_FROG_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_FROG_STEP);\n }", "title": "" }, { "docid": "9714c5d7aa848fe380d4606fb497527c", "score": "0.6249551", "text": "public static function BLOCK_BAMBOO_WOOD_HANGING_SIGN_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_BAMBOO_WOOD_HANGING_SIGN_STEP);\n }", "title": "" }, { "docid": "1dd571185e5a8b6d98fc9f8abf9a5d8f", "score": "0.62439984", "text": "public static function STEP_BONE_BLOCK(): SoundImpl\n {\n return new SoundImpl(SoundIds::STEP_BONE_BLOCK);\n }", "title": "" }, { "docid": "115d656b74503e441af4a425a4ac44c6", "score": "0.6242953", "text": "public static function BLOCK_DECORATED_POT_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_DECORATED_POT_STEP);\n }", "title": "" }, { "docid": "094359abdc36c8451cc50d6e3f3648e8", "score": "0.62313724", "text": "public static function BLOCK_CHERRY_WOOD_HANGING_SIGN_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_CHERRY_WOOD_HANGING_SIGN_STEP);\n }", "title": "" }, { "docid": "d0b336472ddb907306be12f27b7fe577", "score": "0.62085587", "text": "public static function STEP_SCAFFOLD(): SoundImpl\n {\n return new SoundImpl(SoundIds::STEP_SCAFFOLD);\n }", "title": "" }, { "docid": "e43db84b0abbbb0579564045620a5a00", "score": "0.6206159", "text": "public static function BLOCK_BAMBOO_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_BAMBOO_STEP);\n }", "title": "" }, { "docid": "69d749beda5ea089bad661870341ddc3", "score": "0.6192471", "text": "public static function MOB_CHICKEN_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_CHICKEN_STEP);\n }", "title": "" }, { "docid": "9f3bdf1fe97bbe9d7eee8e01ae025657", "score": "0.6185355", "text": "public static function STEP_SHROOMLIGHT(): SoundImpl\n {\n return new SoundImpl(SoundIds::STEP_SHROOMLIGHT);\n }", "title": "" }, { "docid": "4e896ffba74abc678d2661d676fab388", "score": "0.61839586", "text": "public static function DIG_ROOTS(): SoundImpl\n {\n return new SoundImpl(SoundIds::DIG_ROOTS);\n }", "title": "" }, { "docid": "a9720cde70a0fc50afa33136c0130983", "score": "0.6179799", "text": "public static function STEP_ANCIENT_DEBRIS(): SoundImpl\n {\n return new SoundImpl(SoundIds::STEP_ANCIENT_DEBRIS);\n }", "title": "" }, { "docid": "726d7aef1ff594711385a30d02b5ff33", "score": "0.6174191", "text": "public static function BLOCK_BAMBOO_WOOD_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_BAMBOO_WOOD_STEP);\n }", "title": "" }, { "docid": "50d23039e8850a7468a02ec094d9da4d", "score": "0.6168402", "text": "public static function STEP_CHAIN(): SoundImpl\n {\n return new SoundImpl(SoundIds::STEP_CHAIN);\n }", "title": "" }, { "docid": "7579f1263352cb1ff33f5b905ad8d8d7", "score": "0.61285245", "text": "public static function STEP_NETHER_WART(): SoundImpl\n {\n return new SoundImpl(SoundIds::STEP_NETHER_WART);\n }", "title": "" }, { "docid": "20b4956d681eef1a74199240f3a312c9", "score": "0.6119509", "text": "public static function BLOCK_CHISELED_BOOKSHELF_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_CHISELED_BOOKSHELF_STEP);\n }", "title": "" }, { "docid": "3d02c6723d088df1ca7a3b3bffd4059f", "score": "0.61090505", "text": "public static function BLOCK_CHERRY_WOOD_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_CHERRY_WOOD_STEP);\n }", "title": "" }, { "docid": "05c166fb5c53424cf6490affb2879bad", "score": "0.60632366", "text": "public static function BLOCK_DEEPSLATE_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_DEEPSLATE_STEP);\n }", "title": "" }, { "docid": "b7d29131e7d5b11c02cbf3fe3564058e", "score": "0.60043764", "text": "public static function BLOCK_ROOTED_DIRT_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_ROOTED_DIRT_STEP);\n }", "title": "" }, { "docid": "e7ff40b6e464a9867b43816003c37e35", "score": "0.6000834", "text": "public static function MOB_RAVAGER_STUN(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_RAVAGER_STUN);\n }", "title": "" }, { "docid": "dac79db703e603e6321c5b393b8ba6a3", "score": "0.5970307", "text": "public static function MOB_SILVERFISH_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_SILVERFISH_STEP);\n }", "title": "" }, { "docid": "775ee94ef244f710a6b45196bb70813c", "score": "0.5928982", "text": "public static function BLOCK_NETHER_WOOD_HANGING_SIGN_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_NETHER_WOOD_HANGING_SIGN_STEP);\n }", "title": "" }, { "docid": "aa3eb89858af8efbb3f32e486ad6f4ef", "score": "0.5919533", "text": "public static function MOB_DROWNED_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_DROWNED_STEP);\n }", "title": "" }, { "docid": "65f93c0e25d3792835ee094ca2d554b5", "score": "0.59128594", "text": "public static function STEP_NETHER_BRICK(): SoundImpl\n {\n return new SoundImpl(SoundIds::STEP_NETHER_BRICK);\n }", "title": "" }, { "docid": "e5a38a352c1ea79c9de1fe0debfaea0c", "score": "0.59110725", "text": "public static function BLOCK_SCULK_CATALYST_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_SCULK_CATALYST_STEP);\n }", "title": "" }, { "docid": "f1c64b0cf6017dc225862c1ae11fe07a", "score": "0.58794737", "text": "public static function MINECART_BASE(): SoundImpl\n {\n return new SoundImpl(SoundIds::MINECART_BASE);\n }", "title": "" }, { "docid": "87da239f64e3ed736a39ee378cf6859a", "score": "0.5868565", "text": "public static function STEP_NETHER_SPROUTS(): SoundImpl\n {\n return new SoundImpl(SoundIds::STEP_NETHER_SPROUTS);\n }", "title": "" }, { "docid": "7b2827a96470ca16a84bb6bddc9c0a7b", "score": "0.5861425", "text": "public static function BLOCK_DEEPSLATE_BRICKS_STEP(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_DEEPSLATE_BRICKS_STEP);\n }", "title": "" }, { "docid": "1b0658eaa1e27a8eca96c6dc163d16e4", "score": "0.5846361", "text": "public static function STEP_CLOTH(): SoundImpl\n {\n return new SoundImpl(SoundIds::STEP_CLOTH);\n }", "title": "" }, { "docid": "f74f86610b751fb8f4710d49b3404ba2", "score": "0.58285385", "text": "public static function BLOCK_HANGING_ROOTS_BREAK(): SoundImpl\n {\n return new SoundImpl(SoundIds::BLOCK_HANGING_ROOTS_BREAK);\n }", "title": "" }, { "docid": "41b773550b7b856d32eadf18783e5c17", "score": "0.5811798", "text": "public static function DIG_SOUL_SAND(): SoundImpl\n {\n return new SoundImpl(SoundIds::DIG_SOUL_SAND);\n }", "title": "" }, { "docid": "97eaca7951d60a288589309cb4a12c66", "score": "0.5786677", "text": "public static function MOB_BEE_STING(): SoundImpl\n {\n return new SoundImpl(SoundIds::MOB_BEE_STING);\n }", "title": "" } ]
ca6b030e7a10d74ac40ddea77545c46f
(PHP 5 &gt;= 5.4.0) Specify data which should be serialized to JSON
[ { "docid": "146f8fce33f32ed41561aa4a9bc60d49", "score": "0.0", "text": "public function jsonSerialize()\n {\n return json_encode(array());\n }", "title": "" } ]
[ { "docid": "d1ad8a58c8043997085e78945b825077", "score": "0.7374626", "text": "public function jsonSerialize() {\n\t}", "title": "" }, { "docid": "beb66cae8e48be71de66f5b1b98f660b", "score": "0.7290013", "text": "public function jsonSerialize();", "title": "" }, { "docid": "beb66cae8e48be71de66f5b1b98f660b", "score": "0.7290013", "text": "public function jsonSerialize();", "title": "" }, { "docid": "beb66cae8e48be71de66f5b1b98f660b", "score": "0.7290013", "text": "public function jsonSerialize();", "title": "" }, { "docid": "beb66cae8e48be71de66f5b1b98f660b", "score": "0.7290013", "text": "public function jsonSerialize();", "title": "" }, { "docid": "381bf12c6e24c6815a311e34c71bdf82", "score": "0.72883105", "text": "public static function jsonEncode($data)\n {\n }", "title": "" }, { "docid": "81d6b92a289bffbfb40bcf83d62fa80d", "score": "0.72197604", "text": "public function serialize($data) {\n return json_encode($data);\n }", "title": "" }, { "docid": "3be5c3c57ffb257bc9555ba11bfe3f5f", "score": "0.7189597", "text": "abstract public function jsonSerialize();", "title": "" }, { "docid": "183d1892e2ce4947595b6f4b93c66343", "score": "0.7109982", "text": "function jsonSerialize()\r\n\t{\r\n\t\treturn $this->getDataToEncode();\r\n\t}", "title": "" }, { "docid": "8a97a357f2d3ed2438b9a942e09278e0", "score": "0.7107115", "text": "public function asJSON($data)\n {\n return json_encode($data);\n }", "title": "" }, { "docid": "42d6782f8d18473090901b6ea647cdeb", "score": "0.7046298", "text": "protected function _json($data)\n {\n return Mage::helper('core')->jsonEncode($data);\n }", "title": "" }, { "docid": "8407b3c796aa0b1e095ee705d9fe07f0", "score": "0.7036287", "text": "private function json($data) {\n if (is_array ( $data )) {\n return json_encode ( $data );\n }\n }", "title": "" }, { "docid": "a45bb080ad34b1e537c6ad1574d16fdf", "score": "0.6973214", "text": "public function serialize($data);", "title": "" }, { "docid": "18496e0c8b4378e302b3706d978988f7", "score": "0.69709647", "text": "public function json($data){\n if(is_array($data)){\n return json_encode($data);\n }\n }", "title": "" }, { "docid": "7f219421fcefa2a288475d139a48ca4e", "score": "0.6970868", "text": "private function json($data){\n\t\t\tif(is_array($data)){\n\t\t\t\treturn json_encode($data);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "7f219421fcefa2a288475d139a48ca4e", "score": "0.6970868", "text": "private function json($data){\n\t\t\tif(is_array($data)){\n\t\t\t\treturn json_encode($data);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "7f219421fcefa2a288475d139a48ca4e", "score": "0.6970868", "text": "private function json($data){\n\t\t\tif(is_array($data)){\n\t\t\t\treturn json_encode($data);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "7f219421fcefa2a288475d139a48ca4e", "score": "0.6970868", "text": "private function json($data){\n\t\t\tif(is_array($data)){\n\t\t\t\treturn json_encode($data);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "9a5fa4cb04aab693e74524a3a7b08fd8", "score": "0.6958095", "text": "private function json($data)\r\n\t{\r\n\t\tif(is_array($data)){\r\n\t\t\treturn json_encode($data);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7ece1506c06083d3c1f55254b36db477", "score": "0.6888757", "text": "public function json($data) {\r\n if (is_array($data)) {\r\n return json_encode($data);\r\n }\r\n }", "title": "" }, { "docid": "355bd45347ef04a5fd157237b539f611", "score": "0.6863964", "text": "public function toJson($data)\n {\n return json_encode($data);\n }", "title": "" }, { "docid": "fb427126712f837960589c27bae74a2e", "score": "0.6862219", "text": "public function get_data_type() { return \"json\"; }", "title": "" }, { "docid": "fb427126712f837960589c27bae74a2e", "score": "0.6862219", "text": "public function get_data_type() { return \"json\"; }", "title": "" }, { "docid": "5e5408d40e73cb2a5a243eaa251fe79e", "score": "0.68495506", "text": "private function formatData($data = array()) {\n return json_encode($data);\n }", "title": "" }, { "docid": "81a15623fb5801299959e7d1c956b695", "score": "0.68408316", "text": "function jsonSerialize()\n {\n return $this->data;\n }", "title": "" }, { "docid": "f705c6784230a1686b28c98e461328c3", "score": "0.6837994", "text": "public function asJSON();", "title": "" }, { "docid": "dd7c7081246dc15620486b46b1b08f63", "score": "0.68324137", "text": "protected function encode_data($data) {\n return json_encode($data);\n }", "title": "" }, { "docid": "1603146efacafe8fc7d8d59282df1bef", "score": "0.6815894", "text": "protected function serialize($data,$type='json'){\n return is_string($data) ? $data:json_encode($data);\n }", "title": "" }, { "docid": "0e1a50675ed5d680e0a7f19fa3c5d81d", "score": "0.6807679", "text": "public function jsonSerialize(): mixed;", "title": "" }, { "docid": "de8c8879491306b0a1128ba57115e585", "score": "0.6776674", "text": "public function toJson($data)\n {\n print json_encode($data);\n exit;\n }", "title": "" }, { "docid": "e2844aa8da2ab303769a6d836a9ec188", "score": "0.6726764", "text": "function jsonSerialize()\n {\n }", "title": "" }, { "docid": "71353c156010fad02c4b5314b9726364", "score": "0.6709088", "text": "private static function jsonPrepare($data)\n {\n if (is_object($data)) {\n if (!$data instanceof stdClass) {\n $className = get_class($data);\n $data = MyFusesDataUtil::objectToArray($data);\n\n $data['data_type'] = \"class\";\n\n $data['data_class_name'] = $className;\n }\n }\n\n if (is_array($data)) { // objects will also fall here\n foreach ($data as &$item) {\n $item = self::jsonPrepare($item);\n }\n return $data;\n }\n\n if (is_string($data)) {\n return utf8_encode($data);\n }\n // for all other cases (number, boolean, null), no change\n return $data;\n }", "title": "" }, { "docid": "4396bb8adf34cb2d7b379bf1320476da", "score": "0.67058456", "text": "private function json($data){\n if(is_array($data)){\n return json_encode($data, JSON_PRETTY_PRINT);\n } else {\n return \"{}\";\n }\n }", "title": "" }, { "docid": "d85b33b23933565c31b96aff5b0dbf7d", "score": "0.66878915", "text": "public function jsonSerialize(): void\n {\n }", "title": "" }, { "docid": "0d2cb84d39bbc0c9b0ffd35ddf6e6df3", "score": "0.6676968", "text": "public function dataJson() {\n return json_encode($this->data);\n }", "title": "" }, { "docid": "a8d2fb976b2a28f394820166edd5b591", "score": "0.66600215", "text": "private function json($data)\n {\n if (is_array($data)) {\n return json_encode($data, JSON_NUMERIC_CHECK);\n }\n }", "title": "" }, { "docid": "d898118e2cc54dd49130efd3c8a73338", "score": "0.66446406", "text": "public function jsonSerialize()\n {\n $data = parent::jsonSerialize();\n $data['tags'] = $this->getTags();\n\n return $data;\n }", "title": "" }, { "docid": "3ddc26aefa24443ab806aea83e697c85", "score": "0.6635067", "text": "final public function jsonSerialize(): mixed {}", "title": "" }, { "docid": "3abbf0ea5b6cde96a1162dbbd7eb9064", "score": "0.661953", "text": "function jsonSerialize() {\n return array(\n \"type\" => $this->type,\n \"data\" => array(\n \"labels\" => $this->arLabels, \n \"datasets\" => $this->arDataSets\n ),\n \"options\" => $this->arOptions\n );\n }", "title": "" }, { "docid": "a1f699e48e68f1aec36d7b37abdb3313", "score": "0.6613303", "text": "private function json($data){\n if(is_array($data)){\n return json_encode($data, JSON_UNESCAPED_UNICODE);\n }\n }", "title": "" }, { "docid": "42f93fe5f98a53225add45d9cda3e4ad", "score": "0.6587542", "text": "function jsonSerialize() {\r\r\r\n return [\r\r\r\n 'id' => $this->id,\r\r\r\n 'comentario' => $this->comentario,\r\r\r\n 'fecha_comentario' => $this->fecha_comentario,\r\r\r\n 'status' => $this->status,\r\r\r\n 'fk_usuario' => $this->fk_usuario,\r\r\r\n 'id_cafeteria' => $this->id_cafeteria,\r\r\r\n 'puntaje' => $this->puntaje,\r\r\r\n ];\r\r\r\n }", "title": "" }, { "docid": "3419fe5e5daa9d79175147b1170c192c", "score": "0.658306", "text": "function jsonSerialize();", "title": "" }, { "docid": "af0ed12f68919beb4f36395a4d811e0b", "score": "0.6575026", "text": "private function json($data){\r\n if(is_array($data)){\t\r\n\t\tprint_r(json_encode($data));\r\n }\r\n }", "title": "" }, { "docid": "7c45c32648a298ef247a380db948697f", "score": "0.65583384", "text": "private function _serialize($data = array())\n {\n \treturn serialize($data);\n }", "title": "" }, { "docid": "bf519d97d338e026c317be8d94f5db89", "score": "0.6554934", "text": "function serializeData ($data) {\n $obj = json_decode($data, true);\n $newStructure = $this->buildStructureFromObj($obj);\n return serialize($newStructure);\n }", "title": "" }, { "docid": "dab1a7246e0567f3ec9b6cdb85a93420", "score": "0.65329", "text": "function jsonSerialize()\n {\n return array(\n \"date\" => $this->date,\n \"idApp\" => $this->idApp,\n \"idResource\" => $this->idResource,\n \"idUser\" => $this->idUser,\n \"value\" => $this->value,\n );\n }", "title": "" }, { "docid": "8707332e47bc9a6cab24e8809ca8b993", "score": "0.6523569", "text": "static function json($data)\n\t{\n\t\t$r = new self();\n\t\t$r->setContent(json_encode($data));\n\t\t$r->setHeader('Content-Type', 'application/json; charset=utf-8');\n\t\treturn $r;\n\t}", "title": "" }, { "docid": "d3161c0d3308699564397bff381d7bdc", "score": "0.6512118", "text": "public function get_json($data)\n\t{\n\t\tif (version_compare(APP_VER, '2.6', '<') OR !function_exists('json_encode'))\n\t\t{\n\t\t\treturn $this->EE->javascript->generate_json($data, TRUE);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn json_encode($data);\n\t\t}\n\t}", "title": "" }, { "docid": "d4e34030a24a449d8b9d3d310ecdf199", "score": "0.6508265", "text": "public function jsonSerialize() {\n return $this->data;\n }", "title": "" }, { "docid": "f68dc4ad13774420a5bbef7892d56563", "score": "0.6506351", "text": "public function toJson();", "title": "" }, { "docid": "f68dc4ad13774420a5bbef7892d56563", "score": "0.6506351", "text": "public function toJson();", "title": "" }, { "docid": "f68dc4ad13774420a5bbef7892d56563", "score": "0.6506351", "text": "public function toJson();", "title": "" }, { "docid": "57ffe70de4dcfdd9f7ed736d0ebdac0c", "score": "0.65044284", "text": "private function convertToJSON($data)\n {\n return json_encode($data);\n }", "title": "" }, { "docid": "388ed9f09f81d33ab5c8c43eb97e569b", "score": "0.6501006", "text": "public function jsonSerialize()\n {\n return $this->data;\n }", "title": "" }, { "docid": "3484950bcf575189d2bbd394840064aa", "score": "0.64921814", "text": "protected function serializeData($data)\n {\n return Yii::createObject($this->serializer)->serialize($data);\n }", "title": "" }, { "docid": "86dd4133dbcc2c850555c9e4c1eb1432", "score": "0.64850515", "text": "protected function before_save() {\n $this->data = json_encode($this->data);\n }", "title": "" }, { "docid": "6bd995f54c4e712c466034657579ed9f", "score": "0.64848256", "text": "public function jsonSerialize()\r\n {\r\n// $this->valueType = \"string\";\r\n $this->props('type',$this->uploadType);\r\n $this->props('limit',$this->limit);\r\n $this->props('uploadComponent',self::UPLOADTYPE[$this->uploadType]);\r\n $this->props('uploadProps',$this->uploadProps);\r\n return array_merge(parent::jsonSerialize(), []);\r\n }", "title": "" }, { "docid": "f7c7c23b9a053c501dc4a8b2d5f04e68", "score": "0.6456689", "text": "public function jsonSerialize()\r\n {\r\n $json = array();\r\n $json['allowChildren'] = $this->allowChildren;\r\n $json['daysInAdvance'] = $this->daysInAdvance;\r\n $json['description'] = $this->description;\r\n $json['descriptionTranslated'] = $this->descriptionTranslated;\r\n $json['durationDays'] = $this->durationDays;\r\n $json['durationHours'] = $this->durationHours;\r\n $json['durationMinutes'] = $this->durationMinutes;\r\n $json['hasChildPrice'] = $this->hasChildPrice;\r\n $json['instantConfirmation'] = $this->instantConfirmation;\r\n $json['isNonRefundable'] = $this->isNonRefundable;\r\n $json['maxAdultAge'] = $this->maxAdultAge;\r\n $json['maxChildAge'] = $this->maxChildAge;\r\n $json['minAdultAge'] = $this->minAdultAge;\r\n $json['minChildAge'] = $this->minChildAge;\r\n $json['paxMax'] = $this->paxMax;\r\n $json['paxMin'] = $this->paxMin;\r\n $json['prices'] = $this->prices;\r\n $json['recommendedMarkup'] = $this->recommendedMarkup;\r\n $json['title'] = $this->title;\r\n $json['titleTranslated'] = $this->titleTranslated;\r\n $json['uuid'] = $this->uuid;\r\n $json['voucherRedemptionAddress'] = $this->voucherRedemptionAddress;\r\n $json['voucherRedemptionAddressTranslated'] = $this->voucherRedemptionAddressTranslated;\r\n $json['voucherUse'] = $this->voucherUse;\r\n $json['voucherUseTranslated'] = $this->voucherUseTranslated;\r\n $json['timeSlots'] = $this->timeSlots;\r\n\r\n return $json;\r\n }", "title": "" }, { "docid": "61c4d7548ba4998b7a98779c9fd51493", "score": "0.6445798", "text": "function jsonSerialize()\n {\n return array(\n \"id\" => $this->getId(),\n \"content\" => $this->getContent(),\n \"author\" => $this->getAuthor(),\n \"date\" => $this->getDate()->format('Y-m-d H:m:s')\n );\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" }, { "docid": "de56b22b3eb203bf37e399d1a44bf406", "score": "0.64359766", "text": "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "title": "" } ]
f93aad1ccc12b545e89bdd1cc4e3cfd1
Event handlers Handles the adaptable module creation on the central repository
[ { "docid": "e3ab3d6db7f49d6a6caf344973b560cf", "score": "0.0", "text": "function eu4all_mr_adaptable_created_handler($eventdata){\n\t\n\teu4all_mr_adaptable_updated_handler($eventdata);\n\t\n\treturn true;\n}", "title": "" } ]
[ { "docid": "d9a00aecf03d4697d8b0e08bd0d5f01e", "score": "0.6209204", "text": "function installModule() {\n\t\t$extract_directory = storage_path() . '/modules/ext/';\n\t\t$sql_directory = storage_path() . '/modules/ext/SQL/';\n\t\t$file_directory = storage_path() . '/modules/ext/files/';\n\t\t$module_target = storage_path() . '/modules/module.tar.gz';\n\t\t$module_json_target = storage_path() . '/modules/ext/module.json';\n\t\t$archivist \t= new Module_Archiver();\n\t\t$scribe \t= new Module_SqlHandler();\n\t\t$librarian \t= new Module_FileHandler();\n\t\t$editor \t= new Module_CodeHandler();\n\t\t// \t// echo \"\\nExtracting package...\\n\";\n\t\t// $extract = $archivist->unpack($module_target, $extract_directory);\n\t\t// \t// echo \"\\nDONE!\\n\"; \t\n\t\t// \t// echo \"\\nRunning SQL scripts...\\n\";\n\t\t// \t// $_POST['directory'] = $sql_directory;\n\t\t// \t// return false;\n\t\t$queries = $scribe->executeScripts($sql_directory);\n\n\t\t// \t// echo \"\\nDONE!\\n\";\n\t\t// \t// echo \"\\nCopying file structure...\\n\";\n\t\t\t$files \t\t= $librarian->copyDirectoryStructure($file_directory, base_path());\n\t\t// \t// echo \"\\nDONE!\\n\";\n\t\t// \t// echo \"\\nInjecting code...\\n!\";\n\t\t\t$editor->writeCode($module_json_target);\n\t\t// \t// echo \"\\nDONE!\\n\";\n\t\t// \treturn $extract_directory;\n\t\t\treturn TRUE;\n\t\t// } catch (Exception $e) {\n\t\t// \techo $e->getMessage();\n\t\t// \treturn FALSE;\n\t\t// }\n\t}", "title": "" }, { "docid": "3da3c2a9e9cbedcbda374d922325afba", "score": "0.60781425", "text": "public function testMakingAListenerWithModuleInWorkbench () : void\n {\n $this->initModules();\n\n // And I have a module\n $module = \"TestModule\" ;\n $this->createModule($module);\n\n // And my module is set to my workbench\n $this->moduleManager->setWorkbench($module);\n\n // And I make a listener\n $listener = \"NewListener\";\n $response = $this->artisan(\"make:listener\", [\"name\" => $listener]);\n $response->expectsOutput(\"Listener created successfully.\");\n $response->run();\n\n // I should have a listener in my module\n// $this->assertTrue(class_exists($this->moduleManager->getModuleNameSpace($module) . \"Listeners\\\\$listener\"));\n $this->assertTrue(is_file(base_path(config(\"modules.root\") . \"/$module/Listeners/$listener.php\")));\n }", "title": "" }, { "docid": "2a3b448b9109c2aedea262d3fda6349e", "score": "0.60648763", "text": "public function main() {\n\t\t$modules=$this->getList();\n\t\tforeach($this->_modules as $module) {\n\t\t\tif(!is_dir(APPLICATION_PATH.'/modules/'.strtolower($module))) {\n\t\t\t\t$this->createmodule($module);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "659b05034da9b820e7e5693528a7fa15", "score": "0.6058484", "text": "public function install_module_register()\n {\n $this->EE->db->insert('modules', array(\n 'has_cp_backend' => 'y',\n 'has_publish_fields' => 'n',\n 'module_name' => ucfirst($this->get_package_name()),\n 'module_version' => $this->get_package_version()\n ));\n }", "title": "" }, { "docid": "84c87fc613d47a4bd8e40690872dd94c", "score": "0.6032918", "text": "abstract protected function createModule(...$args);", "title": "" }, { "docid": "5931817d327b854aeb2c9f858b7908a3", "score": "0.6030034", "text": "protected function getModuleInformation(): void\n {\n $this->container['name'] = Str::slug($this->argument('name'));\n $directory = base_path(sprintf('%s/%s', $this->getModulesDirectory(), $this->container['name']));\n if ($this->files->exists($directory)) {\n $this->error('The module path already exists');\n exit();\n }\n\n $this->container['path'] = $directory;\n $this->container['authors']['name'] = $this->ask('Author name of module:', config('modules.authors.name'));\n $this->container['authors']['email'] = $this->ask('Author email of module:', config('modules.authors.email'));\n $this->container['description'] = $this->ask('Description of module:', '');\n $this->container['namespace'] = $this->ask(\n 'Namespace of module:',\n config('modules.namespace') . '\\\\' . Str::studly($this->container['name'])\n );\n }", "title": "" }, { "docid": "5966369f2b3ce7216e9469e187a930e4", "score": "0.6015044", "text": "private function ConstructModules(){\n\n $blocks = $this->SiteStructure->getPageBlocks();\n\n /*** Naf Module ***/\n if (NAF_MODULE_ENABLE){\n\n if ($this->AttributeOperations->getModuleType() == \"naf\" || NAF_LATEST_ELEMENTS_DISPLAY){\n\n $this->ModuleNAF = new ModuleNAF($this->MySQL, $this->SiteStructure, $this->AttributeOperations, $this->InputFilter, $this->Session);\n\n }\n }\n\n /*** Catalogue Module ***/\n if (CATALOGUE_MODULE_ENABLE){\n\n if ($this->AttributeOperations->getModuleName() == \"catalogue\" || $this->AttributeOperations->getModuleName() == \"invcatalogue\" || CATALOGUE_DISPLAY_MENU_ALWAYS || CATALOGUE_MODULE_DISPLAY_LATEST_PRODUCTS || CATALOGUE_MODULE_DISPLAY_RANDOM_PRODUCTS){\n\n $this->ModuleCatalogue = new ModuleCatalogue($this->MySQL, $this->SiteStructure, $this->AttributeOperations, $this->InputFilter, $this->Session);\n\n }\n }\n\n /*** Gallery Module ***/\n if (GALLERY_MODULE_ENABLE){\n\n if ($this->AttributeOperations->getModuleName() == \"gallery\" || GALLERY_DISPLAY_MENU_ALWAYS){\n\n $this->ModuleGallery = new ModuleGallery($this->MySQL, $this->SiteStructure, $this->AttributeOperations, $this->InputFilter);\n\n }\n }\n\n /*** Feedback Module ***/\n if (FEEDBACK_MODULE_ENABLE){\n\n foreach($blocks as $block){\n\n if (preg_match(\"/feedback/i\", $block)){\n\n $this->ModuleFeedback = new ModuleFeedback($this->SiteStructure, $this->InputFilter, $this->Smarty);\n\n break;\n }\n }\n }\n\n /*** Vote Module ***/\n if (VOTE_MODULE_ENABLE){\n\n if ($this->AttributeOperations->getModuleName() == \"vote\"){\n\n $this->ModuleVote = new ModuleVote($this->MySQL, $this->SiteStructure, $this->InputFilter, $this->Session);\n\n } else {\n\n foreach($blocks as $block){\n\n if (preg_match(\"/vote/i\", $block)){\n\n $this->ModuleVote = new ModuleVote($this->MySQL, $this->SiteStructure, $this->InputFilter, $this->Session);\n\n break;\n }\n }\n }\n }\n\n /*** Counter Module ***/\n if (USE_COUNTER){\n\n $this->ModuleCounter = new ModuleCounter($this->MySQL, $this->InputFilter);\n\n }\n\n /*** Search Module ***/\n if (SEARCH_ENABLE){\n\n if ($this->AttributeOperations->getModuleName() == \"search\"){\n\n $this->ModuleNAF = new ModuleNAF($this->MySQL, $this->SiteStructure, $this->AttributeOperations, $this->InputFilter, $this->Session);\n $this->ModuleCatalogue = new ModuleCatalogue($this->MySQL, $this->SiteStructure, $this->AttributeOperations, $this->InputFilter, $this->Session);\n //$this->ModuleGallery = new ModuleGallery($this->MySQL, $this->SiteStructure, $this->AttributeOperations, $this->InputFilter);\n\n $this->ModuleSearch = new ModuleSearch($this->MySQL, $this->SiteStructure, $this->InputFilter, $this->ModuleNAF, $this->ModuleCatalogue, $this->ModuleGallery);\n\n }\n }\n\n /*** Files Module ***/\n if (FILES_MODULE_ENABLE){\n\n if ($this->AttributeOperations->getModuleName() == \"files\"){\n $this->ModuleFiles = new ModuleFiles($this->Session, $this->SiteStructure, 1);\n } else {\n $this->ModuleFiles = new ModuleFiles($this->Session, $this->SiteStructure, 0);\n }\n }\n\n /*** Static Module ***/\n if (defined(\"STATIC_MODULE_ENABLE\") && STATIC_MODULE_ENABLE){\n if ($this->AttributeOperations->getModuleName() == \"static\"){\n $this->ModuleStatic = new ModuleStatic($this->MySQL, $this->SiteStructure, $this->InputFilter, $this->Session);\n }\n }\n }", "title": "" }, { "docid": "1b89c1c39df0e2cabd9b56104e3f56b2", "score": "0.6003283", "text": "public function install_module_register()\n {\n $this->_EE->db->insert('modules', array(\n 'module_name' => ucfirst($this->get_package_name()),\n 'module_version' => $this->get_package_version(),\n 'has_cp_backend' => 'y',\n 'has_publish_fields' => 'n',\n ));\n }", "title": "" }, { "docid": "e1ac3b7a843da12a8edd201072df547b", "score": "0.5985993", "text": "public function afterOtherModuleInit(CHOQ_Module $module){}", "title": "" }, { "docid": "9e8d53f3c7fafee150e0cece93760457", "score": "0.597368", "text": "function ___modules_pre () {\n \n // The main resource\n $this->_register_resource ( XS_MODULE, $this->api_base ) ;\n \n }", "title": "" }, { "docid": "989d416dd4f9f71d35b7d3a13ff4f988", "score": "0.57099503", "text": "function add_module($module_code)\r\n\t{\r\n\t\tglobal $CONN, $CONFIG;\r\n\t\t\r\n\t\t$date_added\t\t\t= $CONN->DBDate(date('Y-m-d H:i:s'));\r\n\t\t$name\t\t\t = $_POST['name'];\r\n\t\t$description\t = $_POST['description'];\t\t \r\n\t\t$space_key\t\t\t = $_POST['space_key'];\r\n\t\t$parent_key\t\t\t= $_POST['parent_key'];\r\n\t\t$block_key\t\t\t= $_POST['block_key'];\r\n\t\t$status_key\t\t\t= $_POST['status_key'];\r\n\t\t$icon_key\t\t\t = $_POST['icon_key'];\r\n\t\t$group_key\t\t\t = $_POST['group_key'];\r\n\t\t$change_status_key\t = $_POST['change_status_key'];\r\n\t\t$sort_order\t\t\t= $_POST['sort_order'];\r\n\t\t$target\t\t\t\t= $_POST['target'];\r\n\t\t$module_edit_rights\t= $_POST['module_edit_rights'];\r\n\t\t$link_edit_rights\t = $_POST['link_edit_rights'];\t\t\r\n\t\t$access_level_key\t = isset($_POST['access_level_key']) ? $_POST['access_level_key'] : '0';\r\n\t\t$current_user_key\t = $_SESSION['current_user_key'];\r\n\r\n\t\tif ($_POST['change_status_date_day']!='' && $_POST['change_status_date_month']!='') {\r\n\t\t\r\n\t\t\t$change_status_date\t= $_POST['change_status_date_year'].'-'.$_POST['change_status_date_month'].'-'.$_POST['change_status_date_day'];\r\n\t\t\r\n\t\t} else {\r\n\t\t\r\n\t\t\t $change_status_date\t= '';\r\n\t\t\r\n\t\t}\t\t\r\n\t\t\t\t\r\n\t\t//if child and no status set then inherit status of parent module\r\n\r\n\t\tif ($parent_key!='' && !$status_key) {\r\n\r\n\t\t\t$sql = \"SELECT status_key FROM {$CONFIG['DB_PREFIX']}module_space_links WHERE link_key='$parent_key'\";\r\n\t\t\t$rs = $CONN->Execute($sql);\r\n\r\n\t\t\twhile (!$rs->EOF) {\r\n\r\n\t\t\t\t$status_key = $rs->fields[0];\r\n\t\t\t\t$rs->MoveNext();\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$rs->Close();\r\n\r\n\t\t}\r\n\r\n\t\t//if status hasn't been selected make it visible by default\r\n\t\t\r\n\t\tif (!$status_key) {\r\n\r\n\t\t\t$status_key='1';\r\n\r\n\t\t}\r\n\t\t\r\n\t\tif (!isset($icon_key) || $icon_key=='') {\r\n\r\n\t\t\t$icon_key='1';\r\n\r\n\t\t}\r\n\r\n\t\t//if edit rights haven't been selected make 'owner only' default\r\n\t\t\r\n\t\tif (!$module_edit_rights) {\r\n\t\t\r\n\t\t\t$module_edit_rights = 6;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif (!$link_edit_rights) {\r\n\t\t\r\n\t\t\t$link_edit_rights = 1;\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\t\r\n\r\n\r\n\t\t//insert relevant data into Modules table\r\n\r\n\t\t$sql = \"INSERT INTO {$CONFIG['DB_PREFIX']}modules(module_key,type_code,name,description,added_by_key,owner_key,date_added,modified_by_key,date_modified,edit_rights_key) values ('','$module_code','$name','$description', '$current_user_key','$current_user_key',$date_added,'','','$module_edit_rights')\";\r\n\r\n\t\tif ($CONN->Execute($sql) === false) {\r\n\t \r\n\t\t\t$message = 'There was an error adding your '.$module_code.$CONN->ErrorMsg().' <br />';\r\n\t\t\treturn $message;\r\n\r\n\t\t} else {\r\n\r\n\t\t\t//insert relevant data into ModuleSpacelinks table\r\n\t\t\r\n\t\t\t$module_key = $CONN->Insert_ID(); \r\n\t\t\t\r\n\t\t\t$sql = \"INSERT INTO {$CONFIG['DB_PREFIX']}module_space_links(module_key, space_key, parent_key, block_key, group_key, status_key, icon_key, added_by_key, owner_key,date_added, modified_by_key, date_modified, edit_rights_key, change_status_date, change_status_to_key, sort_order, target, access_level_key) values ('$module_key','$space_key','$parent_key', '$block_key', '$group_key', '$status_key','$icon_key','$current_user_key','$current_user_key',$date_added,'','','$link_edit_rights','$change_status_date','$change_status_key','$sort_order','$target', '$access_level_key')\";\r\n\r\n\t\t\tif ($CONN->Execute($sql) === false) {\r\n\t \r\n\t\t\t\t$message = \"There was an error adding your $module_code: \".$CONN->ErrorMsg().' <br />';\r\n\t\t\t\t$sql = \"DELETE FROM {$CONFIG['DB_PREFIX']}modules WHERE module_key='$module_key'\";\r\n\t\t\t\t$CONN->Execute($sql);\r\n\t\t\t\treturn $message;\r\n\r\n\t\t\t} else {\r\n\t\t\t\r\n\t\t\t\t$link_key = $CONN->Insert_ID();\r\n\t\t\t\t$module_link_data['change_status_date'] = $change_status_date;\r\n\t\t\t\t$module_link_data['change_status_key'] = $change_status_key;\r\n\t\t\t\t$module_link_data['sort_order']\t\t = $sort_order;\r\n\t\t\t\t$module_link_data['target']\t\t\t = $target;\r\n\t\t\t\t$module_link_data['link_edit_rights'] = $link_edit_rights;\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//if this module has been added to a module then add links to it in any\r\n\t\t\t\t//linked copies of the module\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t$this->add_sybling_links($link_key,$parent_key,$module_key,$module_link_data);\r\n\r\n\t\t\t\t//call the add function for this type of module\r\n\t\t\t\t\r\n\t\t\t\t$add_function = 'add_'.$module_code;\r\n\t\t\t\t$message = $add_function($module_key);\r\n\t\t\t\tif ($message===true) {\r\n\t\t\t\t\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\r\n\t\t\t\t\t$CONN->Execute(\"DELETE FROM {$CONFIG['DB_PREFIX']}modules where module_key='$module_key'\");\r\n\t\t\t\t\t$CONN->Execute(\"DELETE FROM {$CONFIG['DB_PREFIX']}module_space_links where link_key='$link_key'\");\t\t\t\t\t\r\n\t\t\t\t\treturn $message;\r\n\t\t\t\t\r\n\t\t\t\t} \r\n\r\n\t\t\t}\r\n\t\t}\t\t\r\n\r\n\t}", "title": "" }, { "docid": "ea71b84268ac609b5fb6173cd4aec02b", "score": "0.5692855", "text": "public function update() {\n\t\tMy_Class_Maerdo_Console::display(\"2\",\"Creating modules\");\t\t\t\t\t\n\t\t$this->main();\n\t}", "title": "" }, { "docid": "605afafe306fb96b83d883f2a269241e", "score": "0.5653338", "text": "public function run()\n { \n\n $module = new Module();\n $module->module_description = 'Aportes';\n $module->correlative_module = 1;\n $module->request = '';\n $module->icon_module = 'ni ni-collection text-green';\n $module->save();\n\n $module = new Module();\n $module->module_description = 'Catálogo';\n $module->correlative_module = 2;\n $module->request = '';\n $module->icon_module = 'ni ni-books text-red';\n $module->save();\n\n $module = new Module();\n $module->module_description = 'Preguntas';\n $module->correlative_module = 3;\n $module->request = '';\n $module->icon_module = 'ni ni-air-baloon text-yellow';\n $module->save();\n\n $module = new Module();\n $module->module_description = 'Configuraciones';\n $module->correlative_module = 4;\n $module->request = '';\n $module->icon_module = 'ni ni-settings-gear-65 text-info';\n $module->save();\n }", "title": "" }, { "docid": "b6cb611f0292bc52846f1833100d8153", "score": "0.5634606", "text": "public function run() {\n\n /** * ***************************************************** */\n // <editor-fold defaultstate=\"collapsed\" desc=\"User & Security Modules\">\n\n $securityModules = [\n [\"code\" => \"UA\", \"display_name\" => \"User Accounts\"],\n [\"code\" => \"RL\", \"display_name\" => \"Roles\"],\n [\"code\" => \"ACL\", \"display_name\" => \"Access Control List\"],\n ];\n\n Module::insert($securityModules);\n\n // </editor-fold>\n\n /** * ***************************************************** */\n // <editor-fold defaultstate=\"collapsed\" desc=\"Payroll Modules\">\n\n $payrollModules = [\n [\"code\" => \"PAY_ENTS\", \"display_name\" => \"Payroll Entries\"],\n [\"code\" => \"PAY_PROC\", \"display_name\" => \"Payroll Process\"],\n ];\n\n Module::insert($payrollModules);\n\n // </editor-fold>\n\n /** * ***************************************************** */\n // <editor-fold defaultstate=\"collapsed\" desc=\"Timekeeping Modules\">\n\n $timekeepingModules = [\n [\"code\" => \"EMP_TE\", \"display_name\" => \"Employee Time Entries\"]\n ];\n\n Module::insert($timekeepingModules);\n\n // </editor-fold>\n\n /** * ***************************************************** */\n // <editor-fold defaultstate=\"collapsed\" desc=\"Employee Self Service Modules\">\n\n $ESSModules = [\n [\"code\" => \"SS_WSCHED\", \"display_name\" => \"Work Schedule Adjs.\"],\n [\"code\" => \"OT_REQ\", \"display_name\" => \"Overtime Request\"],\n [\"code\" => \"LV_REQ\", \"display_name\" => \"Leave Request\"],\n ];\n\n Module::insert($ESSModules);\n\n // </editor-fold>\n\n /** * ***************************************************** */\n // <editor-fold defaultstate=\"collapsed\" desc=\"Report Modules\">\n\n $reportModules = [\n [\"code\" => \"PAY_SLP\", \"display_name\" => \"Payslip\"],\n [\"code\" => \"BNK_REMIT\", \"display_name\" => \"Bank Remittance\"],\n [\"code\" => \"CASH_PAY\", \"display_name\" => \"Cash Payables\"],\n [\"code\" => \"PHLTH_PAY\", \"display_name\" => \"Philhealth Payables\"],\n [\"code\" => \"SSS_PAY\", \"display_name\" => \"SSS Payables\"],\n [\"code\" => \"TAX_PAY\", \"display_name\" => \"Tax Withheld Payables\"]\n ];\n\n Module::insert($reportModules);\n\n // </editor-fold>\n\n\n /** * ***************************************************** */\n // <editor-fold defaultstate=\"collapsed\" desc=\"Master File Modules\">\n\n $SYSMasterFileModules = [\n [\"code\" => \"NS\", \"display_name\" => \"Number Series\"],\n [\"code\" => \"COM\", \"display_name\" => \"Company\"],\n [\"code\" => \"LOC\", \"display_name\" => \"Location\"],\n [\"code\" => \"BNK\", \"display_name\" => \"Bank\"]\n ];\n\n Module::insert($SYSMasterFileModules);\n\n $HRMasterFileModules = [\n [\"code\" => \"EMP\", \"display_name\" => \"Employee\"],\n [\"code\" => \"PLCY\", \"display_name\" => \"Policy\"],\n [\"code\" => \"HOL\", \"display_name\" => \"Holiday\"],\n [\"code\" => \"SHFT\", \"display_name\" => \"Shift\"],\n [\"code\" => \"WORK_SCHED\", \"display_name\" => \"Work Schedule\"]\n ];\n\n Module::insert($HRMasterFileModules);\n\n $PayrollMasterFileModules = [\n [\"code\" => \"PAY_ITEMS\", \"display_name\" => \"Payroll Items\"],\n [\"code\" => \"TAX_CAT\", \"display_name\" => \"Tax Categories\"],\n [\"code\" => \"TAX_TBL\", \"display_name\" => \"Tax Table\"],\n [\"code\" => \"SSS_TBL\", \"display_name\" => \"SSS Table\"],\n [\"code\" => \"PHLTH_TBL\", \"display_name\" => \"Philhealth Table\"]\n ];\n\n Module::insert($PayrollMasterFileModules);\n\n // </editor-fold>\n }", "title": "" }, { "docid": "891354fe6fa21e30792d742ab177326a", "score": "0.5634063", "text": "function initialize() {\n $zibo = Zibo::getInstance();\n $zibo->registerEventListener(Installer::EVENT_PRE_INSTALL_MODULE, array($this, 'preInstallModule'));\n }", "title": "" }, { "docid": "3020e2a4435c93ff4bf1350e2d9616c8", "score": "0.56255126", "text": "public function register_module() {\n add_action('admin_menu', array($this, 'add_menu'));\n\n // Add target area AJAX handlers\n add_action('wp_ajax_add_target_area', array($this, 'add_area'));\n add_action('wp_ajax_delete_target_area', array($this, 'delete_area'));\n add_action('wp_ajax_edit_target_area', array($this, 'edit_area'));\n\n // Add affiliation AJAX handlers\n add_action('wp_ajax_add_affiliation', array($this, 'add_affiliation'));\n add_action('wp_ajax_delete_affiliation', array($this, 'delete_affiliation'));\n }", "title": "" }, { "docid": "188b910cd932d5c9ae324925094c652e", "score": "0.5622862", "text": "public function init()\n\t{\n\t\t// you may place code here to customize the module or the application\n\n\t\t// import the module-level models and components\n\t\t$this->setImport(array(\n\t\t\t'OAuth.models.*',\n\t\t\t'OAuth.components.*',\n\t\t\t'OAuth.controllers.*',\n\t\t));\n\n\t\t// For each module that is installed, initialise it\n\t\tforeach ($this->getModules() as $lcName => $loModule)\n\t\t{\n\t\t\t$loModule = $this->getModule($lcName);\n\t\t}\n\n\t\t// Register for events we want to handle\n\t\t$this->getParentModule()->onPrepareRegistration = array($this, 'injectOAuthRegistration');\n\t\t$this->getParentModule()->onPrepareSignIn = array($this, 'injectOAuthSignIn');\n\t}", "title": "" }, { "docid": "a8a3eb687ca4c72b8dfd2161930555ae", "score": "0.56183916", "text": "public function init_modules($app) {\n\n $this->app = $app;\n\n // Adds a setting field that allows a git branch to be specifed for syncing\n $this->load_module('sync-branch');\n\n // Imports images from git hub and translates paths \n $this->load_module('image-path');\n\n // Updates and filers post meta flowing in both directions\n $this->load_module('post-meta');\n\n // Sets page parent based on git uri\n $this->load_module('parent-path');\n\n // match file name in git to slug\n $this->load_module('filename');\n\n }", "title": "" }, { "docid": "c52b413c474ea18f51b9db9244621d59", "score": "0.56079143", "text": "protected function register_addon($addon_controller_name=\"\",$sidebar=array(),$sql=array(),$purchase_code=\"\",$default_module_name=\"\")\n {\n if($this->session->userdata('user_type') != 'Admin')\n {\n echo json_encode(array('status'=>'0','message'=>$this->lang->line('Access Forbidden')));\n exit();\n }\n\n if($this->is_demo == '1')\n {\n echo json_encode(array('status'=>'0','message'=>$this->lang->line('Access Forbidden')));\n exit();\n }\n\n if($addon_controller_name==\"\")\n {\n echo json_encode(array('status'=>'0','message'=>$this->lang->line('Add-on controller has not been provided.')));\n exit();\n }\n\n $path=APPPATH.\"modules/\".strtolower($addon_controller_name).\"/controllers/\".$addon_controller_name.\".php\"; // path of addon controller\n $install_txt_path=APPPATH.\"modules/\".strtolower($addon_controller_name).\"/install.txt\"; // path of install.txt\n if(!file_exists($path))\n {\n echo json_encode(array('status'=>'0','message'=>$this->lang->line('Add-on controller not found.')));\n exit();\n }\n\n $addon_data=$this->get_addon_data($path);\n\n $this->check_addon_data($addon_data);\n\n try\n {\n $this->db->trans_start();\n\n // addon table entry\n $this->basic->insert_data(\"add_ons\",array(\"add_on_name\"=>$addon_data['addon_name'],\"unique_name\"=>$addon_data[\"unique_name\"],\"version\"=>$addon_data[\"version\"],\"installed_at\"=>date(\"Y-m-d H:i:s\"),\"purchase_code\"=>$purchase_code,\"module_folder_name\"=>strtolower($addon_controller_name),\"project_id\"=>$addon_data[\"project_id\"]));\n $add_ons_id=$this->db->insert_id();\n\n $parent_module_id=\"\";\n $modules = isset($addon_data['modules']) ? json_decode(trim($addon_data['modules']),true) : array();\n\n if(json_last_error() === 0 && is_array($modules))\n {\n $module_ids = array_keys($modules);\n $parent_module_id=implode(',', $module_ids);\n\n foreach($modules as $key => $value)\n {\n if(!$this->basic->is_exist(\"modules\",array(\"id\"=>$key)))\n $this->basic->insert_data(\"modules\",array(\"id\"=>$key,\"extra_text\"=>$value['extra_text'],\"module_name\"=>$value['module_name'],'bulk_limit_enabled'=>$value['bulk_limit_enabled'],'limit_enabled'=>$value['limit_enabled'],\"add_ons_id\"=>$add_ons_id,\"deleted\"=>\"0\"));\n }\n }\n\n //--------------- sidebar entry--------------------\n //-------------------------------------------------\n if(is_array($sidebar))\n foreach ($sidebar as $key => $value)\n {\n $parent_name = isset($value['name']) ? $value['name'] : \"\";\n $parent_icon = isset($value['icon']) ? $value['icon'] : \"\";\n $parent_url = isset($value['url']) ? $value['url'] : \"#\";\n $parent_is_external = isset($value['is_external']) ? $value['is_external'] : \"0\";\n $child_info = isset($value['child_info']) ? $value['child_info'] : array();\n $have_child = isset($child_info['have_child']) ? $child_info['have_child'] : '0';\n $only_admin = isset($value['only_admin']) ? $value['only_admin'] : '0';\n $only_member = isset($value['only_member']) ? $value['only_member'] : '0';\n $parent_serial = 50;\n\n $parent_menu=array('name'=>$parent_name,'icon'=>$parent_icon,'url'=>$parent_url,'serial'=>$parent_serial,'module_access'=>$parent_module_id,'have_child'=>$have_child,'only_admin'=>$only_admin,'only_member'=>$only_member,'add_ons_id'=>$add_ons_id,'is_external'=>$parent_is_external);\n $this->basic->insert_data('menu',$parent_menu); // parent menu entry\n $parent_id=$this->db->insert_id();\n\n if($have_child=='1')\n {\n if(!empty($child_info))\n {\n $child = isset($child_info['child']) ? $child_info['child'] : array();\n\n $child_serial=0;\n if(!empty($child))\n foreach ($child as $key2 => $value2)\n {\n $child_serial++;\n $child_name = isset($value2['name']) ? $value2['name'] : \"\";\n $child_icon = isset($value2['icon']) ? $value2['icon'] : \"\";\n $child_url = isset($value2['url']) ? $value2['url'] : \"#\";\n $child_info_1 = isset($value2['child_info']) ? $value2['child_info'] : array();\n $child_is_external = isset($value2['is_external']) ? $value2['is_external'] : \"0\";\n $have_child = isset($child_info_1['have_child']) ? $child_info_1['have_child'] : '0';\n $only_admin = isset($value2['only_admin']) ? $value2['only_admin'] : '0';\n $only_member = isset($value2['only_member']) ? $value2['only_member'] : '0';\n $module_access = isset($value2['module_access']) ? $value2['module_access'] : '';\n if($module_access=='') $module_access = $parent_module_id;\n\n $child_menu=array('name'=>$child_name,'icon'=>$child_icon,'url'=>$child_url,'serial'=>$child_serial,'module_access'=>$module_access,'parent_id'=>$parent_id,'have_child'=>$have_child,'only_admin'=>$only_admin,'only_member'=>$only_member,'is_external'=>$child_is_external);\n $this->basic->insert_data('menu_child_1',$child_menu); // child menu entry\n $sub_parent_id=$this->db->insert_id();\n\n if($have_child=='1')\n {\n if(!empty($child_info_1))\n {\n $child = isset($child_info_1['child']) ? $child_info_1['child'] : array();\n\n $child_child_serial=0;\n if(!empty($child))\n foreach ($child as $key3 => $value3)\n {\n $child_child_serial++;\n $child_name = isset($value3['name']) ? $value3['name'] : \"\";\n $child_icon = isset($value3['icon']) ? $value3['icon'] : \"\";\n $child_url = isset($value3['url']) ? $value3['url'] : \"#\";\n $child_is_external = isset($value3['is_external']) ? $value3['is_external'] : \"0\";\n $have_child = '0';\n $only_admin = isset($value3['only_admin']) ? $value3['only_admin'] : '0';\n $only_member = isset($value3['only_member']) ? $value3['only_member'] : '0';\n $module_access2 = isset($value3['module_access']) ? $value3['module_access'] : '';\n if($module_access2=='') $module_access2 = $module_access;\n\n $child_menu=array('name'=>$child_name,'icon'=>$child_icon,'url'=>$child_url,'serial'=>$child_child_serial,'module_access'=>$module_access2,'parent_child'=>$sub_parent_id,'only_admin'=>$only_admin,'only_member'=>$only_member,'is_external'=>$child_is_external);\n $this->basic->insert_data('menu_child_2',$child_menu); // child menu entry\n\n }\n }\n }\n }\n }\n }\n\n }\n //--------------- sidebar entry--------------------\n //-------------------------------------------------\n\n $this->db->trans_complete();\n\n\n if ($this->db->trans_status() === FALSE)\n {\n echo json_encode(array('status'=>'0','message'=>$this->lang->line('Database error. Something went wrong.')));\n exit();\n }\n else\n {\n\n //--------Custom SQL------------\n $this->db->db_debug = FALSE; //disable debugging for queries\n if(is_array($sql))\n foreach ($sql as $key => $query)\n {\n try\n {\n $this->db->query($query);\n }\n catch(Exception $e)\n {\n }\n }\n //--------Custom SQL------------\n @unlink($install_txt_path); // removing install.txt\n echo json_encode(array('status'=>'1','message'=>$this->lang->line('Add-on has been activated successfully.')));\n }\n\n } //end of try\n catch(Exception $e)\n {\n $error = $e->getMessage();\n echo json_encode(array('status'=>'0','message'=>$this->lang->line($error)));\n }\n }", "title": "" }, { "docid": "0b03abc2ff16a96a0ab1e5b817bba269", "score": "0.5598405", "text": "public static function developModule(Event $event) {\n $module_names = $event->getArguments();\n if (empty($module_names)) {\n $event->getIO()->write(\"You must specify which modules to develop.\");\n return;\n }\n $rootDir = getcwd();\n $composer = $event->getComposer();\n $installationManager = $composer->getInstallationManager();\n foreach ($module_names as $module) {\n $packages = $composer->getRepositoryManager()->getLocalRepository()->findPackages(\"drupal/{$module}\");\n if (empty($packages)) {\n $event->getIO()->write(\"Cannot find any packages matching {$module}. Skipping.\");\n continue;\n }\n foreach ($packages as $package) {\n $installPath = $installationManager->getInstallPath($package);\n $fullVersion = $package->getFullPrettyVersion(FALSE);\n $sourceUrl = $package->getSourceUrl();\n $sourceType = $package->getSourceType();\n $event->getIO()->write(\"Install Path: {$installPath}\\nFull Version: {$fullVersion}\\nSource Url: {$sourceUrl}\\n Source Type: {$sourceType}\");\n $parts = explode(' ', $fullVersion, 2);\n if (isset($parts[1])) {\n $ref = $parts[1];\n }\n else {\n // Here we need to convert a composer version string into a drupal.org tag.\n $tagish = reset($parts);\n preg_match(\"/(?P<dev>(dev-)*)(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(-(?P<stability>\\w+)(?P<stabnum>\\d+))*/\", $tagish, $matches);\n $ref = \"8.x-{$matches['major']}.\".(!empty($matches['dev']) ? 'x-dev' : $matches['minor'].(!empty($matches['stability']) ? \"-{$matches['stability']}{$matches['stabnum']}\": \"\"));\n }\n $command = \"cd {$rootDir}/{$installPath}; \";\n $command .= \"if [ -d \\\".git\\\" ]; then echo true; fi\";\n exec($command, $output, $return);\n if (in_array(\"true\", $output)) {\n $event->getIO()->write(\"Git Repository for \".$package->getPrettyName().\" is already checked out for development.\");\n }\n else {\n $command = \"cd {$rootDir}/{$installPath}; \";\n $command .= \"git init; \";\n $command .= \"git remote add origin {$sourceUrl}; \";\n $command .= \"git fetch; \";\n $command .= \"git reset {$ref}; \";\n $command .= \"git checkout {$ref}; \";\n $command .= \"cd $rootDir; \";\n exec($command, $output, $return);\n $event->getIO()->write(\"Checked out Git Repository for \".$package->getPrettyName().\" in {$rootDir}/{$installPath} at {$ref}\");\n }\n }\n }\n }", "title": "" }, { "docid": "50dbce98f537cd089eb93abcaa610f32", "score": "0.55977756", "text": "public function install(){\r\n\t\t$this->load->model('setting/extension');\r\n\t\t$this->model_setting_extension->install('module','coinremitter','coinremitter');\r\n\r\n\t\t$this->load->model('setting/extension');\r\n\t\t$this->model_setting_extension->install('module','coinremitter','coinremitter');\r\n\t\t\r\n\t\t//add event start\r\n\t\t$this->load->model('setting/event');\r\n\t\t$this->model_setting_event->deleteEventByCode('coinremitter');\r\n\t\t$data = array(\r\n\t\t\t'code' => 'coinremitter',\r\n\t\t\t'description' => '',\r\n\t\t\t'trigger' => 'admin/view/sale/order_list/before',\r\n\t\t\t'action' => 'extension/module/coinremitter/view_sale_order_list_before',\r\n\t\t\t'status' => 1,\r\n\t\t\t'sort_order' => 1\r\n\t\t);\r\n\t\t/*** Event will fire when admin clicked on order list ***/\r\n\t\t$this->model_setting_event->addEvent($data);\r\n\t\t\r\n\t\t$data = array(\r\n\t\t\t'code' => 'coinremitter',\r\n\t\t\t'description' => '',\r\n\t\t\t'trigger' => 'admin/view/sale/order_info/before',\r\n\t\t\t'action' => 'extension/module/coinremitter/view_sale_order_info_before',\r\n\t\t\t'status' => 1,\r\n\t\t\t'sort_order' => 1\r\n\t\t);\r\n\t\t/*** Event will fire when admin clicked on particular order detail ***/\r\n\t $this->model_setting_event->addEvent($data);\r\n\r\n\r\n\t\t$data = array(\r\n\t\t\t'code' => 'coinremitter',\r\n\t\t\t'description' => '',\r\n\t\t\t'trigger' => 'catalog/view/account/order_list/before',\r\n\t\t\t'action' => 'extension/module/coinremitter/view_account_order_list_before',\r\n\t\t\t'status' => 1,\r\n\t\t\t'sort_order' => 1\r\n\t\t);\r\n\t /*** Event will fire when user clicked on order list ***/\r\n\t $this->model_setting_event->addEvent($data);\r\n\r\n\r\n\t\t$data = array(\r\n\t\t\t'code' => 'coinremitter',\r\n\t\t\t'description' => '',\r\n\t\t\t'trigger' => 'catalog/view/account/order_info/before',\r\n\t\t\t'action' => 'extension/module/coinremitter/view_account_order_info_before',\r\n\t\t\t'status' => 1,\r\n\t\t\t'sort_order' => 1\r\n\t\t);\r\n\t /*** Event will fire when user clicked on particular order detail ***/\r\n\t $this->model_setting_event->addEvent($data);\r\n\r\n\t\t//add event end\r\n\r\n\t\t$json = [];\r\n\r\n\t\tif (!$json) {\r\n\t\t\t$this->load->model('setting/setting');\r\n\r\n\t\t\t$this->model_setting_setting->editSetting('module_coinremitter', $this->request->post);\r\n\r\n\t\t\t$json['success'] = $this->language->get('text_success');\r\n\r\n\t\t\t \t$default_settings = array(\r\n\t\t \t\t'module_coinremitter_title' => 'Coinremitter',\r\n\t\t \t\t'module_coinremitter_status' => 1,\r\n\t\t \t);\r\n\t\t\t$this->model_setting_setting->editSetting('module_coinremitter', $default_settings);\r\n\t\t}\r\n\r\n\t\t/*** add permission for users ***/\r\n\t\t$this->load->model('user/user_group');\r\n\t\t$this->model_user_user_group->addPermission($this->user->getGroupId(), 'access', 'extension/coinremitter/module/coinremitter');\r\n\t\t$this->model_user_user_group->addPermission($this->user->getGroupId(), 'modify', 'extension/coinremitter/module/coinremitter');\r\n\t}", "title": "" }, { "docid": "b403407d38fa5a51da57d09f29f2c097", "score": "0.55742955", "text": "protected function createEvents()\n\t{\n\t\t$strategy = $this->rocketeer->getOption('remote.strategy');\n\t\t$this->halting = array(\n\t\t\t$strategy.'Repository',\n\t\t\t'runComposer',\n\t\t\t'checkTestsResults',\n\t\t);\n\t}", "title": "" }, { "docid": "0237192acd7bf529ce901631d8bb26df", "score": "0.55603594", "text": "public function testMakingAListenerWithTheModuleOption () : void\n {\n $this->initModules();\n\n // And I have two modules, of which the latter is in my workbench\n $module = \"TestModule\" ;\n $this->createModule($module);\n $otherModule = \"OtherModule\";\n $this->createModule($otherModule);\n\n // And I make a listener with the module option\n $listener = \"NewListener\";\n $response = $this->artisan(\"make:listener\", [\"name\" => $listener, \"--module\" => $module]);\n $response->expectsOutput(\"Listener created successfully.\");\n $response->run();\n\n // I should have a listener in my module\n// $this->assertTrue(class_exists($this->moduleManager->getModuleNameSpace($module) . \"Listeners\\\\$listener\"));\n $this->assertTrue(is_file(base_path(config(\"modules.root\") . \"/$module/Listeners/$listener.php\")));\n }", "title": "" }, { "docid": "622234a54af88792e48fa525b4492ff0", "score": "0.5550988", "text": "protected function createModuleInfo() {\n\t\t\treturn new Core_ModuleInfo(\n\t\t\t\t\"CyberSource Payment Gateway Module\",\n\t\t\t\t\"Adds custom payment type for CyberSource payment gateway processing\",\n\t\t\t\t\"Philip Schalm\" );\n\t\t}", "title": "" }, { "docid": "00502a03acacebedab5cd1737cf55067", "score": "0.55396825", "text": "protected function setupModulesFolder()\n {\n $this->createFolder(\n $this->module->getPath(),\n 'The modules folder has been created successful.',\n 'The modules already exist.'\n );\n }", "title": "" }, { "docid": "72c66f8ae9954628e80661ee21d5be55", "score": "0.5532666", "text": "function doCustomModules(){\n if(class_exists(\"ET_Builder_Module\")){\n require_once( dirname(__FILE__) . '/classes/divi-custom-modules.php' );\n }\n}", "title": "" }, { "docid": "9e34b940baf5d27198a84d6267204f0c", "score": "0.55288345", "text": "protected function __register_module()\n {\n Module::create([\n 'name' => $this->module,\n 'name_plural' => $this->modulePlural,\n 'icon_class_name' => $this->moduleIcon\n ]);\n }", "title": "" }, { "docid": "d4c36d20df20bcff7bb7f58ffb08fcee", "score": "0.5515733", "text": "abstract public function initRepositories();", "title": "" }, { "docid": "b2af767394b14d409fd2b4da23177924", "score": "0.5499108", "text": "private function installModules()\n\t{\n\t\t// The default extras to add to every page after installation of all modules and to add to the default templates.\n\t\t$defaultExtras = array();\n\n\t\t// init var\n\t\t$warnings = array();\n\n\t\t/**\n\t\t * First we need to install the core. All the linked modules, settings and sql tables are\n\t\t * being installed.\n\t\t */\n\t\trequire_once PATH_WWW . '/backend/core/installer/installer.php';\n\n\t\t// create the core installer\n\t\t$installer = new CoreInstaller(\n\t\t\t$this->getContainer()->get('database'),\n\t\t\tSpoonSession::get('languages'),\n\t\t\tSpoonSession::get('interface_languages'),\n\t\t\tSpoonSession::get('example_data'),\n\t\t\tarray(\n\t\t\t\t'default_language' => SpoonSession::get('default_language'),\n\t\t\t\t'default_interface_language' => SpoonSession::get('default_interface_language'),\n\t\t\t\t'spoon_debug_email' => SpoonSession::get('email'),\n\t\t\t\t'api_email' => SpoonSession::get('email'),\n\t\t\t\t'site_domain' => (isset($_SERVER['HTTP_HOST'])) ? $_SERVER['HTTP_HOST'] : 'fork.local',\n\t\t\t\t'site_title' => 'Fork CMS',\n\t\t\t\t'smtp_server' => '',\n\t\t\t\t'smtp_port' => '',\n\t\t\t\t'smtp_username' => '',\n\t\t\t\t'smtp_password' => ''\n\t\t\t)\n\t\t);\n\n\t\t// install the core\n\t\t$installer->install();\n\n\t\t// add the warnings\n\t\t$moduleWarnings = $installer->getWarnings();\n\t\tif(!empty($moduleWarnings)) $warnings[] = array('module' => 'core', 'warnings' => $moduleWarnings);\n\n\t\t// add the default extras\n\t\t$moduleDefaultExtras = $installer->getDefaultExtras();\n\t\tif(!empty($moduleDefaultExtras)) array_merge($defaultExtras, $moduleDefaultExtras);\n\n\t\t// variables passed to module installers\n\t\t$variables = array();\n\t\t$variables['email'] = SpoonSession::get('email');\n\t\t$variables['default_interface_language'] = SpoonSession::get('default_interface_language');\n\n\t\t// modules to install (required + selected)\n\t\t$modules = array_unique(array_merge($this->modules['required'], SpoonSession::get('modules')));\n\n\t\t// loop required modules\n\t\tforeach($modules as $module)\n\t\t{\n\t\t\t// install exists\n\t\t\tif(is_file(PATH_WWW . '/backend/modules/' . $module . '/installer/installer.php'))\n\t\t\t{\n\t\t\t\t// users module needs custom variables\n\t\t\t\tif($module == 'users')\n\t\t\t\t{\n\t\t\t\t\t$variables['password'] = SpoonSession::get('password');\n\t\t\t\t}\n\n\t\t\t\t// load installer file\n\t\t\t\trequire_once PATH_WWW . '/backend/modules/' . $module . '/installer/installer.php';\n\n\t\t\t\t// build installer class name\n\t\t\t\t$class = SpoonFilter::toCamelCase($module) . 'Installer';\n\n\t\t\t\t// create installer\n\t\t\t\t$installer = new $class(\n\t\t\t\t\t$this->getContainer()->get('database'),\n\t\t\t\t\tSpoonSession::get('languages'),\n\t\t\t\t\tSpoonSession::get('interface_languages'),\n\t\t\t\t\tSpoonSession::get('example_data'),\n\t\t\t\t\t$variables\n\t\t\t\t);\n\n\t\t\t\t// install the module\n\t\t\t\t$installer->install();\n\n\t\t\t\t// add the warnings\n\t\t\t\t$moduleWarnings = $installer->getWarnings();\n\t\t\t\tif(!empty($moduleWarnings)) $warnings[] = array('module' => $module, 'warnings' => $moduleWarnings);\n\n\t\t\t\t// add the default extras\n\t\t\t\t$moduleDefaultExtras = $installer->getDefaultExtras();\n\t\t\t\tif(!empty($moduleDefaultExtras)) $defaultExtras = array_merge($defaultExtras, $moduleDefaultExtras);\n\t\t\t}\n\t\t}\n\n\t\t// loop default extras\n\t\tforeach($defaultExtras as $extra)\n\t\t{\n\t\t\t// get pages without this extra\n\t\t\t$revisionIds = $this->getContainer()->get('database')->getColumn(\n\t\t\t\t'SELECT i.revision_id\n\t\t\t\t FROM pages AS i\n\t\t\t\t WHERE i.revision_id NOT IN (\n\t\t\t\t \tSELECT DISTINCT b.revision_id\n\t\t\t\t \tFROM pages_blocks AS b\n\t\t\t\t \tWHERE b.extra_id = ?\n\t\t\t\t\tGROUP BY b.revision_id\n\t\t\t\t )',\n\t\t\t\tarray($extra['id'])\n\t\t\t);\n\n\t\t\t// build insert array for this extra\n\t\t\t$insertExtras = array();\n\t\t\tforeach($revisionIds as $revisionId)\n\t\t\t{\n\t\t\t\t$insertExtras[] = array(\n\t\t\t\t\t'revision_id' => $revisionId,\n\t\t\t\t\t'position' => $extra['position'],\n\t\t\t\t\t'extra_id' => $extra['id'],\n\t\t\t\t\t'created_on' => gmdate('Y-m-d H:i:s'),\n\t\t\t\t\t'edited_on' => gmdate('Y-m-d H:i:s'),\n\t\t\t\t\t'visible' => 'Y'\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// insert block\n\t\t\t$this->getContainer()->get('database')->insert('pages_blocks', $insertExtras);\n\t\t}\n\n\t\t// parse the warnings\n\t\t$this->tpl->assign('warnings', $warnings);\n\t}", "title": "" }, { "docid": "7f5bd0595a8aec7e7659986312c9de6f", "score": "0.5480373", "text": "protected function registerAvoredModuleMake()\n {\n $this->app->singleton('command.avored.module.make', function ($app) {\n return new ModuleMakeCommand($app['files']);\n });\n }", "title": "" }, { "docid": "fec564b4cf85b03e9d4085e5174d6bab", "score": "0.54751486", "text": "public function addAction()\n {\n $repository = $this->getRepository();\n if($repository) {\n $service = $this->getModuleService();\n $module = $service->register($repository);\n $this->flashMessenger()->addMessage($module->getName() .' has been added to ZF Modules');\n } else {\n throw new Exception\\UnexpectedValueException(\n 'You have no permission to add this module. The reason might be that you are' .\n 'neither the owner nor a collaborator of this repository.',\n 403\n );\n }\n return $this->redirect()->toRoute('zfcuser');\n }", "title": "" }, { "docid": "1ebf20f0f178966c3c8c23e73497b242", "score": "0.54644066", "text": "function install() \n\t{\n\t\t$this->EE->load->dbforge();\n\t\t\n\t\t// Install the module\n\t\t$data = array(\n\t\t 'module_name' => $this->module_name,\n\t\t 'module_version' => $this->version,\n\t\t 'has_cp_backend' => 'y',\n\t\t 'has_publish_fields' => 'n'\n\t\t);\n\t\t$this->EE->db->insert('modules', $data);\n\t\t\n\t\t// Install the action\n\t\t$data = array(\n\t\t\t'class'\t\t=> $this->module_name,\n\t\t\t'method'\t=> 'track'\n\t\t);\n\t\t$this->EE->db->insert('actions', $data);\n\t\t\n\t\t// Install the tables used to track this information\n\t\t$cols = array(\n\t\t 'id' => array('type' => 'INT', 'constraint' => 9, 'unsigned' => TRUE, 'auto_increment' => TRUE),\n\t\t 'source' => array('type' => 'VARCHAR', 'constraint' => '25', 'null' => FALSE),\n\t\t 'ip' => array('type' => 'VARCHAR', 'constraint' => '50', 'null' => FALSE),\n\t\t 'server' => array('type' => 'TEXT', 'null' => FALSE)\n\t\t);\n\t\t$this->EE->dbforge->add_key('id', TRUE);\n\t\t$this->EE->dbforge->add_key('ip');\n\t\t$this->EE->dbforge->add_key('source');\n\t\t$this->EE->dbforge->add_field($cols);\n\t\t$this->EE->dbforge->add_field(\"created_at TIMESTAMP DEFAULT now() ON UPDATE now()\");\n\t\t$this->EE->dbforge->create_table('click_tracked', TRUE);\n\t\t\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "81a6aababf567e6d2d183bacb5ac0d62", "score": "0.54512453", "text": "public function module();", "title": "" }, { "docid": "5a913bde73afa423e38f730314e706fa", "score": "0.5448891", "text": "function install(){\n\n db_query(\"insert into \".MODULES_TABLE.\n \" ( module_name, ModuleClassName ) \".\n \" values( '\".$this->title.\"', '\".get_class($this).\"' ) \");\n\n $NewModuleConfigID = db_insert_id();\n\n $this->ModuleConfigID = $NewModuleConfigID;\n\n $sql = \"\n UPDATE \".MODULES_TABLE.\"\n SET module_name='\".$this->title.($this->SingleInstall?'':' ('.$NewModuleConfigID.\")\").\"'\n WHERE module_id=\".$NewModuleConfigID.\"\n \";\n db_query($sql);\n\n $this->_initSettingFields();\n\n $this->SettingsFields = xEscapeSQLstring($this->SettingsFields);\n\n foreach ($this->Settings as $_SettingName){\n\n $sql = \"\n INSERT INTO \".SETTINGS_TABLE.\"\n (\n settings_groupID, settings_constant_name,\n settings_value,\n settings_title,\n settings_description,\n settings_html_function,\n sort_order\n )\n VALUES (\n \".settingGetFreeGroupId().\", '\".$_SettingName.($this->SingleInstall?'':'_'.$NewModuleConfigID).\"',\n '\".(isset($this->SettingsFields[$_SettingName]['settings_value'])?$this->SettingsFields[$_SettingName]['settings_value']:'').\"',\n '\".(isset($this->SettingsFields[$_SettingName]['settings_title'])?$this->SettingsFields[$_SettingName]['settings_title']:'').\"',\n '\".(isset($this->SettingsFields[$_SettingName]['settings_description'])?$this->SettingsFields[$_SettingName]['settings_description']:'').\"',\n '\".(isset($this->SettingsFields[$_SettingName]['settings_html_function'])?$this->SettingsFields[$_SettingName]['settings_html_function']:'').\"',\n '\".(isset($this->SettingsFields[$_SettingName]['sort_order'])?$this->SettingsFields[$_SettingName]['sort_order']:'').\"'\n )\";\n db_query($sql);\n }\n }", "title": "" }, { "docid": "4c2eab09617553e5ba853ceb7c74dc1c", "score": "0.5443297", "text": "public static function course_module_created($event) {\n global $PAGE;\n\n $data = $event->get_data();\n $module = $event->get_record_snapshot($data['objecttable'], (int)$data['objectid']);\n\n $PAGE->set_cm($module);\n $PAGE->blocks->load_blocks();\n $PAGE->blocks->add_block_at_end_of_default_region('reaction');\n\n return true;\n }", "title": "" }, { "docid": "bfc2738f53443e31e4415467045b7e17", "score": "0.5439433", "text": "public function moduleHandler($moduleName, $eventType)\n\t{\n\t\tif ('module.postinstall' === $eventType) {\n\t\t\t$dbCommand = \\App\\Db::getInstance()->createCommand();\n\t\t\t// Mark the module as Standard module\n\t\t\t$dbCommand->update('vtiger_tab', ['customized' => 0], ['name' => $moduleName])->execute();\n\n\t\t\t//adds sharing accsess\n\t\t\t$AssetsModule = vtlib\\Module::getInstance($moduleName);\n\t\t\tvtlib\\Access::setDefaultSharing($AssetsModule);\n\n\t\t\t//Showing Assets module in the related modules in the More Information Tab\n\t\t}\n\t}", "title": "" }, { "docid": "0daa020be642e51d57e8e1ed2d2b6902", "score": "0.54364413", "text": "protected function create()\n {\n $this->index();\n\n $this->manager->register('create', function (BreadcrumbsGenerator $breadcrumbs) {\n $breadcrumbs->parent('index');\n $breadcrumbs->push(trans('administrator::module.action.create', [\n 'resource' => $this->module->singular(),\n ]), null);\n });\n }", "title": "" }, { "docid": "3eb50e0fd2f11313596212c5ca1748a6", "score": "0.54217184", "text": "function indexAction()\n\t{\n\t\t$modules_table = new Modules('modules');\n\t\t$request = new RivetyCore_Request($this->getRequest());\n\n\t\tif ($request->has(\"id\") and $request->has(\"perform\"))\n\t\t{\n\t\t\tswitch ($request->perform)\n\t\t\t{\n\t\t\t\tcase \"enable\":\n\t\t\t\t\tif (!$modules_table->isEnabled($request->id))\n\t\t\t\t\t{\n\t\t\t\t\t\tif ($modules_table->enable($request->id))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (!is_null($modules_table->success))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$this->view->success = $modules_table->success;\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$this->view->success = \"Module \\\"\".$request->id .\"\\\" enabled.\";\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\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->view->notice = \"Module \\\"\".$request->id .\"\\\" is already enabled.\";\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"disable\":\n\t\t\t\t\tif($modules_table->isEnabled($request->id)){\n\t\t\t\t\t\t if($modules_table->disable($request->id)){\n\t\t\t\t\t\t\tif(!is_null($modules_table->success)){\n\t\t\t\t\t\t\t\t$this->view->success = $modules_table->success;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$this->view->success = \"Module \\\"\".$request->id .\"\\\" disabled.\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t }\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->view->notice = \"Module \\\"\".$request->id .\"\\\" is already disabled.\";\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"install\":\n\t\t\t\t\tif (!$modules_table->exists($request->id))\n\t\t\t\t\t{\n\t\t\t\t\t\tif ($modules_table->install($request->id))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (!is_null($modules_table->success))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$this->view->success = $modules_table->success;\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$this->view->success = \"Module \\\"\".$request->id .\"\\\" installed.\";\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\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->view->notice = \"Module \\\"\".$request->id .\"\\\" is already installed.\";\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"uninstall\":\n\t\t\t\t\tif ($modules_table->exists($request->id))\n\t\t\t\t\t{\n\t\t\t\t\t\tif($modules_table->disable($request->id))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($modules_table->uninstall($request->id))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(!is_null($modules_table->success))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$this->view->success = $modules_table->success;\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{\n\t\t\t\t\t\t\t\t\t$this->view->success = \"Module \\\"\".$request->id .\"\\\" disabled and uninstalled.\";\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\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->view->notice = \"Module \\\"\".$request->id .\"\\\" is not installed.\";\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (count($modules_table->errors) > 0)\n\t\t\t{\n\t\t\t\t$this->view->errors = $modules_table->errors;\n\t\t\t}\n\t\t\tif (!is_null($modules_table->notice))\n\t\t\t{\n\t\t\t\t$this->view->notice = $modules_table->notice;\n\t\t\t}\n\t\t}\n\t\t$basepath = Zend_Registry::get('basepath');\n\t\t$module_dir = $basepath.\"/modules\";\n\t\t$o_module_dir = dir($module_dir);\n\t\t$available_modules = array();\n\n\t\twhile (false !== ($entry = $o_module_dir->read()))\n\t\t{\n\t\t\tif (substr($entry, 0, 1) != \".\")\n\t\t\t{\n\t\t\t\tif ($entry != \"default\")\n\t\t\t\t{\n\t\t\t\t\t$full_dir = $module_dir . \"/\" . $entry;\n\t\t\t\t\tif (file_exists($full_dir . \"/module.ini\") and !$modules_table->exists($entry))\n\t\t\t\t\t{\n\t\t\t\t\t\t$tmp_module = $modules_table->parseIni($entry);\n\t\t\t\t\t\t$tmp_module['id'] = $entry;\n\t\t\t\t\t\t$tmp_module['available'] = true;\n\t\t\t\t\t\t$available_modules[] = $tmp_module;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$o_module_dir->close();\n\t\t$tmp_modules = array();\n\t\t$modules = $modules_table->fetchAll(null, \"id\");\n\t\tif (count($modules) > 0)\n\t\t{\n\t\t\t$tmp_modules = array();\n\t\t\tforeach ($modules as $module)\n\t\t\t{\n\t\t\t\t$module = $module->toArray();\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\t$config = $modules_table->parseIni($module['id']);\n\t\t\t\t\tforeach ($config as $key => $val)\n\t\t\t\t\t{\n\t\t\t\t\t\t$module[$key] = $val;\n\t\t\t\t\t}\n\t\t\t\t\t$module['available'] = false;\n\t\t\t\t\t$tmp_modules[] = $module;\n\t\t\t\t}\n\t\t\t\tcatch (Exception $e)\n\t\t\t\t{\n\t\t\t\t\tRivetyCore_Log::report(\"Could not set up \" . $module, $e, Zend_Log::ERR);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->view->modules = array_merge($tmp_modules, $available_modules);\n\t\t$this->view->breadcrumbs = array('Manage Rivety Modules' => null);\n\t}", "title": "" }, { "docid": "72191cc19878116686192ef2e73e603e", "score": "0.5418774", "text": "function vtlib_handler($moduleName, $eventType) {\n\t\tglobal $adb;\n \t\tif($eventType == 'module.postinstall') {\n\t\t\t// TODO Handle actions after this module is installed.\n\t\t\t$this->init($moduleName);\n\t\t\t$this->createHandle($moduleName);\n\t\t\t$this->AddSettingsLinks('FinReports');\n $this->addLinks('FinReports');\n\t\t} else if($eventType == 'module.disabled') {\n\t\t\t$this->removeHandle($moduleName);\n\t\t\t$this->AddSettingsLinks('FinReports', false);\n\t\t\t$this->removeRelated();\n\t\t\trequire_once('vtlib/Vtiger/Link.php');\n\t\t\t$tabid = getTabId(\"FinReports\");\n\t\t\tVtiger_Link::deleteAll($tabid);\n\t\t\t$this->removeURL; \n\t\t\t// TODO Handle actions before this module is being uninstalled.\n\t\t} else if($eventType == 'module.enabled') {\n\t\t\t$this->createHandle($moduleName);\n\t\t\t$this->AddSettingsLinks('FinReports');\n $this->addLinks('FinReports');\n\t\t\t// TODO Handle actions before this module is being uninstalled.\n\t\t} else if($eventType == 'module.preuninstall') {\n\t\t\t$this->removeHandle($moduleName);\n\t\t\t$this->removeRelated();\n\t\t\t$adb->pquery('DELETE FROM vtiger_settings_field WHERE name= ?', array('FinReports'));\n\t\t\trequire_once('vtlib/Vtiger/Link.php');\n\t\t\t$tabid = getTabId(\"FinReports\");\n\t\t\tVtiger_Link::deleteAll($tabid);\n\t\t\t$this->removeURL;\n\t\t\t// TODO Handle actions when this module is about to be deleted.\n\t\t} else if($eventType == 'module.preupdate') {\n\t\t\t$this->createHandle($moduleName);\n\t\t\t// TODO Handle actions before this module is updated.\n\t\t} else if($eventType == 'module.postupdate') {\n\t\t\t// TODO Handle actions after this module is updated.\n\t\t\t$this->AddSettingsLinks('FinReports');\n $this->addLinks('FinReports');\n\t\t}\n \t}", "title": "" }, { "docid": "dc182459cd39e6142fe7bec3f943d83a", "score": "0.5418477", "text": "public function commit(){\n global $Core, $HOST_PATH;\n static $doUpdateRightsVersion = TRUE;\n\n $oDeclarator = AMI_ModDeclarator::getInstance();\n $oDeclarator->collectRegistration(TRUE, TRUE);\n $code = AMI_Registry::get('AMI/Core/lastDeclaration');\n eval($code);\n $aCollectedModIds = $oDeclarator->getCollected();\n\n // Mark module or hypermodule/configuration as tenant\n // of installation/uninstallation process to avoid repeated call.\n AMI_Package_InstanceManipulator::$aProcessedEntities[] = $this->processingEntity;####\n\n if(AMI_Registry::exists('AMI/Core/lastInstallAfter')){\n $path = AMI_Registry::get('AMI/Core/lastInstallAfter');\n if(file_exists($path)){\n // extract($this->oArgs->getAll());\n // unset($aTx);\n $this->aTx = $this->oArgs->aTx;\n require_once $path;\n unset($this->aTx);\n }\n }\n\n // Reset admin interface modules cache\n if($doUpdateRightsVersion && isset($Core) && is_object($Core) && ($Core instanceof CMS_Core)){\n $Core->UpdateRightsVersion();\n $doUpdateRightsVersion = FALSE;\n }\n\n $oDeclarator->collectRegistration(FALSE);\n $aExtensions = array();\n $oArgs = new AMI_Tx_Cmd_Args($this->oArgs->getAll());\n foreach($aCollectedModIds as $modId){\n // Setup properties\n $Core->setupHyperMod(\n $HOST_PATH . '_shared/code/hyper_modules/declaration/',\n array($oDeclarator->getSection($modId)),\n 'properties',\n null,\n array($modId)\n );\n $aExtModIds = AMI_ModRules::getAvailableExts($modId, TRUE);\n foreach($aExtModIds as $extId){\n $extResId = $extId . '/module/controller/adm';\n if($oDeclarator->isRegistered($extId) && AMI::isResource($extResId)){\n if(!isset($aExtensions[$extId])){\n $aExtensions[$extId] = AMI::getResource($extResId, array($modId));\n }\n $aExtensions[$extId]->onModPostInstall($modId, $oArgs);\n }\n }\n }\n }", "title": "" }, { "docid": "d8ad147cc9d9f5644e4173e3b803061e", "score": "0.5409609", "text": "public function installAction()\n {\n $this->view->disable();\n\n $response = ['success' => true];\n\n $checkDB = $this->checkDB();\n if ($checkDB != null) {\n $response['errors'][] = $checkDB->getMessage();\n $response['success'] = false;\n\n $this->response->setJsonContent($response);\n $this->response->send();\n } else {\n $this->getDI()->setShared(\"modelsManager\", function () {\n $modelsManager = new Manager();\n $modelsManager->setModelPrefix($_POST['db-prefix']);\n return $modelsManager;\n });\n }\n\n try {\n $baseUri = str_replace('/install/', '', $this->url->get('/'));\n $baseUri = strlen($baseUri) == 0 ? '/' : $baseUri;\n $config = new ConfigSample();\n $config->dbAdaptor = $_POST['db-adapter'];\n $config->dbName = $_POST['db-name'];\n $config->dbHost = $_POST['db-hostname'];\n $config->dbPort = $_POST['db-port'];\n $config->dbUser = $_POST['db-username'];\n $config->dbPass = $_POST['db-password'];\n $config->dbPrefix = $_POST['db-prefix'];\n $config->baseUri = $baseUri;\n $config->timezone = date_default_timezone_get();\n $config->cryptKey = $this->security->getRandom()->hex(Auth::SELECTOR_BYTES);\n\n $this->registryConfig->writeConfig($config);\n\n $this->di->setShared('config', function () use ($config) {\n require_once CONFIG_PATH . 'config-default.php';\n return new ConfigDefault();\n });\n\n $migration = new MigrationMigration();\n $migration->up();\n\n $package = new PackageMigration();\n $package->up();\n\n $this->packageManager->installModule('Core');\n $this->packageManager->installModule('Tools');\n $this->db->insert($config->dbPrefix . 'user',\n [$_POST['su-username'], $_POST['su-email'], $this->security->hash($_POST['su-password']), 3, 1, time()],\n ['username', 'email', 'password', 'role_id', 'status', 'created_at']);\n\n $widgets = ['Carousel','Content', 'GridView', 'Menu', 'SortableView', 'TopContent', 'Search'];\n foreach ($widgets as $widget) {\n $this->packageManager->installWidget($widget);\n }\n } catch (\\Exception $e) {\n $response['errors'][] = $e->getMessage();\n $response['success'] = false;\n }\n\n $this->response->setJsonContent($response);\n $this->response->send();\n }", "title": "" }, { "docid": "9a375e26fcefb3ac2c2b74c722ebff37", "score": "0.54086316", "text": "public function process(Event $event): void\n {\n foreach ($event->get('modules') as $moduleConfig) {\n $this->apiConfig->collectData(\n $moduleConfig[ModuleManager::MODULE_DIR] . '/' . ModuleManager::DIR_CONFIG\n );\n }\n }", "title": "" }, { "docid": "b105157f72c2598284ba5218d5426115", "score": "0.5394975", "text": "public function __construct()\n {\n $this->middleware(['auth', 'twostep']);\n\n /* module details */\n $this->module['modulename'] = 'gama';\n $this->module['moduleattachment'] = 0; // 0 = false, 1= single, 2 = multi\n $this->module['moduleparentseqrel'] = array();// fill cb by ajax seq relation\n $this->module['moduleparentseq'] = array();//array('module name' => array('module show fields'))\n $this->module['moduleparent'] = array();//array('module name' => array('module show fields'))\n $this->module['moduleshowparentview'] = array();// select parent for show in edit view\n $this->module['modulechild'] = array(); //array('module name' => array('module show fields'))\n\n /* Auto fill -> no change sub line */\n $this->controllerFunction = new PublicControllerFunction();\n $moduleinfo = $this->controllerFunction->getmoduleinfo($this->module['modulename']);\n $this->module['modulelabel'] = $moduleinfo['modulelabel'];\n $this->module['modulemodel'] = $moduleinfo['modulemodel']; // create model name\n $this->module['moduleprimarykey'] = $moduleinfo['moduleprimarykey'];\n $this->module['moduletabid'] = $moduleinfo['moduletabid'];\n $this->module['moduleblockfield'] = $this->controllerFunction->getmoduleblockfield($moduleinfo['moduletabid']);\n }", "title": "" }, { "docid": "4c2229ffca220f84fe6212e08bc23c83", "score": "0.5377086", "text": "public function create($module_id = null)\n {\n //\n }", "title": "" }, { "docid": "342af690e4fff29cec7c64cc190bf6b6", "score": "0.5375504", "text": "public function multi_modules_init() {\n\t\t\t$this->row = new cfct_multi_module_row;\n\t\t\t$this->register_ajax_handler('sideload_module_chooser', array($this, 'ajax_sideload_module_chooser'));\n\t\t\tadd_action('cfct-ajax-delete-module', array($this, 'delete_module'), 10, 3);\n\t\t}", "title": "" }, { "docid": "33ea4d52fa09768ea49a55c5190e8d64", "score": "0.53725016", "text": "public function run()\n\t{\n\t\tModel::unguard();\n\t\tModule::create(['role'=>1,'module'=>'Office','color'=>'#bababa','icon'=>'fa fa-desktop','slug'=>'office','priority'=>'1']);\n\t\tModule::create(['role'=>1,'module'=>'Users','color'=>'#f5f5f5','icon'=>'fa fa-users','slug'=>'users','priority'=>'2']);\n\t}", "title": "" }, { "docid": "a27e1ba30c4deeeef173efcb04ff5b8b", "score": "0.5370055", "text": "protected function _initializeModules()\n {\n foreach ($this->tree as $key => $module) {\n $this->_moduleList[$key] = $module['basename'];\n }\n }", "title": "" }, { "docid": "a454d6dc7ff0e99d802ab2d67d7738e7", "score": "0.5369438", "text": "public function onInstall(ProviderModel $provider){}", "title": "" }, { "docid": "0fb60ec0de70cc926ee3a1936e061d58", "score": "0.5365337", "text": "public function init()\n\t{\n\t\t// this method is called when the module is being created\n\t\t// you may place code here to customize the module or the application\n\n\t\t// import the module-level models and components\n\t\t$this->setImport(array(\n\t\t\t'reports.models.*',\n\t\t\t'reports.components.*',\n 'payments.models.*',\n 'dataimport.models.*',\n\t\t));\n\t}", "title": "" }, { "docid": "37407057385b1a3ae245f497bacf3af9", "score": "0.53621805", "text": "function create_module_structure($data) {\n //Creating folder for the new module\n mkdir($data['path'], 0777);\n $files = array('index.php', 'class.php', 'controller.php');\n //Creating files\n create_module_file($files, $data);\n}", "title": "" }, { "docid": "c2aeea908c449875a6aeff5a83195409", "score": "0.53584355", "text": "function execute()\n {\n plugin::execute();\n\n $smarty= get_smarty();\n $this->repositoryMangement->handleActions($this->repositoryMangement->detectPostActions());\n\n if($this->is_account && !$this->view_logged){\n $this->view_logged = TRUE;\n new log(\"view\",\"server/\".get_class($this),$this->dn);\n }\n\n if(!$this->fai_activated){\n $str = \"<h3>\"._(\"You can't use this plug-in until FAI is activated.\").\"</h3>\";\n $display = $smarty->fetch(get_template_path('servRepository.tpl', TRUE,dirname(__FILE__)));\n return($str.$display);\n }\n\n /* Fill templating stuff */\n $smarty->assign(\"is_createable\",$this->acl_is_createable());\n $display= \"\";\n\n\n if(isset($_POST['repository_setup_save']) && is_object($this->dialog)){\n $this->dialog->save_object();\n if(($this->dialog->is_new_name())&&(isset($this->repositories[$this->dialog->GetName()]))){\n msg_dialog::display(_(\"Error\"), msgPool::duplicated(_(\"Name\")), ERROR_DIALOG);\n }else\n\n if(count($this->dialog->check())!=0){\n foreach($this->dialog->check() as $msg){\n msg_dialog::display(_(\"Error\"), $msg, ERROR_DIALOG);\n }\n }else{\n $obj = $this->dialog->save();\n if($this->dialog->is_new_name()){\n $oldname = $this->dialog->initialy_was;\n $this->repositories[$obj['Release']]=$obj; \n unset($this->repositories[$oldname]);\n }else{ \n $this->repositories[$obj['Release']]=$obj; \n }\n $this->dialog = FALSE;\n $this->is_dialog= false;\n }\n }\n\n if(isset($_POST['repository_setup_cancel'])){\n $this->dialog=FALSE;\n $this->is_dialog = false;\n }\n\n if(is_object($this->dialog)){\n $this->dialog->save_object();\n $this->is_dialog = true;\n return($this->dialog->execute());\n }\n\n /*\n Repository setup dialog handling /END\n */\n $link = \"<a href='?plug=\".$_GET['plug'].\"&amp;act=open_repository&amp;id=%s'>%s</a>\";\n $edit = \"<input type='image' value='%s' name='edit_%s' src='images/lists/edit.png'>&nbsp;\";\n\n /* Hide delete icon, if delete is not allowed */ \n if($this->acl_is_removeable()){\n $delete = \"<input type='image' value='%s' name='delete_%s' src='images/lists/trash.png'>\";\n }else{\n $delete = \"<img src='images/empty.png' alt='&nbsp;'>\";\n }\n\n session::set('RepositoryList', $this->repositories);\n $str = $this->repositoryMangement->execute(); \n $display.= $smarty->fetch(get_template_path('servRepository.tpl', TRUE,dirname(__FILE__)));\n return($str.$display);\n }", "title": "" }, { "docid": "2327295705e151e103612e1a2df7fb6a", "score": "0.5352739", "text": "protected function initModule()\n {\n if (!isset($this->moduleId)) {\n $this->_module = Module::getInstance();\n if (isset($this->_module)) {\n $this->moduleId = $this->_module->id;\n\n return;\n }\n $this->moduleId = Module::MODULE;\n }\n $this->_module = Config::getModule($this->moduleId, Module::class);\n }", "title": "" }, { "docid": "56bed7631a043ac3a7d0bb2ec608b61b", "score": "0.534092", "text": "public function run() {\n\t\t$this->type = $header = $this->parse_header_uri( $this->repo->languages );\n\t\t$this->repo_api->type->type = $header['type'];\n\t\t$this->config[ $this->repo->slug ] = $this->repo_api->type;\n\t\t$this->repo_api->get_language_pack( $header );\n\n\t\tadd_filter( 'pre_set_site_transient_update_plugins', array( &$this, 'pre_set_site_transient' ) );\n\t\tadd_filter( 'pre_set_site_transient_update_themes', array( &$this, 'pre_set_site_transient' ) );\n\t}", "title": "" }, { "docid": "c9de7e9f02d5afffa9c0a3d1d49a3287", "score": "0.53345746", "text": "public function run()\n {\n $module = new Module();\n $module->name = \"No Module\";\n $module->save();\n }", "title": "" }, { "docid": "bab2e142483e3ef854a43692fece301d", "score": "0.5334042", "text": "protected function moduleInstall()\n {\n $this->setRootPath(realpath($_SERVER['DOCUMENT_ROOT']));\n\n $plugin = $this;\n\n array_map(function($handlerClass) use ($plugin) {\n $handler = (new $handlerClass($plugin));\n $handler->install();\n $handler->cleanup();\n\n }, $this->getHandlers());\n }", "title": "" }, { "docid": "c51525f5b8b41ea8a90523e3f599e635", "score": "0.5328683", "text": "function hogan_register_module( \\Dekode\\Hogan\\Core $core ) {\n\t// Include class and register module class.\n\trequire_once 'class-reusable-modules.php';\n\t$core->register_module( new \\Dekode\\Hogan\\Reusable_Modules() );\n}", "title": "" }, { "docid": "7c2c58125fe8b43eb1761d5bab5ade6b", "score": "0.5321332", "text": "public function init(ModuleManager $moduleManager)\n {\n $eventManager = $moduleManager->getEventManager();\n \n //Atacha um listener para loadModules.post que executará a função getModulosCarregados\n $eventManager->attach('loadModules.post', array(\n $this, 'getModulosCarregados'\n ));\n \n// print_r($moduleManager->getModule('Modulo'));\n }", "title": "" }, { "docid": "70dbb22b5bc07618d122d08294baf754", "score": "0.53207743", "text": "public function vtlib_handler($modulename, $event_type) {\n\t\tglobal $adb, $current_user;\n\t\trequire_once 'include/events/include.inc';\n\t\tinclude_once 'vtlib/Vtiger/Module.php';\n\t\tif ($event_type == 'module.postinstall') {\n\t\t\t// Handle post installation actions\n\t\t\t$modWarehouse=Vtiger_Module::getInstance('Warehouse');\n\t\t\t$modMov=Vtiger_Module::getInstance('Movement');\n\t\t\t$modInvD=Vtiger_Module::getInstance('InventoryDetails');\n\t\t\t$modMMv=Vtiger_Module::getInstance('MassiveMovements');\n\t\t\tif ($modWarehouse) {\n\t\t\t\t$modWarehouse->setRelatedList($modMMv, 'MassiveMovements', array('ADD'), 'get_dependents_list');\n\t\t\t}\n\t\t\tif ($modInvD) {\n\t\t\t\t$field = Vtiger_Field::getInstance('related_to', $modInvD);\n\t\t\t\t$field->setRelatedModules(array('MassiveMovements'));\n\t\t\t\t$modMMv->setRelatedList($modInvD, 'InventoryDetails', array(''), 'get_dependents_list');\n\t\t\t}\n\t\t\tif ($modMov) {\n\t\t\t\t$field = Vtiger_Field::getInstance('refid', $modMov);\n\t\t\t\t$field->setRelatedModules(array('MassiveMovements'));\n\t\t\t\t$modMMv->setRelatedList($modMov, 'Movement', array(''), 'get_dependents_list');\n\t\t\t}\n\n\t\t\t$wfid=$adb->getUniqueID('com_vtiger_workflowtasks_entitymethod');\n\t\t\t$adb->query(\"insert into com_vtiger_workflowtasks_entitymethod\n\t\t\t\t(workflowtasks_entitymethod_id,module_name,method_name,function_path,function_name)\n\t\t\t\tvalues\n\t\t\t\t($wfid,'MassiveMovements','mwSrcToDstStock','modules/Movement/InventoryIncDec.php','mwSrcToDstStock')\");\n\n\t\t\t$wfid=$adb->getUniqueID('com_vtiger_workflowtasks_entitymethod');\n\t\t\t$adb->query(\"insert into com_vtiger_workflowtasks_entitymethod\n\t\t\t\t(workflowtasks_entitymethod_id,module_name,method_name,function_path,function_name)\n\t\t\t\tvalues\n\t\t\t\t($wfid,'MassiveMovements','mwReturnStock','modules/Movement/InventoryIncDec.php','mwReturnStock')\");\n\n\t\t\tinclude_once 'include/Webservices/Create.php';\n\t\t\t$usrwsid = vtws_getEntityId('Users').'x';\n\t\t\tvtws_create('GlobalVariable', array(\n\t\t\t\t'gvname' => 'Inventory_Other_Modules',\n\t\t\t\t'default_check' => '1',\n\t\t\t\t'value' => 'MassiveMovements',\n\t\t\t\t'mandatory' => '1',\n\t\t\t\t'blocked' => '0',\n\t\t\t\t'module_list' => 'MassiveMovements',\n\t\t\t\t'category' => 'System',\n\t\t\t\t'in_module_list' => '1',\n\t\t\t\t'assigned_user_id' => $usrwsid.$current_user->id,\n\t\t\t), $current_user);\n\t\t\t$modMMv->addLink('HEADERSCRIPT', 'InventoryJS', 'include/js/Inventory.js', '', 1, null, true);\n\t\t\t$this->setModuleSeqNumber('configure', $modulename, 'MMv-', '000001');\n\t\t} elseif ($event_type == 'module.disabled') {\n\t\t\t// Handle actions when this module is disabled.\n\t\t} elseif ($event_type == 'module.enabled') {\n\t\t\t// Handle actions when this module is enabled.\n\t\t} elseif ($event_type == 'module.preuninstall') {\n\t\t\t// Handle actions when this module is about to be deleted.\n\t\t} elseif ($event_type == 'module.preupdate') {\n\t\t\t// Handle actions before this module is updated.\n\t\t} elseif ($event_type == 'module.postupdate') {\n\t\t\t// Handle actions after this module is updated.\n\t\t}\n\t}", "title": "" }, { "docid": "8a752ea8f3c262f78abbe060a16379ad", "score": "0.5312711", "text": "public function ModulesInstallController($page){\n\t\t\n\t\t//Allow Plugins.\n\t\tObservable::Observable();\n\t\t\n\t\t//Setup basic variables\n\t\t$this->varSetup();\n\t\t\n\t\t//Sets the name of the other classes\n\t\t$this->setSystem(\"ModulesInstall\");\n\t\t\n\t\t//Setup the page\n\t\t$this->setup(\"Module Find &amp; Install\");\n\t\t\n\t\t//Set to Administration template\n\t\t$this->getView()->setTemplate(\"admin\");\n\t\t\n\t\t//Check for Plugins\n\t\t$this->loadPlugins();\n\t\t\n\t\t//Set the requests accepted\n\t\t$this->putRequests();\n\t\t\n\t\t//Process Request\n\t\t$this->processRequest();\n\t\t\n\t\t$this->displayPage();\n\t}", "title": "" }, { "docid": "65474cc50731de7bbaef4c6743bedc55", "score": "0.5312471", "text": "public function register_module() {\n if (class_exists('Themify_Builder_Component_Module')) {\n Themify_Builder_Model::register_directory('templates', $this->dir . 'templates');\n Themify_Builder_Model::register_directory('modules', $this->dir . 'modules');\n }\n }", "title": "" }, { "docid": "0675d1f2d1b9ba8f68513181f966188f", "score": "0.5309889", "text": "protected function run(){\n $aPackages = AMI_PackageManager::getInstance()->getDownloadedPackages();\n if($aPackages[$this->oArgs->pkgId]['instCnt'] > 1){\n AMI_Tx::log(get_class($this) . '::run() There are other instances, handlers added already');\n return;\n }\n\n $file = $this->oArgs->target;\n $content = $this->oStorage->load($this->backuped ? $this->backupPath : $file, FALSE);\n if($content === FALSE){\n $content = $this->createNewContent();\n }\n $backupedModId = $this->oArgs->modId;\n $this->oArgs->overwrite('modId', $this->oArgs->hypermod . '_' . $this->oArgs->config);\n $opener = $this->getOpeningMarker();\n $closer = $this->getClosingMarker();\n $this->oArgs->overwrite('modId', $backupedModId);\n\n $backupedMode = $this->oArgs->mode;\n $this->oArgs->overwrite('mode', $this->oArgs->mode | AMI_iTx_Cmd::MODE_OVERWRITE);\n $handlerRegistrationContent = $content;\n if($this->checkMarkers($handlerRegistrationContent, $this->handlerDeclarationOpener, $this->handlerDeclarationCloser)){\n $start = mb_strpos(\n $handlerRegistrationContent,\n $this->handlerRegistrationOpener\n ) + mb_strlen($this->handlerRegistrationOpener);\n $end = mb_strpos($handlerRegistrationContent, $this->handlerRegistrationCloser);\n $handlerRegistrationContent =\n mb_substr($handlerRegistrationContent, $start, $end - $start);\n $newHandlerRegistrationContent = $handlerRegistrationContent;\n $this->oArgs->overwrite('mode', $backupedMode);\n if($this->checkMarkers($newHandlerRegistrationContent, $opener, $closer)){\n $this->oArgs->overwrite('source', $this->oArgs->handlerRegistrationSource);\n $this->modify($newHandlerRegistrationContent, $opener, $closer);\n }\n }\n\n $this->oArgs->overwrite('mode', $this->oArgs->mode | AMI_iTx_Cmd::MODE_OVERWRITE);\n $handlerDeclarationContent = $content;\n if($this->checkMarkers($handlerDeclarationContent, $this->handlerRegistrationOpener, $this->handlerRegistrationCloser)){\n $start = mb_strpos(\n $handlerDeclarationContent,\n $this->handlerDeclarationOpener\n ) + mb_strlen($this->handlerDeclarationOpener);\n $end = mb_strpos($handlerDeclarationContent, $this->handlerDeclarationCloser);\n $handlerDeclarationContent =\n mb_substr($handlerDeclarationContent, $start, $end - $start);\n $newHandlerDeclarationContent = $handlerDeclarationContent;\n $this->oArgs->overwrite('mode', $backupedMode);\n if($this->checkMarkers($newHandlerDeclarationContent, $opener, $closer)){\n $this->oArgs->overwrite('source', $this->oArgs->handlerDeclarationSource);\n $this->modify($newHandlerDeclarationContent, $opener, $closer);\n }\n }\n\n $this->oArgs->overwrite('mode', $backupedMode);\n\n if(\n $handlerRegistrationContent === $newHandlerRegistrationContent ||\n $handlerDeclarationContent === $newHandlerDeclarationContent\n ){\n throw new AMI_Tx_Exception(\n \"Broken content marker at file '\" . $file . \"'\",\n AMI_Tx_Exception::CMD_BROKEN_CONTENT_MARKER\n );\n }\n\n $content =\n str_replace(\n array(\n $this->handlerRegistrationOpener . $handlerRegistrationContent . $this->handlerRegistrationCloser,\n $this->handlerDeclarationOpener . $handlerDeclarationContent . $this->handlerDeclarationCloser\n ),\n array(\n $this->handlerRegistrationOpener . $this->eol . trim($newHandlerRegistrationContent) . $this->eol . $this->eol . $this->handlerRegistrationCloser,\n $this->handlerDeclarationOpener . $this->eol . trim($newHandlerDeclarationContent) . $this->eol . $this->eol . $this->handlerDeclarationCloser\n ),\n $content\n );\n\n $this->set($content);\n }", "title": "" }, { "docid": "cc28fce27b1d85d89869887b2602a350", "score": "0.5306264", "text": "protected function prepareForBindRepository()\n {\n $this->modelArgument = $this->argument('model');\n $this->contractCreator = new ContractCreator($this->modelArgument);\n $this->repositoryCreator = new RepositoryCreator($this->modelArgument);\n $this->providerAssistor = new ProviderAssistor($this->providerName);\n }", "title": "" }, { "docid": "472bf16f3763edf0add603a1e7a307b5", "score": "0.53025824", "text": "function MicroBuilder_ModuleBlock_Factory () {}", "title": "" }, { "docid": "15c3517a54ca0a859bc51c955685222e", "score": "0.52977055", "text": "public function init()\n {\n parent::init();\n self::$plugin = $this;\n\n // Do something after we're installed\n Event::on(\n Plugins::class,\n Plugins::EVENT_AFTER_INSTALL_PLUGIN,\n function (PluginEvent $event) {\n if ($event->plugin === $this) {\n // We were just installed\n $this->createFields();\n }\n }\n );\n\n Event::on(\n Plugins::class,\n Plugins::EVENT_AFTER_UNINSTALL_PLUGIN,\n function (PluginEvent $event) {\n if ( $event->plugin === $this ) {\n // We are uninstalled\n $this->removeFields();\n }\n }\n );\n\n Event::on(Gateways::class, Gateways::EVENT_REGISTER_GATEWAY_TYPES, function(RegisterComponentTypesEvent $event) {\n $event->types[] = TwoGateway::class;\n });\n\n Event::on(\n UrlManager::class,\n UrlManager::EVENT_REGISTER_SITE_URL_RULES,\n function (RegisterUrlRulesEvent $event) {\n $event->rules['commerce-two/return/'] = 'commerce-two/checkout';\n $event->rules['commerce-two/company-search/'] = 'commerce-two/checkout/company-search';\n $event->rules['commerce-two/company-address/'] = 'commerce-two/checkout/company-address';\n $event->rules['commerce-two/company-check/'] = 'commerce-two/checkout/is-company-allowed-for-payment';\n $event->rules['commerce-two/set-company/'] = 'commerce-two/checkout/set-company-on-cart';\n $event->rules['commerce-two/set-customer-addresses/'] = 'commerce-two/checkout/set-customer-addresses';\n }\n );\n\n\n Event::on(\n CraftVariable::class,\n CraftVariable::EVENT_INIT,\n function(Event $event) {\n $variable = $event->sender;\n $variable->set('twoPayment', CommerceTwoVariable::class);\n }\n );\n\n /**\n * Logging in Craft involves using one of the following methods:\n *\n * Craft::trace(): record a message to trace how a piece of code runs. This is mainly for development use.\n * Craft::info(): record a message that conveys some useful information.\n * Craft::warning(): record a warning message that indicates something unexpected has happened.\n * Craft::error(): record a fatal error that should be investigated as soon as possible.\n *\n * Unless `devMode` is on, only Craft::warning() & Craft::error() will log to `craft/storage/logs/web.log`\n *\n * It's recommended that you pass in the magic constant `__METHOD__` as the second parameter, which sets\n * the category to the method (prefixed with the fully qualified class name) where the constant appears.\n *\n * To enable the Yii debug toolbar, go to your user account in the AdminCP and check the\n * [] Show the debug toolbar on the front end & [] Show the debug toolbar on the Control Panel\n *\n * http://www.yiiframework.com/doc-2.0/guide-runtime-logging.html\n */\n Craft::info(\n Craft::t(\n 'commerce-two',\n '{name} plugin loaded',\n ['name' => $this->name]\n ),\n __METHOD__\n );\n\n }", "title": "" }, { "docid": "0dda026f4339dfa8d84b23db4f40400e", "score": "0.5289542", "text": "function CloneModule ()\r\n\t{\r\n\t\t// NEEDS function: CloneModuleData\t\r\n\t\t\t\r\n\t\t\t//^^^^^^^^^^^^^^^^^^\tEDITED TO HERE\t^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\t\r\n\t\t\t\r\n\t\t\t//\tAdd entry to 'modules' table\r\n\t\t\t//$sql_statement = 'INSERT INTO modules SET'\r\n\t\t\t\r\n\t\t\t//\t\tetc....\r\n\t\t\t\r\n\t\t\t//====================================================================\r\n\r\n\t\tCloneModuleData ($source_mod_id, $new_mod_id, $mod_db_table_name);\r\n\t\t\t\r\n\t}", "title": "" }, { "docid": "3b102aea6ce07416561007ad34a85a77", "score": "0.52865505", "text": "protected function generatingModule(): void\n {\n if (! $this->files->makeDirectory($this->container['path'])) {\n $this->error('The module path can not be created');\n exit();\n }\n\n $source = __DIR__ . '/stubs';\n if (! $this->files->copyDirectory($source, $this->container['path'])) {\n $this->error('The stubs can not be copied to module path');\n exit();\n }\n\n $this->generateComposerJson();\n $this->installModule();\n $this->info('Your module has been generated successfully.');\n }", "title": "" }, { "docid": "1b820a24e8285c7152325c32eeaf46c0", "score": "0.5284224", "text": "function AddActionModule()\r\n {\r\n $moduleBlock = new ModuleBlock($this->Core);\r\n echo $moduleBlock->AddActionModule();\r\n }", "title": "" }, { "docid": "bf2eb5aac65baa52c0fa87d8aa48f28c", "score": "0.5282315", "text": "public function process_create() {\n $content = $this->db_model_template();\n \n $name = $this->input->post('name');\n $tablename = $this->input->post('tablename');\n $connection = $this->input->post('connection');\n \n if (!empty($tablename)) {\n $tablename = \" public \\$tablename = '\".$tablename.\"';\".chr(10);\n }\n \n if (!empty($connection)) {\n $connection = \" public \\$connection = '\".$connection.\"';\".chr(10);\n }\n \n $content = str_replace('{name}',$name,$content);\n $content = str_replace('{tablename}',$tablename,$content);\n $content = str_replace('{connection}',$connection,$content);\n\n if ($this->input->post('btn') == 'install') {\n $file = $this->m_settings->cache['server_folder'].'models/'.$name.'.php';\n if (!file_exists($file)) {\n \t\t\t$this->m_gui_log->gui_entry('modules','Created &amp; Installed',$name);\n $this->flash_msg->green('Module Installed');\n file_put_contents($file,$content);\n } else {\n $this->flash_msg->red('Module Already Exists');\n }\n redirect('modules');\n } else{\n\t\t\t$this->m_gui_log->gui_entry('modules','Created &amp; Downloaded',$name);\n header(\"Content-Type: application/force-download\"); \n header('Content-Description: File Transfer'); \n header('Content-disposition: attachment; filename='.$name.'.php');\n die($content);\n }\n }", "title": "" }, { "docid": "dc3f7d2219ff21dd99514c254c4e4389", "score": "0.52768224", "text": "private function databaseInfo()\n\t{\n\t\t// database instance\n\t\t$db = Knife::getDB(true);\n\n\t\ttry\n\t\t{\n\t\t\t$dbTable = (VERSIONCODE < 3) ? 'pages_extras' : 'modules_extras';\n\n\t\t\t// set next sequence number for this module\n\t\t\t$sequence = Knife::getDB()->getVar(\n\t\t\t\t'SELECT MAX(sequence) + 1\n\t\t\t\t FROM ' . $dbTable . '\n\t\t\t\t WHERE module = ?',\n\t\t\t\tarray((string) $this->getModuleFolder())\n\t\t\t);\n\n\t\t\t// fallback\n\t\t\tif($sequence === null) $sequence = 0;\n\n\t\t\t// set the parameters\n\t\t\t$parameters['module'] = $this->getModuleFolder();\n\t\t\t$parameters['type'] = 'widget';\n\t\t\t$parameters['label'] = $this->widgetName;\n\t\t\t$parameters['action'] = strtolower($this->buildFileName($this->inputName, ''));\n\t\t\t$parameters['sequence'] = $sequence;\n\t\t\t$db->insert($dbTable, $parameters);\n\n\t\t\t// read the installer into an array\n\t\t\tif(file_exists(BACKENDPATH . 'modules/' . $this->getModuleFolder() . '/installer/install.php'))\n\t\t\t{\n\t\t\t\t$installer = BACKENDPATH . 'modules/' . $this->getModuleFolder() . '/installer/install.php';\n\t\t\t}\n\t\t\telseif(file_exists(BACKENDPATH . 'modules/' . $this->getModuleFolder() . '/installer/installer.php'))\n\t\t\t{\n\t\t\t\t$installer = BACKENDPATH . 'modules/' . $this->getModuleFolder() . '/installer/installer.php';\n\t\t\t}\n\t\t\telse throw new Exception('The installer is not found.');\n\t\t\t$aInstall = file($installer);\n\n\t\t\t// the new file array\n\t\t\t$fileArray = array();\n\n\t\t\t// fileKey\n\t\t\t$fileKey = 0;\n\t\t\t$insert = false;\n\n\t\t\t// loop the installer lines\n\t\t\tforeach($aInstall as $key => $line)\n\t\t\t{\n\t\t\t\t// trim the line\n\t\t\t\t$trimmedLine = trim($line);\n\t\t\t\tif($insert)\n\t\t\t\t{\n\t\t\t\t\t// the new rule\n\t\t\t\t\t$fileArray[$fileKey] = \"\\t\\t\" . '$this->insertExtra(\\'' . $this->getModuleFolder() . '\\', \\'widget\\', \\'' . $parameters['label'] . '\\', \\'' . $parameters['action'] . '\\');' . \"\\n\";\n\n\t\t\t\t\t// reset the line key\n\t\t\t\t\t$fileKey++;\n\t\t\t\t\t$insert = false;\n\t\t\t\t}\n\n\t\t\t\t// get the index action, this should always be present\n\t\t\t\tif($trimmedLine == \"// add extra's\") $insert = true;\n\n\t\t\t\t// add the line\n\t\t\t\t$fileArray[$fileKey] = $line;\n\n\t\t\t\t// count up\n\t\t\t\t$fileKey++;\n\t\t\t}\n\n\t\t\t// rewrite the file\n\t\t\tfile_put_contents($installer, $fileArray);\n\t\t}\n\t\t// houston, we have a problem.\n\t\tcatch(Exception $e)\n\t\t{\n\t\t\tif(DEV_MODE) throw $e;\n\t\t\telse return false;\n\t\t}\n\n\t\t// return\n\t\treturn true;\n\t}", "title": "" }, { "docid": "88b123e6d7277ddd439754cbe9fa94a5", "score": "0.5272508", "text": "public static function initListeners(){\t\n\t\t// Define the ActiveRecord \\GO\\Files\\Model\\File\n\t\t\\GO\\Files\\Model\\File::model()->addListener('save', 'GO\\Workflow\\WorkflowModule', 'save');\n\t\t\\GO\\Files\\Model\\File::model()->addListener('delete', 'GO\\Workflow\\WorkflowModule', 'delete');\n\t\t\n\t\t// Define the ActiveRecord \\GO\\Tasks\\Model\\Task\n\t\t\\GO\\Tasks\\Model\\Task::model()->addListener('save', 'GO\\Workflow\\WorkflowModule', 'save');\n\t\t\\GO\\Tasks\\Model\\Task::model()->addListener('delete', 'GO\\Workflow\\WorkflowModule', 'delete');\n\t\t\n\t\t// Add trigger for folder in the files module\n\t\t$c = new \\GO\\Files\\Controller\\FolderController();\n\t\t$c->addListener('submit', 'GO\\Workflow\\WorkflowModule', 'checkFolderTrigger');\n\t\t$c->addListener('load', 'GO\\Workflow\\WorkflowModule', 'loadFolderTrigger');\n\t}", "title": "" }, { "docid": "c9f5d0184c7ad1ab4593c88f61cb60da", "score": "0.52716655", "text": "function plugin_postinstall_nexproject($pi_name)\r\n{\r\n global $_DB_dbms, $_CONF, $_DB_table_prefix, $_TABLES ;\r\n require_once ($_CONF['path'] . 'plugins/nexproject/nexproject.php');\r\n\r\n // fix nexproject block group ownership\r\n $blockAdminGroup = DB_getItem ($_TABLES['groups'], 'grp_id',\r\n \"grp_name = 'Block Admin'\");\r\n if ($blockAdminGroup > 0) {\r\n // set the block's permissions\r\n $A = array ();\r\n SEC_setDefaultPermissions ($A, $_CONF['default_permissions_block']);\r\n\r\n // ... and make it the last block on the right side\r\n $result = DB_query (\"SELECT MAX(blockorder) FROM {$_TABLES['blocks']} WHERE onleft = 0\");\r\n list($order) = DB_fetchArray ($result);\r\n $order += 10;\r\n\r\n DB_query (\"UPDATE {$_TABLES['blocks']} SET group_id = $blockAdminGroup, blockorder = $order, perm_owner = {$A['perm_owner']}, perm_group = {$A['perm_group']}, perm_members = {$A['perm_members']}, perm_anon = {$A['perm_anon']} WHERE (type = 'phpblock') AND (phpblockfn = 'phpblock_nexproject')\");\r\n\r\n }\r\n\r\n $nexfile = true;\r\n if(!function_exists(\"fm_createCategory\")){\r\n //COM_errorLog ('The nexFile plugin is not installed. Please install it before continuing', 1);\r\n //echo COM_refresh ($_CONF['site_admin_url'] . '/plugins.php?msg=2&plugin='.$pi_name);\r\n //exit(0);\r\n $nexfile = false;\r\n }\r\n $forum = true;\r\n if(!function_exists(\"forum_addForum\")){\r\n //COM_errorLog ('The forum plugin is not installed. Please install it before continuing', 1);\r\n //echo COM_refresh ($_CONF['site_admin_url'] . '/plugins.php?msg=4&plugin='.$pi_name);\r\n //exit(0);\r\n $forum = false;\r\n }\r\n\r\n\r\n\r\n //And now, install the lookup lists and add nxprj config values to house the nexlist items\r\n\r\n $sql = \"insert into {$_TABLES['nexlist']} (plugin, category, name, description, listfields, edit_perms, view_perms, active)\r\n values ( 'all','nexPro', 'Locations', 'List of locations', 1, 1, 2, 1);\";\r\n $res=DB_query($sql);\r\n $locID= DB_insertId();\r\n\r\n $sql = \"insert into {$_TABLES['nexlist']} (plugin, category, name, description, listfields, edit_perms, view_perms, active)\r\n values ('all','nexPro','Departments','List of Departments', 1, 1, 2, 1);\";\r\n $res=DB_query($sql);\r\n $deptID= DB_insertId();\r\n\r\n $sql = \"insert into {$_TABLES['nexlist']} (plugin, category, name, description, listfields, edit_perms, view_perms, active)\r\n values ('all','nexPro', 'Categories','List of Categories', 1, 1, 2, 1);\";\r\n $res=DB_query($sql);\r\n $catID= DB_insertId();\r\n\r\n $sql = \"INSERT INTO {$_TABLES['nexlist']} (plugin, category, name, description, listfields, edit_perms, view_perms, active)\r\n VALUES ('all', 'nexPro', 'Objectives', 'List of Project Objectives', 1, 1, 2, 1);\";\r\n $res=DB_query($sql);\r\n $objID= DB_insertId();\r\n\r\n /* create lookuplist Fields for list definitions */\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistfields']} (lid, fieldname) values('{$locID}','Location' )\";\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistfields']} (lid, fieldname) values('{$deptID}','Department' )\";\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistfields']} (lid, fieldname) values('{$catID}','Department' )\";\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistfields']} (lid, fieldname) values('{$objID}','Objective' )\";\r\n\r\n /* create lookuplist list records for each definition */\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistitems']} (lid, itemorder, value, active) values ('{$locID}', 10, 'Toronto',1)\";\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistitems']} (lid, itemorder, value, active) values ('{$locID}', 20, 'Hong Kong',1)\";\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistitems']} (lid, itemorder, value, active) values ('{$locID}', 30, 'Brisbane',1)\";\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistitems']} (lid, itemorder, value, active) values ('{$locID}', 40, 'Tokyo',1)\";\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistitems']} (lid, itemorder, value, active) values ('{$locID}', 50, 'New York',1)\";\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistitems']} (lid, itemorder, value, active) values ('{$locID}', 60, 'San Fransisco',1)\";\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistitems']} (lid, itemorder, value, active) values ('{$locID}', 70, 'London',1)\";\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistitems']} (lid, itemorder, value, active) values ('{$deptID}', 10, 'Sales',1)\";\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistitems']} (lid, itemorder, value, active) values ('{$deptID}', 20, 'Information Technology',1)\";\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistitems']} (lid, itemorder, value, active) values ('{$deptID}', 30, 'Marketing',1)\";\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistitems']} (lid, itemorder, value, active) values ('{$deptID}', 40, 'Finance',1)\";\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistitems']} (lid, itemorder, value, active) values ('{$deptID}', 50, 'Operations',1)\";\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistitems']} (lid, itemorder, value, active) values ('{$deptID}', 60, 'Legal',1)\";\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistitems']} (lid, itemorder, value, active) values ('{$deptID}', 70, 'Revenue',1)\";\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistitems']} (lid, itemorder, value, active) values ('{$catID}', 10, 'Revenue',1)\";\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistitems']} (lid, itemorder, value, active) values ('{$catID}', 20, 'Safety',1)\";\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistitems']} (lid, itemorder, value, active) values ('{$catID}', 30, 'Environment',1)\";\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistitems']} (lid, itemorder, value, active) values ('{$catID}', 40, 'Training',1)\";\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistitems']} (lid, itemorder, value, active) values ('{$catID}', 50, 'Product Development',1)\";\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistitems']} (lid, itemorder, value, active) values ('{$catID}', 60, 'Branding',1)\";\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistitems']} (lid, itemorder, value, active) values ('{$catID}', 70, 'Investment',1)\";\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistitems']} (lid, itemorder, value, active) values ('{$catID}', 80, 'Capital Expenditure',1)\";\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistitems']} (lid, itemorder, value, active) VALUES ('{$objID}', 90, 'Business Growth', 1);\";\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistitems']} (lid, itemorder, value, active) VALUES ('{$objID}', 100, 'Product Development', 1);\";\r\n $_PRJSQL[] = \"insert into {$_TABLES['nexlistitems']} (lid, itemorder, value, active) VALUES ('{$objID}', 110, 'Objective 3', 1);\";\r\n\r\n foreach ($_PRJSQL as $sql) {\r\n DB_query ($sql);\r\n if (DB_error ()) {\r\n $err=1;\r\n }\r\n }\r\n $c = config::get_instance();\r\n $c->add('prj_list', NULL, 'fieldset', 0, 1, NULL, 0, true, 'nexproject');\r\n $c->add('nexlist_locations', $locID,'text',0, 1, 0, 150, true, 'nexproject');\r\n $c->add('nexlist_departments', $deptID,'text',0, 1, 0, 160, true, 'nexproject');\r\n $c->add('nexlist_category', $catID,'text',0, 1, 0, 170, true, 'nexproject');\r\n $c->add('nexlist_objective', $objID,'text',0, 1, 0, 180, true, 'nexproject');\r\n\r\n //we are assuming that nexfile and the forum are installed here. We cannot get this far if they werent!\r\n //the first thing we do is create a new nexFile category which will be used as the base category ID to dump files into for projects\r\n\r\n if ($nexfile) {\r\n $arr=fm_createCategory(0,'nexProject Category','This base category is used by the nexProject plugin to create document repositories for each project.',true);\r\n //config parms for this\r\n $c->add('prj_file', NULL, 'fieldset', 0, 2, NULL, 0, true, 'nexproject');\r\n $c->add('nexfile_parent', $arr[0],'text',0, 2, 0, 190, true, 'nexproject');\r\n }\r\n else {\r\n //config parms for this\r\n $c->add('prj_file', NULL, 'fieldset', 0, 2, NULL, 0, true, 'nexproject');\r\n $c->add('nexfile_parent', 0,'text',0, 2, 0, 190, true, 'nexproject');\r\n }\r\n\r\n //and now, we create a new forum category and dump that into the config database\r\n if ($forum) {\r\n $sql =\"INSERT INTO {$_TABLES['gf_categories']} (cat_order,cat_name,cat_dscp) values (0,'nexProject Category','This base category is used by the nexProject plugin to create forum repositories for each project.') \";\r\n DB_query($sql);\r\n $catid=DB_insertId();\r\n $c->add('prj_forum', NULL, 'fieldset', 0, 3, NULL, 0, true, 'nexproject');\r\n $c->add('forum_parent', $catid,'text',0, 3, 0, 200, true, 'nexproject');\r\n }\r\n else {\r\n $c->add('prj_forum', NULL, 'fieldset', 0, 3, NULL, 0, true, 'nexproject');\r\n $c->add('forum_parent', 0,'text',0, 3, 0, 200, true, 'nexproject');\r\n }\r\n\r\n return true;\r\n}", "title": "" }, { "docid": "d1ef7624047ed05cb5134536f1d870bc", "score": "0.5271108", "text": "public static function initializeModule()\n\t{\n\t\tif (!self::confExists(Vendor\\Config::NAME)) {\n\t\t\tself::setConfig(Vendor\\Config::create(array(\n\t\t\t\t'Foomo.Flash/vendor/org.foomo'\n\t\t\t)));\n\t\t}\n\t}", "title": "" }, { "docid": "5186c9b59b72ba74408feb09326b3822", "score": "0.52691585", "text": "function configure_editor_action($module_name, $editor = 'ckeditor')\n{\n $alias_record = drush_get_context('WF_ALIAS');\n// define('DRUPAL_ROOT', $alias_record['root']);\n\n $editor_dest = $alias_record['root'] . '/sites/all/libraries/ckeditor';\n $path = drupal_get_path('module', $module_name);\n\n //enabling module\n drush_log('enabling module - ' . $module_name . '....', 'ok');\n enable_artifact_action($module_name);\n\n //enabling module\n drush_log('enabling module - ' . $editor . '....', 'ok');\n enable_artifact_action($editor);\n\n //enabling module\n drush_log('enabling module - imce....', 'notice');\n enable_artifact_action('imce');\n\n //link CKeditor\n drush_log('linking ' . $editor . ' library....', 'ok');\n\n if (!file_exists('sites/all/libraries')) {\n drush_log('sites/all/libraries directory does not exist...creating one', 'notice');\n execute_command('sudo mkdir sites/all/libraries');\n }\n\n if (file_exists($editor_dest)) {\n drush_log(\"destination - \" . $editor_dest . \" already exist....deleting\", 'notice');\n execute_command('sudo rm -R ' . $editor_dest);\n }\n\n $editor_src = $alias_record['root'] . '/' . $path . '/libraries/ckeditor';\n link_action($editor_src, $editor_dest);\n}", "title": "" }, { "docid": "a636940f529f04e5feeac3b2a07b0fd9", "score": "0.5266249", "text": "public function init() {\n // you may place code here to customize the module or the application\n // import the module-level models and components\n $this->setImport(array(\n 'announcements.models.*',\n 'announcements.components.*',\n ));\n }", "title": "" }, { "docid": "bc60d98652d1d1479226a86a9152213a", "score": "0.52634877", "text": "public function init()\n\t{\n\t\t// you may place code here to customize the module or the application\n\n\t\t// import the module-level models and components\n\t\t$this->setImport(array(\n\n\t\t));\n\t}", "title": "" }, { "docid": "f268279a48fda39d195755fa5d2a8373", "score": "0.52632594", "text": "private function _initializeModule() {\n Braintree_Configuration::merchantId($this->merchantId);\n Braintree_Configuration::publicKey($this->publicKey);\n Braintree_Configuration::privateKey($this->privateKey);\n\n if ($this->production) {\n Braintree_Configuration::environment('production');\n } else {\n Braintree_Configuration::environment('sandbox');\n }\n\n $this->ready = true;\n }", "title": "" }, { "docid": "7327ac3e3e0c5978e8dbe3d6b77b7b5a", "score": "0.5261781", "text": "public function ajaxProcessaddModuleHook(){\n $result = array();\n //$id_hook = (int)Tools::getValue('id_hook');\n //$id_option = (int)Tools::getValue('id_option');\n $context = Context::getContext();\n $id_shop = $context->shop->id;\n $pagemeta = Tools::getValue('pagemeta');\n $hookcolumn = Tools::getValue('hookcolumn');\n $id_hookexec = (int)Tools::getValue('id_hookexec');\n $hookexec_name = Hook::getNameById($id_hookexec);\n $id_module = (int)Tools::getValue('id_module');\n if ($id_module && Validate::isUnsignedId($id_module) && $hookexec_name && Validate::isHookName($hookexec_name)){\n $moduleObject = Module::getInstanceById($id_module);\n $HookedModulesArr = OvicLayoutControl::getSideBarModulesByPage($pagemeta, $hookcolumn,false);\n if (!is_array($HookedModulesArr))\n $HookedModulesArr = array();\n $moduleHook = array();\n $moduleHook[] = $moduleObject->name;\n $moduleHook[] = $hookexec_name;\n $HookedModulesArr[] = $moduleHook;\n $result['status'] = OvicLayoutControl::registerSidebarModule($pagemeta,$hookcolumn,Tools::jsonEncode($HookedModulesArr),$id_shop); //registerHookModule($id_option, $id_hook, Tools::jsonEncode($HookedModulesArr),$this->context->shop->id);\n $result['msg'] = $this->l('Successful creation');\n $tpl = $this->createTemplate('module.tpl');\n $tpl->assign( array(\n 'id_hookexec' => $id_hookexec,\n 'hookexec_name' => $hookexec_name,\n 'modulePosition' => count((array)$HookedModulesArr),\n 'moduleDir' => _MODULE_DIR_,\n 'moduleObject' => $moduleObject,\n 'id_hook' => $id_hook,\n 'hookcolumn' => $hookcolumn,\n 'id_option' => $id_option,\n 'pagemeta' => $pagemeta,\n 'postUrl' => self::$currentIndex.'&token='.Tools::getAdminTokenLite('AdminLayoutSetting'),\n ));\n $result['html'] = $tpl->fetch();\n }\n die(Tools::jsonEncode($result));\n }", "title": "" }, { "docid": "70740e803d999d54554a28fa6279653d", "score": "0.5260577", "text": "public function init() {\n\t\t// you may place code here to customize the module or the application\n\t\t// import the module-level models and components\n\t\t$this->setImport(array(\n\t\t\t'dev.models.*',\n\t\t\t'dev.components.*',\n\t\t));\n\t}", "title": "" }, { "docid": "5dbad27308922e6607f7b863682f85ea", "score": "0.5258824", "text": "public function created (Module $module)\n {\n $this->fire ();\n }", "title": "" }, { "docid": "551972a39d94e3c3d6a6b2a4340580a5", "score": "0.52567697", "text": "public function install(callable $callback)\n\t{\n\t\tif(!$this->isInstalled()) {\n\n\t\t\t// Obtenemos las dependencias.\n\t\t\t$dependencias = $this->module->requires;\n\n\t\t\t// Verificamos que estén instaladas las dependencias.\n\t\t\tforeach($dependencias as $data) {\n\t\t\t\tif(! $this->isInstalled($data)){\n\t\t\t\t\t// Obtenemos las dependencias desde el servidor\n\t\t\t\t\t// module_download($data);\n\t\t\t\t\t// Instalamos las dependencias.\n\t\t\t\t\t// module_install($data);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Creamos el registro en la base de datos.\n\t\t\t$slug_module = str_slug($this->module->name);\n\n\t\t\t$_module = \\App\\Module::create([\n\t\t\t\t'name' => $this->module->name, \n\t\t\t\t'slug' => $slug_module\n\t\t\t]);\n\n\t\t\t$expireAt = now()->addYear(5);\n\t\t\t\n\t\t\tcache([\n\t\t\t\t\"module['$slug_module']\" => true\n\t\t\t], $expireAt);\n\n\t\t\t// Llamamos la función callback\n\t\t\tcall_user_func($callback, $this);\n\t\t}\n\t}", "title": "" }, { "docid": "3bae062febae91d6766e07471ab1b5ce", "score": "0.5252668", "text": "public function run()\n {\n ModuleConfigure::create([\n \t'module_id' => 1,\n \t'name' => 'Database',\n \t'description' => 'Configurate Database',\n \t'type' => 'config-database',\n \t'value' => '{\"columns\":[\"firstname\",\"lastname\",\"email\",\"password\"],\"username\":\"email\",\"password\":\"password\"}',\n \t'step' => 1\n ]);\n\n ModuleConfigure::create([\n \t'module_id' => 1,\n \t'name' => 'Option Login',\n \t'description' => 'Select login type',\n \t'type' => 'login-type',\n \t'value' => '{\"type\":\"1\"}',\n \t'step' => 2\n ]);\n\n ModuleConfigure::create([\n \t'module_id' => 1,\n \t'name' => 'Page Login',\n \t'description' => 'Select Page to login',\n \t'type' => 'select-page',\n \t'value' => '{\"option\":\"page\",\"value\":\"2\"}',\n \t'step' => 3 \n ]);\n\n ModuleConfigure::create([\n \t'module_id' => 1,\n \t'name' => 'Design Login',\n \t'description' => 'Configurate Design of login',\n \t'type' => 'design-page',\n \t'value' => '{\"design\":\"save\"}',\n \t'step' => 4 \n ]);\n\n ModuleConfigure::create([\n \t'module_id' => 1,\n \t'name' => 'Add login trigger',\n \t'description' => 'Select where you want to add the button that redirect to the login',\n \t'type' => 'select-page',\n \t'value' => '{\"option\":\"layout\",\"value\":\"1\"}',\n \t'step' => 5 \n ]);\n\n ModuleConfigure::create([\n \t'module_id' => 1,\n \t'name' => 'Design login trigger',\n \t'description' => 'Configurate Design of login trigger',\n \t'type' => 'design-page',\n \t'value' => '{\"design\":\"save\"}',\n \t'step' => 6 \n ]);\n\n ModuleConfigure::create([\n \t'module_id' => 1,\n \t'name' => 'Page Logout',\n \t'description' => 'Select Page to logout ',\n \t'type' => 'select-page',\n \t'value' => '{\"option\":\"layout\",\"value\":\"1\"}',\n \t'step' => 7 \n ]);\n\n ModuleConfigure::create([\n \t'module_id' => 1,\n \t'name' => 'Logout Button',\n \t'description' => 'Add logout button ',\n \t'type' => 'design-page',\n \t'value' => '{\"design\":\"save\"}',\n \t'step' => 8 \n ]);\n\n ModuleConfigure::create([\n \t'module_id' => 1,\n \t'name' => 'Page Register',\n \t'description' => 'Select Page to register ',\n \t'type' => 'select-page',\n \t'value' => '{\"option\":\"page\",\"value\":\"3\"}',\n \t'step' => 9\n ]);\n\n ModuleConfigure::create([\n \t'module_id' => 1,\n \t'name' => 'Design Register',\n \t'description' => 'Configurate Design of register',\n \t'type' => 'design-page',\n \t'value' => '{\"design\":\"save\"}',\n \t'step' => 10 \n ]);\n\n ModuleConfigure::create([\n \t'module_id' => 1,\n \t'name' => 'Set User Information',\n \t'description' => 'Set user information',\n \t'type' => 'user-information',\n \t'value' => '{\"Nombre\":\"firstname\",\"Apellido\":\"lastname\",\"content_option_information\":\"layout\",\"layout\":\"1\"}',\n \t'step' => 11 \n ]);\n\n ModuleConfigure::create([\n \t'module_id' => 1,\n \t'name' => 'Design User Information',\n \t'description' => 'Configurate Design of user information',\n \t'type' => 'design-page',\n \t'value' => '{\"design\":\"save\"}' ,\n \t'step' => 12 \n ]);\n\n ModuleConfigure::create([\n \t'module_id' => 1,\n \t'name' => 'User pages',\n \t'description' => 'Select the pages to which only logged users can enter',\n \t'type' => 'user-page',\n \t'value' => '{\"pages\":null}',\n \t'step' => 13 \n ]);\n }", "title": "" }, { "docid": "76856f27a5b11ec183e30b7d81fbaf85", "score": "0.52478987", "text": "private function _initModules()\n {\n if (empty($this->_parameters['directory'])) {\n throw new Horde_Cli_Modular_Exception(\n 'The \"directory\" parameter is missing!'\n );\n }\n if (!file_exists($this->_parameters['directory'])) {\n throw new Horde_Cli_Modular_Exception(\n sprintf(\n 'The indicated directory %s does not exist!',\n $this->_parameters['directory']\n )\n );\n }\n if (!isset($this->_parameters['exclude'])) {\n $this->_parameters['exclude'] = array();\n } else if (!is_array($this->_parameters['exclude'])) {\n $this->_parameters['exclude'] = array($this->_parameters['exclude']);\n }\n foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($this->_parameters['directory'])) as $file) {\n if ($file->isFile() && preg_match('/.php$/', $file->getFilename())) {\n $class = preg_replace(\"/^(.*)\\.php/\", '\\\\1', $file->getFilename());\n if (!in_array($class, $this->_parameters['exclude'])) {\n $this->_modules[] = $class;\n }\n }\n }\n }", "title": "" }, { "docid": "f962debea2448f001193a96774a2ff89", "score": "0.5239536", "text": "public function addAction() {\n $form = $this->createModuleUploadForm();\n if (!$form->isSubmitted()) {\n $this->response->setRedirect($this->request->getBasePath());\n return;\n }\n\n $this->response->setRedirect($this->getReferer());\n $exception = null;\n\n try {\n $form->validate();\n\n $file = $form->getModule();\n\n $this->repository->addModule($file);\n\n $this->addInformation(self::TRANSLATION_MODULE_ADDED, array('file' => $file->getName()));\n } catch (ModuleVersionAlreadyExistsException $e) {\n $parameters = array(\n 'namespace' => $e->getNamespace(),\n 'name' => $e->getName(),\n 'version' => $e->getVersion(),\n );\n\n $this->addError(self::TRANSLATION_MODULE_EXISTS, $parameters);\n } catch (ValidationException $e) {\n $this->response->setRedirect($this->getReferer());\n } catch (Exception $e) {\n $this->response->clearRedirect();\n $exception = $e;\n }\n\n if (isset($file) && $file->exists()) {\n $file->delete();\n }\n\n if ($exception != null) {\n throw $exception;\n }\n }", "title": "" }, { "docid": "f2ec240582716054b8964d402ac8c994", "score": "0.5237463", "text": "function add_new() {\n if(!ProjectSourceRepositories::canAdd($this->logged_user, $this->active_project)) {\n $this->response->forbidden();\n } // if\n \n $repository_data = $this->request->post('repository');\n if(!is_array($repository_data)) {\n $repository_data = array(\n 'visibility' => $this->active_project->getDefaultVisibility(),\n );\n } // if\n \n if ($this->request->isSubmitted()) {\n \ttry {\n \t \n \t DB::beginWork('Begin adding new repository to a project');\n \t $source_repository_id = null;\n \t $repository_data['repository_path_url'] = ProjectSourceRepository::slashifyAtEnd($repository_data['repository_path_url']);\n \n \t $this->active_repository = new $repository_data['type']();\n \t \n $this->active_repository->setAttributes($repository_data);\n $this->active_repository->setCreatedBy($this->logged_user);\n if (($error = $this->active_repository->loadEngine()) !== true) {\n throw new Error(lang('Failed to load repository engine'));\n } // if\n if (!$this->active_repository->engineIsUsable()) {\n \tthrow new Error(lang('Please configure the SVN extension prior to adding a repository'));\n } // if\n\n // check validity of repository credentials\n $result = $this->active_repository->testRepositoryConnection();\n if ($result !== true) {\n if ($result === false) {\n $message = 'Please check URL or login parameters.';\n } else {\n $message = $result;\n } //if\n throw new Error(lang('Failed to connect to repository: :message', array('message'=>$message)));\n } //if\n\n $this->active_repository->save();\n\t\t\t\t\t\n $this->project_object_repository->setName($this->active_repository->getName());\n $this->project_object_repository->setParentId($this->active_repository->getId());\n $this->project_object_repository->setVisibility($repository_data['visibility']);\n $this->project_object_repository->setProjectId($this->active_project->getId());\n $this->project_object_repository->setCreatedBy($this->logged_user);\n $this->project_object_repository->setState(STATE_VISIBLE);\n \n $this->project_object_repository->save();\n DB::commit('Successfully added new repository to a project');\n \n // we need specific repository return format as we need graph rendered on page (which is to complicated to do with javascript)\n $this->response->respondWithData($this->project_object_repository);\n \t} catch (Exception $e) {\n \t\tDB::rollback('Failed to add repository');\n \t\t$this->response->exception($e);\n \t} // try\n } // if\n \n $this->smarty->assign(array(\n 'types' => source_module_types(),\n 'update_types' => source_module_update_types(),\n 'repository_add_url' => Router::assemble('repository_add_new', array('project_slug' => $this->active_project->getSlug())),\n 'repository_data' => $repository_data,\n 'disable_url_and_type' => false,\n 'aid_engine' => '',\n 'repository_test_connection_url'\t=> Router::assemble('repository_test_connection', array('project_slug' => $this->active_project->getSlug()))\n ));\n }", "title": "" }, { "docid": "a3b79d1d339ddf9215c156fff0d8e074", "score": "0.5228289", "text": "public function testMakingAListenerWithEventOption () : void\n {\n $this->initModules();\n\n // And I have a module\n $this->createModule();\n\n // And my module is set to my workbench\n $this->moduleManager->setWorkbench($this->module);\n\n // And I make a listener\n $listener = \"NewListener\";\n $response = $this->artisan(\"make:listener\", [\"name\" => $listener, \"--event\" => \"NewEvent\"]);\n $response->expectsOutput(\"Listener created successfully.\");\n $response->run();\n\n // I should have a listener in my module\n// $this->assertTrue(class_exists($this->moduleManager->getModuleNameSpace($module) . \"\\\\Listeners\\\\$listener\"));\n $this->assertTrue(is_file(base_path(config(\"modules.root\") . \"/{$this->module}/Listeners/$listener.php\")));\n }", "title": "" }, { "docid": "9c436abf692c6bb690d3397b4f6cfd39", "score": "0.5227252", "text": "public function init() {\n\t\tparent::init();\n\n\t\t$this->modSharedTSconfig = \\TYPO3\\CMS\\Backend\\Utility\\BackendUtility::getModTSconfig($this->id, 'mod.SHARED');\n\t\t$this->MOD_SETTINGS = \\TYPO3\\CMS\\Backend\\Utility\\BackendUtility::getModuleData($this->MOD_MENU, \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::_GP('SET'), $this->MCONF['name']);\n\n\t\t$tmpTSc = \\TYPO3\\CMS\\Backend\\Utility\\BackendUtility::getModTSconfig($this->id, 'mod.web_list');\n\t\t$tmpTSc = $tmpTSc ['properties']['newContentWiz.']['overrideWithExtension'];\n\t\tif ($tmpTSc != 'templavoila' && \\TYPO3\\CMS\\Core\\Utility\\ExtensionManagementUtility::isLoaded($tmpTSc)) {\n\t\t\t$this->newContentWizScriptPath = $GLOBALS['BACK_PATH'] . \\TYPO3\\CMS\\Core\\Utility\\ExtensionManagementUtility::extRelPath($tmpTSc) . 'mod1/db_new_content_el.php';\n\t\t}\n\n\t\t$this->extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['templavoila']);\n\n\t\t$this->altRoot = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::_GP('altRoot');\n\t\t$this->versionId = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::_GP('versionId');\n\n\t\tif (isset($this->modTSconfig['properties']['previewTitleMaxLen'])) {\n\t\t\t$this->previewTitleMaxLen = (int)$this->modTSconfig['properties']['previewTitleMaxLen'];\n\t\t}\n\n\t\t// enable debug for development\n\t\tif ($this->modTSconfig['properties']['debug']) {\n\t\t\t$this->debug = TRUE;\n\t\t}\n\t\t$this->blindIcons = isset($this->modTSconfig['properties']['blindIcons']) ? \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::trimExplode(',', $this->modTSconfig['properties']['blindIcons'], TRUE) : array();\n\n\t\t$this->addToRecentElements();\n\n\t\t// Fill array allAvailableLanguages and currently selected language (from language selector or from outside)\n\t\t$this->allAvailableLanguages = $this->getAvailableLanguages(0, TRUE, TRUE, TRUE);\n\t\t$this->currentLanguageKey = $this->allAvailableLanguages[$this->MOD_SETTINGS['language']]['ISOcode'];\n\t\t$this->currentLanguageUid = $this->allAvailableLanguages[$this->MOD_SETTINGS['language']]['uid'];\n\n\t\t// If no translations exist for this page, set the current language to default (as there won't be a language selector)\n\t\t$this->translatedLanguagesArr = $this->getAvailableLanguages($this->id);\n\t\tif (count($this->translatedLanguagesArr) == 1) { // Only default language exists\n\t\t\t$this->currentLanguageKey = 'DEF';\n\t\t}\n\n\t\t// Set translator mode if the default langauge is not accessible for the user:\n\t\tif (!\\Extension\\Templavoila\\Utility\\GeneralUtility::getBackendUser()->checkLanguageAccess(0) && !\\Extension\\Templavoila\\Utility\\GeneralUtility::getBackendUser()->isAdmin()) {\n\t\t\t$this->translatorMode = TRUE;\n\t\t}\n\n\t\t// Initialize side bar and wizards:\n\t\t$this->sideBarObj =& \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::getUserObj('&tx_templavoila_mod1_sidebar', '');\n\t\t$this->sideBarObj->init($this);\n\t\t$this->sideBarObj->position = isset($this->modTSconfig['properties']['sideBarPosition']) ? $this->modTSconfig['properties']['sideBarPosition'] : 'toptabs';\n\n\t\t$this->wizardsObj = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::getUserObj('&tx_templavoila_mod1_wizards', '');\n\t\t$this->wizardsObj->init($this);\n\n\t\t// Initialize TemplaVoila API class:\n\t\t$this->apiObj = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance(\\Extension\\Templavoila\\Service\\ApiService::class, $this->altRoot ? $this->altRoot : 'pages');\n\t\tif (isset($this->modSharedTSconfig['properties']['useLiveWorkspaceForReferenceListUpdates'])) {\n\t\t\t$this->apiObj->modifyReferencesInLiveWS(TRUE);\n\t\t}\n\t\t// Initialize the clipboard\n\t\t$this->clipboardObj =& \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::getUserObj('&tx_templavoila_mod1_clipboard', '');\n\t\t$this->clipboardObj->init($this);\n\n\t\t// Initialize the record module\n\t\t$this->recordsObj =& \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::getUserObj('&tx_templavoila_mod1_records', '');\n\t\t$this->recordsObj->init($this);\n\t\t// Add the localization module if localization is enabled:\n\t\tif ($this->alternativeLanguagesDefined()) {\n\t\t\t$this->localizationObj =& \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::getUserObj('&tx_templavoila_mod1_localization', '');\n\t\t\t$this->localizationObj->init($this);\n\t\t}\n\n\t\t$this->flashMessageService = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance(\\TYPO3\\CMS\\Core\\Messaging\\FlashMessageService::class);\n\t}", "title": "" }, { "docid": "beb35ebcfa2a1802d047a897e264409b", "score": "0.5226133", "text": "public function newinterfaceAction()\n {\n $identity = $this->auth->getIdentity();\n $setting = Setting::findFirst(array(\n 'conditions' => 'Modules\\Models\\Setting.subdomain_id = '. $this->_get_subdomainID() .''\n ));\n\n $layoutId = $setting->layout_id;\n\n $layout = Layout::find(\n array(\n \"order\" => \"sort ASC, id DESC\",\n )\n );\n\n $layoutConfig = LayoutConfig::findFirst([\n \"conditions\" => \"subdomain_id = \".$this->_get_subdomainID().\" AND layout_id = $layoutId\"\n ]);\n\n $css_item = ($layoutConfig && !empty($layoutConfig->css)) ? json_decode($layoutConfig->css) : \"\";\n\n $background = Background::findFirst([\n \"conditions\" => \"layout_config_id = $layoutConfig->id\"\n ]);\n\n $tmpModuleGroupLayout = TmpModuleGroupLayout::find();\n $arrayTmp = [];\n if (count($tmpModuleGroupLayout) > 0) {\n foreach ($tmpModuleGroupLayout as $row) {\n $arrayTmp[$row->layout_id][0] = 0;\n $arrayTmp[$row->layout_id][] = $row->module_group_id;\n }\n }\n\n $general = new General();\n $form = new SettingForm($setting);\n\n if ($this->request->isPost()) {\n $request = $this->request->getPost();\n\n //sort header\n $positions = Position::find([\"conditions\" => \"active = 'Y' AND deleted = 'N'\"]);\n TmpLayoutModule::deleteByRawSql('subdomain_id ='. $this->_get_subdomainID() .'');\n foreach ($positions as $position) {\n // active\n if ($this->request->getPost('active_module_' . $position->code. '_' . $layoutId)) {\n $activeModules = $this->request->getPost('active_module_' . $position->code. '_' . $layoutId);\n $sortModules = $this->request->getPost('sort_module_' . $position->code. '_' . $layoutId);\n\n foreach ($activeModules as $key => $activeModule) {\n $moduleItem = ModuleItem::findFirstById($key);\n if ($moduleItem->parent_id == 0) {\n $tmpLayoutModule = new TmpLayoutModule();\n $tmpLayoutModule->assign([\n 'subdomain_id' => $this->_get_subdomainID(),\n 'layout_id' => $layoutId,\n 'position_id' => $position->id,\n 'module_item_id' => $key,\n 'active' => 'Y',\n 'sort' => $sortModules[$key],\n ]);\n\n $tmpLayoutModule->save();\n } else {\n $moduleItemParentId = $moduleItem->parent_id;\n if (isset($activeModules[$moduleItemParentId])) {\n $tmpLayoutModule = new TmpLayoutModule();\n $tmpLayoutModule->assign([\n 'subdomain_id' => $this->_get_subdomainID(),\n 'layout_id' => $layoutId,\n 'position_id' => $position->id,\n 'module_item_id' => $key,\n 'active' => 'Y',\n 'sort' => $sortModules[$key],\n ]);\n\n $tmpLayoutModule->save();\n }\n }\n }\n }\n }\n\n // save layout config\n $layoutConfigPost = LayoutConfig::findFirst([\n \"conditions\" => \"subdomain_id = \".$this->_get_subdomainID().\" AND layout_id = $layoutId\"\n ]);\n\n $data_bgr = array();\n if (empty($background)) {\n $background = new Background();\n $data_bgr['subdomain_id'] = $this->_get_subdomainID();\n $data_bgr['layout_config_id'] = $layoutConfigPost->id;\n $data_bgr['sort'] = 1;\n } else {\n $photo = $background->photo;\n if ($this->request->getPost('delete_background')) {\n $data['css'][\"background_photo\"] = '';\n $data_bgr['photo'] = '';\n @unlink(\"files/default/\" . $this->_get_subdomainFolder() . \"/\" . $photo);\n } else {\n $data['css'][\"background_photo\"] = $photo;\n if (file_exists(('files/default/' . $this->_get_subdomainFolder() . '/' . $photo))) {\n $dataCss[\"background_photo\"] = $photo;\n }\n }\n }\n\n $color = $this->request->getPost('color');\n\n if (!empty($color)) {\n $data_bgr['color'] = $color;\n $dataCss[\"background_color\"] = $color;\n }\n $data_bgr['text_color'] = $this->request->getPost('text_color');\n\n $data_bgr['type'] = $this->request->getPost('type');\n $data_bgr['attachment'] = $this->request->getPost('attachment');\n $data_bgr['active'] = $this->request->getPost('bgr_active');\n\n $dataCss[\"background_type\"] = $this->request->getPost('type');\n $dataCss[\"background_attachment\"] = $this->request->getPost('attachment');\n $dataCss[\"background_active\"] = $this->request->getPost('bgr_active');\n\n //set css layout\n $dataCss['font_web'] = $this->request->getPost('font_web');\n $dataCss['container'] = $this->request->getPost('container');\n $dataCss['bar_web_bgr'] = $this->request->getPost('bar_web_bgr');\n $dataCss['bar_web_color'] = $this->request->getPost('bar_web_color');\n $dataCss['txt_web_color'] = $this->request->getPost('txt_web_color');\n $dataCss['menu_top_color'] = $this->request->getPost('menu_top_color');\n\n $enableColor = $this->request->getPost(\"enable_color\");\n $subFolder = $this->_get_subdomainFolder();\n $subfolderUrl = 'files/default/' . $subFolder;\n if ($this->request->hasFiles() == true) {\n $subFolder = $this->_get_subdomainFolder();\n $files = $this->request->getUploadedFiles();\n foreach ($files as $file) {\n if (!empty($file->getName())) {\n // upload background for web\n if ($file->getKey() == 'photo') {\n $dataUpload = $this->upload_service->upload($file, $subfolderUrl);\n if (!empty($dataUpload['file_name'])) {\n $data_bgr['photo'] = $dataUpload['file_name'];\n $dataCss[\"background_photo\"] = $dataUpload['file_name'];\n if (isset($photo)) {\n unlink($subfolderUrl . '/' . $photo);\n }\n } else {\n $this->flashSession->error( $dataUpload['message']);\n return $this->response->redirect($this->router->getRewriteUri());\n }\n }\n } elseif ($this->request->getPost('brg_select') != '') {\n copy('assets/source/background/' . $this->request->getPost('brg_select'), 'files/default/' . $this->_get_subdomainFolder() . '/' . $this->request->getPost('brg_select'));\n $data_bgr['photo'] = $this->request->getPost('brg_select');\n $dataCss[\"background_photo\"] = $this->request->getPost('brg_select');\n @unlink('files/default/' . $this->_get_subdomainFolder() . '/' . $photo);\n }\n }\n }\n\n $background->assign($data_bgr);\n $background->save();\n\n $css = json_encode($dataCss);\n\n $pageCss = $this->getCustomCss($dataCss, $enableColor);\n\n $file = \"assets/css/pages/\". $this->_get_subdomainFolder() .\"/page\" . $layoutId . \".css\";\n $minifyFile = \"assets/css/pages/\". $this->_get_subdomainFolder() .\"/page.min.css\";\n\n if ($this->request->getPost(\"enable_css\") == 1) {\n file_put_contents($file, \"\");\n file_put_contents($file, $pageCss, FILE_APPEND | LOCK_EX);\n\n // save minified file to disk\n $minifier = new Minify\\CSS($file);\n $minifier->minify($minifyFile);\n }\n\n $layoutConfigPost->assign([\n 'hide_header' => $this->request->getPost('hide_header'),\n 'hide_left' => $this->request->getPost('hide_left'),\n 'hide_right' => $this->request->getPost('hide_right'),\n 'hide_footer' => $this->request->getPost('hide_footer'),\n 'show_left_inner' => $this->request->getPost('show_left_inner'),\n 'show_right_inner' => $this->request->getPost('show_right_inner'),\n 'css' => $css,\n 'enable_css' => $this->request->getPost(\"enable_css\"),\n 'enable_color' => $this->request->getPost(\"enable_color\"),\n ]);\n $layoutConfigPost->save();\n\n \n $this->flashSession->success($this->_message[\"edit\"]);\n\n $this->response->redirect(ACP_NAME . '/' . $this->_getControllerName() . '/' . $this->_getActionName());\n }\n\n $position = Position::find([\n 'columns' => 'id, name, code',\n \"conditions\" => \"active = 'Y'\",\n 'order' => 'sort ASC, id DESC'\n ]);\n\n $moduleItemAlls = ModuleItem::find([\n \"conditions\" => \"subdomain_id = \". $this->_get_subdomainID() .\" AND parent_id = 0\"\n ]);\n\n $moduleItems = $this->modelsManager->createBuilder()\n ->columns(\n \"mi.module_group_id,\n mi.parent_id,\n mi.name AS module_name,\n mi.id AS module_id,\n mi.module_group_id,\n mi.sort AS module_sort,\n mi.type AS module_type,\n tmp.id,\n tmp.layout_id,\n tmp.position_id,\n tmp.active,\n tmp.sort\"\n )\n ->addFrom(\"Modules\\Models\\ModuleItem\", \"mi\")\n ->leftJoin(\"Modules\\Models\\TmpLayoutModule\", \"mi.id = tmp.module_item_id\", \"tmp\")\n ->where(\"mi.subdomain_id = \". $this->_get_subdomainID() .\" AND parent_id = 0\")\n ->inWhere(\"mi.module_group_id\", $arrayTmp[$layoutId])\n ->orderBy(\"tmp.sort ASC, tmp.id DESC, mi.name ASC, mi.sort ASC, mi.id DESC\")\n ->getQuery()\n ->execute();\n\n $position_module_array = [];\n $moduleArray = [\n 'header' => [],\n 'left' => [],\n 'right' => [],\n 'center' => [],\n 'footer' => [],\n ];\n\n \n $existTmpArray = [];\n $unsetArray = [];\n foreach ($position as $p) {\n foreach ($moduleItems as $key => $moduleItem) {\n switch ($moduleItem->module_type) {\n case 'banner':\n $bannerType = BannerType::findFirstByModuleItemId($moduleItem->module_id);\n $url = ACP_NAME . '/banner';\n break;\n case 'post':\n $post = Posts::findFirstByModuleItemId($moduleItem->module_id);\n $url = ACP_NAME . '/posts';\n break;\n case 'menu':\n $menu = Menu::findFirstByModuleItemId($moduleItem->module_id);\n if ($menu) {\n $url = ACP_NAME . '/menu/update/' . $menu->id;\n }\n break;\n \n default:\n $moduleGroup = ModuleGroup::findFirstById($moduleItem->module_group_id);\n if ($moduleGroup && !empty($moduleGroup->link) != '') {\n $url = ACP_NAME . '/' . $moduleGroup->link;\n } else {\n $url = '';\n }\n \n break;\n }\n\n $item = $moduleItem->toArray();\n $item['url'] = $url;\n $item['module_name'] = ($moduleItem->module_type == 'post') ? 'Tự soạn thảo: ' . $moduleItem->module_name : $moduleItem->module_name;\n\n // get child\n if ($moduleItem->module_type != 'banner' && $moduleItem->module_type != 'post' && $moduleItem->module_type != 'menu') {\n $moduleItemChilds = $this->modelsManager->createBuilder()\n ->columns(\n \"mi.module_group_id,\n mi.parent_id,\n mi.name AS module_name,\n mi.id AS module_id,\n mi.module_group_id,\n mi.sort AS module_sort,\n mi.type AS module_type,\n mi.active AS module_active,\n tmp.id,\n tmp.layout_id,\n tmp.position_id,\n tmp.active,\n tmp.sort\"\n )\n ->addFrom(\"Modules\\Models\\ModuleItem\", \"mi\")\n ->leftJoin(\"Modules\\Models\\TmpLayoutModule\", \"mi.id = tmp.module_item_id\", \"tmp\")\n ->where(\"mi.subdomain_id = \". $this->_get_subdomainID() .\" AND parent_id = \". $moduleItem->module_id .\"\")\n ->orderBy(\"tmp.sort ASC, tmp.id DESC, mi.sort ASC, mi.name ASC, mi.id DESC\")\n ->getQuery()\n ->execute();\n\n if (count($moduleItemChilds) == 0) {\n $moduleItemChilds = ModuleItem::find([\n 'columns' => 'id AS module_id, parent_id, name AS module_name, level, type, sort, active',\n 'conditions' => 'subdomain_id = '. $this->_get_subdomainID() .' AND parent_id = '. $moduleItem->module_id .''\n ]);\n }\n\n if (count($moduleItemChilds) > 0) {\n $itemChilds = [];\n foreach ($moduleItemChilds as $moduleItemChild) {\n switch ($moduleItemChild->module_type) {\n case 'banner':\n $bannerType = BannerType::findFirstByModuleItemId($moduleItemChild->module_id);\n $urlChild = ACP_NAME . '/banner';\n break;\n case 'post':\n $post = Posts::findFirstByModuleItemId($moduleItemChild->module_id);\n $urlChild = ACP_NAME . '/posts';\n break;\n case 'menu':\n $menu = Menu::findFirstByModuleItemId($moduleItemChild->module_id);\n if ($menu) {\n $urlChild = ACP_NAME . '/menu/update/' . $menu->id;\n }\n break;\n \n default:\n $moduleGroup = ModuleGroup::findFirstById($moduleItemChild->module_group_id);\n if ($moduleGroup && !empty($moduleGroup->link) != '') {\n $urlChild = ACP_NAME . '/' . $moduleGroup->link;\n } else {\n $urlChild = '';\n }\n \n break;\n }\n\n $itemChild = $moduleItemChild->toArray();\n $itemChild['url'] = $urlChild;\n $itemChild['module_name'] = ($moduleItemChild->module_type == 'post') ? 'Tự soạn thảo: ' . $moduleItemChild->module_name : $moduleItemChild->module_name;\n\n $itemChilds[] = $itemChild;\n }\n\n $item['child'] = $itemChilds;\n }\n }\n\n // check module positon exist\n if ($moduleItem['position_id'] != $p->id && $moduleItem['position_id'] != '') {\n $item['id'] = '';\n $item['layout_id'] = '';\n $item['position_id'] = '';\n $item['active'] = '';\n $item['sort'] = '';\n $unsetArray[$p->code][$moduleItem['module_id']] = $item;\n } else {\n if ($item['sort'] != null) {\n $existTmpArray[$p->code][$moduleItem['module_id']] = $item;\n } else {\n $unsetArray[$p->code][$moduleItem['module_id']] = $item;\n }\n }\n }\n\n $position_module_array[$p->code] = [];\n\n if (!empty($existTmpArray[$p->code])) {\n foreach ($existTmpArray[$p->code] as $existArray) {\n array_push($position_module_array[$p->code], $existArray);\n }\n }\n\n // remove array unset duplicate\n if (isset($unsetArray[$p->code]) && !empty($unsetArray[$p->code])) {\n $unsetArray[$p->code] = array_map(\"unserialize\", array_unique(array_map(\"serialize\", $unsetArray[$p->code])));\n $unsetArray[$p->code] = array_values($unsetArray[$p->code]);\n $nameString[$p->code] = [];\n \n // sort by module name\n foreach ($unsetArray[$p->code] as $uArray) {\n $nameString[$p->code][] = $uArray['module_name'];\n }\n if (!empty($nameString[$p->code])) {\n array_multisort($nameString[$p->code], SORT_ASC, SORT_STRING, $unsetArray[$p->code]);\n }\n \n foreach ($unsetArray[$p->code] as $uArray) {\n if (!isset($existTmpArray[$p->code][$uArray['module_id']])) {\n array_push($position_module_array[$p->code], $uArray);\n }\n }\n }\n\n $position_module_array[$p->code] = array_values($position_module_array[$p->code]);\n }\n\n $brgDefaults = [];\n for ($i = 1; $i <= 10; $i++) {\n $pathFile = 'assets/source/background/thumbnail/' . 'background-' . $i . '.jpg';\n $typeFile = pathinfo($pathFile, PATHINFO_EXTENSION);\n $dataFile = file_get_contents($pathFile);\n $brgDefaults[] = 'data:image/' . $typeFile . ';base64,' . base64_encode($dataFile);\n }\n\n $breadcrumb = '<li class=\"active\">Cài đặt giao diện</li>';\n $this->view->breadcrumb = $breadcrumb;\n $this->view->setting = $setting;\n $this->view->layout = $layout;\n $this->view->layout_id = $layoutId;\n $this->view->module_array = $moduleArray;\n $this->view->css_item = $css_item;\n $this->view->background = $background;\n $this->view->layout_config = $layoutConfig;\n $this->view->brgDefaults = $brgDefaults;\n $this->view->position_module_array = $position_module_array;\n $this->view->list_color = $this->mainGlobal->colorDefault();\n $this->view->folder = $this->_get_subdomainFolder();\n $this->view->form = $form;\n }", "title": "" }, { "docid": "370672c4a51dea5f077cd054cbdd1301", "score": "0.52259517", "text": "public function init()\r\n {\r\n // you may place code here to customize the module or the application\r\n // import the module-level models and components\r\n \r\n $this->layout = $this->layoutPath . \".main\";\r\n\r\n $this->setImport(array(\r\n basename($this->id) . '.models.*',\r\n basename($this->id) . '.models.base.*',\r\n basename($this->id) . '.models.mybase.*',\r\n basename($this->id) . '.components.*',\r\n basename($this->id) . '.components.base.*',\r\n basename($this->id) . '.config.*',\r\n ));\r\n \r\n\r\n $this->setComponents(array(\r\n 'errorHandler' => array(\r\n 'errorAction' => basename($this->id) . '/default/error'\r\n ),\r\n\r\n 'defaultController' => 'default',\r\n ));\r\n\r\n $this->setBaseModule('rms');\r\n }", "title": "" }, { "docid": "e070c411815fa9097d29c39ad6d9f74f", "score": "0.52228874", "text": "protected function createModuleInfo()\n\t{\n\t\treturn new Core_ModuleInfo(\n\t\t\t\"PDF Invoices\",\n\t\t\t\"Generate Invoice PDFs to send to customers\",\n\t\t\t\"Flynsarmy\"\n\t\t);\n\t}", "title": "" }, { "docid": "304be85792b42d84470ce7e53c112936", "score": "0.5219603", "text": "public function __construct()\n {\n $this->modules = array();\n }", "title": "" }, { "docid": "d0f099a704778e4abd668c9c1966df0f", "score": "0.52171665", "text": "function public_server_install() {\n\n\tregister_hook('register_account', 'addon/public_server/public_server.php', 'public_server_register_account');\n\tregister_hook('cron', 'addon/public_server/public_server.php', 'public_server_cron');\n register_hook('enotify','addon/public_server/public_server.php', 'public_server_enotify');\n\tregister_hook('logged_in', 'addon/public_server/public_server.php', 'public_server_login');\n}", "title": "" }, { "docid": "8350d0d1af6c1ed4dce37607b1a53c50", "score": "0.5210387", "text": "public static function init()\n {\n rex_extension::register('PACKAGES_INCLUDED', function () {\n $pages = ['structure', 'linkmap']; // Pages, where articles are shown\n $page = rex_request::request('page', 'string');\n\n if (rex_addon::get('structure')->isAvailable() && in_array($page, $pages)) {\n rex_extension::register('PAGE_HEADER', [__CLASS__, 'ep']);\n }\n });\n }", "title": "" }, { "docid": "0fa548c8b0be59978c60ff9c539f1073", "score": "0.5210243", "text": "public function execute()\n {\n Doctrine_CI_LoadModulesTask::load($this->getArguments());\n\n // chama a tarefa para gerar o carregamento dos módulos\n Doctrine_CI_SecurityTask::load($this->getArguments());\n\n // notifica o resultado\n $this->notify(sprintf('Modules for '.$this->getArgument('application').' application loaded successfuly!'));\n }", "title": "" }, { "docid": "544522e48f444aefe85e51139b93e9d5", "score": "0.52089685", "text": "protected function postInitializeAction() {\n\t\t$this->extensionRepository = t3lib_div::makeInstance('Tx_Rbac_Domain_Repository_ExtensionRepository');\n\t}", "title": "" }, { "docid": "765e2ec1c60da73ff968be9032924c43", "score": "0.5204882", "text": "public function handle() {\n $this->createRepository();\n parent::handle();\n }", "title": "" }, { "docid": "1aebd7890f04464c362c52b4b4c36274", "score": "0.5203793", "text": "function Modules_BO()\n\t\t{\n\t\t\t$this->so =& CreateObject('sitemgr.Modules_SO', true);\n\n\t\t\t$this->instance_modules = $GLOBALS['egw_info']['server']['files_dir'].'/sitemgr';\n\t\t}", "title": "" }, { "docid": "09f5505f75ba9c146136aca3f4b6006e", "score": "0.51997894", "text": "function init() {\n\telgg_register_library('plugins:upgrades', __DIR__ . '/lib/upgrades.php');\n\t\n\telgg_register_css('jquery.chosen', elgg_get_simplecache_url('chosen/chosen.css'));\n\n\t// Set up menu for logged in users\n\telgg_register_menu_item('site', array(\n\t\t'href' => \"/plugins\",\n\t\t'name' => 'plugins',\n\t\t'text' => elgg_echo('plugins'),\n\t));\n\n\telgg_register_menu_item('site', array(\n\t\t'href' => '/plugins/category/themes',\n\t\t'name' => 'themes',\n\t\t'text' => elgg_echo('plugins:type:theme'),\n\t));\n\n\t\n\t/**\n\t * Extend views\n\t */\n\t// Extend CSS and JS\n\telgg_extend_view('elgg.css', 'plugins/css');\n\telgg_extend_view('css/admin', 'plugins/admin_css');\n\n\t// Extend hover-over and profile menu\n\telgg_extend_view('profile/menu/links', 'plugins/profile_menu');\n\telgg_extend_view('groups/left_column', 'plugins/groupprofile_files');\n\n\t// Register a page handler, so we can have nice URLs\n\telgg_register_page_handler('plugins', __NAMESPACE__ . '\\\\plugins_page_handler');\n\n\t// Tell core to send notifications when new projects and releases are created\n\telgg_register_notification_event('object', 'plugin_project', array('create'));\n\telgg_register_notification_event('object', 'plugin_release', array('create'));\n\n\t\n\t/**\n\t * Register Hooks\n\t */\n\t// The notifications for projects and releases are almost identical so we can use the same handler for both\n\telgg_register_plugin_hook_handler('prepare', 'notification:create:object:plugin_project', __NAMESPACE__ . '\\\\prepare_notification');\n\telgg_register_plugin_hook_handler('prepare', 'notification:create:object:plugin_release', __NAMESPACE__ . '\\\\prepare_notification');\n\n\t// Releases are contained by a project so we need to get the notification subscriptions manually\n\telgg_register_plugin_hook_handler('get', 'subscriptions', __NAMESPACE__ . '\\\\get_release_subscriptions');\n\t\n\t// Make sure Releases are editable\n\telgg_register_plugin_hook_handler('permissions_check', 'object', __NAMESPACE__ . '\\\\release_permissions_check');\n\t\n\t// make projects non-commentable in the river\n\telgg_register_plugin_hook_handler('permissions_check:comment', 'object', __NAMESPACE__ . '\\\\project_comments');\n\n\t// manage owner block menu\n\telgg_register_plugin_hook_handler('register', 'menu:owner_block', __NAMESPACE__ . '\\\\owner_block_menu');\n\t\n\t// register url handlers for the 2 object subtypes\n\telgg_register_plugin_hook_handler('entity:url', 'object', __NAMESPACE__ . '\\\\release_url_handler');\n\telgg_register_plugin_hook_handler('entity:url', 'object', __NAMESPACE__ . '\\\\project_url_handler');\n\n\telgg_register_plugin_hook_handler('register', 'menu:annotation', __NAMESPACE__ . '\\\\ownership_request_menu');\n\t\n\t// Special hook for searching against metadata (category)\n\telgg_register_plugin_hook_handler('search', 'object:plugin_project', __NAMESPACE__ . '\\\\search_hook');\n\n\telgg_register_plugin_hook_handler('cron', 'daily', __NAMESPACE__ . '\\\\update_download_counts');\n\t\n\t// add project info to <meta> tags\n\telgg_register_plugin_hook_handler('head', 'page', __NAMESPACE__ . '\\\\prepare_page_head_meta');\n\t\n\t/**\n\t * Register Events\n\t */\n\telgg_register_event_handler('pagesetup', 'system', __NAMESPACE__ . '\\\\add_submenus');\n\telgg_register_event_handler('upgrade', 'system', __NAMESPACE__ . '\\\\upgrades');\n\telgg_register_event_handler('create', 'object', __NAMESPACE__ . '\\\\release_comment_notification');\n\telgg_register_event_handler('update', 'object', __NAMESPACE__ . '\\\\project_update');\n\t\n\t//register a widget\n\telgg_register_widget_type('plugins', elgg_echo('plugins'), elgg_echo('plugins'), array('profile'));\n\n\n\t// Only projects should show up in search\n\telgg_register_entity_type('object', 'plugin_project');\n\n\n\t// Elgg versions (The forms expect this to be an associative array)\n\telgg_set_config('elgg_versions', array(\n\t\t'5.0' => '5.0',\n\t\t'4.3' => '4.3',\n\t\t'4.2' => '4.2',\n\t\t'4.1' => '4.1',\n\t\t'4.0' => '4.0',\n\t\t'3.3' => '3.3',\n\t\t'3.2' => '3.2',\n\t\t'3.1' => '3.1',\n\t\t'3.0' => '3.0',\n\t\t'2.3' => '2.3',\n\t\t'2.2' => '2.2',\n\t\t'2.1' => '2.1',\n\t\t'2.0' => '2.0',\n\t\t'1.12' => '1.12',\n\t\t'1.11' => '1.11',\n\t\t'1.10' => '1.10',\n\t\t'1.9' => '1.9',\n\t\t'1.8' => '1.8',\n\t\t'1.7' => '1.7',\n\t\t'1.6' => '1.6',\n\t\t'1.5' => '1.5',\n\t\t'1.2' => '1.2',\n\t\t'1.0' => '1.0',\n\t));\n\n\t// GPL-compatible licenses\n\telgg_set_config('gpllicenses', array(\n\t\t'none' => 'No license selected',\n\t\t'gpl2' => 'GNU General Public License (GPL) version 2',\n\t\t'lgpl2.1' => 'GNU Lesser General Public License (LGPL) version 2.1',\n\t\t'berkeleydb' => 'Berkeley Database License (aka the Sleepycat Software Product License)',\n\t\t'mbsd' => 'Modified BSD license',\n\t\t'cbsd' => 'The Clear BSD License',\n\t\t'expat' => 'Expat (MIT) License',\n\t\t'freebsd' => 'FreeBSD license',\n\t\t'intel' => 'Intel Open Source License',\n\t\t'openbsd' => 'ISC (OpenBSD) License',\n\t\t'ncsa' => 'NCSA/University of Illinois Open Source License',\n\t\t'w3c' => 'W3C Software Notice and License',\n\t\t'x11' => 'X11 License',\n\t\t'zope' => 'Zope Public License, versions 2.0 and 2.1',\n\t));\n\n\t// Defined plugin categories\n\telgg_set_config('plugincats', array(\n\t\t'admin' => 'Site admin',\n\t\t'user' => 'User admin',\n\t\t'authentication' => 'Authentication',\n\t\t'tools' => 'Tools',\n\t\t'spam' => 'Spam',\n\t\t'communication' => 'Communication',\n\t\t'events' => 'Events',\n\t\t'media' => 'Media',\n\t\t'photos' => 'Photos and Images',\n\t\t'tpintegrations' => 'Third Party integrations',\n\t\t'clients' => 'Clients',\n\t\t'widgets' => 'Widgets',\n\t\t'games' => 'Games',\n\t\t'ecommerce' => 'eCommerce',\n\t\t'languages' => 'Language packs',\n\t\t'themes' => 'Themes',\n\t\t'misc' => 'Misc',\n\t\t'uncategorized' => 'Uncategorized',\n\t));\n\n\t\n\t/**\n\t * Register actions\n\t */\n\t$action_base = dirname(__FILE__) . \"/actions/plugins\";\n\telgg_register_action(\"plugins/create_project\", \"$action_base/create_project.php\");\n\telgg_register_action(\"plugins/create_release\", \"$action_base/create_release.php\");\n\telgg_register_action(\"plugins/save_project\", \"$action_base/save_project.php\");\n\telgg_register_action(\"plugins/save_release\", \"$action_base/save_release.php\");\n\telgg_register_action(\"plugins/delete_project\", \"$action_base/delete_project.php\");\n\telgg_register_action(\"plugins/delete_release\", \"$action_base/delete_release.php\");\n\telgg_register_action(\"plugins/delete_project_image\", \"$action_base/delete_project_image.php\");\n\telgg_register_action(\"plugins/recommend\", \"$action_base/recommend.php\");\n\telgg_register_action(\"plugins/add_contributors\", \"$action_base/add_contributors.php\");\n\telgg_register_action(\"plugins/delete_contributor\", \"$action_base/delete_contributor.php\");\n\telgg_register_action(\"plugins/request_ownership\", \"$action_base/request_ownership.php\");\n\n\telgg_register_action(\"plugins/admin/upgrade\", \"$action_base/admin/upgrade.php\", 'admin');\n\telgg_register_action(\"plugins/admin/combine\", \"$action_base/admin/combine.php\", 'admin');\n\telgg_register_action(\"plugins/admin/normalize\", \"$action_base/admin/normalize.php\", 'admin');\n\telgg_register_action(\"plugins/admin/search\", \"$action_base/admin/search.php\", 'admin');\n\telgg_register_action(\"plugins/admin/transfer\", \"$action_base/admin/transfer.php\", 'admin');\n\n\telgg_register_tag_metadata_name('plugin_type');\n\t\n\telgg_register_ajax_view('object/plugin_project/release_table');\n}", "title": "" }, { "docid": "f843fe071f56b7388d01abc53bc9b72e", "score": "0.51969576", "text": "public function __construct()\n {\n $this->modulesService = Centauri::makeInstance(ModulesService::class);\n }", "title": "" }, { "docid": "243ac423d67d57ea4123b9507ff2ef3d", "score": "0.51966226", "text": "protected function createModuleInfo()\n {\n return new Core_ModuleInfo(\n \"Cardsave direct payment module\",\n \"Cardsave direct payment method\",\n \"x2764tech Limited\" );\n }", "title": "" }, { "docid": "64606d18db1e3d973c732acc12226022", "score": "0.5194831", "text": "public function run()\n {\n ModulePage::create([\n \t'name'\t\t\t=>\t'Antennae management',\n \t'code'\t\t\t=>\t'antennae_management',\n \t'module_link'\t=>\t'modules/loggedIn/antennae_management/antennae_management.js',\n 'icon' => 'ion-android-wifi',\n \t'is_active'\t\t=>\t1\n ]);\n\n ModulePage::create([\n 'name' => 'Working groups',\n 'code' => 'working_groups',\n 'module_link' => 'modules/loggedIn/working_groups/working_groups.js',\n 'icon' => 'fa fa-group',\n 'is_active' => 1\n ]);\n \n ModulePage::create([\n 'name' => 'Departments',\n 'code' => 'departments',\n 'module_link' => 'modules/loggedIn/departments/departments.js',\n 'icon' => 'fa fa-briefcase',\n 'is_active' => 1\n ]);\n\n ModulePage::create([\n 'name' => 'Fees management',\n 'code' => 'fees_management',\n 'module_link' => 'modules/loggedIn/fees_management/fees_management.js',\n 'icon' => 'fa fa-usd',\n 'is_active' => 1\n ]);\n\n ModulePage::create([\n 'name' => 'Roles',\n 'code' => 'roles',\n 'module_link' => 'modules/loggedIn/roles/roles.js',\n 'icon' => 'fa fa-unlock-alt',\n 'is_active' => 1\n ]);\n\n ModulePage::create([\n 'name' => 'Users',\n 'code' => 'users',\n 'module_link' => 'modules/loggedIn/users/users.js',\n 'icon' => 'fa fa-user',\n 'is_active' => 1\n ]);\n\n ModulePage::create([\n 'name' => 'Settings',\n 'code' => 'settings',\n 'module_link' => 'modules/loggedIn/settings/settings.js',\n 'icon' => 'fa fa-cog',\n 'is_active' => 1\n ]);\n\n ModulePage::create([\n 'name' => 'Modules',\n 'code' => 'modules',\n 'module_link' => 'modules/loggedIn/modules/modules.js',\n 'icon' => 'fa fa-puzzle-piece',\n 'is_active' => 1\n ]);\n }", "title": "" }, { "docid": "e40392f0895709a2c7018602170d9d03", "score": "0.51799804", "text": "protected function bindEvents(): void\n {\n $manager = container()->make('\\Bitrix\\Main\\EventManager');\n\n foreach ($this->events as $event) {\n $manager->addEventHandler(\n $event['module'], \n $event['event'], \n $event['handler'], \n false, \n $event['sort']\n );\n }\n }", "title": "" } ]
fc1854ae5061994c2f70a96d4c19b573
Create a new job instance.
[ { "docid": "d3ef417d676d6c11e6a51b652d23764f", "score": "0.0", "text": "public function __construct(int $smeltSteelId) {\n $this->smeltSteelId = $smeltSteelId;\n }", "title": "" } ]
[ { "docid": "3e09093bc917501d32352f66e5c7b80a", "score": "0.7920754", "text": "protected function createNewJob()\n {\n $job = new self();\n /** @var QueuedJobService $queuedJob */\n $queuedJob = Injector::inst()->get(QueuedJobService::class);\n $tomorrow = DateService::getTomorrow();\n $queuedJob->queueJob($job, $tomorrow->Format(DBDatetime::ISO_DATETIME));\n }", "title": "" }, { "docid": "d8f2ed5ae16bf452480e3962fa2836b0", "score": "0.78623444", "text": "public function create($job);", "title": "" }, { "docid": "2e16a899eea49962978f562e55dede46", "score": "0.7267002", "text": "public function create(): Job\n {\n $requiredAttributes = ['do_number', 'address', 'date'];\n foreach ($requiredAttributes as $requiredAttribute) {\n if ($this->$requiredAttribute == null) {\n throw new \\Exception('Missing attribute: '.$requiredAttribute);\n }\n }\n $actionPath = 'jobs';\n $verb = 'POST';\n $validFields = ['type', 'primary_job_status', 'open_to_marketplace', 'marketplace_offer', 'do_number', 'attempt', 'date', 'start_date', 'job_age', 'job_release_time', 'job_time', 'time_window', 'job_received_date', 'tracking_number', 'order_number', 'job_type', 'job_sequence', 'job_fee', 'address_lat', 'address_lng', 'address', 'company_name', 'address_1', 'address_2', 'address_3', 'postal_code', 'city', 'state', 'country', 'billing_address', 'deliver_to_collect_from', 'last_name', 'phone_number', 'sender_phone_number', 'fax_number', 'instructions', 'assign_to', 'notify_email', 'webhook_url', 'zone', 'customer', 'account_no', 'job_owner', 'invoice_number', 'invoice_amount', 'payment_mode', 'payment_amount', 'group_name', 'vendor_name', 'shipper_name', 'source', 'weight', 'parcel_width', 'parcel_length', 'parcel_height', 'cubic_meter', 'boxes', 'cartons', 'pieces', 'envelopes', 'pallets', 'bins', 'trays', 'bundles', 'rolls', 'number_of_shipping_labels', 'attachment_url', 'detrack_number', 'status', 'tracking_status', 'reason', 'last_reason', 'received_by_sent_by', 'note', 'carrier', 'pod_lat', 'pod_lng', 'pod_address', 'address_tracked_at', 'arrived_lat', 'arrived_lng', 'arrived_address', 'arrived_at', 'texted_at', 'called_at', 'serial_number', 'signed_at', 'photo_1_at', 'photo_2_at', 'photo_3_at', 'photo_4_at', 'photo_5_at', 'signature_file_url', 'photo_1_file_url', 'photo_2_file_url', 'photo_3_file_url', 'photo_4_file_url', 'photo_5_file_url', 'actual_weight', 'temperature', 'hold_time', 'payment_collected', 'auto_reschedule', 'actual_crates', 'actual_pallets', 'actual_utilization', 'goods_service_rating', 'driver_rating', 'customer_feedback', 'eta_time', 'live_eta', 'depot', 'depot_contact', 'department', 'sales_person', 'identification_number', 'bank_prefix', 'run_number', 'pick_up_from', 'pick_up_time', 'pick_up_lat', 'pick_up_lng', 'pick_up_address', 'pick_up_address_1', 'pick_up_address_2', 'pick_up_address_3', 'pick_up_city', 'pick_up_state', 'pick_up_country', 'pick_up_postal_code', 'pick_up_zone', 'pick_up_assign_to', 'pick_up_reason', 'info_received_at', 'pick_up_at', 'scheduled_at', 'at_warehouse_at', 'out_for_delivery_at', 'head_to_pick_up_at', 'head_to_delivery_at', 'cancelled_at', 'pod_at', 'pick_up_failed_count', 'deliver_failed_count', 'job_price', 'insurance_price', 'insurance_coverage', 'total_price', 'payer_type', 'remarks', 'items_count', 'service_type', 'warehouse_address', 'destination_time_window', 'door', 'time_zone', 'created_at', 'items'];\n $data = json_decode(json_encode(array_filter(array_filter($this->attributes, function ($key) use ($validFields) {\n return in_array($key, $validFields);\n }, ARRAY_FILTER_USE_KEY))));\n $response = DetrackClientStatic::sendData($verb, $actionPath, $data);\n if (isset($response->data)) {\n foreach ($response->data as $key => $value) {\n $this->$key = $value;\n }\n\n return $this;\n } elseif (isset($response->code) && $response->code == 'validation_failed') {\n throw new \\Exception('Validation failed: '.implode(', ', array_map(function ($error) {\n return $error->field.implode('& ', $error->codes);\n }, $response->errors)));\n } elseif (isset($response->code)) {\n throw new \\Exception('API Error: ');\n } else {\n throw new \\Exception('Something broke');\n }\n }", "title": "" }, { "docid": "5cfd308b5d20ecf079f791c385cc4a3e", "score": "0.68463254", "text": "public function makeJob(array $options = []) {\n // create job\n $Job = new MailjetJobRequest($this, $options);\n if($this->queue_connection !== null) {\n $Job->onConnection($this->queue_connection);\n }\n if($this->queue_delay !== null) {\n $Job->delay($this->queue_delay);\n }\n return $Job;\n }", "title": "" }, { "docid": "21d2ae47c4efe4af46844bca6ee51a50", "score": "0.6794339", "text": "protected function createJob(array $config)\n {\n return Yii::createObject(array_merge($this->defaultJobConfig, $config));\n }", "title": "" }, { "docid": "51de38a5224adc4b9cc43380358bf112", "score": "0.6737951", "text": "public function create($params)\n {\n $this->validateInputId($params);\n\n $job = $this->job->forceCreate($this->formatParams($params));\n\n $job = $this->assignUser($job, $params);\n\n $this->notify($job, $params);\n\n $this->processUpload($job, $params);\n\n return $job;\n }", "title": "" }, { "docid": "555809e3ee72a61684e3253f962e0451", "score": "0.6701857", "text": "public function createJobObject($payload)\n {\n $job = new Job([\n 'title' => $payload['title'],\n 'name' => $payload['title'],\n 'description' => $payload['description'],\n 'url' => $payload['redirect_url'],\n 'sourceId' => $payload['id'],\n ]);\n\n $job->setDatePostedAsString($payload['created'])\n ->setLongitude($payload['longitude'])\n ->setLatitude($payload['latitude'])\n ->setMinimumSalary($payload['salary_min'])\n ->setMaximumSalary($payload['salary_max']);\n\n if (isset($payload['company']) && isset($payload['company']['display_name'])) {\n $job->setCompany($payload['company']['display_name']);\n }\n\n if (isset($payload['location']) && isset($payload['location']['display_name'])) {\n $job->setLocation($payload['location']['display_name']);\n }\n\n if (isset($payload['category']) && isset($payload['category']['label'])) {\n $job->setOccupationalCategory($payload['category']['label']);\n }\n\n return $job;\n }", "title": "" }, { "docid": "0a6eeffe7e4f570ad8702318d249941f", "score": "0.66393256", "text": "public function create($job = array())\n {\n // Boring DB queries\n $job = array_map('mysql_real_escape_string', $job);\n $this->db->exec(\"INSERT INTO batch_job (batch_id, `name`, `schedule`, locale_code, params, status_code, exclusive) VALUES('\" . $job['batch_id'] . \"', '\" . $job['name'] . \"', '\" . $job['schedule'] . \"', '\" . $job['locale_code'] . \"', '\" . $job['params'] . \"', 'IDLE', '\" . $job['exclusive'] . \"')\");\n\n // Pass the Job array back so the object can use it\n $job['status_code'] = 'IDLE';\n $job['id'] = $this->db->lastInsertId();\n return $job;\n }", "title": "" }, { "docid": "ef6bae21e900a9d1f8e8bd98578443ed", "score": "0.6595859", "text": "protected function instantiateJob($class)\n\t{\n\t\t// Make sure this is a real job\n\t\t$reflection = $this->getJob($class)->getReflection();\n\n\t\t// Create a new instance\n\t\t$job = $reflection->newInstance($this->logger);\n\t\tif ($job instanceof ForkingJob)\n\t\t{\n\t\t\t// If it's a ForkingJob, give it its own fork_daemon, using the same\n\t\t\t// class that JobRunner is using, and register the `prepareToFork()`\n\t\t\t// method to be called before ForkingJob forks children.\n\t\t\t$fork_daemon = (new ReflectionClass($this->fork_daemon))->newInstance();\n\t\t\t$fork_daemon->register_parent_prefork(array(\n\t\t\t\t[$job, 'prepareToFork'],\n\t\t\t));\n\n\t\t\t// Setup the ForkingJob with the new fork_daemon instance\n\t\t\t$job->setUpForking($fork_daemon);\n\t\t}\n\n\t\treturn $job;\n\t}", "title": "" }, { "docid": "f98b50ff8709b2c7e54707c3d41b6293", "score": "0.64944357", "text": "protected function generateJob($code, array $jobConfig)\n {\n $job = new JobInstance();\n $job->setCode($code);\n $job->setConnector($jobConfig['connector']);\n $job->setJobName($jobConfig['alias']);\n $job->setLabel($jobConfig['label']);\n $job->setType($jobConfig['type']);\n\n if (isset($jobConfig['configuration'])) {\n $job->setRawParameters($jobConfig['configuration']);\n }\n\n return $job;\n }", "title": "" }, { "docid": "cfe360d3e698f44b884d369bc97c191d", "score": "0.64918077", "text": "public function __construct(Job $job)\n {\n $this->job = $job;\n }", "title": "" }, { "docid": "d0010573a4016e3e7433e145995e4caf", "score": "0.63979906", "text": "public function createJobFromJobEntry(JobDataset $jobData): IJob\n {\n $className = $jobData->getClass();\n\n if (!class_exists($className)) {\n throw new PHQException(\"Class {$className} does not exist!\");\n }\n\n if (!(is_subclass_of($className, IJob::class))) {\n throw new PHQException(\"$className is not an instance of \" . IJob::class);\n }\n\n /**\n * @var IJob\n */\n $obj = new $className($jobData);\n\n return $obj;\n }", "title": "" }, { "docid": "5b567e6af9008d106634480cc1cef181", "score": "0.6378443", "text": "public function __construct($job)\n {\n $this->job = $job;\n }", "title": "" }, { "docid": "64320ff2e3d89c95b9f9c705792d5bc5", "score": "0.6294078", "text": "public function CreateNewJob(CreateNewJob $parameters)\n {\n return $this->__soapCall('CreateNewJob', array($parameters));\n }", "title": "" }, { "docid": "97ff9929c42f7f3782c4a1a5b84a80ea", "score": "0.6260124", "text": "public function __construct()\n {\n $this->jobId = new JobId();\n }", "title": "" }, { "docid": "b9c384abd9ab58d8f5a7478bca983a18", "score": "0.6243638", "text": "public function testNewJob() {\n $result = ($this->createEmployerAndJob($this->testEmail, $this->testJobName));\n if ($result == null) {\n $this->assertTrue(false, \"createEmployerAndJob failed (returned null)\");\n }\n extract($result); //extract yields $oid, $jid, $objSave, $categoryId, $eid\n $this->assertFalse($objSave->hasError);\n $this->assertNotEquals(0, $jid);\n $this->assertEquals($jid, (new \\Classes\\Job($jid))->jobId);\n }", "title": "" }, { "docid": "914e3c83b7c1b78008944054ae892117", "score": "0.6212447", "text": "protected function buildJob(\n \\tx_mkmailer_models_Template $template = null\n ) {\n /* @var $job \\tx_mkmailer_mail_MailJob */\n $job = GeneralUtility::makeInstance('tx_mkmailer_mail_MailJob');\n if ($template instanceof \\tx_mkmailer_models_Template) {\n $job->setFrom($template->getFromAddress());\n // set from mail adress from rn_base configuration as fallback\n if (!$job->getFrom()->getAddress()) {\n $job->getFrom()->setAddress(\n \\Sys25\\RnBase\\Configuration\\Processor::getExtensionCfgValue('rn_base', 'fromEmail')\n );\n }\n $job->setCCs($template->getCcAddress());\n $job->setBCCs($template->getBccAddress());\n $job->setSubject($template->getSubject());\n $job->setContentText($template->getContentText());\n $job->setContentHtml($template->getContentHtml());\n }\n\n return $job;\n }", "title": "" }, { "docid": "4bb8fecfaec2d75d80a5a7cd4bbf0923", "score": "0.62060076", "text": "public function createJob() {\r\n if (!$this->url->validUrl()) //Check if URL is valid\r\n return false;\r\n\r\n if (!$jobUUID = $this->addJob()) //Add JOB in DB\r\n return false;\r\n\r\n $urlData = $this->url->prepareUrlData($jobUUID, $this->url->urlAddress); //Prepare the URL array to be inserted in DB\r\n\r\n if (!$this->url->addUrl($urlData)) //Add URL in DB\r\n return false;\r\n\r\n return $jobUUID;\r\n }", "title": "" }, { "docid": "833ff0b5fd434252eee7451229a8a21d", "score": "0.6192881", "text": "public function createJob($source);", "title": "" }, { "docid": "37939ee1803a7e88563058d8ad3810bf", "score": "0.61681616", "text": "public function getNewJob()\n {\n // we can grab a locked job if we own the lock\n $rs = $this->helper->runQuery(\n \"SELECT id FROM {$this->helper->jobsTable} WHERE queue = ? AND (run_at IS NULL OR ? >= run_at) \" .\n \"AND (locked_at IS NULL OR locked_by = ?) AND failed_at IS NULL AND attempts < ? \" .\n \"ORDER BY created_at DESC LIMIT 10\",\n array($this->queue, DateTime::now()->format(DateTime::DB_FULL), $this->name, $this->max_attempts)\n );\n\n // randomly order the 10 to prevent lock contention among workers\n shuffle($rs);\n\n foreach ($rs as $r) {\n $job = new Job($this->name, $r[\"id\"], $this->helper, array(\n \"max_attempts\" => $this->max_attempts\n ));\n if ($job->acquireLock()) {\n return $job;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "baf2da568673b0ba8c8a7f726b5c85b2", "score": "0.615531", "text": "function __construct( $job )\n\t{\n\t\t$this->id = $job->id;\n\t\t$this->command = $job->command;\n\t\t$this->data = $job->GetData();\n\t\t$this->job = $job;\n\t}", "title": "" }, { "docid": "4d1d62a6835054f5a404d5be159cc5b9", "score": "0.6129647", "text": "public function getInstance()\n {\n if (!is_null($this->instance)) {\n return $this->instance;\n }\n $class = ucfirst($this->payload['class']);\n if (!class_exists($class)) {\n require $_SERVER['JOBPATH'] . $class . '.php';\n }\n if (!class_exists($class)) {\n throw new QueueException(\n 'Could not find job class ' . $class . '.'\n );\n }\n\n if (!method_exists($class, 'perform')) {\n throw new QueueException(\n 'Job class ' . $class . ' does not contain a perform method.'\n );\n }\n\n $this->instance = new $class();\n $this->instance->job = $this;\n $this->instance->args = $this->getArguments();\n $this->instance->queue = $this->queue;\n return $this->instance;\n }", "title": "" }, { "docid": "da91cfe4ad2b5f3126afbd563b272f5a", "score": "0.6018468", "text": "public function create(JobRequest $request)\n {\n\n $job = $this->repository->newInstance([]);\n return $this->response->title(trans('app.new') . ' ' . trans('career::job.name')) \n ->view('career::job.create', true) \n ->data(compact('job'))\n ->output();\n }", "title": "" }, { "docid": "0008daa9baad517e7509b0b7ed2107d9", "score": "0.5997865", "text": "public function create()\n {\n $job = new Job();\n $categories = Category::get();\n \n return view('job/new', compact('job', 'categories'));\n }", "title": "" }, { "docid": "498a5cea5c0087df952428e3ec48ab5f", "score": "0.59457743", "text": "public function initWorker($class, $job_id)\n\t{\n\t\treturn new $class($this->em, $this->security_context, $this->logger, $this->validator, $this->submitter, $job_id);\n\t}", "title": "" }, { "docid": "89d925edef45d461446d7de08413bdcc", "score": "0.59231514", "text": "public function create() {}", "title": "" }, { "docid": "af33556e850e332a816e42213369d68e", "score": "0.59033304", "text": "protected function createBasicJobRecord($user_email, array $form)\n {\n $job = new Job();\n $job->user_email = $user_email;\n $job->function = $form['function'];\n $job->status = 'creating';\n $job->submitted_at = date(\"Y-m-d H:i:s\");\n $job->save();\n\n return $job;\n }", "title": "" }, { "docid": "2946ec72651dc7a6cbc94e49a97582f7", "score": "0.5876682", "text": "public function job($id) {\n return Job::get($this, $id);\n }", "title": "" }, { "docid": "047fca098409783059a722daa1e45c04", "score": "0.58754295", "text": "protected function createJob($jobName, $payload, $queue, $delay = 0, $attempts = 0){\n\n return DB::table($this->table)->insertGetId([\n 'name' => $jobName,\n 'queue' => $this->getQueue($queue),\n 'payload' => $payload,\n 'status' => MysqlQueueJob::STATUS_PENDING,\n 'attempts' => $attempts,\n 'run_at' => $this->getFireDatetime($delay),\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s')\n ]);\n }", "title": "" }, { "docid": "35af80fcd5f1c9a185cc6ba1abb267c6", "score": "0.58623135", "text": "public function job(): Job\n {\n if (!isset($this->job)) {\n /** @var Job $job */\n $job = Job::query()->where('id', $this->jobId())->with(['events'])->first();\n $this->job = $job;\n }\n\n return $this->job;\n }", "title": "" }, { "docid": "459b2c04c9271dc859cd1d78a5a04e38", "score": "0.5856909", "text": "public function create()\n {\n return $this->objectManager->create($this->instanceName);\n }", "title": "" }, { "docid": "3b757f4ac07bc852928772a223a81f55", "score": "0.58565384", "text": "abstract protected function makeJobs();", "title": "" }, { "docid": "15d038521f54a9b72731467febf20432", "score": "0.58377606", "text": "public function getJob();", "title": "" }, { "docid": "cfa354e2476b77b52f2cb1fdf78f42d6", "score": "0.58110017", "text": "public function create()\n {\n $widget = [\n 'title' => \"Buat Pekerjaan\",\n 'services' => Job::SERVICES,\n 'tools' => Job::TOOLS,\n 'levels' => Job::LEVELS,\n ];\n\n return view('home/job_create', compact('widget'));\n }", "title": "" }, { "docid": "514bba42a030d4cf230a7dd7f7fd5758", "score": "0.5796236", "text": "public function __construct()\n {\n //\n $this->jobs = new G_jobs();\n }", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.5789109", "text": "public function create(){}", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.5789109", "text": "public function create(){}", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.5789109", "text": "public function create(){}", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.5789109", "text": "public function create(){}", "title": "" }, { "docid": "612e99414a8cd56eae5e547b10c52a7e", "score": "0.5788084", "text": "public function schedule()\n {\n /** @var AbstractBaseWorker $obj */\n $obj = new $this->workerClass();\n $obj->setContainer($this->container);\n $obj->args = $this->jobData;\n $obj->setUp();\n $obj->validate();\n\n return $this->jobId = Resque::enqueue(\n $this->queue, $this->workerClass, $this->jobData, $trackStatus = true\n );\n }", "title": "" }, { "docid": "d3bbfa6ed8b31cfcbcd86fd9b83c691b", "score": "0.5783824", "text": "private function addTaskOfJobCreate($customer, $job, $meta, $parentId)\n\t{\n\t\t// If customer not synced then create all its entities task\n\t\tif(!$customer->quickbook_id) {\n\t\t\t$data = [\n\t\t\t\t'customer_id' => $customer->id,\n\t\t\t\t'auth_user_id' => Auth::user()->id,\n\t\t\t\t'company_id' => getScopeId(),\n\t\t\t\t'origin' => QuickBookTask::ORIGIN_JP,\n\t\t\t\t'created_source' => QuickBookTask::SYSTEM_EVENT\n\t\t\t];\n\n\t\t\t$delayTime = Carbon::now()->addSeconds(5);\n\n\t\t\tQueue::connection('qbo')->later($delayTime, CustomerAccountHandler::class, $data);\n\n\t\t\treturn;\n\t\t}\n\n\t\t$task = QBOQueue::addTask(QuickBookTask::QUICKBOOKS_JOB_CREATE, [\n\t\t\t'id' => $job->id,\n\t\t\t'input' => $meta\n\t\t], [\n\t\t\t'object_id' => $job->id,\n\t\t\t'object' => 'Job',\n\t\t\t'action' => QuickBookTask::CREATE,\n\t\t\t'origin' => QuickBookTask::ORIGIN_JP,\n\t\t\t'parent_id' => $parentId,\n\t\t\t'created_source' => QuickBookTask::SYSTEM_EVENT\n\t\t]);\n\n\t\tLog::info('Job Create - QuickBooks - sync now', [$job->id, $meta]);\n\n\t\treturn $task;\n\t}", "title": "" }, { "docid": "645bdfd55aaacd1e2d8fca3d32f3aaf5", "score": "0.5782762", "text": "public function create()\n\t{\n\t \n\t \n\t return view('admin.job.create');\n\t}", "title": "" }, { "docid": "9ebd9e862190c9d374abe2ea0ba21ea6", "score": "0.5755089", "text": "public function run()\n {\n factory(App\\Job::class)->create([\n 'name' => 'FOREMAN',\n 'description' => 'A construction foreman is the worker or tradesman who is in charge of a construction crew. This role is generally assumed by a senior worker.',\n ]);\n\n factory(App\\Job::class)->create([\n 'name' => 'ARCHITECT',\n 'description' => 'An architect is a person who plans, designs, and reviews the construction of buildings.',\n ]);\n\n factory(App\\Job::class)->create([\n 'name' => 'BRICKLAYER',\n 'description' => 'A bricklayer is a craftsman who lays bricks to construct brickwork.',\n ]);\n\n factory(App\\Job::class)->create([\n 'name' => 'OPERATOR',\n 'description' => 'Operators are day-to-day end users of systems, that may or may not be mission-critical, but are typically managed and maintained by technicians or engineers.',\n ]);\n\n factory(App\\Job::class)->create([\n 'name' => 'BUYER',\n 'description' => 'Construction buyers are the regulators for the materials required for a construction project, in which they purchase the products in accordance with the established budgets.',\n ]);\n }", "title": "" }, { "docid": "394a7ff4054f60503eb13d75d9afbcc9", "score": "0.5745504", "text": "public function create()\n {\n /* */\n Jobs::create($request->all());\n error_log('Some message here.');\n //add ->status(); \n }", "title": "" }, { "docid": "dac876f0be2206a2e28679557c79130e", "score": "0.5721714", "text": "public function create()\n {\n //TODO(?)\n }", "title": "" }, { "docid": "84126853ec4e09456acb54c34a616c4a", "score": "0.57210326", "text": "public function run()\n {\n $job_parent = App\\Job::create([\n 'name' => 'parent',\n ]);\n\n $job_student = App\\Job::create([\n 'name' => 'student',\n ]);\n\n\n $job_employee = App\\Job::create([\n 'name' => 'employee',\n ]);\n }", "title": "" }, { "docid": "71916dbef24c76bc586a39ebf9cebcad", "score": "0.57201785", "text": "public function createJob(Request $request){\n\n // validates the user input\n $validator = Validator::make($request->all(),[\n 'title' => ['required','string','min:3'],\n 'description' => ['required', 'string'],\n 'location' => ['required', 'string'],\n 'work_condition' => ['required',new WorkConditionRules()],\n 'type' =>['required',new JobType()],\n 'category' => ['required',new JobCategory()],\n 'salary' => ['required','string', 'min:7'],\n 'benefits' => ['required', 'string']\n ]);\n\n // checks if validation fails, return a 400 response if true\n if($validator->fails()){\n $response = MessageResponse::errorResponse(\"Bad input format\", $validator->errors());\n return response()->json($response, 400);\n }\n\n /**\n * creates a special job post id by exploding the job title,\n * loops through the array and concatinates each first character\n * then concatinates a randomly generated integer with FJB and the $lastRefSegement\n */\n $explode_title = explode(\" \",$request->title);\n $lastRefSegement=\"\";\n foreach ($explode_title as $filter){\n $lastRefSegement .=$filter[0];\n }\n $id = 'FJB-'.\\rand(10000,99999).'-'.$lastRefSegement;\n\n // stores the new job post\n $post = User::findOrFail(auth()->user()->id)->jobposts()->create([\n\n 'title' => $request->title,\n 'id' => $id,\n 'description' => $request->description,\n 'location' => $request->location,\n 'company' => auth()->user()->name,\n 'company_logo' => auth()->user()->avatar,\n 'work_condition' => $request->work_condition,\n 'type' =>$request->type,\n 'category' => $request->category,\n 'salary' => $request->salary,\n 'benefits' => $request->benefits,\n// 'posted_by' => auth()->user()->id\n ]);\n\n if(!$post){\n $response = MessageResponse::errorResponse(\"Unable to post job\");\n return response()->json($response, 500);\n }\n\n $response = MessageResponse::successResponse(\"Job Successfully created\",);\n return response()->json($response, 200);\n }", "title": "" }, { "docid": "7314dc7a70de3d65ca5e9f5bd5fa9b61", "score": "0.56779885", "text": "public function create()\n {\n return view('backend.jobs.create');\n }", "title": "" }, { "docid": "91a0056ff97e6de3092a5c8bf5b63a75", "score": "0.5669598", "text": "public function create() {\n\t\tif(isset($this->id)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// sanitize\n\t\t$this->url = htmlspecialchars($this->url, ENT_QUOTES | ENT_SUBSTITUTE, 'utf-8');\n\t\t$this->url = strpos($this->url, 'http') !== 0 ? \"http://$this->url\" : $this->url;\n\t\t//make sure it's a valid url\n\t\tif(!filter_var($this->url, FILTER_VALIDATE_URL)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t//prepare\n\t\ttry {\n\t\t\t$query = \"INSERT INTO \" . Job::$table_name . \" SET url=:url\";\n\t\t\t$db = new Database();\n\t\t\t$db->getConnection();\n\t\t\n\t\t\t//starting transaction\n\t\t\t$db->conn->beginTransaction();\n\t\t\n\t\t\t$stmt1 = $db->conn->prepare($query);\n\t\t\n\t\t\t// bind values\n\t\t\t$stmt1->bindParam(\":url\", $this->url);\n\t\t\n\t\t\t$stmt1->execute();\n\t\t\t$lastId = $db->conn->lastInsertId();\n\t\t\t\n\t\t\t$query = \"INSERT INTO \" . QueuedJob::$table_name . \" SET jobId=:jobId\";\n\t\t\t$stmt2 = $db->conn->prepare($query);\n\t\t\t// bind values\n\t\t\t$stmt2->bindParam(\":jobId\", $lastId);\n\t\t\t$stmt2->execute();\n\t\t\n\t\t\t$db->conn->commit();\n\t\t\t$this->id = $lastId;\n\t\t\treturn $lastId;\n\t\t} catch (Exception $e){\n \t\t$cxn->rollback();\n \t\terror_log(\"an error has occurred\");\n\t\t\treturn false;\n \t \t}\n\t}", "title": "" }, { "docid": "c0b4207506a277eea39564155d7d7148", "score": "0.56666404", "text": "public function create()\n {\n $data = $this->jobRepository->prepareData();\n\n return view('employer.jobs.create')->with('data', $data);\n }", "title": "" }, { "docid": "7d68925db5c725b4ef2f0f30111c9de7", "score": "0.5663059", "text": "public function create()\n {\n return view('jobposts.createjob');\n }", "title": "" }, { "docid": "053c659456e94458387376d086ea238a", "score": "0.56501836", "text": "public function create()\n {\n $types = JobType::active()->pluck('name', 'id')->toArray();\n $hotels = Hotel::active()->pluck('name', 'id')->toArray();\n $view_type = config('app.view_type');\n\n $link_url = ['url' => route('job.index'), 'title' => 'Back', 'icon' =>'fa fa-reply'];\n return view('job.create', compact('types','hotels','view_type','link_url'))->with('site','Job');\n }", "title": "" }, { "docid": "f8d682806ffc8e86c4fbc5d88348e8ad", "score": "0.5649198", "text": "public function create()\n {\n $class = $this->class;\n\n return new $class;\n }", "title": "" }, { "docid": "daf98b5f1db8d0c4b8fd8803e74ad63f", "score": "0.56489635", "text": "public function createJob($experimentId) {\n\t\tif ($this->driver->_createJob($experimentId)) {\n\t\t\t$this->CI->load->model('job');\n\t\t\t$this->CI->job->create(array('experiment_id' => $experimentId, 'started_by' => $this->CI->session->userdata('user_id')));\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "e68fbea86b35c1c6cacf75dd7510d292", "score": "0.5640681", "text": "public function store(JobCreateRequest $request)\n {\n $user = \\Auth::user();\n $job = Job::create($request->all());\n\n if ($user->jobs->count() == 0)\n {\n //Check if SMTP is defined\n if (!empty(env('MAIL_USERNAME')))\n {\n //Send email to Manager\n Mail::send('emails.manager_new_job', ['job' => $job], function ($message) use ($user) {\n $message->from('[email protected]', 'Laravel');\n $message->to($user->email);\n });\n\n //Find moderator with email to notify\n $moderator = User::where('email',$job->email)->first();\n\n if (!empty($moderator))\n {\n //Send to moderator\n Mail::send('emails_.moderator_new_job', ['job' => $job], function ($message) use ($moderator) {\n $message->from('priarte@pirate-test', 'Laravel');\n $message->to($moderator->email);\n });\n }\n }\n\n //It is a first Job posting\n $msg = 'Job posting created and waiting to be published my moderator.';\n \n } else {\n // It is not first, set status to published\n $job->status = 1;\n $msg = 'Job posting created and published.';\n }\n \n $job->user()->associate($user);\n $job->save();\n\n return redirect('/home')->with('status', $msg);\n }", "title": "" }, { "docid": "7b62a54799d06f1404da7e9b3360fe20", "score": "0.56361055", "text": "public function create()\n {\n $job = new Job();\n return view('cv::cv.create', compact('job'));\n }", "title": "" }, { "docid": "e498c1dfd291b1e26942278d34a9a3ba", "score": "0.5632702", "text": "public function create() {\n \n }", "title": "" }, { "docid": "e498c1dfd291b1e26942278d34a9a3ba", "score": "0.5632702", "text": "public function create() {\n \n }", "title": "" }, { "docid": "bd2b76635b63246ad0742e5837b6f2aa", "score": "0.56304103", "text": "private function copyJob(Job $job, $params = array())\n {\n $set_job_configuration = (isset($params['job_configuration']) && $params['job_configuration']) ? 1 : 0;\n $set_zero_progress = (isset($params['zero_progress']) && $params['zero_progress']) ? 1 : 0;\n\n $new_job = $job->replicate();\n $new_job->uuid = Str::uuid();\n $new_job->upload_token = Str::uuid();\n $new_job->progress_type = $set_job_configuration ? $job->progress_type : config('config.job_progress_type');\n $new_job->rating_type = $set_job_configuration ? $job->rating_type : config('config.job_rating_type');\n $new_job->completed_at = null;\n $new_job->sign_off_status = null;\n $new_job->is_archived = 0;\n $new_job->is_cancelled = 0;\n $new_job->progress = $set_zero_progress ? 0 : $job->progress;\n $new_job->user_id = $job->user_id;\n $new_job->is_recurring = 0;\n $new_job->recurrence_start_date = null;\n $new_job->recurrence_end_date = null;\n $new_job->next_recurring_date = null;\n $new_job->recurring_frequency = 0;\n $new_job->recurring_job_id = null;\n $new_job->save();\n\n $this->upload->copy('job', $job->id, $new_job->upload_token, $new_job->id);\n\n return $new_job;\n }", "title": "" }, { "docid": "e7609af744fd1c07a946b64d7cad5ae9", "score": "0.56298023", "text": "public function create() {\n\t\t\n\t\tif ($this->is_loggedin()) \n\t\t{\n\t\t\tif ($this->is_employer()) {\n\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Check if employer is in a company.\n\t\t\t\t */\n\t\t\t\t$accepted = 1;\n\t\t\t\t$email = $this->auth->get_info()->email;\n\t\t\t\t$result = $this->company_employer_model->get( $email,NULL, $accepted )->result();\n\t\t\t\t\n\t\t\t\tif ( count($result) == 1 ) \n\t\t\t\t{\n\t\t\t\t\t$page = 'job_create_page';\n\n\t\t\t\t\t$this->check_page_files('/views/pages/' . $page . '.php');\n\n\t\t\t\t\t$data['page_title'] = \"Create Job\";\n\t\t\t\t\t$data['job_details'] = $result[0];\n\t\t\t\t\t$data['job_categories'] = $this->job_category_model->get()->result();\n\n\t\t\t\t\t$this->load_view($data, $page);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tredirect(\"profile\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tredirect(\"login\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tredirect(\"login\");\n\t\t\treturn;\n\t\t}\n\t}", "title": "" }, { "docid": "8c7d4bd4c2b9c9f5f83616b9a6fa5313", "score": "0.56256723", "text": "public function create() {\n \n //\n \n }", "title": "" }, { "docid": "7ce1f4a02eebea89641288bb7bc93266", "score": "0.56102157", "text": "public function createNew()\n {\n $className = $this->getClassName();\n\n return new $className();\n }", "title": "" }, { "docid": "e20c4b8afff03e5f9ffbc9c4c26ad945", "score": "0.56085885", "text": "public function createTask()\n {\n return new Task();\n }", "title": "" }, { "docid": "0488478c09cfa84a7ec14557da49c183", "score": "0.56076354", "text": "public function create()\n {}", "title": "" }, { "docid": "1705fe9395287df348375b4243a50e81", "score": "0.5601149", "text": "public function create()\n {\n //TODO\n }", "title": "" }, { "docid": "1705fe9395287df348375b4243a50e81", "score": "0.5601149", "text": "public function create()\n {\n //TODO\n }", "title": "" }, { "docid": "7fa830a6fe58fb17af406e3f72f250fd", "score": "0.56009007", "text": "public function run()\n {\n $jobs = [\n [\n 'title' => 'CEO'\n ],\n [\n 'title' => 'Backend Engineer',\n 'offerable' => 1\n ],\n [\n 'title' => 'Front-end Engineer',\n 'offerable' => 1\n ],\n [\n 'title' => 'Fullstack Engineer',\n 'offerable' => 1\n ],\n ];\n\n foreach ($jobs as $key => $value) {\n Job::create($value);\n }\n }", "title": "" }, { "docid": "ae42f2818e3326f82be8361f39419c58", "score": "0.56002015", "text": "public function create()\n\t{\n\t\treturn View::make('jobs.create');\n\t}", "title": "" }, { "docid": "a7af95812586e8fe7f606fe4fb7e9d78", "score": "0.55932534", "text": "public function create() {\n }", "title": "" }, { "docid": "f98899f326f0ed6fec95c101378da3a5", "score": "0.559208", "text": "public function __construct( $job ) {\n\t\t$this->id = $job->id;\n\t\t$this->title = $job->title;\n\t\t$this->status = $job->status;\n\t\t$this->department = $job->department;\n\t\t$this->url = $job->url;\n\t\t$this->description = $job->description;\n\t\t$this->location = $this->get_location_string( (string) $job->city, (string) $job->state, (string) $job->country );\n\t}", "title": "" }, { "docid": "fcfc065bd3a2f6ace314261e7024c827", "score": "0.55803645", "text": "public function __construct($jobId, $debugMode)\n {\n return parent::__construct(self::JOB, $jobId, $debugMode);\n }", "title": "" }, { "docid": "24e11812c0fbb25cf142539691297d02", "score": "0.5578478", "text": "public function createAction(Request $request)\n {\n $entity = new Job();\n $form = $this->createCreateForm($entity);\n $form->handleRequest($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getManager();\n $em->persist($entity);\n $em->flush();\n\n return $this->redirect($this->generateUrl('ibw_job_preview', array(\n 'company' => $entity->getCompanySlug(),\n 'location' => $entity->getLocationSlug(),\n 'token' => $entity->getToken(),\n 'position' => $entity->getPositionSlug()\n )));\n }\n\n return $this->render('IbwJobeetBundle:Job:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "014ce80ff8122b8a8be04e58794380cd", "score": "0.55778396", "text": "public function create();", "title": "" }, { "docid": "9078992e89b7bb474dff25ce94989df2", "score": "0.557752", "text": "public static function create () {}", "title": "" }, { "docid": "270f486cc16a9a9feb5b2ecf53d22648", "score": "0.55703443", "text": "private function createJobFromMessage($message) {\n $job = $this->deserialize($message['Body']);\n $job->header['ReceiptHandle'] = $message['ReceiptHandle'];\n $job->id = $message['MessageId'];\n return $job;\n }", "title": "" }, { "docid": "9a462ab3f38fdd99844e3e9d78c166e3", "score": "0.5569514", "text": "public function create() {\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "b11780fc121b4d610519779a1c280b0b", "score": "0.55681527", "text": "function create(JobPostingsModel $job){\n try{\n Log::info(\"Entering JobPostingsDataService.createNewWorkExperience()\");\n //use the connection to create a prepared statement\n $stmt = $this->conn->prepare(\"INSERT INTO `JOB_POSTINGS`(`NAME`, `COMPANY`, `PAY`, `DESCRIPTION`) VALUES (:name ,:com, :pay, :des)\");\n \n //Store the information from the job posting object into variables\n $name = $job->getName(); \n $com = $job->getCompany(); \n $pay = $job->getPay(); \n $des = $job->getDescription(); \n \n //Bind the variables from the job posting object to the SQL statement\n $stmt->bindParam(':name', $name);\n $stmt->bindParam(':com', $com);\n $stmt->bindParam(':pay', $pay);\n $stmt->bindParam(':des', $des);\n \n //Excecute the SQL statement\n $stmt->execute();\n \n //If a row was inserted the method will return true.\n //If not it will return false\n if ($stmt->rowCount() == 1) {\n Log::info(\"Exiting JobPostingsDataService.create() with true\");\n return true;\n }\n else {\n Log::info(\"Exiting JobPostingsDataService.create()with false\");\n return false;\n }\n }catch (PDOException $e){\n Log::error(\"Exception: \", array(\"message\" => $e->getMessage()));\n throw new DatabaseException(\"Database Exception: \" . $e->getMessage(), 0, $e);\n }\n }", "title": "" }, { "docid": "410454dec561ec676803bff7c8911016", "score": "0.55652744", "text": "public function __construct($jobData)\n {\n //\n $this->jobData = $jobData;\n }", "title": "" }, { "docid": "3b43cf75ca8b5a59ad480456c8487661", "score": "0.5563581", "text": "public function setUp(): JobContract\n {\n return $this;\n }", "title": "" }, { "docid": "c9f5a5841b70e7c3f338f475b84d464e", "score": "0.55543375", "text": "function getJob($id)\n {\n $this->setRequestUrl('/job/' . $id);\n $this->setRequestObject(null);\n return Job::cast($this->execute());\n }", "title": "" } ]
6751c083f4e165dadb99b9abfd4223d7
Returns if the given method and headers make up a simple CORS request as defined by the spec.
[ { "docid": "1ba491f2a6f2ada0949f1941e072c9f0", "score": "0.62219375", "text": "protected function _isSimpleRequest($method, $headers)\n {\n if (!$this->_isSimpleMethod($method) || !$this->_isSimpleHeaders($headers)) {\n return false;\n }\n\n return true;\n }", "title": "" } ]
[ { "docid": "516138a4289d56d3cfba3aa5fe794155", "score": "0.73762065", "text": "public function is_cors()\n {\n $http_request = self::HTTP_REQUEST;\n return array_contains_key($_SERVER, $http_request) && $_SERVER[$http_request] == 'XMLHttpRequest';\n }", "title": "" }, { "docid": "f5d21a5c9d4014bc9b6e66372776461d", "score": "0.6687297", "text": "protected function _check_cors()\n {\n $allowed_headers = implode(', ', $this->config->item('allowed_cors_headers'));\n $allowed_methods = implode(', ', $this->config->item('allowed_cors_methods'));\n\n // If we want to allow any domain to access the API\n if ($this->config->item('allow_any_cors_domain') === TRUE) {\n header('Access-Control-Allow-Origin: *');\n header('Access-Control-Allow-Headers: ' . $allowed_headers);\n header('Access-Control-Allow-Methods: ' . $allowed_methods);\n } else {\n // We're going to allow only certain domains access\n // Store the HTTP Origin header\n $origin = $this->input->server('HTTP_ORIGIN');\n if ($origin === NULL) {\n $origin = '';\n }\n\n // If the origin domain is in the allowed_cors_origins list, then add the Access Control headers\n if (in_array($origin, $this->config->item('allowed_cors_origins'))) {\n header('Access-Control-Allow-Origin: ' . $origin);\n header('Access-Control-Allow-Headers: ' . $allowed_headers);\n header('Access-Control-Allow-Methods: ' . $allowed_methods);\n }\n }\n\n // If the request HTTP method is 'OPTIONS', kill the response and send it to the client\n if ($this->input->method() === 'options') {\n exit;\n }\n }", "title": "" }, { "docid": "67b43393eb9abf74771b7c857c9b97a0", "score": "0.6669378", "text": "protected function _doPreflightRequest($client, $method, $headers, $origin, $credentialsFlag)\n {\n $this->initCacheDb();\n\n $url = $client->getUri(true);\n $matches = $this->_getCacheDbMatches($origin, $url, $credentialsFlag);\n $maxAgeLimit = $this->getOption('cors_max_age', 0);\n $acrh = array_keys(array_change_key_case($headers));\n sort($acrh);\n\n $methodOk = false;\n foreach ($matches as $row) {\n if ($row['method'] === $method) {\n $methodOk = true;\n break;\n }\n }\n\n $headersOk = true;\n foreach ($acrh as $header) {\n $headerOk = false;\n foreach ($matches as $row) {\n if ($row['header'] === $header) {\n $headerOk = true;\n }\n break;\n }\n if (!$headerOk) {\n $headersOk = false;\n break;\n }\n }\n\n if ($methodOk && $headersOk) {\n return true;\n }\n\n $client->setHeaders('Access-Control-Request-Method', $method);\n $acrh = implode(',', $acrh);\n if ($acrh) {\n $client->setHeaders('Access-Control-Request-Headers', $acrh);\n }\n $client->setAuth(false);\n\n try {\n $corsResponse = $client->request(Zend_Http_Client::OPTIONS);\n if ($corsResponse->isRedirect() || !$this->_doResourceCheck($origin, $credentialsFlag, $corsResponse)) {\n $this->_clearCache($origin, $url);\n return false;\n }\n } catch (Exception $ex) {\n $this->_clearCache($origin, $url);\n return false;\n }\n\n $allowedMethods = $this->_parseMultiValueCorsHeader($corsResponse->getHeader('Access-Control-Allow-Methods'));\n $allowedHeaders = $this->_parseMultiValueCorsHeader($corsResponse->getHeader('Access-Control-Allow-Headers'), true);\n\n if (!$this->_isSimpleMethod($method, $allowedMethods)\n || !$this->_isSimpleHeaders($headers, $allowedHeaders)) {\n $this->_clearCache($origin, $url);\n return false;\n }\n\n $acma = $corsResponse->getHeader('Access-Control-Max-Age');\n if ($maxAgeLimit) {\n if (null === $acma || is_array($acma)) {\n $acma = $maxAgeLimit;\n }\n }\n\n if (!$acma) {\n return true;\n }\n\n $matches = $this->_getCacheDbMatches($origin, $url, $credentialsFlag);\n foreach ($allowedMethods as $aMethod) {\n $matched = false;\n foreach ($matches as $row) {\n if ($row['method'] === $method) {\n $matched = true;\n $this->_cacheDb->update('cache', array(\n 'max_age' => $acma,\n 'created_at' => time(),\n ), array(\n 'origin = ?' => $origin,\n 'url = ?' => $url,\n 'credentials' => $credentialsFlag,\n 'method' => $aMethod,\n ));\n break;\n }\n }\n if (!$matched) {\n $this->_cacheDb->insert('cache', array(\n 'origin' => $origin,\n 'url' => $url,\n 'max_age' => $acma,\n 'credentials' => $credentialsFlag,\n 'method' => $aMethod,\n 'header' => '',\n 'created_at' => time(),\n ));\n }\n }\n\n foreach ($allowedHeaders as $header) {\n $matched = false;\n foreach ($matches as $row) {\n if ($row['header'] === $header) {\n $matched = true;\n $this->_cacheDb->update('cache', array(\n 'max_age' => $acma,\n 'created_at' => time(),\n ), array(\n 'origin = ?' => $origin,\n 'url = ?' => $url,\n 'credentials' => $credentialsFlag,\n 'header' => $header,\n ));\n break;\n }\n }\n if (!$matched) {\n $this->_cacheDb->insert('cache', array(\n 'origin' => $origin,\n 'url' => $url,\n 'max_age' => $acma,\n 'credentials' => $credentialsFlag,\n 'method' => '',\n 'header' => $header,\n 'created_at' => time(),\n ));\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "e5d27c7241dba677f5d3c8fd2e30a352", "score": "0.64962983", "text": "function cors() {\r\n\t if (isset($_SERVER['HTTP_ORIGIN'])) {\r\n\t header(\"Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}\");\r\n\t header('Access-Control-Allow-Credentials: true');\r\n\t header('Access-Control-Max-Age: 86400'); // cache for 1 day\r\n\t }\r\n\r\n\t // Access-Control headers are received during OPTIONS requests\r\n\t if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {\r\n\r\n\t if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']))\r\n\t header(\"Access-Control-Allow-Methods: GET, POST, OPTIONS\"); \r\n\r\n\t if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))\r\n\t header(\"Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}\");\r\n\r\n\t exit(0);\r\n\t }\r\n\r\n\t echo \"You have CORS!\";\r\n\t}", "title": "" }, { "docid": "922c054cdb71aca19d6fb635af2dbb4a", "score": "0.6456428", "text": "public function cors()\n {\n\n // Allow from any origin\n if (isset($_SERVER['HTTP_ORIGIN'])) {\n // Decide if the origin in $_SERVER['HTTP_ORIGIN'] is one\n // you want to allow, and if so:\n header(\"Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}\");\n header('Access-Control-Allow-Credentials: true');\n header('Access-Control-Max-Age: 86400'); // cache for 1 day\n }\n\n // Access-Control headers are received during OPTIONS requests\n if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {\n\n if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']))\n // may also be using PUT, PATCH, HEAD etc\n header(\"Access-Control-Allow-Methods: GET, POST, OPTIONS\");\n\n if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))\n header(\"Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}\");\n\n exit(0);\n }\n\n echo \"You have CORS!\";\n }", "title": "" }, { "docid": "db70fefca7ec508860108cd65ba0a9fb", "score": "0.6412381", "text": "function cors() {\n if (isset($_SERVER['HTTP_ORIGIN'])) {\n header(\"Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}\");\n header('Access-Control-Allow-Credentials: true');\n header('Access-Control-Max-Age: 86400'); // cache for 1 day\n }\n\n // Access-Control headers are received during OPTIONS requests\n if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {\n\n if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']))\n header(\"Access-Control-Allow-Methods: GET, POST, OPTIONS\");\n\n if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))\n header(\"Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}\");\n\n exit(0);\n }\n\n #echo \"You have CORS!\";\n}", "title": "" }, { "docid": "6e33346e1f52df252d202b9ab868c3e0", "score": "0.639931", "text": "function cors() {\n\t if (isset($_SERVER['HTTP_ORIGIN'])) {\n\t header(\"Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}\");\n\t header('Access-Control-Allow-Credentials: true');\n\t header('Access-Control-Max-Age: 86400'); // cache for 1 day\n\t }\n\n\t // Access-Control headers are received during OPTIONS requests\n\t if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {\n\n\t if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']))\n\t header(\"Access-Control-Allow-Methods: GET, POST, OPTIONS\"); \n\n\t if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))\n\t header(\"Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}\");\n\n\t exit(0);\n\t }\n\n\t //echo \"You have CORS!\";\n\t}", "title": "" }, { "docid": "8ed6aef0eb83dcb78d408b169fb4199d", "score": "0.63351035", "text": "function wpeb_custom_cors_headers(bool $value ): bool\n {\n header( 'Access-Control-Allow-Methods: OPTIONS, GET, POST, PUT, PATCH' );\n header( 'Access-Control-Allow-Credentials: true' );\n header( 'Access-Control-Allow-Headers: *' );\n return $value;\n }", "title": "" }, { "docid": "f1337fcae12cd4a95dfece5838896cfc", "score": "0.63007784", "text": "function cors()\n{\n // Allow from any origin\n if (isset($_SERVER['HTTP_ORIGIN'])) {\n // Decide if the origin in $_SERVER['HTTP_ORIGIN'] is one\n // you want to allow, and if so:\n header(\"Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}\");\n header('Access-Control-Allow-Credentials: true');\n header('Access-Control-Max-Age: 86400'); // cache for 1 day\n }\n\n // Access-Control headers are received during OPTIONS requests\n if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {\n\n if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']))\n // may also be using PUT, PATCH, HEAD etc\n header(\"Access-Control-Allow-Methods: GET, POST, OPTIONS\");\n\n if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))\n header(\"Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}\");\n\n exit(0);\n }\n\n // echo \"You have CORS!\";\n}", "title": "" }, { "docid": "fe4b408fbecb0f692f6f53b0c7e2d8a1", "score": "0.6252446", "text": "public function isRequestOrigin()\n {\n return true;\n }", "title": "" }, { "docid": "05f3d0825d089c277cb4797423eafe23", "score": "0.62007624", "text": "function cors() {\n\tif (isset($_SERVER['HTTP_ORIGIN'])) {\n\t\theader(\"Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}\");\n\t\theader('Access-Control-Allow-Credentials: true');\n\t\theader('Access-Control-Max-Age: 86400'); // cache for 1 day\n\t}\n\t// Access-Control headers are received during OPTIONS requests\n\tif ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {\n\t\tif (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']))\n\t\t\theader(\"Access-Control-Allow-Methods: GET, POST, OPTIONS\");\n\t\tif (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))\n\t\t\theader(\"Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}\");\n\t\texit(0);\n\t}\n}", "title": "" }, { "docid": "ba233c00b849888b180d6f5b7f9f39e5", "score": "0.6124562", "text": "protected function _isSimpleMethod($method, $additionalMethods = array())\n {\n if (!in_array($method, $this->_corsSimpleMethods)\n && !in_array($method, $additionalMethods)) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "40cdd2bb56d211f5b788328ae860d2c1", "score": "0.6111818", "text": "private function cors() {\n if (isset($_SERVER['HTTP_ORIGIN'])) {\n header(\"Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}\");\n header('Access-Control-Allow-Credentials: true');\n }\n if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {\n if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']))\n header(\"Access-Control-Allow-Origin: *\");\n header(\"Access-Control-Allow-Methods: GET, POST, OPTIONS\"); \n if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))\n header(\"Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}\");\n }\n }", "title": "" }, { "docid": "c5bd084c593f52200645ee893450b74d", "score": "0.6095716", "text": "function cors() {\n if (isset($_SERVER['HTTP_ORIGIN'])) {\n // Decide if the origin in $_SERVER['HTTP_ORIGIN'] is one\n // you want to allow, and if so:\n header(\"Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}\");\n header('Access-Control-Allow-Credentials: true');\n header('Access-Control-Max-Age: 86400'); // cache for 1 day\n }\n\n // Access-Control headers are received during OPTIONS requests\n if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {\n\n if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']))\n // may also be using PUT, PATCH, HEAD etc\n header(\"Access-Control-Allow-Methods: GET, POST, OPTIONS\");\n\n if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))\n header(\"Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}\");\n\n }\n\n}", "title": "" }, { "docid": "45ea2775a69e221cef4d2fbd87865f69", "score": "0.6088488", "text": "function cors() {\n if (isset($_SERVER['HTTP_ORIGIN'])) {\n // Decide if the origin in $_SERVER['HTTP_ORIGIN'] is one\n // you want to allow, and if so:\n header(\"Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}\");\n header('Access-Control-Allow-Credentials: true');\n header('Access-Control-Max-Age: 30');// cache for __ seconds\n header('Cache-Control: no-store'); //never allow cache\n }\n\n // Access-Control headers are received during OPTIONS requests\n if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {\n\n if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']))\n // may also be using PUT, PATCH, HEAD etc\n header(\"Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE\"); \n\n if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))\n header(\"Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}\");\n\n exit(0);\n }\n}", "title": "" }, { "docid": "255f61b4d4d06df7d666fdb40eaef8e7", "score": "0.6075884", "text": "function sendCorsHeaders($methods = 'GET,POST,PUT', $origin = '',$extra_headers='')\n {\n\n if($extra_headers) $extra_headers = ','.$extra_headers;\n // Rules for Cross-Domain AJAX\n // https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS\n // $origin =((strlen($_SERVER['HTTP_ORIGIN']))?preg_replace('/\\/$/', '', $_SERVER['HTTP_ORIGIN']):'*')\n if (!strlen($origin)) $origin = ((strlen($_SERVER['HTTP_ORIGIN'])) ? preg_replace('/\\/$/', '', $_SERVER['HTTP_ORIGIN']) : '*');\n header(\"Access-Control-Allow-Origin: $origin\");\n header(\"Access-Control-Allow-Methods: $methods\");\n header(\"Access-Control-Allow-Headers: Content-Type,Authorization,X-CloudFrameWork-AuthToken,X-CLOUDFRAMEWORK-SECURITY,X-DS-TOKEN,X-REST-TOKEN,X-EXTRA-INFO,X-WEB-KEY,X-SERVER-KEY,X-REST-USERNAME,X-REST-PASSWORD,X-APP-KEY,cache-control,x-requested-with\".$extra_headers);\n header(\"Access-Control-Allow-Credentials: true\");\n header('Access-Control-Max-Age: 1000');\n\n // To avoid angular Cross-Reference\n if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {\n header(\"HTTP/1.1 200 OK\");\n exit();\n }\n\n\n }", "title": "" }, { "docid": "afc5e3484dd7840e90fdd1ac8cb479d3", "score": "0.6072793", "text": "function cors() {\n\t// Allow from any origin\n\tif (isset($_SERVER['HTTP_ORIGIN'])) {\n \t// Decide if the origin in $_SERVER['HTTP_ORIGIN'] is one\n \t// you want to allow, and if so:\n \theader(\"Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}\");\n \theader('Access-Control-Allow-Credentials: true');\n \theader('Access-Control-Max-Age: 86400'); // cache for 1 day\n\t}\n\n\t// Access-Control headers are received during OPTIONS requests\n\tif($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {\n\t\tif(isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD'])) {\n \t\t// may also be using PUT, PATCH, HEAD etc\n \t\theader(\"Access-Control-Allow-Methods: GET, POST, OPTIONS\");\n\t\t}\n\n\t\tif(isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS'])) {\n\t\t\theader(\"Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}\");\n\t\t}\n\t}\n}", "title": "" }, { "docid": "52ccc6559e3ce8d910fb129d1717f7b0", "score": "0.6063081", "text": "public function isMethodSafe() {\n return in_array($this->getMethod(), array('GET', 'HEAD'));\n }", "title": "" }, { "docid": "97f1203a803ec35d3c8dd358221a0abb", "score": "0.6051573", "text": "function cors() {\n if (isset($_SERVER['HTTP_ORIGIN'])) {\n // Decide if the origin in $_SERVER['HTTP_ORIGIN'] is one\n // you want to allow, and if so:\n header(\"Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}\");\n header('Access-Control-Allow-Credentials: true');\n header('Access-Control-Max-Age: 86400'); // cache for 1 day\n }\n\n // Access-Control headers are received during OPTIONS requests\n if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {\n\n if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']))\n // may also be using PUT, PATCH, HEAD etc\n header(\"Access-Control-Allow-Methods: GET, POST, OPTIONS\");\n\n if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))\n header(\"Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}\");\n\n exit(0);\n }\n\n}", "title": "" }, { "docid": "c1c13ab3da7d1c6fa0becddfb5f1a730", "score": "0.603379", "text": "public function cors() {\n if (isset($_SERVER['HTTP_ORIGIN'])) {\n header(\"Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}\");\n header('Access-Control-Allow-Credentials: true');\n header('Access-Control-Max-Age: 86400'); // cache for 1 day\n }\n\n // Access-Control headers are received during OPTIONS requests\n if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {\n\n if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']))\n header(\"Access-Control-Allow-Methods: GET, POST, OPTIONS\"); \n\n if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))\n header(\"Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}\");\n\n exit(0);\n }\n }", "title": "" }, { "docid": "fad1fceb521eae1bb71656cef7c5c5b0", "score": "0.59927994", "text": "function allowCors() {\n if (isset($_SERVER['HTTP_ORIGIN'])) {\n // Decide if the origin in $_SERVER['HTTP_ORIGIN'] is one\n header(\"Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}\");\n header('Access-Control-Allow-Credentials: true');\n header('Access-Control-Max-Age: 86400'); // cache for 1 day\n }\n // Access-Control headers are received during OPTIONS requests\n if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {\n\n if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']))\n header(\"Access-Control-Allow-Methods: GET, POST, HEAD, OPTIONS, PUT, DELETE\");\n\n if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))\n header(\"Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}\");\n\n exit(0);\n }\n}", "title": "" }, { "docid": "93204d888b71d77842b0a42f98269e9a", "score": "0.5976314", "text": "protected function _isSimpleHeaders($headers, $additionalHeaders = array())\n {\n foreach ($headers as $name => $value) {\n $name = strtolower($name);\n $value = strtolower($value);\n if (!array_key_exists($name, $this->_corsSimpleHeaders)\n && !in_array($name, $additionalHeaders)) {\n return false;\n }\n\n $valueNoParam = explode(';', $value, 2);\n $valueNoParam = $valueNoParam[0];\n if (is_array($this->_corsSimpleHeaders[$name])\n && !in_array($valueNoParam, $this->_corsSimpleHeaders[$name])) {\n return false;\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "1cbca60739d90a607bc49ce1fcd9a86f", "score": "0.59746873", "text": "protected function requestShouldHaveJsonHeaders(Request $request): bool\n {\n return $request->route() && in_array('api', (array) $request->route()->middleware());\n }", "title": "" }, { "docid": "6d7ff1c537a99ff80e039f3b10a243c8", "score": "0.5970588", "text": "function origin_authorized( $origin = null ) {\n\tif ( ! get_option( 'allow_remote_requests' ) ) {\n\t\treturn false;\n\t};\n\t$rest_authorized_domains = get_option( 'rest_authorized_domains' );\n\tif ( is_null( $origin ) ) {\n\t\tif ( empty( $_SERVER['HTTP_ORIGIN'] ) ) {\n\t\t\treturn false;\n\t\t}\n\t\t$origin = esc_url_raw( wp_unslash( $_SERVER['HTTP_ORIGIN'] ) );\n\t}\n\n\t$authorized = false;\n\tif ( ! $rest_authorized_domains ) {\n\t\t$authorized = true;\n\t} else {\n\t\t$authorized_domains = array_map( 'trim', explode( ',', $rest_authorized_domains ) );\n\t\tforeach ( $authorized_domains as $domain ) {\n\t\t\tif ( strpos( $origin, $domain ) !== false ) {\n\t\t\t\t$authorized = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\treturn $authorized;\n}", "title": "" }, { "docid": "960896a01bb4a2e417cf1be02d876d54", "score": "0.5965892", "text": "private function isHttpMethodFiltered($method): bool\n {\n $method = strtoupper($method);\n if ($this->getSecured && $method == \"GET\") {\n return true;\n } elseif ($this->postSecured && $method == \"POST\") {\n return true;\n } elseif ($this->putSecured && $method == \"PUT\") {\n return true;\n } elseif ($this->patchSecured && $method == \"PATCH\") {\n return true;\n } elseif ($this->deleteSecured && $method == \"DELETE\") {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "8de93099314120e367d2bec5b6bf8857", "score": "0.595993", "text": "function is_api_request()\n {\n return starts_with(app('request')->getHttpHost(), config('api.endpoint.domain'))\n or app('request')->is(config('api.endpoint.pattern'))\n or app('request')->ajax();\n }", "title": "" }, { "docid": "a9726fa83cafc15daaefe090e591efc7", "score": "0.59562963", "text": "public static function CORSHeaders()\r\n\t{\r\n\t\tif( isset($_SERVER['HTTP_ORIGIN']) )\r\n\t\t{\r\n\t\t\theader('Access-Control-Allow-Origin: ' . $_SERVER['HTTP_ORIGIN']);\r\n\t\t\theader('Access-Control-Allow-Credentials: true');\r\n\t\t\theader('Access-Control-Max-Age: 86400'); // cache for 1 day\r\n\t\t}\r\n\r\n\t\t// Access-Control headers are received during OPTIONS requests\r\n\t\tif($_SERVER['REQUEST_METHOD'] == 'OPTIONS')\r\n\t\t{\r\n\t\t\tif( isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']) )\r\n\t\t\t{\r\n\t\t\t\theader('Access-Control-Allow-Methods: GET, POST, OPTIONS');\r\n\t\t\t}\r\n\r\n\t\t\tif( isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']) )\r\n\t\t\t{\r\n\t\t\t\theader('Access-Control-Allow-Headers: ' . $_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "14e708bc8eaea18e5ce09d1e9cb7fbb5", "score": "0.5935433", "text": "public function allowCrossOrigin() {\n\n\t\tif (empty($_SERVER['HTTP_ORIGIN']))\n\t\t\treturn; // This is not a CORS request\n\t\t\t\n\t\t$this->add_header('Access-Control-Allow-Origin', $_SERVER['HTTP_ORIGIN']);\n\t\t$this->add_header('Access-Control-Allow-Credentials', 'true');\n\t\t$this->add_header('Access-Control-Allow-Methods', 'GET');\n\t\t$this->add_header('Access-Control-Allow-Headers', 'Content-Type,Accept');\n\t\t$this->add_header('Access-Control-Max-Age', '10');\n\t}", "title": "" }, { "docid": "d5fe6500f62d28c5ee2fe7c0dd4b3276", "score": "0.5920217", "text": "public static function AcceptAnyCORS() : void\n\t{\n\t\t$origin = Params::SafeServer('HTTP_ORIGIN', '*');\n\t\theader(\"Access-Control-Allow-Credentials: true\");\n\t\theader(\"Access-Control-Allow-Origin: $origin\");\n\t\theader(\"Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS\");\n\t\theader(\"Access-Control-Allow-Headers: Origin,X-Requested-With,Content-Type,Accept,Full-Url,Access-Link\");\n\t}", "title": "" }, { "docid": "9df614d5d94fe995780acb2305abd079", "score": "0.5916345", "text": "public static function json_reqd() {\n\t\treturn strpos(getallheaders()['Accept'], 'application/json') !== false;\n\t}", "title": "" }, { "docid": "5b3f25a781c3bdd39e4d9d15f7322fd1", "score": "0.5890204", "text": "public function testNoAllowedOriginNoHeadersSet(): void\n {\n $response = new Response();\n $builder = new CorsBuilder($response, 'http://example.com');\n $response = $builder->allowCredentials()\n ->allowMethods(['GET', 'POST'])\n ->allowHeaders(['Content-Type'])\n ->exposeHeaders(['X-CSRF-Token'])\n ->maxAge(300)\n ->build();\n $this->assertNoHeader($response, 'Access-Control-Allow-Origin');\n $this->assertNoHeader($response, 'Access-Control-Allow-Headers');\n $this->assertNoHeader($response, 'Access-Control-Expose-Headers');\n $this->assertNoHeader($response, 'Access-Control-Allow-Methods');\n $this->assertNoHeader($response, 'Access-Control-Allow-Authentication');\n $this->assertNoHeader($response, 'Access-Control-Max-Age');\n }", "title": "" }, { "docid": "52ee79f6a7a729740ec0273273c8d48b", "score": "0.58586675", "text": "public function test_preflight_request()\n {\n $request = (new ServerRequest)\n ->withMethod('OPTIONS')\n ->withHeader('Origin', 'http://example.com')\n ->withHeader('Access-Control-Request-Method', 'PATCH')\n ->withHeader('Access-Control-Request-Headers', 'Accept, Authorization, Content-Type')\n ;\n\n $response = new Response;\n\n $middleware = $this->build_middleware();\n\n $response = $middleware($request, $response, function($request, $response) {\n return $response;\n });\n\n $this->assertEquals('http://example.com', $response->getHeader('Access-Control-Allow-Origin')[0]);\n $this->assertEquals('true', $response->getHeader('Access-Control-Allow-Credentials')[0]);\n $this->assertEquals(['PATCH', 'DELETE'], $response->getHeader('Access-Control-Allow-Methods'));\n $this->assertEquals(['Authorization,Content-Type'], $response->getHeader('Access-Control-Allow-Headers'));\n $this->assertEquals('3600', $response->getHeader('Max-Age')[0]);\n }", "title": "" }, { "docid": "87b38b93f4415dfc5a4c0de529173c73", "score": "0.5846197", "text": "public function supportsHttpMethod($method) {\n return in_array($method, $this->methods);\n }", "title": "" }, { "docid": "9ce507e8bd719e8aef3ba78f07b9895e", "score": "0.584181", "text": "protected function accessByAllowOrigin() {\n // Check the referrer header and return false if it does not match the\n // Access-Control-Allow-Origin\n $referer = $this->getRequest()->getHeaders()->get('Referer')->getValueString();\n\n // If there is no allow_origin assume that it is allowed. Also, if there is\n // no referer then grant access since the request probably was not\n // originated from a browser.\n $plugin_definition = $this->getPluginDefinition();\n $origin = isset($plugin_definition['allowOrigin']) ? $plugin_definition['allowOrigin'] : NULL;\n if (empty($origin) || $origin == '*' || !$referer) {\n return TRUE;\n }\n return strpos($referer, $origin) === 0;\n }", "title": "" }, { "docid": "e5202da72def469b514497077cf074cd", "score": "0.5767363", "text": "function rest_request_authorized( $request ) {\n\tif ( ! get_option( 'allow_remote_requests' ) ) {\n\t\treturn false;\n\t};\n\tif ( ! origin_authorized() ) {\n\t\treturn false;\n\t}\n\tif ( get_option( 'allow_unregistered_requests' ) ) {\n\t\treturn true;\n\t}\n\t$uuid = $request->get_param( 'uuid' );\n\tif ( empty( $uuid ) ) {\n\t\treturn false;\n\t}\n\t$client = RemoteClient::from_uuid( $uuid );\n\tif ( is_null( $client->client_id ) || $client->blocked ) {\n\t\treturn false;\n\t}\n\treturn true;\n}", "title": "" }, { "docid": "946678c01247a78436a7ec1a30c6e94a", "score": "0.5733976", "text": "private function verifyHTTPorigins()\n {\n\n if (isset($_SERVER['HTTP_ORIGIN'])) {\n header(\"Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}\");\n header('Access-Control-Allow-Credentials: true');\n header('Access-Control-Max-Age: 86400'); // cache for 1 day\n }\n }", "title": "" }, { "docid": "3fdba558979e2792ab3cdfa956693043", "score": "0.5684101", "text": "public function supports(\\Symfony\\Component\\HttpFoundation\\Request $request ): bool\n {\n return $request->headers->has( 'Authorization' );\n }", "title": "" }, { "docid": "dc1c638a60feee197386f96443f1aaf8", "score": "0.5677455", "text": "public function isRpc()\n {\n $boolReturn = $_SERVER['REQUEST_METHOD'] == 'POST' && !empty($_SERVER['CONTENT_TYPE']);\n $boolReturn = $boolReturn && (strpos($_SERVER['CONTENT_TYPE'], 'application/json') !== false);\n return $boolReturn;\n }", "title": "" }, { "docid": "1c92bdbd171e1e78aefea1e9e7a05ada", "score": "0.5675139", "text": "public function add_cors_header() {\n\t\t/*\n\t\tif(isset($_SERVER['HTTP_ORIGIN'])) {\n\t\t\t\n\t\t\t//header(\"Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}\");\n\t\t\theader(\"Access-Control-Allow-Origin: *\");\n\t\t\theader('Access-Control-Allow-Credentials: true');\n\t\t\theader('Access-Control-Max-Age: 86400'); // cache for 1 day\n\t\t}\n\n\t\t// Access-Control headers are received during OPTIONS requests\n\n\t\tif ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {\n\n\t\t\tif (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD']))\n\t\t\t\theader(\"Access-Control-Allow-Methods: GET, POST, OPTIONS\"); \n\n\t\t\tif (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))\n\t\t\t\theader(\"Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}\");\n\n\t\t\texit(0);\n\t\t}\n\t\t*/\n\t}", "title": "" }, { "docid": "db659c0a51795b7d0dba473798d71759", "score": "0.56569254", "text": "function method_is($method, $requestMethod = null)\n{\n if (is_null($requestMethod)) {\n $requestMethod = method();\n }\n\n if (is_array($method)) {\n $method = array_map('strtolower', $method);\n\n return in_array(strtolower($requestMethod), $method);\n }\n\n return strtolower($method) == strtolower($requestMethod);\n}", "title": "" }, { "docid": "7e78b032e380faec0d0df9013a338127", "score": "0.5633013", "text": "function csco_doing_request() {\n\t\tif ( defined( 'REST_REQUEST' ) && REST_REQUEST ) {\n\t\t\treturn true;\n\t\t}\n\t\tif ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "cb8ead3fb55e682ca63cf27875015b8f", "score": "0.5626021", "text": "public function testAllowOriginNoOrigin(): void\n {\n $response = new Response();\n $builder = new CorsBuilder($response, '');\n $this->assertSame($builder, $builder->allowOrigin(['*.example.com', '*.foo.com']));\n $this->assertNoHeader($builder->build(), 'Access-Control-Origin');\n }", "title": "" }, { "docid": "6f5859d59bfffd9c05dfad74118f02c5", "score": "0.56107134", "text": "function is_delete_request()\n {\n $needle = 'delete';\n\n return strtolower(app('request')->input('_method')) == $needle\n or strtolower(app('request')->header('x-http-method-override')) == $needle\n or strtolower(app('request')->method()) == $needle;\n }", "title": "" }, { "docid": "f066594c82b28dc8ef70b6b6d455c371", "score": "0.5602272", "text": "protected function _isSimpleResponseHeader($header, $additionalHeaders = array())\n {\n if (!in_array($header, $this->_corsSimpleResponseHeaders)\n && !in_array($header, $additionalHeaders)) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "644b5b20a1fbbc78f1057ee158132132", "score": "0.5596473", "text": "public function hasAuthHeader(Request $request): bool\n {\n return array_key_exists('Authorization', $request->getHeaders());\n }", "title": "" }, { "docid": "0ad6b105338ad7ce224d5a1fa45ee155", "score": "0.5592144", "text": "private function _is_allowed($method) {\n\t\tif (!($this->options_loaded || ($method == 'OPTIONS'))) {\n\t\t\t// query server for WebDAV options\n\t\t\tif (!$this->_check_options()) return false;\n\t\t}\n\n\t\treturn isset($this->dav_allow[$method]);\n\t}", "title": "" }, { "docid": "bdf8969e98c140f8d0d4799a352e649b", "score": "0.55754274", "text": "public function testInvalidAllowedOriginNoHeadersSet(): void\n {\n $response = new Response();\n $builder = new CorsBuilder($response, 'http://example.com');\n $response = $builder->allowOrigin(['http://google.com'])\n ->allowCredentials()\n ->allowMethods(['GET', 'POST'])\n ->allowHeaders(['Content-Type'])\n ->exposeHeaders(['X-CSRF-Token'])\n ->maxAge(300)\n ->build();\n $this->assertNoHeader($response, 'Access-Control-Allow-Origin');\n $this->assertNoHeader($response, 'Access-Control-Allow-Headers');\n $this->assertNoHeader($response, 'Access-Control-Expose-Headers');\n $this->assertNoHeader($response, 'Access-Control-Allow-Methods');\n $this->assertNoHeader($response, 'Access-Control-Allow-Authentication');\n $this->assertNoHeader($response, 'Access-Control-Max-Age');\n }", "title": "" }, { "docid": "ad04e1855705e89d115ae12b3e7932c9", "score": "0.55604947", "text": "public function test_actual_request()\n {\n $request = (new ServerRequest)\n ->withMethod('PATCH')\n ->withHeader('Origin', 'http://example.com')\n ;\n\n $response = new Response;\n\n $middleware = $this->build_middleware();\n\n $response = $middleware($request, $response, function($request, $response) {\n return $response;\n });\n\n $this->assertEquals('http://example.com', $response->getHeader('Access-Control-Allow-Origin')[0]);\n $this->assertEquals('true', $response->getHeader('Access-Control-Allow-Credentials')[0]);\n $this->assertEquals(['X-My-Custom-Header'], $response->getHeader('Access-Control-Expose-Headers'));\n }", "title": "" }, { "docid": "a6dbf0d8ae0d997c9e7b0c6ce8c89a5e", "score": "0.55357707", "text": "public function validRequestMethod(String $httpRequestMethod):Bool {\n\n\t\treturn in_array(strtoupper($httpRequestMethod), self::HTTP_REQUEST_METHODS);\n\n\t}", "title": "" }, { "docid": "facc5121f4944b8c441187265e2feb70", "score": "0.55284613", "text": "public function supports(Request $request)\n {\n // look for header \"Authorization: Bearer <token>\"\n return $request->headers->has('Authorization')\n && 0 === strpos($request->headers->get('Authorization'), 'Bearer ');\n }", "title": "" }, { "docid": "d749faef63aed153c513b7e9cd88e798", "score": "0.5513438", "text": "protected function isGetRequest()\n {\n return Input::server(\"REQUEST_METHOD\") == \"GET\";\n }", "title": "" }, { "docid": "4c91335984113a8bb47995d6f81e89b7", "score": "0.55090404", "text": "public function isValidMethod(array $uri, string $requestMethod): bool {\n switch ($uri[0]) {\n case RESTConstants::ENDPOINT_CUSTOMER:\n if((count($uri) == 2 || count($uri) == 3) && $requestMethod == RESTConstants::METHOD_GET) {\n return true;\n } else if(count($uri) == 2 && $requestMethod == RESTConstants::METHOD_POST){\n return true;\n } else if(count($uri) == 4 && $requestMethod == RESTConstants::METHOD_PUT){\n return true;\n }\n case RESTConstants::ENDPOINT_EMPLOYEE:\n if((count($uri) == 3 || count($uri) == 2) && $requestMethod == RESTConstants::METHOD_GET) {\n return true;\n } else if (count($uri) == 2 && $requestMethod == RESTConstants::METHOD_POST){\n return true;\n } else if (count($uri) == 3 && $requestMethod == RESTConstants::METHOD_DELETE) {\n return true;\n } else if (count($uri) == 3 && $requestMethod == RESTConstants::METHOD_PUT) {\n return true;\n }\n case RESTConstants::ENDPOINT_TRANSPORTER:\n if (count($uri) == 2 && $requestMethod == RESTConstants::METHOD_GET){\n return true;\n } else if (count($uri) == 3 && $requestMethod == RESTConstants::METHOD_PUT) {\n return true;\n }\n case RESTConstants::ENDPOINT_PUBLIC:\n if (count($uri) == 2 && $requestMethod == RESTConstants::METHOD_GET){\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "2571b68df1568feb75f0f1aa7a94fa66", "score": "0.55084544", "text": "function http_request_method_exists($method)\n {\n }", "title": "" }, { "docid": "b0ffcce159422f5d32411c9edd9716a9", "score": "0.5504684", "text": "public function testAllowOrigin(): void\n {\n $response = new Response();\n $builder = new CorsBuilder($response, 'http://www.example.com');\n $this->assertSame($builder, $builder->allowOrigin('*'));\n $this->assertHeader('*', $builder->build(), 'Access-Control-Allow-Origin');\n\n $response = new Response();\n $builder = new CorsBuilder($response, 'http://www.example.com');\n $this->assertSame($builder, $builder->allowOrigin(['*.example.com', '*.foo.com']));\n $builder->build();\n $this->assertHeader('http://www.example.com', $builder->build(), 'Access-Control-Allow-Origin');\n\n $response = new Response();\n $builder = new CorsBuilder($response, 'http://www.example.com');\n $this->assertSame($builder, $builder->allowOrigin('*.example.com'));\n $this->assertHeader('http://www.example.com', $builder->build(), 'Access-Control-Allow-Origin');\n }", "title": "" }, { "docid": "641367e747fd685fab318b7a91a47bbc", "score": "0.54937756", "text": "public function verify_request_method () {\n\t\tif (strtolower ($_SERVER['REQUEST_METHOD']) !== $this->method) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "09cded741fdf59ba348d69e15ec1d14f", "score": "0.54573435", "text": "function isGetRequest() {\r\n return ( filter_input(INPUT_SERVER, 'REQUEST_METHOD') === 'GET' );\r\n}", "title": "" }, { "docid": "09cded741fdf59ba348d69e15ec1d14f", "score": "0.54573435", "text": "function isGetRequest() {\r\n return ( filter_input(INPUT_SERVER, 'REQUEST_METHOD') === 'GET' );\r\n}", "title": "" }, { "docid": "d926d03b5fdb3f7a349fe0b70601198e", "score": "0.5452705", "text": "public function getCrossOrigin();", "title": "" }, { "docid": "04ab15fb9880b0df8828cb26a699627d", "score": "0.54421157", "text": "public function isAuthRequest();", "title": "" }, { "docid": "576bdf4e23af1bfd0d611ea44ce852b6", "score": "0.5433067", "text": "public function enableCORS($orgin=\"*\")\n {\n $this->addHeader(\"Access-Control-Allow-Origin\",$orgin);\n $this->addHeader(\"Access-Control-Expose-Headers\",\"*\");\n $this->addHeader(\"Access-Control-Allow-Headers\",\"*\");\n $this->addHeader(\"Access-Control-Allow-Methods\",\"*\");\n }", "title": "" }, { "docid": "34f1135160bc67774e79efdde7a70a56", "score": "0.5407347", "text": "protected function isJsonApiRequest(Request $request) {\n\n // Don't touch \"original\" JSON-API-route requests, only handle requests on.\n // Configured path prefix routes and check if the 'Accept' header includes.\n // the-JSON API MIME type.\n return strpos($request->getPathInfo(), '/jsonapi/') === FALSE && $this->pathPrefixApplies($request);\n\n }", "title": "" }, { "docid": "0fe824c135f436926c9f33ce68b17512", "score": "0.5401288", "text": "function handle_preflight() {\n\tif ( ! get_option( 'allow_remote_requests' ) ) {\n\t\treturn;\n\t};\n\tif ( empty( $_SERVER['HTTP_ORIGIN'] ) ) {\n\t\treturn;\n\t}\n\n\t$origin = esc_url_raw( wp_unslash( $_SERVER['HTTP_ORIGIN'] ) );\n\tif ( ! origin_authorized( $origin ) ) {\n\t\treturn;\n\t}\n\n\theader( \"Access-Control-Allow-Origin: $origin\" );\n\theader( 'Access-Control-Allow-Methods: POST, GET' );\n\theader( 'Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Authorization' );\n}", "title": "" }, { "docid": "05b5f63c57dd94172c7bd33f91aec48f", "score": "0.5395843", "text": "function ifItIsMethod($method) {\n\n //checking if we get $_SERVER['REQUEST_METHOD'] ie a request method\n if($_SERVER['REQUEST_METHOD'] == strtoupper($method)) {\n return true;\n }\n\n return false;\n\n}", "title": "" }, { "docid": "064eb8e477bda739b904b37abd88bee2", "score": "0.53889906", "text": "final public function hasHeaders():bool\n {\n return !empty($this->headers());\n }", "title": "" }, { "docid": "ca1fa6a6e67b9d820a0e6faa5dcf6f18", "score": "0.5380393", "text": "public function hasOrigin()\n {\n return $this->origin !== null;\n }", "title": "" }, { "docid": "df506f12bf48849962203fb5a79c944a", "score": "0.5374232", "text": "public function supports(Request $request): bool\n {\n return $request->headers->has('X-AUTH-TOKEN');\n }", "title": "" }, { "docid": "b3581e254c34434bd7a4df67a960420d", "score": "0.5365746", "text": "function requiresAuth()\n {\n if ($_SERVER['REQUEST_METHOD'] == 'GET' ||\n $_SERVER['REQUEST_METHOD'] == 'HEAD') {\n return false;\n } else {\n return true;\n }\n }", "title": "" }, { "docid": "16829c4eb891d9c805682cc0563cbe02", "score": "0.53653085", "text": "public function requestMethod($method)\n {\n if (! empty($this->method) && ! empty($method)\n && $this->method !== $method)\n {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "82cb105901e1e28ab09b97bedf653ab4", "score": "0.53604865", "text": "protected function _doResourceCheck($origin, $credentialsFlag, $response)\n {\n $acao = $response->getHeader('Access-Control-Allow-Origin');\n\n if (is_array($acao)) {\n return false;\n }\n\n $acao = trim($acao);\n if ($acao != $origin && ($credentialsFlag || $acao != '*')) {\n return false;\n }\n\n $acac = $response->getHeader('Access-Control-Allow-Credentials');\n if ($credentialsFlag && (is_array($acac) || trim($acac) !== 'true')) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "5cc1b2d153865f0995f42b7b2aa3a635", "score": "0.53575134", "text": "public function verifyRequest(HttpRequest $request) {\n $methods = array_map(\"strtoupper\", $this->getAcceptableMethods());\n return (empty($methods))\n ? true\n : in_array(strtoupper($request->getMethod()), $methods);\n }", "title": "" }, { "docid": "c6472992c967c26c668d5ef76c8a068e", "score": "0.53396666", "text": "public function requestIs(string $methodName): bool\n {\n $method = $this->request->getMethod();\n return $method === strtoupper($methodName);\n }", "title": "" }, { "docid": "21e9e856a98e77e0fc25620e0bf48f03", "score": "0.5339246", "text": "function setCORSHeaders()\n {\n header('Access-Control-Allow-Origin: *');\n header('Access-Control-Allow-Credentials: true');\n header('Access-Control-Allow-Methods: GET,HEAD,OPTIONS,POST,PUT');\n header(\n 'Access-Control-Allow-Headers: Authorization, Access-Control-Allow-Headers, ' .\n 'Origin,Accept, X-Requested-With, Content-Type, '.\n 'Access-Control-Request-Method, Access-Control-Request-Headers'\n );\n }", "title": "" }, { "docid": "f328e7ec0b7926291418ed144876a46c", "score": "0.5333547", "text": "public function isJson() {\n return str_contains($this->header('Content-Type'), '/json');\n }", "title": "" }, { "docid": "d398cec8a9e8d7bd9558800fc781969f", "score": "0.53330857", "text": "function is($type) {\n // Check for different requests.\n switch (strtolower($type)) {\n case 'ajax':\n return !empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest';\n break;\n case 'post':\n return $_SERVER['REQUEST_METHOD'] == 'POST';\n break;\n }\n}", "title": "" }, { "docid": "a820008e2bc40e206495238f9fc77f6b", "score": "0.53179634", "text": "protected function requiresAuth()\n {\n $env = $this->app->environment();\n\n if ($env['REQUEST_METHOD'] == 'OPTIONS'\n || $env['PATH_INFO'] == '/v1/tokens/authenticate'\n || (strpos($env['PATH_INFO'], '/v1/tokens/') === 0 && $env['REQUEST_METHOD'] == 'GET')\n || $env['PATH_INFO'] == '/v1/reset-password'\n || ($env['PATH_INFO'] == '/v1/users' && $env['REQUEST_METHOD'] == 'POST')) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "e2a64eab5e788638e63255338d63999a", "score": "0.53126013", "text": "public function isAjax() {\n return ('XMLHttpRequest' == $this->headers->get('X-Requested-With'));\n }", "title": "" }, { "docid": "1ec245fd874d196627b9b28cef4d5fdc", "score": "0.53096884", "text": "public function testAcceptControlAllowOriginHeader()\n {\n $client = static::createClient();\n\n $crawler = $client->request('POST',\n '/v1/baskets',\n array(\"label\" => self::$_TEST_CONTENT)\n );\n\n $this->assertTrue(\n $client->getResponse()->headers->contains(\n 'Access-Control-Allow-Origin',\n '*'\n )\n );\n\n }", "title": "" }, { "docid": "a9f738b8d7b401b2131622884d6029cd", "score": "0.53037316", "text": "public function isMethod(string $method): bool\n {\n return $this->serverRequest->getMethod() === $method;\n }", "title": "" }, { "docid": "e4b33a6efb5e87c7aa6d6c9f28b61e9d", "score": "0.5301069", "text": "public function voicewp_is_get_request() {\n\t\treturn isset( $_SERVER['REQUEST_METHOD'] )\n\t\t\t&& ( 'GET' === sanitize_text_field( wp_unslash( $_SERVER['REQUEST_METHOD'] ) ) );\n\t}", "title": "" }, { "docid": "9e3057e4849ce1c6fdebc8fbe0fdff0c", "score": "0.52981937", "text": "public function allow_cors($origin) {\n\t\t\t\n\t\t\t// access is granted to self origin\n\t\t\theader('Access-Control-Allow-Origin: ' . $origin);\n\t\t\t\n\t\t}", "title": "" }, { "docid": "30001ef9acc8db413dbf4c52d9f31ace", "score": "0.52903086", "text": "public function isValidHttpMethod($method)\n {\n if ($this->method() === $method || $method === 'ANY') {\n return true; // methods are okay\n }\n\n if (isset($this->all()->_method) && strtoupper($this->all()->_method) === $method) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "cf0c80199f09f9fae1426695c2ca1f5f", "score": "0.52888644", "text": "public function is_xhr()\n\t{\n\t\treturn @$this->env['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest';\n\t}", "title": "" }, { "docid": "9f4c118a3af69f658f7df1477f0b8c58", "score": "0.5265178", "text": "private function isValidRequest()\n {\n return in_array($this->request->getMethod(), static::$accepts);\n }", "title": "" }, { "docid": "72dcce8f5ec5b5ce210023d00f2e663b", "score": "0.5253613", "text": "public function testAcceptControlAllowOriginHeader()\n {\n $client = static::createClient();\n\n $crawler = $client->request('POST',\n $this->itemsUrl,\n array(\"content\" => self::$_TEST_CONTENT)\n );\n\n $this->assertTrue(\n $client->getResponse()->headers->contains(\n 'Access-Control-Allow-Origin',\n '*'\n )\n );\n }", "title": "" }, { "docid": "c69c3ea2cecd36c6c2c751a31ad06c3d", "score": "0.524937", "text": "public function isMethod($method)\n {\n return strtolower($method) === strtolower($this->server['REQUEST_METHOD']);\n }", "title": "" }, { "docid": "03e93d772e18866631220544e59d6d8e", "score": "0.5238242", "text": "public function isXhr()\n {\n return 0 === strcasecmp($this->getHeaderLine(Header::X_REQUESTED_WITH), 'XMLHttpRequest');\n }", "title": "" }, { "docid": "3369b30b53bb8995e679199f11954026", "score": "0.52348393", "text": "public function isHead(): bool\n {\n return $this->getRequestMethod() === self::METHOD_HEAD;\n }", "title": "" }, { "docid": "9ef0e470e51e6730d7a33aa72f5acd5c", "score": "0.5217001", "text": "public function isHead(): bool\n {\n return $this->isMethod('HEAD');\n }", "title": "" }, { "docid": "a941229f404d0833d681e868fc3d68e8", "score": "0.521548", "text": "protected function isRESTRequestAllowed()\n {\n $config = \\XLite\\Core\\Config::getInstance()->XC->RESTAPI;\n $key = \\XLite\\Core\\Request::getInstance()->_key;\n\n return ($config->key && $config->key == $key)\n || (!$this->isWriteMethod() && ($config->key_read && $config->key_read == $key));\n }", "title": "" }, { "docid": "0052c7888aa17bb43f1a419715fa1e7f", "score": "0.52092266", "text": "private function is_allow_mothod_functions() {\n\n\t\tif ( ! method_exists( $this, $this->request_service() ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$allow_funcs = array();\n\t\tswitch ( $this->request_method ) {\n\t\t\tcase 'GET':\n\t\t\t\t$allow_funcs = array( 'user_login', 'get_all_users', 'ping_online_user' );\n\t\t\t\tbreak;\n\t\t\tcase 'PATCH':\n\t\t\t\t$allow_funcs = array( 'ping_online_user' );\n\t\t\t\tbreak;\n\t\t}\n\t\treturn in_array( $this->request_service(), $allow_funcs, true );\n\t}", "title": "" }, { "docid": "bbf3c44cca7a748e0600df955af85090", "score": "0.5208112", "text": "public function isSoapRequested()\n {\n if($this->hasServer('HTTP_SOAPACTION')) {\n return true;\n }\n\n if($this->getServer('CONTENT_TYPE') == 'application/soap+xml') {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "7bfb34ec42f4bd48d6d9193ba414a13c", "score": "0.5208068", "text": "public function isApiRequest()\n\t{\n\t\treturn (count($this->rawRequest) > 0);\n\t}", "title": "" }, { "docid": "977c162efbb9ce6cf5f45729c4416c11", "score": "0.52024484", "text": "public function authorize()\n {\n switch ($this->method()) {\n case 'POST':\n return true;\n case 'GET':\n default:\n {\n return false;\n }\n }\n }", "title": "" }, { "docid": "977c162efbb9ce6cf5f45729c4416c11", "score": "0.52024484", "text": "public function authorize()\n {\n switch ($this->method()) {\n case 'POST':\n return true;\n case 'GET':\n default:\n {\n return false;\n }\n }\n }", "title": "" }, { "docid": "51aa5e1d68230101f54d5505ff4a0a89", "score": "0.52019286", "text": "function is_update_request()\n {\n $needle = ['put', 'patch'];\n\n return in_array(strtolower(app('request')->input('_method')), $needle)\n or in_array(strtolower(app('request')->header('x-http-method-override')), $needle)\n or in_array(strtolower(app('request')->method()), $needle);\n }", "title": "" }, { "docid": "78080cb03d13a28d7e34d839ee9da67f", "score": "0.52009565", "text": "public function authorize()\n {\n if (auth()->check()) {\n switch ($this->getMethod()) {\n case 'post':\n case 'POST':\n return true;\n case 'PUT':\n case 'put':\n case 'DELETE':\n case 'delete':\n $comment = Comment::find($this->route('comment'));\n return $comment && $comment->user_id == $this->authRepository->getAuthId();\n }\n }\n return false;\n }", "title": "" }, { "docid": "7d2826f1189906fab31eb708fc29f5f7", "score": "0.51935905", "text": "public function hasHeader($header);", "title": "" }, { "docid": "e27b017c7b6f1034a9ce2f9e140196da", "score": "0.5191578", "text": "public function isMethodGet() : bool\r\n {\r\n return $this->isMethod(self::HTTP_GET);\r\n }", "title": "" }, { "docid": "645317e69b96a9931e83c07ad0db58b2", "score": "0.51875883", "text": "public function testResourceAllowed() {\n\t\t$headers = array(\n\t\t\tIsolation_Policy::SITE => Isolation_Policy::SITE_SAME_ORIGIN,\n\t\t\tIsolation_Policy::MODE => Isolation_Policy::MODE_NAVIGATE,\n\t\t\tIsolation_Policy::DEST => Isolation_Policy::DEST_DOCUMENT,\n\t\t);\n\t\t$this->assertTrue( $this->resource->is_request_allowed( $headers, null ) );\n\n\t\t$headers = array(\n\t\t\tIsolation_Policy::SITE => Isolation_Policy::SITE_SAME_SITE,\n\t\t\tIsolation_Policy::MODE => Isolation_Policy::MODE_NESTED_NAVIGATE,\n\t\t\tIsolation_Policy::DEST => Isolation_Policy::DEST_DOCUMENT,\n\t\t);\n\t\t$this->assertTrue( $this->resource->is_request_allowed( $headers, null ) );\n\n\t\t$headers = array(\n\t\t\tIsolation_Policy::SITE => Isolation_Policy::SITE_NONE,\n\t\t\tIsolation_Policy::MODE => Isolation_Policy::MODE_NESTED_NAVIGATE,\n\t\t\tIsolation_Policy::DEST => Isolation_Policy::DEST_DOCUMENT,\n\t\t);\n\t\t$this->assertTrue( $this->resource->is_request_allowed( $headers, null ) );\n\n\t\t$headers = array(\n\t\t\tIsolation_Policy::SITE => Isolation_Policy::SITE_CROSS_SITE,\n\t\t\tIsolation_Policy::MODE => Isolation_Policy::MODE_NAVIGATE,\n\t\t\tIsolation_Policy::DEST => Isolation_Policy::DEST_DOCUMENT,\n\t\t);\n\t\t$server = array( 'REQUEST_METHOD' => 'GET' );\n\t\t$this->assertTrue( $this->resource->is_request_allowed( $headers, $server ) );\n\t}", "title": "" }, { "docid": "8144cd10e4eb984767acc8936b6cc66c", "score": "0.5182946", "text": "protected function isApiCall($request)\r\n {\r\n if($this->forceOutput){\r\n return $this->forceOutput==2?true:false;\r\n }\r\n \r\n if($request->wantsJson()){\r\n return true;\r\n }\r\n \r\n return false;\r\n }", "title": "" } ]
725047a392c980c9fee00d5f7ac586a5
Add a unique post meta item.
[ { "docid": "74d95f42fc844f7b65fb678688113868", "score": "0.0", "text": "function test_update_post_meta() {\n\t\t$this->assertIsInt( add_post_meta( $this->post_id, 'unique_update', 'value', true ) );\n\n\t\t// Add two non-unique post meta items.\n\t\t$this->assertIsInt( add_post_meta( $this->post_id, 'nonunique_update', 'value' ) );\n\t\t$this->assertIsInt( add_post_meta( $this->post_id, 'nonunique_update', 'another value' ) );\n\n\t\t// Check they exist.\n\t\t$this->assertSame( 'value', get_post_meta( $this->post_id, 'unique_update', true ) );\n\t\t$this->assertSame( array( 'value' ), get_post_meta( $this->post_id, 'unique_update', false ) );\n\t\t$this->assertSame( 'value', get_post_meta( $this->post_id, 'nonunique_update', true ) );\n\t\t$this->assertSame( array( 'value', 'another value' ), get_post_meta( $this->post_id, 'nonunique_update', false ) );\n\n\t\t// Update them\n\t\t$this->assertTrue( update_post_meta( $this->post_id, 'unique_update', 'new', 'value' ) );\n\t\t$this->assertTrue( update_post_meta( $this->post_id, 'nonunique_update', 'new', 'value' ) );\n\t\t$this->assertTrue( update_post_meta( $this->post_id, 'nonunique_update', 'another new', 'another value' ) );\n\n\t\t// Check they updated.\n\t\t$this->assertSame( 'new', get_post_meta( $this->post_id, 'unique_update', true ) );\n\t\t$this->assertSame( array( 'new' ), get_post_meta( $this->post_id, 'unique_update', false ) );\n\t\t$this->assertSame( 'new', get_post_meta( $this->post_id, 'nonunique_update', true ) );\n\t\t$this->assertSame( array( 'new', 'another new' ), get_post_meta( $this->post_id, 'nonunique_update', false ) );\n\n\t}", "title": "" } ]
[ { "docid": "e398b6519586fe88c4a1ac2b8ed26dae", "score": "0.78339267", "text": "function add_post_meta($post_id, $meta_key, $meta_value, $unique = \\false)\n {\n }", "title": "" }, { "docid": "ad370baae4bd7a75f0c8002dd474fa5b", "score": "0.7254757", "text": "function add_meta($post_id)\n {\n }", "title": "" }, { "docid": "79e7ea50cd9f078a1d5266e5a100c6b3", "score": "0.71257174", "text": "function add_post_meta($term_id, $taxonomy, $meta_key, $meta_value, $unique = false) {\n\n return add_metadata('post', $post_id, $meta_key, $meta_value, $unique);\n}", "title": "" }, { "docid": "77596e78364912f7e11dfd58c71e17a2", "score": "0.70544446", "text": "public function add_meta( $key, $value, $unique = false );", "title": "" }, { "docid": "339f6ffdf4a68f8f5cdcd5bebe9cbb27", "score": "0.7004239", "text": "function carton_add_order_item_meta( $item_id, $meta_key, $meta_value, $unique = false ){\n\treturn add_metadata( 'order_item', $item_id, $meta_key, $meta_value, $unique );\n}", "title": "" }, { "docid": "7eb6d0106c97a71fe8f78d7b56f0c1f6", "score": "0.6904356", "text": "function add($meta = array(), $post_id = 0, $is_main = \\false)\n {\n }", "title": "" }, { "docid": "61a26906dc5cce642f2049418aded9f4", "score": "0.6830471", "text": "function add_metadata($meta_type, $object_id, $meta_key, $meta_value, $unique = \\false)\n {\n }", "title": "" }, { "docid": "4041645729ebb1dee3d1b1cb267c5145", "score": "0.6736915", "text": "function add_site_meta($site_id, $meta_key, $meta_value, $unique = \\false)\n {\n }", "title": "" }, { "docid": "93a6db318e9f623914cbf9a7f9508d4d", "score": "0.673059", "text": "function add_custom_meta() {\n global $post;\n }", "title": "" }, { "docid": "660b8621bdaf85fac0768a25f9108e5b", "score": "0.67232645", "text": "function tf_add_post_meta($post_id, $meta_key, $meta_value, $unique = false) {\r\n // make sure meta is added to the post, not a revision\r\n if ( $the_post = wp_is_post_revision($post_id) )\r\n $post_id = $the_post;\r\n\r\n $meta_type = 'post';\r\n $object_id = $post_id;\r\n\r\n if ( !$meta_type || !$meta_key )\r\n return false;\r\n\r\n if ( !$object_id = absint($object_id) )\r\n return false;\r\n\r\n if ( ! $table = _get_meta_table($meta_type) )\r\n return false;\r\n\r\n global $wpdb;\r\n\r\n $column = esc_sql($meta_type . '_id');\r\n\r\n // expected_slashed ($meta_key)\r\n // $meta_key = stripslashes($meta_key); // this was the trouble !\r\n // $meta_value = stripslashes_deep($meta_value); // this was the trouble !\r\n $meta_value = sanitize_meta( $meta_key, $meta_value, $meta_type );\r\n\r\n $check = apply_filters( \"add_{$meta_type}_metadata\", null, $object_id, $meta_key, $meta_value, $unique );\r\n if ( null !== $check )\r\n return $check;\r\n\r\n if ( $unique && $wpdb->get_var( $wpdb->prepare(\r\n \"SELECT COUNT(*) FROM $table WHERE meta_key = %s AND $column = %d\",\r\n $meta_key, $object_id ) ) )\r\n return false;\r\n\r\n $_meta_value = $meta_value;\r\n $meta_value = maybe_serialize( $meta_value );\r\n\r\n do_action( \"add_{$meta_type}_meta\", $object_id, $meta_key, $_meta_value );\r\n\r\n $result = $wpdb->insert( $table, array(\r\n $column => $object_id,\r\n 'meta_key' => $meta_key,\r\n 'meta_value' => $meta_value\r\n ) );\r\n\r\n if ( ! $result )\r\n return false;\r\n\r\n $mid = (int) $wpdb->insert_id;\r\n\r\n wp_cache_delete($object_id, $meta_type . '_meta');\r\n\r\n do_action( \"added_{$meta_type}_meta\", $mid, $object_id, $meta_key, $_meta_value );\r\n\r\n return $mid;\r\n }", "title": "" }, { "docid": "41c2890b501da463c6b3937088000885", "score": "0.6481963", "text": "public function add_meta( &$object, $meta );", "title": "" }, { "docid": "cce4ee56fc1d87e7490e1ae816b13720", "score": "0.63703424", "text": "public function addMeta(Meta $meta) {\n $this->meta[$meta->getName()] = $meta;\n }", "title": "" }, { "docid": "a830e6b551795086e4ab4bfd9125b23e", "score": "0.6364269", "text": "function add_post_meta($post_id) {\n\t\t\tglobal $wpdb;\n\t\t\tif(isset($_POST['original_publish'])||isset($_POST['save'])){\n\t\t\t\tforeach($this->english_meta_keys as $key){\n\t\t\t\t\tupdate_post_meta($post_id, $key, $_POST[$key]);\n\t\t\t\t}\n\t\t\t\tforeach($this->arabic_meta_keys as $key2){\n\t\t\t\t\tupdate_post_meta($post_id, $key2, $_POST[$key2]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tforeach($_POST as $key => $value){\n\t\t\t\t\tif(preg_match('/_IPCDate.*/', $key) && $key != '_IPCDateCount'){\n\t\t\t\t\t\t$n = substr($key, strpos($key, \"Date\")+4);\n\t\t\t\t\t\n\t\t\t\t\t\tforeach($this->dates_meta_keys as $key3){\n\t\t\t\t\t\t\t$k = $key3.$n;\n\t\t\t\t\t\t\tupdate_post_meta($post_id, $k, $_POST[$k]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tupdate_post_meta($post_id, '_IPCDateCount', $_POST['_IPCDateCount']);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "9b4c511791d36345878b95a97864aa92", "score": "0.6351754", "text": "private function _add_post_meta( $post_id, $data ) {\n\n foreach ($data as $meta_key => $meta_value) {\n update_post_meta( $post_id, $meta_key, $meta_value );\n }\n\n }", "title": "" }, { "docid": "ea23dd4d2cec528ad0b70153216c4086", "score": "0.62959677", "text": "function add_user_meta($user_id, $meta_key, $meta_value, $unique = \\false)\n {\n }", "title": "" }, { "docid": "6034b7e40e7d4c1a9e905e57e55088ba", "score": "0.6295549", "text": "function add_post_term_meta( int $post_id, int $term_id, string $meta_key, $meta_value, bool $unique = false ) {\n\t\treturn \\wpinc\\meta\\post_term_meta\\add_post_term_meta( $post_id, $term_id, $meta_key, $meta_value, $unique );\n\t}", "title": "" }, { "docid": "f5b2a412a1617dc78dbba3fdcac95c55", "score": "0.6159079", "text": "public static function add_meta( $object_id, $meta_key, $meta_value, $unique = false ) {\n\n\t\tadd_term_meta( $object_id, $meta_key, $meta_value, $unique );\n\t}", "title": "" }, { "docid": "18c81814485280462d8cebc4817a46dc", "score": "0.6150727", "text": "public function add_meta( &$object, $meta ) {\n\t\t}", "title": "" }, { "docid": "a0e7dc47017ecbac44649e0abaef59bf", "score": "0.6133715", "text": "public function add(Post $post);", "title": "" }, { "docid": "a0e7dc47017ecbac44649e0abaef59bf", "score": "0.6133715", "text": "public function add(Post $post);", "title": "" }, { "docid": "7bba077f925f8bd9ccad250b278cd02c", "score": "0.61258435", "text": "function add_comment_meta($comment_id, $meta_key, $meta_value, $unique = \\false)\n {\n }", "title": "" }, { "docid": "b52b0daba0e2dc9d383f62c0e1207e3e", "score": "0.6096295", "text": "public static function add_meta_box() {\n add_meta_box(\n 'link_meta', // Unique ID\n 'Properties', // Box title\n [self::class, 'meta_html'], // Content callback, must be of type callable\n \"link\" // Post type\n );\n }", "title": "" }, { "docid": "a106080d62dec834b326db6e4ec82bf1", "score": "0.6078375", "text": "function sm_custom_meta() {\n\tadd_meta_box('sm_meta', __( 'Post Destacado', 'sm-textdomain' ), 'sm_meta_callback', 'post' );\n}", "title": "" }, { "docid": "a01dad3d48114ff2ac7f71365682a86f", "score": "0.6077537", "text": "public function custom_meta_add() {\n\t\tif( !$this->options->show_on || in_array(get_the_id(), $this->options->show_on ) ){\n\t\t\tforeach( $this->options->display_on as $post_type ){\n\t\t\t\tadd_meta_box(\n\t\t\t\t\t$this->unique_key, // Unique Key\n\t\t\t\t\t$this->options->title ? esc_html__( $this->options->title ) : 'Related Content', //Title\n\t\t\t\t\tarray(&$this, 'custom_meta_render' ), // Callback (builds html)\n\t\t\t\t\t$post_type, // Post type\n\t\t\t\t\t$this->options->context, // Context\n\t\t\t\t\t$this->options->priority, // Priority\n\t\t\t\t\t$callback_args = null\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "66718d5b15c8ad7473ba9a7da07e72fd", "score": "0.59616095", "text": "function register_post_metabox( $id,$title,$post_type) {\r\n\t\t$this->has_post_meta = true;\r\n\t\tadd_meta_box( \r\n\t\t\t$id, \r\n\t\t\t$title, \r\n\t\t\tarray(&$this,'post_meta_builder'), \r\n\t\t\t$post_type, \r\n\t\t\t'normal', \r\n\t\t\t'high', \r\n\t\t\t$this->postmeta[$post_type][$id] \r\n\t\t);\r\n\t}", "title": "" }, { "docid": "cb254d5dce5ee3f407c27773da191f47", "score": "0.594577", "text": "function wpbs_add_booking_meta($booking_id, $meta_key, $meta_value, $unique = false)\n{\n\n return wp_booking_system()->db['bookingmeta']->add($booking_id, $meta_key, $meta_value, $unique);\n\n}", "title": "" }, { "docid": "3e800ca6010f5454622434ae951a51ca", "score": "0.59307", "text": "function idem_pop_up_add_meta_box()\n{\n add_meta_box(\n 'idem-pop-up-meta-box', // id, used as the html id att\n __( 'Idem Pop Up' ), // meta box title, like \"Page Attributes\"\n 'idem_pop_up_meta_box_cb', // callback function, spits out the content\n 'page', // post type or page. We'll add this to pages only\n 'side', // context (where on the screen)\n 'high' // priority, where should this go in the context?\n );\n}", "title": "" }, { "docid": "91a376ee4e4baac76e2e580a09c9a264", "score": "0.59130967", "text": "function test_unique_postmeta() {\n\t\t$this->assertIsInt( add_post_meta( $this->post_id, 'unique', 'value', true ) );\n\n\t\t// Check unique is enforced\n\t\t$this->assertFalse( add_post_meta( $this->post_id, 'unique', 'another value', true ) );\n\n\t\t// Check it exists.\n\t\t$this->assertSame( 'value', get_post_meta( $this->post_id, 'unique', true ) );\n\t\t$this->assertSame( array( 'value' ), get_post_meta( $this->post_id, 'unique', false ) );\n\n\t\t//Fail to delete the wrong value\n\t\t$this->assertFalse( delete_post_meta( $this->post_id, 'unique', 'wrong value' ) );\n\n\t\t//Delete it\n\t\t$this->assertTrue( delete_post_meta( $this->post_id, 'unique', 'value' ) );\n\n\t\t// Check it is deleted.\n\t\t$this->assertSame( '', get_post_meta( $this->post_id, 'unique', true ) );\n\t\t$this->assertSame( array(), get_post_meta( $this->post_id, 'unique', false ) );\n\n\t}", "title": "" }, { "docid": "90c572b684ad95c4a4ad1b8f41841514", "score": "0.59049606", "text": "function coolRahulSoni_meta_box_add()\n{\n add_meta_box( 'my-meta-box-id', 'My First Meta Box', 'cd_meta_box_cb', 'post', 'normal', 'high' );\n}", "title": "" }, { "docid": "10ad1df161582be8c9102ab877451f01", "score": "0.5902676", "text": "public function add($item);", "title": "" }, { "docid": "10ad1df161582be8c9102ab877451f01", "score": "0.5902676", "text": "public function add($item);", "title": "" }, { "docid": "6dffcf948e62bc830dce869bf0c25a0f", "score": "0.59011203", "text": "function create_meta_post_box() {\n\tif ( function_exists('add_meta_box') ) {\n\t\tadd_meta_box( 'new-meta-post-boxes', '<div class=\"icon-small\"></div> '.PEXETO_THEMENAME.' POST SETTINGS', 'new_meta_post_boxes', 'post', 'normal', 'high' );\n\t}\n}", "title": "" }, { "docid": "87aed961231bce9a7dab0257174cca21", "score": "0.5890652", "text": "public function add_meta() {\n\n\t\tglobal $woocommerce, $post;\n\t\t// Text Field\n\t\twoocommerce_wp_text_input(\n\t\t\tarray(\n\t\t\t\t'id' => 'author',\n\t\t\t\t'label' => __( 'Author(s)', 'woocommerce' ),\n\t\t\t\t'placeholder' => 'author(s)',\n\t\t\t\t'desc_tip' => 'true',\n\t\t\t\t'description' => __( 'Author Name(s)', 'woocommerce' )\n\t\t\t)\n\t\t);\n\t\twoocommerce_wp_text_input(\n\t\t\tarray(\n\t\t\t\t'id' => 'release_date',\n\t\t\t\t'label' => __( 'Release Date', 'woocommerce' ),\n\t\t\t\t'placeholder' => date( \"n/j/Y\" ),\n\t\t\t\t'desc_tip' => 'true',\n\t\t\t\t'description' => __( 'Release Date', 'woocommerce' )\n\t\t\t)\n\t\t);\n\t\twoocommerce_wp_text_input(\n\t\t\tarray(\n\t\t\t\t'id' => 'preview_file',\n\t\t\t\t'label' => __( 'Preview File (look inside)', 'woocommerce' ),\n\t\t\t\t'desc_tip' => 'true',\n\t\t\t\t'description' => __( 'Upload a PDF file sample', 'woocommerce' )\n\t\t\t)\n\t\t);\n\t\techo( '<input type=\"button\" class=\"button custom_media\" name=\"preview_file_button\" id=\"preview_file_button\" value=\"Upload/Browse\"/>' );\n\t\twoocommerce_wp_checkbox(\n\t\t\tarray(\n\t\t\t\t'id' => 'local_product',\n\t\t\t\t'label' => __( 'Local Product', 'woocommerce' ),\n\t\t\t\t'desc_tip' => 'true',\n\t\t\t\t'description' => __( '(not Longleaf)', 'woocommerce' ),\n\t\t\t\t'cbvalue' => '1'\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "c7b267fa3abc6018b2362e300b76c699", "score": "0.58898824", "text": "function m_custom_meta() {\r\n add_meta_box( 'sm_meta', __( 'Featured Posts', 'sm-textdomain' ), 'sm_meta_callback', 'post' );\r\n add_meta_box( 'mm_meta', __( 'Main Posts', 'sm-textdomain' ), 'mm_meta_callback', 'post' );\r\n\r\n}", "title": "" }, { "docid": "3c9960235f118f39a83a25448474d9fc", "score": "0.58861333", "text": "public function add($item) {\n $this->items[$item->id()] = $item;\n }", "title": "" }, { "docid": "cf0343b41927c32d92322c4d0f97c54d", "score": "0.58787376", "text": "public static function save_simple_social_meta_meta_box( $post_id, $post ) {\n\n\t\t/* Verify the nonce before proceeding. */\n\t\tif ( !isset( $_POST['simple-social-meta-meta-box-nonce'] ) || !wp_verify_nonce( $_POST['simple-social-meta-meta-box-nonce'], basename( __FILE__ ) ) )\n\t\t\treturn $post_id;\n\n\t\t/* Get the post type object. */\n\t\t$post_type = get_post_type_object( $post->post_type );\n\n\t\t/* Check if the current user has permission to edit the post. */\n\t\tif ( !current_user_can( $post_type->cap->edit_post, $post_id ) )\n\t\t\treturn $post_id;\n\n\t\t$meta = array(\n\t\t\t'ssm-title' => strip_tags( $_POST['ssm-title'] ),\n\t\t\t'ssm-site-name' => strip_tags( $_POST['ssm-site-name'] ),\n\t\t\t'ssm-description' => strip_tags( $_POST['ssm-description'] ),\n\t\t\t'ssm-url' => strip_tags( $_POST['ssm-url'] ),\n\t\t\t'ssm-image' => strip_tags( $_POST['ssm-image'] ),\n\t\t\t'ssm-type' => strip_tags( $_POST['ssm-type'] ),\n\t\t\t'ssm-locale' => strip_tags( $_POST['ssm-locale'] )\n\t\t);\n\n\t\tforeach ( $meta as $meta_key => $new_meta_value ) {\n\n\t\t\t/* Get the meta value of the custom field key. */\n\t\t\t$meta_value = get_post_meta( $post_id, '_' . $meta_key , true );\n\n\t\t\t/* If there is no new meta value but an old value exists, delete it. */\n\t\t\tif ( '' == $new_meta_value && $meta_value )\n\t\t\t\tdelete_post_meta( $post_id, '_' . $meta_key , $meta_value );\n\n\t\t\t/* If a new meta value was added and there was no previous value, add it. */\n\t\t\telseif ( $new_meta_value && '' == $meta_value )\n\t\t\t\tadd_post_meta( $post_id, '_' . $meta_key , $new_meta_value, true );\n\n\t\t\t/* If the new meta value does not match the old value, update it. */\n\t\t\telseif ( $new_meta_value && $new_meta_value != $meta_value )\n\t\t\t\tupdate_post_meta( $post_id, '_' . $meta_key , $new_meta_value );\n\t\t}\n\t}", "title": "" }, { "docid": "c26774afe380b6aa266c031eb106d1c0", "score": "0.58628273", "text": "public function add_meta( &$object, $meta ) {\n\t\t// TODO: Implement add_meta() method.\n\t}", "title": "" }, { "docid": "8fa96d9a84602e86f6bd0cca23adfe75", "score": "0.58558995", "text": "function register_post_field($args) {\r\n\t\t$this->postmeta[ $args['post_type'] ][ $args['section'] ][ $args['id'] ] = $args;\r\n\t}", "title": "" }, { "docid": "30b6ede1d7ccc870280d7ec426c5169a", "score": "0.5841088", "text": "public function kiwip_add_meta_box(){\t\t\t\n\t\tadd_meta_box(\n\t\t\t$this->id,\n\t\t\t$this->title,\n\t\t\tarray(&$this, 'kiwip_metabox_callback'),\n\t\t\t$this->cpt_name,\n\t\t\t$this->context,\n\t\t\t$this->priority\n\t\t);\n\t}", "title": "" }, { "docid": "0e060ce1a35449223b7734e172f3321d", "score": "0.58387876", "text": "function wp_create_initial_post_meta()\n {\n }", "title": "" }, { "docid": "4473613654b334311dba7280307dcb82", "score": "0.58212084", "text": "public function addMeta($key, $value)\n {\n return add_user_meta($this->getID(), $key, $value);\n }", "title": "" }, { "docid": "4320b2cfb0b6ad269d47e35016f032e8", "score": "0.5818909", "text": "function postmeta_insert_handler( $meta_id, $post_id, $meta_key, $meta_value='' ) {\n\t\tif ( in_array( $meta_key, $this->get_post_meta_name_ignore() ) )\n\t\t\treturn;\t\n\n\t\t$this->add_ping( 'db', array( 'postmeta' => $meta_id ) );\n\t}", "title": "" }, { "docid": "a6a73acb11110893c44877dae583b67f", "score": "0.5808948", "text": "public function addMeta($key, $value)\n {\n $this->meta[$key] = $value;\n }", "title": "" }, { "docid": "33a549d6e6c957a2711e1a564cd02527", "score": "0.57905877", "text": "function wck_add_meta(){\n\t\tparent::wck_add_meta();\n\t}", "title": "" }, { "docid": "f7a7c02f5b23130090c3fe71d2477f91", "score": "0.5782362", "text": "public function add($info, $meta)\r\n {\r\n\r\n }", "title": "" }, { "docid": "200ed5234ed19cb78571ba1a8f584850", "score": "0.5774694", "text": "function affwp_add_referral_meta( $referral_id, $meta_key = '', $meta_value, $unique = false ) {\n\treturn affiliate_wp()->referral_meta->add_meta( $referral_id, $meta_key, $meta_value, $unique );\n}", "title": "" }, { "docid": "f051b97461fd086d80c456401ba7ef23", "score": "0.5757398", "text": "function insert_wp_postmeta($wpdb, $id, $postmeta){\n $table = $wpdb->prefix.\"postmeta\";\n $class = get_id_post_type($wpdb, 'class', $postmeta['class']);\n $rul = get_id_post_type($wpdb, 'restricteduselicence', $postmeta['rul']);\n $pvp = get_id_post_type($wpdb, 'plantvariety', $postmeta['pvp']);\n $patent = get_id_post_type($wpdb, 'patent', $postmeta['patent']);\n $patent_number = get_id_post_type($wpdb, 'patentnumber', $postmeta['patent_number']);\n $patent_number_link = get_id_post_type($wpdb, 'patentnumberlink', $postmeta['patent_number_link']);\n \n add_post_meta($id, 'class', $class[0]->id);\n add_post_meta($id, 'restricted_use_licence', $rul[0]->id);\n add_post_meta($id, 'plant_variety_protection', $pvp[0]->id);\n add_post_meta($id, 'pvp_number', $postmeta['pvp_number']);\n add_post_meta($id, 'pdf_link', $postmeta['pdf_link']);\n add_post_meta($id, 'patent', $postmeta['patent']);\n add_post_meta($id, 'patent_number', $postmeta['patent_number']);\n add_post_meta($id, 'patent_number_link', $postmeta['patent_number_link']); \n}", "title": "" }, { "docid": "1d81019b194f9a0273935541227c02ca", "score": "0.57461494", "text": "function ilusix_my_custom_meta_box() {\n global $myMetaBoxPostTypes;\n\n foreach($myMetaBoxPostTypes as $postType) {\n add_meta_box(\n 'my_custom_meta_box_identifier' . '-' . $postType,\n 'Meta box title',\n 'ilusix_my_custom_meta_box_callback',\n $postType,\n 'normal',\n 'default'\n );\n }\n}", "title": "" }, { "docid": "f8672190884115cd3e8f0b5527a077c1", "score": "0.5739735", "text": "function edd_duplicate_post_meta($id, $new_id) {\n\tglobal $wpdb;\n\t$post_meta_infos = $wpdb->get_results(\"SELECT meta_key, meta_value FROM $wpdb->postmeta WHERE post_id=$id\");\n\n\tif (count($post_meta_infos)!=0) {\n\t\t$sql_query = \"INSERT INTO $wpdb->postmeta (post_id, meta_key, meta_value) \";\n\t\tforeach ($post_meta_infos as $meta_info) {\n\t\t\t$meta_key = $meta_info->meta_key;\n\t\t\t$meta_value = addslashes($meta_info->meta_value);\n\t\t\t$sql_query_sel[]= \"SELECT $new_id, '$meta_key', '$meta_value'\";\n\t\t}\n\t\t$sql_query.= implode(\" UNION ALL \", $sql_query_sel);\n\t\t$wpdb->query($sql_query);\n\t}\n}", "title": "" }, { "docid": "f0d7fc0cf72954d863ef7a1d2cfed4f3", "score": "0.5734896", "text": "private function addMetaItemSingle( \\Aimeos\\MShop\\Common\\Item\\Iface $item, array &$expires, array &$tags, $tagAll )\n\t{\n\t\t$domain = str_replace( '/', '_', $item->getResourceType() ); // maximum compatiblity\n\n\t\tif( $tagAll === true ) {\n\t\t\t$tags[] = $domain . '-' . $item->getId();\n\t\t} else {\n\t\t\t$tags[] = $domain;\n\t\t}\n\n\t\tif( $item instanceof \\Aimeos\\MShop\\Common\\Item\\Time\\Iface && ( $date = $item->getDateEnd() ) !== null ) {\n\t\t\t$expires[] = $date;\n\t\t}\n\t}", "title": "" }, { "docid": "910b65df658329bc8f23b40d4abfb70b", "score": "0.57256395", "text": "function add_term_meta( $term_id, $meta_key, $meta_value, $unique = false ) {\n\treturn add_metadata( 'taxonomy', $term_id, $meta_key, $meta_value, $unique );\n}", "title": "" }, { "docid": "85ad61b908d559b39d88eb355687cde5", "score": "0.57125676", "text": "public static function add_meta_boxes_post($post) {\n add_meta_box(\"medium\", \"Medium\", array(\"Medium_Admin\", \"meta_box_callback\"),\n null, \"side\", \"high\");\n }", "title": "" }, { "docid": "6596e6460ebad7ae70054011ad9412ef", "score": "0.5705394", "text": "function meta($name, $content=\"\") {\n\t\t$this->metas[] = array('name' => $name, 'content' => $content);\n\t}", "title": "" }, { "docid": "3d3d54c7bc445cf038fa26cfcb7223e7", "score": "0.5699296", "text": "function fzproject_meta_box()\n{\n add_meta_box('fzproject_meta_box', 'New portfolio item', 'display_fzproject_meta_box', 'fzproject_post', 'normal', 'high');\n}", "title": "" }, { "docid": "63afc788e954f00b0705eb20d256fc8f", "score": "0.5687032", "text": "function add_meta_box() {\n global $post;\n\n $post_types = get_post_types( array( 'public' => true ) );\n\n if ( !empty( $post ) ) {\n if ( $this->check_user_analytics_exist( $post ) ) {\n foreach ( $post_types as $post_type ) {\n add_meta_box( 'show_user_analytics', __( 'Post Author Analytics Info', 'wpuf-pro' ), array( $this, 'render_meta_box_content' ), $post_type, 'advanced', 'high' );\n }\n }\n }\n }", "title": "" }, { "docid": "7ae7ae66acacd075f68bc6188acc41a4", "score": "0.5684602", "text": "function register($item)\n {\n if (is_a($item, 'DVD') || is_a($item, 'Magazine') || is_a($item, 'Book')) {\n $item->setID(sizeof($this->collection) + 1);\n array_push($this->collection, $item);\n }\n }", "title": "" }, { "docid": "82c22f4d49cc5ff3e610776bd166011b", "score": "0.5677541", "text": "public function add($item, $id = null);", "title": "" }, { "docid": "520332424077d7aff0e724beb17fedc9", "score": "0.56750906", "text": "function generate_do_post_meta_item($item)\n{\n if ('date' === $item) {\n $date = apply_filters('generate_post_date', true);\n\n $time_string = '';\n\n if (get_the_time('U') !== get_the_modified_time('U')) {\n $time_string = '<time class=\"updated\" datetime=\"%3$s\" itemprop=\"dateModified\">%4$s</time>' . $time_string;\n } else {\n $time_string = '<time class=\"entry-date published\" datetime=\"%1$s\" itemprop=\"datePublished\">%2$s</time>' . $time_string;\n }\n\n $time_string = sprintf($time_string,\n esc_attr(get_the_date('c')),\n esc_html(get_the_date()),\n esc_attr(get_the_modified_date('c')),\n esc_html(get_the_modified_date())\n );\n\n // If our date is enabled, show it.\n if ($date) {\n echo apply_filters('generate_post_date_output',\n sprintf( // WPCS: XSS ok, sanitization ok.\n '<span class=\"posted-on\">%1$s<a href=\"%2$s\" title=\"%3$s\" rel=\"bookmark\">%4$s</a></span>&nbsp;',\n apply_filters('generate_inside_post_meta_item_output', '', 'date'),\n esc_url(get_permalink()),\n esc_attr(get_the_time()),\n $time_string\n ),\n $time_string);\n }\n }\n\n if ('author' === $item) {\n $author = apply_filters('generate_post_author', true);\n\n if ($author) {\n echo apply_filters('generate_post_author_output',\n sprintf('<span class=\"byline\">%1$s<span class=\"author vcard\" %5$s><a class=\"url fn n\" href=\"%2$s\" title=\"%3$s\" rel=\"author\" itemprop=\"url\"><span class=\"author-name\" itemprop=\"name\">%4$s</span></a></span></span> ',\n apply_filters('generate_inside_post_meta_item_output', '', 'author'),\n esc_url(get_author_posts_url(get_the_author_meta('ID'))),\n /* translators: 1: Author name */\n\n esc_attr(sprintf(__('View all posts by %s', 'generatepress'), get_the_author())),\n\n esc_html(get_the_author()),\n generate_get_microdata('post-author')\n )\n );\n }\n }\n\n if ('categories' === $item) {\n $categories = apply_filters('generate_show_categories', true);\n\n $term_separator = apply_filters('generate_term_separator', _x(', ', 'Used between list items, there is a space after the comma.', 'generatepress'), 'categories');\n $categories_list = get_the_category_list($term_separator);\n\n if ($categories_list && $categories) {\n echo apply_filters('generate_category_list_output',\n sprintf('<span class=\"cat-links\">%3$s<span class=\"screen-reader-text\">%1$s </span>%2$s</span> ', // WPCS: XSS ok, sanitization ok.\n esc_html_x('Categories', 'Used before category names.', 'generatepress'),\n $categories_list,\n apply_filters('generate_inside_post_meta_item_output', '', 'categories')\n )\n );\n }\n }\n\n if ('tags' === $item) {\n $tags = apply_filters('generate_show_tags', true);\n\n $term_separator = apply_filters('generate_term_separator', _x(', ', 'Used between list items, there is a space after the comma.', 'generatepress'), 'tags');\n $tags_list = get_the_tag_list('', $term_separator);\n\n if ($tags_list && $tags) {\n echo apply_filters('generate_tag_list_output',\n sprintf('<span class=\"tags-links\">%3$s<span class=\"screen-reader-text\">%1$s </span>%2$s</span> ', // WPCS: XSS ok, sanitization ok.\n esc_html_x('Tags', 'Used before tag names.', 'generatepress'),\n $tags_list,\n apply_filters('generate_inside_post_meta_item_output', '', 'tags')\n )\n );\n }\n }\n\n if ('comments-link' === $item) {\n $comments = apply_filters('generate_show_comments', true);\n\n if ($comments && !post_password_required() && (comments_open() || get_comments_number())) {\n echo '<span class=\"comments-link\">';\n echo apply_filters('generate_inside_post_meta_item_output', '', 'comments-link');\n comments_popup_link(__('Leave a comment', 'generatepress'), __('1 Comment', 'generatepress'), __('% Comments', 'generatepress'));\n echo '</span> ';\n }\n }\n\n /**\n * generate_post_meta_items hook.\n *\n * @since 2.4\n */\n do_action('generate_post_meta_items', $item);\n}", "title": "" }, { "docid": "98ddafbd2851719969b595d7995a53e4", "score": "0.5670997", "text": "function add() {\n foreach ($this->_meta_box['pages'] as $page) {\n add_meta_box($this->_meta_box['id'], $this->_meta_box['title'], array(&$this, 'show'), $page, $this->_meta_box['context'], $this->_meta_box['priority']);\n }\n }", "title": "" }, { "docid": "98ddafbd2851719969b595d7995a53e4", "score": "0.5670997", "text": "function add() {\n foreach ($this->_meta_box['pages'] as $page) {\n add_meta_box($this->_meta_box['id'], $this->_meta_box['title'], array(&$this, 'show'), $page, $this->_meta_box['context'], $this->_meta_box['priority']);\n }\n }", "title": "" }, { "docid": "15f1ba47bdb270f3706044e78eabb73b", "score": "0.56703734", "text": "function add($item);", "title": "" }, { "docid": "d181b9399a71dbbff41a06b5e76b229c", "score": "0.56636214", "text": "function add() {\n\t\tforeach ($this->_meta_box['pages'] as $page) {\n\t\t\tadd_meta_box($this->_meta_box['id'], $this->_meta_box['title'], array(&$this, 'show'), $page, $this->_meta_box['context'], $this->_meta_box['priority']);\n\t\t}\n\t}", "title": "" }, { "docid": "add97d63dee5e6375d89d9d4647e9dc9", "score": "0.5662913", "text": "public function addDynamicMetaFields($type, $post)\n {\n // Add the fields\n $this->addItemFields($post, true);\n }", "title": "" }, { "docid": "55574a16b0640f733524554532ab5e45", "score": "0.5662313", "text": "public function register_custom_post() {\n foreach ( $this->posts as $key => $value ) {\n register_post_type( $key, $value );\n }\n }", "title": "" }, { "docid": "05b47d96b37469e7e936a83185587a28", "score": "0.56604207", "text": "function update_custom_meta( $postID, $value, $field ) {\n if ( ! get_post_meta( $postID, $field ) ) {\n add_post_meta( $postID, $field, $value );\n } else {\n // or to update existing meta\n update_post_meta( $postID, $field, $value );\n }\n}", "title": "" }, { "docid": "b6627618fb85757ed84c58259c1dd53a", "score": "0.56523275", "text": "public function addMeta($name, $content) {\n\t\t\n\t\t\t$newMeta = new StdClass();\n\t\t\t$newMeta->name = $name;\n\t\t\t$newMeta->content = $content;\n\t\t\t\n\t\t\tforeach ($this->_meta as $meta) {\n\t\t\t\tif ($meta->name == $name) {\n\t\t\t\t\t$meta->content = $content;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$this->_meta[] = $newMeta;\n\t\t\t\n\t\t}", "title": "" }, { "docid": "2b7b8f9bb27b4712e5578d7a5564905c", "score": "0.5647231", "text": "function sample_add_metabox() {\n\tadd_meta_box(\n\t\t'post-notes',\n\t\t__( 'Post Notes', 'textdomain' ),\n\t\t'sample_render_metabox',\n\t\t'post',\n\t\t'normal',\n\t\t'default'\n\t);\n}", "title": "" }, { "docid": "612c751abee705cb7ccebc0b05d31d28", "score": "0.564656", "text": "function savePostMeta($post_id)\n\t\t{\n\t\t\t$dataMetas = self::getDataMetas();\n\n\t\t\tforeach ($dataMetas as $key => $meta) {\n\t\t\t\t$nameMeta = $meta['_name_meta_box'];\n\t\t\t\tif ( isset($_POST[$nameMeta]) ) { \n\t\t\t\t\tupdate_post_meta( $post_id, $nameMeta, $_POST[$nameMeta] );\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}", "title": "" }, { "docid": "94603f10d592d82feab65df7a43d937a", "score": "0.56454885", "text": "public function add($item)\n {\n $this->manuallyAddedData[] = $item;\n }", "title": "" }, { "docid": "bacbfbd7e24da0326d0faccceda2f174", "score": "0.5641628", "text": "function add_term_meta( $term_id, $meta_key, $meta_value, $unique = false ) {\r\n\r\n if ( current_theme_supports( 'extended-taxonomies' ) ) {\r\n return add_post_meta( get_post_for_extended_term( $term_id )->ID, $meta_key, $meta_value, $unique );\r\n }\r\n\r\n return add_metadata( 'taxonomy', $term_id, $meta_key, $meta_value, $unique );\r\n }", "title": "" }, { "docid": "2f8e8340a9f6815903856b5c933447df", "score": "0.5640466", "text": "public function amazon_identifier_add_meta_box() {\n\t\tadd_meta_box(\n\t\t\t'amazon-identifier-post-class', \t\t\t\t\t\t// Unique ID\n\t\t\tesc_html__( 'Amazon Identifier', 'amazon_identifier' ), // Title\n\t\t\tarray( $this, 'amazon_identifier_meta_box' ), // Callback function\n\t\t\t'tribe_events', \t\t\t\t\t\t// Admin page (or post type)\n\t\t\t'side', \t\t\t\t\t\t\t\t// Context\n\t\t\t'default' \t\t\t\t\t\t\t\t// Priority\n\t\t);\n\n\t\tadd_meta_box(\n\t\t\t'amazon-product-image-url-post-class', \t\t\t\t\t\t// Unique ID\n\t\t\tesc_html__( 'Amazon Product Image URL', 'amazon_product_image_url' ), // Title\n\t\t\tarray( $this, 'amazon_product_image_url_meta_box' ), // Callback function\n\t\t\t'tribe_events', \t\t\t\t\t\t// Admin page (or post type)\n\t\t\t'side', \t\t\t\t\t\t\t\t// Context\n\t\t\t'default' \t\t\t\t\t\t\t\t// Priority\n\t\t);\n\t}", "title": "" }, { "docid": "26bfbc5e6099d207df8ab2826857c5e2", "score": "0.5636736", "text": "public static function add_meta_box() {\n\t\tadd_meta_box( 'sponsor-meta', __( 'Sponsor Meta', self::$text_domain ), array( __CLASS__, 'do_meta_box' ), self::$post_type_name , 'normal', 'high' );\n\t}", "title": "" }, { "docid": "86180f902049d025415e631e41eedf1e", "score": "0.56366956", "text": "public function register_meta_box( $post ) {\n\t\tadd_meta_box(\n\t\t\t$this->meta_box['id'],\n\t\t\t$this->meta_box['title'],\n\t\t\t[$this, 'render_meta_box'],\n\t\t\t$this->post_type,\n\t\t\t$this->meta_box['context'],\n\t\t\t$this->meta_box['priority']\n\t\t);\n\t}", "title": "" }, { "docid": "d2f17505886be967d392f22c0d947b17", "score": "0.5634992", "text": "public function add_meta($name, $content = null)\n {\n if (is_array($name))\n {\n foreach ($name as $key => $val)\n {\n $key = htmlspecialchars($key, ENT_QUOTES, 'UTF-8');\n $val = htmlspecialchars($val, ENT_QUOTES, 'UTF-8');\n $this->metatag[$key] = $val;\n }\n }\n else\n {\n $name = htmlspecialchars($name, ENT_QUOTES, 'UTF-8');\n $content = htmlspecialchars($content, ENT_QUOTES, 'UTF-8');\n $this->metatag[$name] = $content;\n }\n return $this;\n }", "title": "" }, { "docid": "398fc915e55f6cafed4c6f65c0f5b858", "score": "0.5633041", "text": "public function add(string $key, mixed $item): self;", "title": "" }, { "docid": "68db0c0901beba695ddd0c427cbe042d", "score": "0.5627163", "text": "public static function add_item( $opts )\n\t{\n\t\tif( empty($opts) )\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tforeach($opts AS $key => $value)\n\t\t{\n\t\t\t$meta_data[] = array('data_key'=>$key, 'data_value'=>$value);\n\t\t}\n\t\t\n\t\t$db_object = self::_get_db_object();\n\t\t$opts['date_added'] = $db_object->sql_term( 'NOW()' );\n\t\t$item_id = $db_object->insert_records( ItemManager::get_tables_prefix(). \"items\", $opts );\n\t\tif( $item_id )\n\t\t{\n\t\t\tself::update_item($item_id, $meta_data);\n\t\t\treturn $item_id;\n\t\t}\n\t}", "title": "" }, { "docid": "9e269c8f2cd7400eb2459278e9a11e35", "score": "0.56230736", "text": "function add_meta($key, $val) {\n $success = FALSE;\n $meta = '<meta name=\"' . $key . '\" content=\"' . $val . '\" />';\n\n if (!in_array($meta, $this->meta)) {\n $this->meta[] = $meta;\n $this->write('_meta', $meta);\n $success = TRUE;\n }\n\n return $success;\n }", "title": "" }, { "docid": "30102c251695089a7d32a5a3578643a9", "score": "0.5619535", "text": "function pz_add_custom_meta_box()\n{\n add_meta_box(\n 'custom_meta_box',\n 'Custom Image Metabox',\n 'pz_custom_meta_box_callbacks',\n 'page', // page, post etc.\n 'normal',\n 'high');\n}", "title": "" }, { "docid": "80cd6a827eeeedc2f78b2683fcaeb7e9", "score": "0.55976075", "text": "function addMetadataValueToItem(&$item, $md) {\n $value = $this->getMetadataValue($item, $md);\n $md->setValue($value);\n $item->addMetadata($md);\n }", "title": "" }, { "docid": "bc2325486d8c30018ad34dc434625c98", "score": "0.55929786", "text": "function add_meta_obj($meta_name = null, $vocab = null, $text = null, $lang = null, $attrs = null) {\n array_push($this->meta_objs, new MetaObj($meta_name, $vocab, $text, $lang, $attrs));\n }", "title": "" }, { "docid": "871fd17816728a2d8345ee173dcaf837", "score": "0.5588002", "text": "public function add_meta_box_callback( $post ) {\n\t\twp_nonce_field( $this->idMetaBox.'_data', $this->idMetaBox.'_nonce' );\n\t\t$this->generate_fields( $post );\n\t}", "title": "" }, { "docid": "1647588ea88362c5793665fdccc8b5aa", "score": "0.5586514", "text": "public function addPostAction() {\n $inputVars = $this->getInput(array(\n \t\t'id', 'dataType', //主表字段:id,type\n \t\t \t'data'//子表字段\n ));\n \tlist($news, $itemsList) = $this->checkInput($inputVars);\n \t$news['create_time'] = time();\n \t$result = Admin_Service_Material::add($news, $itemsList);\n \tif (!$result) $this->failPostOutput('操作失败');\n \t$this->successPostOutput($this->actions['listUrl']);\n }", "title": "" }, { "docid": "374de8efb27a14acdff9473af5845d2c", "score": "0.5585206", "text": "public function save_meta_box( $post_id, $post ) {\n\t\tif ( isset( $_POST['tracking_number'] ) && strlen( $_POST['tracking_number'] ) > 0 ) {\n\t\t\t$args = array(\n\t\t\t\t'tracking_provider' => wc_clean( $_POST['tracking_provider'] ),\n\t\t\t\t'custom_tracking_provider' => wc_clean( $_POST['custom_tracking_provider'] ),\n\t\t\t\t'custom_tracking_link' => wc_clean( $_POST['custom_tracking_link'] ),\n\t\t\t\t'tracking_number' => wc_clean( $_POST['tracking_number'] ),\n\t\t\t\t'date_shipped' => wc_clean( $_POST['date_shipped'] ),\n\t\t\t);\n\n\t\t\t$this->add_tracking_item( $post_id, $args );\n\t\t}\n\t}", "title": "" }, { "docid": "c6bb337aeb01c6ff6baab3017dcb30f2", "score": "0.5570493", "text": "public function addMetaTag($name,$desc){\n $this->_metaTags[$name] = $desc;\n }", "title": "" }, { "docid": "51f45896ac710b1e5d9edffa11aeade9", "score": "0.556739", "text": "function add_photo($photo, $gallery) {\n\n $photo_post = array();\n $photo_post['post_title'] = $photo['title'];\n $photo_post['post_content'] = '';\n $photo_post['post_type'] = 'attachment';\n $photo_post['post_status'] = 'publish';\n $photo_post['post_author'] = $this->flickr_author;\n $photo_post['post_category'] = array($this->flickr_category, );\n $photo_post['post_mime_type'] = 'image/jpeg'; //assuming jpeg, is this ok?\n $photo_post['post_parent'] = $gallery['pageid'];\n if ($photo['url_o']) {\n $photo_post['guid'] = $photo['url_o']; //magically linking the photo\n } else {\n $photo_post['guid'] = $photo['url_m']; //for some reason url_o isnt always available\n }\n \n //$postid = wp_insert_post($photo_post);\n $postid = wp_insert_attachment($photo_post);\n /* Update metadata now */\n $this->set_metadata($postid, $photo);\n\n //now tag with mediatags\n wp_set_object_terms($postid, array($gallery['mediatag']), MEDIA_TAGS_TAXONOMY);\n\n //and we should be done. Horay!\n}", "title": "" }, { "docid": "24462c9b37b7c37ff97eec40f074c10e", "score": "0.55663705", "text": "function add_carton_term_meta( $term_id, $meta_key, $meta_value, $unique = false ){\n\treturn add_metadata( 'carton_term', $term_id, $meta_key, $meta_value, $unique );\n}", "title": "" }, { "docid": "a2608e0db531be64b6ce5183ccd1709c", "score": "0.5551007", "text": "abstract public function add_item();", "title": "" }, { "docid": "70795c0b891cede7fee7b7325b3b98c1", "score": "0.55480033", "text": "function sw_add_header_meta() {\n\t\t\n\t\t$info['postID'] = get_the_ID();\n\t\t\t\n\t\t// Cache some resource for fewer queries on subsequent page loads\n\t\tif(sw_is_cache_fresh($info['postID']) == false):\n\t\t\n\t\t\t// Check if an image ID has been provided\n\t\t\t$info['imageID'] = get_post_meta( $info['postID'] , 'nc_ogImage' , true );\n\t\t\tif($info['imageID']):\n\t\t\t\t$info['imageURL'] = wp_get_attachment_url( $info['imageID'] );\n\t\t\t\tdelete_post_meta($info['postID'],'sw_open_graph_image_url');\n\t\t\t\tupdate_post_meta($info['postID'],'sw_open_graph_image_url',$info['imageURL']);\n\t\t\telse:\n\t\t\t\t$info['imageURL'] = wp_get_attachment_url( get_post_thumbnail_id( $info['postID'] ) );\n\t\t\t\tdelete_post_meta($info['postID'],'sw_open_thumbnail_url');\n\t\t\t\tupdate_post_meta($info['postID'],'sw_open_thumbnail_url' , $info['imageURL']);\n\t\t\t\tdelete_post_meta($info['postID'],'sw_open_graph_image_url');\n\t\t\tendif;\n\n\t\t\t// Cache the Twitter Handle\n\t\t\t$user_twitter_handle \t= get_the_author_meta( 'sw_twitter' , sw_get_author($info['postID']));\n\t\t\tif($user_twitter_handle):\n\t\t\t\tdelete_post_meta($info['postID'],'sw_twitter_username');\n\t\t\t\tupdate_post_meta($info['postID'],'sw_twitter_username',$user_twitter_handle);\n\t\t\telse:\n\t\t\t\tdelete_post_meta($info['postID'],'sw_twitter_username');\n\t\t\tendif;\n\t\t\n\t\telse:\n\t\t\n\t\t\t// Check if we have a cached Open Graph Image URL\n\t\t\t$info['imageURL'] = get_post_meta( $info['postID'] , 'sw_open_graph_image_url' , true );\n\t\t\t\n\t\t\t// If not, let's check to see if we have an ID to generate one\n\t\t\tif(!$info['imageURL']):\n\t\t\t\t\n\t\t\t\t// Check for an Open Graph Image ID\n\t\t\t\t$info['imageID'] = get_post_meta( $info['postID'] , 'nc_ogImage' , true );\n\t\t\t\tif($info['imageID']):\n\t\t\t\t\n\t\t\t\t\t// If we find one, let's convert it to a link and cache it for next time\n\t\t\t\t\t$info['imageURL'] = wp_get_attachment_url( $info['imageID'] );\n\t\t\t\t\tdelete_post_meta($info['postID'],'sw_open_graph_image_url');\n\t\t\t\t\tupdate_post_meta($info['postID'],'sw_open_graph_image_url',$info['imageURL']);\n\t\t\t\t\t\n\t\t\t\telse:\n\t\t\t\t\n\t\t\t\t\t// If we don't find one, let's save the URL of the thumbnail in case we need it\n\t\t\t\t\t$thumbnail_image = get_post_meta($info['postID'],'sw_open_thumbnail_url' , true);\n\t\t\t\tendif;\n\t\t\tendif;\n\t\t\t\n\t\t\t\n\t\t\t$user_twitter_handle = get_post_meta( $info['postID'] , 'sw_twitter_username' , true );\n\t\t\t\t\t\t\n\t\tendif;\t\t\t\n\t\t\t\n\t\t// Create the image Open Graph Meta Tag\n\t\t$info['postID'] \t\t\t\t= get_the_ID();\n\t\t$info['title'] \t\t\t\t\t= htmlspecialchars( get_post_meta( $info['postID'] , 'nc_ogTitle' , true ) );\n\t\t$info['description'] \t\t\t= htmlspecialchars( get_post_meta( $info['postID'] , 'nc_ogDescription' , true ) );\n\t\t$info['sw_fb_author'] \t\t\t= htmlspecialchars( get_post_meta( $info['postID'] , 'sw_fb_author' , true ) );\n\t\t$info['sw_user_options'] \t\t= sw_get_user_options();\n\t\t$info['user_twitter_handle'] \t= $user_twitter_handle;\n\t\t$info['header_output']\t\t\t= '';\n\t\t\n\t\t$info = apply_filters( 'sw_meta_tags' , $info );\n\n\t\tif($info['header_output']):\n\t\t\techo PHP_EOL .'<!-- Open Graph Meta Tags & Twitter Card generated by Social Warfare v'.SW_VERSION.' http://warfareplugins.com -->';\n\t\t\techo $info['header_output'];\n\t\t\techo PHP_EOL .'<!-- Open Graph Meta Tags & Twitter Card generated by Social Warfare v'.SW_VERSION.' http://warfareplugins.com -->'. PHP_EOL . PHP_EOL;\n\t\tendif;\n\t}", "title": "" }, { "docid": "a487b5ea532706a9f1c823951ec9ed23", "score": "0.5547729", "text": "public function add_meta() {\n\t\techo \"\\n<meta data-plugin='a04_vertical_button' name='description' content='a sample meta description for this website'/>\\n\\n\";\n\t}", "title": "" }, { "docid": "494210afd7fc8d8af224055dd9f33516", "score": "0.5546799", "text": "function scalia_slides_register_meta_box($post) {\r\r\n\tremove_meta_box('postimagediv', 'scalia_slide', 'side');\r\r\n\tadd_meta_box('postimagediv', __('Slide Image', 'scalia'), 'post_thumbnail_meta_box', 'scalia_slide', 'normal', 'high');\r\r\n\tadd_meta_box('scalia_slide_settings', __('Slide Settings', 'scalia'), 'scalia_slide_settings_box', 'scalia_slide', 'normal', 'high');\r\r\n}", "title": "" }, { "docid": "d29a3a78c9bb5ae3ebd41570da06562a", "score": "0.5542234", "text": "public function addMetaBox(WP_Post $post): void\n {\n $slug = $post->post_type;\n add_meta_box(\n $slug . '_editor',\n __('Informationen', 'wp-plugin-core'),\n array( $this, 'editorByPost' ),\n $slug,\n 'advanced',\n 'high'\n );\n }", "title": "" }, { "docid": "b41a0521fdf3fbaf3ec1a266e2519b6d", "score": "0.5527443", "text": "function idem_pop_up_inner_add_meta_box()\n{\n add_meta_box(\n 'idem-pop-up-inner-meta-box', // id, used as the html id att\n __( 'Idem Pop Up Inner Meta Box' ), // meta box title, like \"Page Attributes\"\n 'idem_pop_up_inner_meta_box_cb', // callback function, spits out the content\n 'idem_pop_up', // post type or page. We'll add this to pages only\n 'side', // context (where on the screen)\n 'low' // priority, where should this go in the context?\n );\n}", "title": "" }, { "docid": "b09722745918ff9508509763db88e0c7", "score": "0.55244845", "text": "public static function the_posts_add_meta( $posts) {\n foreach ( $posts as $i => $post ) {\n if ( $post->post_type == self::$o->core_post_type ) {\n $posts[ $i ] = apply_filters( 'qsot-event-add-meta', $post, $post->ID );\n }\n }\n\n return $posts;\n }", "title": "" }, { "docid": "0d536ba1802fd8613ba337742bdd24c0", "score": "0.5523084", "text": "public function updatePostMeta($post_meta_name) {\n $meta = array();\n $meta['image'] = $this->image;\n $meta['sub-images'] = $this->sub_images;\n $meta['link'] = $this->link;\n $meta['price'] = $this->price;\n $meta['product-code'] = $this->product_code;\n\n update_post_meta($this->id, $post_meta_name, $meta);\n }", "title": "" }, { "docid": "4f921a72e829bf5aa23ac5bf3a32498a", "score": "0.552066", "text": "function test_nonunique_postmeta() {\n\t\t$this->assertIsInt( add_post_meta( $this->post_id, 'nonunique', 'value' ) );\n\t\t$this->assertIsInt( add_post_meta( $this->post_id, 'nonunique', 'another value' ) );\n\n\t\t// Check they exist.\n\t\t$this->assertSame( 'value', get_post_meta( $this->post_id, 'nonunique', true ) );\n\t\t$this->assertSame( array( 'value', 'another value' ), get_post_meta( $this->post_id, 'nonunique', false ) );\n\n\t\t//Fail to delete the wrong value\n\t\t$this->assertFalse( delete_post_meta( $this->post_id, 'nonunique', 'wrong value' ) );\n\n\t\t//Delete the first one\n\t\t$this->assertTrue( delete_post_meta( $this->post_id, 'nonunique', 'value' ) );\n\n\t\t// Check the remainder exists.\n\t\t$this->assertSame( 'another value', get_post_meta( $this->post_id, 'nonunique', true ) );\n\t\t$this->assertSame( array( 'another value' ), get_post_meta( $this->post_id, 'nonunique', false ) );\n\n\t\t// Add a third one.\n\t\t$this->assertIsInt( add_post_meta( $this->post_id, 'nonunique', 'someother value' ) );\n\n\t\t//Check they exists\n\t\t$expected = array(\n\t\t\t'someother value',\n\t\t\t'another value',\n\t\t);\n\t\tsort( $expected );\n\t\t$this->assertTrue( in_array( get_post_meta( $this->post_id, 'nonunique', true ), $expected, true ) );\n\t\t$actual = get_post_meta( $this->post_id, 'nonunique', false );\n\t\tsort( $actual );\n\t\t$this->assertSame( $expected, $actual );\n\n\t\t//Delete the lot\n\t\t$this->assertTrue( delete_post_meta_by_key( 'nonunique' ) );\n\t}", "title": "" }, { "docid": "1fd67ba48d55a91744d1a9f5aebfb42d", "score": "0.5508019", "text": "public function add_post_meta( $post_id ) {\n\t\tglobal $app_version;\n\n\t\t$coupon_type = wp_get_object_terms( $post_id, APP_TAX_TYPE );\n\t\t$coupon_type = $coupon_type[0]->slug;\n\n\t\t// expire date\n\t\t$duration = rand( 10, 100 );\n\t\t$expire_date_format = ( version_compare( $app_version, '1.4', '>' ) ) ? 'Y-m-d' : 'm-d-Y';\n\t\t$expire_date = appthemes_mysql_date( current_time( 'mysql' ), $duration );\n\t\t$expire_date = date( $expire_date_format, strtotime( $expire_date ) );\n\n\t\t$meta_fields = array(\n\t\t\t'clpr_id' => uniqid( rand( 10, 1000 ), false ),\n\t\t\t'clpr_sys_userIP' => appthemes_get_ip(),\n\t\t\t'clpr_daily_count' => '0',\n\t\t\t'clpr_total_count' => '0',\n\t\t\t'clpr_coupon_aff_clicks' => '0',\n\t\t\t'clpr_votes_up' => '0',\n\t\t\t'clpr_votes_down' => '0',\n\t\t\t'clpr_votes_percent' => '100',\n\t\t\t'clpr_coupon_code' => ( $coupon_type == 'coupon-code' ) ? $this->get_random_coupon_code() : '',\n\t\t\t'clpr_print_url' => '',\n\t\t\t'clpr_expire_date' => $expire_date,\n\t\t\t'clpr_featured' => ( ! empty( $_POST['slider_featured'] ) && $this->add_or_not() ) ? '1' : '0',\n\t\t\t'clpr_print_imageid' => ( $coupon_type == 'printable-coupon' ) ? $this->add_printable_coupon( $post_id ) : '',\n\t\t\t'clpr_coupon_aff_url' => $this->get_random_affiliate_url(),\n\t\t);\n\n\t\tforeach ( $meta_fields as $meta_key => $meta_value ) {\n\t\t\tupdate_post_meta( $post_id, $meta_key, $meta_value, true );\n\t\t}\n\n\t}", "title": "" }, { "docid": "13bd08cdf3b4d535c672de2ebe8e43c0", "score": "0.5506367", "text": "public function add( $postType ) {\n\t\t\tif ( ! $postType ) global $postType;\n\n\t\t\tif ( in_array( $postType, $this->_meta_box['pages'] ) )\n\t\t\t\tadd_meta_box(\n\t\t\t\t\t\t$this->_meta_box['id'], //$id\n\t\t\t\t\t\t$this->_meta_box['title'], //$title\n\t\t\t\t\t\tarray( $this, 'show' ), //$callback\n\t\t\t\t\t\t$postType, //$post_type\n\t\t\t\t\t\t$this->_meta_box['context'], //$context\n\t\t\t\t\t\t$this->_meta_box['priority'] //$priority\n\t\t\t\t\t\t//$callback_args\n\t\t\t\t\t);\n\t\t}", "title": "" }, { "docid": "53f61d3dfbd3f121a020b4c15c6b1d8e", "score": "0.5500682", "text": "function add_meta_box($id, $title, $callback, $screen = \\null, $context = 'advanced', $priority = 'default', $callback_args = \\null)\n {\n }", "title": "" }, { "docid": "e00956ac46b9eb08a082cafcc751f88e", "score": "0.5496682", "text": "function add_your_fields_meta_box(){\r\nadd_meta_box(\r\n'your_fields_meta_box',// $id\r\n'Auteur',// $title\r\n'show_your_fields_meta_box',// $callback\r\n'Livre',// $screen\r\n'normal',// $context\r\n'high'// $priority\r\n);\r\n}", "title": "" }, { "docid": "080fc11874b4e2058fe7ffccd69d0b52", "score": "0.5483344", "text": "public function register_meta_box() {\n\n\t\t\tadd_meta_box($this->slug, $this->options['title'], array($this, 'setup_meta_box'), $this->screen, $this->options['context'], $this->options['priority']);\n\t\t\tremove_meta_box('postcustom', $this->screen, 'normal');\n\t\t}", "title": "" }, { "docid": "18f3fca874e6c719cf77c5e0fc5d3075", "score": "0.5476307", "text": "public function save_meta($post_id, $post) {\r\n if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {\r\n return;\r\n }\r\n\r\n\r\n // bomb out if the nonce didn't check out\r\n if (! (isset($_POST[self::NONCE_KEY]) && wp_verify_nonce($_POST[self::NONCE_KEY], plugin_basename(__FILE__)) ) ) {\r\n return $post_id;\r\n }\r\n\r\n // check roles/acls\r\n $post_type = get_post_type_object($post->post_type);\r\n if (!current_user_can($post_type->cap->edit_post, $post_id)) {\r\n return $post_id;\r\n }\r\n\r\n // add/update/delete meta\r\n if (isset($_POST[self::URL_META_KEY])) {\r\n $new_url_meta = esc_url_raw($_POST[self::URL_META_KEY]);\r\n $old_meta_value = get_post_meta( $post_id, self::URL_META_KEY, true );\r\n\r\n if ($old_meta_value && strlen($new_url_meta) == 0) {\r\n delete_post_meta($post_id, self::URL_META_KEY);\r\n }\r\n\r\n if ($new_url_meta && strlen($old_meta_value) == 0) {\r\n add_post_meta( $post_id, self::URL_META_KEY, $new_url_meta, true);\r\n }\r\n\r\n if (strlen($new_url_meta) > 0 && strlen($old_meta_value) > 0) {\r\n update_post_meta($post_id, self::URL_META_KEY, $new_url_meta);\r\n }\r\n\r\n }\r\n\r\n }", "title": "" } ]
7b52013bfa452420e3c28d987a11a46b
set default of this element
[ { "docid": "7caf6f0be4198fcdadd1ceb4ee16f01a", "score": "0.7172962", "text": "public final function setDefault($default){\n\t\tif(FW_Validate::isMixed($default)){\n\t\t\t$this->default = $default;\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "52f2b9860a236d174c89b6b2d400c560", "score": "0.7962253", "text": "function setDefault(){\n\t\t\t\tif( ! is_null( $this->m_default ) ) $this->m_value = $this->m_default;\n\t\t\t}", "title": "" }, { "docid": "78eb6480e17f0ab05fb24d8bf2b66108", "score": "0.7460854", "text": "public function setDefaultValue($default);", "title": "" }, { "docid": "addf2a147f95b61f7e6753e927d33563", "score": "0.744912", "text": "public function setDefault($default);", "title": "" }, { "docid": "4c796fc7edf4835b1050fad5d39b35cd", "score": "0.7254377", "text": "public function default($value=null)\n {\n return parent::default($this->getElement($value));\n }", "title": "" }, { "docid": "2f2cdf7740451691ce7f21a6faaae666", "score": "0.7175344", "text": "public function default($value);", "title": "" }, { "docid": "e5237335f49aa6fa51ff1ad288baa8ca", "score": "0.7172974", "text": "public function setDefault($default)\n {\n $this->default = $default;\n }", "title": "" }, { "docid": "e5237335f49aa6fa51ff1ad288baa8ca", "score": "0.7172974", "text": "public function setDefault($default)\n {\n $this->default = $default;\n }", "title": "" }, { "docid": "a4e1acf2668e373e5e7e70d6b819d220", "score": "0.7115498", "text": "public function setDefaultValue( $value ){\n\t}", "title": "" }, { "docid": "e64a4a314e5725c5b462472f68d0b269", "score": "0.7111602", "text": "public function loadDefault() {\n $value = $this->getValue();\n $single_value = array_pop($value);\n\n // If there is already a value set for the input item, ignore the default.\n $this->setData('default_value', !empty($single_value) ? $single_value : $this->getInputAttr('default'));\n }", "title": "" }, { "docid": "32c1ca3f732a217e0acbccb9e68c7bd6", "score": "0.6922807", "text": "public function defaultValue($default = NULL);", "title": "" }, { "docid": "58d070d97d6b821655df4b264efa6039", "score": "0.69180334", "text": "public function setDefault($value)\n {\n $this->default = $value;\n }", "title": "" }, { "docid": "af14584153135b6dcb79e6f780bc26df", "score": "0.6864556", "text": "function _setDefaults() {\r\n \r\n }", "title": "" }, { "docid": "d232952472dee6f023257c91d05c1bea", "score": "0.6829874", "text": "public function setDefaults() {\n \n }", "title": "" }, { "docid": "110a65929b13a2bc05afddea9ee45449", "score": "0.6822612", "text": "public function setDefault($isDefault) {\r\n\t\r\n\t}", "title": "" }, { "docid": "4213cd64cf1e9aaff08d1b50b61b49d0", "score": "0.67956376", "text": "public function set_defaults(): void {\n\t\t// Override in child class.\n\t}", "title": "" }, { "docid": "433589f5033601085cc8394f62984e63", "score": "0.6773106", "text": "public function setDefault($value = true)\n {\n $this->is_default = $value;\n }", "title": "" }, { "docid": "bb42a1b385b41f585e2e3fa5f965c238", "score": "0.67630696", "text": "protected function setDefault($default = NULL)\r\n\t\t{\r\n\t\t\tif ($this->mode === self::REQUIRED && !is_null($default)) {\r\n\t\t\t\tthrow new InputArgumentException('Default value can be set only for InputArgument::OPTIONAL mode.');\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$this->default = $default;\r\n\t\t}", "title": "" }, { "docid": "ad5e417ab8dbb123d2f915aec423dd67", "score": "0.66870254", "text": "public function __construct($default)\n\t{\n\t\t$this->default = $default;\n\t}", "title": "" }, { "docid": "dd429563e7eb75adbdd496df1920b72a", "score": "0.66110516", "text": "public function setDefault($default)\n {\n $this->default = $default;\n\n return $this;\n }", "title": "" }, { "docid": "dd429563e7eb75adbdd496df1920b72a", "score": "0.66110516", "text": "public function setDefault($default)\n {\n $this->default = $default;\n\n return $this;\n }", "title": "" }, { "docid": "dd429563e7eb75adbdd496df1920b72a", "score": "0.66110516", "text": "public function setDefault($default)\n {\n $this->default = $default;\n\n return $this;\n }", "title": "" }, { "docid": "d148c4a04307b24f46d04713d209c33a", "score": "0.65981555", "text": "protected function setDefaults()\n {\n }", "title": "" }, { "docid": "cb792b62391e87947e8ab244feddccfe", "score": "0.6595922", "text": "public function default($default)\n {\n $this->default = $default;\n\n return $this;\n }", "title": "" }, { "docid": "875f11bd2e4d9b015f3c2ad8d52cd175", "score": "0.6568692", "text": "public function setDefaultTitle($default)\n\t{\n\t\t$this->_default = $default;\n\t}", "title": "" }, { "docid": "a7f90c392d5193264919eb0f9ef248f4", "score": "0.65667295", "text": "public function set_default() \n\t{\n $this->set_mode_mail(); \n $this->reset_recipients(); \n\t\t$this->reset_reply_to(); \n\t}", "title": "" }, { "docid": "482ee2611a24e0a8aabbcf8bc66e78ea", "score": "0.6545644", "text": "public function setDefaultElementValue($element_id, $value = '') {\n $type = $this->type;\n return variable_set(\"cdb_{$type}_{$element_id}_default_value\", $value);\n }", "title": "" }, { "docid": "89e0d3be640250bc3abab0f4ed3bf495", "score": "0.6540189", "text": "public function set_defaults() {\n\n\t\tforeach ( $this->defaults as $key => $value ) {\n\t\t\t$attr = $this->get_attr( $key );\n\t\t\tif ( empty( $attr ) ) {\n\t\t\t\t$this->set_attr( $key, $value );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d4cf68dcc22c46710b550f803bee6f51", "score": "0.6524303", "text": "public function setDefaultValue($default)\n {\n $this->defaultValue = $default;\n return $this;\n }", "title": "" }, { "docid": "08e3ee3598ea9323666a8a7a13551ebb", "score": "0.6494837", "text": "public function getDefault()\n {\n }", "title": "" }, { "docid": "99651ce313e64aac09fadc4d584a95bf", "score": "0.6481658", "text": "abstract protected function defaultInitialValue();", "title": "" }, { "docid": "64f9d4a1b062d1c85ccff27b61e558b9", "score": "0.64455974", "text": "function _setDefaults() {\n\n\t\t$this->setCSS(\"position\",\"absolute\");\n\t\t$this->setCSS(\"display\",\"block\");\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "8ed21db5e2acfdce27b7e01832249b9a", "score": "0.6433713", "text": "function sa_form_elem_default(&$data)\r\n{\r\n $data['id'] = $data['name'];\r\n $data['tabindex'] = 9;\r\n}", "title": "" }, { "docid": "ce186d99ad52c0173888b9c45ca22054", "score": "0.6428071", "text": "abstract protected function getDefaultValue();", "title": "" }, { "docid": "7f5e412447240543dd67703737ca4880", "score": "0.64205503", "text": "public function setDefault(string $name): void\n {\n $this->get($name)->setDefault();\n }", "title": "" }, { "docid": "bb276574db28271c88aa64cd3c5e80aa", "score": "0.64124817", "text": "function setDefaultForAdd() {\n if (is_null($this->type)) {\n $this->type = 0;\n }\n\n if (is_null($this->width)) {\n $this->width = 0;\n }\n\n if (is_null($this->height)) {\n $this->height = 0;\n }\n if (is_null($this->capping)) {\n // Leave null\n }\n\n if (is_null($this->sessionCapping)) {\n // Leave null\n }\n\n if (is_null($this->block)) {\n // Leave null\n }\n }", "title": "" }, { "docid": "0dfbcb89d50ebb3e0d71ee2e76310942", "score": "0.6405451", "text": "public function default($key, $value);", "title": "" }, { "docid": "2cc4e37caaf1e24a2db9f4737ca56481", "score": "0.64047337", "text": "function set_elem_default_vals($elem, $str) \n {\n $this->elem_default_vals[$this->field_prefix . $elem] = $str;\n }", "title": "" }, { "docid": "79e0aa53b1a31fbe00039c291dad1100", "score": "0.63870907", "text": "public function getDefault();", "title": "" }, { "docid": "79e0aa53b1a31fbe00039c291dad1100", "score": "0.63870907", "text": "public function getDefault();", "title": "" }, { "docid": "c5ffae4d5f85f59a741ce5b5aeec3e4f", "score": "0.63681215", "text": "function _setDefaults() {\r\n \r\n $this->setCSS(\"width\",\"200px\");\r\n $this->setCSS(\"resize\",\"none\");\r\n \r\n }", "title": "" }, { "docid": "475b9a34d9414e459f681403216833fb", "score": "0.6352862", "text": "public function setDefault( $argument, $value ){\n\t\t$this->defaults[$argument] = $value;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "4136f757a963e93e1b0eb369409c6420", "score": "0.6338863", "text": "protected function createDefault()\n {\n $this->isChange = true;\n $this->saveSettings($this->defaultSetting);\n }", "title": "" }, { "docid": "4b9ca3ef707e2501c0f4cf565c046f78", "score": "0.6331417", "text": "public function default(string $defaultImageUrl): self\n {\n return $this->set('default', $defaultImageUrl);\n }", "title": "" }, { "docid": "f7d1b741498d731b631659884d086df2", "score": "0.63250905", "text": "public function setDefaultvalue($newDefaultvalue)\n {\n $this->defaultValue = $newDefaultvalue;\n }", "title": "" }, { "docid": "00c459c6b6160033131c91df9424ad78", "score": "0.6321434", "text": "function setdefault()\n\t{\n\t\t// Check for request forgeries\n//TODO: FIX TOKEN\n\t\t//JRequest::checkToken() or jexit(JText::_('JInvalid_Token'));\n\n\t\t$clientId\t= JRequest::getInt('client_id');\n\t\t$id\t\t\t= JRequest::getInt('id');\n\t\t$model \t\t= $this->getModel('template');\n\n\t\tif (empty($id)) {\n\t\t\t$this->setRedirect('index.php?option=com_templates&view=templates&client='.$clientId, JText::_('Operation Failed').': '.JText::_('No template specified.'));\n\t\t\treturn;\n\t\t}\n\n\t\tif ($model->setDefault($id, $clientId)) {\n\t\t\t$msg = JText::_('Template Saved');\n\t\t} else {\n\t\t\t$msg = JText::_('Error Saving Template') . $model->getError();\n\t\t}\n\n\t\t$this->setRedirect('index.php?option=com_templates&view=templates&client='.$clientId, $msg);\n\t}", "title": "" }, { "docid": "c11fd6a33283aa64e88227d23fc89841", "score": "0.63208175", "text": "public function setDefaultValue($val)\n {\n $this->_propDict[\"defaultValue\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "c11fd6a33283aa64e88227d23fc89841", "score": "0.63208175", "text": "public function setDefaultValue($val)\n {\n $this->_propDict[\"defaultValue\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "a05182d7781aa80acd1632117b882732", "score": "0.6307448", "text": "public function default_value($string) {\n\t\t$this->options['default_value'] = $string;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "eb39cfb0241ae62f2c0b29e9f30a505a", "score": "0.62974167", "text": "private function populateDefault()\n {\n $this->optCommuniquer = '0';\n $this->cegidEtatDestock = '0';\n $this->idHno = '1';\n }", "title": "" }, { "docid": "e650b538a7e31970b7aa029348ca3bc5", "score": "0.62837803", "text": "function getDefault()\n {\n // RexDisplay::assign('product_id', $product_id);\n\n // $in_parent = Request::get('in_parent', false);\n // if ($in_parent) {\n // RexDisplay::assign('in_parent', $in_parent);\n\n // }\n\n // проверка созданных артикулов\n // $this->_checkSkuses();\n\n parent::getDefault();\n }", "title": "" }, { "docid": "413e3ff6f4d91ea9dda282ba5ec11951", "score": "0.6275195", "text": "protected function setDefault($default)\n {\n $this->fieldBuilder->option('default', $default);\n\n return $this;\n }", "title": "" }, { "docid": "77b4720b12dd3d9c3ef437b550d146d1", "score": "0.6241079", "text": "function _setDefaults() {\n\n $this->setCSS(\"display\", \"inline-block\");\n }", "title": "" }, { "docid": "88b294ebcc35baac9c84e3b96fd62d6a", "score": "0.6229574", "text": "protected function setDefaultValues()\n {\n parent::setDefaultValues();\n\n $this->publicationDate = date('Y-m-d');\n $this->kind = 'sc';\n }", "title": "" }, { "docid": "8005330a0d58c830df223920132291a3", "score": "0.6198901", "text": "public function applyDefaultValues()\n\t{\n\t\t$this->validado = false;\n\t\t$this->numero = 0;\n\t}", "title": "" }, { "docid": "393e31fdc5d40d8cbb260a39a5bd1502", "score": "0.6176138", "text": "public function getDefaultValue();", "title": "" }, { "docid": "393e31fdc5d40d8cbb260a39a5bd1502", "score": "0.6176138", "text": "public function getDefaultValue();", "title": "" }, { "docid": "393e31fdc5d40d8cbb260a39a5bd1502", "score": "0.6176138", "text": "public function getDefaultValue();", "title": "" }, { "docid": "39b8e7103744e7bcf77ada1df4a707e5", "score": "0.61469185", "text": "public function getDefaultValue() { return $this->m_default;\t}", "title": "" }, { "docid": "973c136cd42e5d7e9d92362be5fbca5b", "score": "0.6133578", "text": "function set_label_as_default() {\n if(($this->request->isAsyncCall() || $this->request->isApiCall()) && $this->request->isSubmitted()) {\n if($this->active_label->isLoaded()) {\n if($this->active_label->canEdit($this->logged_user)) {\n try {\n if($this->active_label->getIsDefault()) {\n Labels::unsetDefault($this->active_label); \n } else {\n Labels::setDefault($this->active_label);\n } // if \n $this->response->respondWithData($this->active_label, array('as' => 'label'));\n } catch(Exception $e) {\n $this->response->exception($e);\n } // try\n } else {\n $this->response->forbidden();\n } // if\n } else {\n $this->response->notFound();\n } // if\n } else {\n $this->response->badRequest();\n } // if\n }", "title": "" }, { "docid": "0fa930e71a0af5fa56af4cff9f697418", "score": "0.61265916", "text": "protected function setDefaultCommand($default_command) {\r\n $this->_default_cmd = $default_command;\r\n }", "title": "" }, { "docid": "24427a456d534d3db889b1b8ad27d561", "score": "0.6126586", "text": "public function default($value){\n if(!$value)\n return $this;\n array_push($this->options, \"DEFAULT '\" . $value . \"'\");\n return $this;\n }", "title": "" }, { "docid": "06b3cf69d344d9685cdd9cc024ec5b3e", "score": "0.61196953", "text": "abstract protected function default();", "title": "" }, { "docid": "86c095addfa6be395ba2355a151f4882", "score": "0.6117439", "text": "public function setDefaultDataConfig()\n\t{\n\t\t$this->set('columnName', $this->columnName)\n\t\t\t->set('label', $this->defaultLabel)\n\t\t\t->set('presence', 0)\n\t\t\t->set('defaultValue', $this->defaultValue)\n\t\t\t->set('displayType', $this->displayType)\n\t\t\t->set('invtype', $this->type)\n\t\t\t->set('colSpan', $this->colSpan);\n\t}", "title": "" }, { "docid": "d5b3a12bcbf9652b12dac7148fc9382b", "score": "0.61035", "text": "public function makeDefault()\n {\n $current_default = $this->user->defaultAccount();\n $current_default->is_default = false;\n $current_default->save();\n\n $this->is_default = true;\n $this->save();\n }", "title": "" }, { "docid": "00e757ca5437b3dd752f486104e637bd", "score": "0.6102996", "text": "public function getDefault() { return $this->default; }", "title": "" }, { "docid": "117577dba3eda6a3f1fd3f7f16eaf607", "score": "0.6100681", "text": "public function setDefaultValue($defaultValue) {\n $this->defaultValue = $defaultValue;\n }", "title": "" }, { "docid": "72ed1beea2c8d3802b2fd5bb2d03843b", "score": "0.60958374", "text": "public function applyDefaultValues()\n\t{\n\t\t$this->is_dynamic_price = false;\n\t\t$this->dynamic_price_what_if = '50.00';\n\t\t$this->show = true;\n\t\t$this->is_default = false;\n\t\t$this->is_prom = false;\n\t\t$this->is_available = true;\n\t}", "title": "" }, { "docid": "08e48df1c78f4c018de12c7bd14e1bf3", "score": "0.60807693", "text": "public function default()\n {\n return $this->default;\n }", "title": "" }, { "docid": "726abeb07cf8344ba7e191dbe870399c", "score": "0.6073903", "text": "public function applyDefaultValues()\n {\n $this->avatar_url = '/images/avatars/default.png';\n $this->permission = 0;\n }", "title": "" }, { "docid": "49901d18693cda097c801de95dc22ca8", "score": "0.607204", "text": "public function setDefaultInd($defaultInd)\n {\n $this->defaultInd = $defaultInd;\n return $this;\n }", "title": "" }, { "docid": "1696fd023dd2bbf8824518efd1eed82d", "score": "0.6063746", "text": "public function getDefault() {\r\n\t\treturn unserialize((string)($this->xmlElem->default));\r\n\t}", "title": "" }, { "docid": "aba7fd35d233cc9f9cb9116f018db89e", "score": "0.6057135", "text": "public function setDefaultPointValue($newVal);", "title": "" }, { "docid": "7da672604b143d265ebec42ce835bc4b", "score": "0.6049912", "text": "public function default_value($string) {\n\t\t$this->options['value'] = $string;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "bd830cd85a02991333f9ea8b57247c8c", "score": "0.6040647", "text": "protected function addDefaultLabel() {\r\n $label = $this->getLabel();\r\n $font = $this->font;\r\n if ($label !== null && $label !== '' && $font !== null && $this->defaultLabel !== null) {\r\n $this->defaultLabel->setText($label);\r\n $this->defaultLabel->setFont($font);\r\n $this->addLabel($this->defaultLabel);\r\n }\r\n }", "title": "" }, { "docid": "a74487af23e0f3958b4dd3fc6646578a", "score": "0.60398614", "text": "function _setDefaults() {\n\n $this->setCSS(\"width\", \"100%\");\n }", "title": "" }, { "docid": "7c209ac28ec22938b94f4aa68a2b8744", "score": "0.6025632", "text": "public function setDefaultValues()\r\n {\r\n foreach ($this->defaultValues as $property => $value) {\r\n if (!$this->$property) {\r\n $this->$property = $value;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "38254b8e0baaf8558b9e9d0b9b42b011", "score": "0.60253567", "text": "protected function init() {\n\t\tparent::init();\n\t\t$this->_attributes['label'] = '';\n\t\t$this->_attributes['value'] = '';\n\t\t$this->_attributes['disabled'] = '';\n\t\t$this->_attributes['selected'] = '';\n\t}", "title": "" }, { "docid": "c4722a2b4a4b50b58c2bb23ee39f2197", "score": "0.6024523", "text": "public function setDefault($key, $value)\n {\n $this->defaults[$key] = $value;\n }", "title": "" }, { "docid": "a853cee8cd366a4a2f9ca9653d1f8c39", "score": "0.6019149", "text": "public function applyDefaultValues()\n {\n $this->inititemnbr = '';\n $this->lotmlotnbr = '';\n }", "title": "" }, { "docid": "fe97c8e93ad0371deb1dcb4493dc6a9b", "score": "0.6009582", "text": "public function setDefault() {\n\t\t// start by getting all args\n\t\t$chain = func_get_args();\n\t\t// identifier is always the first arg\n\t\t$identifier = array_shift($chain);\n\t\t// value is always the last arg\n\t\t$value = array_pop($chain);\n\t\t// chain may be provided as a single array arg\n\t\t$chain = static::unnestArray($chain);\n\t\t// add the identifier to the beginning of the chain and set\n\t\tstatic::setInTree($this->defaults, array_merge([$identifier], $chain), $value);\n\t\t// re-process defaults for the entire top-level property\n\t\t$this->processDefaults(array_slice($chain, 0, 1));\n\t}", "title": "" }, { "docid": "622f8f01bd4262479eeae39e9e04edea", "score": "0.5995133", "text": "public function applyDefaultValue($notify = TRUE);", "title": "" }, { "docid": "ca0f47705a7c21d046d8829920f5dd24", "score": "0.5987599", "text": "public function default_options() {\n\t\t\t$this->_default_options();\n\t\t}", "title": "" }, { "docid": "2dc588243ffac30407bd789b98625732", "score": "0.59863055", "text": "public function setDefaultValue($defaultValue)\n {\n $this->defaultValue = $defaultValue;\n }", "title": "" }, { "docid": "848753d077744e75ab2dd082ab37d026", "score": "0.597039", "text": "function setDefault($key, $default) {\n if ($this->has($key)) {\n return $this->map[$key];\n }\n $this->map[$key] = $default;\n return $default;\n }", "title": "" }, { "docid": "609cd71bda0810a1bcb8b5f422ee8b47", "score": "0.5967866", "text": "public function setDefaultValue($default_value) {\n if ($default_value === FALSE) {\n throw new \\InvalidArgumentException('Field default value can not be FALSE');\n }\n $this->_is_required = FALSE;\n $this->_default_value = $default_value;\n return $this;\n }", "title": "" }, { "docid": "58bb3f5d63f080aa3cd755d514de1e51", "score": "0.59670943", "text": "public function setDefaultValue(string $defaultValue)\n\t{\n\t\t$this->defaultValue=$defaultValue; \n\t\t$this->keyModified['default_value'] = 1; \n\n\t}", "title": "" }, { "docid": "1d4f346ba002af6432094ec95a02c05c", "score": "0.5963965", "text": "public function setDefaultValue($val)\n {\n $this->_propDict[\"defaultValue\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "060823c0d5f091e84bbd50272767393c", "score": "0.5963075", "text": "public function getTag()\n {\n return 'defaults';\n }", "title": "" }, { "docid": "76e4df729afdc5464acaab420b3a4f56", "score": "0.5962564", "text": "public static function set($value,$default)\n { \n return $value ?? $default;\n }", "title": "" }, { "docid": "6bf8d72e0649af00210a8a3002c63bba", "score": "0.5962328", "text": "public function defaults();", "title": "" }, { "docid": "280286d0a27f59d608d1220fbe9aae7f", "score": "0.59602237", "text": "public function setQueryDefault($name, $value);", "title": "" }, { "docid": "5bb8e499299fa8fb386ffe1a5d9d6d34", "score": "0.5947353", "text": "public function set_default_image(Image $image)\r\n {\r\n $this->_default_image = $image;\r\n }", "title": "" }, { "docid": "340a87021b3381e4f055e9a3465ec5cc", "score": "0.5940802", "text": "public function setDefaultAttributes()\n {\n $this->toolbar([\n 'heading',\n '|',\n 'bold',\n 'italic',\n 'link',\n 'bulletedList',\n 'numberedList',\n 'blockQuote',\n ]);\n }", "title": "" }, { "docid": "71b1e2984fac66c871c70ee4904dc2d5", "score": "0.5932809", "text": "public function default_values( $data )\r\n\t\t{\r\n\t\t\t\r\n\t\t\t// Loop through all the elements.\r\n\t\t\tforeach ( $data as $id => $value )\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tif ( $this->elements[$id] )\r\n\t\t\t\t\t$this->elements[$id]->default_value( $value );\r\n\t\t\t\telse if ( $this->groups[$id] )\r\n\t\t\t\t\t$this->groups[$id]->default_value( $value );\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t}", "title": "" }, { "docid": "88b7f7a4b4b27b7c15ec23ef3bd06464", "score": "0.59320545", "text": "public function &setDefaultValue($value)\n {\n $this->custom_default_value = $this->cast($value);\n $this->custom_default_value_is_set = true;\n\n return $this;\n }", "title": "" }, { "docid": "903f2c894d5c58552fd00333804314e3", "score": "0.59309804", "text": "protected function setDocDefaults() {\n\t\t\t// Create an instance of template\n\t\t$this->doc = t3lib_div::makeInstance('template');\n\n\t\t\t// Set back path of this module\n\t\t$this->doc->backPath = $GLOBALS['BACK_PATH'];\n\n\t\t\t// Main template\n\t\t$this->doc->setModuleTemplate('EXT:' . self::extKey . '/res/templates/mod1.html');\n\n\t\t\t// Additional styles\n\t\t$this->doc->addStyleSheet(self::extKey . '_css', t3lib_extMgm::extRelPath(self::extKey) . 'res/css/mod1.css');\n\n\t\t\t// Default docType\n\t\t$this->doc->docType='xhtml_trans';\n\n\t\t\t// Default form tag\n\t\t$this->doc->form = '';\n\t}", "title": "" }, { "docid": "1b86f64afe47a50c20f367d5202e9279", "score": "0.59304565", "text": "public static function getDefault() {}", "title": "" }, { "docid": "ad6122a22d90323252f07a250f4eedbc", "score": "0.5929225", "text": "public function defaults() {\n\n }", "title": "" }, { "docid": "65fb18f394b3352845dc3690f5fde5a6", "score": "0.5927742", "text": "public function initDefaultAttributes($content) {\n\t}", "title": "" }, { "docid": "0d2ba2d4c5081ffca12a98de8b4b4ab9", "score": "0.590713", "text": "public static function setDefault($container)\n {\n self::$_default = $container;\n }", "title": "" } ]
d50bf951bd5292f21ad85fea3e6df5ed
Gets the installed extensions
[ { "docid": "d465d4e577e666ad8e9ca518346b0747", "score": "0.73437035", "text": "function getExtensions()\r\n { \r\n $extensions = array();\r\n $extensions['component'] = $this->_getComponents();\r\n $extensions['module'] = $this->_getModules();\r\n $extensions['plugin'] = $this->_getPlugins();\r\n $extensions['template'] = $this->_getTemplates();\r\n $extensions['language'] = $this->_getLanguages();\r\n \r\n return $extensions;\r\n }", "title": "" } ]
[ { "docid": "eecfc1c838076437d0e528a9b5fab6ce", "score": "0.8351017", "text": "function getInstalledExtensions()\t{\n\t\t$list = array();\n\t\t$cat = $this->defaultCategories;\n\n\t\t$path = PATH_site.TYPO3_mainDir.'sysext/';\n\t\t$this->getInstExtList($path,$list,$cat,'S');\n\n\t\t$path = PATH_site.TYPO3_mainDir.'ext/';\n\t\t$this->getInstExtList($path,$list,$cat,'G');\n\n\t\t$path = PATH_site.'typo3conf/ext/';\n\t\t$this->getInstExtList($path,$list,$cat,'L');\n\n\t\treturn array($list,$cat);\n\t}", "title": "" }, { "docid": "2f609abfcae673a289f1561f4eba58fb", "score": "0.82914114", "text": "public function getAvailableExtensions() {}", "title": "" }, { "docid": "ed45242cb188c0a6b87aa920ba7bc3fc", "score": "0.81532556", "text": "public static function findInstalledExtensions ()\n\t{\n\t\t$registry = JRegistry::getInstance( 'JSNTplFramework' );\n\t\t$installedExtensions = $registry->get( 'extensions.installed', array() );\n\n\t\tif (empty($installedExtensions))\n\t\t{\n\t\t\t$db\t= JFactory::getDbo();\n\t\t\t$q\t= $db->getQuery( true );\n\n\t\t\t$q->select( 'type, element, folder, manifest_cache' );\n\t\t\t$q->from( '#__extensions' );\n\t\t\t$q->where( 'type IN (\"component\", \"plugin\", \"module\")' );\n\n\t\t\t$db->setQuery( $q );\n\n\t\t\tforeach ( $db->loadObjectList() AS $extension )\n\t\t\t{\n\t\t\t\tif ( 'plugin' == $extension->type )\n\t\t\t\t{\n\t\t\t\t\t$installedExtensions[\"plugin-{$extension->folder}\"][ $extension->element ] = json_decode( $extension->manifest_cache );\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$installedExtensions[ $extension->type ][ $extension->element ] = json_decode( $extension->manifest_cache );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$registry->set( 'extensions.installed', $installedExtensions );\n\t\t}\n\n\t\treturn $installedExtensions;\n\t}", "title": "" }, { "docid": "6a662be6f87b8d4f364d52b8ae3d4834", "score": "0.79928535", "text": "public static function getExtensions() {\n return self::$extensions;\n }", "title": "" }, { "docid": "74478c502942ddfbb6d26444dc37f185", "score": "0.79369354", "text": "function getExtensions() ;", "title": "" }, { "docid": "32077bf8ba35a544c9aa9087edbeb7d2", "score": "0.79328746", "text": "public function getExtensions();", "title": "" }, { "docid": "04ced72e4cabe4945223792b83834dc5", "score": "0.78138715", "text": "public function get_extensions()\n {\n return array_values($this->supported);\n }", "title": "" }, { "docid": "b48c939947524f3581ef4efd531c3de5", "score": "0.7811298", "text": "public function getExtensions()\n {\n return $this->extensions;\n }", "title": "" }, { "docid": "f5aee245dd74f16d9f95380044b28067", "score": "0.7779336", "text": "public function extensions()\n\t{\n\t\t$missing = [];\n\t\t$extensions = $this->executeStrategiesMethod('extensions');\n\t\tforeach ($extensions as $extension) {\n\t\t\t$missing = array_merge($missing, $extension);\n\t\t}\n\n\t\treturn $missing;\n\t}", "title": "" }, { "docid": "35a80b5bfec827a69c550e5e0d0846bf", "score": "0.7776846", "text": "public function getExtensions()\n {\n $this->init();\n $extensionsCallable = $this->className.'::getExtensions';\n return $extensionsCallable();\n }", "title": "" }, { "docid": "6780d4c71a8994454e09b5b3e9626827", "score": "0.7747143", "text": "public static function _getExtensions() {\n return array();\n }", "title": "" }, { "docid": "4def6dde0607aadbd44d986737ea260a", "score": "0.77204984", "text": "public function getAvailableAndInstalledExtensionsWithAdditionalInformation() {}", "title": "" }, { "docid": "fdd2ead277f2239dd84d141f0aceff3c", "score": "0.7690738", "text": "public function getExtensions() {\n return [];\n }", "title": "" }, { "docid": "df82b7fd23d398a1f40518dd915dddd5", "score": "0.76238954", "text": "public function getExtensions()\n {\n $data = [];\n foreach (\\Yii::$app->extensions as $extension) {\n $data[$extension['name']] = $extension['version'];\n }\n\n return $data;\n }", "title": "" }, { "docid": "cb73ca40b61d7760f38996b909096794", "score": "0.76157", "text": "public function getExtensions()\n {\n return $this->Extensions;\n }", "title": "" }, { "docid": "41c7572d22621518f84b018af109a555", "score": "0.7580383", "text": "public static function updateExtensions() {\n\t\treturn spl_autoload_extensions(implode(\",\", self::$extensions));\n\t}", "title": "" }, { "docid": "c23dd04997eea596eb3b52d2e46f528d", "score": "0.7578312", "text": "public function getExtensions()\r\n {\r\n $data = array($this->_apiKey);\r\n return $this->_callMethod('getExtensions', $data);\r\n }", "title": "" }, { "docid": "4659c69a860bc1b7e73cb2ce1d90cd40", "score": "0.7539064", "text": "protected function getLoadedExtensions() : array {}", "title": "" }, { "docid": "9e92e19325103f3e5470b94f96f82a07", "score": "0.74987346", "text": "abstract function getExtensions();", "title": "" }, { "docid": "2cf683f64b11cd08420e3657eb922f13", "score": "0.7489705", "text": "public function getActivatedExtensions()\n {\n return $this->extensions;\n }", "title": "" }, { "docid": "b35db548d981dbc7d05a4b2d91b63136", "score": "0.74592465", "text": "public static function all()\n\t{\n\t\treturn static::$extensions;\n\t}", "title": "" }, { "docid": "b4cbb01ced829078dc874be82c72e199", "score": "0.7453345", "text": "public function getPhpExtensions(): array\n {\n return get_loaded_extensions();\n }", "title": "" }, { "docid": "0a2421ca88a29695345fa88b5ecd75ef", "score": "0.7441512", "text": "public function intlExtensionInstalled()\n {\n return array(\n 'Extension On' => array(true),\n 'Extension Off' => array(false)\n );\n }", "title": "" }, { "docid": "e9772e3bace9d0bb861f126f4670a5ed", "score": "0.7403447", "text": "public function getExtensionsList()\n {\n if (null == $this->extensionsList) {\n $this->extensionsList = $this->collectExtensions();\n }\n\n return $this->extensionsList;\n }", "title": "" }, { "docid": "c74f8d0a145da1789452ca78f6afe2a2", "score": "0.7375459", "text": "public function extensions()\n {\n if (! $this->files->isDir(VALET_HOME_PATH.'/Extensions')) {\n return [];\n }\n\n return collect($this->files->scandir(VALET_HOME_PATH.'/Extensions'))\n ->reject(function ($file) {\n return is_dir($file);\n })\n ->map(function ($file) {\n return VALET_HOME_PATH.'/Extensions/'.$file;\n })\n ->values()->all();\n }", "title": "" }, { "docid": "63d3a7c592c7263d0bf7a8f5e4424e39", "score": "0.73281926", "text": "public function getExtensions(): array\n {\n return $this->extensionBaseNameInstances;\n }", "title": "" }, { "docid": "4e22e62429a56f67c1d4c693d3114ec1", "score": "0.7303177", "text": "public function all()\n {\n return $this->extensions;\n }", "title": "" }, { "docid": "3dd672463e1b48867571ede81f35b34e", "score": "0.72713727", "text": "public function extensions(): array\n {\n return [];\n }", "title": "" }, { "docid": "15c6c11dc8b3b50304cea942d7365026", "score": "0.72689414", "text": "function ext_available()\n{\n $dir = INC_PATH.'ext';\n $ext = array();\n if ($handle = opendir($dir))\n {\n while (false !== ($file = readdir($handle))) {\n // look for available module extensions\n if (!str_startswith($file, \".\") && is_dir($dir.'/'.$file)) {\n $ext[] = $file;\n }\n }\n closedir($handle);\n }\n\n return $ext;\n}", "title": "" }, { "docid": "f6839ec2f60ce72f8c3792519f4d332d", "score": "0.7268854", "text": "public function listExtensions()\n {\n return array_keys($this->paths());\n }", "title": "" }, { "docid": "249ee465b84eef48ec2c5bee2c171755", "score": "0.7267713", "text": "protected static function getActiveExtensionPackages() {}", "title": "" }, { "docid": "52e26929da82c8c332dafbbc0dcf6318", "score": "0.72454697", "text": "public function getExtensions()\n {\n // Path to extensions directory\n $dir = dirname(__DIR__) . '/Extension';\n\n $extensions = FileManager::getFirstLevelDirs($dir);\n\n return ArrayUtils::valuefy($extensions);\n }", "title": "" }, { "docid": "ab2df02290df6a034e812d61d764066d", "score": "0.71801984", "text": "function extensions() {\n $exts = $this->exts;\n $list = '';\n foreach ( $exts as $ext ) {\n $list .= \"*.\" . $ext . \";\";\n }\n return $list;\n }", "title": "" }, { "docid": "35f9d68184410c911db6105fbb773c27", "score": "0.71731997", "text": "public function get_allowed_extensions() { \n\t\treturn $this->allowed_extensions;\t \n\t}", "title": "" }, { "docid": "0b7812512a5cab4387b6bfc57b184255", "score": "0.7168487", "text": "public function loadExtensions()\n {\n $this->extensions = [];\n\n foreach ($this->namespaces() as $namespace => $path) {\n $this->loadExtension($namespace, $path);\n }\n\n return $this->extensions;\n }", "title": "" }, { "docid": "9ca011c8a0e58a31d4bf8d328eaf5071", "score": "0.7143352", "text": "public function getExtensions()\n {\n $extensions = [];\n foreach ($this->extensions as $code => $extension) {\n if (!$extension->disabled)\n $extensions[$code] = $extension;\n }\n\n return $extensions;\n }", "title": "" }, { "docid": "9a00a5bdf252c7b341e2c6a563f97ae6", "score": "0.6996911", "text": "public function getExtensionInstallStorage() {}", "title": "" }, { "docid": "29215b018016782ae1dba2f568d9f48e", "score": "0.6964272", "text": "public function getLoadedExtensions(): array\n {\n $extensions = [];\n $loadedExtensions = get_loaded_extensions();\n\n foreach ($loadedExtensions as $extensionName) {\n try {\n $iniValues = @ini_get_all($extensionName);\n } catch (Throwable) {\n $iniValues = [];\n }\n\n $extension = new PhpExtension();\n $extension->setExtensionName($extensionName);\n $extension->setVersion(phpversion($extensionName));\n\n if ($iniValues) {\n foreach ($iniValues as $iniName => $iniValue) {\n $iniConfig = new IniValue();\n $iniConfig->setConfigName($iniName);\n if (is_array($iniValue)) {\n if (array_key_exists('local_value', $iniValue)) {\n $iniConfig->setValue($iniValue['local_value']);\n } elseif (array_key_exists('global_value', $iniValue)) {\n $iniConfig->setValue($iniValue['global_value']);\n }\n } else {\n $iniConfig->setValue($iniValue);\n }\n $extension->addIniValue($iniConfig);\n }\n }\n\n $extensions[] = $extension;\n }\n\n return $extensions;\n }", "title": "" }, { "docid": "88e61e6444f559a23faaf607378516c1", "score": "0.69377244", "text": "public function get_extensions()\n\t{\n\t\treturn ['.php'];\n\t}", "title": "" }, { "docid": "631274c493c5b7dfdf6083e08a7f92e1", "score": "0.6936194", "text": "public function extensionProvider()\n {\n return [\n 'imap' => ['imap'],\n 'mbstring' => ['mbstring'],\n 'iconv' => ['iconv'],\n ];\n }", "title": "" }, { "docid": "0f2375c268d8ba1e37311d85e6ca60a2", "score": "0.69308114", "text": "public static function supportedExtensions();", "title": "" }, { "docid": "5eec29b8f83c17ff55853a7b8a44e488", "score": "0.6920609", "text": "protected function _getExtensions() {\n\t\t$exts = array($this->ext);\n\n\t\tif ($this->ext !== '.mustache') {\n\t\t\t$exts[] = '.mustache';\n\t\t}\n\n\t\tif ($this->ext !== '.ctp') {\n\t\t\t$exts[] = '.ctp';\n\t\t}\n\n\t\treturn $exts;\n\t}", "title": "" }, { "docid": "c03f11e34a0850de41e8060ed4c43846", "score": "0.6894426", "text": "public static function getLoadedExtensionListArray() {}", "title": "" }, { "docid": "6c04e86ce36041fd186cc1516f455b88", "score": "0.6891552", "text": "public function getAllowedExtensions()\n\t{\n\t\treturn $this->allowedExtensions;\n\t}", "title": "" }, { "docid": "8e5a85804051ed16ad99e60998d71bf8", "score": "0.68686104", "text": "protected function getExtensions()\n {\n $type = new HCaptchaType($this->valueFetcher, self::SITE_KEY);\n\n return [\n // register the type instances with the PreloadedExtension\n new PreloadedExtension([$type], []),\n ];\n }", "title": "" }, { "docid": "075b118086989acedc52ef49e07d8cbe", "score": "0.6861063", "text": "protected function getMissingPhpModulesOfExtensions() {}", "title": "" }, { "docid": "53a6a8a0c80f8a533d9a2a768d1b6493", "score": "0.6818826", "text": "public function extensions();", "title": "" }, { "docid": "3f6905408047eec9ab16827f95054676", "score": "0.6818618", "text": "public function getExtensionKeys() {}", "title": "" }, { "docid": "09ba16b5b257ff4698e1fd5538eec5c9", "score": "0.67984974", "text": "public function getExtension() {}", "title": "" }, { "docid": "09ba16b5b257ff4698e1fd5538eec5c9", "score": "0.6797269", "text": "public function getExtension() {}", "title": "" }, { "docid": "8777a4cc1e972730a01e69ea2d078484", "score": "0.67705053", "text": "public function getExtension();", "title": "" }, { "docid": "8777a4cc1e972730a01e69ea2d078484", "score": "0.67705053", "text": "public function getExtension();", "title": "" }, { "docid": "8777a4cc1e972730a01e69ea2d078484", "score": "0.67705053", "text": "public function getExtension();", "title": "" }, { "docid": "8777a4cc1e972730a01e69ea2d078484", "score": "0.67705053", "text": "public function getExtension();", "title": "" }, { "docid": "1433a1fe844d0eeb8217492aff374f23", "score": "0.67099434", "text": "function getExtension() ;", "title": "" }, { "docid": "a2c008258bd4a15461bcbe72adf7b30d", "score": "0.669504", "text": "private function getExtensionsValidate(){\n foreach ($this->extensions as $value) {\n $this->resExtensions[$value] = $this->getCheckExtension($value);\n }\n return $this->resExtensions;\n }", "title": "" }, { "docid": "e2a5bdc54de9a7913d24a940fbb7011b", "score": "0.66793555", "text": "public function getPbxExtensionList()\n {\n return $this->_get('v1/pbx/internal/');\n }", "title": "" }, { "docid": "e38e9c189a0e1b3d0c1d6e217f6a20b9", "score": "0.66749007", "text": "public function loadInstalled()\n {\n if (!File::exists($this->metaFile))\n return;\n\n $this->installedExtensions = json_decode(File::get($this->metaFile, true), true) ?: [];\n }", "title": "" }, { "docid": "50feb5d7371d23e615de62a55a224057", "score": "0.66687953", "text": "public function getSupportedExtensions() {\n\t\t$this->initFormats();\n\n\t\treturn array_keys( $this->fileExtensions );\n\t}", "title": "" }, { "docid": "2e2111c162349fda5933f0ac1c0ed256", "score": "0.66401756", "text": "protected static function extensions()\n\t{\n\t\tif ( !! static::check_safe_mode()) return ;\n\n\t\t$memory = Core::memory();\n\t\t$availables = (array) $memory->get('extensions.available', array());\n\t\t$actives = (array) $memory->get('extensions.active', array());\n\n\t\tforeach ($actives as $extension => $config)\n\t\t{\n\t\t\tif (isset($availables[$extension]))\n\t\t\t{\n\t\t\t\tExtension::start($extension, $config);\n\t\t\t}\n\t\t}\n\n\t\t// Resynchronize all active extension, this to ensure all\n\t\t// configuration is standard.\n\t\t$memory->put('extensions.active', Extension::all());\n\t}", "title": "" }, { "docid": "ca2558d0d49d8246b53c678c37dfd2ac", "score": "0.6636846", "text": "function load_extensions () {\n $path = basepath('extensions/*.php');\n \n foreach (glob($path, GLOB_NOSORT) as $extension) {\n require $extension;\n }\n}", "title": "" }, { "docid": "93443b7a4cf928fb36148931fd691475", "score": "0.6586105", "text": "public function getAllowedExtensions()\n {\n return array_keys($this->_allowedExtensions);\n }", "title": "" }, { "docid": "764d143b812ec17087113fb5e2dac7de", "score": "0.6585295", "text": "public function getExtensionNames() : array\n {\n return array_keys($this->_extensions);\n }", "title": "" }, { "docid": "3f56048a561234ba38e1ed724dd71103", "score": "0.6583753", "text": "function extensionList_installed()\t{\n\t\tglobal $TYPO3_LOADED_EXT;\n\n\t\tlist($list,$cat)=$this->getInstalledExtensions();\n\n\t\t// Available extensions\n\t\tif (is_array($cat[$this->MOD_SETTINGS['listOrder']]))\t{\n\t\t\t$content='';\n\t\t\t$lines=array();\n\t\t\t$lines[]=$this->extensionListRowHeader(' class=\"bgColor5\"',array('<td><img src=\"clear.gif\" width=\"18\" height=\"1\" alt=\"\" /></td>'));\n\n\t\t\t$allKeys=array();\n\t\t\tforeach($cat[$this->MOD_SETTINGS['listOrder']] as $catName => $extEkeys)\t{\n\t\t\t\tif(!$this->MOD_SETTINGS['display_obsolete'] && $catName=='obsolete') continue;\n\n\t\t\t\t$allKeys[]='';\n\t\t\t\t$allKeys[]='TYPE: '.$catName;\n\n\t\t\t\tnatcasesort($extEkeys);\n\t\t\t\treset($extEkeys);\n\t\t\t\t$extensions = array();\n\t\t\t\twhile(list($extKey)=each($extEkeys))\t{\n\t\t\t\t\t$allKeys[]=$extKey;\n\t\t\t\t\tif ((!$list[$extKey]['EM_CONF']['shy'] || $this->MOD_SETTINGS['display_shy']) &&\n\t\t\t\t\t\t\t($list[$extKey]['EM_CONF']['state']!='obsolete' || $this->MOD_SETTINGS['display_obsolete'])\n\t\t\t\t\t && $this->searchExtension($extKey,$list[$extKey]))\t{\n\t\t\t\t\t\t$loadUnloadLink = t3lib_extMgm::isLoaded($extKey)?\n\t\t\t\t\t\t'<a href=\"'.htmlspecialchars('index.php?CMD[showExt]='.$extKey.'&CMD[remove]=1&CMD[clrCmd]=1&SET[singleDetails]=info').'\">'.$this->removeButton().'</a>':\n\t\t\t\t\t\t'<a href=\"'.htmlspecialchars('index.php?CMD[showExt]='.$extKey.'&CMD[load]=1&CMD[clrCmd]=1&SET[singleDetails]=info').'\">'.$this->installButton().'</a>';\n\t\t\t\t\t\tif (in_array($extKey,$this->requiredExt))\t{\n\t\t\t\t\t\t\t$loadUnloadLink='<strong>'.$GLOBALS['TBE_TEMPLATE']->rfw('Rq').'</strong>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$theRowClass = t3lib_extMgm::isLoaded($extKey)? 'em-listbg1' : 'em-listbg2';\n\t\t\t\t\t\t$extensions[]=$this->extensionListRow($extKey,$list[$extKey],array('<td class=\"bgColor\">'.$loadUnloadLink.'</td>'),$theRowClass);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(count($extensions)) {\n\t\t\t\t\t$lines[]='<tr><td colspan=\"'.(3+$this->detailCols[$this->MOD_SETTINGS['display_details']]).'\"><br /></td></tr>';\n\t\t\t\t\t$lines[]='<tr><td colspan=\"'.(3+$this->detailCols[$this->MOD_SETTINGS['display_details']]).'\"><img src=\"'.$GLOBALS['BACK_PATH'].'gfx/i/sysf.gif\" width=\"18\" height=\"16\" align=\"top\" alt=\"\" /><strong>'.$this->listOrderTitle($this->MOD_SETTINGS['listOrder'],$catName).'</strong></td></tr>';\n\t\t\t\t\t$lines[] = implode(chr(10),$extensions);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$content.='\n\n\n<!--\nEXTENSION KEYS:\n\n'.trim(implode(chr(10),$allKeys)).'\n\n-->\n\n';\n\n\t\t\t$content.= t3lib_BEfunc::cshItem('_MOD_tools_em', 'avail', $GLOBALS['BACK_PATH'],'|<br/>');\n\t\t\t$content.= 'If you want to use an extension in TYPO3, you should simply click the \"plus\" button '.$this->installButton().' . <br />\n\t\t\t\t\t\tInstalled extensions can also be removed again - just click the remove button '.$this->removeButton().' .<br /><br />';\n\n\t\t\t$content.= 'Look up: <input type=\"text\" name=\"_lookUp\" value=\"'.htmlspecialchars($this->lookUpStr).'\" /><input type=\"submit\" value=\"Search\"/><br/><br/>';\n\n\t\t\t$content.= '<table border=\"0\" cellpadding=\"2\" cellspacing=\"1\">'.implode('',$lines).'</table>';\n\n\t\t\t$this->content.=$this->doc->section('Available Extensions - Grouped by: '.$this->MOD_MENU['listOrder'][$this->MOD_SETTINGS['listOrder']],$content,0,1);\n\t\t}\n\t}", "title": "" }, { "docid": "8c615b866d2dc0aa82662fd08aaec3bc", "score": "0.6580193", "text": "public static function getExtensionsPath() : string {}", "title": "" }, { "docid": "bf1406026d1b10d3f08e8fe6e1fe761e", "score": "0.6579755", "text": "static function get_all_installed_modules()\n {\n $all_storages = Storage::getAll(self::INSTALLED_MODULES_STORAGE_DIR);\n \n $result = array();\n \n foreach ($all_storages as $store)\n {\n $result[] = $store->readAll();\n }\n \n \n \n return $result;\n }", "title": "" }, { "docid": "273398492769100e343b47542a11e83b", "score": "0.6568946", "text": "protected function callExtensions()\n {\n\n $extensionList = array();\n\n foreach (static::$extensions as $name => $extension) {\n\n $sublist = array();\n foreach ((array)$extension as $ext) {\n $sublist[] = call_user_func($ext);\n }\n $extensionList[$name] = $sublist;\n }\n\n return $extensionList;\n }", "title": "" }, { "docid": "0be7668e230fee4ffd6896fcdec8d59b", "score": "0.65587044", "text": "protected function collectExtensions()\n {\n // TODO: use DirectoryIterator\n $this->extensionsList = [];\n $pluginsFolderContents = scandir($this->getPluginsDir());\n $excludedDirectoriesNames = ['..', '.'];\n foreach ($pluginsFolderContents as $pluginsFolderItem) {\n if (is_dir($this->getPluginsDir() . $pluginsFolderItem) && !in_array($pluginsFolderItem, $excludedDirectoriesNames) ) {\n $extensionBootstrapClass = $this->getPluginBootstrapClassName($pluginsFolderItem);\n /** @var \\App\\Core\\PluginInterface $extensionBootstrap */\n $extensionBootstrap = new $extensionBootstrapClass;\n $extensionName = $extensionBootstrap->getName();\n\n /* Throw exception if an extension with the same name has been previously registered */\n if (isset($this->extensionsList[$extensionName])) {\n throw new Exception(\"The extension with name $extensionName has been already regisered\");\n }\n $this->extensionsList[$extensionName] = $extensionBootstrap;\n }\n }\n\n return $this->extensionsList;\n }", "title": "" }, { "docid": "72fa52de95e5ea90fed593e4d4b123a0", "score": "0.6553723", "text": "public function getSupportedFileExtensions() {}", "title": "" }, { "docid": "c395ee16b1e762c2f94e8ed77999b183", "score": "0.6548462", "text": "public function getMimeExtensions() : array {}", "title": "" }, { "docid": "66853a20991e3d1e893e0220424430a6", "score": "0.65449494", "text": "public function extensions()\n {\n }", "title": "" }, { "docid": "3ad82bfb603cb398e6ae7ca2fc33edd2", "score": "0.652263", "text": "protected function loadTypesExtensions(): array\n {\n return [];\n }", "title": "" }, { "docid": "a72c8c5515693503fd96f5a408796947", "score": "0.64861447", "text": "protected function registerExtensionTables()\n {\n return [];\n }", "title": "" }, { "docid": "dd7e55d36d8bc1864a229d1352e15ac9", "score": "0.648495", "text": "private function prepare_extensions() {\n\n\t\tif ( ! is_app_installed() ) {\n\n\t\t\treturn false;\n\n\t\t}\n\n\t\t// Are we in safe mode?\n\t\tif ( 'on' == blog_setting( 'flag_ext_safe' ) ) {\n\n\t\t\treturn false;\n\n\t\t}\n\n\t\t// Get all extensions.\n\t\t$extensions = get_extensions();\n\n\t\t// Get all activated extensions.\n\t\t$active_extensions = active_extensions();\n\n\t\t// Do we have any active?\n\t\tif ( ! empty( $active_extensions ) ) {\n\n\t\t\t// Loop through and include all active listeners.\n\t\t\tforeach ( $active_extensions as $extension ) {\n\n\t\t\t\t// Set the extension as an object.\n\t\t\t\t$extension = $extensions[ $extension ];\n\n\t\t\t\t// Check the core extension file exists.\n\t\t\t\tif ( file_exists( $extension->ext_func_file() ) ) {\n\n\t\t\t\t\t// Include the extension file.\n\t\t\t\t\trequire_once( $extension->ext_func_file() );\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn true;\n\n\t}", "title": "" }, { "docid": "86b810cf23d22a89aef3f6d4687341c8", "score": "0.64582616", "text": "public function plistExtensions()\n\t{\n\t\tif (self::$_plistExtensions == null)\n\t\t{\n\t\t\tself::$_plistExtensions =\n\t\t\tSettings::sharedSettings()->objectForKey(\"plist_extensions\");\n\t\t}\n\t\treturn self::$_plistExtensions;\n\t}", "title": "" }, { "docid": "bd48c2b9f91ca3bf0b38c66ecb27a29b", "score": "0.64545333", "text": "public function allowedExtensions()\n\t{\n\t\treturn array_keys( $this->_ext );\n\t}", "title": "" }, { "docid": "774ec09c3c20e1c720b796d49d6d5d1b", "score": "0.6435761", "text": "public function _getExtensionList($extname)\n {\n return isset($this->_extensions[$extname])\n ? $this->_extensions[$extname]\n : array();\n }", "title": "" }, { "docid": "ec9eee37970a0f04f72f6bcdefe26d47", "score": "0.6390329", "text": "public function getFileExtensions(): array\n {\n return $this->fileExtensions;\n }", "title": "" }, { "docid": "ea75b1247eb56e2ead47d8903e7e4124", "score": "0.6369935", "text": "final public function getTwigExtensions()\n {\n return $this->extensions;\n }", "title": "" }, { "docid": "d32e241784b6db206e6b58c14b5a63d7", "score": "0.6361386", "text": "public function InformationAboutIWDExtensions()\r\n {\r\n $extensions_info = \"<ul>\";\r\n\r\n $modules = ( array )Mage::getConfig()->getNode('modules')->children();\r\n foreach ($modules as $key => $value) {\r\n if ((strpos($key, 'IWD_', 0) === 0)) {\r\n $extensions_info .= \"<li>{$key} (v {$value->version}) - {$value->active} - ({$value->codePool})</li>\";\r\n }\r\n }\r\n\r\n return $extensions_info . \"</ul>\";\r\n }", "title": "" }, { "docid": "c1750f51195c845ba5dee2cebd2ecfa1", "score": "0.6330925", "text": "public function getLoadedExtensions($zendExtensions = false)\n {\n try {\n $loadedExtensions = get_loaded_extensions($zendExtensions);\n } catch (\\Exception $e) {\n $this->logger->error($e);\n $loadedExtensions = null;\n }\n\n return $loadedExtensions;\n }", "title": "" }, { "docid": "ec5b2633a2e4305e48a41028f7e44d07", "score": "0.6324518", "text": "function getExtensions($plugin, $extension = '') {\r\n\t\tjimport('joomla.filesystem.folder');\r\n\t\tjimport('joomla.filesystem.file');\r\n\t\t\r\n\t\t$path \t\t= JCE_PLUGINS.DS.$plugin.DS.'extensions';\r\n\t\t$extensions = array();\t\r\n\t\t\r\n\t\tif (JFolder::exists($path)) {\r\n\t\t\t$types = JFolder::folders($path);\r\n\t\t\t\r\n\t\t\tforeach ($types as $type) {\r\n\t\t\t\tif ($extension) {\r\n\t\t\t\t\tif (JFile::exists($path.DS.$type.DS.$extension.'.xml') && JFile::exists($path.DS.$type.DS.$extension.'.php')) {\r\n\t\t\t\t\t\t$object = new StdClass();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$object->folder \t= $type;\r\n\t\t\t\t\t\t$object->extension \t= $extension;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$extensions[] = $object;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$files = JFolder::files($path.DS.$type, '\\.xml$');\r\n\t\t\t\t\tforeach ($files as $file) {\r\n\t\t\t\t\t\t$object = new StdClass();\r\n\t\t\t\t\t\t$object->folder = $type;\r\n\t\t\t\t\t\t$name = JFile::stripExt($file);\r\n\t\t\t\t\t\tif (JFile::exists($path.DS.$type.DS.$name.'.php')) {\r\n\t\t\t\t\t\t\t$object->extension = $name;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$extensions[] = $object;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $extensions;\r\n\t}", "title": "" }, { "docid": "115e998f8a1913d41deee4bbfb810b34", "score": "0.6311475", "text": "protected function getExtensions()\r\n {\r\n return array(new ValidatorExtension(Validation::createValidator()));\r\n }", "title": "" }, { "docid": "91f89834bc8b3baedc45630f74520b93", "score": "0.6294528", "text": "public function getSimilarExtensions() {\n if (!empty($this->remoteInfo['similar'])) return $this->remoteInfo['similar'];\n return array();\n }", "title": "" }, { "docid": "f717e613dd92f9b8be91843741c4f515", "score": "0.62921774", "text": "private function getExtension()\n\t{\n\t\treturn $this->extension;\n\t}", "title": "" }, { "docid": "6ed5d9a542f3ee417c28e6113d497e74", "score": "0.62902814", "text": "public function getConfigFileExtensions()\n {\n return $this->configFileExtensions;\n }", "title": "" }, { "docid": "4524dd4872871a665eef089a1728359d", "score": "0.6253203", "text": "public function get()\n {\n $list = array();\n\n $list['__self'] = $this->own();\n $list[_('Composer Packages')] = $this->composerPackages();\n\n $extensionList = $this->callExtensions();\n\n $list = array_merge_recursive($extensionList, $list);\n uksort($list, 'strnatcmp');\n\n $list = array_merge(array('__self' => $this->own()), $list);\n\n return $list;\n }", "title": "" }, { "docid": "824b2a4dd2409b4fc6b94ac4b3960c3e", "score": "0.6251322", "text": "public static function detect()\n\t{\n\t\t$extensions = array();\n\t\t$memory = Core::memory();\n\n\t\tif (is_file(path('app').'/orchestra.json'))\n\t\t{\n\t\t\t$extensions[DEFAULT_BUNDLE] = json_decode(file_get_contents(path('app').'/orchestra.json'));\n\t\t}\n\n\t\t$directory = path('bundle');\n\n\t\t$items = new fIterator($directory, fIterator::SKIP_DOTS);\n\n\t\tforeach ($items as $item)\n\t\t{\n\t\t\tif ($item->isDir())\n\t\t\t{\n\t\t\t\tif (is_file($item->getRealPath().'/orchestra.json'))\n\t\t\t\t{\n\t\t\t\t\t$extensions[$item->getFilename()] = json_decode(file_get_contents($item->getRealPath().'/orchestra.json'));\n\t\t\t\t\tif ($extensions[$item->getFilename()] === NULL) {\n\t\t\t\t\t\t//json_decode couldn't parse, throw an exception\n\t\t\t\t\t\tthrow new Exception('Cannot decode orchestra.json file in extension '.$item->getFilename());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$cached = array();\n\n\t\t// we should cache extension to be stored to Hybrid\\Memory to avoid \n\t\t// over usage of database space\n\t\tforeach ($extensions as $name => $extension)\n\t\t{\n\t\t\t$ext_name = isset($extension->name) ? $extension->name : null;\n\t\t\t$ext_config = isset($extension->config) ? $extension->config : array();\n\n\t\t\tif (is_null($ext_name)) continue;\n\n\t\t\t$cached[$name] = array(\n\t\t\t\t'name' => $ext_name,\n\t\t\t\t'config' => (array) $ext_config,\n\t\t\t);\n\t\t}\n\n\t\t$memory->put('extensions.available', $cached);\n\n\t\treturn $extensions;\n\t}", "title": "" }, { "docid": "f83ce1bdd614a7b7207a1063ad16a4e8", "score": "0.6247033", "text": "public function getAccessibleExtensionFolders() : array {}", "title": "" }, { "docid": "ee78a03fb5c44ee5086ce1ae40626a45", "score": "0.624617", "text": "public function reloadAvailableExtensions() {}", "title": "" }, { "docid": "ee78a03fb5c44ee5086ce1ae40626a45", "score": "0.62427396", "text": "public function reloadAvailableExtensions() {}", "title": "" }, { "docid": "dd398a848c217bd348ee23a6416f7a89", "score": "0.6240687", "text": "public function extension()\n\t{\n\t\treturn $this->filesystem->extension($this->path);\n\t}", "title": "" }, { "docid": "9aec04ac20e244f47233d320a5ec749f", "score": "0.62121534", "text": "abstract protected function getExtension();", "title": "" }, { "docid": "931b532bb2ef87c7375a4624cf1b38e3", "score": "0.6207316", "text": "public function getInstalledPlugins()\n {\n $records = PluginList::getAllPlugins();\n\n $plugins = array();\n\n foreach ($records as $record) {\n $plugins[$record->name] = $this->getPluginInfo($record->name);\n }\n\n return $plugins;\n }", "title": "" }, { "docid": "5de8ea712cd9927bdd19c56f3cc51fd4", "score": "0.61819494", "text": "public static function getExtensionFolders() {\n\t\t$extFolders = array();\n\t\t$d = dir(self::getExtDir());\n\t\tif ($d) {\n\t\t\twhile (false !== ($entry = $d->read())) {\n\t\t\t if($entry != '.' && $entry != '..' && is_dir(self::getExtDir().$entry))\n\t\t\t $extFolders[] = $entry;\n\t\t\t}\n\t\t\t$d->close();\n\t\t}\n\n\t\treturn $extFolders;\n\t}", "title": "" }, { "docid": "4af95891b1682f5a7314927c0d628dd6", "score": "0.61788356", "text": "protected function getExtensionGuesser() {\n return ExtensionGuesser::getInstance();\n }", "title": "" }, { "docid": "2ebb9fe6fac13d1001d7c4ea0ff9a77a", "score": "0.6177089", "text": "function Jobhunt_Extensions() {\n\treturn Jobhunt_Extensions::instance();\n}", "title": "" }, { "docid": "001d8151ad267c55b3a8691aa31caaeb", "score": "0.61753887", "text": "public function getExtension()\n {\n return $this->extension;\n }", "title": "" }, { "docid": "001d8151ad267c55b3a8691aa31caaeb", "score": "0.61753887", "text": "public function getExtension()\n {\n return $this->extension;\n }", "title": "" }, { "docid": "001d8151ad267c55b3a8691aa31caaeb", "score": "0.61753887", "text": "public function getExtension()\n {\n return $this->extension;\n }", "title": "" } ]
13d1a32e46622e5e0aaeeb4dd240b331
A Method to implement before running the processor. Return false to break the execution (ie. if some criteria arent't met)
[ { "docid": "771f8f9693f529d615212bf4dd24009d", "score": "0.0", "text": "protected function beforeRun(array &$properties = array(), array &$options = array())\n {\n\n }", "title": "" } ]
[ { "docid": "3b76571e0a75a0773395333bb8262abf", "score": "0.675329", "text": "public function process() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "00d5bf0a291f923b39ff83ca620a070c", "score": "0.63851297", "text": "public abstract function should_execute();", "title": "" }, { "docid": "106ae5b5385366db3bc89c40eaed48dd", "score": "0.6232365", "text": "public function simulateEnabledMatchSpecificConditionsSucceeds() {}", "title": "" }, { "docid": "106ae5b5385366db3bc89c40eaed48dd", "score": "0.6232319", "text": "public function simulateEnabledMatchSpecificConditionsSucceeds() {}", "title": "" }, { "docid": "2fb29458725638c390de034370b22efe", "score": "0.618009", "text": "function processa()\n {\n return true;\n }", "title": "" }, { "docid": "4ec3bf82a9ae58a3322662ca4f13ddd5", "score": "0.61417806", "text": "public function should_execute()\n {\n }", "title": "" }, { "docid": "4ec3bf82a9ae58a3322662ca4f13ddd5", "score": "0.61417806", "text": "public function should_execute()\n {\n }", "title": "" }, { "docid": "4ec3bf82a9ae58a3322662ca4f13ddd5", "score": "0.61417806", "text": "public function should_execute()\n {\n }", "title": "" }, { "docid": "4ec3bf82a9ae58a3322662ca4f13ddd5", "score": "0.61417806", "text": "public function should_execute()\n {\n }", "title": "" }, { "docid": "4ec3bf82a9ae58a3322662ca4f13ddd5", "score": "0.61417806", "text": "public function should_execute()\n {\n }", "title": "" }, { "docid": "4ec3bf82a9ae58a3322662ca4f13ddd5", "score": "0.61417806", "text": "public function should_execute()\n {\n }", "title": "" }, { "docid": "4ec3bf82a9ae58a3322662ca4f13ddd5", "score": "0.61417806", "text": "public function should_execute()\n {\n }", "title": "" }, { "docid": "4ec3bf82a9ae58a3322662ca4f13ddd5", "score": "0.61417806", "text": "public function should_execute()\n {\n }", "title": "" }, { "docid": "4ec3bf82a9ae58a3322662ca4f13ddd5", "score": "0.61417806", "text": "public function should_execute()\n {\n }", "title": "" }, { "docid": "0f104430c9cab5cd1f418afa4f350044", "score": "0.5922935", "text": "function needsExecution() ;", "title": "" }, { "docid": "9b5e87cd758c35837f5555203199b1f5", "score": "0.5862614", "text": "public function simulateEnabledMatchAllConditionsSucceeds() {}", "title": "" }, { "docid": "9b5e87cd758c35837f5555203199b1f5", "score": "0.58620286", "text": "public function simulateEnabledMatchAllConditionsSucceeds() {}", "title": "" }, { "docid": "eaa9387fccc0c80d56cb7cdebeb6f3e3", "score": "0.5860989", "text": "public function isProcessed() {}", "title": "" }, { "docid": "4c3711014af970b5fd3294b873e0d377", "score": "0.5851191", "text": "public function preExecuteCheck()\n {\n return true;\n }", "title": "" }, { "docid": "c69ef75796a6d208424b9f58b7ddfe79", "score": "0.5765722", "text": "public function needsExecution() {}", "title": "" }, { "docid": "c69ef75796a6d208424b9f58b7ddfe79", "score": "0.5765722", "text": "public function needsExecution() {}", "title": "" }, { "docid": "c69ef75796a6d208424b9f58b7ddfe79", "score": "0.57648546", "text": "public function needsExecution() {}", "title": "" }, { "docid": "c69ef75796a6d208424b9f58b7ddfe79", "score": "0.57648546", "text": "public function needsExecution() {}", "title": "" }, { "docid": "c69ef75796a6d208424b9f58b7ddfe79", "score": "0.57648546", "text": "public function needsExecution() {}", "title": "" }, { "docid": "e3f2b755663276846597abc542e8b795", "score": "0.5728035", "text": "protected function shouldRun()\n {\n return false === (bool) $this->configurationManager->getConfigurationValueByPath('FE/pageUnavailable_force');\n }", "title": "" }, { "docid": "310ffd6e75355e65430d5964ee1d7698", "score": "0.5715523", "text": "abstract protected function _preProcess();", "title": "" }, { "docid": "83b10e01b8c29950c5c3dabe870452f6", "score": "0.56932104", "text": "function isExecuted() ;", "title": "" }, { "docid": "7a2851affe0c0059b3c004568722ccaa", "score": "0.56726396", "text": "protected function beforeRun(){\n\t\treturn true;\n\t}", "title": "" }, { "docid": "cc15f4fa0e317a0e3b21d1dc26fc6f81", "score": "0.56455743", "text": "function beforeValidate() {\n\t\t\treturn !($this->codeExists($this->data['ReductionCode']['code'], $this->data['ReductionCode']['event_id']));\n\t\t}", "title": "" }, { "docid": "e03462843b68f29ff754c190c41b755f", "score": "0.5636198", "text": "public function execute(): bool {\r\n\r\n //Check if validation already executed before\r\n if(null !== $this -> validated) {\r\n return $this -> validated;\r\n }\r\n\r\n $passed = true;\r\n\r\n foreach($this -> fieldCollection as $fieldItem) {\r\n\r\n /** @var CollectionAbstract $fieldItem */\r\n $fieldNames = $fieldItem -> getFieldNames();\r\n $ruleSets = $fieldItem -> getRuleCollection();\r\n $middleware = $this -> getMiddleware($fieldItem);\r\n\r\n foreach($fieldNames as $fieldName) {\r\n \r\n //Find the values for each field in a combine instance and process them\r\n $this -> fillCombineValues($fieldName);\r\n\r\n //Retrieve the value and path for the given field name\r\n $path = $this -> getPath($fieldName);\r\n\r\n foreach($path as $info) {\r\n\r\n //Add the value to the validated data after executing the middleware\r\n if(null !== $info['path']) {\r\n\r\n //Execute middleware\r\n foreach($middleware as $middlewareClass) {\r\n $info['value'] = $this -> executeMiddleware($middlewareClass, $fieldName, $info['value']);\r\n }\r\n\r\n $this -> addValidatedData($info['path'], $fieldName, $info['value'], $fieldItem);\r\n }\r\n\r\n foreach($ruleSets as $ruleSet) {\r\n\r\n /** @var RuleSet $ruleSet */\r\n $class = $ruleSet -> getNamespace();\r\n\r\n /** @var RuleAbstract $rule */\r\n $rule = new $class(...$ruleSet -> getParameters());\r\n $rule -> setValidationData($this -> validationData);\r\n $rule -> setFieldName($fieldName);\r\n\r\n //Set custom message if found\r\n $message = $this -> message -> find($fieldName, $rule -> getName());\r\n\r\n if(null !== $message) {\r\n $rule -> setMessage($message);\r\n }\r\n\r\n $valid = $this -> executeRule($rule, $info['value']);\r\n\r\n //Check if the rule is valid or not\r\n if(false === $valid) {\r\n\r\n $this -> addValidationError($info['path'] ?? [$fieldName], $info['value'], $rule);\r\n $passed = false;\r\n\r\n //Break the loop if bailing is globally enabled\r\n if(true === $fieldItem -> isBail()) {\r\n break;\r\n }\r\n }\r\n\r\n //Break the loop if the rule should bail the rest\r\n if(true === $rule -> isBail()) {\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n $this -> validated = $passed;\r\n return $passed;\r\n }", "title": "" }, { "docid": "672ad81741530d45458507d9ff1bec2a", "score": "0.5626403", "text": "private function Should_Run_Task() {\n\t\t$rules = $this->Get_Business_Rules();\n\t\t\n\t\t$time = time();\n\t\t$today = date('Y-m-d', $time);\n\t\t$named_day = date('l', $time);\n\t\t\n\t\t// Cheating.. If the rule is set to NULL we're cheating\n\t\t// and not creating a business rule for it, so just run it.\n\t\tif(is_null($this->business_rule_name))\n\t\t{\n\t\t\t$this->Get_Server()->log->Write(\"Developer was lazy and didn't create a business rule! Running task anyways..\");\n\t\t\treturn TRUE;\n\t\t}\n\t\t\n\t\tif(! isset($rules[$this->business_rule_name]))\n\t\t{\n\t\t\t$this->Get_Server()->log->Write(\"Can't find business rule name: {$this->business_rule_name}\");\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\t$days = $rules[$this->business_rule_name];\n\n\t\t//[#44294] check 'day_special' rule (overrides day of week & holidays)\n\t\tif(isset($days['Special Days']))\n\t\t{\n\t\t\t$special_days = explode(',', $days['Special Days']);\t\n\t\t\tforeach($special_days as $special_day)\n\t\t\t{\n\t\t\t\tswitch($special_day)\n\t\t\t\t{\n\t\t\t\t\tcase 'last of month':\t\t\t\t\t\t\n\t\t\t\t\t\tif(date('t', $time) == date('j', $time))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->Get_Server()->log->Write(\"Running task for special day 'last of month'\");\n\t\t\t\t\t\t\treturn TRUE;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (strtolower($days[$named_day]) == 'yes') \n\t\t{\n\t\t\tif (strtolower($days['Holidays']) == 'no') \n\t\t\t{\n\t\t\t\t$holidays = Fetch_Holiday_List();\n\t\t\t\t$check_day = strtotime(\"+1 day\", $today);\n\t\t\t\tif (in_array($check_day, $holidays)) \n\t\t\t\t{\n\t\t\t\t\treturn FALSE;\n\t\t\t\t} \n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\treturn TRUE;\n\t\t\t\t}\n\t\t\t} \n\t\t\telse \n\t\t\t{\n\t\t\t\treturn TRUE;\n\t\t\t}\n\t\t} \n\t\telse \n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t}", "title": "" }, { "docid": "7f6ec45c53d7e1af7647b44eca8765bf", "score": "0.56239146", "text": "function shouldExecute()\n {\n return Dice::roll(100, 100);\n }", "title": "" }, { "docid": "d6b760294bd8e01b302992677f3b57a0", "score": "0.56192726", "text": "protected function beforeProcess() {\n }", "title": "" }, { "docid": "79b9fa8dab072b67764e101339818005", "score": "0.5617648", "text": "public function run(){\n\t\tif (($this->result=call_user_func_array($this->method, $this->params))) {\n\t\t\treturn true;\n\t\t} else return false;\n\t}", "title": "" }, { "docid": "b7bb71927cd029f5359bbfe4bf978d18", "score": "0.55986565", "text": "public static function mustRunBefore(): iterable;", "title": "" }, { "docid": "706d11867a1a9c13f6f6d79a1f329102", "score": "0.55954725", "text": "protected function willExecute() {\n return;\n }", "title": "" }, { "docid": "0a84d8edc04e304812b068a8361a2c76", "score": "0.5587586", "text": "function CheckCondition()\n\t{\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3ceb9072dcd843510424df7c009b51d2", "score": "0.5577464", "text": "private function shouldProcess($path) {\n\n //Handle something special\n return true;\n\n }", "title": "" }, { "docid": "c4e0bca192b2d6ceba80fd5c756b7fc1", "score": "0.5575944", "text": "public function pass()\n\t{\n\t\t$trace = debug_backtrace();\n\n\t\t// If the test has already failed then we don't want to set it to true.\n\t\tif ( ! empty($trace[2]['function']) and (is_int($trace[2]['function']) or is_string($trace[2]['function']))\n\t\t\tand @array_key_exists($trace[2]['function'], $this->results)\n\t\t and $this->results[$trace[2]['function']] === false)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$this->results[$trace[2]['function']] = true;\n\t}", "title": "" }, { "docid": "324ba431177d7ce8808920747c818aa2", "score": "0.5573894", "text": "public function isProcessed(): bool;", "title": "" }, { "docid": "75bfec3a9083b263f23e26704efa10eb", "score": "0.5564327", "text": "public function _break()\n {\n //set the internal execution flag to false, stopping execution\n $this->executing = false;\n }", "title": "" }, { "docid": "d90a267e7e767fbce0f83ddda59187f1", "score": "0.55537075", "text": "public function should_run()\n\t{\n\t\treturn $this->config['delete_pms_last_gc'] < time() - $this->config['delete_pms_gc'];\n\t}", "title": "" }, { "docid": "cf198db1e0be5c8100b6d758a71f7670", "score": "0.5547534", "text": "public function preProcess()\n { \n $errors = $this->get( 'error' );\n $this->assign('errors', $errors );\n $errors = null;\n return true;\n }", "title": "" }, { "docid": "7e9ba9f5a512b800f973f7813a7eb70f", "score": "0.5531839", "text": "protected function preProcess() {}", "title": "" }, { "docid": "79b735266bb4496073e9f2b2f6c059f1", "score": "0.55247587", "text": "public function qualifyToStart(): bool;", "title": "" }, { "docid": "58f8fb8ca1acaa7add2d6d8c2e6ac915", "score": "0.5522379", "text": "private function shouldProcess()\n {\n if (count($this->settings['whitelist']) > 0) {\n return in_array($this->templateName, $this->settings['whitelist'], true);\n }\n\n if (count($this->settings['blacklist']) > 0) {\n return !in_array($this->templateName, $this->settings['blacklist'], true);\n }\n\n return true;\n }", "title": "" }, { "docid": "d14c3118791b8f5fcdd7530cf8362802", "score": "0.55131584", "text": "public function requireFilterSubmit_result()\n\t{\n\t\treturn false;\n\t}", "title": "" }, { "docid": "2101d9733cea080582c5976485be032f", "score": "0.55111295", "text": "public function canProceed(): bool\n {\n if (!$this->isAllCompleted()) {\n throw new \\RuntimeException('Please fill all the necessary data');\n }\n\n if ($this->allInEurope()) {\n return true;\n }\n\n if ($this->allSameCountry() && !$this->isRussia() && !$this->someInHighRisk()) {\n return true;\n }\n\n if ($this->allSameCountry() && $this->isRussia()) {\n if ($this->nameFound()) {\n return false;\n }\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "0cd0a374db396b6ea8bd6008620a7556", "score": "0.551075", "text": "public function process() {\n foreach ($this->getStructure()->getTasks() as $t) {\n try {\n $t->process(); \n } catch (Exception $e) {\n throw $e;\n }\n }\n return TRUE;\n }", "title": "" }, { "docid": "b0ae75c62bfabb02e6bee2e5cb3401b6", "score": "0.5498316", "text": "public function call() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "852137f4107b23f63fa6e88cb868eac5", "score": "0.5478722", "text": "protected function _allowProcess()\n\t{\n\t\treturn ($this->helper->moduleEnabled() || $this->previewHelper->isAllowPreview());\n\t}", "title": "" }, { "docid": "80ff2f635415eb467544f8ee4ff3ed27", "score": "0.546262", "text": "public function execute()\n {\n $this->startRequestsFromQueue();\n\n if ($this->countActive()) {\n $this->perform();\n }\n\n return ($this->getNumberParallel() != 0) && ($this->countActive() >= $this->getNumberParallel());\n }", "title": "" }, { "docid": "6c2a78aa257a76b482e52693c9492463", "score": "0.5462389", "text": "public function process(): bool\n {\n $ret = call_user_func(\n $this->getConfig('callback'),\n $this->getQuery(),\n $this->getArgs(),\n $this\n );\n if ($ret === null) {\n return true;\n }\n\n return $ret;\n }", "title": "" }, { "docid": "372ad84fe1a81099a541127dc60a3405", "score": "0.54379064", "text": "public function execute($condition) {\r\n \r\n }", "title": "" }, { "docid": "2034d6c285fcfaaf5acf59cdaad0fb40", "score": "0.5431063", "text": "public function passes(): bool {\r\n return $this -> execute();\r\n }", "title": "" }, { "docid": "af51b2e039d3e5f092ae0aebf86b93e7", "score": "0.542997", "text": "public function preProcess();", "title": "" }, { "docid": "af51b2e039d3e5f092ae0aebf86b93e7", "score": "0.542997", "text": "public function preProcess();", "title": "" }, { "docid": "9e4a40a8c9261532aab87e918c2babb3", "score": "0.540251", "text": "public function canContinue()\n {\n return $this->number_of_rounds >= $this->getRoundsCount();\n }", "title": "" }, { "docid": "f4c5957aa336dcf8e8e4b344b01d4fad", "score": "0.53998613", "text": "public function fails(): bool {\r\n return !$this -> execute();\r\n }", "title": "" }, { "docid": "cc09a3784c8e5b5ab068e259cefe29b3", "score": "0.5398987", "text": "public function __execute(): bool;", "title": "" }, { "docid": "b9ad42a533d1bd21ae85e67a67a7a77d", "score": "0.5397067", "text": "public function failNoisily() :bool{\n\t\treturn !$this->failSilently;\n\t}", "title": "" }, { "docid": "755d8e5c350a293bcdd2bbaa7d8b0d5c", "score": "0.53884864", "text": "public function performChecks(){\n\t\t\n\t}", "title": "" }, { "docid": "211156a10e52d1415f3e1739dff02d77", "score": "0.53882176", "text": "public function getShouldExecute() : bool\n {\n }", "title": "" }, { "docid": "cb4ff6c55b9467585704ab9dc9a37cdd", "score": "0.5378161", "text": "public function automated() : bool;", "title": "" }, { "docid": "6d6bdf40dbc55a58532e4009982e1cf4", "score": "0.53764296", "text": "public function match() {\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "c7d6d5b388f8578d35e172c952cec728", "score": "0.53712595", "text": "protected function shouldExecute()\n {\n return !$this->job->isDryRun() || $this->get('executeInPreview');\n }", "title": "" }, { "docid": "53a66347712eb95a2fd0db163d0bcc57", "score": "0.53569126", "text": "function isOverExecuted()\n {\n if ($this->start_time+$this->max_execution_time<time()) return true;\n else return false;\n }", "title": "" }, { "docid": "356e003efea5f28c6b2a4eb609a5b286", "score": "0.5352023", "text": "public function processing() {\n return $this->bulkRunning() || count($this->get());\n }", "title": "" }, { "docid": "3e3fe8a27572ffe9f6babfadb6e28023", "score": "0.53496915", "text": "private function check()\n {\n foreach ($this->scheduler->getQueuedJobs() as $job) {\n if ($job->isDue(new DateTime()) === true) {\n\n $this->executeIfNotOverlapped($job);\n }\n }\n }", "title": "" }, { "docid": "822aa889fdd82dce8bc0e0df061ecd25", "score": "0.53491664", "text": "public function simulateDisabledMatchAllConditionsFailsOnFaultyExpression() {}", "title": "" }, { "docid": "822aa889fdd82dce8bc0e0df061ecd25", "score": "0.53479564", "text": "public function simulateDisabledMatchAllConditionsFailsOnFaultyExpression() {}", "title": "" }, { "docid": "f29be35bcf8f8c60746ef8584f63389d", "score": "0.53431654", "text": "public function isEvaluated()\n {\n // does not use compiler, must be false\n return false;\n }", "title": "" }, { "docid": "0014cbb954e7c4d18a8f040fbd1d3b3a", "score": "0.53206813", "text": "public static function before() {\n\t\t// Return true for the actions below to execute\n\t\treturn true;\n\t}", "title": "" }, { "docid": "52833d1acdda299c0b745b2c25634cfb", "score": "0.53086036", "text": "function after_process() {\n return false;\n }", "title": "" }, { "docid": "bff444f78c0db0e75248100e0c5c9bbb", "score": "0.53021085", "text": "function run_activity_pre()\n\t\t{\n\t\t\t//load agent data from database\n\t\t\t$this->bo_agent->init();\n\t\t\t\n\t\t\t//this will send an email only if the configuration says to do so\n\t\t\tif (!($this->bo_agent->send_start()))\n\t\t\t{\n\t\t\t\t$this->error[] = lang('Smtp Agent has detected some errors when sending email at the beginning of the activity');\n\t\t\t\t$ok = false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$ok = true;\n\t\t\t}\n\t\t\t$this->error[] = $this->bo_agent->get_error();\n\t\t\tif ($this->bo_agent->debugmode) echo '<br />START: Mail agent in DEBUG mode:'.implode('<br />',$this->error);\n\t\t\treturn $ok;\n\t\t}", "title": "" }, { "docid": "4292f0b8ce7814754f1d43e7b0d8337e", "score": "0.5299518", "text": "abstract public function isLoop();", "title": "" }, { "docid": "ebe67a21f8c472c21e05ea6248b46ed8", "score": "0.52910095", "text": "abstract protected function beforeRun($data);", "title": "" }, { "docid": "211e1eccaf8f81f1443ed9393a8ddba3", "score": "0.52767557", "text": "public function run(): bool\n {\n $this->search->update(['status' => Search::STATUS_RUNNING]);\n\n // we first need to crawl the search's entry point url\n $this->crawl($this->search->url, $entryPoint = true);\n\n // next, we crawl all search's urls\n while ($url = $this->getNextNotCrawledUrl()) {\n $this->crawl($url);\n\n // check if the search has been deleted during the crawl process\n //if ($this->searchMustEnd()) {\n // return false;\n //}\n }\n\n // this search is finished\n $this->search->update(['status' => Search::STATUS_FINISHED]);\n\n return false;\n }", "title": "" }, { "docid": "63f30d06dc3b43da6c94b02f044be005", "score": "0.52668166", "text": "private function validate() {\n\t\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "a5037a047cb656d028b26a440a6ebfc4", "score": "0.5256819", "text": "public function isExecuted() {}", "title": "" }, { "docid": "6354cc10cf0f0d0e3689ad7ec7285d0c", "score": "0.5254116", "text": "public function passes();", "title": "" }, { "docid": "bc7f18a6958fb9d4f06fdd7381dcf750", "score": "0.5243265", "text": "public function testSkipIfTrue(): void\n {\n $this->skipIf(true);\n }", "title": "" }, { "docid": "a629bdd7b28ec7a37f85e858062f0907", "score": "0.5240645", "text": "abstract public function check();", "title": "" }, { "docid": "bf5c69ec2125a7adadbe25c42c38a79d", "score": "0.52333397", "text": "public function produced(): bool;", "title": "" }, { "docid": "a3f40b72a3945d83ee358cf81684663a", "score": "0.5226648", "text": "public function execute(): bool;", "title": "" }, { "docid": "a3f40b72a3945d83ee358cf81684663a", "score": "0.5226648", "text": "public function execute(): bool;", "title": "" }, { "docid": "c2449e82378587b7b9786c1b6c2249fb", "score": "0.52262187", "text": "function __return_false()\n {\n }", "title": "" }, { "docid": "b4714f561b69e19054ba190adadb7b0d", "score": "0.5217563", "text": "public function execute ()\n {\n\n $retval = true;\n\n // loop through the names and start our validation\n // if 1 or more groups exist, we'll have to do a second pass\n $pass = 1;\n\n while (true)\n {\n\n foreach ($this->names as $name => &$data)\n {\n\n if (isset($data['_is_parent']))\n {\n\n // this is a parent\n foreach ($data as $subname => &$subdata)\n {\n\n if ($subname == '_is_parent')\n {\n\n // this isn't an actual index, but more of a flag\n continue;\n\n }\n\n if ($subdata['validation_status'] == true &&\n !$this->validate($subname, $subdata, $name))\n {\n\n // validation failed\n $retval = false;\n\n }\n\n }\n\n } else\n {\n\n // single parameter\n if ($data['validation_status'] == true &&\n !$this->validate($name, $data, null))\n {\n\n // validation failed\n $retval = false;\n\n }\n\n }\n\n }\n\n if (count($this->groups) == 0 || $pass == 2)\n {\n\n break;\n\n }\n\n // increase our pass indicator\n $pass++;\n\n }\n\n return $retval;\n\n }", "title": "" }, { "docid": "2e458713bd2d0002f8dd17e8299a4d19", "score": "0.521267", "text": "function condition() {\n\t\treturn ! empty( $_GET['page'] ) && $this->args['page_slug'] === $_GET['page']; // Input var okay.\n\t}", "title": "" }, { "docid": "875fdf915c68da841d737aef3bf30dab", "score": "0.5209936", "text": "public function needsReprocessing() {}", "title": "" }, { "docid": "b544787d659eb6c6c21cdccbf9e7b063", "score": "0.5207158", "text": "public function execute()\n {\n return true;\n }", "title": "" }, { "docid": "18fc662bdc3d05e7c03987f0f1c54223", "score": "0.5203739", "text": "function condition() {\n\t\treturn ! empty( $_GET['page'] ) && $this->page_slug === $_GET['page']; // Input var okay.\n\t}", "title": "" }, { "docid": "ab30b277ef7f3df60e1eaf242cfa088a", "score": "0.5196095", "text": "public function testContinueContinues()\n {\n $tierApp = new TierApp(new Injector(), new NullCallback());\n \n $fn1 = function () {\n return false;\n };\n \n $called = false;\n \n $fn2 = function () use (&$called) {\n $called = true;\n return TierApp::PROCESS_END;\n };\n \n $tierApp->addExecutable(0, $fn1);\n $tierApp->addExecutable(1, $fn2);\n $tierApp->executeInternal();\n \n $this->assertTrue($called);\n }", "title": "" }, { "docid": "900fbc5439df60618a5276b9252617a7", "score": "0.5190068", "text": "private function evaluateThisResult($result, $data){\n\t\t\t//Test to make sure this result has everything we need.\n\n\t\t\tif(array_key_exists('action', $result)){\n\t\t\t\treturn (bool) $this->processResult($result, $data);\n\t\t\t} else {\n\t\t\t\treturn (bool) false;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "1cfa169ada8155b5d8a2a820b1bb7841", "score": "0.518972", "text": "public function run()\n {\n if (!isset($this->_condition) && empty($this->_secondary_order)) {\n return parent::run();\n }\n\n // if no rank column used, you cannot run the algorithm.\n if (!$this->rank_column) {\n return true;\n }\n $secondary_order = \"\";\n if (!empty($this->_secondary_order)) {\n $order_statement = array_map(function ($order) {\n return $order[\"column\"] . ' ' . $order['order'];\n }, $this->_secondary_order);\n $secondary_order = \",\" . implode(\",\", $order_statement);\n }\n // Lets update the rank column based on the score value.\n $query = \"UPDATE {$this->table_name} SET {$this->rank_column} = @r:= (@r+1)\"\n . \" WHERE \" . $this->_condition .\n \" ORDER BY {$this->score_column} DESC\" . $secondary_order . \";\";\n\n $res = $this->getMySqlConnection()->query(\"SET @r=0; \");\n if (!$res) {\n throw new \\Exception(\"Rank update failed: (\" . $this->getMySqlConnection()->errno . \") \" . $this->getMySqlConnection()->error);\n }\n $res = $this->getMySqlConnection()->query($query);\n if (!$res) {\n throw new \\Exception(\"Rank update failed: (\" . $this->getMySqlConnection()->errno . \") \" . $this->getMySqlConnection()->error);\n }\n return true;\n }", "title": "" }, { "docid": "44faa14ef124224187e128eafa5c10ec", "score": "0.51768607", "text": "function run_leaving_activity_pre()\n\t\t{\n\t\t\t//actually we never send emails when cancelling\n\t\t\treturn true;\n\t\t}", "title": "" }, { "docid": "896179df1ec556d70b53b28169de7b79", "score": "0.5170049", "text": "public function step(): ?bool\n {\n // Get next item to crawl.\n if (($item = $this->cache_feeder->fetch()) !== null) {\n // Get URL and request variant to crawl.\n $url = $item->getUrl();\n $request_variant = $item->getRequestVariant();\n\n // Get warm up HTTP request arguments.\n $args = apply_filters(Hooks::FILTER_CACHE_WARM_UP_REQUEST_ARGS, self::DEFAULT_WARM_UP_REQUEST_ARGS, $url, $request_variant);\n\n // Get the URL...\n $response = wp_remote_get($url, $args);\n\n // ...fetch response code...\n $response_code = wp_remote_retrieve_response_code($response);\n\n // ...and signal success if there was no server error.\n return ($response_code !== '') && ($response_code < 500);\n }\n\n // There are no more items in warm up queue.\n return null;\n }", "title": "" }, { "docid": "cb84ba933a00c3f57fbabed3b5694d72", "score": "0.5169639", "text": "public function passes()\n\t{\n\t\tif (empty($this->results)) {\n\t\t\treturn false;\n\t\t}\n\t\tforeach ($this->results as $value) {\n\t\t\tif ($value === false) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3a73efe69fb991184a45cacb15b6e71b", "score": "0.5162627", "text": "function cemhub_cron_should_perform_job() {\n $last_cron_run_day = variable_get('cemhub_last_cron_run', date('Ymd', strtotime(\"yesterday\")));\n $current_day = date('Ymd');\n\n $is_in_scheduled_hour_range = (variable_get('cemhub_batch_run_time') == date('H', REQUEST_TIME));\n $hasnt_ran_today = ($last_cron_run_day < $current_day);\n\n $should_perform_job = ($is_in_scheduled_hour_range && $hasnt_ran_today);\n\n return $should_perform_job;\n}", "title": "" }, { "docid": "fafcd68a8a110f7dd95d7d2e70096203", "score": "0.51620585", "text": "public function runSteps()\n {\n $steps = $this->steps()->pullSteps();\n foreach ($steps as list($method, $arguments)) {\n $callable = is_callable($method) ? $method : [$this, $method];\n $arguments = (array) $arguments;\n\n $results = $callable(...$arguments);\n $results = $this->checkResults($results);\n if (!$results) {\n return false;\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "de114ad48de638ca385e18db28fd7ad6", "score": "0.5141829", "text": "public function validatePromoCatalogApplyRules()\n {\n $this->_forward();\n return false;\n }", "title": "" } ]
42f9f6746beaf4ca3818965499186653
getValueArray Function get value from table with array
[ { "docid": "fe537c72bc5bb937efdcbb2b00dcf363", "score": "0.6130903", "text": "public function getValueArray($sel_field = '*', $table, $where_field, $where_val, $limit = 0, $orderby = '', $sort = '', $groupby = '', $join_db = '', $join_where = '', $join_type = '', $onlyone = FALSE) {\n $this->db->select($sel_field);\n if($join_db && $join_where){\n $this->db->join($join_db, $join_where, $join_type);\n }\n if($where_field || $where_val){\n if (is_array($where_field) && is_array($where_val)) {\n for ($i = 0; $i < count($where_field); $i++) {\n $this->db->where($where_field[$i], $where_val[$i]);\n }\n } else if(is_array($where_field) && !is_array($where_val)) {\n foreach ($where_field as $value) {\n $this->db->where($value);\n }\n } else {\n if($where_val){\n $this->db->where($where_field, $where_val);\n }else{\n $this->db->where($where_field);\n }\n }\n }\n if ($groupby) {\n $this->db->group_by($groupby);\n }\n if(is_array($orderby)){\n foreach ($orderby as $value) {\n $this->db->order_by($value, $sort);\n }\n }else{\n if ($orderby && $sort) {\n $this->db->order_by($orderby, $sort);\n }elseif($orderby){\n $this->db->order_by($orderby);\n }\n }\n if ($limit) {\n $this->db->limit($limit, 0);\n }\n $query = $this->db->get($table);\n if (!empty($query)) {\n if ($query->num_rows() > 0) {\n if ($onlyone === TRUE && $query->num_rows() == 1) {\n return $query->first_row('array');\n } else {\n return $query->result_array();\n }\n } else {\n return FALSE;\n }\n } else {\n return FALSE;\n }\n unset($query); \n }", "title": "" } ]
[ { "docid": "8a96ca152124c3261f180ba5f8111fd3", "score": "0.7162175", "text": "public function getValues(): array;", "title": "" }, { "docid": "8a96ca152124c3261f180ba5f8111fd3", "score": "0.7162175", "text": "public function getValues(): array;", "title": "" }, { "docid": "8a96ca152124c3261f180ba5f8111fd3", "score": "0.7162175", "text": "public function getValues(): array;", "title": "" }, { "docid": "486f9cfca9839e4b2e9f079e8c646959", "score": "0.70510685", "text": "function getValueSelect(){\n $this->bd->query($this->tabla, \"email\", array(), \"email\");\n $array =array();\n while ($row= $this->bd->getRow()){\n $array[$row[0]]=$row[1];\n }\n return $array;\n }", "title": "" }, { "docid": "26a9a4073921be12c7ec83f6e5c7764c", "score": "0.70448387", "text": "public function getValues();", "title": "" }, { "docid": "26a9a4073921be12c7ec83f6e5c7764c", "score": "0.70448387", "text": "public function getValues();", "title": "" }, { "docid": "26a9a4073921be12c7ec83f6e5c7764c", "score": "0.70448387", "text": "public function getValues();", "title": "" }, { "docid": "26a9a4073921be12c7ec83f6e5c7764c", "score": "0.70448387", "text": "public function getValues();", "title": "" }, { "docid": "26a9a4073921be12c7ec83f6e5c7764c", "score": "0.70448387", "text": "public function getValues();", "title": "" }, { "docid": "dedf6cfa12ac9b64a7e0968d8b270dd7", "score": "0.70414585", "text": "function getValueSelect(){\r\n $this->bd->query($this->tabla, \"idvino, nombre\", array(), \"nombre\");\r\n $array =array();\r\n while ($row= $this->bd->getRow()){\r\n $array[$row[0]]=$row[1];\r\n }\r\n return $array;\r\n }", "title": "" }, { "docid": "fb84c6e92bf62a32103b843ff1245eee", "score": "0.6917523", "text": "public static function getValues(): array;", "title": "" }, { "docid": "7e8e600047e5cb073b46af022c640fc7", "score": "0.67826855", "text": "public function getValueArray()\n {\n return $this->getListValues($this->Value());\n }", "title": "" }, { "docid": "d3c1930fab87bc54e6cb23eb13d53bf0", "score": "0.6726631", "text": "function getValues($row)\n {\n $data = array();\n while( $obj = pg_fetch_assoc($this->result) ){\n $data[] = $obj[$row];\n }\n return $data;\n }", "title": "" }, { "docid": "c27fb38ca312205d51996a36d260b667", "score": "0.6584327", "text": "public function get_values(): array\n {\n $extracted_values_set = [];\n try {\n $results = $this->db->query('SELECT * FROM '.$this->table);\n foreach ($results as $row) {\n if (!empty($row[$this->name_column])\n && isset($row[$this->values_column])) {\n $extracted_values_set[$row[$this->name_column]]\n = $row[$this->values_column];\n }\n }\n } catch (\\PDOException $e) {\n err_log($e->getMessage());\n exit();\n }\n return $extracted_values_set;\n }", "title": "" }, { "docid": "f72caeb6fe62ef8ea1ed10d173483ca5", "score": "0.6550333", "text": "abstract protected static function getValues(): array;", "title": "" }, { "docid": "abfec7191c50df27f1be9ecb835b3cc6", "score": "0.64439327", "text": "private static function getValuesFromTableData(array $domTablearray)\n {\n $iterator = new \\RecursiveArrayIterator($domTablearray);\n $recursive = new \\RecursiveIteratorIterator(\n $iterator,\n \\RecursiveIteratorIterator::SELF_FIRST\n );\n foreach ($recursive as $key => $value) {\n if ($key === '_value') {\n $return[] = $value;\n }\n }\n return $return;\n }", "title": "" }, { "docid": "36ddf2ebd451b7c675ba0997c94ba032", "score": "0.6428592", "text": "function ValueForTable() {return $this->getValueForTable();}", "title": "" }, { "docid": "30a3fd6be8ac91f044658922d2c9ef9d", "score": "0.6406774", "text": "public function getArray();", "title": "" }, { "docid": "30a3fd6be8ac91f044658922d2c9ef9d", "score": "0.6406774", "text": "public function getArray();", "title": "" }, { "docid": "83d8d4d1828efa859ce4bfa17cf3e3fc", "score": "0.6390154", "text": "public function _getCellArrayValues() {\n return static::$CellArrayValues[$this->cellID]; \n }", "title": "" }, { "docid": "9c00c525abf94256baf36b24f1d1ff55", "score": "0.6365393", "text": "function getArrayResult($sql)\r\n\t{\r\n\t\t\r\n\t\t$res = $this->query($sql);\r\n\t\t\r\n\t\tif($res)\r\n\t\t{\r\n\t\t\twhile ($row = mysql_fetch_assoc($res))\r\n\t\t\t{\t\r\n\t\t\t\t$row = $this->formatDbValue($row);\r\n\t\t\t\t$resultProvider[] = $row;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $resultProvider; \r\n\t }", "title": "" }, { "docid": "38560a6ce9098ce72642e451dfef7cfc", "score": "0.6320288", "text": "private function GetRow()\n {\n $row = array();\n foreach($this->Fields as $value)\n {\n $row[$value] = (($this->{$value} || $this->{$value} == \"0\") ? '\"' . $this->AntiSQLInjection($this->{$value}) . '\"' : 'null');\n }\n return $row;\n }", "title": "" }, { "docid": "592f39c3ee8a617497cc700ae9b2a748", "score": "0.63066334", "text": "function query_to_array($query, $value_field, $index_field = NULL)\n {\n $array = array(); \n foreach ($query->result() as $row)\n {\n if ( is_null($index_field) ) {\n //Sin índice\n $array[] = $row->$value_field;\n } else {\n $index = $row->$index_field;\n $array[$index] = $row->$value_field;\n }\n }\n \n return $array;\n }", "title": "" }, { "docid": "7cb980d250f87f4cb53947859cf8e8b1", "score": "0.626318", "text": "public function getRowArray(){\n $stmt = $this->get();\n return $stmt->fetch(self::FETCH_AS_ARRAY);\n }", "title": "" }, { "docid": "21f7d34059538b60945dea07492e78c5", "score": "0.6259902", "text": "function getValuesByKeys($idArr, $idCol, $assCol, $table)\n\t{\n\t\t//declare vars\n\t\t$data\t= array();\n\t\t\n\t\tif(count($idArr) > 0 )\n\t\t{\n\t\t\tforeach($idArr as $j)\n\t\t\t{\n\t\t\t\t//statement\n\t\t\t\t$select\t= \"SELECT \".$assCol.\" FROM \".$table.\" WHERE \".$idCol.\" = \".$j.\"\";\n\t\t\t\t\n\t\t\t\t//execute statement\n\t\t\t\t$query\t= mysql_query($select);\n\t\t\t\t\n\t\t\t\twhile($result\t= mysql_fetch_array($query))\n\t\t\t\t{\n\t\t\t\t\t$data[]\t= $result[$assCol];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//return the data\n\t\treturn $data;\n\t\t\n\t}", "title": "" }, { "docid": "b8851cc0e0020fa19d6716ef902b2c77", "score": "0.62429595", "text": "public function get_array(){\n\t\t$this->execute();\n\t\treturn $this->statement->fetchAll();\n\t}", "title": "" }, { "docid": "09b6394d947910066091a1eecae0af9e", "score": "0.6240149", "text": "abstract public function getArray();", "title": "" }, { "docid": "cc3a7f5cc1a2af486ff7f11a1acbdc1e", "score": "0.62225664", "text": "public function getDataForSameValueAsMethod(): array\n {\n return [\n 0 => [\n 0 => [\n 'value' => ['Shyanne Breitenberg', 'Test'],\n 'ValueObjectFindCriteria' => ['Shyanne Breitenberg', 'Test'],\n ],\n 1 => [\n 'ValueObjectFindCriteria' => [\n 'toNative' => 1,\n ],\n ],\n ],\n ];\n }", "title": "" }, { "docid": "c4384bfe653ec313f477910c69a5db7a", "score": "0.621607", "text": "public function values() {\n\t\treturn LINQ::Arr(array_values($this->array));\n\t}", "title": "" }, { "docid": "591199684a1c41bce86b5d2c8db242a9", "score": "0.6170961", "text": "public function getValue(){\r\n\t\t$tmpArgArr = func_get_args();\r\n\t\tif(!isset($tmpArgArr[0]) || !array_key_exists($tmpArgArr[0], $this->valueArray)){\r\n\t\t\tSGF::eventLog('getValue', 0, '$column can not be found.','error');\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn $this->valueArray[$tmpArgArr[0]];\r\n\t}", "title": "" }, { "docid": "b2bed52f5b2e198423d5e52b5bec753f", "score": "0.6162764", "text": "public function getArrayDataByID($table, $attrs, $desc, $idval) {\n\t\t\t$this->db->select($desc);\n\t\t\t$this->db->from($table);\n\t\t\t$this->db->where($attrs, $idval);\n\t\t\t$query = $this->db->get();\n\t\t\treturn $query->result_array();\n\t\t}", "title": "" }, { "docid": "553debdc32baa7108995845f0cd25e70", "score": "0.61418545", "text": "public function getValues()\n { \n $id = $this->id;\n $langId = $this->getLang()->id;\n if ($id && $langId){\n $connection = \\Yii::$app->db;\n $query = $connection->createCommand('SELECT * FROM ' . $this->tableValues() .\n ' WHERE lang=' . $langId . ' AND id=' . $id);\n return $query->queryAll();\n }\n }", "title": "" }, { "docid": "094315aeab41f4d95337fd396ae2d9d1", "score": "0.61385477", "text": "public function getValue() : array\n {\n return $this->applyFilters($this->getChildValues(true));\n }", "title": "" }, { "docid": "b9b78ea7efa03d4361504d3c9f68d4bf", "score": "0.6136972", "text": "public function getRows(): array\n {\n return $this->values;\n }", "title": "" }, { "docid": "5522c1a0c1d61ed7566d92b4f8f5f16c", "score": "0.61278516", "text": "function getRecordValues($id_array, $module) {\n\tglobal $adb,$current_user, $app_strings;\n\t$tabid=getTabid($module);\n\t$query=\"select fieldname,fieldlabel,uitype\n\t\tfrom vtiger_field\n\t\twhere tabid=? and fieldname not in ('createdtime','modifiedtime') and vtiger_field.presence in (0,2) and uitype not in('4')\";\n\t$result=$adb->pquery($query, array($tabid));\n\t$no_rows=$adb->num_rows($result);\n\n\t$focus = new $module();\n\tif (isset($id_array) && $id_array !='') {\n\t\tforeach ($id_array as $crmid) {\n\t\t\t$focus->id=$crmid;\n\t\t\t$focus->retrieve_entity_info($crmid, $module);\n\t\t\t$field_values[]=$focus->column_fields;\n\t\t}\n\t}\n\n\t$value_pair = array();\n\t$c = 0;\n\tfor ($i=0; $i<$no_rows; $i++) {\n\t\t$fld_name=$adb->query_result($result, $i, 'fieldname');\n\t\t$fld_label=$adb->query_result($result, $i, 'fieldlabel');\n\t\t$ui_type=$adb->query_result($result, $i, 'uitype');\n\n\t\tif (getFieldVisibilityPermission($module, $current_user->id, $fld_name, 'readwrite') == '0') {\n\t\t\t$fld_array []= $fld_name;\n\t\t\t$record_values[$c][$fld_label] = array();\n\t\t\tfor ($j=0, $jMax = count($field_values); $j < $jMax; $j++) {\n\t\t\t\tif ($ui_type ==56) {\n\t\t\t\t\tif ($field_values[$j][$fld_name] == 0) {\n\t\t\t\t\t\t$value_pair['disp_value']=$app_strings['no'];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$value_pair['disp_value']=$app_strings['yes'];\n\t\t\t\t\t}\n\t\t\t\t} elseif ($ui_type == 53) {\n\t\t\t\t\t$owner_id=$field_values[$j][$fld_name];\n\t\t\t\t\t$ownername=getOwnerName($owner_id);\n\t\t\t\t\t$value_pair['disp_value']=$ownername;\n\t\t\t\t} elseif ($ui_type == 52) {\n\t\t\t\t\t$user_id = $field_values[$j][$fld_name];\n\t\t\t\t\t$user_name=getUserFullName($user_id);\n\t\t\t\t\t$value_pair['disp_value']=$user_name;\n\t\t\t\t} elseif ($ui_type == 10) {\n\t\t\t\t\t$value_pair['disp_value'] = getRecordInfoFromID($field_values[$j][$fld_name]);\n\t\t\t\t} elseif ($ui_type == 5 || $ui_type == 6 || $ui_type == 23) {\n\t\t\t\t\tif ($field_values[$j][$fld_name] != '' && $field_values[$j][$fld_name] != '0000-00-00') {\n\t\t\t\t\t\t$date = new DateTimeField($field_values[$j][$fld_name]);\n\t\t\t\t\t\t$value_pair['disp_value'] = $date->getDisplayDate();\n\t\t\t\t\t\tif (strpos($field_values[$j][$fld_name], ' ') > -1) {\n\t\t\t\t\t\t\t$value_pair['disp_value'] .= (' ' . $date->getDisplayTime());\n\t\t\t\t\t\t}\n\t\t\t\t\t} elseif ($field_values[$j][$fld_name] == '0000-00-00') {\n\t\t\t\t\t\t$value_pair['disp_value'] = '';\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$value_pair['disp_value'] = $field_values[$j][$fld_name];\n\t\t\t\t\t}\n\t\t\t\t} elseif ($ui_type == '71' || $ui_type == '72') {\n\t\t\t\t\t$currencyField = new CurrencyField($field_values[$j][$fld_name]);\n\t\t\t\t\tif ($ui_type == '72') {\n\t\t\t\t\t\t$value_pair['disp_value'] = $currencyField->getDisplayValue(null, true);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$value_pair['disp_value'] = $currencyField->getDisplayValue();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$value_pair['disp_value']=$field_values[$j][$fld_name];\n\t\t\t\t}\n\t\t\t\t$value_pair['org_value'] = $field_values[$j][$fld_name];\n\n\t\t\t\t$record_values[$c][$fld_label][] = $value_pair;\n\t\t\t}\n\t\t\t$c++;\n\t\t}\n\t}\n\t$parent_array[0]=$record_values;\n\t$parent_array[1]=$fld_array;\n\t$parent_array[2]=$fld_array;\n\treturn $parent_array;\n}", "title": "" }, { "docid": "759c79ec166f25cd039e0c4bf7fa85ba", "score": "0.61258537", "text": "function getValues()\n {\n return $this->toArray();\n }", "title": "" }, { "docid": "4235631d74cc495e1fd8566a8cb0ff57", "score": "0.61257637", "text": "function sqlGet($tuplas){\n\t\treturn $tuplas->fetch_array();\n\t}", "title": "" }, { "docid": "fa934a34ce9060f52832cb4d2e31b18a", "score": "0.6122434", "text": "private function table_data() {\n\t\t$data = array();\n\n\t\t$data = Points::get_points( null, null, null, ARRAY_A );\n\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "4d431d0cc5e9edaf3c3815dbd9d139a2", "score": "0.6120285", "text": "public function values(): Seq;", "title": "" }, { "docid": "fe490577509a05a9449833ec5161863a", "score": "0.6110781", "text": "public function getdata($table){\n\n $result = $this->db->conn->query(\"SELECT * FROM {$table}\");\n\n $resultArray = array();\n\n while( $item = mysqli_fetch_array($result,MYSQLI_ASSOC)){\n\n $resultArray[] = $item;\n }\n\n return $resultArray;\n\n }", "title": "" }, { "docid": "10a0ba5cb4c7a8a06afc6cded1f2fe1c", "score": "0.61072326", "text": "function Get_Value($values){\r\n\tglobal $db;\t\r\n\tif (!is_array($values))\r\n\t\treturn array();\t\r\n\t$result = array();\t\r\n\t\r\n\tforeach ($values as $value){\r\n\t\t$result[$value] = $db->get('`cond` = \"'.$value.'\"','value','config_value');\t\t\r\n\t}\r\n\t\r\n\treturn $result;\r\n}", "title": "" }, { "docid": "1260d07d9adea16f149806fbaff7bfc0", "score": "0.6106188", "text": "public function getFieldValues(): array\n {\n return $this->toArray();\n }", "title": "" }, { "docid": "9838679c04cca2b19783f2895cdc3efa", "score": "0.6091458", "text": "protected function _getArrAllByX($field, $value) {\n\t\treturn $this->db->get_where($this->mTable,\n\t\t\tarray($field => $value))->result_array();\n\t}", "title": "" }, { "docid": "f8156997ce939fc4762021b22bd4b688", "score": "0.606614", "text": "public function getArray() {\r\n return @mysql_fetch_array($this->result);\r\n }", "title": "" }, { "docid": "70cc8da82b6662d8b5b63665d49f359f", "score": "0.60520077", "text": "public function getAsArray();", "title": "" }, { "docid": "70cc8da82b6662d8b5b63665d49f359f", "score": "0.60520077", "text": "public function getAsArray();", "title": "" }, { "docid": "5b2ecd2985f485226aacd6e335d57929", "score": "0.60481256", "text": "public function values();", "title": "" }, { "docid": "5b2ecd2985f485226aacd6e335d57929", "score": "0.60481256", "text": "public function values();", "title": "" }, { "docid": "5b2ecd2985f485226aacd6e335d57929", "score": "0.60481256", "text": "public function values();", "title": "" }, { "docid": "5b2ecd2985f485226aacd6e335d57929", "score": "0.60481256", "text": "public function values();", "title": "" }, { "docid": "3d13e21423b8187f93af0dd62818ccfe", "score": "0.6044202", "text": "public function getData($table = 'product')\n {\n $result = $this->db->conn->query(\"SELECT * FROM {$table}\");\n\n $resultArray = $result->fetch_all(MYSQLI_ASSOC);\n // $resultArray = $result->fetch_all();\n\n // while( $item = fetch_array($result)){\n // $resultArray[$item];\n // }\n\n return $resultArray;\n }", "title": "" }, { "docid": "0d806ae29fbebb7187830691669d0f0a", "score": "0.6022921", "text": "public function getSelected()\n {\n $value = $this->dataValue();\n $record = $this->form->getRecord();\n $output = array();\n\n if ($record) {\n $fieldName = $this->getName();\n\n if ($record->has_many($fieldName) || $record->many_many($fieldName)) {\n $methodName = $this->name;\n $join = $record->$methodName();\n\n if ($join) {\n foreach ($join as $joinItem) {\n $output[] = $joinItem->ID;\n }\n }\n\n $result = array();\n foreach ($output as $k => $v) {\n foreach ($this->source as $sK => $sV) {\n if ($sK === $v) {\n $result[$sK] = $sV;\n }\n }\n }\n return $result;\n }\n } else {\n $output = array();\n $value = (is_array($value)) ? $value : explode(',', $value);\n\n foreach ($value as $k => $v) {\n foreach ($this->source as $sK => $sV) {\n if ($sK === $k || $sV === $v) {\n $output[$sK] = $sV;\n }\n }\n }\n\n return $output;\n }\n\n return $value;\n }", "title": "" }, { "docid": "6c62c4931397b8cb3c5fec5aa6589d06", "score": "0.60180265", "text": "public function get_row_array(){\n return $this->getRowArray();\n }", "title": "" }, { "docid": "599dfa993607d921cb6607256723488b", "score": "0.601741", "text": "public function getArray(){}", "title": "" }, { "docid": "3a3a724b10b6873f83a02dac2b10011e", "score": "0.6012731", "text": "public function FetchArray() {\n\t\treturn pg_fetch_array($this->nativeReader);\n\t}", "title": "" }, { "docid": "0dfa20439255329c47509f2426f4d1e9", "score": "0.6005327", "text": "public function ObtenerArray() {\n return mysqli_fetch_array($this->recordSet);\n }", "title": "" }, { "docid": "b4a273b7d874f2a6e031bbaea45e13a9", "score": "0.60048634", "text": "protected function _getValues()\n {\n $values = array();\n foreach ($this->getFields() as $field) {\n $values[$field] = $this->_getValue($field);\n }\n return $values;\n }", "title": "" }, { "docid": "78fb4f6bc2cf8a1a1a93f632b5d6c0b7", "score": "0.600417", "text": "public function toArray()\n {\n return $this->getValues();\n }", "title": "" }, { "docid": "ac24b7ee9bc9a4fece12ae578e47fc8f", "score": "0.5987905", "text": "function getValue(string $sql, array $param);", "title": "" }, { "docid": "b4259acf32d87fb28f23861c8637deef", "score": "0.5979333", "text": "public function getValues($arg = null)\n {\n $result = $this->resulter($arg);\n if(!$this->hasRows($result)) return array();\n\n $values = array();\n mysql_data_seek($result, 0);\n while($row = mysql_fetch_array($result, MYSQL_ASSOC))\n $values[] = array_pop($row);\n return $values;\n }", "title": "" }, { "docid": "e78cacc3b1b93ae543f7d5cc0f084517", "score": "0.59762937", "text": "public function getValues():array{\n return $this->values;\n }", "title": "" }, { "docid": "63f1f52ae56b0edd98c1c18ad5bf8593", "score": "0.59726804", "text": "public function getArray($query);", "title": "" }, { "docid": "950f3a5345e2d7bb27dd931b8304666c", "score": "0.59723485", "text": "public static function values($name) {\n $model = new self();\n $tb = $model->attr('tb');\n\n $qstr = \"SELECT id, value FROM $tb WHERE name = :name AND deleted_on = 0 ORDER BY pos\";\n $qparams = array('name' => $name);\n\n $values = array();\n $q = $model->query($qstr, $qparams);\n while (is_array($res = $q->getrow())) {\n $values[$res['id']] = $res['value'];\n }\n\n return $values;\n }", "title": "" }, { "docid": "2ecdcca058d3a221d5eef477057a1bbb", "score": "0.59620327", "text": "public function getSubidValues()\n {\n\n if ($this->_subidValues === null) {\n if (!$this->subidModel || !$this->subidKey || !$this->subidVal) {\n $this->_subidValues = array();\n } elseif (!class_exists($this->subidModel)) {\n $this->_subidValues = array();\n } else {\n $model = new $this->subidModel;\n $this->_subidValues = \\CHtml::listData($model->findAll(), $this->subidKey, $this->subidVal);\n }\n }\n\n return $this->_subidValues;\n\n }", "title": "" }, { "docid": "e50278159ae3482d6fd81b8d1b69e225", "score": "0.59360874", "text": "public function row() {\n $row = [];\n foreach (array_keys($this->map) as $k) {\n $row[$k] = $this->value($k);\n }\n return $row;\n }", "title": "" }, { "docid": "11419184136f868e1fbe91e6730c9e95", "score": "0.5931079", "text": "public static function getQueryDataValues():array {\n\t\t\t$out = [];\n\t\t\tforeach (\\func_get_args() as $arg)\n\t\t\t\t$out[] = self::getQueryDataValue($arg);\n\n\t\t\treturn $out;\n\t\t}", "title": "" }, { "docid": "4bbbc21333ca4275a6e07210b05db2d8", "score": "0.59310246", "text": "private function query_to_array($query,$label_field,$value_field){\n\n\t\t\tif(is_null($query) || empty($query)){\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t$data = array();\n\t\t\tforeach ($query->result_array() as $row) {\n\t\t\t\tarray_push($data, array(\"name\"=>$row[$label_field],\"y\"=>$row[$value_field]));\n\t\t\t}\n\n\t\t\treturn $data;\n\t\t}", "title": "" }, { "docid": "0f5483f1b138eb6882b6ef2fd133048d", "score": "0.59288514", "text": "public function getValue()\n {\n $values = (array) $this->value;\n foreach ($values as $key => $value) {\n $values[$key] = $value->getValue();\n }\n return $values;\n }", "title": "" }, { "docid": "5ce5fe1d61958cb9a289230346caf2be", "score": "0.59190166", "text": "public function getFieldValuesArray() {\n\t\treturn $this->_FIELD_VALUES;\n\t}", "title": "" }, { "docid": "82bc651e31e026356c26b8932ba8d8bb", "score": "0.5917035", "text": "public function getResultAsArray() {\n\t\t\t$returnArray = array();\n\t\t\twhile($row = $this->getRow()) {\t\n\t\t\t\t$returnArray[] = $row;\t\n\t\t\t}\n\t\t\treturn $returnArray;\n\t\t}", "title": "" }, { "docid": "e35160bf90ee128cf6dd9cf2e637ded8", "score": "0.59006894", "text": "function get_value($table,$val,$where=false,$extra=''){\n $this->info->running=1;\n $this->info->func='$db->get_value';\n $this->info->vars=array('$table'=>$table,'$vals'=>$vals,'$where'=>$where);\n\n // run query\n $o=$this->select($table,$val,$where,$extra);\n\n // convert first object in associative array to array\n if($o)\n $v=get_object_vars($o[0]);\n else\n return false;\n\n // return requested value\n return $v[$val];\n }", "title": "" }, { "docid": "7df2b31f46eb7fd1aa15966149af8f03", "score": "0.589115", "text": "public function getVirtualValuesAsArray()\n {\n $values = $this->UllFlowValues;\n \n $return = array();\n \n foreach ($values as $value)\n {\n $return[$value->UllFlowColumnConfig->slug] = $value->value;\n }\n \n return $return;\n }", "title": "" }, { "docid": "8a70c16ddbe2d98462df37656f94d867", "score": "0.58823735", "text": "private function getValuesExpression($data)\n\t{\n\t\t$values \t = array();\n\t\t\n\t\tforeach ($data as $columnName => $value)\n\t\t{\n\t\t\t// skip from passing if not an array, if not in list of columns to skip,\n\t\t\t// or not in table skeleton at all (for example $_POST['action']) \n\t\t\tif (!is_array($value) && !in_array($columnName, $this->columnsToSkip) && array_key_exists($columnName, $this->tableSkeleton))\n\t\t\t{\n\t\t\t\t// if the column name begins with \"id_\", the value is integer, so don't put it into apostrophs\n\t\t\t\t//if (!$this->isColumnBinary($columnName))\n\t\t\t\t\t$value = Database::escape_string($value);\n\t\t\t\t\n\t\t\t\t$value \t = $this->getQuotedValue($value, $columnName);\n\t\t\t\t$values[] = $value;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// format the values with commas, put into parenthess\n\t\t$values = join(', ', $values);\n\t\t\n\t\treturn $values;\n\t}", "title": "" }, { "docid": "0c75eaf9da10fec5a96e1e567ad8f79e", "score": "0.5882368", "text": "public function toArray() {\n $a = array();\n foreach($this->value as $value) $a[] = $value->toArray();\n if(count($a) === 1) return $a[0];\n\n return $a;\n }", "title": "" }, { "docid": "4710b57efaae775421a5c5ccbc089400", "score": "0.5876875", "text": "public function getArray(){\n $stmt = $this->get();\n\n return $stmt->fetchAll(self::FETCH_AS_ARRAY);\n }", "title": "" }, { "docid": "9111f84b5cef0e4f73fb2696d8d8157d", "score": "0.5871604", "text": "function db_get_array ($field, $table, $where = null) \n{\n $sql = 'SELECT ' . $field . ' FROM ' . $table;\n if (strlen($where)) {\n $sql .= ' WHERE ' . $where;\n }\n $res_id = mysqlquery($sql, __DEBUG__);\n $res = mysql_fetch_array($res_id, MYSQL_ASSOC);\n return $res;\n}", "title": "" }, { "docid": "73c754e644f91cd7f07ab88fff9dd3ec", "score": "0.5859622", "text": "function get_values($filter_fragment) {\n return do_query(\n 'select * from value_view' .\n ' where row in ' . $filter_fragment .\n ' order by row, col'\n );\n}", "title": "" }, { "docid": "973196e7a355e972dba66dd8e3d11df2", "score": "0.5858493", "text": "public function getValues()\n {\n // TODO: Implement getValues() method.\n }", "title": "" }, { "docid": "c1c150994755827da2650a120d6ab791", "score": "0.5857745", "text": "abstract public function fetchArray();", "title": "" }, { "docid": "57eab4f49e3de5075cf3e1731de7a953", "score": "0.5857651", "text": "abstract public function getTablesAsArray();", "title": "" }, { "docid": "22a93d8bebd80bb15e2ecfd4d0b0ba19", "score": "0.5841445", "text": "public function getValues()\n {\n $values = array();\n foreach ($this->getFields() as $field) {\n $values[$field] = $this->getValue($field);\n }\n return $values;\n }", "title": "" }, { "docid": "674214d41a19ae4a0350a59f0fd941a4", "score": "0.5838378", "text": "public function getValues()\n {\n \treturn $this->values;\n }", "title": "" }, { "docid": "1a6507da9fa1e6b490c375281cc3c7b8", "score": "0.58356136", "text": "function get($val) {\n $params = Array();\n $a = Array();\n\n if ( is_array($val) ) {\n if ( count($val) == 0 ) {\n return Array();\n }\n $i = 0;\n foreach ( $val as $id ) {\n $i++;\n $a[$i] = \":id$i\";\n $params[$a[$i]] = $id;\n }\n $where = \" $this->idField in (\".implode(',', $a).\")\";\n\n } else {\n if ( !is_numeric($val) ) {\n return false;\n }\n $where = \" $this->idField=:value \";\n $params[':value'] = $val;\n }\n\n $sql = \"select \".implode(',',array_keys($this->aFields)).\" from $this->table where $where\";\n if ( ($q = $this->executePreparedSql($sql, $params)) ) {\n $aRs = $q->fetchAll();\n if ( count($aRs) > 0 ) {\n if ( !is_array($val) ) {\n return $this->loadFrom( $aRs[0], true );\n } else {\n return $aRs;\n }\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "a449dfb0e236154d3d5efcffd561057d", "score": "0.5834649", "text": "function getArray($tbName,$condition,$orderby,$mode=\"\",&$array_col=null) {\n\t\t\t\ttry {\n\t\t\t\t\t\t\t$str='';\n\t\t\t\t\t\t\t$array_row=array();\n\t\t\t\t\t\t\t$this->dbConnect();\n\t\t\t\t\t\t\t$rst=$this->getDynamic($tbName,$condition,$orderby);\n\t\t\t\t\t\t\tif(is_array($array_col))$array_col = $this->getColumns($rst);\n\t\t\t\t\t\t\tswitch($mode)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t case \"stdObject\":\n\t\t\t\t\t\t\t while(@$row=@$this->nextObject($rst))$array_row[]=$row;\n\t\t\t\t\t\t\t break;\n case \"Assoc\":\n\t\t\t\t\t\t\t while($row=$this->nextAssoc($rst))$array_row[]=$row;\n\t\t\t\t\t\t\t break;\n case \"Row\":\n while($row=$this->nextRow($rst))$array_row[]=$row;\n\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t default:\n\t\t\t\t\t\t\t while($row=$this->nextData($rst))$array_row[]=$row;\n\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t}\n\n unset($rst);unset($str);unset($row);\n\t\t\t\t\t\treturn $array_row;\n\t\t\t\t}catch (Exception $ex) {\n\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "71422e26ee579627da06c96a383a736d", "score": "0.5834112", "text": "static function assoc_query_2D_param($values, $table)\r\n\t{\r\n\t\t$sql = \"SELECT \".$values.\" FROM \".$table;\r\n\t\t$result = mysql_query($sql);\r\n\t\t$arr = array();\r\n\t\twhile($temp = mysql_fetch_assoc($result)){\r\n\t\t\tarray_push($arr, $temp);\r\n\t\t}\r\n\t\t\t\r\n\t\treturn $arr;\r\n\t}", "title": "" }, { "docid": "c1a193b565a9aacd9ae34b05b6ef5fbf", "score": "0.58334124", "text": "public function getArrayData(){\n\t $data = array();\n\t foreach($this as $atribute => $value){\n\t \tif(!is_array($value))\n\t \t$data[$atribute] = $value;\n\t }\n\t return $data;\n\t }", "title": "" }, { "docid": "01a2499808e814464216fbd03a66a0e7", "score": "0.5825669", "text": "function get_dropdown_array($value){\n $result = array();\n $array_keys_values = $this->db->query('select id, '.$value.' from assembly_pakan order by id asc');\n $result[0]=\"-- Pilih Urutan id --\";\n foreach ($array_keys_values->result() as $row)\n {\n $result[$row->id]= $row->$value;\n }\n return $result;\n }", "title": "" }, { "docid": "d77a9d6e51b6fd1f70514d8b3734dbdc", "score": "0.5820803", "text": "public function fetchArray() {\n $row = @pg_fetch_assoc($this->result);\n return $row;\n }", "title": "" }, { "docid": "7fffe28b426af7aaf021783826f13352", "score": "0.5815656", "text": "protected function getValue($sql)\n {\n // fetch all value\n $values = array();\n\n if (false === empty($this->temp_sql_array[$this->sections->value])) {\n $values = $this->temp_sql_array[$this->sections->value];\n }\n\n $result = array();\n\n // grep parameter name\n preg_match_all('/[?]\\w+/', $sql, $matches);\n\n // make the values are following the order appeared\n foreach ($matches[0] as $name) {\n $value = &$values[$name];\n\n if (true === is_array($value)) {\n $result = array_merge($result, (array) array_pop($value));\n }\n else {\n $result[] = $value;\n }\n }\n\n return $result;\n }", "title": "" }, { "docid": "491991ccb1b484aba6fcc2cc09ac5899", "score": "0.5812973", "text": "public function dataTable() : array;", "title": "" }, { "docid": "6661a26642fbd9cd6b6483703af27494", "score": "0.58126396", "text": "public function get_values()\n {\n }", "title": "" }, { "docid": "6661a26642fbd9cd6b6483703af27494", "score": "0.58118504", "text": "public function get_values()\n {\n }", "title": "" }, { "docid": "435d863814ff001308fa41f960806faf", "score": "0.58084613", "text": "function getValues() {\n\t\treturn $this->getArrayCopy();\n\t}", "title": "" }, { "docid": "45966b211cbee96b7f7211353d403697", "score": "0.5800224", "text": "public function toArray()\n\t{\n\t\treturn $this->values;\n\t}", "title": "" }, { "docid": "2a0cf7204b631632159d600d072a437c", "score": "0.57853144", "text": "public function getValueArray()\n {\n $type = null;\n // take everything after the |\n if (null !== $this->getValue()) {\n $type = explode(\"|\", $this->getValue(),2);\n }\n return $type;\n }", "title": "" }, { "docid": "22239ad3825d8ab5b0c66141429bbdaa", "score": "0.57832104", "text": "function get_dropdown_array($value){\n $result = array();\n $array_keys_values = $this->db->query('select id_detail, '.$value.' from kas_keluar_detail order by id_detail asc');\n $result[0]=\"-- Pilih Urutan id_detail --\";\n foreach ($array_keys_values->result() as $row)\n {\n $result[$row->id_detail]= $row->$value;\n }\n return $result;\n }", "title": "" }, { "docid": "59abee98ce7488cdeff2f21f7369e684", "score": "0.5781725", "text": "function get_value_by_name($table, $name) {\n\t// Open the database connection\n\t$db = db_open ();\n\t\n\t// Get the user information\n\t$stmt = $db->prepare ( \"SELECT value FROM $table WHERE name = :name\" );\n\t$stmt->bindParam ( \":name\", $name, PDO::PARAM_STR );\n\t$stmt->execute ();\n\t\n\t// Store the list in the array\n\t$array = $stmt->fetchAll ();\n\t\n\t// Close the database connection\n\tdb_close ( $db );\n\t\n\t// If the array is empty\n\tif (empty ( $array )) {\n\t\t// Return null\n\t\treturn null;\n\t} \t// Otherwise, return the first value in the array\n\telse\n\t\treturn $array [0] ['value'];\n}", "title": "" }, { "docid": "7213340344a70d3dfe6d109c91af1fc2", "score": "0.5777423", "text": "public function getAssArray()\n {\n // $sql = \"SELECT * FROM users;\";\n $sth = $this->db->prepare(\"SELECT * FROM users;\");\n $this->db->setAttribute(\\PDO::ATTR_DEFAULT_FETCH_MODE, \\PDO::FETCH_OBJ);\n $sth->execute();\n $res = $sth->fetchAll();\n return $res;\n }", "title": "" }, { "docid": "dddf46cf0d9d4263cdde7e2e95624d03", "score": "0.57689977", "text": "public function get() : array;", "title": "" }, { "docid": "686f0a490dff14df9cf4e05d4105b5ea", "score": "0.57656026", "text": "public function getAllValues() {\r\n\t return $this->values;\r\n}", "title": "" } ]
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "75dd31fa6602e657e88b4074a4c5dc3e", "score": "0.0", "text": "public function create()\n {\n return view(\"api.insert\");\n }", "title": "" } ]
[ { "docid": "600eb0f5f74407c7c69ac90b7d3e6f15", "score": "0.7599469", "text": "public function create()\n {\n return view('Resource/create');\n }", "title": "" }, { "docid": "c1a53014b3e8009982c57be36ab41329", "score": "0.7593278", "text": "public function create()\n {\n return $this->showForm('create');\n }", "title": "" }, { "docid": "4410c37acc7f709e86ccc730cb542643", "score": "0.75862813", "text": "public function create()\n {\n return view('admin.resources.create');\n }", "title": "" }, { "docid": "a382b311163023b1b09a9a260d21538b", "score": "0.7577653", "text": "public function create(){\n\n return view('resource.create');\n }", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.7570922", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "200ac8848d121779daea1c7ace64cde0", "score": "0.7499259", "text": "public function create()\n {\n return \"Display a form for creating a new catalogue\";\n }", "title": "" }, { "docid": "4273a8d14102748486694e85db479a73", "score": "0.743598", "text": "public function newAction()\n {\n $entity = new Resource();\n $current = $this->get('security.context')->getToken()->getUser();\n $entity->setMember($current);\n $form = $this->createCreateForm($entity);\n\n return array(\n 'nav_active'=>'admin_resource',\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "title": "" }, { "docid": "c26739dc5816352d835ac0fb7c3766d6", "score": "0.7422844", "text": "public function create()\n\t{\n\t\tif($this->session->userlogged_in !== '*#loggedin@Yes')\n\t\t{\n\t\t\tredirect(base_url().'dashboard/login/');\n }\n\n $data = array(\n 'page_title' => 'New resource'\n );\n \n\t\t$this->load->view('templates/header', $data);\n\t\t$this->load->view('member_resources/create_view');\n\t\t$this->load->view('templates/footer');\n }", "title": "" }, { "docid": "eefd3a34279d87bd94753b0beae69b0d", "score": "0.7390976", "text": "public function create()\n {\n return view('humanresources::create');\n }", "title": "" }, { "docid": "eefd3a34279d87bd94753b0beae69b0d", "score": "0.7390976", "text": "public function create()\n {\n return view('humanresources::create');\n }", "title": "" }, { "docid": "003fc3feb8b261af715ecd7bd61a619b", "score": "0.738692", "text": "public function create ()\n {\n return view('forms.create');\n }", "title": "" }, { "docid": "d9eabb6e688415b42a581fbf4d716eba", "score": "0.7280905", "text": "public function newAction()\n\t{\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => 'Ajouter une nouvelle &eacute;cole'\n\t\t) ) );\n\t}", "title": "" }, { "docid": "68d9805b3cff8bc6655ed77f2eb8b54c", "score": "0.72756314", "text": "public function create()\n {\n return view(\"Student/addform\");\n //\n }", "title": "" }, { "docid": "ae2dae6d70174f64972f62bfef3beec9", "score": "0.7229507", "text": "public function create()\n {\n $resource = (new AclResource())->AclResource;\n\n //dd($resource);\n return view('Admin.acl.role.form', [\n 'resource' => $resource\n ]);\n }", "title": "" }, { "docid": "2bd4a45e5a2f3450957e331f3c9cbe9e", "score": "0.72239184", "text": "public function create()\n {\n return view('admin.createform');\n }", "title": "" }, { "docid": "3fb888dea195139fc63f84a6e5b7db63", "score": "0.71994454", "text": "public function create()\n {\n return View::make($this->resourceView.'.create');\n }", "title": "" }, { "docid": "894343381f0ae42067564426b380dec6", "score": "0.7177518", "text": "public function create()\n {\n return view('backend.student.form');\n }", "title": "" }, { "docid": "54e432df7faa28bb875e58bcd9563b2b", "score": "0.7172079", "text": "public function newAction()\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('Nuevo');\n\n $entity = $this->getManager()->create();\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "title": "" }, { "docid": "53df6b1c8be4874a39d1af8e3c545f04", "score": "0.7168893", "text": "public function create()\n {\n return view(\"fichecontroller.form\");\n }", "title": "" }, { "docid": "6437564551bf8cf8c1bd0c47f637752b", "score": "0.7166705", "text": "public function create()\n {\n return view('front.realty.add_new');\n }", "title": "" }, { "docid": "3da56af402e3cb2da0fb1d9bfcaaee54", "score": "0.7166683", "text": "public function create()\n {\n //\n\n return view('form.create');\n }", "title": "" }, { "docid": "540a53a248ba67bdca77e9032bbb635f", "score": "0.7148124", "text": "public function create()\n {\n return view('client.form');\n }", "title": "" }, { "docid": "c5c4532c985ebd9dc75cacbea31ac33b", "score": "0.71422434", "text": "public function create()\n {\n return view('Form');\n }", "title": "" }, { "docid": "920850f91908fe5ba5fe559daf2003ca", "score": "0.71415186", "text": "public function create()\n {\n return view(\"supplier.form\");\n }", "title": "" }, { "docid": "76f6369e9637fe0db8316e64e7c817c4", "score": "0.713585", "text": "public function newAction(){\n \n $entity = new Resourceperson();\n $form = $this->createAddForm($entity);\n\n \n return $this->render('ABCRspBundle:rsp:add.html.twig',array('entity'=>$entity,'form'=> $form->createView()));\n }", "title": "" }, { "docid": "1f30b87a2cd300703acd38d27eff1400", "score": "0.7121425", "text": "public function create()\n {\n return view('admin.form.create', ['form' => new Form]);\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.7113886", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.7113886", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "f905e7ba42f00bcfd2b9d1dc88086329", "score": "0.71025294", "text": "public function create()\n {\n $action = route(\"administrator.project-store\");\n return view(\"backend.project.form\", compact(\"action\"));\n }", "title": "" }, { "docid": "e9992fc965026962aebdc354dcc64fda", "score": "0.7099535", "text": "public function create()\n {\n return view('linguas.form');\n }", "title": "" }, { "docid": "10bee9a2841dc1d7b79cb8ae2b760c18", "score": "0.7091995", "text": "public function create()\n {\n return view('backend.schoolboard.addform');\n }", "title": "" }, { "docid": "efbcb43f0aa01d07c5a8a46e59e07c86", "score": "0.70838404", "text": "public function create()\n\t{\n\t\treturn view('info.forms.createInfo');\n\t}", "title": "" }, { "docid": "c27004d00e3f9afb85f74623ec456ca9", "score": "0.70783395", "text": "public function create()\n {\n //\n return view('form');\n }", "title": "" }, { "docid": "9f2e24c9a8128c23335ea37006c86534", "score": "0.7059417", "text": "public function create_form() {\n\n\t\treturn $this->render('user-create-form.php', array(\n\t\t\t'page_title' => 'Create Account',\n\t\t));\n\t}", "title": "" }, { "docid": "aa383de8753c002453b606201fb9311d", "score": "0.7057586", "text": "public function create()\n {\n\n return view('forms.catalogue');\n }", "title": "" }, { "docid": "df7ed302a7e1d7db05db8a8c55c8fe97", "score": "0.7055455", "text": "public function newAction()\n {\n #BreadCrumbs\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem(\"Dashboard\", $this->get(\"router\")->generate(\"admin_dashboard\"));\n $breadcrumbs->addItem(\"Refeicao\", $this->get(\"router\")->generate(\"admin_refeicao\"));\n $breadcrumbs->addItem(\"Novo\");\n \n $entity = new Refeicao();\n $form = $this->createCreateForm($entity);\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "title": "" }, { "docid": "8d95ddac87d4643ea4961ea4930b97ea", "score": "0.7053403", "text": "public function create()\n {\n return view(\"Add\");\n }", "title": "" }, { "docid": "a3472bb62fbfd95113a02e6ab298fb16", "score": "0.70503694", "text": "public function create()\n {\n return view('admin.new.create');\n }", "title": "" }, { "docid": "90c69861985934d05478b03d16057a83", "score": "0.7032379", "text": "public function newAction() {\n\t\t\n\t\t$this->view->form = $this->getForm ( \"/admin/invoices/process\" );\n\t\t$this->view->title = $this->translator->translate(\"New Invoice\");\n\t\t$this->view->description = $this->translator->translate(\"Create a new invoice using this form.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"#\", \"label\" => $this->translator->translate('Save'), \"params\" => array('css' => null,'id' => 'submit')),\r\n\t\t\t\t\t\t\t array(\"url\" => \"/admin/invoices/list\", \"label\" => $this->translator->translate('List'), \"params\" => array('css' => null)));\n\t\t$this->render ( 'applicantform' );\n\t}", "title": "" }, { "docid": "a8d72d9e9c8841bae122d93af9ebbc6a", "score": "0.7026039", "text": "public function create()\n\t{\n\t\treturn view('conceptos.create');\n\t}", "title": "" }, { "docid": "6039f43b38d3c6d347e4435587e3a07f", "score": "0.70255613", "text": "public function create()\n {\n return $this->cView(\"form\");\n }", "title": "" }, { "docid": "6039f43b38d3c6d347e4435587e3a07f", "score": "0.70255613", "text": "public function create()\n {\n return $this->cView(\"form\");\n }", "title": "" }, { "docid": "7000c38175570bf727255c3e8e4f9cba", "score": "0.7025196", "text": "public function newAction()\n {\n // Création de l'entité et du formulaire.\n $client = new Client();\n $formulaire = $this->createForm(new ClientType(), $client);\n \n \n \n // Génération de la vue.\n return $this->render('KemistraMainBundle:Client:new.html.twig',\n array('formulaire' => $formulaire->createView()));\n }", "title": "" }, { "docid": "8ab2d57cf873b8d7a025341aff05b594", "score": "0.70109725", "text": "public function create()\n {\n return $this->renderForm('create');\n }", "title": "" }, { "docid": "cb6dbca8a8b26b57ddf1e738c50cfdb6", "score": "0.7002209", "text": "public function create()\n {\n return view('bank_account.form', ['mode' => 'create']);\n }", "title": "" }, { "docid": "bf2059d4d118ee786d18d4a90906eef2", "score": "0.69991606", "text": "public function create()\n\t{\n\t\treturn View::make('allowances.create');\n\t}", "title": "" }, { "docid": "eaf283aba53ce6033cf44e7602e29261", "score": "0.69957083", "text": "function showCreateForm(){\n return view('admin.Direktori.PHMJ.create');\n }", "title": "" }, { "docid": "645f7ceaa26e24597d62cd1e1f00fd57", "score": "0.69918746", "text": "public function create()\n\t{\n\t\treturn view('admin.estadoflete.new');\n\t}", "title": "" }, { "docid": "949dbe2081affb6eb474d92ab81f7aa1", "score": "0.6989857", "text": "public function create()\n {\n //Lo utilizaremos para mostrar el formulario de registro\n return view($this->path.'.create');\n }", "title": "" }, { "docid": "dc37ca952e5aa8737ac79892a422cfea", "score": "0.6985266", "text": "public function createAction(){\n \t$this->view->placeholder('title')->set('Create');\n \t$this->_forward('form');\n }", "title": "" }, { "docid": "61be6e0a3d99f1e507e44604564e975a", "score": "0.6979122", "text": "public function create()\n {\n return view('bookForm');\n }", "title": "" }, { "docid": "1ec05825f215a7777fdc20ca555172fe", "score": "0.697091", "text": "public function create()\n {\n return view('armada.form', [\n\n ]);\n }", "title": "" }, { "docid": "69a0b21fb3b59fd1b7774d63afaf03c5", "score": "0.69642234", "text": "public function create()\n {\n return view('essentials::create');\n }", "title": "" }, { "docid": "b7b479f100128afe4ff7af3512fd766c", "score": "0.69603074", "text": "public function newAction()\n {\n $this->getSecurityManager()->allowOr403('new');\n\n $object = $this->getModelManager()->create();\n $form = $this->getForm($object);\n\n if ($form->handleRequest($this->getRequest())) {\n $this->getModelManager()->save($object);\n\n return $this->getRedirectToListResponse();\n }\n\n return $this->getRenderFormResponse($form);\n }", "title": "" }, { "docid": "acf307fc29e38f3eb3ce7326efc9234b", "score": "0.6959425", "text": "public function create()\n {\n $data['url'] = route($this->route . '.store');\n $data['title'] = __('Add') . ' ' . __($this->label);\n $data['resourcePath'] = $this->view;\n $data['route'] = $this->route;\n\n return view('admin.general.create')->with($data);\n }", "title": "" }, { "docid": "7423ea0a2f037cdf0d82c0bfb1da7d29", "score": "0.69558793", "text": "public function create()\n {\n return view('backend.book.bookadd');\n }", "title": "" }, { "docid": "53c6bc1f60b19320300c4fabee6ed361", "score": "0.6955069", "text": "public function actionCreate() {\n $model = new Forms();\n\n if ($this->request->isPost) {\n if ($model->load($this->request->post())) {\n $model->save();\n\n return $this->redirect(['view', 'id' => $model->id]);\n }\n } else {\n $model->loadDefaultValues();\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "ea30089b05638deecfcdcc640118738c", "score": "0.69544894", "text": "public function create()\n {\n return view('student.add');\n }", "title": "" }, { "docid": "ae46873014fa5fd503919d0a4b1887ed", "score": "0.69512147", "text": "public function create()\n {\n //display form\n return view ('services.custCreate');\n }", "title": "" }, { "docid": "eac67c9622712586377b66a2ff564132", "score": "0.6950107", "text": "public function create()\n\t{\n\t\treturn view('loisier/create');\n\t}", "title": "" }, { "docid": "be6ad27859db471093b0e5b2b09e5ffa", "score": "0.6949808", "text": "public function create()\n {\n return view('url.form');\n }", "title": "" }, { "docid": "ce097a7f86eacaa44dea17f0ad57e5af", "score": "0.6939847", "text": "public function create()\n\t{\n\t\treturn View::make('crebos.create');\n\t}", "title": "" }, { "docid": "63235ca26b90700eb46b16522a29a31a", "score": "0.6938437", "text": "public function create() : View\n {\n $fieldset = $this->menuFieldset();\n\n return $this->view('create', [\n 'title' => trans('addons.Aardwolf::titles.create'),\n 'data' => [],\n 'fieldset' => $fieldset->toPublishArray(),\n 'suggestions' => [],\n 'submitUrl' => route('aardwolf.postCreate')\n ]);\n }", "title": "" }, { "docid": "db4eb819752fba73041d3183c0667775", "score": "0.6938214", "text": "public function create()\n {\n\n $this->pageData['MainHeading'] = \"Add \" . $this->singularName;\n $this->pageData['PageTitle'] = \"Add \" . $this->singularName;\n $this->pageData['SubNav'] = \"Add \" . $this->singularName;\n $this->pageData['NavHeading'] = \"New \" . $this->singularName;\n\n // Add App Form\n $form = $this->form();\n\n return view('admin.add')\n ->with(['pageData' => $this->pageData])\n ->with(compact('form'))\n ->with(compact('jsValidator'));\n }", "title": "" }, { "docid": "568c63d802970802d43c670f348a8248", "score": "0.6936151", "text": "public function newAction()\n {\n $entity = new Species();\n $form = $this->createForm(new SpeciesType(), $entity);\n\n return $this->render('InfectBackendBundle:Species:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "d2dfb39011e7751d334f3b102132bcc0", "score": "0.69359493", "text": "public function create()\n {\n return view('libro.create');\n }", "title": "" }, { "docid": "d2dfb39011e7751d334f3b102132bcc0", "score": "0.69359493", "text": "public function create()\n {\n return view('libro.create');\n }", "title": "" }, { "docid": "854d474e9079854ad8a7ee81f9143ba1", "score": "0.69320035", "text": "public function create()\n {\n return view('inventory.form');\n }", "title": "" }, { "docid": "2b4c0cd22a57111ee2cfd13aac73f31c", "score": "0.6930252", "text": "public function create()\n {\n $title = trans('global.company_add');\n return view('Admin.company_form', ['company' => new Company(),'title'=>$title]);\n }", "title": "" }, { "docid": "78e9486c325ba462b19adda0de272401", "score": "0.6927174", "text": "public function newAction()\n {\n $entity = new Company();\n $form = $this->createForm(new CompanyType(), $entity);\n\n return $this->render('SiteSavalizeBundle:Company:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "94c3779c0a1265eecd22d4385bc1a934", "score": "0.69250137", "text": "public function create()\n {\n return view(\"List.form\");\n }", "title": "" }, { "docid": "b917bfaea71e2d0a3df177be4d435b70", "score": "0.6922628", "text": "public function create()\n {\n return View('regimen.create');\n }", "title": "" }, { "docid": "e7d77bd3e3281032dc80c6bc78add9d9", "score": "0.6919471", "text": "public function create()\n {\n return $this->showView('create');\n }", "title": "" }, { "docid": "647867f97e455ba059969ca3c7f2887c", "score": "0.69190735", "text": "public function create()\n {\n return view('student::student.create');\n }", "title": "" }, { "docid": "c51fdc706a6bfd79c2e1ca2912a1434f", "score": "0.6917047", "text": "public function create()\n {\n //load create form\n return view('products.create');\n }", "title": "" }, { "docid": "e2b0a02abbe886e85fd9672421e15054", "score": "0.69159436", "text": "public function create()\n {\n return view('clientenatural.create');\n }", "title": "" }, { "docid": "829518d17ea777e3ce8044bf5b54b566", "score": "0.6913815", "text": "public function create()\n {\n return view('demo.form');\n }", "title": "" }, { "docid": "5423c52c2321e0ddafbf93b55fde7689", "score": "0.6910701", "text": "public function create()\n {\n // Mengarahkan ke halaman form\n return view('buku.form');\n }", "title": "" }, { "docid": "847110acc021dbc5428f114892048164", "score": "0.6909241", "text": "public function create()\n {\n return view('saldo.form');\n }", "title": "" }, { "docid": "71762e87e905a248387bd0eac328ea8a", "score": "0.69030714", "text": "public function view_create_questioner_form() {\n \t// show all questioner\n \t// send questioner to form\n \treturn view(\"create_questioner\");\n }", "title": "" }, { "docid": "1bfbbb63771571819ef62035e977dcd9", "score": "0.6900927", "text": "public function newAction() {\n $entity = new Question();\n $form = $this->createCreateForm($entity);\n\n return $this->render('CdlrcodeBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "0ff401bbe9c3f43249bbe6cc8081a963", "score": "0.6898352", "text": "public function create()\n {\n return view('admin.inverty.add');\n }", "title": "" }, { "docid": "80e9174a5ea2d8d5de9a229c71015305", "score": "0.68934315", "text": "public function newAction() {\n $entity = new RutaSugerida();\n $form = $this->createCreateForm($entity);\n\n return $this->render('DataBaseBundle:RutaSugerida:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "a43ba09f835dbd27d4a3433e6207db17", "score": "0.6889982", "text": "public function create()\n {\n return view('admin.car.create');\n }", "title": "" }, { "docid": "2588f5840e59634edceb01654f4d7a91", "score": "0.68871695", "text": "public function create()\n\t{\n\t\treturn View::make('perusahaans.create');\n\t}", "title": "" }, { "docid": "bdb0161d2f2f44cdaea93bf890a4c02e", "score": "0.6886071", "text": "public function create()\n {\n return view(\"create\");\n }", "title": "" }, { "docid": "bdb0161d2f2f44cdaea93bf890a4c02e", "score": "0.6886071", "text": "public function create()\n {\n return view(\"create\");\n }", "title": "" }, { "docid": "5ada95495a3e9a254b79e8c70f274d97", "score": "0.68850255", "text": "public function create()\n\t{\n //echo 'show form';\n\t\treturn View::make('gaans.create');\n\t}", "title": "" }, { "docid": "63255cd98b7d27b5f7ada5644e404a73", "score": "0.688191", "text": "public function createAction() {\n\t\t$this->_helper->layout()->disableLayout();\n\t\t\n\t\t$form = new Admin_Form_Country();\n $this->view->form = $form;\n\t}", "title": "" }, { "docid": "ebf8f32acbc00c6c98f44086fb506407", "score": "0.688044", "text": "public function create()\n {\n return view('forming');\n }", "title": "" }, { "docid": "b8ac7882377fb8e91aafc311ae89adb6", "score": "0.6880041", "text": "public function create()\n {\n return view('infografis.create');\n }", "title": "" }, { "docid": "e87ea28de0e147839885d202fdcf87c3", "score": "0.6878092", "text": "public function create()\n {\n //return view('dashboard.state.form');\n }", "title": "" }, { "docid": "fb1106685e49c1f3cab227154413b8f7", "score": "0.68763846", "text": "public function create()\n {\n return view('forms');\n }", "title": "" }, { "docid": "aa511d4b629c0b0d4a199ccd11db45cb", "score": "0.68717414", "text": "public function onCreateForm(CreateFormResourceEvent $event)\n {\n //see the Form/ExampleType.php file. There is a required field for every resource.\n $form = $this->container->get('form.factory')->create(new ExampleType, new Example());\n //Use the following resource form.\n //Be carefull, the resourceType is case sensitive.\n //If you don't want to use the default form, feel free to create your own.\n //Make sure the submit route is\n //action=\"{{ path('claro_resource_create', {'resourceType':resourceType, 'parentInstanceId':'_nodeId'}) }}\".\n //Anything else different won't work.\n //The '_nodeId' isn't a mistake, it's a placeholder wich will be replaced with js later on.\n\n $content = $this->container->get('templating')->render(\n 'ClarolineCoreBundle:Resource:createForm.html.twig', array(\n 'form' => $form->createView(),\n 'resourceType' => 'claroline_example'\n )\n );\n\n $event->setResponseContent($content);\n $event->stopPropagation();\n }", "title": "" }, { "docid": "4ddd90ea14473a86e2988865e2801155", "score": "0.6871178", "text": "public function create()\n {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }", "title": "" }, { "docid": "3b6a16ce171a9e1a615b3e03450c34a3", "score": "0.68697494", "text": "public function create()\n {\n return view('red.create');\n }", "title": "" }, { "docid": "7b07df9cfd457b02f48b76d7469d53e0", "score": "0.686907", "text": "public function newAction(){\n\t\t$entity = new Reserva();\n\t\t$form = $this->createCreateForm($entity);\n\n\t\treturn $this->render('LIHotelBundle:Reserva:new.html.twig', array(\n\t\t\t'entity' => $entity,\n\t\t\t'form' => $form->createView(),\n\t\t));\n\t}", "title": "" }, { "docid": "08b2184ad0a486ae1bab76e79b3a1b26", "score": "0.6868627", "text": "public function create()\n {\n // not sure what to do with the form since im\n // using ame partial for both create and edit\n return view('plants.create')->with('plant', new Plant);\n }", "title": "" }, { "docid": "73084f7d2ba247149c11e34d765ee5b5", "score": "0.68682235", "text": "public function create()\n {\n return view('templates.forms');\n }", "title": "" }, { "docid": "9577fbd0ebc45d0dafabfda3c9643259", "score": "0.68674266", "text": "public function create() {\n\t\t$title = 'Create | Show';\n\n\t\treturn view('admin.show.create', compact('title'));\n\t}", "title": "" }, { "docid": "58434f03fb6ae0e081e2f4d0d7cc9644", "score": "0.68640476", "text": "public function newAction()\n {\n $entity = new Fichepatient();\n $form = $this->createCreateForm($entity);\n\n return $this->render('MedecinIBundle:Fichepatient:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" } ]
d0e9797d8415018fb14000fb276483a2
/method lihat data pengguna
[ { "docid": "29d5aa41db2b0001c615904e829e7e42", "score": "0.0", "text": "function get_data_pengguna($limit,$offset){\n \t\t$this->db->select('id_user , email, level');\n \t\t$this->db->from('user');\n \t\t$this->db->where('level','user');\n $this->db->offset($offset);\n $this->db->limit($limit);\n \t\treturn $this->db->get()->result();\n \t}", "title": "" } ]
[ { "docid": "141443df5527b5d8d2f3cc4546908e3b", "score": "0.7679058", "text": "public function data();", "title": "" }, { "docid": "141443df5527b5d8d2f3cc4546908e3b", "score": "0.7679058", "text": "public function data();", "title": "" }, { "docid": "141443df5527b5d8d2f3cc4546908e3b", "score": "0.7679058", "text": "public function data();", "title": "" }, { "docid": "016f9d13ecacdb65c0fe7a0f8edf1081", "score": "0.7238614", "text": "function grafikkabkota ($data) {\n \n}", "title": "" }, { "docid": "16711821af710d7b2dec8c93edec734f", "score": "0.7230467", "text": "public abstract function data();", "title": "" }, { "docid": "eb4223a8aa87e9b1a0ca8735cc8ff8ca", "score": "0.7209363", "text": "abstract public function get_data();", "title": "" }, { "docid": "0ee0798f4d0668d4d683a3efe430819a", "score": "0.7160867", "text": "public function getData();", "title": "" }, { "docid": "0ee0798f4d0668d4d683a3efe430819a", "score": "0.7160867", "text": "public function getData();", "title": "" }, { "docid": "0ee0798f4d0668d4d683a3efe430819a", "score": "0.7160867", "text": "public function getData();", "title": "" }, { "docid": "0ee0798f4d0668d4d683a3efe430819a", "score": "0.7160867", "text": "public function getData();", "title": "" }, { "docid": "0ee0798f4d0668d4d683a3efe430819a", "score": "0.7160867", "text": "public function getData();", "title": "" }, { "docid": "0ee0798f4d0668d4d683a3efe430819a", "score": "0.7160867", "text": "public function getData();", "title": "" }, { "docid": "0ee0798f4d0668d4d683a3efe430819a", "score": "0.7160867", "text": "public function getData();", "title": "" }, { "docid": "0ee0798f4d0668d4d683a3efe430819a", "score": "0.7160867", "text": "public function getData();", "title": "" }, { "docid": "0ee0798f4d0668d4d683a3efe430819a", "score": "0.7160867", "text": "public function getData();", "title": "" }, { "docid": "0ee0798f4d0668d4d683a3efe430819a", "score": "0.7160867", "text": "public function getData();", "title": "" }, { "docid": "0ee0798f4d0668d4d683a3efe430819a", "score": "0.7160867", "text": "public function getData();", "title": "" }, { "docid": "0ee0798f4d0668d4d683a3efe430819a", "score": "0.7160867", "text": "public function getData();", "title": "" }, { "docid": "0ee0798f4d0668d4d683a3efe430819a", "score": "0.7160867", "text": "public function getData();", "title": "" }, { "docid": "0ee0798f4d0668d4d683a3efe430819a", "score": "0.7160867", "text": "public function getData();", "title": "" }, { "docid": "0ee0798f4d0668d4d683a3efe430819a", "score": "0.7160867", "text": "public function getData();", "title": "" }, { "docid": "0ee0798f4d0668d4d683a3efe430819a", "score": "0.7160867", "text": "public function getData();", "title": "" }, { "docid": "0ee0798f4d0668d4d683a3efe430819a", "score": "0.7160867", "text": "public function getData();", "title": "" }, { "docid": "913c4f3783b0f5d68d3a47b9000a5439", "score": "0.706306", "text": "function _getData() {\n\t\n\t\t// turnier\n\t\t$query = 'SELECT name, invitationText'\n\t\t\t. ' FROM #__clm_turniere'\n\t\t\t. ' WHERE id = '.$this->param['id']\n\t\t\t;\n\t\t$this->_db->setQuery($query);\n\t\t$this->turnier = $this->_db->loadObject();\n\t\n\t\t\n\t}", "title": "" }, { "docid": "edffcdf6e349882454fd677f303c95f8", "score": "0.70478344", "text": "public function getData()\n {\n }", "title": "" }, { "docid": "edffcdf6e349882454fd677f303c95f8", "score": "0.70478344", "text": "public function getData()\n {\n }", "title": "" }, { "docid": "edffcdf6e349882454fd677f303c95f8", "score": "0.70478344", "text": "public function getData()\n {\n }", "title": "" }, { "docid": "edffcdf6e349882454fd677f303c95f8", "score": "0.70478344", "text": "public function getData()\n {\n }", "title": "" }, { "docid": "edffcdf6e349882454fd677f303c95f8", "score": "0.70478344", "text": "public function getData()\n {\n }", "title": "" }, { "docid": "61f5d0f5b0389d7572d17ec94db60c56", "score": "0.699862", "text": "function get_data()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "2f3e5a0171b9061ed171fd7b1389b81e", "score": "0.69675106", "text": "abstract public function getData();", "title": "" }, { "docid": "af5b6e0b5fb5e4daef7d1b8847880314", "score": "0.69534636", "text": "public function getData($data)\n {\n }", "title": "" }, { "docid": "8a2f47f1de2245bf73fd25c32450e638", "score": "0.6934273", "text": "abstract protected function fetchDataForLva();", "title": "" }, { "docid": "b26ad2a9bf86b434abcf6b093f177450", "score": "0.6923256", "text": "abstract protected function getData();", "title": "" }, { "docid": "b26ad2a9bf86b434abcf6b093f177450", "score": "0.6923256", "text": "abstract protected function getData();", "title": "" }, { "docid": "8e7bc16ce802777e6a2ccb2b2f92615f", "score": "0.69198185", "text": "static private function retreiveData(){\n \n }", "title": "" }, { "docid": "411e2431b5f21c69ceba53eee94997d1", "score": "0.69108087", "text": "public function data() {\n }", "title": "" }, { "docid": "8f4cea1b38b9c9e62579f60fb8628030", "score": "0.68916684", "text": "abstract function getData();", "title": "" }, { "docid": "5459bc633a34088481ff326fa41d67c5", "score": "0.68863344", "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": "99642f952e6598b50d6957a3e44a354a", "score": "0.6863659", "text": "function list_data($data){\n\t\t$this->data=$data;\n\t}", "title": "" }, { "docid": "b0007c59b6cf76214344f67c449a955b", "score": "0.68625784", "text": "function getData(){}", "title": "" }, { "docid": "b0007c59b6cf76214344f67c449a955b", "score": "0.68625784", "text": "function getData(){}", "title": "" }, { "docid": "08957a6c219c29a236b3d00f57d7e5b1", "score": "0.68216217", "text": "public abstract function getData();", "title": "" }, { "docid": "08957a6c219c29a236b3d00f57d7e5b1", "score": "0.68216217", "text": "public abstract function getData();", "title": "" }, { "docid": "46bbf8587a876e02e0638c1fdb48e895", "score": "0.68054247", "text": "public function datasaya() {\n\t\t$id=$this->session->userdata('myId');\n\t\t$paket['datasaya'] = $this->mdl_pelamar->getPelamarlagi($id);\n\t\t$this->load->view('pelamar/datapelamar',$paket);\n\t}", "title": "" }, { "docid": "c81331d5843db3927a05bd2008dbcb03", "score": "0.6760898", "text": "public function loadData();", "title": "" }, { "docid": "341ee0b1cb084696ceda89d616a35cc4", "score": "0.6720458", "text": "private function obtenerDatos(){\n\t\t\n\t}", "title": "" }, { "docid": "3028c676dc7eaa88ad991ff0f64addd3", "score": "0.6664695", "text": "function tampil_data()\n\t{\n\t\treturn $this->db->query(\"SELECT*FROM `penduduk`\")->result();\n\t}", "title": "" }, { "docid": "06e107bb90a4d9a14293a0fb7e041aa5", "score": "0.6656758", "text": "function aceptado(){\n\t\t\t\t$data = $this->datos_sesion();\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "8ba2230fdd2b0400e3a5871ec05f66a0", "score": "0.66541326", "text": "function getData();", "title": "" }, { "docid": "18613241881727dd1caee8395d0ffb72", "score": "0.66412234", "text": "public function loadData()\n {\n $this->preLoadData();\n $obj_query=new querry_select(\"select *\n from \".$this->stri_table_name.\"\n where \".$this->stri_primary_key.\"='\".$this->stri_primary_key_value.\"'\");\n \n $obj_query->execute(\"assoc\");\n foreach($obj_query->getIemeResult(0) as $key=>$value)\n {\n //si c'est une date, on convertit son format\n $value=($this->arra_simple_attribut[$key]['type']==\"DATE\")?date(\"d/m/Y_H:i:s\",strtotime($value)):$value;\n $this->arra_simple_attribut[$key]['value']=$value;\n }\n }", "title": "" }, { "docid": "cb19201b4edf3f6e457ac3dc7d281c98", "score": "0.6639521", "text": "public function get_data()\n {\n // Unused.\n }", "title": "" }, { "docid": "cafc85f8de273fd7e273e741f0a6fb07", "score": "0.66231817", "text": "protected function load_data(){ \n }", "title": "" }, { "docid": "7943a20557c6df35e15ee11670ebb86a", "score": "0.6621383", "text": "function lihatdata()\n {\n return $this->db->get('tb_jenjang');\n }", "title": "" }, { "docid": "a0be56a0928c529d588bf4e5270323ce", "score": "0.66026556", "text": "public function getData(){\n\n // This comes from a database\n return array('persian', 'bob', 'tabby', 'stray');\n }", "title": "" }, { "docid": "525c105396c37eb19244ae91020f59ca", "score": "0.6568079", "text": "public function datasurat(){\n\t\t$id=$this->session->userdata('myId');\n\t\t$paket['array']=$this->mdl_pelamar->getSurat($id);\n\t\t$this->load->view('pelamar/datasurat',$paket);\n\t}", "title": "" }, { "docid": "4555a3f68b52c20412cacc1ca3191f27", "score": "0.6560702", "text": "public function getData() {\n echo \"No.Telp : \" . $this->telpon .\"<br/>\";\n echo \"Kode Konfirmasi : \" . $this->kodeKonfirmasi .\"<br/>\";\n Pemberitahuan::fail();\n }", "title": "" }, { "docid": "72cef01eba75ac1542a312e56fb4c312", "score": "0.65393937", "text": "protected function loadData(){ \n }", "title": "" }, { "docid": "c0f693219f0cac2416162cd057f2ca6a", "score": "0.6539356", "text": "public function setData();", "title": "" }, { "docid": "f1df3cdd6566ec7970ae135a312a8498", "score": "0.65173316", "text": "function getdatait(){\n\t\t$id = $this->uri->segment(4);\n\t\tif($id){\n\t\t\t$dbid = intval($id);\n\t\t\t$comprob = $this->datasis->dameval(\"SELECT comprob FROM casi WHERE id=${dbid}\");\n\t\t\t$dbcomprob= $this->db->escape($comprob);\n\n\t\t\t$orderby= '';\n\t\t\t$sidx=$this->input->post('sidx');\n\t\t\tif($sidx){\n\t\t\t\t$campos = $this->db->list_fields('itcasi');\n\t\t\t\tif(in_array($sidx,$campos)){\n\t\t\t\t\t$sidx = trim($sidx);\n\t\t\t\t\t$sord = $this->input->post('sord');\n\t\t\t\t\t$orderby=\"ORDER BY `${sidx}` \".(($sord=='asc')? 'ASC':'DESC');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$grid = $this->jqdatagrid;\n\t\t\t$mSQL = \"SELECT origen, cuenta, referen, concepto, debe, haber, ccosto, sucursal, id, comprob FROM itcasi WHERE comprob=${dbcomprob} ${orderby}\";\n\t\t\t$response = $grid->getDataSimple($mSQL);\n\t\t\t$rs = $grid->jsonresult( $response);\n\t\t}else{\n\t\t\t$rs ='';\n\t\t}\n\t\techo $rs;\n\t}", "title": "" }, { "docid": "bf142287f7e2c99334cf1bb276e9289f", "score": "0.6480137", "text": "function getData(){\n // tell me simply how to get data from what and where should i fetch the data from. \n return NULL;\n }", "title": "" }, { "docid": "e8ebd5dfda654e6f517a2390dbc72967", "score": "0.6473914", "text": "public function simpan_data()\n\t{\n\t\t$this->modelsystem->simpanData();\n\t}", "title": "" }, { "docid": "9d434b666232ef843309ea219878d3ab", "score": "0.6445266", "text": "function readDetilPengarangPilihan(){\n // query to read single record\n $query = \"SELECT\n *\n FROM\n \" . $this->table_name . \"\n WHERE\n id_detil = ?\n \";\n \n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n \n // bind id of product to be updated\n $stmt->bindParam(1, $this->id_detil);\n \n // execute query\n $stmt->execute();\n \n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n // set values to object properties\n $this->id_detil = $row['id_detil'];\n $this->id_buku = $row['id_buku'];\n $this->id_pengarang = $row['id_pengarang'];\n $this->ket = $row['ket'];\n\n\n }", "title": "" }, { "docid": "2ca3004877840b09797ec3a19b104570", "score": "0.6442153", "text": "function retrieveData();", "title": "" }, { "docid": "0a371de8adc0d1166561d6255fc546ec", "score": "0.6440474", "text": "public function peng_listrik_data(){\n if($_SESSION['level'] == \"Pelanggan\"){\n $id_pelanggan = $_SESSION['id_user'];\n $get_all = $this->con->query(\"SELECT * FROM penggunaan JOIN pelanggan ON penggunaan.id_pelanggan=pelanggan.id_pelanggan WHERE penggunaan.id_pelanggan='$id_pelanggan'\");\n }\n else{\n $get_all = $this->con->query(\"SELECT * FROM penggunaan JOIN pelanggan ON penggunaan.id_pelanggan=pelanggan.id_pelanggan\");\n }\n\n $array = array();\n while($row = mysqli_fetch_array($get_all)){\n $array[] = $row;\n }\n\n return $array;\n }", "title": "" }, { "docid": "b47c6b91b9d04d83140e3c265f2de2b3", "score": "0.6434355", "text": "function ambil_data(){\n\t\t$this->db->order_by($this->id,$this->order);\n\t\treturn $this->db->get($this->nama_table)->result();\n\t}", "title": "" }, { "docid": "d70d33743ef735a088f817694d731e26", "score": "0.64209634", "text": "public function getData(){\r\n $result['empresa']=$this->empresa;\r\n $result['nombreSucursal'] = $this->nombreSucursal;\r\n $result['latitudSucursal'] = $this->latitudSuc;\r\n $result['longitudSucursal'] = $this->longitudSuc;\r\n\r\n return $result;\r\n }", "title": "" }, { "docid": "2e74fffe7f68baa1edef1a8aaaab895b", "score": "0.641727", "text": "function getdata(){\n\t\t$grid = $this->jqdatagrid;\n\t\t// CREA EL WHERE PARA LA BUSQUEDA EN EL ENCABEZADO\n\t\t$mWHERE = $grid->geneTopWhere('invresu');\n\t\t$response = $grid->getData('invresu', array(array()), array(), false, $mWHERE );\n\t\t$rs = $grid->jsonresult( $response);\n\t\techo $rs;\n\t}", "title": "" }, { "docid": "34dbbd3f53bc346d3cb1a78c52f22306", "score": "0.6407812", "text": "public function recogerDatos() {\r\n \r\n }", "title": "" }, { "docid": "2cd2b98458e62de7aa09bbc63502a98c", "score": "0.63980794", "text": "function set_detail(){\r\n\t\t\t\r\n\t\t$sql=\"SELECT libelle, niveau_etude, id_for, id_ens\r\n\t\t FROM les_classes\r\n\t\t\t WHERE id_cla='$this->id_cla'\";\t \t\t \r\n\r\n\t\t$result = $this->bdd->executer($sql);\r\n\t\t\t\r\n\t\tif ($ligne = mysql_fetch_assoc($result)) {\r\n\r\n\t\t\t$this->libelle = $ligne['libelle'];\r\n\t\t\t$this->niveau_etude = $ligne['niveau_etude'];\r\n\t\t\t$this->id_for = $ligne['id_for'];\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "be96bf14c3093ae9739614fd79360369", "score": "0.63768494", "text": "public function datas()\n {\n// It must always be executed before the view () method because it will influence the interface to display.\n return $this->_datas;\n }", "title": "" }, { "docid": "21c5ae8fdca796130c77beaf65b1979c", "score": "0.6361809", "text": "function getdata(){\n\t\t$grid = $this->jqdatagrid;\n\n\t\t// CREA EL WHERE PARA LA BUSQUEDA EN EL ENCABEZADO\n\t\t$mWHERE = $grid->geneTopWhere('casi');\n\n\t\t$response = $grid->getData('casi', array(array()), array(), false, $mWHERE, 'id', 'desc' );\n\t\t$rs = $grid->jsonresult( $response);\n\t\techo $rs;\n\t}", "title": "" }, { "docid": "33adaf0a2193f59aca1203233d4ef889", "score": "0.6356889", "text": "public function datarelawan()\n\t{\n\t\t$this->data['hasil'] = $this->Model->getRelawan('tb_relawan');\n\t\t$this->load->view('Admin/relawan', $this->data);\n\t}", "title": "" }, { "docid": "5e5546442f3b33eaacd516956e7863f0", "score": "0.63504547", "text": "function &getData()\n\t{\n\t\t// Load the data\n\t\tif (empty( $this->_data )) \n\t\t{\n\t\t\t$query = ' SELECT * FROM #__po_da_na '.\n \t\t\t\t\t' WHERE id = '.$this->_id;\n\t\t\t$this->_db->setQuery( $query );\n\t\t\t$this->_data = $this->_db->loadObject();\n\t\t}\n\t\tif (!$this->_data) \n\t\t{\n\t\t\t$query = ' SELECT id FROM #__po_jahr WHERE aktuell=1';\n\t\t\t$this->_db->setQuery( $query );\n\t\t\t$year = $this->_db->loadResult();\n\n\n\t\t\t$this->_data = new stdClass();\n\t\t\t$this->_data->id = 0;\n\t\t\t$this->_data->id_jahr = $year;\n\t\t\t$this->_data->id_darst = 0;\n\t\t\t$this->_data->id_name = 0;\n\t\t\t$this->_data->Funktion = 0;\t\t// @var int 0 - sonstiges, 1 - Lehrer, 2 - Schüler, 3 - Ministerium, 4 - Ministerium/Lehrer, 5 - Presse\n\t\t\t$this->_data->Sonder = 0;\t\t// @var int 0 - keine, 1 - Vertrauensschüler, 2 - Schulsprecher, 3 - Hauslehrer\n\t\t\t$this->_data->published = 0; \t// @var int 1 = auf Frontend anzeigen 0 = nicht anzeigen\n\t\t\t$this->_data->sicher = 1; \t\t// @var int 1 = ist sicher dabei 0 = nicht siche dabei (Wir später umgewandelt in published)\n\t\t\t$this->_data->kcomment = null;\t// @var varchar kurzer Kommentar zum Charakter\n\t\t\t$this->_data->comment = null;\t// @var longtext die Kurze Infos zur Rolle (Lehrer/Schüler, etc)\n\t\t\t$this->_data->bild = null;\t\t// @var varchar Datei des Bildes (ohne Pfad)\n\t\t\t$this->_data->zurperson = null;\t// @var longtext Infos zur Rolle in dem Jahr\n\t\t\t$this->_data->hits = 0;\t\t\t// @var int Soll ein automatischer Clickzähler sein?\n\t\t\t$this->_data->checked_out = 0;\t// @var int wer hat das letzte mal den Datensatz geschrieben\n\t\t\t$this->_data->checked_out_time = null; // @var datetime und wer war es\n\t\t}\n\t\treturn $this->_data;\n\t}", "title": "" }, { "docid": "d26277ed9781296af6493758b22a7068", "score": "0.6347577", "text": "function getdata(){\n\t\t$grid = $this->jqdatagrid;\n\n\t\t// CREA EL WHERE PARA LA BUSQUEDA EN EL ENCABEZADO\n\t\t$mWHERE = $grid->geneTopWhere('conv');\n\n\t\t$response = $grid->getData('conv', array(array()), array(), false, $mWHERE, 'id', 'desc' );\n\t\t$rs = $grid->jsonresult( $response);\n\t\techo $rs;\n\t}", "title": "" }, { "docid": "915614a2bdda6f3dfc2907f0136ff447", "score": "0.6340871", "text": "function getDataMapel(){\n\t\n\t$db\t\t\t=\tnew\tDb_connection();\n\t$enkripsi\t=\tnew Enkripsi();\n\t\n\t//Kondisional param idjenjang\n\t$idjenjang\t\t=\t$_GET['jenjang'];\n\t$conJenjang\t\t=\t$idjenjang == '' ? \"1=1\" : \" IDJENJANG = '\".$enkripsi->decode($idjenjang).\"' \";\n\t\n\t$sql\t\t\t=\tsprintf(\"SELECT IDMAPEL, NAMA_MAPEL FROM m_mapel WHERE %s GROUP BY NAMA_MAPEL ORDER BY NAMA_MAPEL\"\n\t\t\t\t\t\t\t\t, $conJenjang\n\t\t\t\t\t\t\t\t);\n\t$result\t\t\t=\t$db->query($sql);\n\t$data\t\t\t=\tarray();\n\t\n\tif($result){\n\n\t\tif(count($result) > 0){\n\n\t\t\tforeach($result as $key){\n\t\n\t\t\t\tarray_push($data, array($enkripsi->encode($key['IDMAPEL']), $key['NAMA_MAPEL']));\n\t\t\t\n\t\t\t}\n\n\t\t} else {\n\t\n\t\t\tarray_push($data, array('', '- Data tidak ditemukan -'));\n\t\n\t\t}\n\n\t} else {\n\n\t\tarray_push($data, array('', '- Data tidak ditemukan -'));\n\n\t}\n\n\techo json_encode($data);\n\tdie();\n\t\t\n}", "title": "" }, { "docid": "0ad663099192fe97f2301944ac444c4b", "score": "0.633608", "text": "public function data_mata_kuliah()\n\t{\n\n\t\t$data['data'] = $this->m_aka->data_mata_kuliah_2(); \n\t\t$data['pagination'] = $this->pagination->create_links();\n\t\t$data['content'] = 'pg_jurusan/data_mata_kuliah';\n\t\t$this->load->view('pg_jurusan/content', $data);\n\t}", "title": "" }, { "docid": "dc0028c0d4a179e7a00525ef4734b23b", "score": "0.6332472", "text": "function data()\n{\n\treturn drone()->data;\n}", "title": "" }, { "docid": "46ae90e02d3f08146f6c5e1a8506556f", "score": "0.6318721", "text": "function getsales(){\r\n $data=array();\r\n $sql=\"select cos.*,pret, nume , prenume , email, telefon,judet, localitate, adresa, denumire from cos,jocuri,users WHERE cos.id_client=users.id AND cos.id_produs=jocuri.id AND (starecomanda='neprocesata' OR starecomanda='procesata') order by cos.data\";\r\n $sql=$this->db->query($sql) or die('faileddd');\r\n while ($s = $sql-> fetch_assoc()){\r\n array_push ($data , $s);\r\n }\r\n return $data;\r\n\r\n }", "title": "" }, { "docid": "1b64ad8877aeba9aaa7d166fc4733183", "score": "0.6314139", "text": "public function data()\n\t{\n\t\t$data['title'] = 'Data pH Tanah';\n\t\t$data['page'] = 'backend/data';\n\t\t$data['data'] = $this->data->getData();\n\t\t$this->load->view('backend/index', $data, FALSE);\n\t}", "title": "" }, { "docid": "dd2be6bbd90190675a06920703ca5fa8", "score": "0.62930053", "text": "public function simpanData() {\n\n\t\t\t$tipe = $this->f3->get('PARAMS.tipe');\n\t\t\t$id = $this->f3->get('POST.id');\n\n\t\t\tswitch ($tipe) {\n\t\t\t\tcase 'artikel':\n\n\t\t\t\t\t$artikel = $this->tabelDB('artikel');\n\n\t\t\t\t\tif ($id) $artikel->load(array('id=?', $id));\n\n\t\t\t\t\t$artikel->copyFROM('POST');\n\n\t\t\t\t\tif (!$id) {\n\t\t\t\t\t\t$artikel->id_user = $this->f3->get('SESSION.id');\n\t\t\t\t\t\t$artikel->tanggal = date('Y-m-d');\n\t\t\t\t\t\t$artikel->aktif = '1';\n\t\t\t\t\t\t$artikel->komentar = '1';\n\t\t\t\t\t\t$artikel->pages = '0';\n\t\t\t\t\t}\n\n\t\t\t\t\t$artikel->slug = $this->slugging($this->f3->get('POST.judul'));\n\t\t\t\t\t$artikel->save();\n\t\t\t\t\techo 'OK!';\n\t\t\t\tbreak;\n\t\t\t\tcase 'kategori':\n\t\t\t\t\t$nama = $this->f3->get('POST.nama');\n\n\t\t\t\t\t$kategori = $this->tabelDB('kategori');\n\n\t\t\t\t\tif ($id) $kategori->load(array('id=?', $id));\n\t\t\t\t\t$kategori->copyFROM('POST');\n\n\t\t\t\t\tif ($id AND !$this->f3->get('POST.aktif')) $kategori->aktif = '0';\n\n\t\t\t\t\t$kategori->slug = $this->slugging($nama);\n\t\t\t\t\t$kategori->save();\n\t\t\t\t\t// echo ($id) ? 'OK!' : '<a href=\"' . $this->f3->get('hal_admin') . '/edit/kategori/' . $kategori->id . '\">' . $nama . '</a>';\n\t\t\t\t\techo ($id) ? 'OK!' : $nama;\n\t\t\t\tbreak;\n\t\t\t\tcase 'user':\n\t\t\t\t\t$nama = $this->f3->get('POST.nama');\n\t\t\t\t\t$user = $this->tabelDB('user');\n\n\t\t\t\t\t// Cek\n\t\t\t\t\tif (!$id) {\n\t\t\t\t\t\t$user->load(array('nama=?', $nama));\n\t\t\t\t\t\tif ($user->dry()) {\n\t\t\t\t\t\t\t$user->password = '0';\n\t\t\t\t\t\t\t$user->aktif = '0';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t// Cek apakah dua password sama!\n\t\t\t\t\t\t$pass1 = $this->f3->get('POST.pass_pertama');\n\t\t\t\t\t\t$pass2 = $this->f3->get('POST.pass_kedua');\n\t\t\t\t\t\tif ($pass1 != $pass2) {\n\t\t\t\t\t\t\techo 'BEDA!';\n\t\t\t\t\t\t\texit;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t$user->load(array('id=?', $id));\n\t\t\t\t\t\t\t$user->password = $this->hashing($pass1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$user->copyFROM('POST');\n\t\t\t\t\t$user->save();\n\t\t\t\t\techo 'OK!';\n\t\t\t\tbreak;\n\t\t\t\tcase 'setting':\n\t\t\t\t\t$settings = $this->tabelDB('setting');\n\t\t\t\t\t$settings->load(array('id=?', '1'));\n\t\t\t\t\t$settings->copyFROM('POST');\n\t\t\t\t\t$settings->save();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "ead41bc644f508ade8990615ce799030", "score": "0.6292991", "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": "21d40cc70f9c645c405ede94670efabb", "score": "0.6287905", "text": "public function userData($data);", "title": "" }, { "docid": "148b03d5cb69548a447af71687304dc4", "score": "0.6281711", "text": "function getData(){\r\n return json_decode($this->data); //lee la variable data y la transforma\r\n }", "title": "" }, { "docid": "466b41fb3e949040062fce69d3775c0c", "score": "0.62739927", "text": "public function setData()\n {\n }", "title": "" }, { "docid": "25325ac40ac96a79dba144f7237b3a90", "score": "0.6270184", "text": "public function data($name = null);", "title": "" }, { "docid": "fa1088cd3d98020352ba61900b831ec1", "score": "0.6268865", "text": "public function tampil_data()\n {\n return $this->db->get('tb_mahasiswa');\n }", "title": "" }, { "docid": "055ed3bb3b33e0d76c34a59d2380f237", "score": "0.6266647", "text": "private function _data(){\n\t\t$email = $this->user_email = $this->session->userdata('EMAIL');\n\t\t$email = '[email protected]';\n\t\t$this->load->model('invoice/ec_bapp','bapp');\n\t\treturn $this->bapp->fields('EC_BAPP.ID,NO_PO,PO_ITEM,SHORT_TEXT,CREATE_AT,VND_HEADER.VENDOR_NAME')->as_array()->get_all_with_vendor(array('EC_BAPP.EMAIL' => $email , 'EC_BAPP.STATUS' => '2'));\n\t}", "title": "" }, { "docid": "ada452a9b10f2510d33edf79ba746e99", "score": "0.6262578", "text": "public function displayData()\n\t\t{\n\t\t $query = \"SELECT * FROM umum\";\n\t\t $result = $this->con->query($query);\n\t\tif ($result->num_rows > 0) {\n\t\t $data = array();\n\t\t while ($row = $result->fetch_assoc()) {\n\t\t $data[] = $row;\n\t\t }\n\t\t\t return $data;\n\t\t }else{\n\t\t\t echo \"tidak ada data\";\n\t\t }\n\t\t}", "title": "" }, { "docid": "b37461b92a1e12143d2819fe536f2a83", "score": "0.62604886", "text": "function resultdata($tabel_name,$param='',$method='get',$status=FALSE){\n $this->Main_model->tabel_name($tabel_name);\n $this->Main_model->set_parameter($param);\n $result = $this->Main_model->response_result($method,$status);\n $this->response($result);\n }", "title": "" }, { "docid": "cc6c1d6740524e3a6589f6a79bfe9692", "score": "0.6260296", "text": "private function getElementosData () {\n\n if ((is_array($this->data) or is_object($this->data)) and count($this->data) > 0) {\n\n if ($this->selector == 'TABLE') {\n #Debug::mostrarArray($this->data);\n }\n foreach ($this->data as $key => $value) {\n\n $this->selectorCreado .= \" $key='\" . $value . \"'\";\n }\n }\n }", "title": "" }, { "docid": "00c7edd8765b88a4a555d3ac93408221", "score": "0.62599975", "text": "function baca_data(){\n\t\treturn $this->db->query(\"SELECT * FROM tb_produk\");\n\t}", "title": "" }, { "docid": "28f79a429e4ce19dd5a755a5b9ef8923", "score": "0.62576634", "text": "public function batal_valwis() {\n\n\t\t$this->app->check_modul(); // untuk pengecekan modul\n\n\t\t$dataSearch = $this->uri->segment(4);\n\n\t\t$this->sinkron_db->Sinkron_wisuda_delete(\"nilai_akhir\", \"NIM='$dataSearch'\", \"\");\n\t\t$this->sinkron_db->Sinkron_wisuda_delete(\"mhs\", \"NIM='$dataSearch'\", \"\");\n\t\t$this->db->query(\"UPDATE _v2_kliring_wisuda set st_kliring=1 and NIM='$dataSearch'\");\n\n\t\t$this->getDataMahasiswa_data($dataSearch, \"\");\n\t}", "title": "" }, { "docid": "7705d789ab6ae4d126df54d3cb4b8a62", "score": "0.62466043", "text": "protected function LoadData()\n\t{\n\t}", "title": "" }, { "docid": "0dff5da4315f7b6bf2b8c9946f0c2514", "score": "0.62440634", "text": "function getdata(){\n\t\t$grid = $this->jqdatagrid;\n\n\t\t// CREA EL WHERE PARA LA BUSQUEDA EN EL ENCABEZADO\n\t\t$mWHERE = $grid->geneTopWhere('sprm');\n\n\t\t$response = $grid->getData('sprm', array(array()), array(), false, $mWHERE, 'id', 'desc' );\n\t\t$rs = $grid->jsonresult( $response);\n\t\techo $rs;\n\t}", "title": "" }, { "docid": "acc0897964a5c07f50e1075b421c0186", "score": "0.62394863", "text": "function data_mapel()\n\t{\n // function ini hanya boleh diakses oleh admin dan dosen\n if($this->session->userdata('akses')=='1'){\n\t\t$data['list'] = $this->InputUser_model->getAll_mapel();\n $this->template->utama('Admin/v_data/v_data_mapel', $data);\n }else{\n echo '<script type=\"text/javascript\">alert(\"Maaf Akses Tidak Boleh\");\n\t window.location=\"index\";\n\t </script>';\n }\n \n\t}", "title": "" }, { "docid": "becc81c6ffccfd1219cddd86b8003ee6", "score": "0.6236041", "text": "function data_master_tempat_tinggal(){\n\t\t$CI=&get_instance();\n\t\t$isi2\t= $CI->s00_lib_api->get_api_json(URL_API_SIA.'sia_master/data_view', 'POST', \n\t\t\t\tarray('api_kode'=>1004, 'api_subkode' => 1));\t\n\t\treturn $isi2;\n\t}", "title": "" }, { "docid": "3182b54d4415de9fb08a0755e2249b36", "score": "0.62333584", "text": "public function bezoek() {\n\t}", "title": "" }, { "docid": "70c5782cf7a08bb19649cb7f89c3f1cd", "score": "0.62312263", "text": "private function getData()\n\t{\n\t\tif($this->URL->getParameter(1) === null) $this->redirect(FrontendNavigation::getURL(404));\n\n\t\t// get by URL\n\t\t$this->record = FrontendMiniBlogModel::get($this->URL->getParameter(1));\n\t\tif(empty($this->record)) $this->redirect(FrontendNavigation::getURL(404));\n\n\t\t$this->record['full_url'] = FrontendNavigation::getURLForBlock('mini_blog', 'detail') . '/' . $this->record['url'];\n\t\t$this->record['tags'] = FrontendTagsModel::getForItem('mini_blog', $this->record['id']);\n\t}", "title": "" }, { "docid": "a1c2d51e0f62a207ae95d6518ac30efd", "score": "0.62243927", "text": "function ambil_data_produk()\n\t{\n\t\t$this->db->order_by($this->id_produk,$this->order_produk);\n\t\treturn $this->db->get($this->table_produk)->result();\n\t}", "title": "" }, { "docid": "41b1fa5dad2bb6b26fdb03f1018f5680", "score": "0.6221888", "text": "function CBeneficiarioData($db) {\r\n $this->db = $db;\r\n }", "title": "" } ]
997b2a1e9a77a0a0daa149cafa7fc34c
Creates data provider instance with search query applied
[ { "docid": "58943dad78eeffd454a9152d7489bbf0", "score": "0.0", "text": "public function search($params)\n {\n $query = TaskDetail::find();\n\n // add conditions that should always apply here\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n ]);\n\n $this->load($params);\n\n if (!$this->validate()) {\n // uncomment the following line if you do not want to return any records when validation fails\n // $query->where('0=1');\n return $dataProvider;\n }\n\n // grid filtering conditions\n $query->andFilterWhere([\n 'id' => $this->id,\n 'task_id' => $this->task_id,\n 'project_id' => $this->project_id,\n 'repo_id' => $this->repo_id,\n 'created_at' => $this->created_at,\n 'updated_at' => $this->updated_at,\n ]);\n\n $query->andFilterWhere(['like', 'base_branch', $this->base_branch])\n ->andFilterWhere(['like', 'task_branch', $this->task_branch])\n ->andFilterWhere(['like', 'base_commit_hash', $this->base_commit_hash])\n ->andFilterWhere(['like', 'task_commit_hash', $this->task_commit_hash])\n ->andFilterWhere(['like', 'dir_dealing', $this->dir_dealing]);\n\n return $dataProvider;\n }", "title": "" } ]
[ { "docid": "7f1ef57a9d5619dccd8cca4632e69a7f", "score": "0.6742238", "text": "public function search()\n {\n $q = $this->getQuery();\n $dataProvider = new ActiveDataProvider([\n 'query' => $q,\n ]);\n\n return $dataProvider;\n }", "title": "" }, { "docid": "a9982253622462a1af634e2fd5e938aa", "score": "0.6670391", "text": "public function search() {\n\n\t\t$criteria = $this->getDbCriteria();\n\n\t\t$criteria->compare('id', $this->id);\n\t\t$criteria->compare('name', $this->name, true);\n\t\t$criteria->compare('description', $this->description, true);\n\t\t$criteria->compare('filterScopes', $this->filterScopes, true);\n\n\t\t$sort = new CSort;\n\t\t$sort->defaultOrder = 'id DESC';\n\n\t\treturn new NActiveDataProvider($this, array(\n\t\t\t'criteria' => $criteria,\n\t\t\t'sort' => $sort,\n\t\t\t'pagination' => array(\n\t\t\t\t'pageSize' => 20,\n\t\t\t),\n\t\t));\n\t}", "title": "" }, { "docid": "3f36ba7040ddacff05266dbf7986ad9c", "score": "0.6650883", "text": "public function search(): Search\n {\n return new Search($this->_provider);\n }", "title": "" }, { "docid": "8a4ec414e1925faa8000cb0b921e1583", "score": "0.65986764", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('q', $this->q, true);\n $criteria->compare('hint', $this->hint, true);\n\n $pagination = array('pageSize' => Yii::app()->params['pageSize']);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n 'pagination' => $pagination\n ));\n }", "title": "" }, { "docid": "e8b295b9e48a7d165337d824398cb5e7", "score": "0.64874446", "text": "public function search()\n\t{\n\t\t$criteria = $this->getSearchCriteria();\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "768052739bb1237766174263e334997f", "score": "0.64632404", "text": "public function createSearch()\n\t{\n\t\t$conn = $this->dbm->acquire( $this->dbname );\n\t\t$search = new \\Aimeos\\MW\\Criteria\\SQL( $conn );\n\t\t$this->dbm->release( $conn, $this->dbname );\n\n\t\treturn $search;\n\t}", "title": "" }, { "docid": "b8594503c0093bfb1436580b37fce05c", "score": "0.6434115", "text": "public function new_search_query();", "title": "" }, { "docid": "deae015dd548fd75b2a4fcef4d84832e", "score": "0.638802", "text": "public function search()\n {\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('department', $this->department);\n $criteria->compare('f_id', $this->f_id);\n return new CActiveDataProvider(get_class($this), array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "1a4a9256045bed2e51dba1b7501c1cf2", "score": "0.63496596", "text": "public function search()\n {\n return new SearchBuilder($this, $this->getDSLQuery());\n }", "title": "" }, { "docid": "baafaa658bc46ae58fc3862f7f60da29", "score": "0.6345578", "text": "protected function prepareDataProvider()\n {\n /* @var $model Post */\n $model = new $this->modelClass;\n $query = $model::find();\n $dataProvider = new ActiveDataProvider(['query' => $query]);\n\n $model->setAttribute('title', @$_GET['title']);\n $query->andFilterWhere(['like', 'title', $model->title]);\n\n return $dataProvider;\n\t}", "title": "" }, { "docid": "81dfd4a4117d10b3877233663383a998", "score": "0.63321376", "text": "public function search() {\n\t\t$criteria = new CDbCriteria;\n\t\t$criteria->compare('id', $this->id);\n\t\t$criteria->compare('price', $this->price, true);\n\t\t$criteria->compare('zone', $this->zone, true);\n\t\t$criteria->compare('city', $this->city, true);\n\t\t$criteria->compare('weight', $this->weight, true);\n\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t'criteria' => $criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "6d3f905da2fde8426d7f593782cd0fa5", "score": "0.6325382", "text": "public function dataProvider()\n {\n return new DataProvider();\n }", "title": "" }, { "docid": "9ef324039cd99e87946c7775773f2ac5", "score": "0.6289584", "text": "protected function prepareDataProvider()\n {\n if ($this->prepareDataProvider !== null) {\n return call_user_func( $this->prepareDataProvider, $this );\n }\n\n /**\n * @var \\yii\\db\\BaseActiveRecord $modelClass\n */\n $modelClass = $this->modelClass;\n\n $model = new $this->modelClass( [\n ] );\n\n $safeAttributes = $model->safeAttributes();\n $params = array();\n\n foreach ($this->params as $key => $value) {\n if (in_array( $key, $safeAttributes )) {\n $params[$key] = $value;\n }\n }\n\n\n $query = $modelClass::find();\n if (isset( $params['Category_Code'] )) {\n $query->where( \"Category_Code LIKE :Category_Code\" );\n $query->addParams( [ ':Category_Code' => $params['Category_Code'] . \"%\" ] );\n $query->addOrderBy( [ 'Category_Code' => SORT_ASC ] );\n unset( $params['Category_Code'] );\n }\n if (isset( $params['q'] )) {\n $query->where( \"GL_Code LIKE :q\" );\n $query->addParams( [ ':q' => $params['q'] . \"%\" ] );\n $query->addOrderBy( [ 'GL_Code' => SORT_ASC ] );\n unset( $params['q'] );\n }\n\n $dataProvider = new ActiveDataProvider( [\n 'query' => $query,\n ] );\n\n if (empty( $params )) {\n return $dataProvider;\n }\n\n\n foreach ($params as $param => $value) {\n $query->andFilterWhere( [\n $param => $value,\n ] );\n }\n\n return $dataProvider;\n }", "title": "" }, { "docid": "cd1b7bff87dc51edf28a8a974c433a99", "score": "0.62821275", "text": "public function search() {\n $criteria = new CDbCriteria();\n if (isset($_GET['group_by']) && in_array($_GET['group_by'], $this->searchebleFields())) {\n $criteria->group = \"t.\" . $_GET['group_by'];\n }\n foreach ($this->attributes as $name => $attr) {\n if (strpos($attr, \"{AND}\") !== false) {\n $expl = explode(\"{AND}\", $attr);\n foreach ($expl as $val) {\n $criteria->compare(\"t.{$name}\", $val, true);\n }\n } else {\n $criteria->compare(\"t.{$name}\", $attr, ($name == 'id') ? false : true);\n }\n }\n static::$_SearchCriteria = clone $criteria;\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "9bae359ec4f55467ffdd9bd0a027a5f3", "score": "0.627023", "text": "public function __construct($search_data)\n {\n //\n $this->search_data = $search_data;\n \n }", "title": "" }, { "docid": "c1ae4beb345c84bc8d81170e2a3cd4a3", "score": "0.62671787", "text": "public function search($searchQuery) {\n $query = FilmCategory::find();\n\n\n if ($searchQuery !== null) {\n $query->andFilterWhere(['like', 'name', $searchQuery]);\n }\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n ]);\n\n return $dataProvider;\n }", "title": "" }, { "docid": "f47ea31ff9c7b52ab4f7e6dc05d2943a", "score": "0.6240603", "text": "public function search()\n {\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('key', $this->key, true);\n $criteria->compare('title', $this->title, true);\n $criteria->compare('value', $this->value, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "ddf7a8e4c484674f5be3f69617394b53", "score": "0.6215536", "text": "public function search() {\n\t\t$criteria = new CDbCriteria;\n\t\t$criteria->compare('id', $this->id);\n\t\t$criteria->compare('zone', $this->zone, true);\n\t\t$criteria->compare('city', $this->city, true);\n\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t'criteria' => $criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "ad00b48a7a74e016388160024059e70d", "score": "0.62029356", "text": "public function search() {\r\n $criteria = new CDbCriteria;\r\n\r\n $criteria->compare('t.id', $this->id);\r\n $criteria->compare('t.name', $this->name, true);\r\n\r\n return new ActiveDataProvider($this, array(\r\n 'criteria' => $criteria,\r\n ));\r\n }", "title": "" }, { "docid": "c31c73c6dfe4b1c44dfef02e24cc6b27", "score": "0.61847097", "text": "public function applySearchQuery(): Panel\n {\n if ($this->search) {\n $column = mb_strtolower($this->search->column);\n\n // If you have a custom handler, we'll use that instead.\n if (method_exists($this, 'searchHandler')) {\n $this->searchHandler($this->search, $this->query, $this->filters, $this->request);\n } elseif ($this->searchHandler) {\n call_user_func($this->searchHandler, $this->search, $this->query, $this->filters, $this->request);\n } else {\n // A simple search on a local DB column, we just use LIKE here... if you need anything\n // more fancy then use a custom search handler to amend the query.\n if ($this->isValidColumn($column)) {\n $this->query->where($column, 'LIKE', sprintf('%%%s%%', $this->search->query));\n }\n }\n }\n\n return $this;\n }", "title": "" }, { "docid": "f1be7956c516115062a63e9e93e67f0b", "score": "0.6180289", "text": "public function search()\n {\n $criteria = new CDbCriteria;\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "be9e7731a8de944594ed30625d86a7a8", "score": "0.6147586", "text": "public function search()\n {\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id, true);\n $criteria->compare('param', $this->param, true);\n $criteria->compare('value', $this->value, true);\n $criteria->compare('default', $this->default, true);\n $criteria->compare('label', $this->label, true);\n $criteria->compare('type', $this->type, true);\n $criteria->addCondition('hidden=0');\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "08cfaeaa6554f30e657964d9fa61b571", "score": "0.6138504", "text": "public function search()\n {\n $criteria = new CDbCriteria;\n $criteria->compare('id', $this->id);\n $criteria->compare('planned', $this->planned);\n $criteria->compare('release_finished', $this->release_finished);\n\n return new CActiveDataProvider($this, array(\n 'pagination' => array(\n 'pageSize' => Yii::app()->user->getState('pageSize', Yii::app()->params['defaultPageSize']),\n ),\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "e67d0b63e6d29a326c4829790eb39391", "score": "0.6135495", "text": "public function queryStringDataProvider() {}", "title": "" }, { "docid": "507b180fbe5e4a71d2f145caf7eddccc", "score": "0.61344975", "text": "public function search()\n {\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('title', $this->title, true);\n $criteria->compare('weight', $this->weight);\n $criteria->compare('views', $this->views);\n $criteria->compare('created', $this->created, true);\n $criteria->compare('showed', $this->showed, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "3832e01f351823e9b1ee0e67dc86a352", "score": "0.6129427", "text": "public function search()\n\t{\n\t\t$criteria=new CDbCriteria;\n\t\t\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('short',$this->short,true);\n\t\t\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t\t'pagination' => array('pageSize' => 100),\n\t\t));\n\t}", "title": "" }, { "docid": "12ce2a87e1e6bb2afae10391aff34356", "score": "0.612197", "text": "public function prepareDataProvider()\r\n {\r\n $model = new GalleryItems();\r\n $res = $model->search(\\Yii::$app->request->queryParams);\r\n\r\n\r\n return $res;\r\n }", "title": "" }, { "docid": "d8a2457d95fe46dee79beb51eea58d72", "score": "0.61128163", "text": "public function search()\n {\n $criteria = new CDbCriteria;\n\n $criteria->compare('name', $this->name, true);\n $criteria->compare('email', $this->email, true);\n $criteria->compare('phone', $this->phone, true);\n\n return new CActiveDataProvider($this, array('criteria' => $criteria, 'sort' => array('defaultOrder' => 'id desc')));\n }", "title": "" }, { "docid": "b5e40db0d4c6c8e94def443f39e77401", "score": "0.61025864", "text": "public function search()\n {\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('status', $this->status);\n $criteria->compare('city_id', $this->city_id);\n $criteria->compare('coordinator_id', $this->coordinator_id);\n $criteria->compare('date_created', $this->date_created, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "13cb1e6cf0f7fd120f8ba5909532c7b7", "score": "0.60969055", "text": "public function GetSearchProvider()\n\t{\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "898317b8e7a450e47b5ae17207d3b641", "score": "0.6081757", "text": "public function search()\n {\n $app = Yii::$app;\n $dataProvider = new ActiveDataProvider([\n 'query' => SpyTask::find()\n ->joinWith('client')\n ->where(['commercial_id' => $app->user->getId()])\n ->andWhere(['spy_task.state' => true]),\n 'sort' => [\n 'defaultOrder' => [\n 'alert' => SORT_ASC\n ]\n ],\n 'pagination' => [\n 'pageSize' => 15,\n ],\n ]);\n $dataProvider->query->andFilterWhere([\n 'spy_client.category_id' => $this->category,\n 'spy_client.sector_id' => $this->sector,\n 'spy_client.faculty_id' => $this->faculty,\n 'spy_client.department_id' => $this->department,\n 'spy_task.client_id' => $this->client,\n 'spy_task.taskT_id' => $this->type\n ]);\n $dataProvider->query->andFilterWhere(['LIKE', 'alert', $this->date]);\n return $dataProvider;\n }", "title": "" }, { "docid": "0a0e54a0aaebcb82fcf2cec69dd1da01", "score": "0.60723996", "text": "public function search() {\n\t\t$criteria = new CDbCriteria;\n\n\t\t$criteria->order = 'id';\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria' => $criteria,\n\t\t\t'pagination' => false,\n\t\t));\n\t}", "title": "" }, { "docid": "c0d524ce1524824b3a31d35b0082504d", "score": "0.6068113", "text": "public function search()\n\t{\n\t\t$criteria=new CDbCriteria;\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "db0c19f5a40b04984328aea20a808714", "score": "0.60661757", "text": "public function search()\n {\n $criteria=new CDbCriteria;\n\n $criteria->compare('name',$this->name,true);\n $criteria->compare('type',$this->type,true);\n $criteria->compare('description',$this->description,true);\n $criteria->compare('bizrule',$this->bizrule,true);\n $criteria->compare('data',$this->data,true);\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "ac7aca8301b986889cfd5acdb2735e13", "score": "0.60551584", "text": "public function search()\n\t{\n\t $criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('key',$this->key,true);\n\t\t$criteria->compare('name',$this->name,true);\n\n return new CActiveDataProvider($this, [\n\t\t\t'criteria'=>$criteria,\n\t\t]);\n\t}", "title": "" }, { "docid": "f296ca285123af66dc4bdb36e65f56a8", "score": "0.6043524", "text": "public function search() {\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('iso', $this->iso,true);\n $criteria->compare('name', $this->name,true);\n $criteria->compare('printable_name', $this->printable_name, true);\n $criteria->compare('iso3', $this->iso3, true);\n $criteria->compare('numcode', $this->numcode);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "4bb96280faccd73b72755e517dbb1a3c", "score": "0.6020734", "text": "public function createSearch(array $parameters, array $data = null);", "title": "" }, { "docid": "edc6bd55b8e943926f59d7411f214359", "score": "0.60176283", "text": "public function search()\n {\n $criteria = new CDbCriteria;\n $criteria->compare('phone', $this->phone, true);\n $criteria->compare('reason', $this->reason, true);\n\n return new CActiveDataProvider(get_class($this), array(\n 'criteria' => $criteria,\n 'pagination' => array(\n 'pageSize' => $this->paginationOptions->getPageSize(),\n 'pageVar' => 'page',\n ),\n 'sort'=>array(\n 'defaultOrder' => array(\n 'phone_id' => CSort::SORT_DESC,\n ),\n ),\n ));\n }", "title": "" }, { "docid": "1427781576f02d4ab80637ba21e30eb2", "score": "0.60056716", "text": "public function getDataProvider()\n {\n $condition = new ModelCondition(['model' => __CLASS__]);\n\n foreach ([\"id\", \"event_id\", \"title_ro\", \"title_en\", \"min_number\", \"max_number\", \"recommended_number\"] as $column) {\n if ($this->$column) {\n $condition->compareColumn($column, $this->$column, true);\n }\n }\n return new DataProvider([\n 'modelCondition' => $condition\n ]);\n }", "title": "" }, { "docid": "873a2aa3f1fd5ee245df9d44aa114211", "score": "0.59964764", "text": "public function getDataProvider() {\n $condition = new ModelCondition(['model' => __CLASS__]);\n\n foreach ([\"id\", \"name\", \"url_friendly_name\", \"order\", \"user_id\", \"section_id\"] as $column) {\n if ($this->$column) {\n $condition->compareColumn($column, $this->$column, true);\n }\n }\n $condition->with = ['author'];\n return new DataProvider([\n 'modelCondition' => $condition\n ]);\n }", "title": "" }, { "docid": "a4773028668b820b0393567a557729cb", "score": "0.5977345", "text": "public function dataProvider()\n {\n $query = Parameter::find();\n\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n 'sort' => ['defaultOrder' => ['sort' => SORT_ASC]]\n ]);\n\n if (!$this->validate()) {\n $query->where('0=1');\n return $dataProvider;\n }\n\n return $dataProvider;\n }", "title": "" }, { "docid": "e774a8df93d5c5dabcfe455719067c2f", "score": "0.59707487", "text": "public function search()\n {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('code', $this->code, true);\n $criteria->compare('amount_bind', $this->amount_bind, true);\n $criteria->compare('amount_unbind', $this->amount_unbind, true);\n $criteria->compare('distribution_ratio', $this->distribution_ratio);\n $criteria->compare('bind_size', $this->bind_size, true);\n $criteria->compare('time_start', $this->time_start, true);\n $criteria->compare('time_end', $this->time_end, true);\n $criteria->compare('create_time', $this->create_time, true);\n $criteria->order = 'id DESC';\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "b769b81f9bc79c2698f5dabe29abbcfd", "score": "0.5964303", "text": "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n \n $criteria->compare('isbn', $this->isbn);\n $criteria->compare('publisher_id', $this->publisher_id);\n $criteria->compare('pages_count', $this->pages_count);\n $criteria->compare('edition', $this->edition);\n $criteria->compare('press_number', $this->press_number);\n\n return new CActiveDataProvider(get_class($this), array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "ff51c650a85b54a0847ca0d08634febf", "score": "0.59480923", "text": "public function search()\n\t{\n $app = Yii::app();\n\n $criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('cntr_act',$this->cntr_act,true);\n\t\t$criteria->compare('metatitle',$this->metatitle,true);\n\t\t$criteria->compare('metakey',$this->metakey,true);\n\t\t$criteria->compare('metadesc',$this->metadesc,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n 'pagination'=>array(\n 'pageSize' => $app->params->pagination['products_per_page'],\n ),\n\n ));\n\t}", "title": "" }, { "docid": "783028d35a645143cdc76a3af5127f1c", "score": "0.5947381", "text": "protected function datalayerPageSearch() {\n $this->dataLayer->search = new Gtm_Search();\n\n // find the search term\n $term = '';\n if(version_compare(_PS_VERSION_, '1.7', '>=')) {\n $term = $this->context->smarty->getTemplateVars('search_string');\n } else {\n $term = $this->context->smarty->getTemplateVars('search_query');\n }\n\n // code injection protection\n $term = htmlspecialchars($term);\n\n $term = $this->cleanString($term);\n\n $this->dataLayer->search->term = $term;\n }", "title": "" }, { "docid": "c06f2c3b8c33d9dfbd312daeb819e4db", "score": "0.5942034", "text": "public function search() {\n\n\t\t$criteria = $this->getDbCriteria();\n\n\t\t$criteria->compare('id', $this->id);\n\t\t$criteria->compare('server_name', $this->server_name, true);\n\t\t$criteria->compare('name', $this->name, true);\n\t\t$criteria->compare('ip_address', $this->ip_address, true);\n\n\t\t$sort = new CSort;\n\t\t$sort->defaultOrder = 'id DESC';\n\n\t\treturn new NActiveDataProvider($this, array(\n\t\t\t\t\t'criteria' => $criteria,\n\t\t\t\t\t'sort' => $sort,\n\t\t\t\t\t'pagination' => array(\n\t\t\t\t\t\t'pageSize' => 20,\n\t\t\t\t\t),\n\t\t\t\t));\n\t}", "title": "" }, { "docid": "ae9700cd25e1bb2d8d9e3bc7a8f5d3fc", "score": "0.5938808", "text": "public function search()\n {\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id, true);\n $criteria->compare('module_id', $this->module_id, true);\n $criteria->compare('key', $this->key, true);\n $criteria->compare('value', $this->value, true);\n $criteria->compare('create_user_id', $this->create_user_id, true);\n $criteria->compare('update_user_id', $this->update_user_id, true);\n $criteria->compare('create_time', $this->create_time, true);\n $criteria->compare('update_time', $this->update_time, true);\n\n return new CActiveDataProvider(get_class($this), array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "85e9577b152115ab4a8b36f6b4fe2460", "score": "0.5930782", "text": "public function getDataProvider()\n {\n $condition = new ModelCondition(['model' => __CLASS__]);\n\n foreach ([\"id\", \"title_ro\", \"title_en\", \"details\", \"created_by\", \"created_time\"] as $column) {\n if ($this->$column) {\n $condition->compareColumn($column, $this->$column, true);\n }\n }\n return new DataProvider([\n 'modelCondition' => $condition\n ]);\n }", "title": "" }, { "docid": "2028c8cefa85669f043b465a1b684f00", "score": "0.5928469", "text": "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id, true);\n $criteria->compare('post_author', $this->post_author, true);\n $criteria->compare('title', $this->title, true);\n $criteria->compare('description', $this->description, true);\n $criteria->compare('image', $this->image, true);\n $criteria->compare('create_date', $this->create_date, true);\n $criteria->compare('sorting', $this->sorting, true);\n\n return new CActiveDataProvider($this, array(\n// 'criteria' => $criteria,\n 'criteria' => $this->ml->modifySearchCriteria($criteria),\n ));\n }", "title": "" }, { "docid": "e424a33c2909f95a7eb7bc8941f626f3", "score": "0.59257096", "text": "public function search()\n {\n $criteria=new CDbCriteria;\n\n $criteria->compare('title',$this->title,true);\n $criteria->compare('description',$this->description,true);\n $criteria->compare('status',$this->status);\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "576aaa6dfa0171cca6bf15191e670272", "score": "0.59085906", "text": "public function search()\n\t{\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('key',$this->key);\n $criteria->compare('value', $this->value, true );\n\n\t\treturn new CActiveDataProvider($this, array('criteria'=>$criteria));\n\t}", "title": "" }, { "docid": "0069731df358e0ca60260c982e4d9bc3", "score": "0.5906523", "text": "public function createSearchPaginator(string $searchText, string $localeCode): Pagerfanta;", "title": "" }, { "docid": "a5239f52b54a8f35448e81ed05e00e4b", "score": "0.59051406", "text": "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('p_id', $this->p_id);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('url', $this->url, true);\n $criteria->compare('page', $this->page, true);\n $criteria->compare('type', $this->type, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "d626c26d8ee59ff10eeecd74f76bee68", "score": "0.59039277", "text": "private function setQueryBuilderInstance()\n {\n // Laravel\\Scout\\Builder\n if ($this->request->has('search')) {\n $this->queryBuilder = $this->model::search($this->request->query('search'));\n $this->filtersApplied['search'] = [$this->request->query('search')];\n } else {\n // Illuminate\\Database\\Eloquent\\Builder\n if ($this->resource_id) {\n $modelQuery = $this->model->newQuery();\n $this->queryBuilder = $modelQuery->where($this->model->getQualifiedKeyName(), '=', $this->resource_id);\n } else {\n $this->queryBuilder = $this->model->newQuery();\n }\n\n $this->isEloquent = true;\n }\n }", "title": "" }, { "docid": "5e83b455fe2a4769eef5c7917ad6b1f2", "score": "0.59020156", "text": "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('cid', $this->cid, true);\n $criteria->compare('prename', $this->prename, true);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('lname', $this->lname, true);\n $criteria->compare('sex', $this->sex, true);\n $criteria->compare('age', $this->age);\n $criteria->compare('disease', $this->disease, true);\n $criteria->compare('datereg', $this->datereg, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "257c51e6797c5a69c646cde12534fa41", "score": "0.58907783", "text": "public function search()\n\t{\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('city_id',$this->city_id);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "6a92df1bdd2a00c3958ce4e4bf322c80", "score": "0.58836955", "text": "public function search()\n\t{\n\t\t $this->StateProcess(get_class($this).'_'.Y::app()->params['cfgName']);\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('cat_id',$this->cat_id);\n\t\t$criteria->compare('item_id',$this->item_id);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n 'sort'=>array('defaultOrder'=>'id DESC'),\n 'pagination'=>array('pageSize'=>Config::$data['base']->pageSize)\n\t\t));\n\t}", "title": "" }, { "docid": "16373ee6eaac7bd3a5cfd02a77e1bd83", "score": "0.5882064", "text": "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('pid', $this->pid);\n $criteria->compare('sort', $this->sort);\n $criteria->compare('created', $this->created);\n $criteria->compare('seo_title', $this->seo_title, true);\n $criteria->compare('seo_keyword', $this->seo_keyword, true);\n $criteria->compare('seo_description', $this->seo_description, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "8b66a7d4c18611a049ec45fc53fb5a58", "score": "0.5879014", "text": "public function search()\n\t{\n\t\t$criteria = new CDbCriteria;\n\t\t$criteria->compare('fea_id', $this->fea_id);\n\t\t$criteria->compare('fea_title', $this->fea_title, true);\n\t\t$criteria->compare('fea_type', $this->fea_type, true);\n\t\t$criteria->compare('fea_weight', $this->fea_weight);\n\n\t\treturn new CActiveDataProvider($this, ['criteria' => $criteria]);\n\t}", "title": "" }, { "docid": "8362fbbf15feeba3fd598c216aeda8e0", "score": "0.5872339", "text": "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('stateID', $this->stateID);\n $criteria->compare('stateName', $this->stateName, true);\n $criteria->compare('countryID', $this->countryID, true);\n $criteria->compare('latitude', $this->latitude);\n $criteria->compare('longitude', $this->longitude);\n\n return new CActiveDataProvider($this, array(\n// 'criteria' => $criteria,\n 'criteria' => $this->ml->modifySearchCriteria($criteria),\n ));\n }", "title": "" }, { "docid": "a603e8bb6fa419983140cbaf1dc02811", "score": "0.58697146", "text": "public function search(): SearchRequestBuilder {\n return new SearchRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "title": "" }, { "docid": "fd85cf246dc6fbdea3961365aab5daee", "score": "0.5864721", "text": "public function search() {\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria = new CDbCriteria;\n\n\t\t$criteria->compare('id', $this->id);\n\t\t$criteria->compare('domain_id', $this->domain_id, true);\n\t\t$criteria->compare('anchor', $this->anchor, true);\n\t\t$criteria->compare('date', $this->date, true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria' => $criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "f6a154d750fa09168c2c14f637ae79be", "score": "0.5862374", "text": "public function search()\n {\n $criteria=new CDbCriteria;\n\n $criteria->compare('id',$this->id);\n $criteria->compare('tag_id',$this->catalog_id);\n $criteria->compare('lang',$this->lang,true);\n $criteria->compare('value',$this->value,true);\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "008db62c2f3c514199fb26b74fe14ed2", "score": "0.5861187", "text": "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('content_type', $this->content_type, true);\n $criteria->compare('abbreviation', $this->abbreviation, true);\n $criteria->compare('paramount_value', $this->paramount_value, true);\n $criteria->compare('from_paramount', $this->from_paramount);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n 'pagination' => array(\n 'pageSize' => Yii::app()->user->getState('pageSize', Yii::app()->params['defaultPageSize']),\n ),\n ));\n }", "title": "" }, { "docid": "581441b6cd8ff4dcea238c92b81b87e0", "score": "0.58580446", "text": "public function search()\n {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id, true);\n $criteria->compare('media_id', $this->media_id, true);\n $criteria->compare('normal_name', $this->normal_name, true);\n $criteria->compare('division_id', $this->division_id);\n $criteria->compare('create_date', $this->create_date, true);\n $criteria->compare('title', $this->title, true);\n $criteria->compare('region_id', $this->region_id, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n 'pagination' => array(\n 'pageSize' => Yii::app()->user->getState('pageSize', Yii::app()->params['defaultPageSize']),\n ),\n ));\n }", "title": "" }, { "docid": "d7608ccd3681165d974734f308d1e171", "score": "0.585788", "text": "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id, true);\n $criteria->compare('title', $this->title, true);\n $criteria->compare('value', $this->value, true);\n $criteria->compare('create_time', $this->create_time, true);\n $criteria->compare('create_user_id', $this->create_user_id, true);\n $criteria->compare('update_time', $this->update_time, true);\n $criteria->compare('update_user_id', $this->update_user_id, true);\n\n return new CActiveDataProvider(get_class($this), array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "52bc7d43839b385772729cb192c25ed6", "score": "0.5854316", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria = new CDbCriteria;\n\n\t\t$criteria->compare('id', $this->id, true);\n\t\t$criteria->compare('event_id', $this->event_id, true);\n\t\t$criteria->compare('local_name', $this->local_name);\n\t\t$criteria->compare('local_date', $this->local_date);\n\t\t$criteria->compare('local_time', $this->local_time);\n\t\t$criteria->compare('local_location', $this->local_location);\n\t\t$criteria->compare('orbis_name', $this->orbis_name);\n\t\t$criteria->compare('orbis_date', $this->local_date);\n\t\t$criteria->compare('orbis_time', $this->local_time);\n\t\t$criteria->compare('orbis_location', $this->orbis_location);\n\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t'criteria' => $criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "1e95e1200764b09d296e71de5e00f935", "score": "0.58542913", "text": "public function search()\n {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n $criteria->compare('id', $this->id, true);\n $criteria->compare('repairman_id', $this->repairman_id);\n $criteria->compare('request_id', $this->request_id);\n $criteria->compare('rates', $this->rates);\n $criteria->compare('comment', $this->comment, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n 'pagination' => array('pageSize' => isset($_GET['pageSize']) ? $_GET['pageSize'] : 20)\n ));\n }", "title": "" }, { "docid": "77398dd94da9e845e890944f050d81e9", "score": "0.5853946", "text": "public function getDataProvider()\n {\n /** @var ActiveQueryInterface $query */\n $query = $this->modelClass::find();\n\n if ($this->withFilters) {\n /** @var ActiveRecord $filterModel */\n $filterModel = new $this->modelClass();\n $filterModel->attributes = [];\n\n if (!\\method_exists($filterModel, 'applyFilter')) {\n throw new InvalidConfigException(\\get_class($filterModel) . ' must define a \"applyFilter()\" method.');\n }\n\n if (Yii::$app->request->queryParams && \\method_exists($filterModel, 'applyFilter')) {\n $filterModel->load(Yii::$app->request->queryParams);\n $query = $filterModel->applyFilter($query);\n }\n\n $this->gridConfig['filterModel'] = $filterModel;\n }\n\n $this->dataProvider['query'] = $query;\n\n return new ActiveDataProvider($this->dataProvider);\n }", "title": "" }, { "docid": "759e0d79dee85521443c2135735295fe", "score": "0.5847799", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('desc', $this->desc, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "ef749a71e6202623fb6852c6e3f2967f", "score": "0.5833311", "text": "public function search()\n\t{\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('name', $this->name, true);\n $criteria->compare('group_id', $this->group_id);\n\t\t$criteria->compare('price', $this->price, true);\n\t\t$criteria->compare('status', $this->status);\n\n\t\treturn new CActiveDataProvider(get_class($this), array(\n 'criteria' => $criteria,\n 'pagination' => array(\n 'pageSize' => $this->paginationOptions->getPageSize(),\n 'pageVar' => 'page',\n ),\n 'sort'=>array(\n 'defaultOrder' => array(\n 'sort_order' => CSort::SORT_ASC,\n 'plan_id' => CSort::SORT_DESC,\n ),\n ),\n ));\n\t}", "title": "" }, { "docid": "19b31c8a5336018b50813c29cf1488dd", "score": "0.58332396", "text": "public function search ()\n\t\t{\n\t\t\t// Warning: Please modify the following code to remove attributes that\n\t\t\t// should not be searched.\n\n\t\t\t$criteria = new CDbCriteria;\n\n\t\t\t$criteria->compare('store_id', $this->store_id, true);\n\t\t\t$criteria->compare('store_name', $this->store_name, true);\n\t\t\t$criteria->compare('state', $this->state, true);\n\t\t\t$criteria->compare('city', $this->city, true);\n\t\t\t$criteria->compare('district', $this->district, true);\n\t\t\t$criteria->compare('address', $this->address, true);\n\t\t\t$criteria->compare('phone', $this->phone, true);\n\t\t\t$criteria->compare('create_time', $this->create_time, true);\n\t\t\t$criteria->compare('erpID', $this->erpID, true);\n\n\t\t\treturn new CActiveDataProvider($this, array(\n\t\t\t\t'criteria' => $criteria,\n\t\t\t));\n\t\t}", "title": "" }, { "docid": "0d2198142932dd44ff56ae2fcc35d1e0", "score": "0.5833104", "text": "protected function makeSearcher()\n {\n // Creates a searcher by using a view and an external template\n // for search form design.\n $view = new View(\"examples/db/part_search_form\");\n $searcher = new Searcher($view, $this->model);\n\n // Set component name\n $searcher->setName(\"ricerca\");\n\n // Creates filters: table field, form input, operators into query, type\n $searcher->addFilter(\"part_code\",\"s_part_code\",\"=\",\"string\");\n $searcher->addFilter(\"description\",\"s_description\",\"LIKE\",\"string\");\n $searcher->addFilter(\"source\",\"s_source\",\"=\",\"string\");\n\n // Sets form name (tpl variable)\n $searcher->setFormName(\"search_form\", $searcher->getName());\n\n // Sets component submit and reset inputs name (tpl variables)\n $searcher->setResetButton(\"search_reset\", \"Reset\");\n $searcher->setSubmitButton(\"search_submit\",\"Cerca\");\n\n // Init component\n $searcher->init($this->model,$view);\n return $searcher;\n }", "title": "" }, { "docid": "384026baddc0c0574f29448454453465", "score": "0.5821398", "text": "public function getDataProvider()\n {\n $condition = new ModelCondition(['model' => __CLASS__]);\n\n foreach ([\"id\", \"name_ro\", \"name_en\", \"html_class_suffix\"] as $column) {\n if ($this->$column) {\n $condition->compareColumn($column, $this->$column, true);\n }\n }\n return new DataProvider([\n 'modelCondition' => $condition\n ]);\n }", "title": "" }, { "docid": "b0b1d4c220863bd3f1add37842edb370", "score": "0.5819749", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\t\t$criteria=new CDbCriteria;\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('city_id',$this->city_id,true);\n\t\t$criteria->compare('email',$this->email,true);\n\t\t$criteria->compare('telphone',$this->telphone,true);\n\t\t$criteria->compare('shop_address',$this->shop_address,true);\n\t\t$criteria->compare('shop_name',$this->shop_name,true);\n\t\t$criteria->compare('comment',$this->comment,true);\n\t\t$criteria->compare('remark',$this->remark,true);\n\t\t$criteria->compare('create_time',$this->create_time,true);\n\t\t$criteria->compare('create_ip',$this->create_ip,true);\n\t\t\n\t\treturn new CActiveDataProvider('ShopSuggest', array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "2b307af4868579a5cda5de8e9f036285", "score": "0.5816859", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('depatment_code',$this->depatment_code,true);\n\t\t$criteria->compare('post_code',$this->post_code,true);\n\t\t$criteria->compare('date_of_start',$this->date_of_start,true);\n\t\t$criteria->compare('date_of_end',$this->date_of_end,true);\n\t\t$criteria->compare('day_salary',$this->day_salary);\n\t\t$criteria->compare('night_salary',$this->night_salary);\n\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "aadbe6e7f62b6a17b7a870186fd391b7", "score": "0.5814215", "text": "public function getSearchData() {\n return $this->run('getSearchData', array());\n }", "title": "" }, { "docid": "eba0417cdde741f5a94c17c0cb9ef500", "score": "0.58127224", "text": "public function search($query);", "title": "" }, { "docid": "265d6194340419db936574858de3974f", "score": "0.5812608", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id, true);\n $criteria->compare('title', $this->title, true);\n $criteria->compare('scores_weight', $this->scores_weight);\n $criteria->compare('wait_time', $this->wait_time);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "e088a6d753f9c5d0a0a6ab7c73113369", "score": "0.5804097", "text": "public function search()\n\t{\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('f_name',$this->f_name,true);\n\t\t$criteria->compare('l_name',$this->l_name,true);\n\t\t$criteria->compare('organization',$this->organization,true);\n\t\t$criteria->compare('address1',$this->address1,true);\n\t\t$criteria->compare('address2',$this->address2,true);\n\t\t$criteria->compare('country',$this->country,true);\n\t\t$criteria->compare('state',$this->state,true);\n\t\t$criteria->compare('city',$this->city,true);\n\t\t$criteria->compare('zip',$this->zip,true);\n\t\t$criteria->compare('phone',$this->phone,true);\n\t\t$criteria->compare('fax',$this->fax,true);\n\t\t$criteria->compare('avater',$this->avater,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "4b79b60f9296c6351b32282b352d45f4", "score": "0.5803647", "text": "public function search($options = []) {\n $query = $this->find();\n\n if (isset($options['where']) && is_array($options['where'])) {\n foreach ($options['where'] as $w) {\n $query->andWhere($w);\n }\n }\n if (isset($options['join'])) {\n foreach ($options['join'] as $table)\n $query->joinWith($table);\n }\n\n if (isset($options['distinct'])) {\n $query->select($options['distinct']);\n $query->distinct();\n }\n\n if (isset($options['group'])) {\n $query->groupBy($options['group']);\n }\n\n if (isset($options['pagination']))\n $pagination = $options['pagination'];\n else\n $pagination = 10;\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n 'pagination' => [\n 'pageSize' => $pagination,\n ],\n ]);\n\n $sort = ['attributes' => []];\n foreach (array_keys($this->getAttributes()) as $attr) {\n $sort['attributes'][$attr] = [];\n }\n $dataProvider->setSort($sort);\n\n if (isset($options['sort'])) {\n if (isset($options['sort']['attributes'])) {\n foreach ($options['sort']['attributes'] as $attr => $value) {\n $sort['attributes'][$attr] = $value;\n }\n }\n if (isset($options['sort']['defaultOrder'])) {\n $sort['defaultOrder'] = $options['sort']['defaultOrder'];\n }\n }\n $dataProvider->setSort($sort);\n\n if (isset($options['params'])) {\n $this->load($options['params']);\n } else {\n $this->load(Yii::$app->request->get());\n }\n\n foreach (array_keys($this->getAttributes()) as $attr) {\n $operation = 'like';\n if (isset($options['filter'][$attr]))\n $operation = $options['filter'][$attr];\n $query->andFilterWhere([$operation, $this->getAttrTableAlias($attr), $this->getAttribute($attr)]);\n }\n return $dataProvider;\n }", "title": "" }, { "docid": "2bdd98aee80d75605cc7c5f41e20d7c0", "score": "0.5795143", "text": "public function search($query) {\r\n }", "title": "" }, { "docid": "699cca191875ceebab07633e00da2928", "score": "0.57907987", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=new CDbCriteria;\n\n $criteria->compare('id',$this->id,true);\n $criteria->compare('name',$this->name,true);\n $criteria->compare('place',$this->place,true);\n $criteria->compare('start',$this->start,true);\n $criteria->compare('stop',$this->stop,true);\n $criteria->compare('forever',$this->forever,true);\n $criteria->compare('fixed',$this->fixed,true);\n $criteria->compare('srt',$this->srt,true);\n $criteria->compare('code',$this->code,true);\n $criteria->compare('tail',$this->tail,true);\n $criteria->compare('priority',$this->tail,true);\n $criteria->compare('is_webstream',$this->is_webstream,true);\n $criteria->compare('is_internet',$this->is_internet,true);\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "title": "" }, { "docid": "051195a42eeec5cfe46b3c730d76c650", "score": "0.57882464", "text": "public function search($pagination=array())\n {\n $criteria = new CMongoCriteria();\n $criteria->compare('_id', $this->_id, 'MongoId', true);\n $criteria->compare('address', $this->address, 'string', true);\n $criteria->compare('authorId', $this->authorId, 'MongoId', true);\n $criteria->compare('type', $this->type, 'string', true);\n $criteria->compare('category', $this->category, 'MongoId', true);\n $sort = new CSort();\n $sort->attributes = array(\n 'defaultOrder' => '_id DESC',\n '_id',\n 'address',\n 'authorId',\n 'type',\n 'category',\n );\n return new CMongoDocumentDataProvider(get_class($this), array(\n 'criteria' => $criteria,\n 'sort' => $sort,\n 'pagination' => $pagination,\n ));\n }", "title": "" }, { "docid": "78c0547e5842f15371df37048f13ff1c", "score": "0.5784381", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id, true);\n $criteria->compare('user_id', $this->user_id, true);\n $criteria->compare('title', $this->title, true);\n\n return new CActiveDataProvider(get_class($this), array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "e87ab8ec2ffdc1768d0461ff794bab38", "score": "0.5781984", "text": "public function search()\n {\n $criteria=new CDbCriteria;\n\n $criteria->compare('id_habilidad',$this->id_habilidad,true);\n $criteria->compare('codigo',$this->codigo,true);\n\n return new CActiveDataProvider($this, array('criteria'=>$criteria,));\n }", "title": "" }, { "docid": "ab019a7d9a0acb49e576be4b0ca61eac", "score": "0.57752764", "text": "public function createQuery() {}", "title": "" }, { "docid": "ab019a7d9a0acb49e576be4b0ca61eac", "score": "0.57752764", "text": "public function createQuery() {}", "title": "" }, { "docid": "ab019a7d9a0acb49e576be4b0ca61eac", "score": "0.57752764", "text": "public function createQuery() {}", "title": "" }, { "docid": "ab019a7d9a0acb49e576be4b0ca61eac", "score": "0.57752764", "text": "public function createQuery() {}", "title": "" }, { "docid": "1383a40505eee54cfa44152b3a9a85bb", "score": "0.5771991", "text": "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n \n $criteria->condition = 'org_id=' . Yii::app()->user->org_id;\n $criteria->compare('id', $this->id);\n $criteria->compare('date', $this->date, true);\n $criteria->compare('total', $this->total);\n $criteria->compare('usage', $this->usage);\n// $criteria->compare('org_id', $this->org_id);\n $criteria->compare('status', $this->status);\n// $criteria->compare('create_at', $this->create_at, true);\n// $criteria->compare('update_at', $this->update_at, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "fbc5f1bea9eebf16287123616ed1144a", "score": "0.576568", "text": "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id',$this->id);\n\t\t$criteria->compare('sn',$this->sn,true);\n\t\t$criteria->compare('rxh_sn',$this->rxh_sn,true);\n\t\t\n\t\t$criteria->compare('income_rate',$this->income_rate,true);\n\t\t$criteria->compare('licai_time_month',$this->licai_time_month);\n\t\t$criteria->compare('licai_time_day',$this->licai_time_day);\n\t\t$criteria->compare('repayment_date',$this->repayment_date,true);\n\t\t\n\t\tYii::import('common.components.ActiveDataProvider');\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n }", "title": "" }, { "docid": "e5957693585002498a710b1757cc5904", "score": "0.57641524", "text": "public function search()\n {\n // should not be searched.\n\n $criteria = new CDbCriteria;\n $criteria->compare('title', $this->title, true);\n $criteria->compare('type', $this->type, true);\n $criteria->order = 'priority DESC' ;//排序条件 \n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "5cb00ac22f408967412c1a6e269aacd6", "score": "0.5762357", "text": "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('description', $this->description, true);\n $criteria->compare('department', $this->department, true);\n $criteria->compare('greenhouse', $this->greenhouse);\n $criteria->compare('parent_organisation_id', $this->parent_organisation_id);\n $criteria->compare('gardener_id', $this->gardener_id);\n $criteria->compare('ipen_code', $this->ipen_code, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "b913d2fbd53f46d1a7371a06668da994", "score": "0.57623255", "text": "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('data_type', $this->data_type);\n $criteria->compare('address_line_1', $this->address_line_1, true);\n $criteria->compare('address_line_2', $this->address_line_2, true);\n $criteria->compare('city', $this->city, true);\n $criteria->compare('county', $this->county, true);\n $criteria->compare('post_code', $this->post_code, true);\n $criteria->compare('country', $this->country, true);\n $criteria->compare('landline', $this->landline, true);\n $criteria->compare('longitude', $this->longitude);\n $criteria->compare('latitude', $this->latitude);\n $criteria->compare('valid_from', $this->valid_from, true);\n $criteria->compare('valid_to', $this->valid_to, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "title": "" }, { "docid": "cc6dd2e580feba2a0d48b360c3ea34b0", "score": "0.576134", "text": "public function search($query){\n $this->searchQuery = $query;\n }", "title": "" }, { "docid": "72d04f53fa071aefe062ebd0a00323a9", "score": "0.5758053", "text": "public function search() {\n\n//\t\t$criteria=new CDbCriteria;\n//\n//\t\t$criteria->compare('id',$this->id,true);\n//\t\t$criteria->compare('email',$this->email,true);\n//\n//\t\treturn new CActiveDataProvider($this, array(\n//\t\t\t'criteria'=>$criteria,\n//\t\t));\n\t}", "title": "" }, { "docid": "ae688d8e416e8f66f2ac145fff7f551b", "score": "0.57559496", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('CountryOfOrigin',$this->CountryOfOrigin,true);\n\t\t$criteria->compare('actor',$this->actor,true);\n\t\t$criteria->compare('boxoffice',$this->boxoffice,true);\n\t\t$criteria->compare('cp',$this->cp,true);\n\t\t$criteria->compare('director',$this->director,true);\n\t\t$criteria->compare('end',$this->end);\n\t\t$criteria->compare('keyword',$this->keyword,true);\n\t\t$criteria->compare('language',$this->language,true);\n\t\t$criteria->compare('orders',$this->orders,true);\n\t\t$criteria->compare('score',$this->score,true);\n\t\t$criteria->compare('type',$this->type,true);\n\t\t$criteria->compare('year',$this->year,true);\n\t\t$criteria->compare('prize',$this->prize,true);\n\t\t$criteria->compare('gid',$this->gid);\n\t\t$criteria->compare('hdflag',$this->hdflag);\n\t\t$criteria->compare('short',$this->short,true);\n\t\t$criteria->compare('simple_set',$this->simple_set,true);\n\t\t$criteria->compare('is_free',$this->is_free,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" }, { "docid": "b75ce60c62dcdde87a417d1d20f951fa", "score": "0.574705", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('supplier_id',$this->supplier_id,true);\n\t\t$criteria->compare('country_id',$this->country_id,true);\n\t\t$criteria->compare('address',$this->address,true);\n\n\t\treturn new CActiveDataProvider($this, [\n\t\t\t'criteria'=>$criteria,\n ]);\n\t}", "title": "" }, { "docid": "dce6992d051488eeaa35bbca6fa21def", "score": "0.57467276", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria = new CDbCriteria;\n\n\t\t$criteria->compare('id', $this->id, true);\n\t\t$criteria->compare('event_id', $this->event_id, true);\n\n\t\t$criteria->compare('eye_id', $this->eye_id);\n\t\t$criteria->compare('procedures', $this->procedures);\n\t\t$criteria->compare('consultant_required', $this->consultant_required);\n\t\t$criteria->compare('anaesthetic_type_id', $this->anaesthetic_type_id);\n\t\t$criteria->compare('overnight_stay', $this->overnight_stay);\n\t\t$criteria->compare('site_id', $this->site_id);\n\t\t$criteria->compare('priority_id', $this->priority_id);\n\t\t$criteria->compare('decision_date', $this->decision_date);\n\t\t$criteria->compare('comments', $this->comments);\n\t\t\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t\t'criteria' => $criteria,\n\t\t\t));\n\t}", "title": "" }, { "docid": "25b31b34c1029cf1a64c44b02dddb680", "score": "0.5745709", "text": "public function search()\n\t{\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('user_id',$this->user_id);\n\t\t$criteria->compare('full_name',$this->full_name,true);\n\t\t$criteria->compare('phone',$this->phone,true);\n\t\t$criteria->compare('delivery_address',$this->delivery_address,true);\n\t\t$criteria->compare('person',$this->person,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "title": "" } ]
4f034ed7f4ba35e316915879a13a61c6
Read all values from configuration.
[ { "docid": "2b39fa3aae19e128432f10812282a1f6", "score": "0.0", "text": "private function restore()\n {\n $values = $this->cache->fetch($this->cache_id);\n\n if(!$values) {\n $this->cache->save($this->cache_id, $values = $this->rawRestore(), $lifeTime = 0);\n }\n\n return $values;\n }", "title": "" } ]
[ { "docid": "78b57bdc85ddecf3c14da22146d432a7", "score": "0.70278794", "text": "public function getConfigurationValues() {}", "title": "" }, { "docid": "78b57bdc85ddecf3c14da22146d432a7", "score": "0.70278794", "text": "public function getConfigurationValues() {}", "title": "" }, { "docid": "78b57bdc85ddecf3c14da22146d432a7", "score": "0.70278794", "text": "public function getConfigurationValues() {}", "title": "" }, { "docid": "78b57bdc85ddecf3c14da22146d432a7", "score": "0.70278794", "text": "public function getConfigurationValues() {}", "title": "" }, { "docid": "78b57bdc85ddecf3c14da22146d432a7", "score": "0.70278794", "text": "public function getConfigurationValues() {}", "title": "" }, { "docid": "c3eac75baa176ca6491f19772a1d7714", "score": "0.69644314", "text": "function read() {\r\n\t\tself::check();\r\n\t\teval('$config = '.file_get_contents(CONFIG).';');\r\n\t\tforeach ($config as $key => $value) {\r\n\t\t\tdefine($key, $value);\r\n\t\t}\r\n\t\treturn $config;\r\n\t}", "title": "" }, { "docid": "5bd5e9323d3c7f6db89601f048cac82b", "score": "0.6869741", "text": "public function get_all()\n\t{\n\t\t$this->load_config_file();\n\n\t\treturn $this->config_data;\n\t}", "title": "" }, { "docid": "c444cb49ab2040cd33e7489385abf862", "score": "0.6801894", "text": "function getConfigurationValues() ;", "title": "" }, { "docid": "5d9c902828fe8d569c3815a7af01f1ec", "score": "0.6604921", "text": "public function getAll() {\n if ($this->config === null) {\n $this->read();\n }\n\n return $this->config;\n }", "title": "" }, { "docid": "f5ee11d7dbe171e104702ce3b8435cdc", "score": "0.6579861", "text": "public function readConfig()\r\n {\r\n /*if (file_exists(self::CONFIGFILE)) {\r\n $data = file_get_contents(self::CONFIGFILE);\r\n $this->config = json_decode($data, true);\r\n } else {*/\r\n $this->config = $this->getConfigDefault();\r\n $this->writeConfig();\r\n //}\r\n }", "title": "" }, { "docid": "a63d8a5ea93a3760224eeeae5347da7c", "score": "0.6371275", "text": "public function get_all_configuration(){\n\t\t$return = array(); //It is a good manner to init the vars :)\n\t\t\n\t\t$sql = \" SELECT * FROM `configuration` \";\n\t\t$result = $this->db->query($sql);\n\t\t\n\t\tforeach($result->result() AS $result){\n\t\t\t$return[ $result->name ] = $result->value;\n\t\t}\n\t\t\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "14909f506a8e77bc4f774ec364c30c49", "score": "0.6354463", "text": "private static function readConfig()\n\t{\n\t\tif ( empty( self::$s_aConfig ) )\n\t\t{\n\t\t\t//read and parse the configuration file\n\t\t\tself::$s_aConfig = parse_ini_file( \"conf.ini\", true );\n\n\t\t\t//var_dump( self::$s_aConfig );\n\t\t}\n\t}", "title": "" }, { "docid": "426f8be1641b95ca961ffb8a13efac9e", "score": "0.6325667", "text": "public function load()\n {\n $this->db->select('name,value');\n $query = $this->db->get('settings');\n foreach ($query->result() as $row) {\n\n $GLOBALS['CONFIG'][$row->name] = $row->value;\n }\n }", "title": "" }, { "docid": "3e5c0e41e7ab4345bf8262bad002c192", "score": "0.62877667", "text": "protected function readConfig() {\n\t\t$mounts = $this->readDBConfig();\n\t\t$configs = array_map([$this, 'getStorageConfigFromDBMount'], $mounts);\n\t\t$configs = array_filter($configs, function ($config) {\n\t\t\treturn $config instanceof StorageConfig;\n\t\t});\n\n\t\t$keys = array_map(function (StorageConfig $config) {\n\t\t\treturn $config->getId();\n\t\t}, $configs);\n\n\t\treturn array_combine($keys, $configs);\n\t}", "title": "" }, { "docid": "e01d931ea75d821bf225cdb79d013ea2", "score": "0.62627774", "text": "public function getConfigurationValues() : array {}", "title": "" }, { "docid": "982b48684b466b76bfc2b709dfa53022", "score": "0.6229247", "text": "function msettings_read_all()\n\t{\n\t\t$settings = lcrud_read(lconf_get(\"lang\") . \"_settings\");\n\t\tforeach ($settings as $set)\n\t\t{\n\t\t\t$data[$set[\"name\"]] = $set[\"value\"];\n\t\t}\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "4a02b50fc942be2c5532916ba59cfeb4", "score": "0.6210726", "text": "public function getAll()\n {\n return $this->config;\n }", "title": "" }, { "docid": "4a02b50fc942be2c5532916ba59cfeb4", "score": "0.6210726", "text": "public function getAll()\n {\n return $this->config;\n }", "title": "" }, { "docid": "5ac45dec49422e73d0e182148f67c0fd", "score": "0.60899365", "text": "protected function readConfig(){\n\t\t\n\t\t$configHeper = new controllers_helpers_config($this->configPath);\n\t\t$config = $configHeper->readConfig($this->env);\n\t\t$_SESSION['register']['config']=$config;\t\n\t}", "title": "" }, { "docid": "bb655e2476c5cd21707ed65573d503e7", "score": "0.60698354", "text": "function load_config() {\n Database::query(\"SELECT * FROM config\");\n foreach (Database::rows() as $config) {\n $config['config_value'] = process_config_value($config['config_value'], $config['config_type']);\n $name = \"__\".strtoupper($config['config_name']).\"__\";\n define($name, $config['config_value']);\n }\n}", "title": "" }, { "docid": "73d873133d162d45f0e7f412aff6441c", "score": "0.6046835", "text": "protected function loadConfiguration() : ArrayObject {}", "title": "" }, { "docid": "1d2b5d5018976cedee3763b0568b8f0f", "score": "0.60370684", "text": "private function loadConfig() {\n\t\t\t$this->nameMinLength = mysqlib::getConfig('nameMinLength');\n\t\t\t$this->nameMaxLength = mysqlib::getConfig('nameMaxLength');\n\t\t\t$this->passwordMinLength = mysqlib::getConfig('passwordMinLength');\n\t\t\t$this->passwordMaxLength = mysqlib::getConfig('passwordMaxLength');\n\t\t}", "title": "" }, { "docid": "927670b880a273d0d55274c1ad4682c6", "score": "0.5999744", "text": "protected function _readConfig()\n {\n $configFile = $this->_rewriteDir . 'config.php';\n if (file_exists($configFile)) {\n @include($configFile);\n }\n // $rewriteConfig was included from file\n if (isset($rewriteConfig)) {\n $this->_rewriteConfig = $rewriteConfig;\n }\n }", "title": "" }, { "docid": "b97798987b4db6cdbfbc9c60eeedcde5", "score": "0.59939164", "text": "abstract protected function readLegacyConfig();", "title": "" }, { "docid": "42eb27407036b260f0d25527265f5fc8", "score": "0.5984092", "text": "protected function loadSettings() : void {\n self::$config = Registry::retrieve('config');\n }", "title": "" }, { "docid": "420b06c5591c76c87d6fddef57e340bb", "score": "0.59191144", "text": "public function getConfigFieldsValues() {\n return json_decode(Configuration::get($this->name), true);\n }", "title": "" }, { "docid": "bfedcc5c6cf5decdf542f280616f9278", "score": "0.5917766", "text": "abstract public function get_config();", "title": "" }, { "docid": "5c56a64510feda5f3cfa29358508157f", "score": "0.5905253", "text": "protected function loadConfig()\n\t{\n\t\t$config = XenForo_Application::getConfig();\n\n\t\t// We set any flags and options from the config, if already set it has priority so skip\n\t\tforeach ($config AS $option => $value)\n\t\t{\n\t\t\tif ($option == 'flags')\n\t\t\t{\n\t\t\t\tforeach ($value as $flag)\n\t\t\t\t{\n\t\t\t\t\tif (!$this->hasFlag($flag))\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->setFlag($flag);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (!$this->hasOption($option))\n\t\t\t{\n\t\t\t\t$this->setOption($option, $value);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6e5833d6f741d09a7be7bb4c7e9e2357", "score": "0.58856905", "text": "protected function parse()\n {\n $sectionName = static::GLOBAL_SECTION;\n $values = [];\n\n try {\n while ($line = fgets($this->handle)) {\n $this->linenumber++;\n $line = trim($line);\n if (empty($line) || substr($line, 0, 1) === ';') {\n continue;\n }\n\n if ($this->isSectionHeader($line)) {\n if ($sectionName === static::GLOBAL_SECTION) {\n $this->config = $values;\n } else {\n $tokens = explode($this->delimiter, $sectionName);\n $this->config = array_merge_recursive($this->config,\n $this->subdivide($tokens, $values));\n\n unset($tokens);\n }\n\n $sectionName = $this->getSectionHeader($line);\n $values = [];\n continue;\n }\n\n list($key, $value) = array_pad(preg_split(static::SPLIT_PATTERN, trim($line), 2), 2, '');\n\n if ($this->isArrayKey($key)) {\n if (is_null($array_key = $this->parseArrayKey($key))) {\n $key = trim(trim($key), '[]');\n\n $values[$key][] = $this->parseValue($value);\n } else {\n $key = trim(substr($key, 0, strpos($key, '[')));\n if (!isset($values[$key])) {\n $values[$key] = [];\n }\n\n $values[$key][$array_key] = $this->parseValue($value);\n }\n } else {\n $values[trim($key)] = $this->parseValue($value);\n }\n }\n } catch (\\Exception $ex) {\n throw new \\RuntimeException(\"{$ex->getMessage()} Line: {$this->linenumber}.\");\n } finally {\n $this->close();\n }\n\n if ($sectionName === static::GLOBAL_SECTION) {\n $this->config = $values;\n } else {\n $section = $this->subdivide(explode($this->delimiter, $sectionName), $values);\n $this->config = array_merge($this->config, $section);\n }\n }", "title": "" }, { "docid": "b4f9728cf87fa174d0939cfceaa996f5", "score": "0.5872966", "text": "protected function _load_config()\n {\n clearos_profile(__METHOD__, __LINE__);\n\n if (! is_null($this->config))\n return;\n\n $file = new File(self::FILE_CONFIG, TRUE);\n\n try {\n $lines = array();\n if ($file->exists())\n $lines = $file->get_contents_as_array();\n } catch (File_Not_Found_Exception $e) {\n } catch (File_No_Match_Exception $e) {\n }\n\n $this->config['server'] = '';\n $this->config['port'] = '';\n $this->config['username'] = '';\n $this->config['password'] = '';\n\n $params = array('server', 'port', 'username', 'password');\n\n foreach ($lines as $line) {\n foreach ($params as $param) {\n $matches = array();\n if (preg_match(\"/^\\s*$param\\s*=\\s(.*)/\", $line, $matches))\n $this->config[$param] = $matches[1];\n }\n }\n }", "title": "" }, { "docid": "ba6ddc1a099f96baee7ac2b924c49039", "score": "0.58503735", "text": "protected function getConfigs() {\n\t\t// global file (may be present)\n\t\t$File = new File($this->localFolder . 'config' . DS . $this->configGlobalFile);\n\t\tif ($File->exists()) {\n\t\t\t$File->open('r');\n\t\t\t$content = (string)$File->read();\n\t\t\t$content = explode(NL, $content);\n\n\t\t\tif (!empty($content)) {\n\t\t\t\t$configGlobal = [];\n\t\t\t\tforeach ($content as $line => $c) {\n\t\t\t\t\t$c = trim($c);\n\t\t\t\t\tif (!empty($c)) {\n\t\t\t\t\t\t$configGlobal[] = $c;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$this->configGlobal = $configGlobal;\n\t\t\t}\n\t\t}\n\n\t\t// custom file (must be present)\n\t\t$File = new File($this->localFolder . 'config' . DS . $this->configCustomFile);\n\n\t\tif (!$File->exists()) {\n\t\t\treturn $this->error('No config file present (/config/' . $this->configCustomFile . ')!');\n\t\t}\n\t\t$File->open('r');\n\n\t\t// Read out configs\n\t\t$content = $File->read();\n\t\tif (empty($content)) {\n\t\t\treturn [];\n\t\t}\n\t\t$content = explode(NL, $content);\n\n\t\tif (empty($content)) {\n\t\t\treturn [];\n\t\t}\n\n\t\t$configContent = [];\n\t\tforeach ($content as $line => $c) {\n\t\t\t$c = trim($c);\n\t\t\tif (!empty($c)) {\n\t\t\t\t$configContent[] = $c;\n\t\t\t}\n\t\t}\n\t\treturn $configContent;\n\t}", "title": "" }, { "docid": "dac3766964a08dffd988f709a448b8ae", "score": "0.58481795", "text": "protected static function _loadConfig() {\n\t\t$loggers = Configure::read('Log');\n\t\tforeach ((array)$loggers as $key => $config) {\n\t\t\tstatic::$_Collection->load($key, $config);\n\t\t}\n\t}", "title": "" }, { "docid": "7c8e4293da4bfb5c91a86e91c604b46f", "score": "0.58473736", "text": "public function loadAll()\n {\n $configPaths = PathHelper::getTargetPaths($this->configPaths, $this->module, $this->modulesDir, $this->configDir, false);\n\n $finalConfig = [];\n foreach ($configPaths as $configPath) {\n $realPath = Yii::getAlias($configPath);\n foreach ($this->configFilesNames as $configFilesName) {\n if(file_exists($realPath . DIRECTORY_SEPARATOR . $configFilesName . '.php')) {\n $finalConfig = ArrayHelper::merge($finalConfig, require($realPath . DIRECTORY_SEPARATOR . $configFilesName . '.php'));\n }\n if($this->additionalSuffix && file_exists($realPath . DIRECTORY_SEPARATOR . $configFilesName . $this->additionalSuffix . '.php')) {\n $finalConfig = ArrayHelper::merge($finalConfig, require($realPath . DIRECTORY_SEPARATOR . $configFilesName . $this->additionalSuffix . '.php'));\n }\n }\n\n }\n\n $this->config = $finalConfig;\n\n $this->loadI18n();\n\n return $finalConfig;\n }", "title": "" }, { "docid": "ef554c61d0b10b3db7c993a691eaf471", "score": "0.5842057", "text": "private static function initConfig()\n {\n $config_str = file_get_contents(\"app/config.json\");\n $config = json_decode($config_str,true);\n $new_config = array();\n\n foreach ($config as $key => $value)\n {\n $expanded = gettype($value)=='array' ? join('|',$value) : $value; // concatenate to one string\n\n foreach ($new_config as $key_ => $value_) // use previously defined config\n $expanded = str_replace($key_, $value_, $expanded);\n\n $new_config[$key] = $expanded;\n\n define($key, $expanded); // define to be globally accessible\n\n if (preg_match('/^LVL_|^NO_ACCESS_/i', $key)) // add to Session::levels config\n Session::AddLevel($key, $expanded);\n else if (preg_match('/^DB_/', $key))\n DB::Assign($key, $expanded);\n else // add to Core::config data\n self::$config[$key] = $expanded;\n }\n }", "title": "" }, { "docid": "9d703e42c62f1afc446c078d7284524c", "score": "0.5826752", "text": "function get_all_config()\r\n\t{\r\n\t\treturn $this->get_all_like ( 'config_' );\r\n\t}", "title": "" }, { "docid": "abf6aa609fe3ef37853ecb89f892cf71", "score": "0.57893634", "text": "public function initializeConfiguration() {\n\t\t// The configuration file should define a constant corresponding to \n\t\t// each config option.\n\t\t$constantsBeforeConfig = get_defined_constants(true);\n\t\trequire('config/package.php');\n\t\t$constantsAfterConfig = get_defined_constants(true);\n\t\t\n\t\t// Save the constants which are newly-defined by the file.\n\t\t$clovConfigOptions = array_diff_key($constantsAfterConfig['user'], $constantsBeforeConfig['user']);\n\t\tforeach($clovConfigOptions as $option => $value) {\n\t\t\t$this->saveConfig($option, $value);\n\t\t}\n\t}", "title": "" }, { "docid": "f0bfd33fadc5d405f98a8a104a0e3e9f", "score": "0.5786586", "text": "public function get(): array\n {\n return Configuration::query()\n ->select('name', 'value')\n ->get()\n ->keyBy('name')\n ->transform(function ($config) {\n return $config->value;\n })\n ->toArray();\n }", "title": "" }, { "docid": "8d20c7701f29f6af7e556657a2647783", "score": "0.5781165", "text": "public function preConfig( $values )\n \t{\n \t\treturn $values;\n \t}", "title": "" }, { "docid": "8d20c7701f29f6af7e556657a2647783", "score": "0.5781165", "text": "public function preConfig( $values )\n \t{\n \t\treturn $values;\n \t}", "title": "" }, { "docid": "8d20c7701f29f6af7e556657a2647783", "score": "0.5781165", "text": "public function preConfig( $values )\n \t{\n \t\treturn $values;\n \t}", "title": "" }, { "docid": "8d20c7701f29f6af7e556657a2647783", "score": "0.5781165", "text": "public function preConfig( $values )\n \t{\n \t\treturn $values;\n \t}", "title": "" }, { "docid": "8d20c7701f29f6af7e556657a2647783", "score": "0.5781165", "text": "public function preConfig( $values )\n \t{\n \t\treturn $values;\n \t}", "title": "" }, { "docid": "e05cf528af1075e62e70fc7be4b10a6d", "score": "0.5777866", "text": "function loadConfig() {\n $this->active = base_module_options::readOption($this->guid, 'active') ? TRUE : FALSE;\n $this->file = base_module_options::readOption($this-> guid, 'file');\n $this->loglevel = base_module_options::readOption($this-> guid, 'loglevel');\n }", "title": "" }, { "docid": "98764908bff06cab52a80a90a7b44855", "score": "0.5764468", "text": "public function readAll();", "title": "" }, { "docid": "8b3bb23afb34858d01832febfbf6873b", "score": "0.57550395", "text": "function file_get_config_all() {\n if(!$settings = parse_ini_file(PHP_CONFIG_FILE, true)) {\n\t\tthrow new exception('Unable to open ' . PHP_CONFIG_FILE . '.');\n\t}\n\treturn $settings;\n}", "title": "" }, { "docid": "2fcf8d8683765751eaa2694ce841decd", "score": "0.5752557", "text": "public function getAllConfigItems()\n\t{\n\t\treturn $this->m_arr_Data;\n\t}", "title": "" }, { "docid": "8efa3f1479fdf618e3af669820ae9f6d", "score": "0.57511085", "text": "private function loadConfig(){\n $option_keys = [\n 'server' => 'nucssa-core.ldap.server',\n 'schema' => 'nucssa-core.ldap.schema',\n 'user_schema' => 'nucssa-core.ldap.user_schema',\n 'group_schema' => 'nucssa-core.ldap.group_schema',\n 'membership_schema' => 'nucssa-core.ldap.membership_schema',\n ];\n\n $this->server = get_option($option_keys['server'], []);\n $this->schema = get_option($option_keys['schema'], []);\n $this->user_schema = get_option($option_keys['user_schema'], []);\n $this->group_schema = get_option($option_keys['group_schema'], []);\n $this->membership_schema = get_option($option_keys['membership_schema'], []);\n }", "title": "" }, { "docid": "6f666625855f64b0f9f25c3a2a740f26", "score": "0.5735124", "text": "public function getConfigFieldsValues(){\n\n return array(\n $this->name.'consumer_key' => Configuration::get($this->name.'consumer_key'),\n $this->name.'consumer_secret' => Configuration::get($this->name.'consumer_secret'),\n $this->name.'access_token' => Configuration::get($this->name.'access_token'),\n $this->name.'access_token_secret' => Configuration::get($this->name.'access_token_secret'),\n $this->name.'sefaz_env' => Configuration::get($this->name.'sefaz_env'),\n $this->name.'automatic_emit' => Configuration::get($this->name.'automatic_emit'),\n $this->name.'operation_type' => Configuration::get($this->name.'operation_type'),\n $this->name.'tax_class' => Configuration::get($this->name.'tax_class'),\n $this->name.'ean_barcode' => Configuration::get($this->name.'ean_barcode'),\n $this->name.'gtin_tributavel' => Configuration::get($this->name.'gtin_tributavel'),\n $this->name.'ncm_code' => Configuration::get($this->name.'ncm_code'),\n $this->name.'cest_code' => Configuration::get($this->name.'cest_code'),\n $this->name.'cnpj_fabricante' => Configuration::get($this->name.'cnpj_fabricante'),\n $this->name.'ind_escala' => Configuration::get($this->name.'ind_escala'),\n $this->name.'product_source' => Configuration::get($this->name.'product_source'),\n $this->name.'intermediador' => Configuration::get($this->name.'intermediador'),\n $this->name.'intermediador_cnpj' => Configuration::get($this->name.'intermediador_cnpj'),\n $this->name.'intermediador_id' => Configuration::get($this->name.'intermediador_id'),\n $this->name.'person_type_fields' => Configuration::get($this->name.'person_type_fields'),\n $this->name.'mask_fields' => Configuration::get($this->name.'mask_fields'),\n $this->name.'fill_address' => Configuration::get($this->name.'fill_address'),\n $this->name.'fisco_inf' => Configuration::get($this->name.'fisco_inf'),\n $this->name.'cons_inf' => Configuration::get($this->name.'cons_inf'),\n $this->name.'enable_person_type' => Configuration::get($this->name.'enable_person_type'),\n $this->name.'tipo_cliente_field' => Configuration::get($this->name.'tipo_cliente_field'),\n $this->name.'cpf_field' => Configuration::get($this->name.'cpf_field'),\n $this->name.'cnpj_field' => Configuration::get($this->name.'cnpj_field'),\n $this->name.'razao_social_field' => Configuration::get($this->name.'razao_social_field'),\n $this->name.'cnpj_ie_field' => Configuration::get($this->name.'cnpj_ie_field'),\n $this->name.'numero_field' => Configuration::get($this->name.'numero_field'),\n $this->name.'bairro_status' => Configuration::get($this->name.'bairro_status'),\n $this->name.'bairro_field' => Configuration::get($this->name.'bairro_field'),\n $this->name.'complemento_field' => Configuration::get($this->name.'complemento_field'),\n $this->name.'cpf_cnpj_status' => Configuration::get($this->name.'cpf_cnpj_status'),\n $this->name.'numero_compl_status' => Configuration::get($this->name.'numero_compl_status'),\n $this->name.'uniq_key' => Configuration::get($this->name.'uniq_key'),\n $this->name.'envio_email' => Configuration::get($this->name.'envio_email'),\n $this->name.'transp_include' => Configuration::get($this->name.'transp_include'),\n $this->name.'transp_method' => Configuration::get($this->name.'transp_method'),\n $this->name.'transp_rs' => Configuration::get($this->name.'transp_rs'),\n $this->name.'transp_cnpj' => Configuration::get($this->name.'transp_cnpj'),\n $this->name.'transp_ie' => Configuration::get($this->name.'transp_ie'),\n $this->name.'transp_address' => Configuration::get($this->name.'transp_address'),\n $this->name.'transp_cep' => Configuration::get($this->name.'transp_cep'),\n $this->name.'transp_city' => Configuration::get($this->name.'transp_city'),\n $this->name.'transp_uf' => Configuration::get($this->name.'transp_uf'),\n $this->name.'carriers' => Configuration::get($this->name.'carriers'),\n\n\n $this->name.'docscolumn_cpf' => Configuration::get($this->name.'docscolumn_cpf'),\n $this->name.'docscolumn_cnpj' => Configuration::get($this->name.'docscolumn_cnpj'),\n $this->name.'docscolumn_rs' => Configuration::get($this->name.'docscolumn_rs'),\n $this->name.'docscolumn_ie' => Configuration::get($this->name.'docscolumn_ie'),\n $this->name.'docstable_cpf' => Configuration::get($this->name.'docstable_cpf'),\n $this->name.'docstable_cnpj' => Configuration::get($this->name.'docstable_cnpj'),\n $this->name.'docstable_rs' => Configuration::get($this->name.'docstable_rs'),\n $this->name.'docstable_ie' => Configuration::get($this->name.'docstable_ie'),\n );\n\n }", "title": "" }, { "docid": "949c9177af1741f3d6d2834a9bffc6e1", "score": "0.5728876", "text": "function load_config() {\n\t\t$conf_file = @file_get_contents( LDAP_LOGIN_PATH.'data.dat' );\n\t\tif ($conf_file!==false)\n\t\t{\n\t\t\t$this->config = unserialize($conf_file);\n\t\t}\n\t}", "title": "" }, { "docid": "abe163cf0dccd7a79f2062988bf21ff4", "score": "0.5724355", "text": "private function getFinalConfiguration(): array\n {\n // Always include the base config\n $yamlConfFiles[] = Yaml::parse(file_get_contents('config/config.main.yml'));\n // Overwrite values on any environment we may have defined\n if (file_exists('config/config.' . ENVIRONMENT . '.yml')) {\n $this->logger->debug('Parsing additional yml file', ['ENV' => ENVIRONMENT]);\n $yamlConfFiles[] = Yaml::parse(file_get_contents('config/config.' . ENVIRONMENT . '.yml'));\n }\n\n $mainConfiguration = new Configuration();\n $processor = new Processor();\n return $processor->processConfiguration($mainConfiguration, $yamlConfFiles);\n }", "title": "" }, { "docid": "4a1621b1255a56d005afc9dbd35a3cee", "score": "0.5693026", "text": "public function loadConfigs() {\n\t \t\n\t \t//$this->db->select_db(DB_NAME);\t\t\t\t\n\t\t$query = \"SELECT * FROM \".TB_VPS_CONFIG;\n\t\t$this->db->query($query);\n\t\t\n\t\tif ($this->db->num_rows()) {\n\t\t\t$numRows = $this->db->num_rows();\n\t\t\tfor ($i=0; $i < $numRows; $i++) {\n\t\t\t\t$data=$this->db->fetch($i);\n\t\t\t\t$configs[$data->name] = stripslashes($data->value);\t\t\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $configs;\n\t }", "title": "" }, { "docid": "cd14c9ba64741493ce27161bf99b8b0f", "score": "0.56817687", "text": "public function getAllConfig() {\n \treturn $this->configs;\n }", "title": "" }, { "docid": "1102e5752f7cd386561cb7987328e113", "score": "0.5675385", "text": "public function load_vars(){\r\n\t\techo $this->config_vars->load_vars();\r\n\t}", "title": "" }, { "docid": "7881c5e9b13a5bcb1649ac7d2eba7f08", "score": "0.56747514", "text": "public static function all(): array\n {\n return AppConfig::get('scorch');\n }", "title": "" }, { "docid": "4023f269f0599371459274ec4b3fb292", "score": "0.5646568", "text": "public function processConfiguration() {}", "title": "" }, { "docid": "266fa0e160020b293be9c66173b485ef", "score": "0.5644161", "text": "protected static function parseConfig()\r\n\t\t{\r\n\t\t\t$configFile = static::configFilePath();\r\n\t\t\t\t\t\t\r\n\t\t\tif (($userConfig = parse_ini_file($configFile, true)) === false)\r\n\t\t\t\tthrow new Exception(\"Unable to parse EWT configuration file: \" . $configFile);\r\n\t\t\t\r\n\t\t\treturn array_replace_recursive(static::defaultConfig(), $userConfig);\r\n\t\t}", "title": "" }, { "docid": "46866177409c3e17aba138bafbf26fcd", "score": "0.56410414", "text": "public function load() {\n if ($this->config) return;\n Profile::start('IniFileConfig', 'Load');\n if ($this->defaultConfigFileUri) $this->config = $this->mergeConfigArrays(parse_ini_file($this->defaultConfigFileUri, $this->useSections), parse_ini_file($this->configFileUri, $this->useSections));\n else $this->config = parse_ini_file($this->configFileUri, $this->useSections);\n Profile::stop();\n }", "title": "" }, { "docid": "5e0fb00c9955e177af6882f512e0e3f9", "score": "0.5631279", "text": "protected function getFullConfigWithValues()\n {\n $yaml = <<<EOF\n# the url to you Facebook profile\nfb_profile_url: http://fb.profile.url.com\n\n# the url to your Google+ profile\ngoogle_plus_profile_url: http://google.plus.profile.url.com\n\n# the url to your xing profile\nxing_profile_url: http://xing.profile.url.com\n\n# your profile-id => get it here http://developer.linkedin.com/plugins\nlinked_in_company_id: 1234567890\n\n# your twitter username\ntwitter_username: acme\nEOF;\n $parser = new Parser();\n\n return $parser->parse($yaml);\n }", "title": "" }, { "docid": "a4c701523ddf61274f6bc92d3408db2b", "score": "0.562138", "text": "public static function all(){\n \treturn static::$settings;\n}", "title": "" }, { "docid": "192136443df690c5c1adb33ec1b3fe75", "score": "0.5617581", "text": "public static function allConfigs() {\n $settings = array_filter(static::settings());\n\n $rawconfigs = array(array());\n\n foreach ($settings as $setting) {\n $append = array();\n\n foreach($rawconfigs as $conf) {\n foreach($setting['options'] as $option) {\n $conf[$setting['setting']['key']] = $option->key;\n $append[] = $conf;\n }\n }\n\n $rawconfigs = $append;\n }\n\n\n $configs = array();\n foreach($rawconfigs as $conf){\n $c = new static;\n\n foreach($conf as $key => $value){\n $c->settingValue($key, $value);\n }\n $configs[] = $c;\n }\n $result = array_filter($configs, 'static::filter');\n// foreach($result as $r){\n// var_dump($r);\n// }\n\n return $result;\n }", "title": "" }, { "docid": "54558f96fac32921a09552898debbd11", "score": "0.5617199", "text": "private function loadConfig()\n {\n if (!$this->config) {\n $this->config = Config::get();\n }\n }", "title": "" }, { "docid": "01aceeaf9f0f3728ed7de84409c572fd", "score": "0.5614561", "text": "public function all()\n {\n return $this->configContainer;\n }", "title": "" }, { "docid": "86728443c6aa6ad8f2d3b44573d1b483", "score": "0.5604775", "text": "private function readConfigs(){\n\t\t\t$cfgFolder = APPLICATION_PATH.DIRECTORY_SEPARATOR.\"config\";\n\t\t\t\n\t\t\tif ($handle = opendir($cfgFolder)) {\n\t\t\t while (false !== ($file = readdir($handle))) {\n\t\t\t if ($file != \".\" && $file != \"..\" && $file != \".DS_STORE\" && $file != \"application.ini\" && $file !=\".svn\") {\n\t\t\t \ttry{\n\t\t\t \t\t$config = new Zend_Config_Ini($cfgFolder.DIRECTORY_SEPARATOR.$file, APPLICATION_ENV);\n\t\t\t \t\tConfig_Controller::setSection(str_replace(\".ini\", \"\", $file), $config->toArray());\n\t\t\t \t}\n\t\t\t \tcatch (Exception $ex){\n\t\t\t \t\tLogger::write($ex->getMessage());\n\t\t\t \t}\n\t\t\t }\n\t\t\t }\n\t\t\t closedir($handle);\n\t\t\t}\n\t\t\t\n\t\t}", "title": "" }, { "docid": "2f1c10fa1c6e35eb57340b37f618c6c8", "score": "0.559684", "text": "protected function fetchAllSettings()\n {\n foreach ($this->fetchAllSettingsFiles() as $section => $filepath) {\n $settings[$section] = require $filepath;\n }\n\n return $settings;\n }", "title": "" }, { "docid": "97dd9f715b3bdaeb90fb2435ae05e829", "score": "0.5592441", "text": "public function getConfigs()\r\n {\r\n return require( $this->configFullName );\r\n }", "title": "" }, { "docid": "51807b15965763e9aab4aeda53c64af3", "score": "0.5589918", "text": "public function getAll()\n {\n if (empty($this->settings)) {\n $this->parse();\n }\n\n return $this->settings;\n }", "title": "" }, { "docid": "463634369fd7ee5e1c4e7dec2015dc00", "score": "0.5587037", "text": "private function config_loaded() {\n // Note: this->config takes precedence\n $this->config = array_merge($this->settings, $this->config);\n\n if (isset ($this->config['tag_separator'])) {\n $this->tag_separator = $this->config['tag_separator'];\n }\n if (isset ($this->config['tag_template'])) {\n $this->tag_template = $this->config['tag_template'];\n }\n }", "title": "" }, { "docid": "dcc43566958f9672f34276c16d8fca81", "score": "0.5582161", "text": "protected function loadCustomConfigurations()\n {\n $config = $this->getConfig()->toArray();\n if (isset($config['config']))\n {\n foreach ($config['config'] as $configKey => $configValue)\n {\n if (is_string($configValue))\n {\n // Load up form level configurations to the object\n switch($configKey)\n {\n // process form level definitions\n case 'disabled':\n $disabledElements = array_map('trim', explode(',', $configValue));\n foreach ($disabledElements as $disabledElement)\n {\n $this->setElementConfig($disabledElement, array('disabled' => true));\n }\n break;\n }\n } elseif (is_array($configValue))\n {\n // these are field level configurations and should be populated in the element configuration object\n $this->setElementConfig($configKey, $configValue);\n }\n }\n }\n }", "title": "" }, { "docid": "9db0da8f8cae6d71c536fbe615ad32bc", "score": "0.5581947", "text": "public function loadConfig()\n {\n $result = (! Setup_Core::configFileExists()) \n ? Setup_Controller::getInstance()->getConfigDefaults()\n : ((Setup_Core::isRegistered(Setup_Core::USER)) ? Setup_Controller::getInstance()->getConfigData() : array());\n\n return $result;\n }", "title": "" }, { "docid": "e7a64bb320bd1d907d51092eb2c12fd2", "score": "0.55718553", "text": "private function loadMainConfig()\n {\n $fileConfig = array();\n \n if (file_exists(CONFIGS . 'di.ini')) {\n $fileConfig = parse_ini_file(CONFIGS . 'di.ini');\n } else if (file_exists(CONFIGS . 'di.yml')) {\n $fileConfig = $this->getYaml()->parse(CONFIGS . 'di.yml');\n }\n\n $this->mainConfiguration = array_merge($this->mainConfiguration, $fileConfig);\n }", "title": "" }, { "docid": "d3f92193bb4f004654f0fa39c817ad1d", "score": "0.55695385", "text": "public function testConfigGetAllConfigVarsData()\r\n {\r\n $data = $this->smarty->createData();\r\n $data->configLoad('test.conf');\r\n $vars = $data->getConfigVars();\r\n $this->assertTrue(is_array($vars));\r\n $this->assertEquals(\"Welcome to Smarty!\", $vars['title']);\r\n $this->assertEquals(\"Global Section1\", $vars['sec1']);\r\n }", "title": "" }, { "docid": "0389101ddeb83563c409d0114e3b5e4d", "score": "0.55639154", "text": "public function loadConfig()\r\n {\r\n // ID\r\n $id = Server::get('id');\r\n\r\n // Timeout\r\n $this->timeout[$id] = array('max' => Config::get('basic_cmd.rule_timeout', 30), 'time' => 0);\r\n\r\n // Auto rules\r\n $this->autoRules[$id] = Config::get('basic_cmd.auto_rules', TRUE);\r\n\r\n // Rules\r\n $this->rules[$id] = array();\r\n\r\n foreach (Config::get('basic_cmd.server_rules', array()) as $r)\r\n {\r\n $this->rules[$id][] = (string) $r;\r\n }\r\n }", "title": "" }, { "docid": "d2f37e9302e2e75d043052fb929fef9f", "score": "0.55598545", "text": "public function load_configuration($conf) {\n\t\tforeach($conf as $index=>$var) {\n\t\t\t$this->set($index, $var);\n\t\t}\n\t}", "title": "" }, { "docid": "1b30601eaecb9c25180490b723909104", "score": "0.5543589", "text": "protected function loadSettings() {}", "title": "" }, { "docid": "ab5d9b65775409adae07a5152216267c", "score": "0.5542601", "text": "private function getConfiguration() : array {}", "title": "" }, { "docid": "a192850e9d4ddf16dffdac8a5d5f7271", "score": "0.55329037", "text": "function monitoring_drush_sensor_config_all() {\n $sensor_config_list = monitoring_sensor_manager()->getAllSensorConfig();\n\n $rows[] = array(dt('Label'), dt('Name'), dt('Category'), dt('Enabled'));\n $rows[] = array('----', '----', '----');\n /** @var \\Drupal\\monitoring\\Entity\\SensorConfig $sensor_config */\n foreach ($sensor_config_list as $name => $sensor_config) {\n $rows[] = array(\n $sensor_config->getLabel(),\n $name,\n $sensor_config->getCategory(),\n ($sensor_config->isEnabled() ? t('Yes') : t('No')),\n );\n }\n\n drush_print_table($rows, TRUE);\n}", "title": "" }, { "docid": "e04b687fe2873c8af29a0056ce087287", "score": "0.5527732", "text": "protected function getConfigFormValues()\n {\n return array_merge(\n array(\n 'URBITINVENTORYFEED_CACHE_DURATION' => $this->getConfigValue('URBITINVENTORYFEED_CACHE_DURATION'),\n 'URBITINVENTORYFEED_FILTER_CATEGORIES' => explode(',', $this->getConfigValue('URBITINVENTORYFEED_FILTER_CATEGORIES')),\n 'URBITINVENTORYFEED_TAGS_IDS' => explode(',', $this->getConfigValue('URBITINVENTORYFEED_TAGS_IDS')),\n 'URBITINVENTORYFEED_TAX_COUNTRY' => $this->getConfigValue('URBITINVENTORYFEED_TAX_COUNTRY'),\n 'URBITINVENTORYFEED_MINIMAL_STOCK' => $this->getConfigValue('URBITINVENTORYFEED_MINIMAL_STOCK') ? : 0,\n 'URBITINVENTORYFEED_PRODUCT_ID_FILTER' => $this->getConfigValue('URBITINVENTORYFEED_PRODUCT_ID_FILTER'),\n 'URBITINVENTORYFEED_FEED_TOKEN' => $this->getConfigValue('URBITINVENTORYFEED_FEED_TOKEN'),\n ),\n $this->fields['factory']->getInputsConfig(),\n $this->fields['factory']->getPriceInputsConfig(),\n $this->fields['factory']->getInventoryInputsConfig()\n );\n }", "title": "" }, { "docid": "17c6bf6ef2c32c2413a407ebdf795ee0", "score": "0.5516724", "text": "public function config() : array;", "title": "" }, { "docid": "42005a371e8acf437926241b4732716d", "score": "0.5504314", "text": "public static function load()\n {\n //include the configuration file (which hopefully includes $config variable)\n include CONFIG_DIR.'/config.php';\n\n //assign $config as the value of static::$data\n static::$data = $config;\n }", "title": "" }, { "docid": "85f2a2e5e4008b43fcfb9777ad14c248", "score": "0.5502626", "text": "public function testReadAndMigrateAll() {\n $this->readAllvalues();\n }", "title": "" }, { "docid": "64fd9e1536f28c14cf06fc8767989d26", "score": "0.5499201", "text": "function processConfiguration() ;", "title": "" }, { "docid": "09773f0509c7e703c5bea1567f9d44de", "score": "0.5498866", "text": "private function readValues()\n {\n $this->openCSV();\n $this->getColumnNames();\n $this->_availableValuesPerColumn = array();\n while ($record = $this->getNextRecord()) {\n foreach ($record as $columnName => $value) {\n if (!isset($this->_availableValuesPerColumn[$columnName])) {\n $this->_availableValuesPerColumn[$columnName] = array();\n }\n $this->_availableValuesPerColumn[$columnName][$value] = 1;\n }\n }\n $this->closeCSV();\n }", "title": "" }, { "docid": "40b04691fa7db127b27780ccd6ab4728", "score": "0.54829186", "text": "public function getconfiguration(){\n\t\t\t$query = $this->db->query( \"select * from configuration \" );\n\t\t\t$result = $query->row_array();\n\t\t\treturn $result ;\n\t\t\t}", "title": "" }, { "docid": "a8241841f6aefde512a3d2f093e135cc", "score": "0.5482397", "text": "public function getAll ()\r\n {\r\n $sql = \"SELECT * FROM game_config\";\r\n\r\n $this->prepare($sql);\r\n $this->execute();\r\n\r\n return $this->fetchAll();\r\n }", "title": "" }, { "docid": "e96f1f0e83e3d8dbe028049e434f3cd8", "score": "0.5474861", "text": "protected function loadConfigurations()\n {\n\n $files = feather_dir_files(static::$configPath);\n\n foreach ($files as $file) {\n\n if (is_file(static::$configPath . \"/$file\") && stripos($file, '.php') === strlen($file) - 4) {\n $filename = substr($file, 0, strripos($file, '.php'));\n static::$config[strtolower($filename)] = include static::$configPath . '/' . $file;\n }\n }\n }", "title": "" }, { "docid": "d1eaff706095721d46763d73d35ab9b0", "score": "0.5468366", "text": "function LoadConfig()\r\n{\r\n $config = Array();\r\n $config[\"int_callbackdelay\"] = 90;\r\n $config[\"int_taillength\"] = 60 * 60 * 10;\r\n if (file_exists(CONFIG_FILE)) {\r\n $ini = parse_ini_file(CONFIG_FILE, true);\r\n if (Array_Key_Exists('config', $ini)) {\r\n foreach ($config as $key => $value) {\r\n if (Array_Key_Exists($key, $ini['config'])) {\r\n if (substr($key, 0, 3) == 'int') $config[$key] = intVal($ini['config'][$key]);\r\n if (substr($key, 0, 3) == 'str') $config[$key] = $ini['config'][$key];\r\n if (substr($key, 0, 5) == 'float') $config[$key] = floatVal($ini['config'][$key]);\r\n }\r\n }\r\n }\r\n }\r\n if ($config[\"int_callbackdelay\"] < 1) $config[\"int_callbackdelay\"] = 1;\r\n return $config;\r\n}", "title": "" }, { "docid": "11589ba28af5ef7183ee52cc0705582f", "score": "0.546589", "text": "public function getAll()\n {\n return $this->settings_from_database;\n }", "title": "" }, { "docid": "f2eb99c5834d56d5d1865b415d6f470d", "score": "0.54633754", "text": "private function parseConfig(): array\n {\n $general = new GeneralParser($this->projectDir);\n\n $config = new Collection([\n 'general' => $general->parse(),\n ]);\n\n $taxonomy = new TaxonomyParser($this->projectDir);\n $config['taxonomies'] = $taxonomy->parse();\n\n $contentTypes = new ContentTypesParser($this->projectDir, $config->get('general'));\n $config['contenttypes'] = $contentTypes->parse();\n\n $menu = new MenuParser($this->projectDir);\n $config['menu'] = $menu->parse();\n\n // @todo Add these config files if needed, or refactor them out otherwise\n //'permissions' => $this->parseConfigYaml('permissions.yml'),\n //'extensions' => $this->parseConfigYaml('extensions.yml'),\n\n $timestamps = $this->getConfigFilesTimestamps($general, $taxonomy, $contentTypes, $menu);\n\n return [\n DeepCollection::deepMake($config),\n $timestamps,\n ];\n }", "title": "" }, { "docid": "0736a44f87351cf4d009ad4b1ecadc61", "score": "0.5462843", "text": "private function loadConfigurationFiles()\n {\n $finder = new Finder();\n\n $iterator = $finder\n ->files()\n ->name('*.yml')\n ->in(CONFIG_DIR);\n\n $config = array();\n\n foreach ($iterator as $file) {\n $content = file_get_contents($file->getRealPath());\n\n if (!empty($content)) {\n $array = Yaml::parse($content);\n $config[$file->getBasename('.'.$file->getExtension())] = $array;\n }\n }\n\n $this['config'] = $config;\n }", "title": "" }, { "docid": "a3258479d4013d73bea4d41272106913", "score": "0.5446063", "text": "public function getConfigurationFields();", "title": "" }, { "docid": "ad336e7ce48ba7eaf36ac9866be82799", "score": "0.544375", "text": "public function load()\n {\n return $this->config;\n }", "title": "" }, { "docid": "cc299bb27feecc20334d59ce8cedee17", "score": "0.5441658", "text": "function readInputData() {\n\t\t$this->readUserVars(array('name', 'description', 'path', 'enabled'));\n\t}", "title": "" }, { "docid": "e3decef28df008a7462fb6eaee1c2aaf", "score": "0.5438336", "text": "abstract public function getConfiguration(): array;", "title": "" }, { "docid": "2a515ad32febe8136b527cc2b8f495a6", "score": "0.54351735", "text": "function readConfig($filename,$section){\n\t$result=array();\n\t$config = parse_ini_file($filename,true);\n\tforeach ($config as $key => $value){\n\t\t$keyH = explode(\":\",$key);\n\t\tif($keyH[0]==$section){\n\t\t\tif(isset($keyH[1])){\n\t\t\t\t$result=readConfig($filename,$keyH[1]);\n\t\t\t}\n\t\t\t$result=array_merge($result,$value);\n\t\t}\n\t}\n\treturn $result;\n}", "title": "" }, { "docid": "812e163b4aba9fd8241372f5cd526ca2", "score": "0.54280084", "text": "protected function readDefaultValues() {\n\t\t$this->username = $this->user->username;\n\t\t$this->email = $this->confirmEmail = $this->user->email;\n\t\t$this->groupIDs = $this->user->getGroupIDs();\n\t\t$this->languageID = $this->user->languageID;\n\t\t\n\t\tforeach ($this->activeOptions as $key => $option) {\n\t\t\t$value = $this->user->{'userOption'.$option['optionID']};\n\t\t\tif ($value !== null) {\n\t\t\t\t$this->activeOptions[$key]['optionValue'] = $value;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "cd1a7197eac758214ede25026b19cd50", "score": "0.54274005", "text": "Function _LoadConfiguration()\n{\n static $_aCFG = array();\n static $_fStream;\n static $_sLine = '';\n static $_aData = array();\n static $_kaData,$_vaData;\n static $_oFso;\n \n $_oFso = new FSO;\n $_aConfigFiles = $_oFso->_GetFiles( _RelativeToReal( CONF ) ,true);\n \n for ( $c = 0; $c<sizeof($_aConfigFiles); $c++ )\n {\n $_fStream = @fopen( $_aConfigFiles[$c], 'r' );\n while ( !feof( $_fStream ) )\n {\n $_sLine = trim( @fgets( $_fStream, 0xFFF ) );\n if ( !empty($_sLine) )\n {\n $_aData[] = explode( '=', $_sLine, 2 ); \n }\n }\n @fclose( $_fStream ); \n }\n \n for ( $c = 0; $c<sizeof( $_aData ); $c++ )\n {\n $_aCFG[ $_aData[$c][0] ] = $_aData[$c][1]; \n }\n \n return $_aCFG;\n \n}", "title": "" }, { "docid": "3b68327e1242760eff30ec417861cdf3", "score": "0.540267", "text": "public function testConfigGetAllConfigVars()\r\n {\r\n $this->smarty->configLoad('test.conf');\r\n $vars = $this->smarty->getConfigVars();\r\n $this->assertTrue(is_array($vars));\r\n $this->assertEquals(\"Welcome to Smarty!\", $vars['title']);\r\n $this->assertEquals(\"Global Section1\", $vars['sec1']);\r\n }", "title": "" }, { "docid": "8af412690229b4dc2dd6177a8c72a148", "score": "0.53971416", "text": "public function load_config()\r\n {\r\n if (isset($this->path)) {\r\n $config = $this->load_json_config();\r\n\r\n $constants = null;\r\n $variables = null;\r\n\r\n if (isset($config->configmgr) && !empty($config->configmgr))\r\n $this->load_configMGR_config($config->configmgr);\r\n if (isset($config->constants) && !empty($config->constants))\r\n $constants = $this->load_constants_from_object($config->constants);\r\n if (isset($config->variables) && !empty($config->variables))\r\n $variables = $this->load_variables_from_object($config->variables);\r\n\r\n $this->config = array_merge($constants, $variables);\r\n\r\n $this->replace_markups();\r\n $this->match_constants_with_config_names($constants);\r\n $this->match_variables_with_config_names($variables);\r\n\r\n $this->define_constants();\r\n\r\n $loaded = true;\r\n }\r\n }", "title": "" }, { "docid": "632acf9c32159c067b85310ca3cfc1f8", "score": "0.5393683", "text": "public abstract function getConfig(): array;", "title": "" }, { "docid": "02f158f6beda1d81b1e8c040c7257a6e", "score": "0.5383075", "text": "function loadConfig( $filename ) {\r\n\r\n $f = fopen( $filename, 'r' );\r\n\r\n $settings = Array();\r\n $row = fgets( $f, 4096 );\r\n $continue = $row !== false;\r\n\r\n while ( $continue ) {\r\n\r\n $thisrow = fgets( $f, 4096 );\r\n\r\n if (\r\n ( ( \r\n strlen( trim( $thisrow ) ) &&\r\n !in_array(\r\n substr( $thisrow, 0, 1 ),\r\n Array( ' ', \"\\t\" ) \r\n )\r\n ) ) ||\r\n $thisrow === false\r\n ) {\r\n\r\n $row = rtrim( $row, \"\\n\\r\" );\r\n\r\n if ( substr( $row, 0, 1 ) != ';' ) {\r\n\r\n $parts = explode( \r\n '=', \r\n $this->_configfilter( $this->configfilter, $row ), \r\n 2 \r\n );\r\n \r\n $parts[ 0 ] = trim( $parts[ 0 ] );\r\n \r\n if ( strlen( $parts[ 0 ] ) ) {\r\n \r\n // instead of trim(), we use preg_match + substr\r\n // to ensure symmetrical trimming\r\n while ( preg_match('/^\\\"(.+)\\\"$/', $parts[1] ) )\r\n $parts[1] = substr( $parts[1], 1, -1 );\r\n\r\n $parts[ 1 ] = \r\n preg_replace_callback(\r\n '/\\\\\\([nrt\"])/', array( $this, 'loadConfigReplaceCallback' ), $parts[ 1 ]\r\n );\r\n\r\n if ( strpos( $parts[ 0 ], '.' ) !== false ) {\r\n\r\n // array setting\r\n $nameparts = explode('.', $parts[ 0 ] );\r\n $settings = $this->_createArray( $nameparts, $settings, 0, $parts[ 1 ] );\r\n\r\n }\r\n else {\r\n $settings[ $parts[ 0 ] ] = $parts[ 1 ];\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n $continue = false;\r\n $row = '';\r\n\r\n }\r\n\r\n if ( $thisrow !== false )\r\n $continue = true;\r\n\r\n if ( strlen( trim( $thisrow, \"\\n\" ) ) ) \r\n $row .= $thisrow;\r\n\r\n }\r\n\r\n foreach ( $settings as $key => $value ) \r\n if ( is_array( $value ) ) {\r\n $this->$key = \r\n $this->_betterArrayMerge(\r\n $this->$key, \r\n $settings[ $key ] \r\n );\r\n }\r\n else\r\n $this->$key = $value;\r\n\r\n }", "title": "" }, { "docid": "314a1a5f6766cb55ddf68be1f021ef51", "score": "0.5382944", "text": "public function config(){}", "title": "" } ]
6818da0ab88f75dc1c1d34a224588e42
Get translations to Array
[ { "docid": "998d3c6e7f564c7c5568e50af03f8aad", "score": "0.0", "text": "public function getAllToArray($locale, $group, $namespace = null)\n {\n $array = DB::table('translations')\n ->select('translation', 'key')\n ->join('translation_translations', 'translations.id', '=', 'translation_translations.translation_id')\n ->where('locale', $locale)\n ->where('group', $group)\n ->lists('translation', 'key');\n\n return $array;\n }", "title": "" } ]
[ { "docid": "569f9fb7b0740a2559ca6c47e1632b2b", "score": "0.83258677", "text": "public function translations(): array\n {\n return [];\n }", "title": "" }, { "docid": "e5e31a3b11165421a9398d028c4570d9", "score": "0.81920666", "text": "public function translations(): array\n {\n return $this->translations;\n }", "title": "" }, { "docid": "6587188f012a92ab85546f419cb38fdc", "score": "0.7955033", "text": "static function translations(){return array();}", "title": "" }, { "docid": "c43461333437b51d696eb38b1d0ad2cd", "score": "0.786341", "text": "public function getTranslation()\n {\n if(empty($this->data[self::TRANSLATIONS])){\n return array();\n }\n\n return $this->data[self::TRANSLATIONS];\n }", "title": "" }, { "docid": "9f080988de307027bb5c916beeca0628", "score": "0.7710968", "text": "protected function createTranslationsArray(){\n if(empty(static::$translations_array)){\n foreach ($this->translations as &$_translation) {\n static::$translations_array[$_translation['term']] = $_translation['text'];\n }\n }\n\n return static::$translations_array;\n }", "title": "" }, { "docid": "2b417530be5035aba7b8777e2eeae124", "score": "0.7529278", "text": "public static function getTranslationConfig(): array;", "title": "" }, { "docid": "aa7440e4176e81903a000c3d6359f882", "score": "0.7520118", "text": "public function getTranslations() {\n $translations = Translation::all();\n return $translations;\n }", "title": "" }, { "docid": "0af5470acaaa29b211119d42e4eb427a", "score": "0.7514752", "text": "public function load_translations() {\n list($table, $field) = $this->table_field();\n if ($table && $field) {\n return db_select($table)\n ->fields($table)\n ->condition($table . '.' . $field, $this->tsid)\n ->execute()\n ->fetchAllAssoc('language');\n }\n else {\n return array();\n }\n }", "title": "" }, { "docid": "91d427476531c6c873babaa8a5f43a1f", "score": "0.74090505", "text": "public function getTranslations()\n {\n return $this->translations;\n }", "title": "" }, { "docid": "659d07f338c9e77fe40969583111a4ca", "score": "0.7359649", "text": "public function get_translations() {\n if (!isset($this->translations)) {\n $this->translations = $this->load_translations();\n }\n return $this->translations;\n }", "title": "" }, { "docid": "5729c550582c338b77f8c5156d8b4fc4", "score": "0.7352222", "text": "function translations(?string $locale = null) : array\n {\n $storage = Storage::build([\n 'driver' => 'local',\n 'root' => app()->langPath(),\n ]);\n\n /*\n ['en' => ['validation' => ['accepted' => '...']]]\n */\n return collect($storage->allFiles($locale))\n ->map(fn($file) => [\n 'path' => explode(\n DIRECTORY_SEPARATOR,\n pathinfo($file, \\PATHINFO_DIRNAME) . DIRECTORY_SEPARATOR . pathinfo($file, \\PATHINFO_FILENAME)\n ),\n 'translations' => require(app()->langPath($locale . DIRECTORY_SEPARATOR . $file))\n ])\n ->reduce(fn($tree, $file) => array_merge_recursive(\n $tree,\n collect($file['path'])\n ->reverse()\n ->reduce(fn($subtree, $file) => [$file => $subtree], $file['translations'])\n ), []);\n }", "title": "" }, { "docid": "d4d1b2babedaabd5f9dafdd4cf6ccb51", "score": "0.72845596", "text": "public function getTranslations() {\n\t\treturn $this->translations;\n\t}", "title": "" }, { "docid": "d13f49a71a215fb778c075a2e9db1b8c", "score": "0.7278468", "text": "protected function getTranslation() {\n $language = $this->request->getBestLanguage();\n\n if (file_exists(\"../app/messages/\" . $language . \".php\")) {\n require \"../app/messages/\" . $language . \".php\";\n } else {\n require \"../app/messages/en.php\";\n }\n return new NativeArray(array(\"content\" => $messages));\n }", "title": "" }, { "docid": "33e78be2fe27da6c1e1ee2c1461fa707", "score": "0.72376907", "text": "public function getAllTranslations() {\n\t\t$translations = ilStudyProgrammeTypeTranslation::where(array('prg_type_id'=>$this->getId()))->get();\n\t\t/** @var ilStudyProgrammeTypeTranslation $trans */\n\t\tforeach ($translations as $trans) {\n\t\t\t$this->translations[$trans->getLang()] = $trans->getArray('member', 'value');\n\t\t}\n\n\t\treturn $this->translations;\n\t}", "title": "" }, { "docid": "fadec611ed64f3e9e426927fc8b6bf60", "score": "0.7184308", "text": "public function translations(string $key): array;", "title": "" }, { "docid": "583d284e3933eb04887aeb677edf1057", "score": "0.7121735", "text": "public function getList()\n {\n $list = array_keys($this->_translate);\n $result = null;\n foreach($list as $value) {\n if (!empty($this->_translate[$value])) {\n $result[$value] = $value;\n }\n }\n return $result;\n }", "title": "" }, { "docid": "b4c4c5cef27808b698d8fefb24e24a10", "score": "0.7006908", "text": "public function getAddonTranslations()\n {\n return $this->_getTranslations($this->_xml);\n }", "title": "" }, { "docid": "e139cc315ae12f22f3987e08e6b2e303", "score": "0.7005616", "text": "public function getLanguageList(): array;", "title": "" }, { "docid": "f3cce6e8cdd6f1f979ab5ba87510943a", "score": "0.70026565", "text": "public function getLanguages(): array;", "title": "" }, { "docid": "3fdb1d9675cddd9a483765aeb01bfcfe", "score": "0.6972222", "text": "public static function getTranslation()\r\n {\r\n $session = \\Phalcon\\DI::getDefault()->get('session');\r\n $language = is_object($session) ? $session->get('language') : 'tr';\r\n $language = !empty($language) ? $language : 'tr';\r\n $translationFile = APP_PATH.'/languages/' . $language . '.php';\r\n $messages = [];\r\n \r\n // Check if we have a translation file for that lang\r\n if ( file_exists($translationFile) ) {\r\n require $translationFile;\r\n \r\n } else {\r\n // Fallback to some default\r\n require APP_PATH.'/languages/tr.php';\r\n }\r\n \r\n self::$_s_t = new NativeArray(\r\n [\r\n 'content' => $messages,\r\n ]\r\n );\r\n \r\n // Return a translation object $messages comes from the require\r\n // statement above\r\n return self::$_s_t;\r\n }", "title": "" }, { "docid": "92b59036904e15133134a464754c403e", "score": "0.69612366", "text": "private function getTermTranslations(): array {\n $cid = 'facet_rename:term_translations:' . $this->languageCode;\n $cache = $this->cacheBackend->get($cid);\n if ($cache && $cache->valid) {\n return $cache->data;\n }\n\n $values = [];\n /** @var \\Drupal\\taxonomy\\Entity\\Term $term */\n foreach ($this->termStorage->loadTree('term_translations', 0, NULL, TRUE) as $term) {\n if ($term->hasTranslation($this->languageCode)) {\n $term = $term->getTranslation($this->languageCode);\n }\n $values[$term->get('name')->getString()] = $term->get('translation')->getString();\n }\n $this->cacheBackend->set($cid, $values, CacheBackendInterface::CACHE_PERMANENT);\n return $values;\n }", "title": "" }, { "docid": "d2b06d175d15e4a0b1f5344da6bfa3fa", "score": "0.69305706", "text": "public function getPageTranslations() {\n $translatedValue = array();\n $translatedValue['keywordsearch'] = $this -> localise(\"tx_pitsdownloadcenter_domain_model_download.keywordsearch\");\n $translatedValue['searchkey'] = $this -> localise(\"tx_pitsdownloadcenter_domain_model_download.searchkey\");\n $translatedValue['filterbyarea'] = $this -> localise(\"tx_pitsdownloadcenter_domain_model_download.filterbyarea\");\n $translatedValue['categoryplaceholder'] = $this -> localise(\"tx_pitsdownloadcenter_domain_model_download.categoryplaceholder\");\n $translatedValue['searchbytype'] = $this -> localise(\"tx_pitsdownloadcenter_domain_model_download.searchbytype\");\n $translatedValue['resultsfound'] = $this -> localise(\"tx_pitsdownloadcenter_domain_model_download.resultsfound\");\n $translatedValue['tabletitle'] = $this -> localise(\"tx_pitsdownloadcenter_domain_model_download.tabletitle\");\n $translatedValue['tablesize'] = $this -> localise(\"tx_pitsdownloadcenter_domain_model_download.tablesize\");\n $translatedValue['tabletype'] = $this -> localise(\"tx_pitsdownloadcenter_domain_model_download.tabletype\");\n $translatedValue['tabledownload'] = $this -> localise(\"tx_pitsdownloadcenter_domain_model_download.tabledownload\");\n return $translatedValue;\n }", "title": "" }, { "docid": "b3cfb6c722e65e66ed38c691b958a74f", "score": "0.6923061", "text": "public function translationProvider(): array\n {\n return [\n [\n 'foo',\n 'bar',\n ['baz'],\n ['qux'],\n 'foo',\n 'bar'\n ],\n [\n 'foo',\n 'bar',\n ['baz'],\n ['qux'],\n 'qux',\n 'baz'\n ]\n ];\n }", "title": "" }, { "docid": "c8aab2dc87289535e31ac784019cad2a", "score": "0.69208825", "text": "public function getTranslator(): array {\n return $this->getAllNames()[Relators::TRANSLATOR] ?? [];\n }", "title": "" }, { "docid": "83822b0e8bcce846f2b72bfebdfd2e58", "score": "0.6831235", "text": "public function getTranslationTable();", "title": "" }, { "docid": "c09ca86667ee8e0da68437aeca594d78", "score": "0.6820767", "text": "public static function _all()\n {\n return self::withTranslation()->get();\n }", "title": "" }, { "docid": "8ef66f2b10b2999ad804f29256b2941f", "score": "0.6792284", "text": "public function getArray() \n {\n return $this->subtitles;\n }", "title": "" }, { "docid": "c5f48ad788df09283dc29a2aced58be8", "score": "0.6785977", "text": "public function toArray()\n {\n return [0 => __('Test'), 1 => __('Live'),2 => __('Developer')];\n }", "title": "" }, { "docid": "1482d5033959c3ff37a8773b6e16cd61", "score": "0.6783934", "text": "public function getLanguageData()\n {\n $languageData = [];\n foreach ($this->translation as $translation) {\n $languageData[$translation->language_id] = [\n 'name' => $translation->name,\n ];\n }\n\n return $languageData;\n }", "title": "" }, { "docid": "cb1db9a90ada43e51cf856423eae8ac5", "score": "0.6757767", "text": "public function toSearchableArray()\n {\n // MySQL Full-Text search handles indexing automatically.\n if (config('scout.driver') === 'mysql') {\n return [];\n }\n\n $translations = $this->translations()\n ->withoutGlobalScope('locale')\n ->get(['name', 'description', 'short_description']);\n\n return ['id' => $this->id, 'translations' => $translations];\n }", "title": "" }, { "docid": "1ae81ff7b78f437714380cfb61feb73e", "score": "0.67531854", "text": "public function all(): array\n {\n return config('translatable.locales', []);\n }", "title": "" }, { "docid": "06059f64f8bdac44d0f91701f8ed8f77", "score": "0.67131084", "text": "public function getLanguageData()\n {\n $languageData = [];\n foreach ($this->translation as $translation) {\n $languageData[$translation->language_id] = [\n 'name' => $translation->name,\n 'email' => $translation->email,\n 'phone' => $translation->phone,\n 'street' => $translation->street,\n 'streetno' => $translation->streetno,\n 'flatno' => $translation->flatno,\n 'postcode' => $translation->postcode,\n 'province' => $translation->province,\n 'city' => $translation->city,\n 'country' => $translation->country,\n ];\n }\n\n return $languageData;\n }", "title": "" }, { "docid": "5be32ea56d8506c58e677d6b012702b8", "score": "0.67071754", "text": "public function translations()\n {\n return $this->morphMany(Translation::class, 'translatable');\n }", "title": "" }, { "docid": "5be32ea56d8506c58e677d6b012702b8", "score": "0.67071754", "text": "public function translations()\n {\n return $this->morphMany(Translation::class, 'translatable');\n }", "title": "" }, { "docid": "3d316cff9ae7eee82e29eee05a1f9084", "score": "0.6693861", "text": "public function readTranslations(): ?array {\n\t\t$file_name = $this->getFilename();\n\t\tif (!file_exists($file_name)) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t$contents = file_get_contents($file_name);\n\t\tif (empty($contents)) {\n\t\t\treturn [];\n\t\t}\n\t\t\n\t\treturn json_decode($contents, true);\n\t}", "title": "" }, { "docid": "406b3336047c7e238e88a53dae9bbded", "score": "0.66859335", "text": "private static function loadTexts(string $locale): array\n {\n $localeFilePath = __DIR__ . '/../I18n/' . $locale . '.json';\n\n $langArray = [];\n\n if (file_exists($localeFilePath)) {\n $langArray = json_decode(file_get_contents($localeFilePath), true);\n }\n\n return $langArray;\n }", "title": "" }, { "docid": "7deb72c4094880f2d0f99b159b3173ed", "score": "0.66744894", "text": "public function getTranslationsArray(Request $request, string $key = 'translate'): array\n {\n $translations = $request->input($key, []);\n $translated = [];\n foreach ($translations as $language => $translation) {\n if (! is_translation_empty($translation)) {\n $translated[$language] = $translation;\n }\n }\n\n return $translated;\n }", "title": "" }, { "docid": "5de8f1f250374a6712e77dd24d7aa2fc", "score": "0.6655666", "text": "public function getListLanguages(){\n return array_keys($this->dataTranslations);\n }", "title": "" }, { "docid": "d3a040eba6e8d782a1104bb2df215c81", "score": "0.66290075", "text": "function getStringTranslations( $str ){\r\n\t\t\t$ret = array();\r\n\t\t\tforeach($this -> languages as $key => $value){\r\n\t\t\t\t$ret[$key] = $this -> getString( $str , $key );\r\n\t\t\t}\r\n\t\t\treturn $ret;\r\n\t\t}", "title": "" }, { "docid": "fecade5a9d6cc58d49bc56288127e59c", "score": "0.66256547", "text": "public function getTranslations(string $locale = 'en')// :array\n {\n if($locale)\n $this->setCurrentLocale($locale);\n\n //if translations are loaded and locale is unchanged since last time translations were accesed\n if(is_array($this->translations) and !$locale\n OR $locale == $this->translations['locale'])\n return $this->translations;\n\n //if isnt loaded or locale chaged\n $properties = get_object_vars($this);\n //iterate over every property, and add to Translation collection,\n // the array ones that contains the current languages key\n foreach ($properties as $property => $value)\n {\n if(is_string($value) && $value = json_decode($value, true))\n if(is_array($value) and isset($value[$this->currentLocale]))\n $this->translations[$property] = $value[$this->currentLocale];\n }\n //save the locale used to get translations\n $this->translations['locale'] = $this->currentLocale;\n return $this->translations;\n\n }", "title": "" }, { "docid": "c442008e9b89c24d32eabcb01a7066dd", "score": "0.66115767", "text": "public function updateAndGetTranslations()\n {\n $this->eventManager->dispatch('adminhtml_cache_flush_system');\n $translations = $this->translateResource->getTranslationArray(null, $this->localeResolver->getLocale());\n $this->fileManager->updateTranslationFileContent(json_encode($translations));\n return $translations;\n }", "title": "" }, { "docid": "c2e67561fb47a3d8306876cc44bbef4e", "score": "0.65949464", "text": "public function getInFileTranslations() {\n\t\tif ( $this->inFileTranslations === null ) {\n\t\t\t$this->analyse();\n\t\t}\n\t\treturn $this->inFileTranslations;\n\t}", "title": "" }, { "docid": "4e7676a73c3e17bee2680e4971d282d8", "score": "0.6565868", "text": "public function findTranslations()\n {\n $translations = [];\n $moduleName = $this->getModuleName();\n $allFiles = $this->getFilesFromDir($this->getModulePath());\n\n foreach ($allFiles as $file) {\n if (substr($file, -4) !== '.tpl' && substr($file, -4) !== '.php') {\n continue;\n }\n\n $filename = $this->getFileName($file);\n $fileContent = file_get_contents($file);\n\n preg_match_all(self::REGEX_TPL, $fileContent, $matchesTpl);\n preg_match_all(self::REGEX_CLASS, $fileContent, $matchesClass);\n preg_match_all(self::REGEX_ADMIN_CLASS, $fileContent, $matchesAdminClass);\n\n $searchDomainInSentence = '\\', \\'' . $filename;\n\n if (!empty($matchesTpl[1])) {\n $sentence = array_unique($matchesTpl[1]);\n $translations[$filename]['matches'] = str_ireplace($searchDomainInSentence, '', $sentence);\n }\n if (!empty($matchesClass[1])) {\n $sentence = array_unique($matchesClass[1]);\n $translations[$filename]['matches'] = str_ireplace($searchDomainInSentence, '', $sentence);\n }\n if (!empty($matchesAdminClass[1])) {\n $sentence = array_unique($matchesAdminClass[1]);\n $translations[$filename]['matches'] = str_ireplace($searchDomainInSentence, '', $sentence);\n }\n }\n\n return [\n 'module_name' => $moduleName,\n 'translations' => $this->translationsCode->getAllTranslationsCodes($translations, $moduleName),\n ];\n }", "title": "" }, { "docid": "b62c86b0eb1647be2461e432cc9b3ca3", "score": "0.6552576", "text": "abstract public function getLocaleMessages(string $lang): array;", "title": "" }, { "docid": "d74ef1407969ab0b8cad37c865101e73", "score": "0.6503458", "text": "public function toArray()\n {\n return ['1' => __('Image'),\n '2' => __('Text')\n ];\n }", "title": "" }, { "docid": "1ed3b41e76fafa9e50f1eaf995a21a11", "score": "0.64922816", "text": "public function getLanguageArray()\n\t{\n\t\treturn $this->languageArray;\n\t}", "title": "" }, { "docid": "a5af017d2a878370bc43101806ca6092", "score": "0.6479903", "text": "protected function packageTranslations()\n {\n $namespaces = $this->app['translator']->getLoader()->namespaces();\n\n return collect($namespaces)->map(function ($dir, $namespace) {\n return collect(File::directories($dir))->flatMap(function ($dir) use ($namespace) {\n return [\n basename($dir) => collect([\n $namespace.'::' => collect($this->getFiles($dir))->flatMap(function ($file) {\n return [\n $file->getBasename('.php') => (include $file->getPathname()),\n ];\n })->toArray(),\n ]),\n ];\n })->toArray();\n })->reduce(function ($collection, $item) {\n return collect(array_merge_recursive($collection->toArray(), $item));\n }, collect())->map(function ($item) {\n return collect($item);\n });\n }", "title": "" }, { "docid": "a5af017d2a878370bc43101806ca6092", "score": "0.6479903", "text": "protected function packageTranslations()\n {\n $namespaces = $this->app['translator']->getLoader()->namespaces();\n\n return collect($namespaces)->map(function ($dir, $namespace) {\n return collect(File::directories($dir))->flatMap(function ($dir) use ($namespace) {\n return [\n basename($dir) => collect([\n $namespace.'::' => collect($this->getFiles($dir))->flatMap(function ($file) {\n return [\n $file->getBasename('.php') => (include $file->getPathname()),\n ];\n })->toArray(),\n ]),\n ];\n })->toArray();\n })->reduce(function ($collection, $item) {\n return collect(array_merge_recursive($collection->toArray(), $item));\n }, collect())->map(function ($item) {\n return collect($item);\n });\n }", "title": "" }, { "docid": "eb3d16bbf89aa822678d154f0e63508f", "score": "0.6470716", "text": "protected function getTranslatable(): array\n {\n if (!property_exists($this, 'translatable')) {\n throw new TranslatableException('Missing property [translatable].');\n }\n\n return $this->translatable;\n }", "title": "" }, { "docid": "62cfd00baedcd983bd6f7590163e40d9", "score": "0.6459454", "text": "protected function _getTranslation()\n {\n $language = $this->request->getBestLanguage();\n\n //Check if we have a translation file for that lang\n if (file_exists(APP_PATH.\"/app/messages/\".$language.\".php\")) {\n require APP_PATH.\"/app/messages/\".$language.\".php\";\n } else {\n // fallback to some default\n require APP_PATH.\"/app/messages/vi.php\";\n }\n\n //Return a translation object\n return new \\Phalcon\\Translate\\Adapter\\NativeArray(array(\n \"content\" => $messages\n ));\n\n }", "title": "" }, { "docid": "8f8ff2005ff3af064f74d0e1c309947e", "score": "0.64535725", "text": "function scisco_user_locale_array() {\n $languages = array();\n $available_languages = get_available_languages();\n\n include_once('locale-convertion.php');\n\n $languages[''] = esc_html__( 'English (United States)', 'scisco');\n\n foreach ($available_languages as $id) {\n $languages[$id] = $wp_locale_conversion[$id];\n }\n\n return $languages;\n}", "title": "" }, { "docid": "ffa1808390cfa722718d73aaebe6391f", "score": "0.6444569", "text": "public function actionTranslates() {\n\t\tdie(json_encode(T::all()));\n\t}", "title": "" }, { "docid": "2c4f6750ac4c1c8032b1c2e095bb2edb", "score": "0.6423895", "text": "public function getSyncLanguages()\n {\n $languages = [Language::LANG_CA => Yii::t('app', 'catalan'), Language::LANG_ES => Yii::t('app', 'spanish'), Language::LANG_EN => Yii::t('app', 'english')];\n unset($languages[$this->language_id]);\n if (!$this->translations->article_ca) {\n unset($languages[Language::LANG_CA]);\n }\n if (!$this->translations->article_es) {\n unset($languages[Language::LANG_ES]);\n }\n if (!$this->translations->article_en) {\n unset($languages[Language::LANG_EN]);\n }\n return $languages;\n }", "title": "" }, { "docid": "89feeda1be1129db27d01202b8abf1c7", "score": "0.64143485", "text": "public function getLanguages($target) : array;", "title": "" }, { "docid": "cc24effc55e43d477a8e707465c22fb3", "score": "0.6407749", "text": "public function getGlossaryTranslations()\n {\n return $this->glossary_translations;\n }", "title": "" }, { "docid": "e329881fea19405c5f72f01db5b5041a", "score": "0.64019775", "text": "public function getTranslatable();", "title": "" }, { "docid": "0b72e45ef6767fc2761c9ff2a980a06e", "score": "0.6398123", "text": "public function gettranslationsAction () {\n \t\n \t$viewName \t= $this->_getParam('viewName');\n \t\n \tif (isset($viewName)) {\n \t\t$texts = $this->translator->getTranslations($viewName);\n \t\n \t\treturn $this->apiControllerHelper->formatOutput($texts);\n \t}\n \t\n \treturn $this->apiControllerHelper->formatOutput(array(\n 'error' => true,\n 'error_title' => $this->translator->translate('error_loading_translations'),\n 'error_description' => ''\n ));\n }", "title": "" }, { "docid": "8308b88c6699e1e0fd0b0c739cd6e80f", "score": "0.63935256", "text": "public function toArray()\n {\n return [0 => __('Approved'), 1 => __('Pending')];\n }", "title": "" }, { "docid": "6958bb4742d8442f1fc17b5237a02110", "score": "0.63851047", "text": "public static function get()\n {\n $locales = self::all();\n\n // Don't translate the default locale.\n unset($locales[0]);\n\n return $locales;\n }", "title": "" }, { "docid": "26e26d45c199489b570a83d5979bbb22", "score": "0.63820577", "text": "public function toArray()\n {\n return [\n self::SOCIAL => __('Social'),\n self::REVERSE_TIME => __('Reverse time'),\n self::TIME => __('Time'),\n ];\n }", "title": "" }, { "docid": "aba7555bfd6feb7a07b745df51c32f7a", "score": "0.63791823", "text": "protected function _getTranslation()\n {\n $language = $this->request->getBestLanguage();\n\n //Check if we have a translation file for that lang\n if ( file_exists(\"app/messages/\" . $language . \".php\") ) {\n require \"app/messages/\" . $language . \".php\";\n } else {\n // fallback to some default\n require \"app/messages/en.php\";\n }\n\n //Return a translation object\n return new \\Phalcon\\Translate\\Adapter\\NativeArray(array(\n \"content\" => $messages\n ));\n\n }", "title": "" }, { "docid": "694285c3a31e7c9ed31d05d4fbce1614", "score": "0.63736963", "text": "protected function get_trans_content($locale)\n {\n return [\n 'file1' => trans('file1', [], $locale),\n 'file2' => trans('file2', [], $locale),\n 'file3' => trans('file3', [], $locale),\n ];\n }", "title": "" }, { "docid": "fe457e0cb95734e43a310ddd92b2edbe", "score": "0.63717645", "text": "public function getTranslationBag()\n {\n return $this->translationBag;\n }", "title": "" }, { "docid": "b123520b89c7239dc0e2418813ebe565", "score": "0.6366175", "text": "public function getCampaignTranslations($lang) {\n // Set locale\n $locale = request('lang', config('system.default_language'));\n app()->setLocale($locale);\n\n // Get language file content\n $response = trans('campaign');\n\n return response()->json($response, 200);\n }", "title": "" }, { "docid": "c904645d2fcb83a5cec252f42655e187", "score": "0.6362548", "text": "public function getAvailableCampaignTranslations() {\n $dir_path = resource_path() . '/lang';\n $dir = new \\DirectoryIterator($dir_path);\n $response = [];\n foreach ($dir as $fileinfo) {\n if (! $fileinfo->isDot()) {\n // Check if campaign translations exist\n $lang = $fileinfo->getFilename();\n if (strlen($lang) == '2' && \\File::exists($dir_path . '/' . $lang . '/campaign.php')) {\n $file = include($dir_path . '/' . $lang . '/campaign.php');\n $response[] = [\n 'title' => $file['language_title'],\n 'abbr' => $file['language_abbr'],\n 'code' => $lang\n ];\n }\n }\n }\n\n return response()->json($response, 200);\n }", "title": "" }, { "docid": "74c95e5833e28c2edf1b32ab7e621e99", "score": "0.63586426", "text": "#[Pure]\nfunction intlcal_get_available_locales(): array {}", "title": "" }, { "docid": "e1e47760dd947981af261b14b8fd04ac", "score": "0.63582754", "text": "protected function loadTranslations($locale){\n $this->translations = Translation::with(['translations' => function($query) use ($locale) {\n $query->where('locale', $locale);\n }])->get();\n\n return $this->createTranslationsArray();\n }", "title": "" }, { "docid": "4f91fcc27a0f4fdbbd351d2207cab59a", "score": "0.6356791", "text": "public static function getTranslationAttributes();", "title": "" }, { "docid": "c5d22ec1979e76031b6e9954d4c8c34a", "score": "0.63502353", "text": "public function getLanguages();", "title": "" }, { "docid": "c5d22ec1979e76031b6e9954d4c8c34a", "score": "0.63502353", "text": "public function getLanguages();", "title": "" }, { "docid": "c82cf80951f128f56ca9f2120cf44aa2", "score": "0.6343484", "text": "protected function translatableProperties() {\n $list = array();\n foreach (entity_get_all_property_info($this->entityType) as $name => $info) {\n if (!empty($info['translatable']) && !empty($info['i18n string'])) {\n $list[$name] = array(\n 'title' => $info['label'],\n );\n }\n }\n return $list;\n }", "title": "" }, { "docid": "5b49a8083247904db13a7dfa3241b263", "score": "0.6340981", "text": "public function toArray()\n {\n return [\n self::TYPE_ANNOUNCEMENT => __('Announcement'),\n self::TYPE_EXTENSION => __('Extensions'),\n self::TYPE_PROMOTION => __('Promotions')\n ];\n }", "title": "" }, { "docid": "7b3cd3b614ec11155e6f1ff819e7d0ed", "score": "0.6327743", "text": "protected function getLocalizedData(): array\n {\n return [];\n }", "title": "" }, { "docid": "e0a35f8e5164917797d6bcad72b7244c", "score": "0.6321912", "text": "private static function getLanguages()\r\n {\r\n $translations = array();\r\n $dirs = new DirectoryIterator(Yii::app()->messages->basePath);\r\n foreach ($dirs as $dir)\r\n if ($dir->isDir() && !$dir->isDot())\r\n $translations[$dir->getFilename()] = $dir->getFilename(); \r\n return in_array(Yii::app()->sourceLanguage, $translations) ? $translations : array_merge($translations, array(Yii::app()->sourceLanguage => Yii::app()->sourceLanguage));\r\n }", "title": "" }, { "docid": "84973b9037eacfe408a551e3bb6af653", "score": "0.6305266", "text": "public function toArray()\n {\n return [\n 'prod' => __('Production'),\n 'dev' => __('Development')\n ];\n }", "title": "" }, { "docid": "b5e413970ca3ef0b50ae2c3a5f2bca64", "score": "0.6302937", "text": "public function loadLang()\n\t{\n\t\tif ($this->trans === NULL)\n\t\t{\n\t\t\t$this->trans = array();\n\t\t\t\n\t\t\tif ( (false !== ($file = file_get_contents($this->path)))\n\t\t\t\t&&(preg_match('/\\\\$lang *= *([^;]+)\\);/i', $file, $match)) )\n\t\t\t{\n\t\t\t\t$this->trans = eval(\"return {$match[1]});\");\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $this->trans;\n\t}", "title": "" }, { "docid": "4ade8a403b5108d7014b02d3d5a14753", "score": "0.629736", "text": "public function getAll(): array\n {\n return array_keys($this->arrLang);\n }", "title": "" }, { "docid": "ca28227f569328e08cfc8b8e6b8d3846", "score": "0.62952185", "text": "private static function populateTextsArray(string $locale): array\n {\n $fallBackTexts = self::loadTexts(self::$fallbackLocale);\n\n $localeTexts = self::loadTexts($locale);\n\n foreach ($localeTexts as $index => $value) {\n $fallBackTexts[$index] = $value;\n }\n\n return $fallBackTexts;\n }", "title": "" }, { "docid": "4460b715527187ff9840b8aa3cd9d6b3", "score": "0.6291705", "text": "public static function getAll(): array\n {\n $countries = new Countries();\n\n return $countries->all()->map(function ($country) use ($countries) {\n $country_name = $countries->where('cca2', $country->cca2)->first()[self::getLang()];\n\n if (!empty($country_name)) {\n return [$country->cca2 => utf8_decode($country_name)];\n }\n })\n ->values()\n ->toArray();\n }", "title": "" }, { "docid": "433939070b60f5c39aa8c8b02f51129f", "score": "0.6278665", "text": "public function getTranslationsIDs()\n {\n return pll_get_post_translations($this->getID());\n }", "title": "" }, { "docid": "a38ec01d005576b79d04e98e3384f91f", "score": "0.62710214", "text": "public function getMissingTranslations(): array {\n return $this->missingTranslations;\n }", "title": "" }, { "docid": "1049979b16b8512a0e3235535daccd78", "score": "0.6264525", "text": "public static function getTranslatableFields()\n {\n return array();\n }", "title": "" }, { "docid": "92f3c5f1934a588fc8c6419c2972a22e", "score": "0.6264102", "text": "public function toArray()\n {\n $this->getDisplay()->getCollection()->getCollection()\n ->each(function ($item) {\n if (!$item->hasTranslation('en') && $item->hasTranslation('ru')) {\n $item->setDefaultLocale('ru');\n }\n });\n }", "title": "" }, { "docid": "77d298411c576daf29c7f0be63771cd0", "score": "0.6242517", "text": "public function fcGetLanguages() \n {\n $aReturn = array();\n $oFcLang = $this->_oFcpoHelper->fcpoGetLang();\n\n foreach ($oFcLang->getLanguageArray() as $oLang) {\n if ($oLang->active == 1) {\n $aReturn[$oLang->oxid] = $oLang->name;\n }\n }\n return $aReturn;\n }", "title": "" }, { "docid": "84274d170e3536555448569b770aa9a0", "score": "0.6240882", "text": "function getLanguages(){\n\t\treturn $this->get(null);\n\t}", "title": "" }, { "docid": "1b03c9fbe97bdb1d01984d51fece0678", "score": "0.6238526", "text": "public function asArray()\n {\n $this->_loadMessages();\n return $this->_messages;\n }", "title": "" }, { "docid": "9c32900cf1bed8ff3f5d3aa440fec0c7", "score": "0.6229722", "text": "public function getAllTranslations($group) {\n return $this->translations[$group];\n }", "title": "" }, { "docid": "62c2767c14a00b700cd875010b57ffc0", "score": "0.62269413", "text": "function getLanguages()\n{\n $framewerk = fMain::getInstance();\n $list = array();\n $temp = $framewerk->configuration->i18n->languages->available->option;\n foreach ( $temp AS $key => $value )\n {\n $list[] = $value;\n }\n return $list;\n}", "title": "" }, { "docid": "19b17708550c91932e5ca772f9afddbc", "score": "0.6217707", "text": "public function languages()\n {\n\n return [\n [\n \"name\" => [\n 'ar' => trans('lang.arabic', [], 'ar'),\n 'en' => trans('lang.arabic', [], 'en')\n ],\n 'locale' => 'ar',\n 'is_default' => 1,\n 'is_rtl' => 1,\n 'is_active' => 1,\n 'icon'=> '/assets/media/flags/008-saudi-arabia.svg'\n ],\n [\n \"name\" => [\n 'ar' => trans('lang.english', [], 'ar'),\n 'en' => trans('lang.english', [], 'en')\n ],\n 'locale' => 'en',\n 'is_default' => 0,\n 'is_rtl' => 0,\n 'is_active' => 1,\n 'icon'=> '/assets/media/flags/020-flag.svg'\n ]\n\n ];\n }", "title": "" }, { "docid": "1bb4060a9ada82a87b5f59999358096b", "score": "0.6171632", "text": "public function getTranslationTemplates()\n {\n $templates = array();\n $template = 'contenttype/' . strtolower($this->getName()) . '_translate_original.tpl';\n if ($this->view->template_exists($template)) {\n $templates['original'] = $template;\n } else {\n $templates['original'] = 'contenttype/blank.tpl';\n }\n $template = 'contenttype/' . strtolower($this->getName()) . '_translate_new.tpl';\n if ($this->view->template_exists($template)) {\n $templates['new'] = $template;\n } else {\n $templates['new'] = 'contenttype/blank.tpl';\n }\n return $templates;\n }", "title": "" }, { "docid": "8acc2d9f8f8ab105ee6e80e5a19eb9d2", "score": "0.61615795", "text": "public function translated()\n\t{\n\t\treturn $this->hasMany(get_called_class(), 'translation_of');\n\t}", "title": "" }, { "docid": "3dd7cc0d2e08e5914ffe1bf8e349f9b6", "score": "0.61395484", "text": "public function getLanguages(): array\n {\n return $this->language;\n }", "title": "" }, { "docid": "b7f992292281aeb30c3b33faa2abe950", "score": "0.61388147", "text": "public function toArray(): array\n {\n return [\n \"text\" => $this->Text,\n \"offset_begin\" => $this->OffsetBegin,\n \"offset_end\" => $this->OffsetEnd,\n \"language_prediction\" => $this->LanguagePredictionResults->toArray()\n ];\n }", "title": "" }, { "docid": "112e1d5b890439fda197a42b117626d2", "score": "0.6137231", "text": "public function getLanguages(): array\n {\n return ['uk', 'ru'];\n }", "title": "" }, { "docid": "bcbae1b3993bd3cd62ac3bfc6b15213e", "score": "0.612798", "text": "public function getLanguages(){\n $languages = array();\n $sql = \"SELECT * FROM languages\";\n $stmt = $this->connect()->query($sql);\n $result = $stmt->fetchAll();\n foreach($result as $row){\n $language = new Languages();\n $language->languageId = $row['languages_id'];\n $language->languageName = $row['languages_name'];\n array_push($languages, $language);\n }\n return $languages;\n }", "title": "" }, { "docid": "928ca6c5d56fe9725f68801145090410", "score": "0.61273396", "text": "protected function getTranslatedData()\n {\n $filePath = $this->getFilePath();\n $xml = $this->file->read($filePath);\n\n $xmlData = $this->parseXml($xml);\n\n return $xmlData;\n }", "title": "" }, { "docid": "6a918670bd626d5fe1c6ef61033b21f1", "score": "0.6106614", "text": "public function get_language_pairs()\n\t{\n\t\t$to_return = array();\n\n\t\t$command = 'cd ' . $this->config['database_dir'] . ';ls *.tmx' ;\n\t\texecuteCommand($command, '', $return_value, $return_status);\n\t\t$tmx_files = explode(\"\\n\", $return_value);\n\n\t\tforeach ($tmx_files as $name) {\n\t\t\tif ($name != '')\n\t\t\t\t$to_return[] = substr($name, 0, strpos($name, '.'));\n\t\t}\n\n\t\treturn $to_return;\n\t}", "title": "" }, { "docid": "65f06ed3fb9c282e22a2310653955b42", "score": "0.61042583", "text": "public function toArray()\n {\n $bindings = $this->getBindings();\n $meta = $this->getMeta();\n \n $message = array(\n $this->getSession(),\n $this->getRequest(),\n ((is_array($meta) && !empty($meta)) ? $meta : new \\stdClass),\n $this->getLanguageName(),\n $this->getScript(),\n ((is_array($bindings) && !empty($bindings)) ? $bindings : new \\stdClass)\n );\n \n return $message;\n }", "title": "" }, { "docid": "725aca4d4b88965bf0b2756b150069cd", "score": "0.61020905", "text": "public function getTranslation()\n {\n return $this->result;\n }", "title": "" }, { "docid": "09ef243058fcad2d9a947b4bf4f409be", "score": "0.6094024", "text": "protected function getTranslationsSourceTestData()\n {\n return array(\n array('bundle#1', 'domain#1', 'locale#1', 'resource#1', 'translation#01'),\n array('bundle#1', 'domain#1', 'locale#1', 'resource#2', 'translation#02'),\n array('bundle#1', 'domain#1', 'locale#2', 'resource#1', 'translation#03'),\n array('bundle#1', 'domain#1', 'locale#2', 'resource#2', 'translation#04'),\n array('bundle#1', 'domain#2', 'locale#1', 'resource#1', 'translation#05'),\n array('bundle#1', 'domain#2', 'locale#2', 'resource#2', 'translation#06'),\n array('bundle#1', 'domain#2', 'locale#1', 'resource#3', 'translation#07'),\n array('bundle#2', 'domain#1', 'locale#1', 'resource#1', 'translation#08'),\n array('bundle#2', 'domain#1', 'locale#2', 'resource#2', 'translation#09'),\n array('bundle#2', 'domain#3', 'locale#1', 'resource#3', 'translation#10'),\n array('bundle#2', 'domain#3', 'locale#2', 'resource#3', 'translation#11'),\n array('bundle#2', 'domain#3', 'locale#3', 'resource#3', 'translation#12'),\n );\n }", "title": "" }, { "docid": "897a08b006d09e2739961dba6aac4193", "score": "0.60935915", "text": "function xtc_get_languages() {\n $languages_query = xtc_db_query(\"SELECT languages_id,\n name,\n code,\n image,\n directory\n FROM \".TABLE_LANGUAGES.\"\n WHERE status_admin = '1'\n ORDER BY sort_order\");\n\n while ($languages = xtc_db_fetch_array($languages_query)) {\n $languages_array[] = array ('id' => $languages['languages_id'],\n 'name' => $languages['name'],\n 'code' => $languages['code'],\n 'image' => $languages['image'],\n 'directory' => $languages['directory']\n );\n }\n return $languages_array;\n }", "title": "" } ]
2e640b2819e0e2483ca2c8015eacce77
Show the application dashboard.
[ { "docid": "c58bb178d5dd154791667366ccbb2813", "score": "0.0", "text": "public function index()\n {\n return view('user_web.search_pr_input');\n // return view('my-search');\n }", "title": "" } ]
[ { "docid": "6ca363f07685b1b797386a6d50b6d019", "score": "0.75147176", "text": "public function showDashboard()\n {\n return View::make('users.dashboard', [\n 'user' => Sentry::getUser(),\n ]);\n }", "title": "" }, { "docid": "b996d9240f711f5adb19e49d08fd67fc", "score": "0.7503827", "text": "public function index()\n {\n\n //GET USER ID from AUTH\n $user_id = Auth::user()->id;\n\n //GET CURRENT USER\n $user = User::find($user_id);\n\n //STATUS\n $status = $user->status;\n\n $applications = Application::where('user_id', $user->id)->get();\n\n //get apps and take user to dashboard\n \n return view('dashboard', compact('applications', 'status')); \n }", "title": "" }, { "docid": "e4f160361f5ffec76c49ef2ed06ddad1", "score": "0.74601996", "text": "public function index()\n\t{\n\t\t$data = array();\n\t\t\n\t\t$this->template\n\t\t\t->title('Dashboard')\n\t\t\t->build('admin/dashboard', $data);\n\t}", "title": "" }, { "docid": "4be1965e2d8f6d6765bde0a21d9427dc", "score": "0.7436689", "text": "public function index()\n {\n return view(\"mbober-admin::dashboard\");\n }", "title": "" }, { "docid": "7c1b5dccf160c1b3c89c1795b8edf2a5", "score": "0.7381381", "text": "public function dashboard()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "20126b0f7e7a05c57f543bbb237b6b38", "score": "0.7357348", "text": "public function actionDashboard()\n {\n $data['dashboardTotals'] = Advisers::get_dashboard_admin();\n $data['coordinators'] = Advisers::getCoordinadores();\n $data['campanasNoAsignadas'] = Advisers::campanas_sin_asignar();\n $data['campanasXclientes'] = [];\n $this->layout = 'layout_dashboad_profile_admin';\n $this->render('dashboard', $data);\n }", "title": "" }, { "docid": "1a8925153d4fdf57b36c041ec5d7a890", "score": "0.7350788", "text": "public function dashboard()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "dd1c58722932c21baed4ca924c2a28f8", "score": "0.7346477", "text": "public function showDashBoard()\n {\n \treturn view('Admins.AdminDashBoard');\n }", "title": "" }, { "docid": "572a01cc7a78e633ff200ad99a1aec37", "score": "0.7326711", "text": "public function index()\n {\n return view('admin.dashboard', ['title' => 'Dashboard']);\n }", "title": "" }, { "docid": "33b6803765d3413f8b109213b08a6ac3", "score": "0.7316215", "text": "public function dashboard() \r\n {\r\n return view('admin.index');\r\n }", "title": "" }, { "docid": "0baf9d369e486c41890395b35bda251e", "score": "0.7312567", "text": "public function dashboard()\n\t{\n\t\treturn view('Admin_dashboard.dashboard_layout');\n\t}", "title": "" }, { "docid": "85bbb161a101a795a1694b0a4dc8a8a8", "score": "0.73072463", "text": "public function dashboard()\n\t{\n\t\t$page_title = 'organizer dashboard';\n\t\treturn View::make('organizer.dashboard',compact('page_title'));\n\t}", "title": "" }, { "docid": "5c5f5c4d063143e0572107cb2f1fd42c", "score": "0.7287626", "text": "public function dashboard()\n {\n\t\t$traffic = TrafficService::getTraffic();\n\t\t$devices = TrafficService::getDevices();\n\t\t$browsers = TrafficService::getBrowsers();\n\t\t$status = OrderService::getStatus();\n\t\t$orders = OrderService::getOrder();\n\t\t$users = UserService::getTotal();\n\t\t$products = ProductService::getProducts();\n\t\t$views = ProductService::getViewed();\n\t\t$total_view = ProductService::getTotalView();\n\t\t$cashbook = CashbookService::getAccount();\n $stock = StockService::getStock();\n\n return view('backend.dashboard', compact('traffic', 'devices', 'browsers', 'status', 'orders', 'users', 'products', 'views', 'total_view', 'cashbook', 'stock'));\n }", "title": "" }, { "docid": "0a7d7f34ccb23c06f16ec5d29958081d", "score": "0.72826403", "text": "public function dashboard()\n {\n\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "979df6f8245a87c8084d6a419248f035", "score": "0.727347", "text": "public function dashboard()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "979df6f8245a87c8084d6a419248f035", "score": "0.727347", "text": "public function dashboard()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "979df6f8245a87c8084d6a419248f035", "score": "0.727347", "text": "public function dashboard()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "979df6f8245a87c8084d6a419248f035", "score": "0.727347", "text": "public function dashboard()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "979df6f8245a87c8084d6a419248f035", "score": "0.727347", "text": "public function dashboard()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "8cd0a13f3368c82f274273b3a5634a62", "score": "0.7251768", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "9a8895c8d16938e252d378911c16e538", "score": "0.7249155", "text": "public function index()\n\t{\n\t\treturn view('sanatorium/dashboards::dashboards.index');\n\t}", "title": "" }, { "docid": "eec112d88fa45423422bd62ba78455f7", "score": "0.7241342", "text": "public function index()\n {\n return view('adm.dashboard');\n }", "title": "" }, { "docid": "07677c91c06fb8b57e695e3780a0ed43", "score": "0.7235562", "text": "public function show()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "170c8bf6de673492828f0205cea49285", "score": "0.7235519", "text": "public function index()\n {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "0864e36c5e3718d97ca20a891926e55e", "score": "0.72071123", "text": "public function index() {\n\t\t$this->dashboard();\n\t}", "title": "" }, { "docid": "0864e36c5e3718d97ca20a891926e55e", "score": "0.72071123", "text": "public function index() {\n\t\t$this->dashboard();\n\t}", "title": "" }, { "docid": "de280eb71f9d853a6bf22ee3821deaa6", "score": "0.71989936", "text": "public function index() {\n return view('modules.home.dashboard');\n }", "title": "" }, { "docid": "97dda8eae48a2e526ac848d1bda32d1f", "score": "0.7197427", "text": "public function show()\n {\n return view('dashboard.dashboard');\n \n }", "title": "" }, { "docid": "6be9f228685ce6fdeb0759b9a817c00d", "score": "0.71913266", "text": "public function index()\n {\n return view('admin.dashboard.dashboard');\n\n }", "title": "" }, { "docid": "b88c0a9468d221b6b7183a454eceffd5", "score": "0.717969", "text": "public function index()\n {\n $packages = VibrantTools::get_vibrant_packages('backend', true);\n return view('vibrant::modules.dashboard.dashboard')->with(compact('packages'));\n }", "title": "" }, { "docid": "64888dc6dd659cb1029f72d6c60ca06f", "score": "0.71790016", "text": "public function dashboard()\n { \n return view('jobposter.dashboard');\n }", "title": "" }, { "docid": "c84cc86b718b2a1a5148e086405d4ba5", "score": "0.71684825", "text": "public function show()\n\t{\n\t\t//\n\t\t$apps = \\App\\application::all();\n\t\treturn view('applications.view', compact('apps'));\n\t}", "title": "" }, { "docid": "86e7903b433e6ae3ffa9c2222bfb7b67", "score": "0.71631765", "text": "public function index()\n\t{\n\n\t\treturn view('dashboard');\n\t}", "title": "" }, { "docid": "6ab8df0b0682c1366273ee1a9fe7ad24", "score": "0.7160822", "text": "public function index()\n {\n return view(\"studio.dashboard\");\n }", "title": "" }, { "docid": "e2de8e0dd9ab000633e243626cc45046", "score": "0.71503055", "text": "public function index(){\n return view('client.dashboard.index');\n }", "title": "" }, { "docid": "52ddeb03572361410e81d3460a9bfe57", "score": "0.7146797", "text": "public function indexAction()\n {\n $dashboard = $this->getDashboard();\n\n return $this->render('ESNDashboardBundle::index.html.twig', array(\n 'title' => \"Dashboard\"\n ));\n }", "title": "" }, { "docid": "dc50af2aef83e99d7a83c50f03b72521", "score": "0.7132746", "text": "public function index()\n {\n return view('admin.dashboard.index');\n }", "title": "" }, { "docid": "5eca04c3749a0e4bafeb08f4ebca8e57", "score": "0.71249074", "text": "public function index()\n {\n // return component view('dashboard.index');\n return view('layouts.admin_master');\n }", "title": "" }, { "docid": "a2500c1352afb9bf13101524781b97c3", "score": "0.71218014", "text": "public function index()\n {\n\n $no_of_apps = UploadApp::count();\n $no_of_analysis_done = UploadApp::where('isAnalyzed', '1')->count();\n $no_of_visible_apps = AnalysisResult::where('isVisible', '1')->count();\n\n return view('admin.dashboard', compact('no_of_apps', 'no_of_analysis_done', 'no_of_visible_apps'));\n }", "title": "" }, { "docid": "61eae6c796370ac8612e77dd2b70a14f", "score": "0.71170413", "text": "public function getDashboard() {\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "111cd1f21f2b70892ceca83a3b0f2d99", "score": "0.7107029", "text": "public function dashboard() {\n $data = ['title' => 'Dashboard'];\n return view('pages.admin.dashboard', $data)->with([\n 'users' => $this->users,\n 'num_services' => Service::count(),\n 'num_products' => Product::count(),\n ]);\n }", "title": "" }, { "docid": "0ff31c767f948f8eb9ab9c7a67c408b9", "score": "0.70935637", "text": "public function dashboard()\n {\n return view('student.template.home');\n }", "title": "" }, { "docid": "e9e333d30b0a5fbbd74d7ac86380e64f", "score": "0.7088498", "text": "public function index()\n {\n return view('admin/dashboard');\n }", "title": "" }, { "docid": "38b41688951d0db23a22fb3508eccc5c", "score": "0.7081685", "text": "public function index() {\n $this->tplVars = $this->tplVars + [\n 'page_title' => $this->pageTitle\n ];\n \n //affichage\n \\Renderer::showAdmin(\"dashboard\",$this->tplVars);\n \n }", "title": "" }, { "docid": "07d52f7b1ea4ee50c7592fe576ea896b", "score": "0.708061", "text": "public function index()\n {\n return view('admin::settings.development.dashboard');\n }", "title": "" }, { "docid": "07d52f7b1ea4ee50c7592fe576ea896b", "score": "0.708061", "text": "public function index()\n {\n return view('admin::settings.development.dashboard');\n }", "title": "" }, { "docid": "1f38fc7d872c262628f3f0107ddb2501", "score": "0.70773643", "text": "public function dashboard()\n {\n $this->middleware('auth:admin');\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "7c62fe1f03fd48ba49ec4ac57acd9963", "score": "0.7075653", "text": "public function index()\n {\n return view('dashboard.dashboard');\n }", "title": "" }, { "docid": "c9e82b04a5cffddf30be74e089a4641e", "score": "0.70751685", "text": "public function show()\n {\n return view('dashboard::show');\n }", "title": "" }, { "docid": "bb7b6e579d9f60770094dbdec8f74217", "score": "0.7068705", "text": "public function index()\n {\n return view('layouts.admin')->with('dashboard_content', 'dashboards.admin.pages.home');\n }", "title": "" }, { "docid": "10d657e45e11a73ab81e1713a80978b3", "score": "0.70551085", "text": "public function index()\n {\n return view('dashboard', [\n 'page' => 'dashboard',\n 'pv' => $this->getPrioritizedVanalability(),\n 'heapMap' => $this->getHeapMap(),\n 'affteced_vendors' => $this->afftecedVendors()\n ]);\n }", "title": "" }, { "docid": "6596820b3e732832450690d996db27b0", "score": "0.70550084", "text": "public function dashboard(){\n return view('Admin.dashboard');\n }", "title": "" }, { "docid": "b2e66dbfb26fa2510d672cbb76a44c10", "score": "0.7053246", "text": "public static function dashboard() {\n\n LoggerHelper::log('DASHBOARD', trans('logs.msg.dashboard'));\n }", "title": "" }, { "docid": "3117d94bf9925c9d93a0e4ea862d6a95", "score": "0.7043605", "text": "public function index()\n { \n return view('admin-views.dashboard');\n }", "title": "" }, { "docid": "8043e6822834854fdd3f31af76d3ca8d", "score": "0.70401806", "text": "public function index()\n {\n $data = $this->dashboardRepository->GetData();\n return view('dashboard.index', $data);\n }", "title": "" }, { "docid": "db68bc26c375facb0c385bd915338d84", "score": "0.70393986", "text": "public function getDashboard()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "0c4ec303804e59bb6c00128154470515", "score": "0.70197886", "text": "function showDashboard()\n { \n $logeado = $this->checkCredentials();\n if ($logeado==true)\n $this->view->ShowDashboard();\n else\n $this->view->showLogin();\n }", "title": "" }, { "docid": "ac048fb69071d046c75e92b736a8032d", "score": "0.70190316", "text": "public function home()\n {\n return view('Espace_Admin.dashboard');\n }", "title": "" }, { "docid": "f31ad0d1b788b200758e4a29c3d1aa9c", "score": "0.70185125", "text": "public function index()\n { \n $params['crumbs'] = 'Home';\n $params['active'] = 'home';\n \n return view('admin.dashboard.index', $params);\n }", "title": "" }, { "docid": "f04045b88470c98bd7bb7c37e2c7c091", "score": "0.7014912", "text": "public function getDashboard()\n\t{\n\t\t$this->helpers->setPageTitle('Dashboard');\n\n\t\treturn $this->view->make('larapress::pages.cp.dashboard');\n\t}", "title": "" }, { "docid": "7c16e32b9d9db71b1e7bbfdc769d011c", "score": "0.70139873", "text": "public function index()\n\t{\n\t\treturn view::make('customer_panel.dashboard');\n\t}", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "2b20a4e25b8ca061cf7d21e2b79bddc2", "score": "0.700917", "text": "public function index()\n {\n return view('dashboard');\n }", "title": "" }, { "docid": "9cbc1dee01ddc9d7811e0ba1e9baa698", "score": "0.6993952", "text": "function admindashboard() {\n $this->loadViews(\"admin-dashboard\", $this->global);\n }", "title": "" }, { "docid": "7fff9c47aadce83afc45ba921a3beca4", "score": "0.6983825", "text": "public function index()\n\t{\n\t\treturn View::make('pages.dashboard')->with('pageinfo', self::$pageinfo);\n\t}", "title": "" }, { "docid": "f12a63ce7853b6dc828657ef222c7ddf", "score": "0.6982444", "text": "public function indexAction()\n {\n $this->loadDashboard();\n return;\n }", "title": "" }, { "docid": "e2aadb15104199f3f5503dcc6999456d", "score": "0.69810367", "text": "public function index()\n {\n return view('pemeriksa.dashboard');\n }", "title": "" }, { "docid": "bdc3c91e624fcd10d692ec797ca3a15d", "score": "0.69776684", "text": "public function index()\n {\n $users = User::count();\n\n $workers = Worker::where('type', 'internal')->count();\n\n $outsource = Worker::where('type', 'external')->count();\n\n $customers = Customer::count();\n\n $widget = [\n 'users' => $users,\n 'customers' => $customers,\n 'workers' => $workers,\n 'outsources' => $outsource\n ];\n\n return view('admin.dashboard', compact('widget'));\n }", "title": "" }, { "docid": "dc41ce6f45347c107a8831c7eb795185", "score": "0.69741416", "text": "public function index() {\n return view('dashboard', []);\n }", "title": "" }, { "docid": "58a304c7b0ec63755342e2693b5f4bbf", "score": "0.6968815", "text": "public function index()\n {\n return view('back-end.dashboard.index');\n //\n }", "title": "" }, { "docid": "056e97ec46471848aa31ad48e07a6f89", "score": "0.6968294", "text": "public function index()\n\t{\n\t\t\n\t\t$data = array(\n\t\t\t'title' => 'Administrator Apps With Laravel',\n\t\t);\n\n\t\treturn View::make('panel/index',$data);\n\t}", "title": "" }, { "docid": "3ebc2b4f51f015764f2c12c0fa301b9b", "score": "0.69586027", "text": "public function index()\n {\n\n return view('dashboard');\n }", "title": "" }, { "docid": "b1bc9e66748e1ce3a6e08d92486fbadf", "score": "0.6953351", "text": "public function index()\n {\n $dashboard = true;\n $count = [\n 'products' => \\App\\Models\\Product::all()->count(),\n 'customProducts' => \\App\\Models\\CustomProduct::all()->count(),\n ];\n $sliders = \\App\\Models\\Slider::orderBy('order', 'asc')->get();\n $products = \\App\\Models\\Product::orderBy('created_at', 'desc')->take(5)->get();\n $customProducts = \\App\\Models\\CustomProduct::orderBy('new', 'desc')->take(5)->get();\n return view('admin.dashboard', compact('dashboard', 'sliders', 'count', 'products', 'customProducts'));\n }", "title": "" }, { "docid": "38295d33a0573422f88ee12bb5c31724", "score": "0.6941439", "text": "public function display()\n\t{\n\t\t// Set a default view if none exists.\n\t\tif (!JRequest::getCmd( 'view' ) ) {\n\t\t\tJRequest::setVar( 'view', 'dashboard' );\n\t\t}\n\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "72c899cfcc22666e86f08a40d45d4219", "score": "0.6938837", "text": "public function index()\n {\n $news = News::all();\n $posts = Post::all();\n $events = Event::all();\n $resources = Resources::all();\n $admin = Admin::orderBy('id', 'desc')->get();\n return view('Backend/dashboard', compact('admin', 'news', 'posts', 'events', 'resources'));\n }", "title": "" }, { "docid": "01c798aad909315846e6bd472a26180f", "score": "0.6937524", "text": "public function index()\n {\n\n return view('superAdmin.adminDashboard')->with('admin',Admininfo::all());\n\n }", "title": "" }, { "docid": "2b5593b4af9be225b5166a23d9f3d08e", "score": "0.6937456", "text": "public function index()\n {\n return view('dashboard.index');\n }", "title": "" }, { "docid": "2b5593b4af9be225b5166a23d9f3d08e", "score": "0.6937456", "text": "public function index()\n {\n return view('dashboard.index');\n }", "title": "" }, { "docid": "bf7558a7b5b06153401330a223d006c7", "score": "0.6935287", "text": "public function index()\n {\n\n return view('admin.dashboard');\n }", "title": "" }, { "docid": "b2a971d0b4fb5cffdb8f5c946e729fcd", "score": "0.69276494", "text": "public function index()\n {\n $this->template->set('title', 'Dashboard');\n $this->template->load('admin', 'contents' , 'admin/dashboard/index', array());\n }", "title": "" }, { "docid": "922451fb6aecee980204982f6f19adc0", "score": "0.6923569", "text": "public function index()\n {\n return view('tecCard.dashboard');\n }", "title": "" }, { "docid": "d9465a826d2e1cfbc11bb14c61dad870", "score": "0.6921651", "text": "public function index()\n {\n return view('/dashboard');\n }", "title": "" }, { "docid": "3ad9c9aa5b812f8d2de51f71c4f11496", "score": "0.69074917", "text": "public function index()\n {\n \treturn view('dashboard');\n }", "title": "" }, { "docid": "614f95d18d05c465ca1fe75dd049502b", "score": "0.6906208", "text": "public function index() : object\n {\n return view('dashboard.index');\n }", "title": "" }, { "docid": "1e2a1b1071b3223fbc25a29f11515ede", "score": "0.69062036", "text": "public function index()\n { \n return view('admin.dashboard');\n }", "title": "" }, { "docid": "5195827794be53d05a2d42516f683a8f", "score": "0.69032675", "text": "function dashboard()\n\t{\n\t\t// Save Menu\n\t\t$this->events->add_filter( 'admin_menus', array( $this, 'create_menus' ) );\n\t\t// Register Page\n\t\t$this->Gui->register_page( 'menu_builder', \tarray( $this, 'menu_builder_controller' ) );\n\t}", "title": "" }, { "docid": "658d2f5ba7785e7995a6291da73819fc", "score": "0.6894836", "text": "public function index() {\n\n // Add page stylesheets\n XCMS_Page::getInstance()->addStylesheet(array(\n \"assets/css/backend/mng_dashboard.css\"\n ));\n\n // Add page stylesheets\n XCMS_Page::getInstance()->addScript(array(\n \"assets/scripts/backend/mng_dashboard.js\"\n ));\n\n $this->load->view(\"dashboard.tpl\", array(\n \"cacheSize\" => formatBytes(getDirectorySize(XCMS_CONFIG::get(\"FOLDER_CACHE\")), 0),\n \"logSize\" => formatBytes(getDirectorySize(XCMS_CONFIG::get(\"FOLDER_LOGS\")), 0)\n ));\n\n }", "title": "" }, { "docid": "c29ae862edc655716b800196553b9de7", "score": "0.68922836", "text": "public function clientDashboard()\n {\n return view('clientuser.dashboard');\n }", "title": "" }, { "docid": "4721631599f0740d7a2b3b6cc23d2ad8", "score": "0.68902075", "text": "public function index()\n {\n\n return view('dashboard.dashboard');\n }", "title": "" }, { "docid": "86f89b60098868c27d89d70c72ffe049", "score": "0.6881129", "text": "public function dashboard()\n {\n return view('content.content-dashboard');\n }", "title": "" }, { "docid": "53048283716bb8337e5e70c34bd6b4dc", "score": "0.6880131", "text": "public function dashboard()\n {\n if(Auth::user()->isAdmin()) {\n return view('admin.dashboard');\n } else {\n return 'Vous etes pas admin';\n }\n }", "title": "" }, { "docid": "3deb098dcca1d7bd9482b11c002bc480", "score": "0.686915", "text": "public function index()\n {\n return view('/dashboard/index');\n }", "title": "" }, { "docid": "20029478a2150db9aba3ddfaf7986e54", "score": "0.6858411", "text": "public function index()\n {\n $user = User::find(Sentry::getUser()->id)->load(\n array(\n 'episodeLinkRequests.episode.show',\n 'episodeLinks.episode.show',\n 'favourites.episode.show',\n 'watchlist.episode.show',\n 'favouriteShows.show',\n 'watchlistShow.show',\n 'watched.episode.show',\n 'watchedShow.show'\n )\n );\n return View::make('users.dashboard' , compact('user'));\n }", "title": "" }, { "docid": "f5838755aa909b6aa2a2ba61b7c5332a", "score": "0.68479055", "text": "public function index()\n {\n return view('dashboard.home');\n }", "title": "" }, { "docid": "55c0bbf8fa0cf56eff7cf67c0ae30ea8", "score": "0.6844151", "text": "public function show()\n {\n return view('barber.barber-dashboard');\n }", "title": "" }, { "docid": "f374d9f561f51446548bde73327a7974", "score": "0.6838798", "text": "public function index()\n {\n $userinfo=User::all();\n $gateinfo=GateEntry::all();\n $yarninfo=YarnStore::all();\n $greyinfo=GreyFabric::all();\n $finishinfo=FinishFabric::all();\n $dyesinfo=DyeChemical::all();\n return view('dashboard',compact('userinfo','gateinfo','yarninfo','greyinfo','finishinfo','dyesinfo'));\n }", "title": "" } ]
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "04ffa19f6a78705e58836a325a2410c8", "score": "0.0", "text": "public function index()\n {\t$ubicaciones = Location::where('estado','ACTIVO')->get();\n\t\t$str_random = array (rand(0,30000),rand(0,30000),rand(0,30000));\n\t\treturn view('pages.configuracion.form_ubicacion',compact('str_random','ubicaciones'));\n }", "title": "" } ]
[ { "docid": "e0431810d4174a040ced0b019ba49225", "score": "0.7668014", "text": "public function index() {\n\t\t\t$this->listing();\n\t\t}", "title": "" }, { "docid": "852d65a985959b16c59e7c705d111b03", "score": "0.7342188", "text": "public function index()\n\t{\n\t\t// Require user to be logged in.\n\t\t$this->requireLoggedIn();\n\n\t\t$this->listing();\n\t}", "title": "" }, { "docid": "ac1d234cb439f96c04a246dcabf5f14f", "score": "0.7284219", "text": "public function index() {\n $this->_list();\n }", "title": "" }, { "docid": "223999e9a02d01dc0cad36705dec31b1", "score": "0.72478926", "text": "public function actionList() {\n $this->_getList();\n }", "title": "" }, { "docid": "b6a5ca1df2d5a43bd0318ff90e9ff1ed", "score": "0.7131636", "text": "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "title": "" }, { "docid": "9bf7e75f2259ae0a13c89c5d541e3e3f", "score": "0.70691645", "text": "public function actionListing()\n {\n $ratingDP = new ActiveDataProvider([\n 'query' => Rating::find()->orderBy('id DESC'),\n ]);\n\n return $this->render('listing', array(\n 'ratingDP' => $ratingDP\n ));\n }", "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": "5412f0b9b053fcd0929c40d71994403a", "score": "0.69773793", "text": "public function index()\n {\n try {\n $resources = Resource::all();\n return $this->showAll($resources);\n } catch (Exception $ex) {\n return $this->errorResponse(\"Danh sách trống!\", Response::HTTP_INTERNAL_SERVER_ERROR);\n }\n }", "title": "" }, { "docid": "eea4376f91e58ba7ea61ad453ac2e499", "score": "0.6974024", "text": "public function index()\n {\n $model = $this->getModel();\n if(\\method_exists($model, 'getData')){\n $model = $model->getData();\n }\n return $this->getResource()::collection($model->paginate());\n }", "title": "" }, { "docid": "c66edef3aa16d000db861f83db19a852", "score": "0.69661695", "text": "public function indexAction ()\r\n {\r\n $this->render(\"list\");\r\n }", "title": "" }, { "docid": "e2492059e332634b90e1b739a942215b", "score": "0.69411826", "text": "public function index()\n {\n return view('admin.listing');\n }", "title": "" }, { "docid": "ba32632e29f18b2bf877cc90eaa90971", "score": "0.6900203", "text": "public function actionRestList() {\n\t $this->doRestList();\n\t}", "title": "" }, { "docid": "cbc2f6f0039706d1ede6b809aad8c23e", "score": "0.6894162", "text": "public function index()\n\t{\n\t\t//\n\t\t$this->getlist();\n\t\n\t}", "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": "efde97fbf9254ea0e2b2b7023e05101a", "score": "0.68546814", "text": "public function indexAction()\n {\n\t\tif(!Engine_Api::_()->core()->hasSubject('list_listing')) {\n\t\t\treturn $this->setNoRender();\n\t\t}\n\n\t\t//GET LISTING SUBJECT\n\t\t$subject = Engine_Api::_()->core()->getSubject();\n\n\t\t//GET VARIOUS WIDGET SETTINGS\n\t\t$this->view->statisticsRating = (int) Engine_Api::_()->getApi('settings', 'core')->getSetting('list.rating', 1);\n\t\t$this->view->truncation = $this->_getParam('truncation', 23);\n\t\t$related = $this->_getParam('related', 'categories');\n\n\t\t$params = array();\n\n\t\tIf($related == 'tags') {\n\n\t\t\t//GET TAGS\n\t\t\t$listingTags = $subject->tags()->getTagMaps();\n\n\t\t\t$params['tags'] = array();\n\t\t\tforeach ($listingTags as $tag) {\n\t\t\t\t$params['tags'][] = $tag->getTag()->tag_id;\n\t\t\t}\n\n\t\t\tif(empty($params['tags'])) {\n\t\t\t\treturn $this->setNoRender();\n\t\t\t}\n\n\t\t}\n\t\telseif($related == 'categories') {\n\t\t\t$params['category_id'] = $subject->category_id;\n\t\t}\n\t\telse {\n\t\t\treturn $this->setNoRender();\n\t\t}\n\n //FETCH LISTINGS\n\t\t$params['listing_id'] = $subject->listing_id;\n $params['orderby'] ='RAND()';\n $params['limit'] = $this->_getParam('itemCount', 3);\n $this->view->paginator = Engine_Api::_()->getDbtable('listings', 'list')->widgetListingsData($params);\n\n if (Count($this->view->paginator) <= 0) {\n return $this->setNoRender();\n }\n }", "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": "248744b37e08a9b9e31438a427fee7ee", "score": "0.68331116", "text": "public function index()\n {\n $module = Module::get('Resources');\n \n if(Module::hasAccess($module->id)) {\n return View('la.resources.index', [\n 'show_actions' => $this->show_action,\n 'listing_cols' => Module::getListingColumns('Resources'),\n 'module' => $module\n ]);\n } else {\n return redirect(config('laraadmin.adminRoute') . \"/\");\n }\n }", "title": "" }, { "docid": "954a21a94c60b4569f28c882641e7298", "score": "0.68295634", "text": "public function index()\n {\n return view('admin.resources.index', [\n 'resources' => Resource::published()->get()\n ]);\n }", "title": "" }, { "docid": "f29709817ec3db2d44ad77fdc0a55269", "score": "0.6829548", "text": "public function _index()\n\t{\n\t\t$this->_list();\n\t}", "title": "" }, { "docid": "b27b06ba87e23efaf02018ba6a48d4b4", "score": "0.68071634", "text": "public function index()\n {\n /// Get cars\n $cars = Car::paginate();\n\n // Return collection of articles as a resource\n return CarResource::collection($cars);\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": "ecd287988f4b7da6fd1ee3a4ce0dbbb4", "score": "0.6772568", "text": "public function index()\n {\n $tickets = TicketsModel::paginate(10);\n\n //passing data to resource\n return TicketsResource::collection($tickets);\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": "02210f90da67beef15ab156f23ec7b92", "score": "0.67392254", "text": "public function actionList()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Records::find(),\n 'pagination' =>\n [\n 'pageSize' => $this->recordsPerAdminPage,\n ]\n ]);\n\n return $this->render('list', [\n 'dataProvider' => $dataProvider,\n ]);\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": "c9be2a11e7166305691684d329c6df24", "score": "0.6722829", "text": "public function index()\n {\n // Get books\n $books = Book::paginate(10);\n\n // Return collection of articles as a resource\n return BookResource::collection($books);\n }", "title": "" }, { "docid": "465ee43697fce30b312a8f52108bb059", "score": "0.6708992", "text": "public function listAction ( )\n {\n $model = $this->getModel('Scale');\n $request = $this->getRequest();\n\n $this->view->items = $model->paginate($request->getParams());\n\n }", "title": "" }, { "docid": "5370c2b221a0c31116fb4369ab9f4812", "score": "0.66993403", "text": "public function actionIndex()\n {\n // init Active Record\n $query = new ProfileRecords();\n\n // set current page and offset\n $page = (int)$this->request->query->get('page');\n $offset = $page * self::ITEM_PER_PAGE;\n\n // build pagination\n $pagination = new SimplePagination([\n 'url' => ['profile/index'],\n 'page' => $page,\n 'step' => self::ITEM_PER_PAGE,\n 'total' => $query->count()\n ]);\n\n // build listing objects\n $records = $query->orderBy('id', 'desc')->skip($offset)->take(self::ITEM_PER_PAGE)->get();\n\n // display viewer\n return $this->view->render('index', [\n 'records' => $records,\n 'pagination' => $pagination\n ]);\n }", "title": "" }, { "docid": "8ef47c1c1fcc1e28c5a1e9eb8583d7e7", "score": "0.6694303", "text": "public function _list()\n\t{\n\t\t_root::getRequest()->setAction('list');\n\n\t\t$oTitleModel = new model_title();\n\t\t$tTitles = $oTitleModel->findAll();\n\n\t\t$oView = new _view('titles::list');\n\t\t$oView->tTitles = $tTitles;\n\n\t\t$this->oLayout->add('work', $oView);\n\t}", "title": "" }, { "docid": "cd9c5c4bfebd4034e9aab606b543d95a", "score": "0.66892284", "text": "public function index()\n {\n $todos = Todo::paginate(50);\n return TodosResource::collection($todos);\n }", "title": "" }, { "docid": "5509d28122c561e86197cbcc735e8008", "score": "0.6688171", "text": "public function index()\n {\n $products = Product::filter()->paginate();\n\n return ProductResource::collection($products);\n }", "title": "" }, { "docid": "712af5c8b3ebcbb93ccacf71c37b0d64", "score": "0.66876715", "text": "public function index()\n {\n return ResourceResource::collection(auth()->user()->resources);\n }", "title": "" }, { "docid": "4749d27d60b7528b95f66725757fb6f5", "score": "0.66763073", "text": "public function listAction()\n {\n $tags = $this->getTags();\n $this->view->assign('tags', $tags);\n }", "title": "" }, { "docid": "93be7d845843229d41c071ba88255d72", "score": "0.6676262", "text": "public function listAction()\n {\n $userService = new Core_Service_UserApi();\n $this->view->users = $userService->fetchUsers();\n $this->view->pageTitle = $this->view->translate('USERS_TITLE');\n }", "title": "" }, { "docid": "148383f68d3328f7ff820d3aa26f22ff", "score": "0.6669373", "text": "public function indexAction()\n\t{\n\t\t$this->_view->_title \t\t\t\t= ucfirst($this->_arrParam['controller']) . \" Controller :: List\";\n\n\t\t//Total Items\n\t\t$this->_view->itemsStatusCount \t\t= $this->_model->countItems($this->_arrParam, ['task' => 'count-items-status']);\n\t\t$itemCount \t\t\t\t\t\t\t= $this->_model->countItems($this->_arrParam, ['task' => 'count-items-status']);\n\t\t$configPagination \t\t\t\t\t= ['totalItemsPerPage' => 5, 'pageRange' => 3];\n\t\t$this->setPagination($configPagination);\n\t\t$status \t\t\t\t\t\t\t= $this->_arrParam['status'] ?? 'all';\n\t\t$this->_view->pagination \t\t\t= new Pagination($itemCount[$status], $this->_pagination);\n\n\t\t//List Items\n\t\t$this->_view->items \t\t\t\t= $this->_model->listItems($this->_arrParam);\n\t\t$this->_view->slbCategory \t\t\t\t= [0 => ' - Select Category - '] + $this->_model->itemInSelectbox($this->_arrParam, null);\n\t\t$this->_view->render($this->_arrParam['controller'] . '/index');\n\t}", "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": "6f42cd3476241a88f34e457a523248c3", "score": "0.6664147", "text": "public function index()\n {\n // Get flight list from DB\n $flight = Flight::orderBy('flight_number', 'asc')->paginate(20);\n // Return collection of airports as a resource\n return FlightResource::collection($flight); \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": "50f00ab8e31c26165779f77d407ba147", "score": "0.6656656", "text": "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "title": "" }, { "docid": "0e3a54a39646333a6d375a7c945db124", "score": "0.6655571", "text": "public function listAction()\n {\n $user = $this->getUser();\n $em = $this->getDoctrine()->getManager();\n $films = $em->getRepository(Film::class)\n ->findAll();\n return $this->render('admin/listFilm.html.twig', [\n 'films' => $films,\n 'user' => $user\n ]);\n }", "title": "" }, { "docid": "14b2ffd8b6bd095e1ee08082a4773bd5", "score": "0.664164", "text": "public function index()\n {\n return WidgetResource::collection(Widget::paginate());\n }", "title": "" }, { "docid": "4066b4da28340cedbf7b1e2a765a4d30", "score": "0.66214174", "text": "public function listing()\n {\n $offers_per_page = 32;\n // On récupère le nombre de figurines\n $offers_number = $this->Offers->count();\n // On calcule le nombre de page\n $pages_number = ceil($offers_number / $offers_per_page);\n // On récupère la page courante\n if(isset($_GET['p'])) {\n $current_page = intval($_GET['p']);\n if($current_page > $pages_number) {\n $current_page = 1;\n }\n } else {\n $current_page = 1;\n }\n // On calcule la première entrée à récupérer\n $first_entry = ($current_page - 1) * $offers_per_page;\n // On récupère la liste des annonces\n $offers_list = $this->Offers->some($first_entry, $offers_per_page);\n // Préparation de la page\n $page = new Page(array(\n 'title' => 'Annonces',\n 'class_body' => 'offers'\n ));\n // Rendu du contenu\n $variables = compact(\n 'offers_list',\n 'offers_number',\n 'current_page',\n 'pages_number'\n );\n $content = $this->render('admin/offers/listing.php', $variables);\n // Rendu de la page\n echo $page->render($content);\n\n // On vide les données qu'on ne veut pas réafficher si on actualise la page\n unset($_SESSION['error']);\n unset($_SESSION['success']);\n }", "title": "" }, { "docid": "2564823d78cf46605ebc641dd521408d", "score": "0.6619503", "text": "public function listAction() {\n $this->_datatable();\n return $this->render('BackendBundle:FeastStage:list.html.twig');\n }", "title": "" }, { "docid": "58b5055aa7766919560eac36f68c1db2", "score": "0.66185474", "text": "public function view(){\n\t\t$this->buildListing();\n\t}", "title": "" }, { "docid": "8c4ed8db0ad6047e7410b0271d18bf81", "score": "0.661068", "text": "public function index()\n {\n return $this->service->fetchResources(Book::class, '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": "4b3a4c5b0e9a975144213d22dfff3839", "score": "0.6604158", "text": "public function index()\n {\n $query = Product::getList(request('filter', ''))\n ->orderBy(request('order_by','s_ProductName'),request('order','ASC'));\n \n return ProductResource::collection($query->paginate(request('per_page', 100)));\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": "f5e1ccf327188ca3d2fd5f7a1f3277c1", "score": "0.6596873", "text": "public function index_get() {\n $action = $this->get('action');\n switch ($action) {\n case \"list\":\n $this->list1();\n break;\n case \"retrieve\":\n $this->set_response(\"retrieve\", REST_Controller::HTTP_OK);\n break;\n default:\n $this->not_found();\n break;\n }\n }", "title": "" }, { "docid": "b96fcd6a69c1e3403c9ae8bd822a3910", "score": "0.6592414", "text": "public function index()\n {\n // Get all assets\n $assets = Asset::paginate(15);\n // Return collection of assets as a resource\n return AssetResource::collection($assets);\n }", "title": "" }, { "docid": "ffa4ab9d8165639a117e4bc3980fc30d", "score": "0.6590207", "text": "public function index()\n {\n //\n // $authors= Author::all();\n $authors = QueryBuilder::for(Author::class)->allowedSorts([\n 'name',\n 'created_at'\n ])->jsonPaginate();\n return AuthorsResource::collection($authors);\n }", "title": "" }, { "docid": "74d4617df84723cff26f33e255390482", "score": "0.65881836", "text": "public function actionIndex()\n {\n $items = ModelGeneral::showItems();\n\n $this->view->render('index', [\n 'items' => $items\n ]);\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": "0221833762d40c420a048045edcecf8f", "score": "0.6586874", "text": "public function actionList()\n {\n $searchModel = new RecipeRepository();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render([\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "fb55b34f40f8931a10a91283716c2912", "score": "0.6586714", "text": "public function index()\n {\n return ListItem::all();\n }", "title": "" }, { "docid": "d387ade88ed7ada9aa0979d5a0c09bee", "score": "0.6585575", "text": "public function index()\n {\n return ProductResource::collection(Product::paginate());\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": "34c7660459cd4da39347c5a18236bb4d", "score": "0.65721947", "text": "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "title": "" }, { "docid": "c6615d7e9302e878e3f32e0cacbe1eaa", "score": "0.65656126", "text": "public function indexAction()\n {\n\t\tif($this->rest[7] == 1) {\n\t\t\t$this->view->headTitle()->prepend('Playlists');\n\t\t\t$playlist = new Application_Model_Playlist;\n\t\t\t$playlistMapper = new Application_Model_PlaylistMapper;\n\t\t\t\n\t\t\t// check for delete action\n\t\t\tif($this->_request->getPost('delete')){\n\t\t\t\tif(is_array($this->_request->getPost('delete'))){\n\t\t\t\t\tforeach($this->_request->getPost('delete') as $curDel){\n\t\t\t\t\t\t$playlistMapper->delete($curDel);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// display listing\n\t\t\t$results = $playlistMapper->fetchAll();\n\t\t\t\n\t\t\tif(isset($results)) {\n\t\t\t\t$paginator = Zend_Paginator::factory($results);\n\t\t\t\t$paginator->setItemCountPerPage(10);\n\t\t\t\t$paginator->setCurrentPageNumber($this->_getParam('page'));\n\t\t\t\t$this->view->paginator = $paginator;\n\t \n\t\t\t\tZend_Paginator::setDefaultScrollingStyle('Sliding');\n\t\t\t\tZend_View_Helper_PaginationControl::setDefaultViewPartial(\n\t\t\t\t\t'admin/user-paginator.phtml'\n\t\t\t\t);\n\t\t\t}\n\t\t}\n }", "title": "" }, { "docid": "8fcbc5a1a568f3e7c3f7e2f8dff9b148", "score": "0.65646994", "text": "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "title": "" }, { "docid": "c192cad1748d0fe11000b8d2063a908e", "score": "0.65643096", "text": "public function index()\n {\n return $this->view('lists');\n }", "title": "" }, { "docid": "e46de2dcc0ebc71d109d2b3f9606f07f", "score": "0.6560733", "text": "public function index()\n {\n // Get assets\n $assets = Asset::orderBy('created_at','desc')->paginate(15);\n\n // Return collection of assets as a resource\n return AssetResource::collection($assets);\n }", "title": "" }, { "docid": "7056dcfc0479ee6a004c692cbdce673b", "score": "0.65567315", "text": "public function index()\n {\n $operations = $this->Operations->getAllOperations();\n $this->set(compact('operations'));\n }", "title": "" }, { "docid": "709296f3c4b911dad5cd4c6a5737f286", "score": "0.6554113", "text": "public function index()\n {\n $students = Student::paginate(10);\n\n return Inertia::render('Students/list', [\n 'students' => $students\n ]);\n }", "title": "" }, { "docid": "4d26affb174c19221ce588c9eebafab3", "score": "0.65529937", "text": "function listing() {\r\n\r\n }", "title": "" }, { "docid": "93ea242a6b36e6ac311b0ca58b9c07c2", "score": "0.6551461", "text": "public function actionList()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Site::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "8ffe23111661c679bede8757d6ebad59", "score": "0.65496445", "text": "public function index()\n\t{\n\t\t$data['lists'] = $this->role_model->get_all();\n\t\t$this->template->set('title', 'Role List');\n\t\t$this->template->admin('template', 'list', $data);\n\t}", "title": "" }, { "docid": "6eadfe639301106d65142408b4536a7d", "score": "0.65397066", "text": "public function index()\n {\n return CentroResource::collection(Centro::paginate());\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": "89609813ca0ff771861ac28b1e095928", "score": "0.6527404", "text": "public function index()\n\t{\n return Resource::all();\n\t}", "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": "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": "901678e4ca1d10119628a2768429725f", "score": "0.65128183", "text": "public function index()\n {\n return AlbumResource::collection(\\App\\Album::orderBy('created_at', 'desc')->get());\n }", "title": "" }, { "docid": "5c803b00b170848e1203ddac8a92502b", "score": "0.6512414", "text": "public function getIndex()\n\t{\n\n\t\treturn View::make('admin.scaffolding.list', [\n\t\t\t'title' => $this->title,\n\t\t\t'data' => (new $this->model)->all(),\n\t\t\t'properties' => $this->properties,\n\t\t\t'uri' => $this->uri\n\t\t]);\n\t}", "title": "" }, { "docid": "7d6d4eeffba02e23256d6a0e5deb2bdd", "score": "0.65111613", "text": "public function index()\n {\n //list all records\n return response( PhotoResource::collection( Photo::all(), 200) );\n \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": "3b3460a74099eb9046ed062a8388f3ed", "score": "0.6493324", "text": "public function listAction() {\n\n // Use the model to get all stored users\n $allUsers = $this->userModel->findAll('name ASC');\n\n\n $this->theme->setTitle('Användare');\n $this->views->addString('<h3>Användare</h3><hr>');\n foreach ($allUsers as $user) {\n $values = $user->getProperties();\n $this->views->add('user/abstract', [\n 'user' => $this->userHTMLAction($values)\n ]);\n\n }\n }", "title": "" }, { "docid": "ff30a4ae8d49f1706d1dbd328394a294", "score": "0.6493153", "text": "public function index()\n {\n $brands = Brand::query()->paginate();\n return BrandResource::collection($brands);\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": "629569270186c168f2f698db8154b51a", "score": "0.6487244", "text": "public function index()\n {\n $articles = Article::query()->latest()->paginate(10);\n\n return ArticleResource::collection($articles);\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": "660b82cc6b8b90bf6a2b2cc5994c4659", "score": "0.6484907", "text": "public function index()\n {\n return FilmeResource::collection(Filme::orderBy('titulo')->get());\n }", "title": "" }, { "docid": "25aaedcb3f8fbe36cdc02986a86cf453", "score": "0.64846873", "text": "public function index()\n {\n // Get Specifications\n $specifications = Specification::orderBy('created_at', 'desc')->paginate(100);\n\n // Return collection of Specifications as a resource\n return SpecificationResource::collection($specifications);\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": "67b73f4ae6d169731b81d3965809e2cc", "score": "0.64832896", "text": "public function index()\n {\n return PageListResource::collection(Page::orderBy('order', 'ASC')->paginate(25));\n }", "title": "" }, { "docid": "9e4aa3765a088d74ea20e0e8231d81d1", "score": "0.64756656", "text": "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "title": "" }, { "docid": "0232eb512a71477a7fa7dc6a5705eb55", "score": "0.6473772", "text": "public function index()\n {\n $list_obj = Apartment::all();\n return view('admin.apartment.list')->with('list_obj', $list_obj);\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": "3f33a04452a229a0b4356377ae06424e", "score": "0.64698887", "text": "public function index()\n {\n return UserResource::collection($this->repo->paginate(10));\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": "33b7b9e2fcdf01d9aa991501465da69c", "score": "0.64597493", "text": "public function index()\n {\n //get businesses\n $business = Business::paginate(15);\n\n //return business as resource\n return BusinessResource::collection($business);\n }", "title": "" } ]
79456862ab78dc057998bc9dc30470d9
The Template of the report to be generated.
[ { "docid": "c2e1425c04b490ea995dfbdc5a6b0493", "score": "0.0", "text": "public function setReportId(int $reportId): LabelInfo\n {\n $this->reportId = $reportId;\n return $this;\n }", "title": "" } ]
[ { "docid": "68e9f8982c2064b702e65f17c587d5f9", "score": "0.7416517", "text": "public function getTemplate() {\n\t\t$module = $this->renderWith(array('ReportModule'));\n\t\treturn $module;\n\t}", "title": "" }, { "docid": "9a04cc6928243e6518ce7761b778f89b", "score": "0.7090068", "text": "public function getRecordTemplate () : string {\n return $this->record_template;\n }", "title": "" }, { "docid": "f51553273631dd116032516c449ae618", "score": "0.7072547", "text": "public function getTemplate()\n {\n return '';\n }", "title": "" }, { "docid": "a9e0a17f9a2d6f7be9a1657e137a3eb7", "score": "0.7052522", "text": "public function template()\n {\n if ( ! $this->bean->template) $this->bean->template = R::dispense('template');\n return $this->bean->template;\n }", "title": "" }, { "docid": "369f1c17741827262c95737e7bcecb9c", "score": "0.70240813", "text": "function template()\n {\n $this->prepareTemplate();\n return $this->template;\n }", "title": "" }, { "docid": "fabe11de7e84017c8d0b5c56b3dd7518", "score": "0.69191414", "text": "public function getTemplate(): string\n {\n return $this->template;\n }", "title": "" }, { "docid": "fabe11de7e84017c8d0b5c56b3dd7518", "score": "0.69191414", "text": "public function getTemplate(): string\n {\n return $this->template;\n }", "title": "" }, { "docid": "5ef79923d277b414b4ba6b55d48534cd", "score": "0.6877274", "text": "public function getTemplate() {\n return $this->template;\n }", "title": "" }, { "docid": "87d6f5f7652381457f90e601e21ca314", "score": "0.6856484", "text": "public function getTemplate()\n {\n return $this->template;\n }", "title": "" }, { "docid": "87d6f5f7652381457f90e601e21ca314", "score": "0.6856484", "text": "public function getTemplate()\n {\n return $this->template;\n }", "title": "" }, { "docid": "87d6f5f7652381457f90e601e21ca314", "score": "0.6856484", "text": "public function getTemplate()\n {\n return $this->template;\n }", "title": "" }, { "docid": "87d6f5f7652381457f90e601e21ca314", "score": "0.6856484", "text": "public function getTemplate()\n {\n return $this->template;\n }", "title": "" }, { "docid": "87d6f5f7652381457f90e601e21ca314", "score": "0.6856484", "text": "public function getTemplate()\n {\n return $this->template;\n }", "title": "" }, { "docid": "87d6f5f7652381457f90e601e21ca314", "score": "0.6856484", "text": "public function getTemplate()\n {\n return $this->template;\n }", "title": "" }, { "docid": "069b103195dd2e78b3076373a3ea515f", "score": "0.68116796", "text": "public function getTemplate() {\n return $this->template;\n }", "title": "" }, { "docid": "0207984b2f355404a81fb6c5e78097d9", "score": "0.6798665", "text": "public function get_template_string()\n {\n }", "title": "" }, { "docid": "1b0c9fc00e3a3d6bb250feb54da06058", "score": "0.676932", "text": "public function getTemplate() {\n return $this->_objeto['template'];\n }", "title": "" }, { "docid": "439c30d789796ef555d0da6564dea5cf", "score": "0.6742229", "text": "public function getTemplate() {\n\t\tif ($this->template) {\n\t\t\treturn $this->template;\n\t\t} else {\n\t\t\treturn 'default';\n\t\t}\n\t}", "title": "" }, { "docid": "7b9b7c781db35a83c8b7416f3ec8f612", "score": "0.67337155", "text": "public function getTemplate()\n\t{\n\t\treturn $this->template;\n\t}", "title": "" }, { "docid": "7b9b7c781db35a83c8b7416f3ec8f612", "score": "0.67337155", "text": "public function getTemplate()\n\t{\n\t\treturn $this->template;\n\t}", "title": "" }, { "docid": "7b9b7c781db35a83c8b7416f3ec8f612", "score": "0.67337155", "text": "public function getTemplate()\n\t{\n\t\treturn $this->template;\n\t}", "title": "" }, { "docid": "f0ae81dd96633df733c0fbdc9a3f1f35", "score": "0.6714325", "text": "public function GetTemplate()\n { return $this->template; }", "title": "" }, { "docid": "16b410efeb1720f6e0f6650c2a33f8f5", "score": "0.6682975", "text": "public function get_template() {\n return $this->template;\n }", "title": "" }, { "docid": "f72564e885b5a10cee583686e86c8886", "score": "0.66804314", "text": "public function getTemplate() {\n return null;\n }", "title": "" }, { "docid": "9aa287a098275fcaf6e0e70e1cba4af3", "score": "0.66756475", "text": "public function getTemplate() : string {\n return $this->getString();\n }", "title": "" }, { "docid": "0fcc59ed6f8c96c92fda1fad38cfc136", "score": "0.66554314", "text": "public function getTemplate() {\n return null;\n }", "title": "" }, { "docid": "45824306be95b9f2f2d35db8d1050feb", "score": "0.66485584", "text": "public function getTemplate()\n\t{\n\t\treturn $this->_template;\n\t}", "title": "" }, { "docid": "0fbbb961d9a7bc9dbcdf5009aee3905f", "score": "0.6627848", "text": "public function getTemplate()\n {\n return $this->renderWith($this->getClassName());\n }", "title": "" }, { "docid": "e5adeff31203aed54decae2762f9f0ab", "score": "0.6625216", "text": "public function getTemplate();", "title": "" }, { "docid": "e5adeff31203aed54decae2762f9f0ab", "score": "0.6625216", "text": "public function getTemplate();", "title": "" }, { "docid": "e5adeff31203aed54decae2762f9f0ab", "score": "0.6625216", "text": "public function getTemplate();", "title": "" }, { "docid": "e5adeff31203aed54decae2762f9f0ab", "score": "0.6625216", "text": "public function getTemplate();", "title": "" }, { "docid": "e5adeff31203aed54decae2762f9f0ab", "score": "0.6625216", "text": "public function getTemplate();", "title": "" }, { "docid": "e5adeff31203aed54decae2762f9f0ab", "score": "0.6625216", "text": "public function getTemplate();", "title": "" }, { "docid": "7ade5d8bd2ff6319b12fb3d5de9cd268", "score": "0.66045344", "text": "function getTemplate()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "c7ca9c7ba7dbfc05a580700f3f8e3a2a", "score": "0.65850985", "text": "public function getTemplate() {\n return $this->getFile();\n }", "title": "" }, { "docid": "81403feb6f44a9791cc24ab2dcb0bdc6", "score": "0.6546171", "text": "public function getPageTemplate()\n {\n return $this->MyTemplate();\n }", "title": "" }, { "docid": "805838102f17d5b7474569f498996f76", "score": "0.65380704", "text": "public function getTemplate(): string;", "title": "" }, { "docid": "85c2754d108b1a84245902eb11ff8b8f", "score": "0.6511053", "text": "public function getTemplate()\n {\n return 'SuluSalesCoreBundle:Widgets:core.flow.of.documents.html.twig';\n }", "title": "" }, { "docid": "14ec14a5f5ed7ffb560ce82f4c8805af", "score": "0.64973265", "text": "public static function getTemplate(): string;", "title": "" }, { "docid": "74a64b1851f719b62d3ff68156bf7f17", "score": "0.64659745", "text": "public function template() {\n return $this -> templateEngine;\n }", "title": "" }, { "docid": "dc0c260ee3fb2279f8dc2dd362113c7a", "score": "0.64389986", "text": "public function generate(Report $report) {\n return Inertia::render('Reports/Generate'); \n }", "title": "" }, { "docid": "eebea1d1f0acb29c43c86204b920a4a7", "score": "0.6438582", "text": "protected function getTemplate()\n {\n return $this->getTemplatePrefix() . $this->getFormOption('template', $this->getConfig('form'));\n }", "title": "" }, { "docid": "c4c66d8e92927ea249beb3bda2453ec0", "score": "0.6382189", "text": "protected function get_template() {\n\t\treturn 'seeder.mustache';\n\t}", "title": "" }, { "docid": "513d363200d7c9423fe7099d36dd1912", "score": "0.63538927", "text": "protected abstract function generateReport();", "title": "" }, { "docid": "fb87365a178c5a40fcedba5eeb379b18", "score": "0.6336294", "text": "function getBuildedTemplate() : string {\r\n return $this->buildedTemplate;\r\n }", "title": "" }, { "docid": "a8ac2be97a9f2d86c45150c3fae78757", "score": "0.63298285", "text": "public function getTemplate()\n {\n return 'Nokkeltall/rapport.html.twig';\n }", "title": "" }, { "docid": "777066738c71800cc0aa73f9120bedcf", "score": "0.6315994", "text": "protected function _getTemplate()\n {\n return $this->template;\n }", "title": "" }, { "docid": "989c2e2cc3ca7bc63af422a749059e7b", "score": "0.63156736", "text": "public function getTemplate()\n {\n return $this->_getHelper()->getEmailTemplate();\n }", "title": "" }, { "docid": "2b79dcda5f0a48b3e84d053139136db6", "score": "0.63022715", "text": "public function getReport()\n {\n $content = '';\n $content .= $this->renderHelp();\n $content .= $this->renderExtractorsList();\n return $content;\n }", "title": "" }, { "docid": "9a3f45bde86844a60ecff7c5593c1bb7", "score": "0.62994856", "text": "public function action_open_standard_report_template()\n {\n //MsgBox \"To obtain the 'Standard Report Template', perform a 'Save As' on the following Template.\"\n $doc = \\Nmi_doc::generate_template('StandardReportTemplate.dotx');\n \\Nmi_doc::save($doc, 'StandardReportTemplate.doc');\n }", "title": "" }, { "docid": "7bf50f64f6f2759839d84d79e9c679e1", "score": "0.62915796", "text": "protected function BuildReport() {\n \n // prepare LastTime\n $Delta= time()-$this->LastTimestamp;\n $Ago= round($Delta / 86400).' days ago';\n if ($Delta < 2*86400) {\n $Ago= round($Delta / 3600).' hours ago';\n }\n if ($Delta < 2*3600) {\n $Ago= round($Delta / 60).' minutes ago'; \n }\n $LastTimestamp= date('Y-m-d H:i:s', $this->LastTimestamp);\n $LastTime= $LastTimestamp.' ('.$Ago.')';\n \n // prepare Report\n $Content= empty($this->Report)\n ? $this->Messages['DiffNotFound']\n : $this->Messages['DiffFound'].'<br><br>'.implode(\"<br>\", $this->Report);\n $Count= count($this->ExistingFiles);\n $Now= date('Y-m-d H:i:s', time());\n $Ver= $this->Version;\n $Report= sprintf($this->ReportTemplate, $Ver, $Content, $Count, $Now, $LastTime); \n return $Report;\n }", "title": "" }, { "docid": "c4701fbba6c7fa381e572d35fc9220ea", "score": "0.62845975", "text": "public function __template() : string\n {\n return '';\n }", "title": "" }, { "docid": "0b6d04b933651bb816401ef967b28116", "score": "0.6265902", "text": "public function getOutDocTemplate ()\n {\n return $this->out_doc_template;\n }", "title": "" }, { "docid": "15b62564145f89af38f9497be9824a74", "score": "0.6256397", "text": "public function generateReport()\n {\n }", "title": "" }, { "docid": "0998215095b4ab5079a801b9ee23f8db", "score": "0.62479925", "text": "public function templateFile() {\n return KIRBY_SITE_ROOT_TEMPLATES . DS . $this->template() . '.php';\n }", "title": "" }, { "docid": "641300ab37e547fb3a580f1c872a77c9", "score": "0.62303764", "text": "public function getTemplate()\n {\n $template = Registry::get(\"template\");\n return $template;\n }", "title": "" }, { "docid": "83d95eff17a2912385e58daca799eb07", "score": "0.621524", "text": "public function getTemplate()\n {\n if (null === $this->template) {\n $this->template = dirname(__DIR__) . '/view/maintenance.phtml';\n }\n return $this->template;\n }", "title": "" }, { "docid": "e0b4cb93db4f81a15c0241a669133cd1", "score": "0.62104106", "text": "public function getTemplateFile()\n {\n return $this->template;\n }", "title": "" }, { "docid": "0e556ee32bef4c19ee73f01b0c9e7382", "score": "0.61847085", "text": "public function generateReport(){\n }", "title": "" }, { "docid": "7ef6d20e60facedaee957e45fdc049a7", "score": "0.6184268", "text": "public function forTemplate()\n {\n return '';\n }", "title": "" }, { "docid": "a21a508c025fa139a1c6e5bb6f59497d", "score": "0.61749786", "text": "protected function GetTemplate()\n\t{\n\t\tif (isset($this->params['plain']) && ($this->params['plain'] === true)) {\n\t\t\treturn 'commitdiffplain.tpl';\n\t\t}\n\t\treturn 'commitdiff.tpl';\n\t}", "title": "" }, { "docid": "f48ce6702c6f47e3160a32a15a372adc", "score": "0.6157961", "text": "public function getTemplate(): string\n {\n if (!$this->template) {\n $this->template = 'default';\n }\n\n return (string)\\apply_filters(LoginLocker::HOOK_PREFIX . 'email_template', $this->template);\n }", "title": "" }, { "docid": "1ea6a254825256adf2d7681dcc1d3f67", "score": "0.6143491", "text": "protected function populateTemplate()\n {\n $content = view(\\Config::get('pdfwriter')['pdf_blade_files'] . '.' . $this->template, ['record'=> $this->data])->render();\n\n return $content;\n }", "title": "" }, { "docid": "6e16c128305248183bba1c9bd64e049c", "score": "0.6140949", "text": "public function getTemplateName()\n {\n return $this->template;\n }", "title": "" }, { "docid": "3af362c58a2452398805bbc2a2cc8249", "score": "0.6132119", "text": "public function getPlainTemplate()\n {\n return $this->plainTemplate;\n }", "title": "" }, { "docid": "f3add161a026447eba4250bd4ec7986b", "score": "0.6131863", "text": "public function getTemplate()\n {\n switch($this->env):\n case 'bo_':\n if($this->ajax || $this->layout==false):\n return 'PokerGeneralBundle:Default:form.html.twig';\n else:\n return 'PokerGeneralBundle:Back:containerForm.html.twig';\n endif;\n break;\n case 'mo_':\n if($this->ajax || $this->layout==false):\n return 'PokerGeneralBundle:Default:form.html.twig';\n else:\n return 'PokerGeneralBundle:Middle:containerForm.html.twig';\n endif;\n break;\n case 'fo_':\n if($this->ajax || $this->layout==false):\n return 'PokerGeneralBundle:Default:form.html.twig';\n else:\n return 'PokerGeneralBundle:Front:containerForm.html.twig';\n endif;\n break;\n endswitch;\n }", "title": "" }, { "docid": "b3d138d22fa99d43734498fe28c4025b", "score": "0.61304104", "text": "public final function get_template() {\n\t\treturn $this->template[0];\n\t}", "title": "" }, { "docid": "4d26e632bdb5e8fd1227a49df51cebca", "score": "0.61149275", "text": "public function generateReport(){\n\n $organizers = $this->organizerRepository->findAllActive();\n\t\t$organizers = $this->convertToDTO($organizers);\n\t\t// Sort DTOs by name\n uasort($organizers, function ($a, $b) {\n return strtolower($a->name) > strtolower($b->name);\n });\n\n $totalContacts = 0;\n foreach ($organizers as $organizer) {\n $totalContacts += count($organizer->contacts);\n }\n\n $html = $this->templatingService->renderResponse(\n 'AdminBundle:organizer/accounting:reporting.html.twig',\n array(\n 'organizers' => $organizers,\n 'totalContacts' => $totalContacts\n )\n )->getContent();\n\n $left = 'Le ' . date('d/m/Y H:i:s');\n $right = \"Page [page]/[toPage]\";\n\n $snappyPdf = $this->htmlToPdfService;\n $snappyPdf->setOption('encoding', 'UTF-8');\n $snappyPdf->setOption('footer-font-size', 8);\n $snappyPdf->setOption('footer-left', $left);\n $snappyPdf->setOption('footer-right', $right);\n $snappyPdf->setOption('footer-spacing', 5);\n return $snappyPdf->getOutputFromHtml($html, array(\n 'orientation'=>'Portrait',\n 'encoding' => 'UTF-8'));\n }", "title": "" }, { "docid": "1d1bca1b8b2a89297f8d31e90634484b", "score": "0.6098169", "text": "function templateName()\n {\n return $this->Info['type-identifier'] . '.tpl';\n }", "title": "" }, { "docid": "11f5bb870ac828f9e9e1a271aa67dd8b", "score": "0.6095261", "text": "public function getTemplate()\n {\n $class = get_class($this);\n $paths = explode('\\\\', $class);\n\n return $paths[count($paths) - 2];\n }", "title": "" }, { "docid": "3e3d9b0d21f72c03751977a2c256a599", "score": "0.6063418", "text": "abstract public function getDefaultTemplate();", "title": "" }, { "docid": "74ae02334a47316590d36fd952ffb4f3", "score": "0.60615456", "text": "private function _getTemplateData()\n {\n $namespaces = array(\n 'rdf' => 'http://www.w3.org/1999/02/22-rdf-syntax-ns#',\n 'rdfs' => 'http://www.w3.org/2000/01/rdf-schema#',\n 'owl' => 'http://www.w3.org/2002/07/owl#'\n );\n foreach ($this->_model->getNamespaces() as $ns => $prefix) {\n $namespaces[$prefix] = $ns;\n }\n\n // this template data is given to ALL templates (with renderx)\n $templateData = array(\n 'siteId' => $this->_site,\n 'siteConfig' => $this->_getSiteConfig(),\n 'generator' => 'OntoWiki ' . $this->_config->version->number,\n 'pingbackUrl' => $this->_owApp->getUrlBase() . 'pingback/ping',\n 'wikiBaseUrl' => $this->_owApp->getUrlBase(),\n 'themeUrlBase' => $this->view->themeUrlBase,\n 'libraryUrlBase' => $this->view->libraryUrlBase,\n 'basePath' => sprintf('%s%s/%s', $this->_componentRoot, $this->_relativeTemplatePath, $this->_site),\n 'baseUri' => sprintf('%s%s/%s', $this->_componentUrlBase, $this->_relativeTemplatePath, $this->_site),\n 'context' => $this->moduleContext,\n 'namespaces' => $namespaces,\n 'model' => $this->_model,\n 'modelUri' => $this->_modelUri,\n 'title' => $this->_resource->getTitle(),\n 'resourceUri' => (string) $this->_resourceUri,\n 'description' => $this->_resource->getDescription(),\n 'descriptionHelper' => $this->_resource->getDescriptionHelper(),\n\n 'site' => array(\n 'index' => 0,\n 'name' => 'Home'\n ),\n 'navigation' => array(),\n 'options' => array(),\n );\n\n return $templateData;\n }", "title": "" }, { "docid": "7e01e9f1b5af20e206b05abaf273d947", "score": "0.6050542", "text": "public function getWebPageTemplate()\n {\n return $this->webPageTemplate;\n }", "title": "" }, { "docid": "d2fa239b1f3d28c2d462e3a579e2f362", "score": "0.6049141", "text": "public function getTemplate() {\n return 'profileTemplate';\n }", "title": "" }, { "docid": "b0bb91646a8b25235ec65cae4a9cd63e", "score": "0.6047444", "text": "public function create()\n {\n return Inertia::render('ArrestReport/New');\n }", "title": "" }, { "docid": "296250e178844d44028647a210683010", "score": "0.6045895", "text": "public function getTemplate () {\n\n\t\t$unReviewLink = SpecialPage::getTitleFor( 'PageStatistics' )->getInternalURL( array(\n\t\t\t'page' => $this->title->getPrefixedText(),\n\t\t\t'unreview' => $this->initial\n\t\t) );\n\n\t\t$linkText = wfMessage('watchanalytics-unreview-button')->text();\n\t\t$bannerText = wfMessage('watchanalytics-unreview-banner-text')->parse();\n\n\t\t// when MW 1.25 is released (very soon) replace this with a mustache template\n\t\t$template = \n\t\t\t\"<div id='watch-analytics-review-handler'>\n\t\t\t\t<a id='watch-analytics-unreview' href='$unReviewLink'>$linkText</a>\n\t\t\t\t<p>$bannerText</p>\n\t\t\t</div>\";\n\n\t\treturn \"<script type='text/template' id='ext-watchanalytics-review-handler-template'>$template</script>\";\n\n\t}", "title": "" }, { "docid": "114744c64fd7391c082cc557e4b8068e", "score": "0.60397106", "text": "public function getView()\n {\n $this->validateConfigurationSettings();\n \n return view('blocks.reports.report', [\n 'uid' => uniqid(),\n 'report_name' => $this->report_name,\n 'report_columns' => $this->report_columns\n ])->render();\n }", "title": "" }, { "docid": "23a5553980175e0f9b144c133542a6e0", "score": "0.6033209", "text": "public function getTemplateFile()\n {\n $params = array(\n '_relative' => true,\n '_area' => 'adminhtml',\n '_package' => 'default',\n '_theme' => 'default'\n );\n\n return Mage::getDesign()->getTemplateFilename($this->getTemplate(), $params);\n }", "title": "" }, { "docid": "04921d876c8beff97d43746fc34c047d", "score": "0.6023229", "text": "public function getPackageTemplate();", "title": "" }, { "docid": "2d05dc91af4750ae8d332d8df89f7350", "score": "0.60205", "text": "final public function getTemplate() {\n\t\treturn $this->__src;\n\t}", "title": "" }, { "docid": "98999e119e65621ac4af6ce33e293cb4", "score": "0.6014857", "text": "public function generateReport() {\n if (isset($_SERVER['DOCUMENT_ROOT']) && $_SERVER['DOCUMENT_ROOT'] !== '') {\n $path = $_SERVER['DOCUMENT_ROOT'].'/'\n .self::$config->getValue('debug', 'reportFile', false);\n }else{\n $path = self::$config->getValue('debug', 'scriptPath', false)\n .self::$config->getValue('debug', 'reportFile', false);\n }\n $view = new View();\n $view->setMessages($this->getMessages(\n self::$config->getValue('debug', 'sections', null)));\n\n $view->dumpToFile($path);\n }", "title": "" }, { "docid": "b0c1e0dd88fa3c8efb7f38df088eadba", "score": "0.60100013", "text": "public function getTemplateFile() {\n return 'security/user/create.tpl';\n }", "title": "" }, { "docid": "89476e630e7043f0b576cec2f5221f01", "score": "0.600954", "text": "public function template()\n\t{\n\t}", "title": "" }, { "docid": "9c1fc2abfd0ae7009b591d04efb7fb5c", "score": "0.5992438", "text": "public function getEmailTemplate() {\n }", "title": "" }, { "docid": "0952a55b05c8ea5407365aec8039afba", "score": "0.5989759", "text": "public function render() {\n global $OUTPUT;\n $data = $this->get_data();\n return $OUTPUT->render_from_template('local_reportgen/source_report', $data);\n }", "title": "" }, { "docid": "feeae98a9f332a1e5f49831c148713e1", "score": "0.59678626", "text": "public function generate()\n\t{\n\t\tif (TL_MODE == 'BE')\n\t\t{\n\t\t\t$objTemplate = new BackendTemplate('be_wildcard');\n\n\t\t\t$objTemplate->wildcard = '### COURSE BUILDER CLIENT REPORT ###';\n\t\t\t$objTemplate->title = $this->headline;\n\t\t\t$objTemplate->id = $this->id;\n\t\t\t$objTemplate->link = $this->name;\n\t\t\t$objTemplate->href = $this->Environment->script.'?do=modules&amp;act=edit&amp;id=' . $this->id;\n\n\t\t\treturn $objTemplate->parse();\n\t\t}\n\n\t\treturn parent::generate();\n\t}", "title": "" }, { "docid": "baaed2cfacb9d041f7cb90ea888d3522", "score": "0.5963532", "text": "public function GetTemplateName()\n { return $this->template_name; }", "title": "" }, { "docid": "ce39db7d07278d22bdac7790808a593f", "score": "0.5963186", "text": "public function getTemplateFile() {\n return $this->simpleab->config['templatesPath'].'mgr.tpl';\n }", "title": "" }, { "docid": "cda9f6d318844d121c5ce5793119195b", "score": "0.5961403", "text": "public function getSourceTemplate();", "title": "" }, { "docid": "40be95f80179c6d919a22dc6bf2e4000", "score": "0.5953398", "text": "protected function getTemplate() {\n\t\treturn new Template('Premanager', 'changePassword');\n\t}", "title": "" }, { "docid": "4320fc109d1382cfe25ef267087c3a5e", "score": "0.5947228", "text": "protected function getTemplate() {\n $file = $this->component['path'] . $this->component['template'];\n return (file_exists($file)) ? file_get_contents($file) : '';\n }", "title": "" }, { "docid": "540205ddd4b8d2a1fe244b412cd07383", "score": "0.5941636", "text": "public function getTemplate()\n {\n $template = $this->template;\n\n if ($template instanceOf TemplateReference) {\n if (null === $template->get('format')) {\n $template->set('format', $this->getFormat());\n }\n\n if (null === $template->get('engine')) {\n $template->set('engine', $this->getEngine());\n }\n }\n\n return $template;\n }", "title": "" }, { "docid": "0afb20b0b0a4b826dc59aaf5c500a320", "score": "0.59375507", "text": "public function create()\n\t{\n return view('cms.report.create');\n\t}", "title": "" }, { "docid": "579fdc960a38ace6338e21ea6295fc08", "score": "0.59370345", "text": "protected function getTemplate()\n {\n // and if fails falls back to loading view\n // resources/views/fields/datetime.blade.php\n return 'fields.one-file';\n }", "title": "" }, { "docid": "e63d715bf697aa05e29b4c9266e1b3dd", "score": "0.5933739", "text": "public function generate()\n {\n return $this->template($this->directory, $this->fileName, $this->flag);\n }", "title": "" }, { "docid": "5c818b004ef7a6c4faff2a809cd4e30e", "score": "0.5922881", "text": "function getReportName() {\r\n\t\treturn get_class($this);\r\n\t}", "title": "" }, { "docid": "c8b158f3f358b70b23d7f9f6ec76a373", "score": "0.5917987", "text": "function template(){\n\t\tset_time_limit(0);\n\t\t\n\t\t$exporter = new DatabaseExporter($_SESSION['dbi']);\n\t\t$exporter->createTemplate();\n\t\t\n\t\t$_SESSION['db_filename'] = \"Chemical_Database_Template.xlsx\";\n\t\trequire(TEMPLATES_PATH.\"administration_download.php\");\n\t}", "title": "" }, { "docid": "7d4033898cce97e8dd7716eddf15c00f", "score": "0.5906447", "text": "public function getCombinedTemplate();", "title": "" }, { "docid": "97826ee4e0763ae1782d3a8b615812e6", "score": "0.5873146", "text": "public function create()\n {\n //\n return View::make('dpi.reports.create');\n }", "title": "" }, { "docid": "2e8e3f0128b930a6653f20d2328d5e0c", "score": "0.58722365", "text": "public function getTemplate()\n {\n if (empty($this->template)) {\n $class = explode('\\\\', get_class($this));\n $template = array_slice($class, 2);\n array_walk($template, function(&$value) {\n $value = lcfirst($value);\n });\n\n $this->template = implode(DIRECTORY_SEPARATOR, $template) . '.phtml';\n }\n return $this->template;\n }", "title": "" } ]
46c201546e5acfd89dc30a020f541611
Summarize and/or search a particular mail queue on a particular server. The admin SOAP server initiates a MTA queue scan (via ssh) and then caches the result of the queue scan. To force a queue scan, specify scan=1 in the request. The response has two parts. 1. elements summarize queue by various types of data (sender addresses, recipient domain, etc). Only the deferred queue has error summary type. 2. elements list the various queue items that match the requested query. The staleflag in the response means that since the scan, some queue action was done and the data being presented is now stale. This allows us to let the user dictate when to do a queue scan. The scanflag in the response indicates that the server has not completed scanning the MTA queue, and that this scan is in progress, and the client should ask again in a little while. The moreflag in the response indicates that more qi's are available past the limit specified in the request.
[ { "docid": "371ef53d1dcbcbe432700691dbade777", "score": "0.5044703", "text": "public function getMailQueue(ServerMail $server)\n {\n $request = new \\Zimbra\\Admin\\Request\\GetMailQueue($server);\n return $this->getClient()->doRequest($request);\n }", "title": "" } ]
[ { "docid": "784fc9ce9d263900b71b3b27cfb9ecd3", "score": "0.6367605", "text": "public function searchQueuesAction()\n {\n return $this->searchBase(\n \"queues.queue\",\n array(\"enabled\",\"number\", \"pipe\",\"weight\",\"description\",\"mask\",\"origin\"),\n \"number\"\n );\n }", "title": "" }, { "docid": "7b077ac0d37201ff30a34c4ee1df258b", "score": "0.5789353", "text": "public static function query_mandrill_search( $query ) {\n global $post, $inbound_settings;\n $start = microtime(true);\n\n /* load mandrill time\t*/\n $mandrill = new Inbound_Mandrill( $inbound_settings['inbound-mailer']['mandrill-key'] );\n\n $tags = array();\n $senders = array();\n $api_keys = array();\n\n self::$results = $mandrill->messages->search($query, self::$stats['date_from'] , self::$stats['date_to'] , $tags, $senders , $api_keys , 1000 );\n\n /* echo microtime(true) - $start; */\n }", "title": "" }, { "docid": "2801fba5b0d1fe3e09661d29e8bfb66b", "score": "0.5753161", "text": "public function processQueue()\r\n {\r\n\r\n $apiModel = Mage::getModel('transactionalemail/api');\r\n $queueModel = Mage::getModel('transactionalemail/queue')->getCollection()\r\n ->addFieldToFilter('send_status', $apiModel::SEND_STATUS_FAILED)\r\n ->setPageSize($this->pageSize);\r\n $pages = $queueModel->getLastPageNumber();\r\n $sql = $queueModel->getSelect();\r\n\r\n for ($curPage = 1; $curPage <= $pages; $curPage++) {\r\n\r\n $queueModel->setCurPage($curPage);\r\n $queueModel->load();\r\n if ($queueModel->count() == 0) {\r\n break 1;\r\n }\r\n foreach ($queueModel as $key => $value) {\r\n $apiModel->resendMail($value);\r\n }\r\n $queueModel->clear();\r\n }\r\n\r\n }", "title": "" }, { "docid": "9883be53628a0cf519bda40a7f2b613f", "score": "0.57492626", "text": "function command__get_queue(\\Walkthrough\\Connection $connection, \\ArrayAccess $command_line) {\n $connection->login();\n $response = $connection->getScreeningQueue();\n\n var_dump($response);\n}", "title": "" }, { "docid": "e95f3fe161846f964fe6622222cb5a0c", "score": "0.5661194", "text": "public function listQueues();", "title": "" }, { "docid": "5b725c009fcc1be19288ff2b9e953fca", "score": "0.56543815", "text": "static function send_queued_queries() {\n\t\tforeach ( (array) self::$queued_queries as $query )\n\t\t\tself::send_query( $query );\n\n\t\t// Kill the queue after its processed in case this gets called multiple times\n\t\tself::$queued_queries = array();\n\t}", "title": "" }, { "docid": "d248695dd5dcad716821aa1b777bb76c", "score": "0.55974275", "text": "public function getQueues();", "title": "" }, { "docid": "d248695dd5dcad716821aa1b777bb76c", "score": "0.55974275", "text": "public function getQueues();", "title": "" }, { "docid": "8eb0cceb8af018d992d7d4019a4c5dca", "score": "0.5548952", "text": "private function QueueMail() {\n\t\t$ec = new apm_System_EventQueue ();\n\t\t$vars = get_object_vars ( $this );\n\t\treturn $ec->add ( array (\n\t\t\t\t'apm_Utilities_Mail',\n\t\t\t\t'SendQueuedMail' \n\t\t), $vars, 'apm_Utilities_Mail', true );\n\t}", "title": "" }, { "docid": "63744fc5b4c7b0466ab7d490c646b830", "score": "0.55454683", "text": "public function flushfanouts($queue)\n\t{\n\t\t$stats = $this->stats();\n\t\t$keys = $stats->getKeys();\n\t\t$target = $queue . '+';\n\t\t$target_length = strlen($target);\n\t\t$results = array('success'=>0, 'failures'=>0);\n\t\tforeach ($keys as $key) {\n\t\t\tif (substr($key, 0, $target_length) == $target) {\n\t\t\t\t$res = $this->flush($key);\n\t\t\t\tif ($res == 'OK') {\n\t\t\t\t\t$results['success']++;\n\t\t\t\t} else {\n\t\t\t\t\t$results['failures']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $results;\n\t}", "title": "" }, { "docid": "509286ddb0e67f3ca31d7af3b8ee6144", "score": "0.55218333", "text": "public function get_from_queue() {\n $worker_id = text::random('alnum', 16);\n $query = $this->db->query(\"UPDATE backup_queue SET worker_id = ?, worker_timeout = ? WHERE status = 0 AND (worker_id IS NULL OR worker_timeout < ?) ORDER BY created ASC LIMIT 1\", \n array($worker_id, date::to_db('+10 minutes'), date::to_db()));\n if ($query->count()) {\n return $this->where('status', 0)->where('worker_id', $worker_id)->find();\n }\n return FALSE;\n }", "title": "" }, { "docid": "42ee4e697a193f711d90483ebd36617b", "score": "0.5507311", "text": "public function getMailQueueInfo(NamedElement $server)\n {\n $request = new \\Zimbra\\Admin\\Request\\GetMailQueueInfo($server);\n return $this->getClient()->doRequest($request);\n }", "title": "" }, { "docid": "35400d8c8358e28b133216d8a97d1fb2", "score": "0.5492119", "text": "public static function processing_queue_timer()\n\t{\n\t\t/**\n\t\t * @var \\GlobalData\\Client\n\t\t */\n\t\tglobal $global;\n\t\t$var = 'processsing_queue';\n\t\tif (!isset($global->$var))\n\t\t\t$global->$var = 0;\n\t\tif ($global->cas($var, 0, 1)) {\n\t\t\t/**\n\t\t\t * @var \\React\\MySQL\\Connection\n\t\t\t */\n\t\t\t$results = self::$db->select('*')->from('queue_log')->where('history_section=\"process_payment\" and history_new_value=\"pending\"')->query();\n\t\t\tWorker::safeEcho(\"Got Results \".json_encode($results,true).\"\\n\");\n\t\t\tif (is_array($results) && sizeof($results) > 0) {\n self::process_results($results);\n\t\t\t} else {\n $global->$var = 0;\n }\n\t\t}\n\t}", "title": "" }, { "docid": "55a9701eefa21674a5b12342a67ac90b", "score": "0.5474946", "text": "public function getQueue();", "title": "" }, { "docid": "fa2dc8e99f03eeb0dcf0b672363d5906", "score": "0.5452384", "text": "private function check_queue( ) {\n\t\t//need to fix this to use arrays instead of what I'm doing now\n\t\t$this->db_result['job-fetch'] = $this->db_slave->select( 'el_archive_queue', '*',\n\t\t\t\tarray( 'delay_time' => ' >=' . time(), 'in_progress' => '0'),\n\t\t\t\t__METHOD__,\n\t\t\t\tarray( 'ORDER BY' => 'queue_id ASC', 'LIMIT' => '1' ));\n\n\t\tif ( $this->db_result['job-fetch']->numRows() > 0 ) {\n\t\t\t$row = $this->db_result['job-fetch']->fetchRow();\n\n\t\t\t//$this->delete_dups( $row['url'] );\n\n\t\t\treturn $row['url'];\n\t\t} else {\n\t\t\t//there are no jobs to do right now\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "f85cbe465156cc0c62aad5a751906181", "score": "0.5445519", "text": "public function processQueue()\n\t{\n\t\t$config = Component::params('com_search');\n\n\t\t// For now, we can only process the queue for Solr\n\t\tif ($config->get('engine', 'basic') != 'solr')\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\trequire_once Component::path('com_search') . DS . 'models' . DS . 'solr' . DS . 'indexqueue.php';\n\t\trequire_once Component::path('com_search') . DS . 'models' . DS . 'solr' . DS . 'blacklist.php';\n\n\t\t// Get the type needed to be indexed;\n\t\t$items = QueueDB::all()\n\t\t\t->where('status', '=', 0)\n\t\t\t->limit(100)\n\t\t\t->rows();\n\n\t\t// Refresh indexed material if no work to do\n\t\tif ($items->count() <= 0)\n\t\t{\n\t\t\t$items = QueueDB::all()\n\t\t\t\t->where('status', '=', 1)\n\t\t\t\t->where('action', '=', 'index')\n\t\t\t\t->order('modified', 'ASC')\n\t\t\t\t->limit(100)\n\t\t\t\t->rows();\n\t\t}\n\n\t\t// Get the blacklist\n\t\t$sql = \"SELECT doc_id FROM `#__search_blacklist`;\";\n\t\t$db = App::get('db');\n\t\t$db->setQuery($sql);\n\t\t$blacklist = $db->query()->loadColumn();\n\n\t\tforeach ($items as $item)\n\t\t{\n\t\t\t$format = Event::trigger('search.onIndex', array($item->type, $item->type_id, true));\n\t\t\tif (isset($format[0]))\n\t\t\t{\n\t\t\t\t$this->processRows($format[0], $item->action, $blacklist);\n\n\t\t\t\t$timestamp = with(new \\Hubzero\\Utility\\Date('now'))->toSql();\n\t\t\t\t$item->set('modified', $timestamp);\n\t\t\t\t$item->set('status', 1);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$item->set('status', 2);\n\t\t\t}\n\n\t\t\t$item->save();\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "f17409cd4546f56fdd41fa3aac5f0313", "score": "0.5424436", "text": "public function getAnnounceQueue();", "title": "" }, { "docid": "e3e623bd886b8a067d5b3ec235a6fa78", "score": "0.5390202", "text": "public function testGetSentEmailsWithQueueResults()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "title": "" }, { "docid": "79507012160ce610cf76fae3331e20a1", "score": "0.536413", "text": "function getQueueList(){\n\tglobal $db;\n\t\n\t$strSQL = \"select q.qu_type, q.qu_name, q.qu_time, s.srv_name\";\n $strSQL .= \" from queue as q\";\n $strSQL .= \" left join services as s\";\n $strSQL .= \" on q.srv_id = s.srv_id\";\n\t$strSQL .= \" where s.srv_visible = 1\";\n\t$strSQL .= \" order by q.qu_time\";\n\t$result = $db->simpleResultset($strSQL);\n\t\n\treturn $result;\n}", "title": "" }, { "docid": "ca7beb317dbbf99ec9cda4bf157167b8", "score": "0.5324534", "text": "public function all($queueName='');", "title": "" }, { "docid": "021eea73e291779deb3ec060ebbcdeaa", "score": "0.53230196", "text": "function getPatientQueueFiltered($start = null, $end = null, $types = [], $status = [], $getFull = FALSE, $page = 0, $pageSize = 10, $Dept = null, $sp = null, $patId = null, $imgSubType = null, $pdo = null)\n {\n $queues = array();\n $start = ($start === null) ? date(\"Y-m-d\") : $start;\n $end = ($end === null) ? date(\"Y-m-d\") : $end;\n $types = (sizeof($types) === 0) ? getTypeOptions('type', 'patient_queue', $pdo) : $types;\n\n\n $TYPE_STR = ($types[0] === '' || $types[0] === '_' || $types[0] === null) ? '' : \"AND q.type IN ('\" . implode(\"', '\", $types) . \"')\";\n\n $specialty = ($sp != null && $sp != '_') ? \" AND q.specialization_id IN (\" . implode(\",\", $sp) . \")\" : '';\n $Patient = ($patId != null && $patId != '') ? ' AND q.patient_id = ' . $patId : '';\n\n $status = (sizeof($status) === 0) ? getTypeOptions('status', 'patient_queue', $pdo) : $status;\n $dept = ($Dept !== null && $Dept !== \"\" && $Dept !== \"_\") ? \" AND q.department_id=\" . $Dept : \"\";\n\n $imgSub = ($imgSubType !== null) ? ' AND q.sub_type=\"' . escape($imgSubType) . '\"' : \"\";\n $sql = \"SELECT QUEUE_TRIAGED(q.encounter_id) AS triaged, q.*, d.active AS patientActive, CONCAT_WS(' ', d.fname, d.mname, d.lname) AS patientName, sc.scheme_name, b.icon, dept.name AS departmentName, cs.staff_type AS specializationName, CONCAT_WS(' ', s1.firstname, s1.lastname) AS blockedBy, CONCAT_WS(' ', s2.firstname, s2.lastname) AS seenBy FROM patient_queue q LEFT JOIN patient_demograph d ON q.patient_id=d.patient_ID LEFT JOIN staff_directory s1 ON s1.staffId=q.blocked_by LEFT JOIN staff_directory s2 ON s2.staffId=q.seen_by LEFT JOIN departments dept ON dept.id=q.department_id LEFT JOIN insurance i ON i.patient_id=d.patient_ID LEFT JOIN insurance_schemes sc ON i.insurance_scheme=sc.id LEFT JOIN badge b ON b.id=sc.badge_id LEFT JOIN staff_specialization cs ON cs.id=q.specialization_id WHERE d.active IS TRUE AND DATE(entry_time) BETWEEN '$start' AND '$end' AND q.status IN ('\" . implode(\"', '\", $status) . \"') {$TYPE_STR}{$specialty}{$dept}{$Patient}{$imgSub} ORDER BY entry_time\";\n $total = 0;\n try {\n $pdo = $pdo == null ? $this->conn->getPDO() : $pdo;\n $stmt = $pdo->prepare($sql, array(PDO::ATTR_CURSOR => PDO::CURSOR_SCROLL));\n $stmt->execute();\n $total = $stmt->rowCount();\n } catch (PDOException $e) {\n errorLog($e);\n }\n\n $page = ($page > 0) ? $page : 0;\n $offset = ($page > 0) ? $pageSize * $page : 0;\n\n try {\n $pdo = $pdo == null ? $this->conn->getPDO() : $pdo;\n $sql .= \" LIMIT $offset, $pageSize\";\n //error_log($sql);\n $stmt = $pdo->prepare($sql, array(PDO::ATTR_CURSOR => PDO::CURSOR_SCROLL));\n $stmt->execute();\n while ($row = $stmt->fetch(PDO::FETCH_NAMED, PDO::FETCH_ORI_NEXT)) {\n\n $queue = (object)null; //new PatientQueue($row['id']);\n $queue->Id = $row['id'];\n $pid = $row['patient_id'];\n $Outstanding = 0;\n try {\n $pdo = $pdo == null ? $this->conn->getPDO() : $pdo;\n $outstanding = \"select (t1.payments + t2.charges - t3.amount) AS outstanding FROM (SELECT COALESCE(SUM(amount),0) AS payments FROM bills b LEFT JOIN insurance_schemes ON insurance_schemes.id = b.billed_to WHERE patient_id = $pid AND (transaction_type = 'debit' OR transaction_type = 'discount' OR transaction_type = 'reversal' OR transaction_type = 'write-off' OR transaction_type = 'transfer-debit') AND cancelled_on IS NULL AND insurance_schemes.pay_type = 'self') t1 join (SELECT COALESCE(SUM(amount),0) AS charges FROM bills b LEFT JOIN insurance_schemes ON insurance_schemes.id = b.billed_to WHERE patient_id = $pid AND (transaction_type = 'credit' OR transaction_type = 'refund' OR transaction_type = 'transfer-credit') AND insurance_schemes.pay_type = 'self' AND cancelled_on IS NULL) t2 join (SELECT amount FROM credit_limit WHERE patient_id=$pid) t3\";\n $stmt_ = $pdo->prepare($outstanding, array(PDO::ATTR_CURSOR => PDO::CURSOR_SCROLL));\n $stmt_->execute();\n $res = $stmt_->fetch(PDO::FETCH_NAMED, PDO::FETCH_ORI_NEXT);\n $Outstanding = $res['outstanding'];\n } catch (PDOException $e) {\n errorLog($e);\n }\n $queue->PatientId = $row['patient_id'];\n $queue->Coverage = $row['scheme_name'];\n $queue->BadgeIcon = $row['icon'];\n $queue->PatientActive = $row['patientActive'];\n $queue->PatientName = $row['patientName'];\n $queue->Type = $row['type'];\n $queue->SubType = $row['sub_type'];\n $queue->EntryTime = ($row['entry_time']);\n $queue->AttendedTime = ($row['attended_time']);\n $queue->TagNo = ($row['tag_no']);\n $queue->BlockedBy = $row['blockedBy'];\n $queue->SeenBy = $row['seenBy'];\n $queue->Specialization = $row['specializationName'];\n $queue->DepartmentId = $row['department_id'];\n $queue->DepartmentName = $row['departmentName'];\n $queue->Status = $row['status'];\n $queue->FollowUp = (bool)$row['follow_up'];\n $queue->Review = (bool)$row['review'];\n $queue->Triaged = (bool)$row['triaged'];\n $queue->Outstanding = $Outstanding;\n $queues[] = $queue;\n }\n $stmt = null;\n } catch (PDOException $e) {\n $queues = array();\n }\n\n $results = (object)null;\n $results->data = $queues;\n $results->total = $total;\n $results->page = $page;\n\n return $results;\n }", "title": "" }, { "docid": "4a1b42439ef9e02d118598786ed89e2a", "score": "0.52921593", "text": "function queueAllByName(){\n \n $content = [\n \"Action: QueueStatus\".PHP_EOL.PHP_EOL,\n ];\n\n $socket = loginAmi();\n usleep(20000);\n $authenticateResponse = fread($socket, 4096);\n var_dump($authenticateResponse);\n if(strpos($authenticateResponse, 'Success') !== false){\n foreach ($content as $setDataToSocket) {\n fputs($socket,$setDataToSocket);\n }\n usleep(20000);\n \n stream_set_timeout($socket,1);\n $response = stream_get_contents($socket); \n logoffAmi($socket);\n\n $collection = formatArrayAmiToJson($response);\n if(!empty($collection)){\n return $collection;\n }\n return false;\n }\n\n logoffAmi($socket);\n return false;\n}", "title": "" }, { "docid": "5dc5ab5fe19d775a76b586a54ba4f896", "score": "0.52605546", "text": "public function getQueue() : string;", "title": "" }, { "docid": "3412cbe082e9b09b38e2535a59d604ea", "score": "0.52176553", "text": "public static function cleanupQueue() {\n\t\t$i = 0;\n\t\t$tsNow = date(system::getConfig()->getDatabaseDateTimeFormat());\n\t\t$query = '\n\t\t\tSELECT outboundMessages.*\n\t\t\t FROM '.system::getConfig()->getDatabase('comms').'.outboundMessages\n\t\t\t LEFT JOIN '.system::getConfig()->getDatabase('comms').'.outboundMessagesEmbargo USING (recipient)\n\t\t\t WHERE outboundMessagesEmbargo.state = :State\n\t\t\t AND outboundMessagesEmbargo.expires < :TsNow\n\t\t\t AND outboundMessages.outboundTypeID = :OutboundTypeID\n\t\t\t AND outboundMessages.charge > 0\n\t\t\t ORDER BY outboundMessagesEmbargo.expires ASC, outboundMessages.messageID ASC\n\t\t\t LIMIT 200';\n\t\t\n\t\t$oStmt = dbManager::getInstance()->prepare($query);\n\t\t$oStmt->bindValue(':State', 'InProcess');\n\t\t$oStmt->bindValue(':TsNow', $tsNow);\n\t\t$oStmt->bindValue(':OutboundTypeID', commsOutboundType::T_SMS);\n\t\tif ( $oStmt->execute() ) {\n\t\t\tforeach ( $oStmt as $row ) {\n\t\t\t\ttry {\n\t\t\t\t\t$oMessage = commsOutboundManager::newMessage($row['outboundTypeID']);\n\t\t\t\t\t$oMessage->loadFromArray($row);\n\t\t\t\t\t\n\t\t\t\t\tself::expireMessage($oMessage);\n\t\t\t\t\t++$i;\n\t\t\t\t} catch ( Exception $e ) {\n\t\t\t\t\tsystemLog::warning($e->getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$oStmt->closeCursor();\n\t\treturn $i;\n\t}", "title": "" }, { "docid": "07b6de73881dfc8674d02bf454cc6b74", "score": "0.5216549", "text": "public static function checkQueue\n\t(\n\t\t$uniID\t\t\t// <int> The UniID that is having their message queue checked.\n\t,\t$microtime\t\t// <float> The timestamp that indicates when to ignore any further queued information.\n\t)\t\t\t\t\t// RETURNS <int:str> a list of users that have updated since the time designated.\n\t\n\t// $users = AppMessages::checkQueue($uniID, $microtime);\n\t{\n\t\treturn Database::selectMultiple(\"SELECT u.uni_id, u.handle FROM user_messages_queue q INNER JOIN users u ON q.uni_id_2=u.uni_id WHERE q.uni_id_1=? AND q.date_updated > ?\", array($uniID, $microtime));\n\t}", "title": "" }, { "docid": "b0c56c9b9ba7e6e6d19cc4c74822727a", "score": "0.5204123", "text": "public function actionQueue(){\n\n //var_dump($r);\n\n\n $r = DelayTask::instance()->getQueue()->stats();\n\n print_r($r);\n }", "title": "" }, { "docid": "a2e36f9fd93fe1d7045ea8cd25be507b", "score": "0.5164019", "text": "function um_verified_admin_queue_extend( $args ) {\r\n\t$args['meta_query'][] = array(\r\n\t\t\t'key' => '_um_verified',\r\n\t\t\t'value' => 'pending',\r\n\t\t\t'compare' => '='\r\n\t);\r\n\treturn $args;\r\n}", "title": "" }, { "docid": "af7d51221e7b89c5d74b6ecf1e63b428", "score": "0.51625276", "text": "public function testGetQueueResults()\n {\n $clientMock = $this->getMockBuilder(Client::class)\n ->disableOriginalConstructor()\n ->getMock();\n\n $queueManager = new QueueManager($clientMock);\n\n $this->assertInternalType('array', $queueManager->getQueueResults());\n }", "title": "" }, { "docid": "b2ac684ef58cd5a7695551c730e2c54f", "score": "0.5154846", "text": "public function getMessagesCurrentCountOnQueue($queue);", "title": "" }, { "docid": "65350d74c49f18569cd304f17232a9a1", "score": "0.5148894", "text": "public function listQueues($request);", "title": "" }, { "docid": "cd8a156ff964751e03f55685c95c4965", "score": "0.5147853", "text": "abstract public function run_queue();", "title": "" }, { "docid": "dc20e5f81c3cc7a770b59ce8fac8f6b9", "score": "0.5133507", "text": "public function getQueue()\n {\n }", "title": "" }, { "docid": "263dbc8904f9b81deb95d7a5478f1972", "score": "0.5129039", "text": "function stats($key, $queue=false)\n {\n $owners = array();\n if ($queue) {\n $owners[] = \"queue:$queue\";\n $owners[] = \"site:\" . common_config('site', 'server');\n }\n if (isset($this->master)) {\n $this->master->stats($key, $owners);\n } else {\n $monitor = new QueueMonitor();\n $monitor->stats($key, $owners);\n }\n }", "title": "" }, { "docid": "d9c5ddb027e4e5f7a4588a6013739368", "score": "0.5121998", "text": "function command__process_queue(\\Walkthrough\\Connection $connection, \\ArrayAccess $command_line) {\n $connection->login();\n\n $process_queue_length = 1;\n if (!empty($command_line['process_queue_length'])) {\n $process_queue_length = $command_line['process_queue_length'];\n }\n\n $return_code = 0;\n for ($i = 0; $i < $process_queue_length; $i++) {\n // Query queue.\n $queue = $connection->getScreeningQueue();\n if (empty($queue)) {\n echo \"Queue is empty.\\n\";\n break;\n }\n\n $walkthrough_to_play = array_pop($queue);\n $result = process_screening($connection, $command_line, $walkthrough_to_play);\n\n echo ($result == 0) ? '.' : 'E';\n $return_code |= $result;\n }\n echo \"\\n\";\n\n return $return_code;\n}", "title": "" }, { "docid": "a30dbd0fd42e86eddb1f6e6508ea3196", "score": "0.5106687", "text": "public static function getQueueStats() {\n\t\t$return = array();\n\t\t$query = '\n\t\t\tSELECT outboundTypes.description, COUNT(*) AS count\n\t\t\t FROM '.system::getConfig()->getDatabase('comms').'.outboundMessagesQueue\n\t\t\t INNER JOIN '.system::getConfig()->getDatabase('comms').'.outboundMessages USING (messageID)\n\t\t\t INNER JOIN '.system::getConfig()->getDatabase('comms').'.outboundTypes USING (outboundTypeID)\n\t\t\t GROUP BY outboundMessages.outboundTypeID\n\t\t\t ORDER BY outboundTypes.description ASC';\n\t\t\n\t\t$oStmt = dbManager::getInstance()->prepare($query);\n\t\tif ( $oStmt->execute() ) {\n\t\t\tforeach ( $oStmt as $row ) {\n\t\t\t\t$return[$row['description']] = $row['count'];\n\t\t\t}\n\t\t}\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "d7acea0a62e8740f6cb962ef2b728fa5", "score": "0.51040584", "text": "public function getAPQueue($limit=250) {\n $this->debug->append(\"STA \" . __METHOD__, 4);\n $stmt = $this->mysqli->prepare(\"\n SELECT\n a.id,\n a.username,\n c.ap_threshold as ap_threshold,\n c.address as coin_address,\n IFNULL(\n ROUND(\n (\n SUM( IF( ( t.type IN ('Credit','Bonus') AND b.confirmations >= \" . $this->config['confirmations'] . \") OR t.type = 'Credit_PPS', t.amount, 0 ) ) -\n SUM( IF( t.type IN ('Debit_MP', 'Debit_AP'), t.amount, 0 ) ) -\n SUM( IF( ( t.type IN ('Donation','Fee') AND b.confirmations >= \" . $this->config['confirmations'] . \") OR ( t.type IN ('Donation_PPS', 'Fee_PPS', 'TXFee') ), t.amount, 0 ) )\n ), 8\n ), 0\n ) AS confirmed\n FROM $this->table AS t\n LEFT JOIN \" . $this->block->getTableName() . \" AS b\n ON t.block_id = b.id\n LEFT JOIN \" . $this->user->getTableName() . \" AS a\n ON t.account_id = a.id\n LEFT JOIN \" . $this->coinAddress->getTableName() . \" AS c\n ON a.id = c.account_id AND '$this->currency' = c.coin\n WHERE t.archived = 0 AND c.ap_threshold > 0 AND c.address IS NOT NULL AND c.address != ''\n GROUP BY t.account_id\n HAVING confirmed > c.ap_threshold AND confirmed > \" . $this->config['txfee_auto'] . \"\n LIMIT ?\");\n if ($this->checkStmt($stmt) && $stmt->bind_param('i', $limit) && $stmt->execute() && $result = $stmt->get_result())\n return $result->fetch_all(MYSQLI_ASSOC);\n return $this->sqlError();\n }", "title": "" }, { "docid": "effc8cb757fcbf64419634ef20aefa70", "score": "0.5090033", "text": "public function getQueueName(): string\n {\n return ContentfulPageSearchConstants::CONTENTFUL_SYNC_SEARCH_QUEUE;\n }", "title": "" }, { "docid": "58b3057dc480d274e76d92f39fd9d6f2", "score": "0.5088645", "text": "private function replication_check_queue( ) {\n\t\tglobal $path, $wgArchiveLinksConfig;\n\t\tif ( file_exists( \"$path/extensions/ArchiveLinks/spider-temp.txt\" ) ) {\n\t\t\t$file = file_get_contents( \"$path/extensions/ArchiveLinks/spider-temp.txt\" );\n\t\t\t$file = unserialize( $file );\n\t\t} else {\n\t\t\t//we don't have any temp file, lets get a block of jobs to do and make one\n\t\t\t$this->db_result['job-fetch'] = $this->db_slave->select( 'el_archive_queue', '*',\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'delay_time <= \"' . time() . '\"',\n\t\t\t\t\t\t'in_progress' => '0')\n\t\t\t\t\t, __METHOD__,\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'LIMIT' => '15',\n\t\t\t\t\t\t'ORDER BY' => 'queue_id ASC'\n\t\t\t\t\t));\n\t\t\t//echo $this->db_result['job-fetch'];\n\n\t\t\t$this->jobs = array();\n\n\t\t\t$wait_time = wfGetLB()->safeGetLag( $this->db_slave ) * 3;\n\t\t\t$pid = (string) microtime() . ' - ' . getmypid();\n\t\t\t$time = time();\n\n\t\t\t//echo $pid;\n\n\t\t\t$this->jobs['pid'] = $pid;\n\t\t\t$this->jobs['execute_time'] = $wait_time + $time;\n\n\t\t\tif ($this->db_result['job-fetch']->numRows() > 0) {\n\t\t\t\t//$row = $this->db_result['job-fetch']->fetchRow();\n\t\t\t\twhile ( $row = $this->db_result['job-fetch']->fetchRow() ) {\n\t\t\t\t\t//var_export($row);\n\n\t\t\t\t\tif ( $row['insertion_time'] >= $row['insertion_time'] + $wait_time ) {\n\t\t\t\t\t\tif ( $row['in_progress'] === '0') {\n\t\t\t\t\t\t\t$retval = $this->reserve_job( $row );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t//in_progress is not equal to 0, this means that the job was reserved some time before\n\t\t\t\t\t\t\t//it could have been by a previous instance of this spider (assuming not running in a loop)\n\t\t\t\t\t\t\t//or a different spider entirely, since we don't have have a temp file to go on we have to assume\n\t\t\t\t\t\t\t//it was a different spider (it could have been deleted by a user), we will only ignore the in_progress\n\t\t\t\t\t\t\t//lock if it has been a long time (2 hours by default) since the job was initally reserved\n\t\t\t\t\t\t\t$reserve_time = explode( ' ', $row['in_progress'] );\n\t\t\t\t\t\t\t$reserve_time = $reserve_time[2];\n\n\t\t\t\t\t\t\tisset( $wgArchiveLinksConfig['in_progress_ignore_delay'] ) ? $ignore_in_prog_time = $wgArchiveLinksConfig['in_progress_ignore_delay'] :\n\t\t\t\t\t\t\t\t$ignore_in_prog_time = 7200;\n\n\t\t\t\t\t\t\tif ( $time - $reserve_time - $wait_time > $ignore_in_prog_time ) {\n\t\t\t\t\t\t\t\t$retval = $this->reserve_job( $row );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//let's wait for everything to replicate, add to temp file and check back later\n\t\t\t\t\t\t$this->jobs[] = $row;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//var_dump( $this->jobs );\n\n\t\t\t$this->jobs = serialize( $this->jobs );\n\t\t\t//file_put_contents( \"$path/extensions/ArchiveLinks/spider-temp.txt\", $this->jobs );\n\t\t}\n\n\t\tif ( $retval !== true ) {\n\t\t\t$retval = false;\n\t\t}\n\t\treturn $retval;\n\t}", "title": "" }, { "docid": "082953130eda0271c6c07e9ebcbe88d0", "score": "0.50782293", "text": "function msg_get_queue($key, $perms) {}", "title": "" }, { "docid": "fe78f4271776d0ff187b1b2df583ef7e", "score": "0.5074828", "text": "function user_check_queue()\n {\n if (isset($_POST['user_pub'])) {\n $user_pub = $_POST['user_pub'];\n } else {\n result(\"missing user_pub from POST\", \"user_check_queue\", 1); // exit \n }\n\n $user_pub = str_replace('-', '+', $user_pub);\n $user_pub = str_replace('_', '/', $user_pub);\n $user_pub = str_replace('~', '=', $user_pub);\n\n if (!validatePublicKey($user_pub)) {\n result(\"user_pub size is invalid!\", \"user_check_queue\", 1);\n }\n\n $hashedID = hash(\"sha256\", base64_decode($user_pub));\n $globalUserDir = $GLOBALS['server_user_directory'].$hashedID;\n \n $msgs = array_diff(scandir($globalUserDir.'/queue/', 1), array('..', '.', '.DS_Store'));\n if (count($msgs) > 0) {\n die(json_encode(['msgs' => $msgs, 'called' => 'user_check_queue', 'error' => 0]));\n }else {\n result(\"no messages found in queue\", \"user_check_queue\", 1);\n }\n }", "title": "" }, { "docid": "b1fd2ac9f368a8944791c5c4b49b9065", "score": "0.5054721", "text": "function set_queue_states($user,$device,$onoroff='on') {\n\t\tglobal $agi;\n\t\tglobal $astman;\n\t\tglobal $DEVSTATE;\n\t\t$response = $astman->send_request('Command',array('Command'=>\"queue show\"));\n\t\t$response1=explode(\"\\n\",trim($response['data']));\n\t\t// Lets try and process our results here.\n\t\t$inqueue='false';\n\t\tcli_debug(\"User is $user\");\n\t\tforeach ($response1 as $item) {\n\t\t\t$item1=trim($item);\n\t\t\tif ($inqueue === 'false') {\n if (preg_match('/^(\\d+)/',$item1)) {\n\t\t\t\t\tpreg_match_all (\"/(\\\\d+)/is\", $item1,$matches);\n\t\t\t\t\tif ($matches[1][0] != '') {\n\t\t\t\t\t\t$queues[]=$matches[1][0];\n\t\t\t\t\t\t$inqueue=$matches[1][0];\n\t\t\t\t\t\t$logged_agents_array[$inqueue][]='';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// We should test to see if the item is an Agent description\n if (strstr($item1,'Local/') !== false) {\n\t\t\t\t\tpreg_match_all (\"/(Local).*?(\\\\d+)/is\", $item1, $matches);\n\t\t\t\t\t$loggedagent=$matches[2][0];\n\t\t\t\t\t$item1='ADD';\n\t\t\t\t}\n\n\t\t\t\tswitch ($item1) {\n\t\t\t\t\tcase '':\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '\\n':\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'No Members':\n\t\t\t\t\t\tcli_debug(\"Queue $inqueue has no one logged in\");\n\t\t\t\t\t\t$inqueue='false';\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'No Callers':\n\t\t\t\t\tcase 'Callers':\n\t\t\t\t\t\tcli_debug(\"Finished processing members for $inqueue\");\n\t\t\t\t\t\t$inqueue='false';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'ADD':\n\t\t\t\t\t\t$logged_agents_array[$inqueue][]=$loggedagent;\n\t\t\t\t\t\tcli_debug(\"Agent $loggedagent in queue $inqueue\");\n\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tcli_debug(\"No Matches\");\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcli_debug(\"Finished sorting\");\n\t\tforeach ($queues as $queueno) {\n\t\t\tcli_debug(\"Agent is $user\");\n\t\t\tif ($onoroff=='on'){\n\t\t\t\t$queuestat=(array_search(trim($user),$logged_agents_array[$queueno]))?'INUSE':'NOT_INUSE';\n\t\t\t} else {\n\t\t\t\t$queuestat=(array_search(trim($user),$logged_agents_array[$queueno]))?'INUSE':'NOT_INUSE';\n\t\t\t}\n\t\t\t$agi->set_variable($DEVSTATE.'(Custom:QUEUE'.$device.'*'.$queueno.')',$queuestat);\n\t\t}\n\t}", "title": "" }, { "docid": "db4f50dc78062bb714d7606c58b2867f", "score": "0.50534886", "text": "public function test_send_empty_queue()\r\n\t{\r\n\t\t$mq = new MailQueue;\r\n\t\t$this->assertCount(0, $mq->getPending());\r\n\t\t$mq->send(1);\r\n\t\t$this->assertCount(0, $mq->getPending());\r\n\t}", "title": "" }, { "docid": "c7e157949c4ee53f59127dec5d361491", "score": "0.50499034", "text": "public static function vps_queue_timer()\n\t{\n\t\t/**\n\t\t * @var \\GlobalData\\Client\n\t\t */\n\t\tglobal $global;\n\t\t/**\n\t\t * @var \\React\\MySQL\\Connection\n\t\t */\n\t\t$results = self::$db->select('*')->from('queue_log')->leftJoin('vps', 'vps_id=history_type')->where('history_section=\"vpsqueue\"')->query();\n\t\tif (is_array($results) && sizeof($results) > 0) {\n\t\t\t$queues = [];\n\t\t\tforeach ($results as $results[0]) {\n\t\t\t\tif (is_numeric($results[0]['history_type'])) {\n\t\t\t\t\tif (is_null($results[0]['vps_id'])) {\n\t\t\t\t\t\t// no vps id in db matching, delete\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$id = $results[0]['vps_server'];\n\t\t\t\t\t\tif (in_array($id, array_keys($global->hosts))) {\n\t\t\t\t\t\t\tif (!in_array($id, array_keys($queues))) {\n\t\t\t\t\t\t\t\t$queues[$id] = [];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$queues[$id][] = $results[0];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$id = str_replace('vps', '', $results[0]['history_type']);\n\t\t\t\t\tif (in_array($id, array_keys($global->hosts))) {\n\t\t\t\t\t\tif (!in_array($id, array_keys($queues))) {\n\t\t\t\t\t\t\t$queues[$id] = [];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$queues[$id][] = $results[0];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (sizeof($queues) > 0) {\n\t\t\t\tforeach ($queues as $server_id => $rows) {\n\t\t\t\t\t$server_data = $global->hosts[$server_id];\n\t\t\t\t\t//if ($server_id != 467) {\n\t\t\t\t\t//Worker::safeEcho('Wanted To Process Queues For Server '.$server_id.' '.$server_data['vps_name'].PHP_EOL);\n\t\t\t\t\t//continue;\n\t\t\t\t\t//} else {\n\t\t\t\t\tWorker::safeEcho('Processing Queues For Server '.$server_id.' '.$server_data['vps_name'].PHP_EOL);\n\t\t\t\t\t//}\n\t\t\t\t\t$var = 'vps_host_'.$server_id;\n\t\t\t\t\tif (!isset($global->$var)) {\n\t\t\t\t\t\t$global->$var = 0;\n\t\t\t\t\t}\n\t\t\t\t\tif ($global->cas($var, 0, 1)) {\n\t\t\t\t\t\t$task_connection = new AsyncTcpConnection('Text://127.0.0.1:2208');\n\t\t\t\t\t\t$task_connection->send(json_encode(['type' => 'vps_queue_task', 'args' => [\n\t\t\t\t\t\t\t'id' => $server_id,\n\t\t\t\t\t\t]]));\n\t\t\t\t\t\t$task_connection->onMessage = function ($connection, $task_result) use ($task_connection, $server_id, $server_data) {\n\t\t\t\t\t\t\t$task_result = json_decode($task_result, true);\n\t\t\t\t\t\t\t//Worker::safeEcho(\"Got Result \".var_export($task_result, true).PHP_EOL);\n\t\t\t\t\t\t\t//Worker::safeEcho(\"Bandwidth Update for \".$_SESSION['name'].\" content: \".json_encode($message_data['content']).\" returned:\".var_export($task_result,TRUE).PHP_EOL);\n\t\t\t\t\t\t\tif (trim($task_result['return']) != '') {\n\t\t\t\t\t\t\t\tself::run_command($server_id, $task_result['return'], false, 'room_1', 80, 24, true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$task_connection->close();\n\t\t\t\t\t\t};\n\t\t\t\t\t\t$task_connection->connect();\n\t\t\t\t\t\t$global->$var = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b32950e6d5242acb4f28e70f3093feee", "score": "0.50419474", "text": "public function peekQueue($queueName, $index = 0, $limit = 20);", "title": "" }, { "docid": "a61b978354d9439dadb4b38858558525", "score": "0.50268626", "text": "public function get()\n\t{\n\t\t$msg = null;\n\n\t\ttry\n\t\t{\n\t\t\t$rtime = date( 'Y-m-d H:i:s', time() + $this->rtime );\n\t\t\t$stmt = $this->conn->create( $this->sql['reserve'] );\n\n\t\t\t$stmt->bind( 1, $this->cname );\n\t\t\t$stmt->bind( 2, $rtime );\n\t\t\t$stmt->bind( 3, $this->queue );\n\t\t\t$stmt->bind( 4, $rtime );\n\n\t\t\t$stmt->execute()->finish();\n\n\n\t\t\t$stmt = $this->conn->create( $this->sql['get'] );\n\n\t\t\t$stmt->bind( 1, $this->queue );\n\t\t\t$stmt->bind( 2, $this->cname );\n\t\t\t$stmt->bind( 3, $rtime );\n\n\t\t\t$result = $stmt->execute();\n\n\t\t\tif( ( $row = $result->fetch() ) !== false ) {\n\t\t\t\t$msg = new \\Aimeos\\MW\\MQueue\\Message\\Standard( $row );\n\t\t\t}\n\n\t\t\t$result->finish();\n\t\t}\n\t\tcatch( \\Exception $e )\n\t\t{\n\t\t\tthrow new \\Aimeos\\MW\\MQueue\\Exception( $e->getMessage() );\n\t\t}\n\n\t\treturn $msg;\n\t}", "title": "" }, { "docid": "81a3207cdacea4259447f9d15880f5b1", "score": "0.4993285", "text": "public function mailQueueAction(ServerQueue $server)\n {\n $request = new \\Zimbra\\Admin\\Request\\MailQueueAction($server);\n return $this->getClient()->doRequest($request);\n }", "title": "" }, { "docid": "3e22f1b6a73461b28ee0828d66c425cb", "score": "0.499185", "text": "public function get_available_queue() {\n\t\treturn array() ;\n\t}", "title": "" }, { "docid": "27c84886ce43a32b36b677632d33d388", "score": "0.4983345", "text": "public function deletefanouts($queue)\n\t{\n\t\t$stats = $this->stats();\n\t\t$keys = $stats->getKeys();\n\t\t$target = $queue . '+';\n\t\t$target_length = strlen($target);\n\t\t$results = array('success'=>0, 'failures'=>0);\n\t\tforeach ($keys as $key) {\n\t\t\tif (substr($key, 0, $target_length) == $target) {\n\t\t\t\t$res = $this->delete($key);\n\t\t\t\tif ($res) {\n\t\t\t\t\t$results['success']++;\n\t\t\t\t} else {\n\t\t\t\t\t$results['failures']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $results;\n\t}", "title": "" }, { "docid": "3ec5d438ece584a17a9f453101514953", "score": "0.4978671", "text": "function queryServers($ini_array) {\n\n require \"gameq/GameQ.php\";\n\n // Populate the $servers array from the ini file, ready to pass to GameQ\n $servers = array();\n foreach ($ini_array as $section => $value) {\n if ($section != 'settings')\n $servers[$section] = array($value['game'], $value['address'], $value['port']);\n }\n\n // Create a new GameQ object and pass it a list of servers\n $gq = new GameQ();\n $gq->addServers($servers);\n\n // Set timeout from the config file\n $gq->setOption('timeout', $ini_array['settings']['timeout']);\n $gq->setOption('sock_count', $ini_array['settings']['sock_count']);\n $gq->setOption('sock_start', $ini_array['settings']['sock_start']);\n\n // This filter makes sure a subset of data is always available, next to the normal data\n $gq->setFilter('normalise');\n\n // Send request(s)\n $results = $gq->requestData();\n\n return $results;\n}", "title": "" }, { "docid": "0ab5c5320593ad9e7965f52c6a0c5b60", "score": "0.4974442", "text": "function printQueue()\n{\n\techo $GLOBALS['queue'];\n}", "title": "" }, { "docid": "b7ead5c7d0a51407b006822c634199eb", "score": "0.49679348", "text": "private function _fetch_queue()\n\t{\n\t\tif ( ! array_key_exists($this->queue, $this->EE->session->cache['minimee'][$this->type]))\n\t\t{\n\t\t\tthrow new Exception('Could not find a queue of files by the name of \\'' . $this->queue . '\\'.');\n\t\t}\n\n\t\t// clear queue just in case\n\t\t$this->filesdata = array();\n\n\t\t$this->template = $this->EE->session->cache['minimee'][$this->type][$this->queue]['template'];\n\n\t\t// set our Minimee::filesdata array\n\t\t$this->_set_filesdata($this->EE->session->cache['minimee'][$this->type][$this->queue]['files']);\n\n\t\t// No files found?\n\t\tif ( ! is_array($this->filesdata) OR count($this->filesdata) == 0)\n\t\t{\n\t\t\tthrow new Exception('No files found in the queue named \\'' . $this->type . '\\'.');\n\t\t}\n\t}", "title": "" }, { "docid": "e7b466da8625cfdedbe883dd9c1d74c9", "score": "0.49614093", "text": "function i5_dtaq_send($queue, $key, $data) {}", "title": "" }, { "docid": "77291fa243d81f9972b9baafe888128b", "score": "0.49451864", "text": "function queue($address, $task, $msg, $ttr = 30, $clear = false, $priority=1000) {\r\n\r\n require_once(SLOODLE_LIBROOT.'/beanstalk/Beanstalk.php');\r\n\r\n global $CFG;\r\n // Make a unique name for the sites queue\r\n $sitequeue = defined('SLOODLE_MESSAGE_QUEUE_SERVER_BEANSTALK_PREFIX') ? SLOODLE_MESSAGE_QUEUE_SERVER_BEANSTALK_PREFIX : '';\r\n\r\n $tube = $sitequeue.'-'.md5($address);\r\n //$tube = 'default';\r\n //$tube = md5($address);\r\n\r\n /*\r\n $sbhost = ( defined(SLOODLE_MESSAGE_QUEUE_SERVER_BEANSTALK_HOST) && SLOODLE_MESSAGE_QUEUE_SERVER_BEANSTALK_HOST ) ? SLOODLE_MESSAGE_QUEUE_SERVER_BEANSTALK_HOST : '127.0.0.1';\r\n $sbport = ( defined(SLOODLE_MESSAGE_QUEUE_SERVER_BEANSTALK_PORT) && SLOODLE_MESSAGE_QUEUE_SERVER_BEANSTALK_PORT ) ? SLOODLE_MESSAGE_QUEUE_SERVER_BEANSTALK_PORT : 11300;\r\n $sbtimeout = ( defined(SLOODLE_MESSAGE_QUEUE_SERVER_BEANSTALK_TIMEOUT) && SLOODLE_MESSAGE_QUEUE_SERVER_BEANSTALK_TIMEOUT ) ? SLOODLE_MESSAGE_QUEUE_SERVER_BEANSTALK_TIMEOUT : 1;\r\n $sbpersistent = ( defined(SLOODLE_MESSAGE_QUEUE_SERVER_BEANSTALK_PERSISTENT) && SLOODLE_MESSAGE_QUEUE_SERVER_BEANSTALK_PERSISTENT ) ? SLOODLE_MESSAGE_QUEUE_SERVER_BEANSTALK_PERSISTENT : true;\r\n $sbconfig = array(\r\n 'persistent' => $sbpersistent,\r\n 'host' => $sbhost,\r\n 'port' => $sbport,\r\n 'timeout' => $sbtimeout\r\n );\r\n */\r\n\r\n //$sb = new Socket_Beanstalk( $sbconfig );\r\n $sb = new Socket_Beanstalk();\r\n if (!$sb->connect()) {\r\n return false;\r\n }\r\n\r\n $sb->choose($tube);\r\n\r\n // Jobs will be handled more-or-less first-in, first-out, unless superseced by a new job and cleared.\r\n // \r\n //$priority = time();\r\n $header = $task.'|'.$address;\r\n $msg = $header.\"\\n\".$msg;\r\n\r\n if (!$pid = $sb->put($priority, 0, $ttr, $msg)) {\r\n return false;\r\n }\r\n\r\n // Delete all jobs with an early pid than the one we just put in there.\r\n if ($clear) {\r\n while ($job = $sb->peekReady()) {\r\n if ($job['id'] >= $pid) {\r\n break;\r\n }\r\n // Only delete jobs for the same task.\r\n if (strpos( $job['body'], $header) == 0) {\r\n $sb->delete($job['id']);\r\n }\r\n }\r\n }\r\n\r\n return true;\r\n \r\n }", "title": "" }, { "docid": "5aab037996a7ad24baa684f1ff6367ae", "score": "0.4944784", "text": "public function action() {\n\t\tself::$_queue = new \\Flux\\PingbackKeywordQueue();\n\n\t\t// If this is the primary thread, then run some cleanup/statistics\n\t\tif ($this->getPrimaryThread()) {\n\t\t\t$this->calculatePendingRecordCount();\n\t\t\t// Only return if there are other threads to handle the processes\n\t\t\tif ($this->getDaemon()->getThreads() > 1) { return true; }\n\t\t}\n\n\t\t$queue_items = $this->getNextItems();\n\t\tif (count($queue_items) > 0) {\n\t\t\t/* @var $queue_item \\Flux\\PingbackKeywordQueue */\n\t\t\tforeach ($queue_items as $queue_item) {\n\t\t\t\ttry {\n\t\t\t\t\t// Process the queue item\n\t\t\t\t\t$pingback = $queue_item->getPingback()->getPingback();\n\t\t\t\t\t$this->log('Pingback for ' . $queue_item->getUrl() . ' to ' . $pingback->getUrl(), array($this->pid, $queue_item->getId()));\n\n\t\t\t\t\t$xml = array($queue_item->getUrl(), $pingback->getUrl() . '?' . urlencode($queue_item->getKeyword()));\n\t\t\t\t\t$request = xmlrpc_encode_request(\"pingback.ping\", $xml);\n\t\t\t\t\t//$request = xmlrpc_encode_request(\"demo.sayHello\", \"\");\n\n\t\t\t\t\t$xmlresponse = $pingback->sendXmlRpc($pingback->getRpcUrl(), $request);\n\t\t\t\t\t$response = xmlrpc_decode($xmlresponse);\n\n\t\t\t\t\tif (is_array($response) && isset($response['faultString'])) {\n\t\t\t\t\t\t$fault_code = isset($response['faultCode']) ? $response['faultCode'] : 0;\n\t\t\t\t\t\t$fault_string = isset($response['faultString']) ? $response['faultString'] : 0;\n\t\t\t\t\t\tif (strpos($fault_string, 'You are posting comments too quickly') !== false) {\n\t\t\t\t\t\t\t// We are posting too fast, so delay this entry for 1 minute\n\t\t\t\t\t\t\tthrow new \\Exception($fault_string);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow new \\Exception($fault_code . ' :: ' . $fault_string);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (is_string($response)) {\n\t\t\t\t\t\t$this->log('Pingback response: ' . $response, array($this->pid, $queue_item->getId()));\n\t\t\t\t\t}\n\n\t\t\t\t\t// Unset the queue item and flag it as processed\n\t\t\t\t\tself::$_queue->updateMultiple(\n\t\t\t\t\t\tarray('_id' => $queue_item->getId()),\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'$unset' => array(\n\t\t\t\t\t\t\t\t'__pid_pingback' => 1\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'$set' => array(\n\t\t\t\t\t\t\t\t'expire_at' => new \\MongoDate(strtotime('now + 5 minutes'))\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t),\n\t\t\t\t\t\tarray('multiple' => false, 'upsert' => false)\n\t\t\t\t\t);\n\t\t\t\t} catch (\\Exception $e) {\n\t\t\t\t\t$this->log('Error ' . $e->getMessage(), array($this->pid, $queue_item->getId()));\n\t\t\t\t\t// Unset the queue item and flag it as processed\n\t\t\t\t\tself::$_queue->updateMultiple(\n\t\t\t\t\t\tarray('_id' => $queue_item->getId()),\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'$unset' => array(\n\t\t\t\t\t\t\t\t'__pid_pingback' => 1\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'$set' => array(\n\t\t\t\t\t\t\t\t'error_message' => $e->getMessage(),\n\t\t\t\t\t\t\t\t'is_error' => true,\n\t\t\t\t\t\t\t\t'is_processed' => false,\n\t\t\t\t\t\t\t\t'next_pingback_time' => new \\MongoDate(strtotime('now + ' . ((int)$queue_item->getAttempts()^((int)$queue_item->getAttempts() + 1)) . ' minutes')) // increment the next attempt time from 1^2 = 2 minute, 2^3 = 8 minutes, 3^4 = 27 minutes, , 4^5 = 17 hours\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t),\n\t\t\t\t\t\tarray('multiple' => false, 'upsert' => false)\n\t\t\t\t\t);\n\t\t\t\t}\n\n\n\t\t\t}\n\t\t} else {\n\t\t\t$this->log('No more items to process', array($this->pid));\n\t\t\tsleep(5);\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "f6c4a228a3aa4b3f7079bdda257d6e4c", "score": "0.48976794", "text": "function product_queue(){\n\t$query = \"SELECT * FROM product WHERE product.status = 'queued'\";\n\t$result = db_query($query, true);\n\treturn $result;\n}", "title": "" }, { "docid": "55bef432e06b765f63ce35de739231f8", "score": "0.48926774", "text": "public function getQueueUrl()\n\t{\n\t\ttry {\n\t\t\t$result = $this->client->getQueueUrl(array(\n\t\t\t\t'QueueName' => 'reportresults-dev',\n\t\t\t\t'QueueOwnerAWSAccountId' => '',\n\t\t\t));\n\t\t\treturn $result;\n\t\t}\n\t\tcatch (\\Aws\\Sqs\\Exception\\SqsException $e)\n\t\t{\n\t\t\techo $e->getMessage();\n\t\t}\n\t}", "title": "" }, { "docid": "9eb21a9eb76610a5c759484a4617d23e", "score": "0.48919407", "text": "public function declareQueue();", "title": "" }, { "docid": "54790cd2490657e385b95300262c9e23", "score": "0.4891754", "text": "public function statQueue(): array\n {\n return $this->process->statQueue();\n }", "title": "" }, { "docid": "31bcbb5ec9c3823a2549cf36f689d369", "score": "0.48897064", "text": "public function getMPQueue($limit=250) {\n $stmt = $this->mysqli->prepare(\"\n SELECT\n a.id,\n a.username,\n c.ap_threshold as ap_threshold,\n c.address as coin_address,\n p.id AS payout_id,\n IFNULL(\n ROUND(\n (\n SUM( IF( ( t.type IN ('Credit','Bonus') AND b.confirmations >= \" . $this->config['confirmations'] . \") OR t.type = 'Credit_PPS', t.amount, 0 ) ) -\n SUM( IF( t.type IN ('Debit_MP', 'Debit_AP'), t.amount, 0 ) ) -\n SUM( IF( ( t.type IN ('Donation','Fee') AND b.confirmations >= \" . $this->config['confirmations'] . \") OR ( t.type IN ('Donation_PPS', 'Fee_PPS', 'TXFee') ), t.amount, 0 ) )\n ), 8\n ), 0\n ) AS confirmed\n FROM \" . $this->payout->getTableName() . \" AS p\n JOIN \" . $this->user->getTableName() . \" AS a\n ON p.account_id = a.id\n JOIN \" . $this->getTableName() . \" AS t\n ON t.account_id = p.account_id\n LEFT JOIN \" . $this->block->getTableName() . \" AS b\n ON t.block_id = b.id\n LEFT JOIN \" . $this->coinAddress->getTableName() . \" AS c\n ON a.id = c.account_id AND '$this->currency' = c.coin\n WHERE p.completed = 0 AND t.archived = 0 AND c.address IS NOT NULL AND c.address != ''\n GROUP BY t.account_id\n HAVING confirmed > \" . $this->config['txfee_manual'] . \"\n LIMIT ?\");\n if ($this->checkStmt($stmt) && $stmt->bind_param('i', $limit) && $stmt->execute() && $result = $stmt->get_result())\n return $result->fetch_all(MYSQLI_ASSOC);\n return $this->sqlError('E0050');\n }", "title": "" }, { "docid": "20851de52796c2d6142e87d181e7208d", "score": "0.48727784", "text": "public function size($queue = null)\n {\n throw new Exception('The size method is not support for aliyun-mns');\n }", "title": "" }, { "docid": "af6269a0a457dc789ff0e56a38a87995", "score": "0.4871174", "text": "public function get_queue() {\n\t\treturn $this->queue ;\n\t}", "title": "" }, { "docid": "cd84f686006d1ea31bfc1fa9f95e1aed", "score": "0.48699826", "text": "public function broadcastQueue()\n {\n //\n }", "title": "" }, { "docid": "6016910a5edbf712abdc4342a66c08ee", "score": "0.4862082", "text": "function ShowRechercheQueue ( $CurrentPlanet, $CurrentUser ) {\n\tglobal $lang;\n\t////////////////////////////////////////////////////\n\t$CurrentQueuebuild = $CurrentPlanet['b_building_id'];\n\tif ($CurrentQueuebuild != 0) \n\t{\n\t\t$QueueArray = explode ( \";\", $CurrentQueuebuild );\n\t\t$compteurqueue = count ( $QueueArray );\n\t\t\t\t$ListIDArray = explode ( \",\", $QueueArray[0]);\n\t\t\t\tif($ListIDArray[0]!='')\n\t\t\t\t{\n\t\t\t\t\t$Elementrecher = $ListIDArray[0];\n\t\t\t\t\t$Level = $ListIDArray[1];\n\t\t\t\t\t$BuildTime = $ListIDArray[2];\n\t\t\t\t\t$BuildEndTime = $ListIDArray[3];\n\t\t\t\t\t$BuildMode = $ListIDArray[4]; // pour savoir si on construit ou detruit\n\t\t\t\t\t$lelabo = intval($Elementrecher);\n\t\t\t\t\tif ($lelabo == 31 or $lelabo == 14) \n\t\t\t\t\t{\n\t\t\t\t\t\t$recherchecours = true;\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$recherchecours = false;\n\t\t\t\t\t}\n\t\t\t\t}\t\t\n\t}\n\t///////////////////////////////////////////////////////\n\t$CurrentQueue = $CurrentUser['b_tech_id'];\n\t$QueueID = 0;\n\tif ($CurrentQueue != 0) {\n\t\t// Queue de fabrication documentée ... Y a au moins 1 element a construire !\n\t\t$QueueArray = explode ( \";\", $CurrentQueue );\n\t\t// Compte le nombre d'elements\n\t\t$ActualCount = count ( $QueueArray );\n\t} else {\n\t\t// Queue de fabrication vide\n\t\t$QueueArray = \"0\";\n\t\t$ActualCount = 0;\n\t}\n\n\t$ListIDRow = \"\";\n\tif ($ActualCount != 0) {\n\t\t$PlanetID = $CurrentPlanet['id'];\n\t\tfor ($QueueID = 0; $QueueID < $ActualCount; $QueueID++) {\n\t\t\t// Chaque element de la liste de fabrication est un tableau de 5 données\n\t\t\t// [0] -> Le batiment\n\t\t\t// [1] -> Le niveau du batiment\n\t\t\t// [2] -> La durée de construction\n\t\t\t// [3] -> L'heure théorique de fin de construction\n\t\t\t// [4] -> type d'action\n\t\t\t$BuildArray = explode (\",\", $QueueArray[$QueueID]);\n\t\t\t$BuildEndTime = floor($BuildArray[3]);\n\t\t\t$CurrentTime = floor(time());\n\t\t\tif ($BuildEndTime >= $CurrentTime) {\n\t\t\t\t$ListID = $QueueID + 1;\n\t\t\t\t$Element = $BuildArray[0];\n\t\t\t\t$BuildLevel = $BuildArray[1];\n\t\t\t\t$idplapla = $BuildArray[4];\n\t\t\t\t$BuildTime = $BuildEndTime - time();\n\t\t\t\t$ElementTitle = $lang['tech'][$Element];\n\t\t\t\t$WorkingPlanet = doquery(\"SELECT * FROM {{table}} WHERE `id` = '\". $idplapla .\"';\", 'planets', true);\n\t\t\t\tif ($ListID > 0) {\n\t\t\t\t\t$ListIDRow .= \"<tr>\";\n\t\t\t\t\tif ($BuildMode == 'destroy') {\n\t\t\t\t\t\t$ListIDRow .= \"\t<td class=\\\"l\\\" colspan=\\\"2\\\">\". $ListID .\".: \". $ElementTitle .\" \". $BuildLevel .\" \". $lang['destroy'] .\"</td>\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$ListIDRow .= \"\t<td class=\\\"l\\\" colspan=\\\"2\\\">\". $ListID .\".: \". $ElementTitle .\" \". $BuildLevel .\" Lancer sur la planete :\".$WorkingPlanet['name'].\"</td>\";\n\t\t\t\t\t}\n\t\t\t\t\t$ListIDRow .= \"\t<td class=\\\"k\\\">\";\n\t\t\t\t\tif ($ListID == 1) {\n\t\t\t\t\t\t$ListIDRow .= \"\t\t<div id=\\\"blc\\\" class=\\\"z\\\">\". $BuildTime .\"<br>\";\n\t\t\t\t\t\t// $ListIDRow .= \"\t\t<a href=\\\"\". INDEX_BASE .\"laboratoire&listid=\". $ListID .\"&amp;cmd=cancel&amp;planet=\". $PlanetID .\"\\\">\". $lang['DelFirstQueue'] .\"</a></div>\";\n\t\t\t\t\t\t$ListIDRow .= \"<input class='stopbuild' type=submit name=enlever[\".$ListID.\"] value=enlever /></div>\";\n\t\t\t\t\t\t$ListIDRow .= \"\t\t<script language=\\\"JavaScript\\\">\";\n\t\t\t\t\t\t$ListIDRow .= \"\t\t\tpp = \\\"\". $BuildTime .\"\\\";\\n\"; // temps necessaire (a compter de maintenant et sans ajouter time() )\n\t\t\t\t\t\t$ListIDRow .= \"\t\t\tpk = \\\"\". $ListID .\"\\\";\\n\"; // id index (dans la liste de construction)\n\t\t\t\t\t\t$ListIDRow .= \"\t\t\tpm = \\\"cancel\\\";\\n\"; // mot de controle\n\t\t\t\t\t\t$ListIDRow .= \"\t\t\tpl = \\\"\". $PlanetID .\"\\\";\\n\"; // id planete\n\t\t\t\t\t\t$ListIDRow .= \"\t\t\tt();\\n\";\n\t\t\t\t\t\t$ListIDRow .= \"\t\t</script>\";\n\t\t\t\t\t\t$ListIDRow .= \"\t\t<strong color=\\\"lime\\\"><br><font color=\\\"lime\\\">\". date(\"j/m H:i:s\" ,$BuildEndTime) .\"</font></strong>\";\n\t\t\t\t\t\tif($CurrentUser['vote'] > MAX_FINISH_BONUS_TECH)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($recherchecours)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif($idplapla != $CurrentPlanet['id'])\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$ListIDRow .=\"<div class='bloqueded'>Labo en cours de construction</div>\";\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{\n\t\t\t\t\t\t\t\t\t$ListIDRow .= \"<br><input class='build' type=submit name=finish value=Finir /></div>\";\n\t\t\t\t\t\t\t\t}\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$ListIDRow .= \"<br><input class='build' type=submit name=finish value=Finir /></div>\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$ListIDRow .= \"<div class='bloqued'>Finir</div>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$ListIDRow .= \"\t\t<font color=\\\"red\\\">\";\n\t\t\t\t\t\t// $ListIDRow .= \"\t\t<a href=\\\"\". INDEX_BASE .\"laboratoire&listid=\". $ListID .\"&amp;cmd=remove&amp;planet=\". $PlanetID .\"\\\">\". $lang['DelFromQueue'] .\"</a></font>\";\n\t\t\t\t\t\t$ListIDRow .= \"<input class='stopbuild' type=submit name=enlever[\".$ListID.\"] value=enlever /></div>\";\n\t\t\t\t\t}\n\t\t\t\t\t$ListIDRow .= \"\t</td>\";\n\t\t\t\t\t$ListIDRow .= \"</tr>\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t$RetValue['lenght'] = $ActualCount;\n\t$RetValue['buildlist'] = $ListIDRow;\n\n\treturn $RetValue;\n}", "title": "" }, { "docid": "d6110017232808f9d8ac9b7d3b42a387", "score": "0.48532033", "text": "public function getMessagesTotalCountOnQueue($queue);", "title": "" }, { "docid": "a4aed6cf3c6b209c18b785321a50ab52", "score": "0.4848781", "text": "protected function _buildMailbox()\n {\n $cacheid = $this->_mailbox->cacheid;\n\n if ($this->isBuilt() && ($this->_cacheid == $cacheid)) {\n return;\n }\n\n $this->changed = true;\n $this->_cacheid = $cacheid;\n $this->_sorted = array();\n\n $query_ob = $this->_buildMailboxQuery();\n $sortpref = $this->_mailbox->getSort(true);\n $thread_sort = ($sortpref->sortby == Horde_Imap_Client::SORT_THREAD);\n\n if ($this->_mailbox->access_search &&\n $this->_mailbox->hideDeletedMsgs()) {\n $delete_query = new Horde_Imap_Client_Search_Query();\n $delete_query->flag(Horde_Imap_Client::FLAG_DELETED, false);\n\n if (is_null($query_ob)) {\n $query_ob = array(strval($this->_mailbox) => $delete_query);\n } else {\n foreach ($query_ob as $val) {\n $val->andSearch($delete_query);\n }\n }\n }\n\n if (is_null($query_ob)) {\n $query_ob = array(strval($this->_mailbox) => null);\n }\n\n if ($thread_sort) {\n $this->_thread = $this->_threadui = array();\n }\n\n foreach ($query_ob as $mbox => $val) {\n if ($thread_sort) {\n $this->_getThread($mbox, $val ? array('search' => $val) : array());\n $sorted = $this->_thread[$mbox]->messageList()->ids;\n if ($sortpref->sortdir) {\n $sorted = array_reverse($sorted);\n }\n } else {\n $mbox_ob = IMP_Mailbox::get($mbox);\n if ($mbox_ob->container) {\n continue;\n }\n\n $res = $mbox_ob->imp_imap->search($mbox, $val, array(\n 'sort' => array($sortpref->sortby)\n ));\n if ($sortpref->sortdir) {\n $res['match']->reverse();\n }\n $sorted = $res['match']->ids;\n }\n\n $this->_sorted = array_merge($this->_sorted, $sorted);\n $this->_buildMailboxProcess($mbox, $sorted);\n }\n }", "title": "" }, { "docid": "43acd98ec408cbc0a64cfff9e1f2f767", "score": "0.48473006", "text": "function _wc_cs_get_queue( $name ) {\n\tif ( ! _wc_cs_is_queue_available( $name ) ) {\n\t\treturn false ;\n\t}\n\n\treturn _wc_cs()->queue[ $name ] ;\n}", "title": "" }, { "docid": "4b0ecc867789aa2ba424c00e74c6b3ad", "score": "0.48454013", "text": "function i5_dtaq_receive($queue, $operator, $key, $timeout = null) {}", "title": "" }, { "docid": "a4f303e262dde504a8d1bc926c522a42", "score": "0.48416606", "text": "public function getQuickSearchByBarcode($barcode)\n {\n $sql = \"SELECT *\n FROM \".$this->db->dbprefix('pack').\" p\n WHERE p.`barcode` = ?\";\n $pack = $this->db->query($sql, array($barcode))->row();\n \n if($pack === null)\n return false;\n \n if(isset($pack->id_pack))\n $id_pack = (int)$pack->id_pack;\n else\n return false;\n \n // id_pack is present -> continue\n // Check if there is history for the pack\n $sql = \"SELECT *\n FROM \".$this->db->dbprefix('shipping_pack').\" sp\n LEFT JOIN \".$this->db->dbprefix('shipping').\" s ON (sp.`id_shipping` = s.`id_shipping`)\n WHERE sp.`id_pack` = ?\n ORDER BY s.`date_delivery` DESC\";\n $shippings = $this->db->query($sql, array($id_pack))->result_array();\n\n if($shippings === null)\n {\n // Pack has no history -> consider has beeing IN\n $status = false;\n $history = false;\n }\n else\n {\n // Pack has history -> determine current status\n // Check if it is still outbound\n $sql = \"SELECT *\n FROM \".$this->db->dbprefix('shipping_pack').\" sp\n LEFT JOIN \".$this->db->dbprefix('shipping').\" s ON (sp.`id_shipping` = s.`id_shipping`)\n WHERE sp.`id_pack` = ?\n AND sp.`inbound` = 0\";\n $shippings_out = $this->db->query($sql, array($id_pack))->result();\n // Pack is still outbound\n if($shippings_out !== null)\n {\n $status = array(\n 'status' => true, // Status = true => is outbound\n 'packs' => $shippings_out,\n );\n }\n else\n // Pack is not outbound\n $status = array('status' => false);\n \n // Get the previous shipping(s) if any\n $sql = \"SELECT *\n FROM \".$this->db->dbprefix('shipping_pack').\" sp\n LEFT JOIN \".$this->db->dbprefix('shipping').\" s ON (sp.`id_shipping` = s.`id_shipping`)\n WHERE sp.`id_pack` = ?\n AND sp.`inbound` = 1\n ORDER BY s.`date_delivery` DESC\";\n $shippings_cycle = $this->db->query($sql, array($id_pack))->result();\n\n if($shippings_cycle === null)\n $history = false;\n else\n $history = $shippings_cycle; \n }\n \n $result = array(\n 'id_pack' => $id_pack,\n 'barcode' => $pack->barcode,\n 'status' => $status,\n 'history' => $history,\n );\n \n return $result;\n }", "title": "" }, { "docid": "68ff703cb13b519bff2bdc08a88160f7", "score": "0.48386207", "text": "public function QueueHistory(){\n\n\t\t$result_tmp=ALTLPController::queueHistory();\n\t\t$result = $this->AJAXFetchResponse([['d_queue_history',$result_tmp]]);\n \treturn($result);\n\t\n\t}", "title": "" }, { "docid": "c54d049a8205ffa361d8c4cc7a5821d5", "score": "0.48372698", "text": "function printcap_get_queue(&$new_etag) {\n $last_etag = trim(@file_get_contents(PRINTCAP_LAST_ETAG_PATH) ?: '-');\n\n // Curl rw.rs for queue\n $cmd = sprintf(\n \"curl -f -m5 -s -i -H %s %s | tr -d '\\\\r'\",\n escapeshellarg(\"If-None-Match: \" . $last_etag),\n escapeshellarg(PRINTCAP_QUEUE_URL)\n );\n $output = [];\n $exit_code = 1;\n exec($cmd, $output, $exit_code);\n if ($exit_code !== 0) {\n rwrs_croak(\"curl failed\\n\");\n }\n $header_queue = implode(\"\\n\", $output);\n\n // Look at HTTP headers\n $http_line = strtok($header_queue, \"\\n\");\n if (preg_match('|^HTTP/1.1 304 Not Modified$|', $http_line)) {\n echo \"curl returned 304\\n\";\n exit(0);\n }\n if (!preg_match('|^HTTP/1.1 200 OK$|', $http_line)) {\n rwrs_croak(\"curl received non-200\\n\");\n }\n\n // Parse out new ETag\n $m = null;\n if (preg_match('|(?<=^ETag: ).+$|m', $header_queue, $m)) {\n $new_etag = trim($m[0]);\n }\n\n // Parse out response body (minus headers)\n if (!preg_match('|(?<=\\n\\n).*|sm', $header_queue, $m)) {\n rwrs_croak(\"failed to find queue content\\n\");\n }\n\n // Explode headers into array\n $queue = trim($m[0]);\n if (empty($queue)) {\n return [];\n }\n return explode(\"\\n\", $queue);\n}", "title": "" }, { "docid": "75accf87a04ece96c247a3a75c25c8ef", "score": "0.48353013", "text": "public function queueMessage($msg_id, $med_id, $rcp_id, $sender_address) {\n $date = $this->getDateAndTime();\n $queueddate = $date['dateandtime'];\n $queuedtime = $date['time'];\n $expected_send_date = addTime($queueddate, $this->sendfrequency);\n $expected_send_time = date(\"H:i:s\", strtotime($expected_send_date));\n //frequency\n //sent_times\n //status\n }", "title": "" }, { "docid": "ed1ab1523c95643fd2dceeac8ae2439e", "score": "0.48316726", "text": "public function dequeue();", "title": "" }, { "docid": "ed1ab1523c95643fd2dceeac8ae2439e", "score": "0.48316726", "text": "public function dequeue();", "title": "" }, { "docid": "c51a5b6e337f373d50dc29551b3008e2", "score": "0.48241147", "text": "public function getTaskQueueStatus(){\r\n $Success = $this->Curl->makeGet($this->AElfClientUrl.self::$WA_GETTASKQUEUESTATUS)->exec();\r\n if ($Success->hasError()) {\r\n //Fail\r\n var_dump($Success->getError());\r\n } else {\r\n //Success\r\n var_dump($Success->getBody());\r\n }\r\n }", "title": "" }, { "docid": "9170215d24704cff448cc096bf2258c4", "score": "0.48109472", "text": "private function run_queue(){\r\n if (count ($this->query_queue) == 0)\r\n return;\r\n \r\n // run query in mysql\r\n $this->mysqli->multi_query(implode (';', $this->query_queue));\r\n \r\n // free mysqli results (for some reason, we have to do that...)\r\n do{\r\n $this->mysqli->store_result();\r\n }while($this->mysqli->next_result());\r\n \r\n // populate object properties\r\n $this->affected_rows = $this->mysqli->affected_rows;\r\n $this->last_id = $this->mysqli->insert_id;\r\n $this->query_queue = array();\r\n }", "title": "" }, { "docid": "d6dc5e63d1cf56e4337cc06734607145", "score": "0.4801817", "text": "protected function _isQueuePending()\n {\n $batchDetails = $this->_getBatchDetails();\n $batchMaximumMails = $batchDetails['maximum_mails_allowed_in_current_batch'];\n $maximumMailsPerHour = $batchDetails['maximum_mails_per_hour'];\n $numberOfMailsSentInLastHour = $batchDetails['number_of_mails_sent_in_last_hour'];\n $totalPendingInQueue = $batchDetails['number_of_mails_in_queue'];\n \n $this->generalLog(\"number of emails sent in last one hour \" . $numberOfMailsSentInLastHour);\n $this->generalLog(\"maximum number of allowed emails per hour \" . $maximumMailsPerHour); \n $this->generalLog(\"mails pending in queue \" . $totalPendingInQueue); \n \n if ($totalPendingInQueue <= 0) {\n $this->generalLog(\"can no longer send messages in this batch\"); \n return false;\n }\n if ($batchMaximumMails > 0) {\n return true;\n } else {\n $this->generalLog(\"can no longer send messages in this batch\"); \n return false;\n }\n\n }", "title": "" }, { "docid": "6ff633dd215bd0697654f1ed370ce6a9", "score": "0.4798699", "text": "public function mailQueueFlush(NamedElement $server)\n {\n $request = new \\Zimbra\\Admin\\Request\\MailQueueFlush($server);\n return $this->getClient()->doRequest($request);\n }", "title": "" }, { "docid": "302a70bb173d9d5e9c2af57ff1da5241", "score": "0.47874242", "text": "protected static function get_query_parts( $queue, $phone_call_status = NULL )\n {\n // determine what date/time to view the queues\n if( is_null( self::$viewing_date ) )\n {\n $viewing_date = 'UTC_TIMESTAMP()';\n $check_time = true;\n }\n else\n {\n // put double quotes around the date since it is being inserted into sql below\n $viewing_date = sprintf( '\"%s\"', self::$viewing_date );\n $check_time = false;\n }\n\n $class_name = lib::get_class_name( 'database\\participant' );\n $participant_status_list = $class_name::get_enum_values( 'status' );\n\n // first a list of commonly used elements\n $status_where_list = array(\n 'participant.active = true',\n '('.\n ' last_consent IS NULL'.\n ' OR last_consent NOT IN( \"verbal deny\", \"written deny\", \"retract\", \"withdraw\" )'.\n ')',\n 'phone_number_count > 0' );\n \n // join to the queue_restriction table based on site, city, region or postcode\n $restriction_join = \n 'LEFT JOIN queue_restriction '.\n 'ON queue_restriction.site_id = participant.base_site_id '.\n 'OR queue_restriction.city = participant.city '.\n 'OR queue_restriction.region_id = participant.region_id '.\n 'OR queue_restriction.postcode = participant.postcode';\n \n // checks to see if participant is not restricted\n $check_restriction_sql =\n '('.\n // tests to see if all restrictions are null (meaning, no restriction)\n ' ('.\n ' queue_restriction.site_id IS NULL AND'.\n ' queue_restriction.city IS NULL AND'.\n ' queue_restriction.region_id IS NULL AND'.\n ' queue_restriction.postcode IS NULL'.\n ' )'.\n // tests to see if the site is being restricted but the participant isn't included\n ' OR ('.\n ' queue_restriction.site_id IS NOT NULL AND'.\n ' queue_restriction.site_id != participant.base_site_id'.\n ' )'.\n // tests to see if the city is being restricted but the participant isn't included\n ' OR ('.\n ' queue_restriction.city IS NOT NULL AND'.\n ' queue_restriction.city != participant.city'.\n ' )'.\n // tests to see if the region is being restricted but the participant isn't included\n ' OR ('.\n ' queue_restriction.region_id IS NOT NULL AND'.\n ' queue_restriction.region_id != participant.region_id'.\n ' )'.\n // tests to see if the postcode is being restricted but the participant isn't included\n ' OR ('.\n ' queue_restriction.postcode IS NOT NULL AND'.\n ' queue_restriction.postcode != participant.postcode'.\n ' )'.\n ')';\n \n // checks a participant's availability\n $check_availability_sql = sprintf(\n '( SELECT MAX( '.\n ' CASE DAYOFWEEK( %s ) '.\n ' WHEN 1 THEN availability.sunday '.\n ' WHEN 2 THEN availability.monday '.\n ' WHEN 3 THEN availability.tuesday '.\n ' WHEN 4 THEN availability.wednesday '.\n ' WHEN 5 THEN availability.thursday '.\n ' WHEN 6 THEN availability.friday '.\n ' WHEN 7 THEN availability.saturday '.\n ' ELSE 0 END ',\n $viewing_date );\n\n if( $check_time )\n {\n $check_availability_sql .= sprintf(\n '* IF( IF( TIME( %s ) < availability.start_time, '.\n ' 24*60*60 + TIME_TO_SEC( TIME( %s ) ), '.\n ' TIME_TO_SEC( TIME( %s ) ) ) >= '.\n ' TIME_TO_SEC( availability.start_time ), 1, 0 ) '.\n '* IF( IF( TIME( %s ) < availability.start_time, '.\n ' 24*60*60 + TIME_TO_SEC( TIME( %s ) ), '.\n ' TIME_TO_SEC( TIME( %s ) ) ) < '.\n ' IF( availability.end_time < availability.start_time, '.\n ' 24*60*60 + TIME_TO_SEC( availability.end_time ), '.\n ' TIME_TO_SEC( availability.end_time ) ), 1, 0 ) ',\n $viewing_date,\n $viewing_date,\n $viewing_date,\n $viewing_date,\n $viewing_date,\n $viewing_date );\n }\n \n // finish the check availability sql\n $check_availability_sql .=\n ') '.\n 'FROM availability '.\n 'WHERE availability.participant_id = participant.id )';\n\n // checks to make sure a participant is within calling time hours\n if( $check_time )\n {\n $localtime = localtime( time(), true );\n $offset = $localtime['tm_isdst']\n ? 'timezone_offset + daylight_savings'\n : 'timezone_offset';\n $calling_time_sql = sprintf(\n '('.\n ' timezone_offset IS NULL OR'.\n ' daylight_savings IS NULL OR'.\n ' ('.\n ' TIME( %s + INTERVAL %s HOUR ) >= \"<CALLING_START_TIME>\" AND'.\n ' TIME( %s + INTERVAL %s HOUR ) < \"<CALLING_END_TIME>\"'.\n ' )'.\n ')',\n $viewing_date,\n $offset,\n $viewing_date,\n $offset );\n }\n\n // now determine the sql parts for the given queue\n if( 'all' == $queue )\n {\n $parts = array(\n 'from' => array( 'participant_for_queue AS participant' ),\n 'join' => array(),\n 'where' => array() );\n return $parts;\n }\n else if( 'finished' == $queue )\n {\n $parts = self::get_query_parts( 'all' );\n // no current_qnaire_id means no qnaires left to complete\n $parts['where'][] = 'current_qnaire_id IS NULL';\n return $parts;\n }\n else if( 'ineligible' == $queue )\n {\n $parts = self::get_query_parts( 'all' );\n // current_qnaire_id is the either the next qnaire to work on or the one in progress\n $parts['where'][] = 'current_qnaire_id IS NOT NULL';\n // ineligible means either inactive or with a \"final\" status\n $parts['where'][] =\n '('.\n ' participant.active = false'.\n ' OR participant.status IS NOT NULL'.\n ' OR phone_number_count = 0'.\n ' OR last_consent IN( \"verbal deny\", \"written deny\", \"retract\", \"withdraw\" )'.\n ')';\n return $parts;\n }\n else if( 'inactive' == $queue )\n {\n $parts = self::get_query_parts( 'all' );\n $parts['where'][] = 'participant.active = false';\n return $parts;\n }\n else if( 'refused consent' == $queue )\n {\n $parts = self::get_query_parts( 'all' );\n $parts['where'][] = 'participant.active = true';\n $parts['where'][] =\n 'last_consent IN( \"verbal deny\", \"written deny\", \"retract\", \"withdraw\" )';\n return $parts;\n }\n else if( 'sourcing required' == $queue )\n {\n $parts = self::get_query_parts( 'all' );\n $parts['where'][] = 'participant.active = true';\n $parts['where'][] =\n '('.\n ' last_consent IS NULL'.\n ' OR last_consent NOT IN( \"verbal deny\", \"written deny\", \"retract\", \"withdraw\" )'.\n ')';\n $parts['where'][] = 'phone_number_count = 0';\n\n return $parts;\n }\n else if( in_array( $queue, $participant_status_list ) )\n {\n $parts = self::get_query_parts( 'all' );\n $parts['where'] = array_merge( $parts['where'], $status_where_list );\n $parts['where'][] = 'participant.status = \"'.$queue.'\"'; // queue name is same as status name\n return $parts;\n }\n else if( 'eligible' == $queue )\n {\n $parts = self::get_query_parts( 'all' );\n // current_qnaire_id is the either the next qnaire to work on or the one in progress\n $parts['where'][] = 'current_qnaire_id IS NOT NULL';\n // active participant who does not have a \"final\" status and has at least one phone number\n $parts['where'][] = 'participant.active = true';\n $parts['where'][] = 'participant.status IS NULL';\n $parts['where'][] = 'phone_number_count > 0';\n $parts['where'][] =\n '('.\n ' last_consent IS NULL OR'.\n ' last_consent NOT IN( \"verbal deny\", \"written deny\", \"retract\", \"withdraw\" )'.\n ')';\n return $parts;\n }\n else if( 'qnaire' == $queue )\n {\n $parts = self::get_query_parts( 'eligible' );\n $parts['where'][] = 'participant.current_qnaire_id <QNAIRE_TEST>';\n return $parts;\n }\n else if( 'restricted' == $queue )\n {\n $parts = self::get_query_parts( 'qnaire' );\n // make sure to only include participants who are restricted\n $parts['join'][] = $restriction_join;\n $parts['where'][] = 'NOT '.$check_restriction_sql;\n return $parts;\n }\n else if( 'qnaire waiting' == $queue )\n {\n $parts = self::get_query_parts( 'qnaire' );\n // make sure to only include participants who are not restricted\n $parts['join'][] = $restriction_join;\n $parts['where'][] = $check_restriction_sql;\n // the current qnaire cannot start before start_qnaire_date\n $parts['where'][] = 'participant.start_qnaire_date IS NOT NULL';\n $parts['where'][] = sprintf( 'DATE( participant.start_qnaire_date ) > DATE( %s )',\n $viewing_date );\n return $parts;\n }\n else if( 'assigned' == $queue )\n {\n $parts = self::get_query_parts( 'qnaire' );\n // make sure to only include participants who are not restricted\n $parts['join'][] = $restriction_join;\n $parts['where'][] = $check_restriction_sql;\n // assigned participants\n $parts['where'][] = 'participant.assigned = true';\n return $parts;\n }\n else if( 'not assigned' == $queue )\n {\n $parts = self::get_query_parts( 'qnaire' );\n // make sure to only include participants who are not restricted\n $parts['join'][] = $restriction_join;\n $parts['where'][] = $check_restriction_sql;\n // the qnaire is ready to start if the start_qnaire_date is null or we have reached that date\n $parts['where'][] = sprintf(\n '('.\n ' participant.start_qnaire_date IS NULL OR'.\n ' DATE( participant.start_qnaire_date ) <= DATE( %s )'.\n ')',\n $viewing_date );\n $parts['where'][] = 'participant.assigned = false';\n return $parts;\n }\n else if( 'appointment' == $queue )\n {\n $parts = self::get_query_parts( 'not assigned' );\n // link to appointment table and make sure the appointment hasn't been assigned\n // (by design, there can only ever one unassigned appointment per participant)\n $parts['from'][] = 'appointment';\n $parts['where'][] = 'appointment.participant_id = participant.id';\n $parts['where'][] = 'appointment.assignment_id IS NULL';\n return $parts;\n }\n else if( 'upcoming appointment' == $queue )\n {\n $parts = self::get_query_parts( 'appointment' );\n // appointment time (in UTC) is in the future\n $parts['where'][] = sprintf(\n $check_time ? '%s < appointment.datetime - INTERVAL <APPOINTMENT_PRE_WINDOW> MINUTE'\n : 'DATE( %s ) < DATE( appointment.datetime )',\n $viewing_date );\n return $parts;\n }\n else if( 'assignable appointment' == $queue )\n {\n $parts = self::get_query_parts( 'appointment' );\n // appointment time (in UTC) is in the calling window\n $parts['where'][] = sprintf(\n $check_time ? '%s >= appointment.datetime - INTERVAL <APPOINTMENT_PRE_WINDOW> MINUTE AND '.\n '%s <= appointment.datetime + INTERVAL <APPOINTMENT_POST_WINDOW> MINUTE'\n : 'DATE( %s ) = DATE( appointment.datetime )',\n $viewing_date,\n $viewing_date );\n return $parts;\n }\n else if( 'missed appointment' == $queue )\n {\n $parts = self::get_query_parts( 'appointment' );\n // appointment time (in UTC) is in the past\n $parts['where'][] = sprintf(\n $check_time ? '%s > appointment.datetime + INTERVAL <APPOINTMENT_POST_WINDOW> MINUTE'\n : 'DATE( %s ) > DATE( appointment.datetime )',\n $viewing_date );\n return $parts;\n }\n else if( 'no appointment' == $queue )\n {\n $parts = self::get_query_parts( 'not assigned' );\n // make sure there is no unassigned appointment. By design there can only be one of per\n // participant, so if the appointment is null then the participant has no pending\n // appointments.\n $parts['join'][] =\n 'LEFT JOIN appointment '.\n 'ON appointment.participant_id = participant.id '.\n 'AND appointment.assignment_id IS NULL';\n $parts['where'][] = 'appointment.id IS NULL';\n return $parts;\n }\n else if( 'new participant' == $queue )\n {\n $parts = self::get_query_parts( 'no appointment' );\n // If there is a start_qnaire_date then the current qnaire has never been started,\n // the exception is for participants who have never been assigned\n $parts['where'][] =\n '('.\n ' participant.start_qnaire_date IS NOT NULL OR'.\n ' participant.last_assignment_id IS NULL'.\n ')';\n return $parts;\n }\n else if( 'new participant outside calling time' == $queue )\n {\n $parts = self::get_query_parts( 'new participant' );\n\n if( self::use_calling_times() && $check_time )\n {\n // Need to join to the address_info database in order to determine the\n // participant's local time\n $parts['join'][] =\n 'LEFT JOIN address_info.postcode '.\n 'ON postcode.postcode = participant.postcode';\n $parts['where'][] = 'NOT '.$calling_time_sql;\n }\n else\n {\n $parts['where'][] = 'NOT true'; // purposefully a negative tautology\n }\n \n return $parts;\n }\n else if( 'new participant within calling time' == $queue )\n {\n $parts = self::get_query_parts( 'new participant' );\n\n if( self::use_calling_times() && $check_time )\n {\n // Need to join to the address_info database in order to determine the\n // participant's local time\n $parts['join'][] =\n 'LEFT JOIN address_info.postcode '.\n 'ON postcode.postcode = participant.postcode';\n $parts['where'][] = $calling_time_sql;\n }\n else\n {\n $parts['where'][] = 'true'; // purposefully a negative tautology\n }\n \n return $parts;\n }\n else if( 'new participant always available' == $queue )\n {\n $parts = self::get_query_parts( 'new participant within calling time' );\n // make sure the participant doesn't specify availability\n $parts['where'][] = $check_availability_sql.' IS NULL';\n return $parts;\n }\n else if( 'new participant available' == $queue )\n {\n $parts = self::get_query_parts( 'new participant within calling time' );\n // make sure the participant has availability and is currently available\n $parts['where'][] = $check_availability_sql.' = true';\n return $parts;\n }\n else if( 'new participant not available' == $queue )\n {\n $parts = self::get_query_parts( 'new participant within calling time' );\n // make sure the participant has availability and is currently not available\n $parts['where'][] = $check_availability_sql.' = false';\n return $parts;\n }\n else if( 'old participant' == $queue )\n {\n $parts = self::get_query_parts( 'no appointment' );\n // add the last phone call's information\n $parts['from'][] = 'phone_call';\n $parts['from'][] = 'assignment_last_phone_call';\n $parts['where'][] =\n 'assignment_last_phone_call.assignment_id = participant.last_assignment_id';\n $parts['where'][] =\n 'phone_call.id = assignment_last_phone_call.phone_call_id';\n // if there is no start_qnaire_date then the current qnaire has been started\n $parts['where'][] = 'participant.start_qnaire_date IS NULL';\n return $parts;\n }\n else\n {\n // make sure a phone call status has been included (all remaining queues require it)\n if( is_null( $phone_call_status ) )\n throw lib::create( 'exception\\argument',\n 'phone_call_status', $phone_call_status, __METHOD__ );\n\n if( 'phone call status' == $queue )\n {\n $parts = self::get_query_parts( 'old participant' );\n $parts['where'][] =\n sprintf( 'phone_call.status = \"%s\"', $phone_call_status );\n return $parts;\n }\n else if( 'phone call status waiting' == $queue )\n {\n $parts = self::get_query_parts(\n 'phone call status', $phone_call_status );\n $parts['where'][] = sprintf(\n $check_time ? '%s < phone_call.end_datetime + INTERVAL <CALLBACK_%s> MINUTE' :\n 'DATE( %s ) < '.\n 'DATE( phone_call.end_datetime + INTERVAL <CALLBACK_%s> MINUTE )',\n $viewing_date,\n str_replace( ' ', '_', strtoupper( $phone_call_status ) ) );\n return $parts;\n }\n else if( 'phone call status ready' == $queue )\n {\n $parts = self::get_query_parts(\n 'phone call status', $phone_call_status );\n $parts['where'][] = sprintf(\n $check_time ? '%s >= phone_call.end_datetime + INTERVAL <CALLBACK_%s> MINUTE' :\n 'DATE( %s ) >= '.\n 'DATE( phone_call.end_datetime + INTERVAL <CALLBACK_%s> MINUTE )',\n $viewing_date,\n str_replace( ' ', '_', strtoupper( $phone_call_status ) ) );\n return $parts;\n }\n else if( 'phone call status outside calling time' == $queue )\n {\n $parts = self::get_query_parts( 'phone call status ready', $phone_call_status );\n\n if( self::use_calling_times() && $check_time )\n {\n // Need to join to the address_info database in order to determine the\n // participant's local time\n $parts['join'][] =\n 'LEFT JOIN address_info.postcode '.\n 'ON postcode.postcode = participant.postcode';\n $parts['where'][] = 'NOT '.$calling_time_sql;\n }\n else\n {\n $parts['where'][] = 'NOT true'; // purposefully a negative tautology\n }\n \n return $parts;\n }\n else if( 'phone call status within calling time' == $queue )\n {\n $parts = self::get_query_parts( 'phone call status ready', $phone_call_status );\n\n if( self::use_calling_times() && $check_time )\n {\n // Need to join to the address_info database in order to determine the\n // participant's local time\n $parts['join'][] =\n 'LEFT JOIN address_info.postcode '.\n 'ON postcode.postcode = participant.postcode';\n $parts['where'][] = $calling_time_sql;\n }\n else\n {\n $parts['where'][] = 'true'; // purposefully a tautology\n }\n \n return $parts;\n }\n else if( 'phone call status always available' == $queue )\n {\n $parts = self::get_query_parts(\n 'phone call status within calling time', $phone_call_status );\n // make sure the participant doesn't specify availability\n $parts['where'][] = $check_availability_sql.' IS NULL';\n return $parts;\n }\n else if( 'phone call status not available' == $queue )\n {\n $parts = self::get_query_parts(\n 'phone call status within calling time', $phone_call_status );\n // make sure the participant has availability and is currently not available\n $parts['where'][] = $check_availability_sql.' = false';\n return $parts;\n }\n else if( 'phone call status available' == $queue )\n {\n $parts = self::get_query_parts(\n 'phone call status within calling time', $phone_call_status );\n // make sure the participant has availability and is currently available\n $parts['where'][] = $check_availability_sql.' = true';\n return $parts;\n }\n else // invalid queue name\n {\n throw lib::create( 'exception\\argument', 'queue', $queue, __METHOD__ );\n }\n }\n }", "title": "" }, { "docid": "ed190804e3527b7e357eb164f78ca996", "score": "0.47871312", "text": "public function add($queue = 'default') {\n if (!is_string($queue)) {\n throw new \\InvalidArgumentException('query must be a string.');\n }\n # TODO: validate queue name length and regex.\n return self::addTasks([$this], $queue)[0];\n }", "title": "" }, { "docid": "0a4ab922de2aeb18a4fd968937d1185c", "score": "0.4782294", "text": "private function wfmAgentQueueInterval() {\n $aReturn = array();\n try {\n $aSetup = $this->parseSetup();\n $tenant = $aSetup[\"tenantId\"];\n $username = $aSetup[\"username\"];\n $password = $aSetup[\"password\"];\n\n $aRange = $this->getRange();\n if ($aRange[\"result\"]) {\n $start = $aRange[\"start\"];\n $end = $aRange[\"end\"];\n// $start = \"2018-09-06T12:00Z\";\n// $end = \"2018-09-06T12:30\";\n }\n\n $oApi = new Api();\n $oApi->setMethod(\"GET\");\n $oApi->setUrl(\"https://api.cxengage.net/v1/tenants/$tenant/wfm/intervals/agent-queue?start=$start&end=$end&limit=1000\");\n $oApi->setData(array());\n\n $oCredential = new Credential();\n $oCredential->setUsername($username);\n $oCredential->setPassword($password);\n\n $oApiLib = new ApiLib();\n $aReturn = array(\"interval\" => json_decode($oApiLib->get($oApi, $oCredential), true), \"start\" => $start);\n } catch (Exception $exc) {\n $sMsj = $exc->getMessage();\n $sLine = $exc->getLine();\n $sCode = $exc->getCode();\n $sFile = $exc->getFile();\n $sTrace = $exc->getTraceAsString();\n $oMail = new MailController();\n $oMail->sendEmail($sCode, $sMsj, $sFile, $sLine, $sTrace);\n }\n return $aReturn;\n }", "title": "" }, { "docid": "0a4ab922de2aeb18a4fd968937d1185c", "score": "0.4782294", "text": "private function wfmAgentQueueInterval() {\n $aReturn = array();\n try {\n $aSetup = $this->parseSetup();\n $tenant = $aSetup[\"tenantId\"];\n $username = $aSetup[\"username\"];\n $password = $aSetup[\"password\"];\n\n $aRange = $this->getRange();\n if ($aRange[\"result\"]) {\n $start = $aRange[\"start\"];\n $end = $aRange[\"end\"];\n// $start = \"2018-09-06T12:00Z\";\n// $end = \"2018-09-06T12:30\";\n }\n\n $oApi = new Api();\n $oApi->setMethod(\"GET\");\n $oApi->setUrl(\"https://api.cxengage.net/v1/tenants/$tenant/wfm/intervals/agent-queue?start=$start&end=$end&limit=1000\");\n $oApi->setData(array());\n\n $oCredential = new Credential();\n $oCredential->setUsername($username);\n $oCredential->setPassword($password);\n\n $oApiLib = new ApiLib();\n $aReturn = array(\"interval\" => json_decode($oApiLib->get($oApi, $oCredential), true), \"start\" => $start);\n } catch (Exception $exc) {\n $sMsj = $exc->getMessage();\n $sLine = $exc->getLine();\n $sCode = $exc->getCode();\n $sFile = $exc->getFile();\n $sTrace = $exc->getTraceAsString();\n $oMail = new MailController();\n $oMail->sendEmail($sCode, $sMsj, $sFile, $sLine, $sTrace);\n }\n return $aReturn;\n }", "title": "" }, { "docid": "a8ff0a47f2f53d31f93fa32d56d0e13d", "score": "0.47698984", "text": "function bpges_send_queue() {\n\tstatic $queue;\n\n\tif ( null === $queue ) {\n\t\t$queue = new BPGES_Async_Request_Send_Queue();\n\t}\n\n\treturn $queue;\n}", "title": "" }, { "docid": "ed81b2b7e91f6dcc0580489158cda1f0", "score": "0.4768352", "text": "static public function querySpamService( $email, $ip='', $type='register', $test=0 )\n\t{\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "59a33fb2adb683058965b174f4463fe4", "score": "0.47680998", "text": "public function getSupportedQueues();", "title": "" }, { "docid": "e2f74a7fc3e4f275db38e4a63bc73663", "score": "0.47573197", "text": "protected function getQueueEntriesRequest($accountId = null, $queueName = null, $serviceName = null, $withHistory = 'true', $minDate = null, $maxDate = null, $withInProcessing = 'true', $withBusEvents = 'true', $withNotifications = 'true')\n {\n\n $resourcePath = '/1.0/kb/admin/queues';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n // query params\n if ($accountId !== null) {\n $queryParams['accountId'] = ObjectSerializer::toQueryValue($accountId);\n }\n // query params\n if ($queueName !== null) {\n $queryParams['queueName'] = ObjectSerializer::toQueryValue($queueName);\n }\n // query params\n if ($serviceName !== null) {\n $queryParams['serviceName'] = ObjectSerializer::toQueryValue($serviceName);\n }\n // query params\n if ($withHistory !== null) {\n $queryParams['withHistory'] = ObjectSerializer::toQueryValue($withHistory);\n }\n // query params\n if ($minDate !== null) {\n $queryParams['minDate'] = ObjectSerializer::toQueryValue($minDate);\n }\n // query params\n if ($maxDate !== null) {\n $queryParams['maxDate'] = ObjectSerializer::toQueryValue($maxDate);\n }\n // query params\n if ($withInProcessing !== null) {\n $queryParams['withInProcessing'] = ObjectSerializer::toQueryValue($withInProcessing);\n }\n // query params\n if ($withBusEvents !== null) {\n $queryParams['withBusEvents'] = ObjectSerializer::toQueryValue($withBusEvents);\n }\n // query params\n if ($withNotifications !== null) {\n $queryParams['withNotifications'] = ObjectSerializer::toQueryValue($withNotifications);\n }\n\n\n // body params\n $_tempBody = null;\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 (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\Utils::jsonEncode($httpBody);\n } elseif (is_array($httpBody) && $headers['Content-Type'] === 'application/json') {\n $httpBody = array_map(function($value) {\n return ObjectSerializer::sanitizeForSerialization($value);\n }, $_tempBody);\n $httpBody = \\GuzzleHttp\\Utils::jsonEncode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\Utils::jsonEncode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\Query::build($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('X-Killbill-ApiKey');\n if ($apiKey !== null) {\n $headers['X-Killbill-ApiKey'] = $apiKey;\n }\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('X-Killbill-ApiSecret');\n if ($apiKey !== null) {\n $headers['X-Killbill-ApiSecret'] = $apiKey;\n }\n // this endpoint requires HTTP basic authentication\n if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) {\n $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . \":\" . $this->config->getPassword());\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\\Query::build($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "b758f294407bcffdd63695d1693ef243", "score": "0.47570965", "text": "public function testListQueuesWithMetadata()\n {\n if (TESTS_ZEND_SERVICE_WINDOWSAZURE_QUEUE_RUNTESTS) {\n $queueName = $this->generateName();\n $storageClient = $this->createStorageInstance();\n $storageClient->createQueue($queueName, [\n 'createdby' => 'PHPAzure',\n 'ownedby' => 'PHPAzure',\n ]);\n \n $result = $storageClient->listQueues($queueName, null, null, 'metadata');\n \n $this->assertEquals('PHPAzure', $result[0]->Metadata['createdby']);\n $this->assertEquals('PHPAzure', $result[0]->Metadata['ownedby']);\n }\n }", "title": "" }, { "docid": "157d120a861fee124ca2224ab51c3991", "score": "0.47537327", "text": "function process_email_queue() {\n\t// remove filter as we don't want to short circuit ourselves\n\tremove_filter( 'wp_mail', 'dvk\\\\queue_wp_mail',5 );\n\t$queue = get_email_queue();\n\tif( ! empty( $queue ) ) {\n\t\t// send each queued email\n\t\tforeach( $queue as $key => $args ) {\n\t\t\twp_mail( $args['to'], $args['subject'], $args['message'], $args['headers'], $args['attachments'] );\n\t\t\tunset( $queue[ $key ] );\n\t\t}\n\t\t// update queue with removed values\n\t\tset_email_queue( $queue );\n\t}\n}", "title": "" }, { "docid": "16a92f10ac672a2d3e44c974a6504395", "score": "0.47399586", "text": "public function queue($id) {\n // check cache for questions and return if not empty\n //$questions = $this->memcache->get(\"queue?suite_id=$id\");\n //if ($questions !== false && $questions !== null) \n //return array('questions' => $questions, 'changed' => false);\n\n // fetch all questions in the queue from within 48 hours\n $questions = Question::model()->with('labels')->findAll(array(\n 'condition' => 't.suite_id = :suite_id AND state = :state AND ask_timestamp >= :yesterday ' . \n 'AND ask_timestamp <= :tomorrow',\n 'order' => 'ask_timestamp asc',\n 'params' => array(\n 'suite_id' => $id,\n 'state' => self::STATE_IN_QUEUE,\n 'yesterday' => date('Y-m-d H:i:s', strtotime('-1 day')),\n 'tomorrow' => date('Y-m-d H:i:s', strtotime('+1 day'))\n ),\n ));\n\n // get students for returned questions\n $student_ids = array_map(function($e) { return $e->student_id; }, $questions);\n $students = $this->cs50->users($student_ids);\n\n // associate students with question\n foreach ($questions as $question)\n $question->student = $students[$question->student_id];\n\n // cache and return questions\n //$this->memcache->set(\"queue?suite_id=$id\", $questions);\n return array('questions' => $questions, 'changed' => true);\n }", "title": "" }, { "docid": "fee2c90f2db6bffc32c1c8d0a46f182f", "score": "0.4738378", "text": "static protected function queue_query( $query ) {\n\t\tself::$queued_queries[] = $query;\n\t\tadd_action( 'shutdown', array( __CLASS__, 'send_queued_queries' ) );\n\t}", "title": "" }, { "docid": "f3247e86028f87a1cec3290507f37896", "score": "0.4738015", "text": "public function getQueue ()\n {\n return $this->queue;\n }", "title": "" }, { "docid": "f63f3472d85d50802c609891f878c777", "score": "0.47375306", "text": "abstract public function hasWorkers($queue): void;", "title": "" }, { "docid": "fd8eaedce3008b3e02b3a7d9797c92a1", "score": "0.47253102", "text": "function query($query = '') \n {\n if ($query == '') {\n // if no query, try to get 'q' variable from request\n if (isset($_POST[$this->_http_parameters['query']])) {\n $query = $_POST[$this->_http_parameters['query']];\n } elseif (isset($_GET[$this->_http_parameters['query']])) {\n $query = $_GET[$this->_http_parameters['query']];\n } else {\n PEAR::raiseError(\n \"Query is empty.\", \n SEARCH_MNOGOSEARCH_ERROR_NOQUERY, PEAR_ERROR_RETURN);\n return false;\n }\n }\n\n if ($this->configFile) {\n $this->importConfigFile();\n }\n $this->query = $this->_parseQuery($query);\n udm_set_agent_param($this->agent, UDM_PARAM_QUERY, $this->query);\n udm_set_agent_param_ex($this->agent,'q', $this->query);\n if (isset($_SERVER['QUERY_STRING'])) {\n $queryString = $_SERVER['QUERY_STRING'];\n } elseif (isset($_SERVER['argv'][0])) {\n $queryString = $_SERVER['argv'][0];\n }\n udm_set_agent_param($this->agent, UDM_PARAM_QSTRING, $queryString);\n \n if (!$this->searchModeFlag) {\n // Default search mode is ANY\n udm_set_agent_param(\n $this->agent, UDM_PARAM_SEARCH_MODE, UDM_MODE_ALL);\n }\n\n $res = udm_find($this->agent, $this->query);\n \n if (($error = udm_error($this->agent)) != '') {\n udm_free_res($res);\n return PEAR::raiseError(\n $error, SEARCH_MNOGOSEARCH_ERROR_DB, PEAR_ERROR_RETURN);\n }\n $found = udm_get_res_param($res, UDM_PARAM_FOUND);\n $result = array();\n\n if (!$found) {\n if (strtolower($this->params[ UDM_PARAM_SUGGEST ])=='yes') {\n if (Udm_Api_Version() >= 30233) {\n $this->_suggest=Udm_Get_Agent_Param_Ex($this->agent,'WS');\n } else {\n // log something for debugging\n }\n }\n udm_free_res($res);\n return false;\n } else {\n $result[SEARCH_MNOGOSEARCH_FOUND] = $found;\n }\n\n // Global info\n\n $result[SEARCH_MNOGOSEARCH_INFO_NUMROW] = \n udm_get_res_param($res, UDM_PARAM_NUM_ROWS);\n $result[SEARCH_MNOGOSEARCH_INFO_WORDINFO] = \n udm_get_res_param($res, UDM_PARAM_WORDINFO_ALL);\n $result[SEARCH_MNOGOSEARCH_INFO_SEARCHTIME] = \n udm_get_res_param($res, UDM_PARAM_SEARCHTIME);\n $result[SEARCH_MNOGOSEARCH_INFO_FIRST_DOC] = \n udm_get_res_param($res, UDM_PARAM_FIRST_DOC);\n $result[SEARCH_MNOGOSEARCH_INFO_LAST_DOC] = \n udm_get_res_param($res, UDM_PARAM_LAST_DOC);\n $result['query'] = $query;\n $result['queryString'] = $queryString;\n\n // Row specific info\n\n for ($i = 0; $i < $result[SEARCH_MNOGOSEARCH_INFO_NUMROW]; $i ++) {\n if ($this->_getUdmParameter('excerptsize')>0){\n udm_make_excerpt($this->agent, $res, $i);\n }\n $row = array();\n $row['rec_id'] = udm_get_res_field($res, $i, UDM_FIELD_URLID);\n $row['ndoc'] = udm_get_res_field($res, $i, UDM_FIELD_ORDER);\n $row['rating'] = udm_get_res_field($res, $i, UDM_FIELD_RATING);\n $row['url'] = udm_get_res_field($res, $i, UDM_FIELD_URL);\n $row['contype'] = udm_get_res_field($res, $i, UDM_FIELD_CONTENT);\n $row['docsize'] = udm_get_res_field($res, $i, UDM_FIELD_SIZE);\n $row['score'] = udm_get_res_field($res, $i, UDM_FIELD_SCORE);\n $row['lastmod'] = udm_get_res_field($res, $i, UDM_FIELD_MODIFIED);\n $row['title'] = \n ($title = udm_get_res_field($res, $i, UDM_FIELD_TITLE)) ? \n htmlspecialchars($title) : basename($row['url']); \n $row['text'] = udm_get_res_field($res, $i, UDM_FIELD_TEXT);\n $row['keyw'] = udm_get_res_field($res, $i, UDM_FIELD_KEYWORDS);\n $row['desc'] = udm_get_res_field($res, $i, UDM_FIELD_DESC);\n $row['crc'] = udm_get_res_field($res, $i, UDM_FIELD_CRC);\n $row['siteid'] = udm_get_res_field($res, $i, UDM_FIELD_SITEID);\n $row['persite'] = udm_get_res_field_ex($res, $i, \"PerSite\"); \n if (!empty($this->_fields)) {\n foreach ($this->_fields as $field) { \n $row[$field] = udm_get_res_field_ex($res, $i, $field);\n }\n } \n $result['rows'][] = $row;\n unset ($row);\n }\n udm_free_res($res);\n include_once 'Search/Mnogosearch/Result.php';\n $resultSet = new Search_Mnogosearch_Result($result);\n $resultSet->resultsPerPage = $this->_resultsPerPage;\n $resultSet->pageNumber = $this->_pageNumber + 1;\n return $resultSet;\n }", "title": "" }, { "docid": "13b0fe49d6a740d716ecdf39993dae43", "score": "0.4723913", "text": "public function flush($queue = null)\n\t{\n\t\tif (is_null($queue)) {\n\t\t\t$res = $this->executeCommand('FLUSH');\n\t\t\treturn (trim($res) == 'END') ? 'OK' : 'Error';\n\t\t} else {\n\t\t\t// need to send a custom command\n\t\t\t$res = $this->executeCommand('FLUSH ' . $queue);\n\t\t\treturn (trim($res) == 'END') ? 'OK' : 'Error';\n\t\t}\n\t}", "title": "" }, { "docid": "77addd843086ea54e5b2504236dec13e", "score": "0.47193772", "text": "public static function query_mandrill_timeseries( $query ) {\n global $post,$inbound_settings;;\n\n /* load mandrill time\t*/\n $mandrill = new Inbound_Mandrill( $inbound_settings['inbound-mailer']['mandrill-key'] );\n\n $tags = array();\n $senders = array();\n\n if ( !isset($mandrill->messages) ) {\n return;\n }\n\n self::$results = $mandrill->messages->searchTimeSeries($query, self::$stats['date_from'] , self::$stats['date_to'] , $tags, $senders);\n\n }", "title": "" }, { "docid": "80173fdafe790c18583c99a0c66bc929", "score": "0.47182631", "text": "function _sendmasterquery($ipport, $startip, $region=0, $filterstr=\"\\0\") {\r\n\tlist($ip,$port) = explode(':', $ipport);\r\n\tif (!$port) $port = '27010';\r\n\t$retry = 0;\r\n\t$oldmqr = get_magic_quotes_runtime();\r\n\r\n\tif (!$this->masterconnected) {\r\n\t\tif (!$this->_connectsocket($ip, $port)) {\r\n\t\t\ttrigger_error(\"Failed to connect to socket on $ip:$port\", E_USER_WARNING);\r\n\t\t\t$this->masterconnected = FALSE;\r\n\t\t\treturn FALSE;\r\n\t\t} else {\r\n\t\t\t$this->masterconnected = TRUE;\r\n\t\t}\r\n\t}\r\n\r\n\t$command = '1' . pack(\"C\", $region) . $startip . \"\\0\" . $filterstr;\r\n\t$this->raw = \"\";\r\n\r\n\tif ($oldmqr) set_magic_quotes_runtime(0);\r\n\tif ($this->DEBUG) print \"DEBUG: Sending query to $ip:$port:\\n\" . $this->hexdump($command) . \"\\n\";\r\n\tfwrite($this->sock, $command, strlen($command));\r\n\t\r\n\tdo {\r\n\t\t$this->raw = fread($this->sock, 1500);\r\n\t\tif (strlen($this->raw) == 0) {\r\n\t\t\tif ($retry >= $this->maxretries()) {\r\n\t\t\t\tfclose($this->sock);\r\n\t\t\t\t$this->masterconnected = FALSE;\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$retry++;\r\n\t\t\tif ($this->DEBUG) print \"DEBUG: Resending query to $ip:$port:\\n\" . $this->hexdump($command) . \"\\n\";\r\n\t\t\tfwrite($this->sock, $command, strlen($command));\r\n\t\t\tcontinue;\r\n\t\t} else {\r\n\t\t\tif ($this->DEBUG) print \"DEBUG: Received \" . strlen($this->raw) . \" bytes from $ip:$port:\\n\" . $this->hexdump($this->raw) . \"\\n\";\r\n\t\t\tbreak;\r\n\t\t}\r\n\t} while ($retry < $this->maxretries());\r\n\r\n#\tfclose($this->sock);\r\n#\t$this->masterconnected = FALSE;\r\n\tif ($oldmqr) set_magic_quotes_runtime(1);\r\n\treturn TRUE;\r\n}", "title": "" }, { "docid": "219bfbc455f704932df1661b4f3833e2", "score": "0.47125748", "text": "public function queueInfo($vhost, $name) {\n\t\treturn $this->requestGet('queues/' . urlencode($vhost) . '/' . urlencode($name));\n\t}", "title": "" }, { "docid": "0023128bddfed31b53cde3e39890ba30", "score": "0.47080663", "text": "public function getFreeBusyQueueInfo(NamedElement $provider)\n {\n $request = new \\Zimbra\\Admin\\Request\\GetFreeBusyQueueInfo($provider);\n return $this->getClient()->doRequest($request);\n }", "title": "" }, { "docid": "bbc6760e2ee9d56723a62499935843a7", "score": "0.47043344", "text": "private function query()\n\t{\n\t\t$query = \"QUERY\" . NL ;\n\t\t$buffer = \"\";\n\t\tfwrite($this->socket, $query);\n\t\twhile (!feof($this->socket)) {\n\t\t\t$buffer .= fgets($this->socket, 1024);\n\t\t}\n\t\t$this->query = explode(NL, $buffer);\n\t}", "title": "" }, { "docid": "b77ceaba3975d2e6fd0a63a1600536b6", "score": "0.47041172", "text": "public static function memcache_queue_timer() {\n\t\t$task_connection = new AsyncTcpConnection('Text://127.0.0.1:2208');\n\t\t$task_connection->send(json_encode(['type' => 'memcached_queue_task', 'args' => []]));\n\t\t$task_connection->onMessage = function ($connection, $task_result) use ($task_connection) {\n\t\t\t$task_connection->close();\n\t\t};\n\t\t$task_connection->connect();\n\t}", "title": "" }, { "docid": "58c608157153735f975f1413f0a4e649", "score": "0.46969202", "text": "public function receiveMessage()\n\t{\n\t\ttry {\n\t\t\t$result = $this->client->receiveMessage(array(\n\t\t\t\t// QueueUrl is required\n\t\t\t\t'QueueUrl' => 'https://sqs.us-west-2.amazonaws.com/895759819391/reporterresults-dev'\n\t\t\t));\n\t\t\treturn $result;\n\t\t}\n\t\tcatch (\\Aws\\Sqs\\Exception\\SqsException $e)\n\t\t{\n\t\t\techo $e->getMessage();\n\t\t}\n\t}", "title": "" } ]
b2e15cf32f993dcf9d7d789fc5f3cfe5
Get the notification's delivery channels.
[ { "docid": "fd9beb97cd402389c99115fa5bee53ba", "score": "0.0", "text": "public function via($notifiable)\n {\n return ['mail'];\n }", "title": "" } ]
[ { "docid": "0a51b3c07d0023bdae13bb255897e27c", "score": "0.8087177", "text": "public function getNotificationChannels()\n {\n return $this->notification_channels;\n }", "title": "" }, { "docid": "282a3d008c354b653a85856f687513a4", "score": "0.7333707", "text": "public function getDistributionChannels();", "title": "" }, { "docid": "7f5f9701742b73918eafee041e816ada", "score": "0.7212223", "text": "protected function getChannels()\n {\n return array_filter(\n $this->reminder->owner->channels,\n function ($channelKey) {\n return in_array($channelKey, $this->reminder->channels);\n },\n ARRAY_FILTER_USE_KEY\n );\n }", "title": "" }, { "docid": "ba51029342585b4063b5472c883d4870", "score": "0.7089724", "text": "public function getChannels()\n {\n return $this->channels;\n }", "title": "" }, { "docid": "4809f7d51d9dfb977e8ccf709ccdaa70", "score": "0.7087921", "text": "public function getChannels();", "title": "" }, { "docid": "d5afbef55d656a3e6e491e000cd0911f", "score": "0.6708697", "text": "public function via($notifiable)\n {\n $channels = [];\n\n $preferred = $this->preferred($notifiable);\n\n if ($this->sendToSms()) {\n array_push($channels, getSmsChannel());\n }\n\n if ($this->sendToMail()) {\n array_push($channels, 'mail');\n }\n\n if ($this->sendToDatabase()) {\n array_push($channels, 'database', 'broadcast');\n }\n\n if (is_array($preferred)) {\n $channels = array_intersect($channels, $preferred);\n }\n\n return $channels;\n }", "title": "" }, { "docid": "e3149fd188a8331b12746303fe62bdf2", "score": "0.66678077", "text": "public function broadcastOn()\n {\n return new Channel('DeliveryChannel');\n }", "title": "" }, { "docid": "f802e67fcfa4855bd4eea198cf680d9b", "score": "0.6655286", "text": "public function broadcastOn()\n {\n return $this->getChannels();\n }", "title": "" }, { "docid": "8ff8e83f77ff799e0203d498b41b58e8", "score": "0.6615596", "text": "public function preferred($notifiable)\n {\n if ($notifiable instanceof User) {\n $name = $this->getNotificationName();\n\n $channels = [];\n\n $settings = collect($notifiable->getNotificationSettings())\n ->firstWhere('name', $name);\n\n if (!is_array($settings)) {\n return $channels;\n }\n\n if (Arr::get($settings, 'sms')) {\n array_push($channels, getSmsChannel());\n }\n\n if (Arr::get($settings, 'email')) {\n array_push($channels, 'mail');\n }\n\n if (Arr::get($settings, 'database')) {\n array_push($channels, 'database', 'broadcast');\n }\n\n return $channels;\n }\n }", "title": "" }, { "docid": "ac65db4a089267d6bafeff395df303c9", "score": "0.6586784", "text": "public function get_channels($params = array())\n {\n return $this->_pusher->get_channels($params);\n }", "title": "" }, { "docid": "09742afa8018e82e3ee1ba8846b3b1c8", "score": "0.65840477", "text": "public function getChannels() : array;", "title": "" }, { "docid": "70e35561d99bfcb535654097f7c52935", "score": "0.6575892", "text": "function &getChannels() {\n\t\tif($this->_channels === null) {\n\t\t\t$this->_channels = $this->getAllChannels();\n\t\t}\n\t\treturn $this->_channels;\n\t}", "title": "" }, { "docid": "c942130823d199dcb5b3384b2d34f7bf", "score": "0.65381706", "text": "public function via($notifiable) {\n if ($notifiable->show_notifications) {\n return $this->channels;\n }\n return ['broadcast'];\n }", "title": "" }, { "docid": "0e343fde75893fb5fc39640b3c279951", "score": "0.6530018", "text": "public function notificationChannelsArray()\r\n {\r\n $channels = [];\r\n \r\n foreach ($this->translations as $translation) {\r\n $channelList = Channel::query()->pluck('code')->toArray();\r\n $channelDetail = Channel::query()->where('code', $translation->channel)->first();\r\n \r\n if (in_array($translation->channel, $channelList) && isset($channelDetail->code) && !in_array($channelDetail->code, $channels)) {\r\n array_push($channels, $channelDetail->code);\r\n }\r\n }\r\n \r\n return $channels;\r\n }", "title": "" }, { "docid": "27ee618e848019e3dbfbd2de20475494", "score": "0.6470803", "text": "public function retrieveChannels(){\n return Channel::all();\n }", "title": "" }, { "docid": "861b026dcc3b8e05efab029686ecf709", "score": "0.6460592", "text": "public function getNotificationChannels(): ?array {\n $val = $this->getBackingStore()->get('notificationChannels');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, NotificationChannel::class);\n /** @var array<NotificationChannel>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'notificationChannels'\");\n }", "title": "" }, { "docid": "3c9042872e0a4ea4e7039b9388da85c1", "score": "0.6441427", "text": "public function subscribedChannels(): array\n {\n return ['topic:*'];\n }", "title": "" }, { "docid": "f9721fc996b0a2fc1d86dcb06c62d023", "score": "0.6391366", "text": "public function via($notifiable)\n {\n $fcmToken = $notifiable->routeNotificationFor('fcm');\n\n if ($fcmToken !== null) {\n return [FcmChannel::class];\n }\n\n return [];\n }", "title": "" }, { "docid": "63c81d99933c9b6ab2f26415d0fc02c1", "score": "0.63867706", "text": "public static function getCoreChannels()\n {\n return [\n self::CHANNEL_EMAIL,\n self::CHANNEL_EXCEPTIONS,\n self::CHANNEL_PACKAGES,\n self::CHANNEL_SECURITY,\n self::CHANNEL_AUTHENTICATION,\n self::CHANNEL_PERMISSIONS,\n self::CHANNEL_SPAM,\n self::CHANNEL_SITE_ORGANIZATION,\n self::CHANNEL_NETWORK,\n self::CHANNEL_USERS,\n self::CHANNEL_OPERATIONS,\n self::CHANNEL_API,\n self::CHANNEL_FILES,\n self::CHANNEL_CONTENT,\n self::CHANNEL_MESSENGER,\n self::CHANNEL_BOARD,\n ];\n }", "title": "" }, { "docid": "7b64a78a325347427aaac2a19d2c3d86", "score": "0.63305956", "text": "public function getOtherChannels();", "title": "" }, { "docid": "4e7a6073c1075432a40731e60e3c2ebd", "score": "0.63121605", "text": "function &getAllChannels() {\n\t\tif($this->_allChannels === null) {\n\t\t\t$this->_allChannels = array();\n\t\t\t\n\t\t\t// Default channel, public to everyone:\n\t\t\t$this->_allChannels[$this->trimChannelName($this->getConfig('defaultChannelName'))] = $this->getConfig('defaultChannelID');\n\t\t}\n\t\treturn $this->_allChannels;\n\t}", "title": "" }, { "docid": "a15b31ef8cc721c36b83590115bd5338", "score": "0.6286954", "text": "public static function getChannels()\n {\n $app = Facade::getFacadeApplication();\n $db = $app->make(Connection::class);\n $channels = (array) $db->GetCol('select distinct channel from Logs order by channel asc');\n\n return $channels;\n }", "title": "" }, { "docid": "6a39469d6059b9504ec91e0e5e6f0300", "score": "0.62261575", "text": "public function via($notifiable)\n {\n /* @var $event \\Spatie\\ServerMonitor\\Events\\Event */\n $event = $notifiable->getEvent();\n /* @var $host \\Spatie\\ServerMonitor\\Models\\Host */\n $host = $event->check->host()->first();\n $notifications = $host->getCustomProperty('notifications');\n if(!$notifications) {\n return config('server-monitor.notifications.notifications.'.static::class);\n }\n if(isset($notifications[static::class]) && isset($notifications[static::class]['channels'])) {\n return $notifications[static::class]['channels'];\n }\n return [];\n }", "title": "" }, { "docid": "c889e73013edc4402e64b3ff623b27a4", "score": "0.6209381", "text": "public function getChannels()\n {\n $resultString = $this->requestMaker->performRequest($this->url);\n\n $channel = $this->serializer->deserialize(\n $resultString,\n 'Ist1\\ChannelBundle\\Entity\\ChannelCollection',\n $this->format\n );\n\n return $channel;\n }", "title": "" }, { "docid": "7b1faf7200828280a5f2a51167e8c46e", "score": "0.6142393", "text": "public function getExtraChannels();", "title": "" }, { "docid": "243443c279ae6eb07b9d0fbdf06ba42e", "score": "0.61232203", "text": "public function via($notifiable)\n {\n return [FcmChannel::class];\n }", "title": "" }, { "docid": "c7c646cec9ad41786c14d68ad6782771", "score": "0.61199963", "text": "public function via($notifiable)\n {\n $channels = [];\n if (isset($this->data['send_voice'])) {\n if ($notifiable->primaryPhone) {\n array_push($channels, VoiceAwsChannel::class);\n } else {\n $this->data['send_sms'] = true;\n }\n }\n if (isset($this->data['send_sms'])) {\n if ($notifiable->primaryPhone && mb_strtolower($notifiable->primaryPhone->number_type) == 'mobile') {\n array_push($channels, SmsAwsChannel::class);\n } else {\n $this->data['send_email'] = true;\n }\n }\n if (isset($this->data['send_email'])) {\n array_push($channels, 'mail');\n }\n if (isset($this->data['send_database'])) {\n array_push($channels, 'database');\n array_push($channels, 'broadcast');\n }\n\n return $channels;\n }", "title": "" }, { "docid": "c2102eb25a5db3d4dd38b8ffcfe70c68", "score": "0.60950285", "text": "public function via()\n {\n return [$this->channel];\n }", "title": "" }, { "docid": "ab294dced4146e395c98c7749fac31f9", "score": "0.60212654", "text": "public function list(): array\n {\n $response = $this->sendRequest(HttpMethods::GET, '/channels');\n\n $channels = [];\n $this->responseToArrayOfAriModelInstances(\n $response,\n new Channel(),\n $channels\n );\n\n return $channels;\n }", "title": "" }, { "docid": "c23603f1a5b0fd2de69fd0fec2a73d82", "score": "0.60046566", "text": "public function getChannelTypes(): array\n {\n return $this->channel_types;\n }", "title": "" }, { "docid": "15be5d32f4cada049942dbd95a488d87", "score": "0.5994729", "text": "public function broadcastOn()\n {\n return [\n new PrivateChannel('channel-name'),\n new PrivateChannel('another-channel-name'),\n ];\n }", "title": "" }, { "docid": "584170a43ff01499a01708ca9699e379", "score": "0.5989427", "text": "public function broadcastOn()\n {\n return ['development'];\n // return new PrivateChannel('channel-name');\n }", "title": "" }, { "docid": "55225a0e5aa4153900958292f46b5881", "score": "0.5985226", "text": "public function via($notifiable)\n {\n return [ExpoChannel::class];\n }", "title": "" }, { "docid": "1c5cccc3691065d317827f233c363861", "score": "0.59709734", "text": "public function getChannels()\n {\n $result = [];\n // Get all of the channels for the service\n foreach ($this->model->channels as $channel) {\n $tmpChannel = $channel->toArray();\n $tmpChannel['openinghours'] = [];\n\n foreach ($channel->openinghours as $openinghours) {\n $instance = $openinghours->toArray();\n $tmpChannel['openinghours'][] = $instance;\n }\n\n $result[] = $tmpChannel;\n }\n\n return $result;\n }", "title": "" }, { "docid": "339b7133d90461aaed1f61d9e9ddba0c", "score": "0.5965364", "text": "public function via($notifiable)\n {\n return [FirebaseChannel::class];\n }", "title": "" }, { "docid": "e393fe0d409dd5e2428b035f035bca86", "score": "0.5956876", "text": "private function get_all_channels() {\n\t\treturn get_terms( 'p2_channel', array( 'hide_empty' => false ) );\n\t}", "title": "" }, { "docid": "8d28f2693b82fc72bc9c094e0d5c01aa", "score": "0.5952874", "text": "public function getDeliveryCampaigns() {\n return $this->getTable()->getDeliveryCampaigns($this->getId());\n }", "title": "" }, { "docid": "ee649ee402c9875ee62ad4099ae6f024", "score": "0.59301424", "text": "public function getChannel();", "title": "" }, { "docid": "8dbbc76632eff6a23d329fe44b97b3e8", "score": "0.59145975", "text": "public function getChannel()\n {\n return $this->hasMany('App\\Channel', 'user_id', 'id');\n }", "title": "" }, { "docid": "8486b8dab78f9b0628c3b157ed90721a", "score": "0.58981186", "text": "public function via($notifiable) {\n return [PushNotificationsChannel::class];\n }", "title": "" }, { "docid": "ee70c7bb3badf3774a059b4197d9bcf0", "score": "0.5896299", "text": "public function getDelivery()\n {\n return $this->delivery;\n }", "title": "" }, { "docid": "ee70c7bb3badf3774a059b4197d9bcf0", "score": "0.5896299", "text": "public function getDelivery()\n {\n return $this->delivery;\n }", "title": "" }, { "docid": "41330f2c997fdfb37aef6adfcffbcc89", "score": "0.58903676", "text": "public function channels()\n {\n return $this->hasMany('App\\Models\\Channel');\n }", "title": "" }, { "docid": "32ad521064db850cf2d965dee288d9c9", "score": "0.58809364", "text": "public function getNotificationCategorySubscriptions()\n {\n return $this->notification_category_subscriptions;\n }", "title": "" }, { "docid": "9f1a34484ddba22e70abbfe486bd6a17", "score": "0.5879848", "text": "public function getChannels()\n\t{\n\t\t$this->clear();\n\t\t$this->addReq( 'Action', 'CoreShowChannels' );\n\n\t\t$channels = NULL;\n\t\tif( $this->execute() )\n\t\t{\n\t\t\t/* Each event is one channel. Parse until we receive\n\t\t\t * an event which is CoreShowChannelsComplete\n\t\t\t */\n\t\t\t$complete = FALSE;\n\t\t\twhile( ! $complete )\n\t\t\t{\n\t\t\t\t$this->clear();\n\t\t\t\t$this->read();\n\t\t\t\t\n\t\t\t\t$tmpc = Array();\n\t\t\t\tforeach( $this->amires as $r )\n\t\t\t\t{\n\t\t\t\t\t/* If this is an event header, see what type it is */\n\t\t\t\t\tif( $r[0] == 'Event' )\n\t\t\t\t\t{\n\t\t\t\t\t\tswitch( $r[1] )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcase 'CoreShowChannelsComplete' :\n\t\t\t\t\t\t\t\t$complete = TRUE;\n\t\t\t\t\t\t\t\tbreak;;\n\t\t\t\t\t\t\tcase 'CoreShowChannel' :\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\tbreak;;\n\t\t\t\t\t\t\tdefault :\n\t\t\t\t\t\t\t\ttrigger_error(\"ERROR- Unknown event encountered waiting for channel list: \". $r[1] );\n\t\t\t\t\t\t\t\t$complete = TRUE;\n\t\t\t\t\t\t\t\tbreak;;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif( $complete )\n\t\t\t\t\t\t \tbreak;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t$tmpc[ $r[0] ] = $r[1];\n\t\t\t\t}\n\n\t\t\t\t$channels[] = $tmpc;\n\t\t\t}\n\t\t\treturn $channels;\n\t\t}\n\t}", "title": "" }, { "docid": "439fe197ef1383c906120d5738e6dcb6", "score": "0.5869662", "text": "public function via($notifiable)\n {\n return [AfricaTalkingChannel::class];\n }", "title": "" }, { "docid": "6ec47d6664b4e60164189696f4cb2924", "score": "0.5840401", "text": "public function getChannel()\n {\n return $this->fields['channel'];\n }", "title": "" }, { "docid": "dfc603480118b2bd6ba57e47432029c8", "score": "0.5786768", "text": "public function getChannel()\n {\n return $this->channel;\n }", "title": "" }, { "docid": "dfc603480118b2bd6ba57e47432029c8", "score": "0.5786768", "text": "public function getChannel()\n {\n return $this->channel;\n }", "title": "" }, { "docid": "dfc603480118b2bd6ba57e47432029c8", "score": "0.5786768", "text": "public function getChannel()\n {\n return $this->channel;\n }", "title": "" }, { "docid": "67f4516bf16153e72f67ab6d0aea51ba", "score": "0.5781576", "text": "public function getActiviteChannel();", "title": "" }, { "docid": "0974d132e64cd6a6f58fc91de5ab732b", "score": "0.57778144", "text": "public function broadcastOn() {\n return [\n new PrivateChannel('OrderPrivateChannel.' . $this->getObjOrder()->getIntId()),\n ];\n }", "title": "" }, { "docid": "9c2658089fc01592667571616c92a22d", "score": "0.5759581", "text": "public function getChannel()\n {\n return $this->attributes['paymentChannel'];\n }", "title": "" }, { "docid": "b5e94c381a7b37487c4ead457fb79582", "score": "0.5748286", "text": "public function getChannel()\n {\n return $this->getRelationValue('channel');\n }", "title": "" }, { "docid": "93f00851ae7a29bbc626b7022654cd2b", "score": "0.5745656", "text": "public function broadcastOn(): array\n {\n return [\n new PrivateChannel('channel-name'),\n ];\n }", "title": "" }, { "docid": "34553dd6b90541a9f4c819afe2df4323", "score": "0.573387", "text": "public static function getChannels()\n {\n $channels = [];\n\n try {\n $mapper = new ObjectMapper(new JsonSerializer());\n ;\n $response = self::getResponse();\n $data = json_decode($response, true);\n if (count($data['Channels']) > 0) {\n foreach ($data['Channels'] as $dataProject) {\n $channels[] = $mapper->map(json_encode($dataProject), Channel::class);\n }\n }\n } catch (\\Exception $e) {\n throw $e;\n }\n\n return $channels;\n }", "title": "" }, { "docid": "15ed23ce2d26b035cd49aa0898ab869f", "score": "0.5731015", "text": "public function getChannels(): ?array {\n $val = $this->getBackingStore()->get('channels');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, Channel::class);\n /** @var array<Channel>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'channels'\");\n }", "title": "" }, { "docid": "d15fbbed24b60308492acc16e020623f", "score": "0.57259464", "text": "public function via($notifiable)\n {\n return [LineBotGroupNotificationChannel::class];\n }", "title": "" }, { "docid": "7f508866efb5d8fe6b3ff5341d159057", "score": "0.5711481", "text": "public function getChannel()\n {\n $this->createChannel();\n\n return $this->channel;\n }", "title": "" }, { "docid": "89574ca4b77881f0f6400530cffcb11b", "score": "0.56827295", "text": "public function via($notifiable)\n {\n return [GhasedakChannel::class];\n }", "title": "" }, { "docid": "16ca551553cb540e3f02849f7e843c7a", "score": "0.56773317", "text": "public function getAll() {\n\t\tglobal $wpdb;\n\n\t\t$channels = array();\n\t\t$table = WiseChatInstaller::getChannelsTable();\n\t\t$sql = sprintf('SELECT * FROM %s ORDER BY name ASC;', $table);\n\t\t$results = $wpdb->get_results($sql);\n\t\tif (is_array($results)) {\n\t\t\tforeach ($results as $result) {\n\t\t\t\t$channels[] = $this->populateChannelData($result);\n\t\t\t}\n\t\t}\n\n\t\treturn $channels;\n\t}", "title": "" }, { "docid": "a9a50df1107490cc39b395d279981c09", "score": "0.56724286", "text": "public function get_all_delivered(){\r\n\t\t$allDeliveredDB = $this->db->get_results( \"SELECT * FROM $this->ch_table WHERE `status` = 'delivered'\", OBJECT );\r\n\t\treturn $allDeliveredDB;\r\n\t}", "title": "" }, { "docid": "88349e2ea5e7f2e2dfbf2b550dfa9784", "score": "0.56719667", "text": "public function getChannelsUpdate()\n {\n return $this->channels_update;\n }", "title": "" }, { "docid": "3505e8b27e0fbdaa34b45f1f39ef680c", "score": "0.56618094", "text": "public function getNotifications(): array\n {\n return $this->notifications;\n }", "title": "" }, { "docid": "959efb7cb2224036c97463b31142b0fa", "score": "0.5659599", "text": "public function notifications()\n {\n $notifications = $this->get(\"/api/v1/conversations?as_user_id=sis_user_id:mtm49\");\n return $notifications;\n }", "title": "" }, { "docid": "6f0e0a16478289b579c8428075f45230", "score": "0.56469744", "text": "public function setNotificationChannels($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->notification_channels = $arr;\n\n return $this;\n }", "title": "" }, { "docid": "dfbd342a6cd8b7395ddf635e64419ed1", "score": "0.5646019", "text": "public function getNotifications()\n {\n return $this->notifications;\n }", "title": "" }, { "docid": "c4cdd60c4c595cfcda4d1542fc87b871", "score": "0.563205", "text": "public function via($notifiable)\n {\n if (!$notifiable->shouldNotify($this)) {\n return [];\n }\n\n return ['broadcast', 'database'];\n }", "title": "" }, { "docid": "df297153ea74f2ec7650a122680cd856", "score": "0.56312", "text": "public function getDistributionChannel()\n {\n return $this->distributionChannel instanceof ChannelResourceIdentifierBuilder ? $this->distributionChannel->build() : $this->distributionChannel;\n }", "title": "" }, { "docid": "6bf74bd98123614c98ea746215ed26c4", "score": "0.5629765", "text": "public function broadcastOn()\n {\n return ['device-channel'];\n }", "title": "" }, { "docid": "073699449efa3563071857603778063a", "score": "0.56226784", "text": "public function receivesBroadcastNotificationsOn()\n {\n // return [\n // new PrivateChannel(\"USER.{$this->id}\"),\n // ];\n\n return \"user.{$this->id}\";\n }", "title": "" }, { "docid": "be0893d448c5360fa55e9a7b1e9e9bfe", "score": "0.5621258", "text": "function get_channel_info() {\n\t\treturn $this->feed->channel;\n\t}", "title": "" }, { "docid": "ad37e8b57f0f3efc2bf32ceb509f67e4", "score": "0.5603935", "text": "public function getChannel()\n {\n $value = $this->get(self::CHANNEL);\n return $value === null ? (integer)$value : $value;\n }", "title": "" }, { "docid": "640ec7749caf5508f50afed8e798fb00", "score": "0.56008476", "text": "public function get_allowed_channels() {\n\t\tif ( is_user_logged_in() ) {\n\t\t\tglobal $current_user;\n\t\t\tget_currentuserinfo();\n\t\t\t$user_channels = get_user_meta( $current_user->ID, '_p2_channels', true );\n\t\t\treturn get_terms( 'p2_channel', array( 'include' => $user_channels, 'hide_empty' => false ) );\n\t\t} else {\n\t\t\treturn array();\n\t\t}\n\t}", "title": "" }, { "docid": "6b2609f1a3756d6cf4d0f8e9be383927", "score": "0.55958277", "text": "public function getChannelDeposits(): Collection;", "title": "" }, { "docid": "74158519b387838288c731dffddf3ed7", "score": "0.55957353", "text": "protected function getChannelElements() {\n return [];\n }", "title": "" }, { "docid": "52db6a10f33b38ac26f6283d68a9b448", "score": "0.55597806", "text": "public function via($notifiable)\n {\n return [\n FacebookPosterChannel::class,\n ];\n }", "title": "" }, { "docid": "943d7eaa61de94059bb4f8f742c98a4a", "score": "0.5557864", "text": "public function via($notifiable)\n {\n $verification = Verification::firstOrCreate(['user_id' => $this->user->id]);\n return ($verification->canISendMail()) ? [SendGridChannel::class] : [];\n }", "title": "" }, { "docid": "2dffc0838916cd31163e1027dabac0c8", "score": "0.5544159", "text": "public function via($notifiable)\n {\n return [OneSignalChannel::class];\n }", "title": "" }, { "docid": "2dffc0838916cd31163e1027dabac0c8", "score": "0.5544159", "text": "public function via($notifiable)\n {\n return [OneSignalChannel::class];\n }", "title": "" }, { "docid": "33248c3801c711081eb35cc41b524d60", "score": "0.5536224", "text": "public function getChannel(): string\n {\n return $this->channel;\n }", "title": "" }, { "docid": "33248c3801c711081eb35cc41b524d60", "score": "0.5536224", "text": "public function getChannel(): string\n {\n return $this->channel;\n }", "title": "" }, { "docid": "cf7340300b1863fb455b886587d3a22c", "score": "0.553225", "text": "public function getProductChannel()\n {\n return $this->product_channel;\n }", "title": "" }, { "docid": "c16ec8492a9389c6ca815b223f2660ba", "score": "0.552008", "text": "public static function channel() \r\n {\r\n return self::requestHttp('GET', self::CHANNEL);\r\n }", "title": "" }, { "docid": "71b6a2923f0e9ffa64d710d7a49b144d", "score": "0.5517243", "text": "public function getNotificationQueue()\n {\n return Mage::helper('sheep_queue')->getQueue(self::NOTIFICATION_QUEUE);\n }", "title": "" }, { "docid": "d3fa27a8b1387f13fc36f2fb41aa4bb0", "score": "0.55154943", "text": "protected function channels()\n {\n Channel::truncate();\n\n collect([\n [\n 'name' => 'PHP',\n 'description' => 'A channel for general PHP questions. Use this channel if you can\\'t find a more specific channel for your question.',\n 'colour' => '#008000'\n ],\n [\n 'name' => 'Vue',\n 'description' => 'A channel for general Vue questions. Use this channel if you can\\'t find a more specific channel for your question.',\n 'colour' => '#cccccc'\n ],\n [\n 'name' => 'JavaScript',\n 'description' => 'This channel is for all JavaScript related questions.',\n 'colour' => '#43DDF5'\n ],\n [\n 'name' => 'Node',\n 'description' => 'This channel is for all Node related questions.',\n 'colour' => '#a01212'\n ],\n [\n 'name' => 'Ruby',\n 'description' => 'This channel is for all Ruby related questions.',\n 'colour' => '#ff8822'\n ],\n [\n 'name' => 'Go',\n 'description' => 'This channel is for all Go related questions.',\n 'colour' => '#ea4e28'\n ],\n [\n 'name' => 'Laravel',\n 'description' => 'This channel is for all Laravel related questions.',\n 'colour' => '#113a62'\n ],\n [\n 'name' => 'Elixir',\n 'description' => 'This channel is for all Elixir related questions.',\n 'colour' => '#4a245d'\n ],\n [\n 'name' => 'Webpack',\n 'description' => 'This channel is for all Webpack related questions.',\n 'colour' => '#B3CBE6'\n ],\n [\n 'name' => 'Symfony',\n 'description' => 'This channel is for all Symfony related questions.',\n 'colour' => '#091b47'\n ],\n [\n 'name' => 'React',\n 'description' => 'This channel is for all React related questions.',\n 'colour' => '#1E38BB'\n ],\n [\n 'name' => 'Java',\n 'description' => 'This channel is for all Java related questions.',\n 'colour' => '#01476e'\n ],\n [\n 'name' => 'AWS',\n 'description' => 'This channel is for all AWS related questions.',\n 'colour' => '#444444'\n ],\n\n ])->each(function ($channel) {\n factory(Channel::class)->create([\n 'name' => $channel['name'],\n 'description' => $channel['description'],\n 'colour' => $channel['colour']\n ]);\n });\n\n return $this;\n }", "title": "" }, { "docid": "1f44a548721bd307b2b13c6490997719", "score": "0.5514705", "text": "public function getChannels($protocol) {\n $variables = array();\n $variables['command'] = 'guifi.misc.channel';\n $variables['protocol'] = $protocol;\n\n $response = $this->sendRequest($this->url, $variables);\n $body = $this->parseResponse($response);\n if (!empty($body->responses->channels)) {\n return $body->responses->channels;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "e8b63fb115b2ee3724e182514333b9c3", "score": "0.5508571", "text": "public function via($notifiable)\n {\n $via = ['database'];\n if ($notifiable->checkCanDisturbNotify() && ($notifiable->site_notifications['push_my_user_new_activity']??true)){\n $via[] = PushChannel::class;\n }\n return $via;\n }", "title": "" }, { "docid": "0fa341e4b5cebc5453bc3f5c043ad356", "score": "0.55025744", "text": "public function via($notifiable)\n {\n return [TelegramChannel::class];\n }", "title": "" }, { "docid": "0fa341e4b5cebc5453bc3f5c043ad356", "score": "0.55025744", "text": "public function via($notifiable)\n {\n return [TelegramChannel::class];\n }", "title": "" }, { "docid": "0fa341e4b5cebc5453bc3f5c043ad356", "score": "0.55025744", "text": "public function via($notifiable)\n {\n return [TelegramChannel::class];\n }", "title": "" }, { "docid": "b17bdff3af2653591a4c0cb17fa8e9a3", "score": "0.5491806", "text": "public function via($notifiable) {\n return [TelegramChannel::class];\n }", "title": "" }, { "docid": "84d9580f3d3a5e9874fbbae1d1bd2429", "score": "0.5487844", "text": "public function getAllChannels(): ?array {\n $val = $this->getBackingStore()->get('allChannels');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, Channel::class);\n /** @var array<Channel>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'allChannels'\");\n }", "title": "" }, { "docid": "9ffff5090ef0fdfd521cc479258d649e", "score": "0.54837435", "text": "public function fetchAllChannels()\n {\n $organisationSlug = Security::getCurrentUser()\n ->Account()\n ->OrganisationSlug;\n\n $channelService = new ChannelsApiDataService($organisationSlug);\n\n return $this->owner->sendResponse([\n 'items' => $channelService->getItems(),\n ]);\n }", "title": "" }, { "docid": "fcd8f42d3685568bd0b0374f92f60d65", "score": "0.54794836", "text": "public function via($notifiable)\n {\n return [EasySmsChannel::class];\n }", "title": "" }, { "docid": "b3709fdb24e41569db33aa2bc056ca70", "score": "0.5471895", "text": "public function getChannel()\n {\n return $this->channel instanceof ChannelResourceIdentifierBuilder ? $this->channel->build() : $this->channel;\n }", "title": "" }, { "docid": "bc812bd0eee1941e2061dc27e0bcf896", "score": "0.54616344", "text": "public function broadcastOn()\n {\n return [\n new PrivateChannel('taskman-chanel.' . $this->user->id),\n new PrivateChannel('taskman-chanel.' . $this->user->id . '.' . $this->list->id)\n ];\n }", "title": "" }, { "docid": "bd4cbee9d160ca52ce217e22c713eb04", "score": "0.5459282", "text": "public function broadcastOn()\n {\n return new Channel('conversations');\n }", "title": "" }, { "docid": "03288ec7951094c5c1945aa2135554f3", "score": "0.5453152", "text": "public function broadcastOn()\n {\n //return new PrivateChannel('channel-name');\n return ['extension-status'];\n }", "title": "" }, { "docid": "f9ff35ef8d67cd869ced5f51b47365ab", "score": "0.5449691", "text": "public function all()\n {\n return $this->notifications;\n }", "title": "" }, { "docid": "497d3404a30c8b06a27366550781f0a2", "score": "0.544201", "text": "public function getChannelItems()\n {\n $channelItems = [];\n\n foreach ($this->getItemsCollection()->getItems() as $item) {\n $channelItem = $item->getChildObject()->getChannelItem();\n\n if ($channelItem === null) {\n continue;\n }\n\n $channelItems[] = $channelItem;\n }\n\n return $channelItems;\n }", "title": "" } ]
69feb4d484fa9eda9448881cfce0c2f8
Returns an notification by its ID.
[ { "docid": "9a18c0a629fdff1afcd07b96c33bcf9c", "score": "0.698592", "text": "public function getNotificationById($notificationId)\n {\n return craft()->elements->getElementById($notificationId, 'PushNotifications_Notification');\n }", "title": "" } ]
[ { "docid": "257711f0c0fb4dd6259dfb7bea18d293", "score": "0.88103753", "text": "public function getNotification($id)\n {\n $notification = Notification::find($id);\n return $notification;\n }", "title": "" }, { "docid": "49e2b4a8b15ef062f61315f9adceabfb", "score": "0.7804991", "text": "public function getComplaintNotification($id)\n {\n $notification = Notification::where('complaint_reply_id', $id)->get();\n return $notification;\n }", "title": "" }, { "docid": "887dde69d8040e6d613f8e3b4796704d", "score": "0.77774423", "text": "public function get_violator_notification_by_id($id) {\n\t\t$this->db->where('id', (int)$id);\n\n\t\treturn $this->_get_violator_notification();\n\t}", "title": "" }, { "docid": "fb136fa9fae0021b7cc2a89491cacd9f", "score": "0.760504", "text": "public function getQueryNotification($id)\n {\n $notification = Notification::where('query_reply_id', $id)->get();\n return $notification;\n }", "title": "" }, { "docid": "6238545be0fc6195c065e0ee33b7eb80", "score": "0.75931823", "text": "public function getById($id, $user) {\n\t\t$sql = $this->connection->getQueryBuilder();\n\t\t$sql->select('*')\n\t\t\t->from('notifications')\n\t\t\t->where($sql->expr()->eq('notification_id', $sql->createParameter('id')))\n\t\t\t->setParameter('id', $id)\n\t\t\t->andWhere($sql->expr()->eq('user', $sql->createParameter('user')))\n\t\t\t->setParameter('user', $user);\n\t\t$statement = $sql->execute();\n\n\t\t$notification = null;\n\t\tif ($row = $statement->fetch()) {\n\t\t\t$notification = $this->notificationFromRow($row);\n\t\t}\n\t\t$statement->closeCursor();\n\n\t\treturn $notification;\n\t}", "title": "" }, { "docid": "7753bdde27ec0de6c6e12c4221f72c7b", "score": "0.7516757", "text": "public function show($id)\n {\n $target = Notification::where('id_notification', $id)->first();\n\n if(!$target){\n return [\n 'message' => 'no data found'\n ];\n }\n return $target;\n }", "title": "" }, { "docid": "7582c69e55ab6e628a3c86022ab93bd6", "score": "0.7424617", "text": "public function getHostelMessNotification($id)\n {\n $notification = Notification::where(['hostel_id' => $id, 'type' => 'MessMenu'])->get();\n return $notification();\n }", "title": "" }, { "docid": "f2d211bf275ead839a1aec5245e4850a", "score": "0.73851615", "text": "public function get($notification_id) {\n $response = $this->podio->request('/notification/'.$notification_id);\n if ($response) {\n $notification = json_decode($response->getBody(), TRUE);\n return $notification;\n }\n }", "title": "" }, { "docid": "f57b1d1cef95fba81687ea2864132de0", "score": "0.73836076", "text": "public function findById($id){\n\n $stmt = $this->db->prepare(\"SELECT *, N.id as 'id_notification', U.id as 'id_user' FROM notification N LEFT JOIN user U ON N.id_user=U.id WHERE N.id=?\");\n $stmt->execute(array($id));\n $notification = $stmt->fetch(PDO::FETCH_ASSOC);\n\n if($notification != null) {\n $usuario = new User($notification[\"id_user\"], $notification[\"login\"],\n $notification[\"name\"],\n NULL/*password*/,\n $notification[\"email\"],\n $notification[\"description\"]);\n return new Notification($notification[\"id_notification\"], $usuario,\n $notification[\"date\"], $notification[\"title\"], $notification[\"content\"]);\n } else {\n return NULL;\n }\n }", "title": "" }, { "docid": "8113333ae6a371a83e986e9bc2bfc270", "score": "0.7207256", "text": "public function find($notification_id)\n {\n $notification = $this->notifynderRepo->find($notification_id);\n\n if ( is_null($notification) )\n {\n throw new NotificationNotFoundException(\"Notification Not found\");\n }\n\n return $notification;\n }", "title": "" }, { "docid": "183c7dff11219a336069310f7805a2e4", "score": "0.7203269", "text": "public function getNotification();", "title": "" }, { "docid": "981e5eeeedeae0290531de17b44a9d4a", "score": "0.717533", "text": "public function show($id)\n {\n $notification = Notification::find($id);\n return response(['notification' => new NotificationResource($notification), 'message' => 'Retrieved successfully'], 200);\n }", "title": "" }, { "docid": "e365ecdbe206dd7279644e7047b088eb", "score": "0.71223176", "text": "protected function getNotificationById($notificationId)\n {\n $filter = new QueryFilter();\n /** @noinspection PhpUnhandledExceptionInspection */\n $filter->where('id', Operators::EQUALS, $notificationId);\n /** @var Notification $notification */\n $notification = $this->getRepository()->selectOne($filter);\n\n return $notification;\n }", "title": "" }, { "docid": "703de67c1e3f4bca0ef8479f7d70b937", "score": "0.7077835", "text": "public function get_notification($notification_id) {\n \n // Verify if session exists and if the user is admin\n $this->if_session_exists($this->user_role,1);\n \n // Get notification data by $notification_id\n $get_notification = $this->notifications->get_notification($notification_id);\n \n if ( $get_notification ) {\n \n echo json_encode($get_notification);\n \n }\n \n }", "title": "" }, { "docid": "e2fd2cad9ed64192c79a89e72f77dfaf", "score": "0.70328945", "text": "public function getNotification()\n {\n return $this->hasOne(MPNotifications::className(), ['id' => 'id_notification']);\n }", "title": "" }, { "docid": "356f6756f4e4f7632466a266d7f79e6d", "score": "0.6911835", "text": "public function show($id)\n {\n $notification = $this->notification->with('user')->findOrFail($id);\n\n return $this->sendResponse($notification, 'Notification Details');\n }", "title": "" }, { "docid": "e627c4411124f3a9d53f8bf60f2bfbba", "score": "0.6836212", "text": "public function show($id)\n {\n $notification = Notifications::find($id);\n\n if(!$user)\n {\n return $this->respondNotFound('Notification does not exist.');\n }\n\n return $this->respond([\n 'data' => $this->notificationsTransformer->transform($notification)\n ]);\n }", "title": "" }, { "docid": "d4f53db7f072ee4262471b4c680d3487", "score": "0.68356675", "text": "function get_notification($n_id)\n {\n \n return $this->db->get_where('Notification',array('n_id'=>$n_id))->row_array();\n }", "title": "" }, { "docid": "e34c2eadf02958d2cbc89dd675074544", "score": "0.68003607", "text": "public function get($notificationId, $optParams = array())\n {\n $params = array('notification_id' => $notificationId);\n $params = array_merge($params, $optParams);\n return $this->call('get', array($params), \"Books_Notification\");\n }", "title": "" }, { "docid": "e76b34a12df65bf32cfe6eb98f354206", "score": "0.676366", "text": "public function first()\n {\n return $this->notifications->first();\n }", "title": "" }, { "docid": "bdacb782a16f0c58efb2dce3bef70b5d", "score": "0.67608225", "text": "public function readOne($notification_id)\n {\n $notification = $this->find($notification_id);\n\n return $this->notifynderRepo->readOne($notification);\n }", "title": "" }, { "docid": "8290f31224d42673fed830861b8f2b3a", "score": "0.657997", "text": "public function get($id)\n {\n return Message::findOrFail($id);\n }", "title": "" }, { "docid": "fd9db7edcf206848e8c459f22656d4e8", "score": "0.65065914", "text": "public function get($notificationID)\n {\n $url = sprintf('notifications/%s?app_id=%s', $notificationID, $this->appIDKey);\n\n return $this->oneSignal->execute($url, 'GET', $this->extraOptions);\n }", "title": "" }, { "docid": "4ebfb195af97b2d819f981f43616bb09", "score": "0.6494587", "text": "public function get(int $id)\n {\n $reminder = Reminder::find($id);\n return $reminder;\n }", "title": "" }, { "docid": "c3930c23e5445bfb3ac3f971fe79c296", "score": "0.6440992", "text": "public function getOne(string $id): array\n {\n $request = $this->createRequest('GET', \"/notifications/$id?app_id={$this->client->getConfig()->getApplicationId()}\");\n $request = $request->withHeader('Authorization', \"Basic {$this->client->getConfig()->getApplicationAuthKey()}\");\n\n return $this->client->sendRequest($request);\n }", "title": "" }, { "docid": "6bfd9078e14d564b10534f1eb97e03f6", "score": "0.6418912", "text": "public function notifications_get() {\n return $this->execute('notifications.get', array());\n }", "title": "" }, { "docid": "dfe5ce830dd106de69b6cb22cc4b82fa", "score": "0.6387175", "text": "public function getnotification()\n\t\t{\n\t\t\t$logger = Logger::getLogger(__CLASS__);\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$taskCode = \"\";\n\t\t\t\t$userid = 0;\n\t\t\t\t$this->LogAccess($taskCode);\n\t\t\t\tif (isset($_COOKIE[\"ropaziuser\"])){\n\t\t\t\t\t$logger->debug(\"Got user cookie\");\n\t\t\t\t\t$logger->debug($_COOKIE[\"ropaziuser\"]);\n\t\t\t\t\t$userid = CommonUtils::verifyUserCookie();\n\t\t\t\t}\n\t\t\t\t$notificationBO = new NotificationBO($this->_UserInfo);\n\t\t\t\t$notifications = $notificationBO->SelectByAppUserID($userid);\n\t\t\t\t$logger->debug(\"Got notifications::\" . sizeof($notifications));\n\t\t\t\t$this->model = $notifications;\n\t\t\t\tob_start();\n\t\t\t\tinclude('views/_alerts.php');\n\t\t\t\t$output = ob_get_contents();\n\t\t\t\tob_end_clean();\n\t\t\t\treturn $this->view->outputJson(Constants::$OK, $output, \"\");\n\t\t\t}\n\t\t\tcatch (Exception $ex)\n\t\t\t{\n\t\t\t\t$logger->error($ex->getMessage());\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "ea125c6a1a5d84a76fc52adc7eca59e0", "score": "0.63693506", "text": "public function getNotification()\n {\n return $this->notification;\n }", "title": "" }, { "docid": "ea125c6a1a5d84a76fc52adc7eca59e0", "score": "0.63693506", "text": "public function getNotification()\n {\n return $this->notification;\n }", "title": "" }, { "docid": "ea125c6a1a5d84a76fc52adc7eca59e0", "score": "0.63693506", "text": "public function getNotification()\n {\n return $this->notification;\n }", "title": "" }, { "docid": "c4d2ebf8b242c7b650776a792e4d7e27", "score": "0.6349921", "text": "public function getNotification(){\n if(func_num_args()>0):\n $userId = func_get_arg(0);\n $select = $this->select()\n ->from($this,array('message','notification_id','sent_on','contest_id'))\n ->where('send_to=?',$userId)\n ->where('status=?',1)\n ->where('accept!=?',2);\n $result = $this->getDefaultAdapter()->fetchAll($select);\n if($result):\n return $result;\n endif;\n endif;\n \n }", "title": "" }, { "docid": "1db0f6684427c7f7d2fafc8ac7eb4d28", "score": "0.6339664", "text": "public function get_notifications( $queue_id );", "title": "" }, { "docid": "070f03b7c64eeb954aad7d8949ee3687", "score": "0.63132864", "text": "public static function getNotificationByCompany($company_id)\n\t{\n\t\t$company_id = DbAgent::queryEncode($company_id,DbAgent::$DB_STRING);\n\t\t\t\t\n\t\t$query = \"SELECT n.id, n.times, n.company_id, n.user_id, n.content, u.name\n FROM notification_t n, user_t u\n WhERE n.company_id = $company_id\n\t\t\t\tAND n.company_id = u.company_id\n\t\t\t\tAND n.user_id = u.user_id\n ORDER BY id DESC\n LIMIT 1;\";\n \n $record = Database::currentDb()->getRecord($query);\n return $record;\n\t}", "title": "" }, { "docid": "96ff2e2ed0db022e4319dc513b1c8131", "score": "0.6278971", "text": "public function notifications_get() {\n return $this->call_method('facebook.notifications.get', array());\n }", "title": "" }, { "docid": "3f14ce04f9a6c9c09324ef2ffe139eb2", "score": "0.62621856", "text": "public function getFullNotification()\n {\n $id = $this->getRmaCollection()->getId();\n $notification = $this->rmanotificationcollectionFactory->create()\n ->addFieldToFilter('rma_request_id', $id);\n return $notification;\n }", "title": "" }, { "docid": "081bacb1cdc26321c0dae0d7b26599ca", "score": "0.6255791", "text": "public function getAny($id)\n {\n return Message::withoutGlobalScopes()->findOrFail($id);\n }", "title": "" }, { "docid": "d8a16e7210f662bed56d667550f1bb9e", "score": "0.6229213", "text": "function ht_dms_is_notification( $id = false ) {\n\n\treturn ht_dms_is( HT_DMS_NOTIFICATION_POD_NAME, $id );\n\n}", "title": "" }, { "docid": "5666ef0f8f128bc3a27deed22e5f602a", "score": "0.62225467", "text": "public function getNotificationByDeviceId()\n {\n $data = Input::all();\n\n $valids = Validator::make($data, [\n 'device_id' => 'required|alpha_dash'\n ]);\n\n // Check validator.\n if ($valids->fails()) {\n return Response::json(array('status' => 'error', 'data' => $valids->messages()));\n }\n\n // Find device id.\n $record = Device::where('device_id', $data['device_id'])->first();\n\n if (!$record) {\n return Response::json(array('status' => 'error', 'data' => Lang::get('dlnlab.aloexrates::message.device_not_exist')));\n }\n\n $records = Notification::where('device_id', $record->id)->get()->toArray();\n\n return Response::json(array('status' => 'successs', 'data' => $records));\n }", "title": "" }, { "docid": "88fd8b370eafbcc51f2b50fc9f7fc0e0", "score": "0.62163246", "text": "public function getById($notificationId)\n {\n $notification = $this->notificationFactory->create();\n $notification->load($notificationId);\n if (!$notification->getId()) {\n throw new NoSuchEntityException(__('Notification with id \"%1\" does not exist.', $notificationId));\n }\n return $notification;\n }", "title": "" }, { "docid": "96db2f9c6ce9f3acffa1a3a51e91efd9", "score": "0.6210827", "text": "public function get_notification( $user_id, $notification_id ) {\n \n $this->db->select('notifications_stats.status,notifications_stats.user_id,notifications.sent_time,notifications.notification_title,notifications.notification_body,notifications.notification_id as notification_id');\n $this->db->from($this->table);\n $this->db->join('notifications_stats', 'notifications.notification_id=notifications_stats.notification_id', 'left');\n $this->db->where('notifications.notification_id', $notification_id);\n $this->db->limit(1);\n\n $querys = $this->db->get();\n \n if ( $querys->num_rows() > 0 ) {\n\n $this->db->select('*');\n $this->db->from('notifications_stats');\n $this->db->where(array(\n 'notification_id' => $notification_id,\n 'user_id' => $user_id\n ));\n\n $query = $this->db->get();\n\n if ($query->num_rows() < 1) {\n\n // If a user has seen a notification the status will be 1\n $data = array(\n 'notification_id' => $notification_id,\n 'user_id' => $user_id,\n 'status' => 1\n );\n\n $this->db->insert('notifications_stats', $data);\n\n }\n \n $result = $querys->result_array();\n return $result;\n \n } else {\n \n return false;\n \n }\n \n }", "title": "" }, { "docid": "7cfcd7ad7f6d7a6b4fd075fd40cc8865", "score": "0.6204083", "text": "function notification($name, $object)\n\t{\n\t\t$ci = &get_instance();\n\t\t$notification = $ci->model->get(\"*\", TABLE_NOTIFICATIONS, ['name' => $name], '', '', true);\n\n\t\tif (isset($notification[$object])) return $notification[$object];\n\t}", "title": "" }, { "docid": "85afc206c418b2b6381c54a381461716", "score": "0.6190463", "text": "public function notifications_get($user_id=null){\n\n if($user_id){\n\n $notifications = $this->get_notifications($user_id,true);\n\n if($notifications){\n $this->response(\n array(\n 'status' => TRUE,\n 'message' => \"Notifications found.\",\n 'notifications' => $notifications\n ),\n REST_Controller::HTTP_OK\n );\n }else{\n $this->response(\n array(\n 'status' => FALSE,\n 'message' => \"Notifications not found.\",\n 'notifications' => []\n ),\n REST_Controller::HTTP_OK\n );\n } \n }else{\n $this->response([\n 'status' => FALSE,\n 'message' => 'Please provide user_id.',\n 'notifications' => []\n ], REST_Controller::HTTP_BAD_REQUEST);\n }\n }", "title": "" }, { "docid": "7ff8b1ddd2ecbe5748bf6269c49a7557", "score": "0.6179743", "text": "public function get_note_by_id($id) {\n\t\tif(is_null($this->id)) throw new BadMethodCallException('Server must be in directory before notes can be listed');\n\t\t$stmt = $this->database->prepare(\"SELECT * FROM server_note WHERE server_id = ? AND id = ? ORDER BY id\");\n\t\t$stmt->bind_param('dd', $this->id, $id);\n\t\t$stmt->execute();\n\t\t$result = $stmt->get_result();\n\t\tif($row = $result->fetch_assoc()) {\n\t\t\t$note = new ServerNote($row['id'], $row);\n\t\t} else {\n\t\t\tthrow new ServerNoteNotFoundException('Note does not exist.');\n\t\t}\n\t\t$stmt->close();\n\t\treturn $note;\n\t}", "title": "" }, { "docid": "7ff8b1ddd2ecbe5748bf6269c49a7557", "score": "0.6179743", "text": "public function get_note_by_id($id) {\n\t\tif(is_null($this->id)) throw new BadMethodCallException('Server must be in directory before notes can be listed');\n\t\t$stmt = $this->database->prepare(\"SELECT * FROM server_note WHERE server_id = ? AND id = ? ORDER BY id\");\n\t\t$stmt->bind_param('dd', $this->id, $id);\n\t\t$stmt->execute();\n\t\t$result = $stmt->get_result();\n\t\tif($row = $result->fetch_assoc()) {\n\t\t\t$note = new ServerNote($row['id'], $row);\n\t\t} else {\n\t\t\tthrow new ServerNoteNotFoundException('Note does not exist.');\n\t\t}\n\t\t$stmt->close();\n\t\treturn $note;\n\t}", "title": "" }, { "docid": "fc365f40bbe2c03c67106945e3cd8f0b", "score": "0.6162206", "text": "function get_client_notification($id, $user_id){\r\n\t\t$query = \"select date_format(cn.date_sent,'%d %b %Y %H:%i:%s') as date_sent,\r\n\t\t\t\t\t\t\tcn.sender as sender,\r\n\t\t\t\t\t\t\tcn.recipient as recipient, \r\n\t\t\t\t\t\t\tcn.subject as subject, \r\n\t\t\t\t\t\t\tcn.contents as contents \r\n\t\t\t\t\t\tfrom client_notifications cn \r\n\t\t\t\t\t\twhere id=\".mysql_real_escape_string($id).\" and \r\n\t\t\t\t\t\t\t\tuser_id=\".mysql_real_escape_string($user_id);\r\n\t\t$result = mysql_query($query);\r\n\t\tif(mysql_error()!=\"\"){\r\n\t\t\treturn \"Error: An error occurrred while getting client notification id $id. Error is: \".mysql_errno();\r\n\t\t}\r\n\t\tif(mysql_num_rows($result)==0){\r\n\t\t\treturn \"Error: No client notification with id $id found.\";\r\n\t\t}\r\n\t\t$row = mysql_fetch_array($result, MYSQL_ASSOC);\r\n\t\treturn $row;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "446ad12e9182579a3d603d25c80e1b55", "score": "0.6138459", "text": "public function findNote(int $id)\n {\n return static::find($id);\n }", "title": "" }, { "docid": "26ec886d355989d423810caa0e9ec115", "score": "0.6123322", "text": "public function get_id_notification(){\r\n\t\t$this->db->select('notification_id');\r\n\t\t$this->db->from('notifi');\r\n\t\t$this->db->order_by('notification_id', 'desc');\r\n\t\t$query = $this->db->get();\r\n\t\t$result = $query->result_array();\r\n\t\t\r\n\t\treturn $result[0]['notification_id'];\r\n\t}", "title": "" }, { "docid": "bbdb10acca745be79ae930ecdcbac98e", "score": "0.6107641", "text": "function fetchMessage($id)\n {\n return $this->message->getMessage($id);\n }", "title": "" }, { "docid": "4e58a203efba0845dba00ff5bbd0f47b", "score": "0.60943115", "text": "public function get($id) {\n $id=($id==='')?\"0\":$id;\n if (!isset($this->items[$id])) {\n return new MessageItem(); // we returns an empty error.\n }\n return $this->items[$id];\n }", "title": "" }, { "docid": "8b1d9f1bad8742bba38dfe88b892c237", "score": "0.608085", "text": "public function getNotification($user)\n {\n return MessageNotification::where('user_id', $user->id)\n ->where('message_id', $this->id)\n ->select(['mc_message_notification.*', 'mc_message_notification.updated_at as read_at'])\n ->first();\n }", "title": "" }, { "docid": "375697894f71e5bb0256edff866f82f9", "score": "0.60749596", "text": "public function viewNotification($id){\n $data['notification_info'] = MainNotification::find($id);\n\n if(!$id || !isset($data['notification_info']))\n return back()->with(['error'=>'Get Notification Error!']);\n\n return view('notification.view-notification',$data);\n }", "title": "" }, { "docid": "478280217b5b72b2d0f413ec9da18964", "score": "0.6069283", "text": "public function findLastNotification(){\n\n $stmt = $this->db->query(\"SELECT *, N.id as 'id_notification',\n U.id as 'id_user' FROM notification N LEFT JOIN user U ON N.id_user=U.id\n ORDER BY N.id DESC LIMIT 1\");\n $notification = $stmt->fetch(PDO::FETCH_ASSOC);\n\n if($notification != null) {\n $usuario = new User($notification[\"id_user\"], $notification[\"login\"],\n $notification[\"name\"],\n NULL/*password*/,\n $notification[\"email\"],\n $notification[\"description\"]);\n return new Notification($notification[\"id_notification\"], $usuario,\n $notification[\"date\"], $notification[\"title\"], $notification[\"content\"]);\n } else {\n return NULL;\n }\n }", "title": "" }, { "docid": "52b7a9547e372f78b9005abb9583f415", "score": "0.6068706", "text": "public function delete_violator_notification($id) {\n\t\treturn $this->db\n\t\t->where('id', (int)$id)\n\t\t->delete($this->_table_violator_notifications);\n\t}", "title": "" }, { "docid": "57597f04b879bc4ba15e6666ebe6303a", "score": "0.6066281", "text": "public function show(string $id)\n {\n $notification = Auth::user()->notifications()->findOrFail($id);\n\n $notification->markAsRead();\n return view('notifications.show')->with([\n 'notification' => $notification\n ]);\n }", "title": "" }, { "docid": "e356d7af1e971f60cd5b08e26174c79c", "score": "0.605716", "text": "public function receiveNotification(): stdClass {\n\n\t\treturn $this->greenApi->request( 'GET',\n\t\t\t'{{host}}/waInstance{{idInstance}}/ReceiveNotification/{{apiTokenInstance}}' );\n\t}", "title": "" }, { "docid": "d9a732a3f5df03a55cc19fc7043128b9", "score": "0.6037028", "text": "public function show($id)\n {\n $note = Note::findOrFail($id);\n\n return $note;\n }", "title": "" }, { "docid": "5e0b084e94fbb31c5a68e153f1af5ca7", "score": "0.60356456", "text": "public static function getMessage($id) {\n return self::model()->findByPk($id);\n }", "title": "" }, { "docid": "3eb52442ab035ba7f8d04fe567c098bb", "score": "0.6024636", "text": "public function show($id)\n {\n $notification=Notification::find($id);\n return view('service.notification.show',['notification'=>$notification]);\n }", "title": "" }, { "docid": "3cf79a029d3af26b7bfa6d1235eaa63a", "score": "0.6020432", "text": "protected function findModel($id)\n {\n if (($model = Notification::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "3cf79a029d3af26b7bfa6d1235eaa63a", "score": "0.6020432", "text": "protected function findModel($id)\n {\n if (($model = Notification::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "955b900e858a0b2fdb98c26e100cdc17", "score": "0.6012558", "text": "function getNotificationByUserId($user_id)\n\t{\n\t\t$sql = \"SELECT N.title,TN.id,N.type FROM \".TRANSAC_NOTIFY.\" as TN, \".NOTIFICATION.\" as N WHERE TN.user_id='\".$user_id.\"' AND TN.notification_id = N.id\";\n\t\t$query = $this->db->query($sql);\n\t\treturn $query->result_array();\n\t}", "title": "" }, { "docid": "30e2f57d3fdff2a77a7b59abe9a8e7b1", "score": "0.600916", "text": "public function getNotificationDetails()\n {\n $whereArray = [];\n\n $notificationId = $this->request->input(\"notification_id\");\n if ($notificationId) {\n $whereArray[] = [\"notification_id\", '=', $notificationId];\n }\n\n $this->notificationModel->setWhere($whereArray);\n $details = $this->notificationModel->getOrderByData(\"notification_id\");\n\n return $details;\n }", "title": "" }, { "docid": "3710182ce41b422feb6590f22333097a", "score": "0.6001341", "text": "public function getOne($id);", "title": "" }, { "docid": "dcc553ccd09e336738f584172992eee4", "score": "0.6000725", "text": "public function get_notice( $notice_id ) {\n\t\treturn self::$registry->get( $notice_id );\n\t}", "title": "" }, { "docid": "7727b4c8655b378e090b5f9a9591471f", "score": "0.5982803", "text": "public function getNotificationRef()\n {\n return $this->notificationRef;\n }", "title": "" }, { "docid": "fa354aa253eca1d653efa79a0aff2f9e", "score": "0.5971025", "text": "public function get($customer, $notificationId, $optParams = array())\n {\n $params = array('customer' => $customer, 'notificationId' => $notificationId);\n $params = array_merge($params, $optParams);\n return $this->call('get', array($params), 'Google\\Service\\Directory\\Notification');\n }", "title": "" }, { "docid": "1750f67e102af25410cb52f23e4316cc", "score": "0.5965521", "text": "public static function getOne(int $id);", "title": "" }, { "docid": "6e076d1b11c84c4b455b1c5264df2cbd", "score": "0.5963701", "text": "public function show($id)\n {\n return Messages::where('uid',$id)->first();\n }", "title": "" }, { "docid": "2322cf89cebb4103bc17b92670009b80", "score": "0.5956293", "text": "public function limpiarNotificacion($id)\n {\n Notificaciones::limpiar($id);\n \n return response()\n ->json(['mensaje' => 'ok']);\n }", "title": "" }, { "docid": "5b039b8f70ab1cbb013ab1e133c3fe9e", "score": "0.59510195", "text": "public function getById($id) {\n return Comment::applyScope($this->getDefaultScope())\n ->whereId($id)\n ->first();\n }", "title": "" }, { "docid": "a2c0206632ee8e4273e003149e0c60e8", "score": "0.5948039", "text": "public function getById($id)\n {\n return $this->getRep()->find($id);\n }", "title": "" }, { "docid": "a2c0206632ee8e4273e003149e0c60e8", "score": "0.5948039", "text": "public function getById($id)\n {\n return $this->getRep()->find($id);\n }", "title": "" }, { "docid": "3a38c4b85a75c4e32e3ad98ab5afed05", "score": "0.5942449", "text": "public function getById($id) {\n\treturn $this->getOne($id);\n }", "title": "" }, { "docid": "642a30a0b77eba38d8d8a83e9fbd4195", "score": "0.59307057", "text": "public function getUserNotifications( $id ) {\n\t\t$id = intval( $id );\n\n\t\treturn $this->dbSelect(\n\t\t\t'get_user_notifications',\n\t\t\t'seen, notifications.id, title, content',\n\t\t\t'user_settings',\n\t\t\t\"user_settings.id = $id AND user_notification.hidden = 0\",\n\t\t\t\"INNER JOIN user_notification ON user_notification.user_id = user_settings.id INNER JOIN notifications ON notifications.id = user_notification.notification_id\"\n\t\t);\n\t}", "title": "" }, { "docid": "8c676a1e4e13e3120389594bc0b04c53", "score": "0.592724", "text": "static function fromId($id)\r\n {\r\n $data = DB::object('noteById', $id);\r\n if (!$data) return null;\r\n $data = (array)$data;\r\n $data['id'] = $id;\r\n return new Note($data);\r\n }", "title": "" }, { "docid": "3f78e57e834e9ab5c1a3208f0926fc0a", "score": "0.592371", "text": "public function notifications()\n {\n return $this->hasOne('App\\Model\\Notification');\n }", "title": "" }, { "docid": "95d2216a2ec301b0de375e1d77493cc1", "score": "0.591832", "text": "protected function findModel($id)\n {\n if (($model = Notifications::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "1c5a90cd94de61b7510f4b732a04a92a", "score": "0.59154403", "text": "private function get_notification_from_ajax_request() {\n\n\t\t$notification_center = Yoast_Notification_Center::get();\n\t\t$notification_id = filter_input( INPUT_POST, 'notification' );\n\n\t\treturn $notification_center->get_notification_by_id( $notification_id );\n\t}", "title": "" }, { "docid": "498a877d29e96c2102f879481324f4c6", "score": "0.5905795", "text": "public function getById( $id );", "title": "" }, { "docid": "55add429f138c7d70ad778badfaa16c3", "score": "0.5902694", "text": "public function getbyid($id)\n{ global $pdo;\n\n try { $s = $pdo->prepare('SELECT * FROM notes WHERE id = :id'); $s->bindValue(':id', $id); $s->execute(); }\n catch (PDOException $e) { fatal(\"Error fetching note details by id: $e\"); }\n return(new Note($s->fetch()));\n}", "title": "" }, { "docid": "1022aa3ec51f796d10d2ecb6b8f3b41d", "score": "0.589971", "text": "public function getMail($id)\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn $this->findOneByField(array('name'=>'id','value'=>$id));\n\t\t}\n\t\tcatch(Exception $e)\n\t\t{\n\t\t\techo $e->getMessage();\n\t\t}\n\t}", "title": "" }, { "docid": "beeeac1c80c31e8503f56dc9bc61b5fc", "score": "0.58951324", "text": "public function show($id)\n {\n $user = $this->getUser();\n $userNotified = User::find($user['id']);\n $messages = $userNotified->getNotifications($id);\n foreach ($messages as $v){\n if($v->id==$id){\n $data = $v;\n }\n }\n if(!isset($data)){\n return redirect('user/messages');\n }\n Notifynder::readOne($id);\n return view('messenger.show', compact('data', 'user'));\n }", "title": "" }, { "docid": "e5d8b1c5223b70d6658eb194754a93c4", "score": "0.5890198", "text": "public function show($id)\n\t{\n\t\t$currentMessage = Notification::find($id);\n\t\t$currentMessage->status = 'read';\n\t\t$currentMessage->save();\n\t\tif(isset($_POST['id'])){\n\t\t\treturn View::make('message.index');\n\t\t} else {\n\t\t\treturn View::make('message.show')\n\t\t\t->with(array(\n\t\t\t\t'currentMessage' => $currentMessage\n\t\t\t\t\n\t\t\t\t));\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "2997602d07e504ba21653ef0fbdf0ba9", "score": "0.5881437", "text": "public function readNotification(int $id)\n {\n $this->post(\"/api/notifications/mark_as_read/$id/\");\n }", "title": "" }, { "docid": "2121d4d6eb276156e4cb7dc9c4d63843", "score": "0.5869529", "text": "public function getById($id);", "title": "" }, { "docid": "2121d4d6eb276156e4cb7dc9c4d63843", "score": "0.5869529", "text": "public function getById($id);", "title": "" }, { "docid": "2121d4d6eb276156e4cb7dc9c4d63843", "score": "0.5869529", "text": "public function getById($id);", "title": "" }, { "docid": "2121d4d6eb276156e4cb7dc9c4d63843", "score": "0.5869529", "text": "public function getById($id);", "title": "" }, { "docid": "2121d4d6eb276156e4cb7dc9c4d63843", "score": "0.5869529", "text": "public function getById($id);", "title": "" }, { "docid": "2121d4d6eb276156e4cb7dc9c4d63843", "score": "0.5869529", "text": "public function getById($id);", "title": "" }, { "docid": "2121d4d6eb276156e4cb7dc9c4d63843", "score": "0.5869529", "text": "public function getById($id);", "title": "" }, { "docid": "2121d4d6eb276156e4cb7dc9c4d63843", "score": "0.5869529", "text": "public function getById($id);", "title": "" }, { "docid": "2121d4d6eb276156e4cb7dc9c4d63843", "score": "0.5869529", "text": "public function getById($id);", "title": "" }, { "docid": "2121d4d6eb276156e4cb7dc9c4d63843", "score": "0.5869529", "text": "public function getById($id);", "title": "" }, { "docid": "1cfbcea644e6de7329f0ad44dcefbc5d", "score": "0.58638716", "text": "public function getRankNotifications( $id ) {\n\t\t$id = intval( $id );\n\n\t\treturn $this->dbSelect(\n\t\t\t'get_user_notifications',\n\t\t\t'id, title, content',\n\t\t\t'notifications',\n\t\t\t\"ranks LIKE '%$id,%'\"\n\t\t);\n\t}", "title": "" }, { "docid": "83606e4044231b3fd7905ef66661a753", "score": "0.58545923", "text": "public function show($id)\n {\n if(!$this->checkActionPermission('notifications','view'))\n return redirect()->route('401');\n $depot = DB::table('notifications')->select('*','notifications.id as id','notifications.email as email','notifications.name as name')\n ->leftjoin('users','users.id','notifications.user_id')\n ->leftjoin('notifications_type_master','notifications_type_master.id','notifications.notification_type')\n ->where('notifications.id',$id) \n ->orderBy('notifications.id','desc')->first();\n return view('notifications.show')->withNotification($depot);\n }", "title": "" }, { "docid": "634d6caf11934449d235833a07afd01d", "score": "0.585385", "text": "public function getIssue($id);", "title": "" }, { "docid": "72c970d0e9cce846e58999d843a9a6ad", "score": "0.5851993", "text": "public function afficherNotifications(int $id) {\n try {\n $mysqli=$this->connexion();\n $stmt=$mysqli->prepare('select * from notifications where id=? order by date desc');\n $stmt->bind_param(\"i\",$id);\n $stmt->execute();\n $rs=$stmt->get_result();\n return $rs;\n $rs->free();\n $mysqli->close();\n } catch (mysqli_sql_exception $h) {\n throw new DaoException($h->getMessage(), $h->getCode());\n }\n }", "title": "" }, { "docid": "7d677f502a5b5dd4a7415075602abc83", "score": "0.5850043", "text": "public function edit($id)\n {\n $processNotification = ProcessNotification::findOrFail($id);\n $this->authorize('update', $processNotification);\n\n return $this->respond([\n 'process_notification' => $processNotification,\n ]);\n }", "title": "" }, { "docid": "fa5f3f534feb41e0a518d30f9b70e12c", "score": "0.5847375", "text": "function retrieve($id) {\n return $this->contact_feed->retrieve($id);\n }", "title": "" } ]
827a20516f21a31e64c9f943336be2b0
build the select list for access level
[ { "docid": "c1506e99808e409057bb5748d460f5eb", "score": "0.5477464", "text": "function Access(&$row)\n {\n global $database;\n\n $query = \"SELECT id AS value, name AS text\"\n . \"\\n FROM #__groups\"\n . \"\\n ORDER BY id\";\n $database->setQuery($query);\n $groups = $database->loadObjectList();\n $access = mosHTML::selectList($groups, 'access', 'class=\"inputbox\" size=\"3\"', 'value', 'text', intval($row->access));\n\n return $access;\n }", "title": "" } ]
[ { "docid": "2aeadaa1f430af2c2963eb30a976ef1c", "score": "0.6993528", "text": "public function getAccessLevelOptionsList(){\n $model = new Model();\n $model->sql = \"SELECT id_access_level AS access_level_id, name AS access_level_name FROM access_level\";\n $model->updateResultSet();\n return $model;\n }", "title": "" }, { "docid": "e517471b06a7a82197b3d879754a1520", "score": "0.6738087", "text": "function print_project_access_levels_option_list( $p_val, $p_project_id = null ) {\n\t$t_current_user_access_level = access_get_project_level( $p_project_id );\n\t$t_access_levels_enum_string = config_get( 'access_levels_enum_string' );\n\t$t_enum_values = MantisEnum::getValues( $t_access_levels_enum_string );\n\tforeach ( $t_enum_values as $t_enum_value ) {\n\t\t# a user must not be able to assign another user an access level that is higher than theirs.\n\t\tif( $t_enum_value > $t_current_user_access_level ) {\n\t\t\tcontinue;\n\t\t}\n\t\t$t_access_level = get_enum_element( 'access_levels', $t_enum_value );\n\t\techo '<option value=\"' . $t_enum_value . '\"';\n\t\tcheck_selected( $p_val, $t_enum_value );\n\t\techo '>' . string_html_specialchars( $t_access_level ) . '</option>';\n\t}\n}", "title": "" }, { "docid": "81f234722d54badc00cd2e656fbc423f", "score": "0.65039325", "text": "function selectOptions(){\n// $sql.= \"Union \"; \n $select = \"SELECT id as Value, Name as DisplayText \";\n $where = \"\";\n \n if($this->source === SOURCE_CREATE){\n $where.= \"WHERE id not in(select OrgUnitType_FK from `Org_Role-UnitType` where OrgRole_FK = \" . $this->parentId . \") \"; \n if(strpos($this->appCanvasPath, TABLE_NAME_ROLE) !== false){\n $where.=\"AND PosEnabled = 2 \"; // only unittypes with posenabled list\n }\n }\n else{\n if(strpos($this->appCanvasPath, TABLE_NAME_ROLE) !== false){\n $where.=\"WHERE PosEnabled = 2 \"; // only unittypes with posenabled list\n }\n }\n \n $from = \"FROM Org_UnitType \";\n \n $result = $this->db->select($this->saronUser, $select , $from, $where, \"Order by DisplayText \", \"\", OPTIONS); \n return $result; \n }", "title": "" }, { "docid": "cdc4297ec8b68a56285834eef61a17db", "score": "0.64744985", "text": "function getAccessRightList($varname, $default = 0, $extra = \"\", $action = \"\")\n{\n global $ARRAY_ACCESS_RIGHT;\n global $words;\n $strResult = \"\";\n $strResult .= \"<select id=\\\"$varname\\\" name=\\\"$varname\\\" class=\\\"form-control select2\\\" $action>\\n\";\n $strResult .= $extra;\n $intTotal = count($ARRAY_ACCESS_RIGHT);\n for ($i = 0; $i < $intTotal; $i++) {\n ($default == $i) ? $strSelect = \"selected\" : $strSelect = \"\";\n $strResult .= \"<option value=$i $strSelect>\" . $words[$ARRAY_ACCESS_RIGHT[$i]] . \"</option>\\n\";\n }\n $strResult .= \"</select>\\n\";\n return $strResult;\n}", "title": "" }, { "docid": "93aa84d2fc5495292fc9c212a2502380", "score": "0.64092886", "text": "public function getLevel_DropDown() {\n $option_selected = '';\n if (!$this->level) {\n $option_selected = ' selected=\"selected\"';\n }\n \n // Get the levels\n $items = array('Public', 'Registered', 'Admin', 'LoggedIn', 'LoggedOut');\n\n $html = array();\n \n $html[] = '<label for=\"level\">Choose Menu Level</label><br />';\n $html[] = '<select name=\"level\" id=\"level\">';\n \n foreach ($items as $i=>$item) { \n // If the selected parameter equals the current then flag as selected\n if ($this->level == $item) {\n $option_selected = ' selected=\"selected\"';\n }\n // set up the option line\n $html[] = '<option value=\"' . $item . '\"' . $option_selected . '>' . $item . '</option>';\n // clear out the selected option flag\n $option_selected = '';\n }\n \n $html[] = '</select>';\n return implode(\"\\n\", $html); \n \n }", "title": "" }, { "docid": "ffa129cb3caa6500559d60a74544b5d4", "score": "0.6387456", "text": "public static function dropDownList()\n {\n return \\yii\\helpers\\ArrayHelper::map(self::find()->orderBy('level')->all(),'level','name');\n }", "title": "" }, { "docid": "ec84b764210ce9f111842bcc3416b1cb", "score": "0.63816905", "text": "public function _build_select() {\n $result = parent::_build_select();\n return $result;\n }", "title": "" }, { "docid": "1b9ce7c11f148208709f9c3e01d92b09", "score": "0.6368519", "text": "protected function createUserAndGroupListForSelectOptions() {}", "title": "" }, { "docid": "9102934454993810d0f8edd5916b268c", "score": "0.6362177", "text": "function nexdoc_recursiveAccessOptions($perms,$selected='',$cid='0',$level='1',$selectlist='',$restricted='') {\r\n global $_TABLES,$LANG_FM02;\r\n if (empty($selectlist) AND $level == 1) {\r\n if (SEC_hasRights('nexfile.admin')) {\r\n $selectlist = '<option value=\"0\">'.$LANG_FM02['TOP_CAT'].'</option>' . LB;\r\n }\r\n }\r\n\r\n $query = DB_QUERY(\"SELECT cid,pid,name FROM {$_TABLES['nxfile_categories']} WHERE PID='$cid' ORDER BY CID\");\r\n while ( list($cid,$pid,$name,$description) = DB_fetchARRAY($query)) {\r\n $indent = ' ';\r\n // Check if user has access to this category\r\n if ($cid != $restricted AND fm_getPermission($cid,'view')) {\r\n // Check and see if this category has any sub categories - where a category record has this cid as it's parent\r\n if (DB_COUNT($_TABLES['nxfile_categories'], 'pid', $cid) > 0) {\r\n if ($level > 1) {\r\n for ($i=2; $i<= $level; $i++) {\r\n $indent .= \"--\";\r\n }\r\n $indent .= ' ';\r\n }\r\n if (fm_getPermission($cid,$perms)) {\r\n if ($indent != '') $name = \" $name\";\r\n $selectlist .= '<option value=\"' . $cid;\r\n if ($cid == $selected) {\r\n $selectlist .= '\" selected=\"selected\">' .$indent .$name . '</option>' . LB;\r\n } else {\r\n $selectlist .= '\">' . $indent .$name . '</option>' . LB;\r\n }\r\n $selectlist = nexdoc_recursiveAccessOptions($perms,$selected,$cid,$level+1,$selectlist,$restricted);\r\n } elseif ($perms == 'admin') {\r\n // Need to check for any folders with admin even subfolders of parents that user does not have access\r\n $selectlist = nexdoc_recursiveAccessOptions($perms,$selected,$cid,$level+1,$selectlist,$restricted);\r\n }\r\n\r\n } else {\r\n if ($level > 1) {\r\n for ($i=2; $i<= $level; $i++) {\r\n $indent .= \"--\";\r\n }\r\n $indent .= ' ';\r\n }\r\n if (fm_getPermission($cid,$perms)) {\r\n if ($indent != '') $name = \" $name\";\r\n $selectlist .= '<option value=\"' . $cid;\r\n if ($cid == $selected) {\r\n $selectlist .= '\" selected=\"selected\">' . $indent . $name . '</option>' . LB;\r\n } else {\r\n $selectlist .= '\">' . $indent . $name . '</option>' . LB;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n return $selectlist;\r\n}", "title": "" }, { "docid": "929aa03af0838580034a49b3b70eada8", "score": "0.63107306", "text": "function CreatPermissionSelect($name=\"permission\",$selected=0,$onlyusers=0)\n{\nglobal $table_prefix;\nopen_select_db(); //connect to mysql and select db\n$mresult=mysql_query(\"SELECT * FROM {$table_prefix}groups\");\n\necho '<select name=\"'.$name.'\">';\nwhile ($row = mysql_fetch_array($mresult))\n{\n $gp_name=$row['Name'];\n $gp_perm=$row['Permission'];\n if ($onlyusers!=1 || $gp_perm!=0) //do not show anyone for user groups\n {\n echo \"<option \";\n if ($selected==$gp_perm ) echo \"Selected \";\n echo \"value=\".$gp_perm.\">\";\n echo $gp_name;\n echo \"</option>\";\n } \n}\necho \"</select>\";\nmysql_free_result($mresult);\n//close_db();\n}", "title": "" }, { "docid": "15d8c34586d2d676cd4710804b294979", "score": "0.6241052", "text": "public function getSelect()\n {\n $select = parent::getSelect();\n $request = Zend_Controller_Front::getInstance()->getRequest();\n $db = $this->getDb();\n $select->join(array('exhibits' => $db->Exhibit), 'exhibits.id = exhibit_pages.exhibit_id', array());\n $permissions = new Omeka_Db_Select_PublicPermissions('ExhibitBuilder_Exhibits');\n $permissions->apply($select, 'exhibits');\n return $select;\n }", "title": "" }, { "docid": "159e084fe28068e055a187c2769993fb", "score": "0.62110645", "text": "public function getOptions()\n {\n $select_options = array();\n /*\n if (!empty($this->validation_ancestorgroup_list)) {\n $select_options['ancestor'] = $this->validation_ancestorgroup_list;\n }\n if (!empty($this->validation_parentgroup_list)) {\n $select_options['parent'] = $this->validation_parentgroup_list;\n }\n */\n $select_options['state'] = $this->initialization_userlist_user_state;\n if (!empty($this->initialization_userlist_group_list)) {\n $select_options['grouplist'] = $this->initialization_userlist_group_list;\n }\n\n // Get the candidates\n $options = xarMod::apiFunc('roles', 'user', 'getall', $select_options);\n \n // Adjust for the fields to show\n if (!empty($options) && !empty($this->display_showfields)) { \n $testrow = $options[0];\n $fields = explode(',',$this->display_showfields);\n foreach ($fields as $k => $v) {\n if (!isset($testrow[trim($v)])) unset($fields[$k]);\n }\n foreach($options as $key => $value) {\n $namestring = '';\n foreach ($fields as $v) {\n $v = $value[trim($v)];\n if (empty($v)) continue;\n $namestring .= $v . $this->display_showglue;\n }\n $namestring = substr($namestring, 0, -strlen($this->display_showglue));\n $options[$key]['name'] = $namestring;\n }\n }\n return $options;\n }", "title": "" }, { "docid": "5f4103b0b131a0f5f4d5168c91c3220d", "score": "0.6167027", "text": "public function makeSelect(){\n echo \"<select name=\\\"\" .$this->getName(). \"\\\">\\n\";\n //Create options.\n $this->makeOptions($this->getValue());\n echo \"</select>\" ;\n }", "title": "" }, { "docid": "50aeec0cf24fd7d5ebab2f692134de17", "score": "0.61588067", "text": "function create_option_list() {\n $output_list = array(\"<select class='csl_select' name=\\\"{$this->name}\\\">\\n\");\n\n foreach ($this->custom as $key => $value) {\n if (get_option($this->name) === $value) {\n $output_list[] = \"<option class='csl_option' value=\\\"$value\\\" \" .\n \"selected=\\\"selected\\\">$key</option>\\n\";\n }\n else {\n $output_list[] = \"<option class='csl_option' value=\\\"$value\\\">$key</option>\\n\";\n }\n }\n\n $output_list[] = \"</select>\\n\";\n \n return implode('', $output_list);\n }", "title": "" }, { "docid": "18d2a5bd6f0868555894c2facfcda593", "score": "0.6129665", "text": "function userLevelSelect($userLevel=''){\n\t\t\n\t\ttry {\n\t\t\t$q = $this->db->query(\"SELECT id,level_name,notes FROM \" . USER_LEVEL_TBL . \"\n\t\t\t\tORDER BY id ASC\");\n\t\t\t$r = $q->fetchAll(PDO::FETCH_ASSOC);\n\t\t\tif(count($r)>0){\n\t\t\t\techo '<p><label>User Access Level</label>';\n\t\t\t\techo '<select class=\"form-control\" name=\"user_level\">';\n\n\t\t\t\tforeach($r as $level){\n\t\t\t\t\tif($level['id']==$userLevel){ $sel = 'selected=\"selected\"'; }\n\t\t\t\t\techo '<option value=\"' . $level['id'] .'\" ' . $sel . '>' . $level['level_name'] .' - (' . $level['notes'] .')</option>';\n\t\t\t\t\t$sel='';\n\t\t\t\t}\n\t\t\t\techo '</select></p>';\n\t\t\t\t\n\t\t\t }\n\t\t\telse { return false; }\n\t\t} catch (Exception $e) {\n\t\t\techo \"User::userAssignmentFields - Data could not be retrieved from the databases.\";\n\t\t\texit;\n\t\t}\n\t}", "title": "" }, { "docid": "3c9bc0e303a93e2dd32aa0b222a8380f", "score": "0.6033612", "text": "function people_select( $select_name, $personID = NULL )\n{\n // Caller can pass a selected personID, but we need to check permissions\n $myID = $_SESSION['id'];\n if ( $personID == NULL ) $personID = $myID;\n\n if ( $_SESSION['userlevel'] < 3 )\n {\n // First of all, make an array of all people we are authorized to view\n $query = \"SELECT people.personID, lname, fname \" .\n \"FROM permits, people \" .\n \"WHERE collaboratorID = $myID \" .\n \"AND permits.personID = people.personID \" .\n \"ORDER BY lname, fname \";\n }\n\n else\n {\n // We are admin, so we can view all of them\n $query = \"SELECT personID, lname, fname \" .\n \"FROM people \" .\n \"WHERE personID != $myID \" .\n \"ORDER BY lname, fname \";\n }\n\n $result = mysql_query( $query )\n or die( \"Query failed : $query<br />\" . mysql_error() );\n\n // Create the list box\n $myName = \"{$_SESSION['lastname']}, {$_SESSION['firstname']}\";\n $text = \"<h3>Investigator:</h3>\\n\";\n $text .= \"<select name='$select_name' id='$select_name' size='1'>\\n\" .\n \" <option value='$myID'>$myName</option>\\n\";\n while ( list( $ID, $lname, $fname ) = mysql_fetch_array( $result ) )\n {\n $selected = ( $ID == $personID ) ? \" selected='selected'\" : \"\";\n $text .= \" <option value='$ID'$selected>$lname, $fname</option>\\n\";\n }\n\n $text .= \" </select>\\n\";\n\n return $text;\n}", "title": "" }, { "docid": "5686dd7f652b45be720c5d728d1e5349", "score": "0.6023793", "text": "private function buildSelectPart()\n\t{\n\t\t$this->statpart_select = \"\";\n\t\tforeach( $this->_fields as $strField => $strFieldtype)\n\t\t{\n\t\t\tswitch($strFieldtype)\n\t\t\t{\n\t\t\t\tcase 'date':\n\t\t\t\tcase 'datetime':\t\t\t\t\t\n\t\t\t\t\t$this->statpart_select .= \" UNIX_TIMESTAMP(\" . $this->_maintable . \".\" . $strField . \") AS \" . $strField . \", \";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$this->statpart_select .= \" \" . $this->_maintable . \".\" . $strField . \" AS \" . $strField . \", \";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t$this->statpart_select .= \" UNIX_TIMESTAMP(NOW()) AS servertime \";\n\t}", "title": "" }, { "docid": "f2349bbb6799f04f2f27fc1befb06674", "score": "0.598873", "text": "function build_selection_dropdown() {\n\t$output = array();\n\t$output[] = array('id' => 'id', 'text' => 'Record ID');\n\t$output[] = array('id' => 'sku', 'text' => 'SKU');\n\t$output[] = array('id' => 'description_short', 'text' => 'Description');\n\t$output[] = array('id' => 'inactive', 'text' => 'Inactive');\n\t$output[] = array('id' => 'catalog', 'text' => 'Catalog Item');\n\t$output[] = array('id' => 'item_cost', 'text' => 'Item Cost');\n\t$output[] = array('id' => 'full_price', 'text' => 'Full Price');\n\t$output[] = array('id' => 'price_level_1', 'text' => 'Price Level 1');\n\t$output[] = array('id' => 'price_level_2', 'text' => 'Price Level 2');\n\t$output[] = array('id' => 'price_level_3', 'text' => 'Price Level 3');\n\t$output[] = array('id' => 'price_level_4', 'text' => 'Price Level 4');\n\t$output[] = array('id' => 'price_level_5', 'text' => 'Price Level 5');\n\t$output[] = array('id' => 'price_qty_1', 'text' => 'Qty Level 1');\n\t$output[] = array('id' => 'price_qty_2', 'text' => 'Qty Level 2');\n\t$output[] = array('id' => 'price_qty_3', 'text' => 'Qty Level 3');\n\t$output[] = array('id' => 'price_qty_4', 'text' => 'Qty Level 4');\n\t$output[] = array('id' => 'price_qty_5', 'text' => 'Qty Level 5');\n\treturn $output;\n }", "title": "" }, { "docid": "bb2e516b7bc46f08ac07afe233dfa672", "score": "0.5944353", "text": "function createSelect() {\n\tglobal $request_select_list_table_alias, $request_select_list_column_name, \n\t$request_select_list_alias;\n\n\t$tableAlias = splitCSV($request_select_list_table_alias);\n\t$columnName = splitCSV($request_select_list_column_name);\n\t$alias = splitCSV($request_select_list_alias);\n\t\n\t$s = \"SELECT \";\n\tfor ($i = 0; $i < count($tableAlias); $i++) {\n\t\tif ($i > 0) {\n\t\t\t$s .= \", \";\n\t\t}\n\t\t$s .= addIdentifierQuotes($tableAlias[$i]) . \".\"\n\t\t\t. addIdentifierQuotes($columnName[$i]) . \" \"\n\t\t\t. addIdentifierQuotes($alias[$i]);\n\t}\n\treturn $s;\n}", "title": "" }, { "docid": "a2df448ae72b2b162e607d3443d7237f", "score": "0.5909399", "text": "public static function selectAccess($as, $value, $name = 'access')\n\t{\n\t\t$as = explode(',', $as);\n\t\t$html = '<select name=\"' . $name . '\" id=\"field-' . str_replace(array('[',']'), '', $name) . '\">' . \"\\n\";\n\t\tfor ($i=0, $n=count($as); $i < $n; $i++)\n\t\t{\n\t\t\t$html .= \"\\t\" . '<option value=\"' . $i . '\"';\n\t\t\tif ($value == $i)\n\t\t\t{\n\t\t\t\t$html .= ' selected=\"selected\"';\n\t\t\t}\n\t\t\t$html .= '>' . trim($as[$i]) . '</option>' . \"\\n\";\n\t\t}\n\t\t$html .= '</select>' . \"\\n\";\n\t\treturn $html;\n\t}", "title": "" }, { "docid": "7ffa8ad2abde76c7b73378749f9d582a", "score": "0.59006417", "text": "function getEducationList($db, $varname, $default = \"\", $extra = \"\", $criteria = \"\", $action = \"\", $listonly = false)\n{\n $strResult = \"\";\n if (!$listonly) {\n $strResult .= \"<select id=\\\"$varname\\\" name=\\\"$varname\\\" class=\\\"form-control select2\\\" $action>\\n\";\n }\n $strResult .= $extra;\n $strSQL = \"SELECT * FROM hrd_education_level $criteria ORDER BY code \";\n $resDb = $db->execute($strSQL);\n while ($rowDb = $db->fetchrow($resDb)) {\n ($rowDb['code'] == $default) ? $strSelect = \"selected\" : $strSelect = \"\";\n $strResult .= \"<option value=\\\"\" . $rowDb['code'] . \"\\\" $strSelect>\" . $rowDb['code'] . \"</option>\\n\";\n }\n if (!$listonly) {\n $strResult .= \"</select>\\n\";\n }\n return $strResult;\n}", "title": "" }, { "docid": "9a6c90455850608bb7b953ed0a2f1c18", "score": "0.58696854", "text": "public static function createSelects(){\n\n try{\n /*\n * Build data for\n * the select 'catchment_data'\n */\n $user_status = [\n '0100' => 'Todos',\n '0200' => 'Activo',\n '0300' => 'Eliminado'\n ];\n\n /*\n * Build data for\n * the select 'interested_in'\n */\n $num_records = [\n '0400' => 'Todos',\n '0100' => '10',\n '0500' => '50',\n '1000' => '100'\n ];\n\n /*\n * Build data for\n * the radios 'status_forecast'\n */\n $order_types = [\n '0100' => 'Registro Ascendente',\n '0200' => 'Registro Descendente',\n '0300' => 'Nombre A-Z',\n '0400' => 'Nombre Z-A'\n ];\n\n /*\n * Build data for\n * the select 'Roles_type, centers'\n */\n $roles = Role::all();\n $centers = Center::all();\n\n /*\n * Prepare result\n */\n $result = array();\n $result['roles'] = $roles;\n $result['centers'] = $centers;\n $result['user_status'] = $user_status;\n $result['num_records'] = $num_records;\n $result['order_types'] = $order_types;\n\n return $result;\n\n }catch(Exception $e){\n /*\n * If something went wrong abort and send 500 view.\n */\n abort(500, $e->getMessage());\n }\n\n }", "title": "" }, { "docid": "f9f6fa3996f1dcfd9865117f9f100feb", "score": "0.5859518", "text": "abstract protected function getAccessLevels();", "title": "" }, { "docid": "b30d9d0d5b6f3fddba2aff5fdb39c30d", "score": "0.5842815", "text": "public function buildSelectInput()\n {\n\n $this->sHtml = '<select name=\"'.$this->getName().'\"';\n\n if(isset($this->aExtra) && is_array($this->aExtra)) {\n foreach($this->aExtra as $sKey => $sVal) {\n if ($sVal != '' && $sKey != '') {\n $this->sHtml .= ' ' . $sKey .= '=\"' . $sVal . '\"';\n } else {\n $this->sHtml .= ' ' . $sKey . ' ';\n }\n }\n }\n $this->sHtml .= '>';\n\n if (isset($this->aOptions) && is_array($this->aOptions)) {\n foreach ($this->aOptions as $sKey => $sVal) {\n $this->sHtml .= '<option value=\"'.$sKey.'\"';\n\n if (is_array($this->mValue) && in_array($sVal, $this->mValue)) {\n $this->sHtml .= ' selected=\"selected\" ';\n } elseif(is_string($this->mValue) && $this->mValue == $sVal) {\n $this->sHtml .= ' selected=\"selected\" ';\n }\n\n $this->sHtml .= '>' .$sVal . '</option>';\n }\n }\n\n $this->sHtml .= '</select>';\n echo $this->sHtml;\n }", "title": "" }, { "docid": "5c634433a7e7b5a4ba641f155c1ac20e", "score": "0.58404595", "text": "public function get_nextlevel() {\n $id = $this->bean->get_request(\"id\");\n $level_count = $this->bean->get_request(\"lcount\");\n $childvalue = $this->dao->get_childvalue($id);\n $labelname = $this->dao->get_labelname($id);\n $tbvalue = $this->dao->check_tbvalue($id);\n $restrict_arr = array('266','268','269','271','272','274','275','277','278','280','281','283','284','286','287','289','290','292','293','295');\n $exp = explode(\",\", $tbvalue);\n for ($i = 0; $i < count($exp); $i++) {\n $setvalue[$exp[$i]] = $this->dao->get_setvalue($exp[$i], $id);\n }\n $new_dropdown = '';\n if (!empty($childvalue)) {\n $new_dropdown .= '<span style=\"float:left;width:150px;padding-top: 6px;\"><b>' . $labelname . '</b></span>';\n $new_dropdown .= '<select class=\"division\" name=\"L' . $level_count . '\" id=\"L' . $level_count . '\">';\n $new_dropdown .= '<option value=\"\" selected=\"\" disabled>choose one</option>';\n foreach ($childvalue as $cval) { \n if(!in_array($cval->id,$restrict_arr)) {\n $new_dropdown .= '<option pid=\"'.$cval->parent_id.'\" value=\"' . $cval->id . '\">' . $cval->name . '</option>'; \n }\n }\n $new_dropdown .= '</select>';\n }\n if (empty($childvalue) && ($id == 111 || $id == 248)) {\n $new_dropdown .= '<span style=\"float:left;width:150px;padding-top: 6px;\"><b>Other Name</b></span>';\n $new_dropdown .= '<input class=\"division othertextbox\" name=\"L' . $level_count . '\" id=\"L' . $level_count . '\" type=\"text\" value=\"\" style=\"width:23%;\" />';\n }\n if (!empty($tbvalue)) {\n $location_name = '';\n $code = '';\n foreach ($setvalue as $key => $rowvalue) {\n\n $exp_tablename = explode(\"_\", $key);\n $endvalue = end($exp_tablename);\n $label = \"Select \" . ucfirst($endvalue);\n if (strtoupper($endvalue) == \"CONTRACTOR\" || strtoupper($endvalue) == \"TYPE\" || strtoupper($endvalue) == \"LOCATION\" || strtoupper($endvalue) == \"NO\") {\n $extraClass = \"contractor_and_type\";\n } else {\n $extraClass = \"\";\n }\n $new_dropdown .= '<div class=\"xyz\"><span style=\"float:left;width:150px;padding-top: 6px;\"><b>' . $label . '</b></span>';\n $new_dropdown .= '<select class=\"division newcons ' . $extraClass . '\" name=\"contractor_details\" id=\"contractor' . $key . '\">';\n $new_dropdown .= '<option value=\"\" selected=\"\" disabled>choose one </option>';\n foreach ($rowvalue as $cval) {\n if (($key == 'pset_no' || $key == 'pset_location') && $cval->name == 'Others') {\n $val = ' data-other=\"' . $key . '\"';\n } else if ($key == 'pset_no' || $key == 'pset_location') {\n $val = ' data-other=\"0\" data-c=\"' . $key . '\"';\n } else {\n $val = \"\";\n }\n if (isset($cval->location) && $cval->location != '') {\n $location_name = 'data-location=\"' . $cval->location . '\"';\n } else {\n $location_name = '';\n }\n $code = $cval->code != '' ? ' (' . $cval->code . ')' : \"\";\n $new_dropdown .= '<option ' . $location_name . $val . ' value=\"' . $key . ':' . $cval->id . ':id' . '\">' . $cval->name . $code . ' </option>';\n }\n $new_dropdown .= '</select><span id=\"show_location\"></span></div>';\n $new_dropdown .= '<br /><div id=\"' . $key . '\"></div>';\n }\n }\n echo $new_dropdown;\n die();\n }", "title": "" }, { "docid": "c798cefe18b6f6eeb38e53efe637a161", "score": "0.5835126", "text": "function build_contacts_table($users)\n{\n global $TBL_SIZE;\n global $string;\n\n $table.= \"<div style=\\\"text-align:center;\\\">\";\n $table.= \"<select multiple=\\\"multiple\\\" id=\\\"avaliable_users_select\\\" name=\\\"avaliable_users\\\" size=\\\"$TBL_SIZE\\\">\";\n $table.= \"<optgroup label=\\\"\" . $string['avaliable'] . \"\\\")\\\">\";\n \n while($user = pg_fetch_row($users)) {\n \t$table.= \"<option name=\\\"$user[2]\\\" value=\\\"$user[2]\\\">$user[2] - $user[0] $user[1]</option>\";\n }\n \n $table.= \"</optgroup>\";\n $table.= \"</select>\";\n $table.= \"</div>\";\n \n return $table;\n}", "title": "" }, { "docid": "bae474eefa4fa28ffba32665cf638b3c", "score": "0.5817244", "text": "protected function _initSelect()\n {\n parent::_initSelect();\n\n $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance();\n $userAuthorization = $objectManager->create('Magento\\Authorization\\Model\\UserContextInterface');\n $helper = $objectManager->get('MangoIt\\BundleProductImage\\Helper\\Data');\n\n $userId = $userAuthorization->getUserId();\n\n $superAdminConfig = $helper->getStoreConfigValue(\"special-user-group/general/super_admin_role\");\n $administratorConfig = $helper->getStoreConfigValue(\"special-user-group/general/administrator_role\");\n //$superAdminConfig = $scopeConfig->getValue(\"special-user-group/general/super_admin_role\", $storeScope);\n //$administratorConfig = $scopeConfig->getValue(\"special-user-group/general/administrator_role\", $storeScope);\n\n $roleName = $helper->getRoleName($userId);\n\n if($roleName == $superAdminConfig){\n $this->addFieldToFilter('role_type', RoleGroup::ROLE_TYPE);\n return $this;\n }elseif($roleName == $administratorConfig){\n $this->addFieldToFilter('role_type', RoleGroup::ROLE_TYPE)->addFieldToFilter('role_name', ['nin' => \"$superAdminConfig\"]);\n return $this;\n }else{\n $this->addFieldToFilter('role_type', RoleGroup::ROLE_TYPE)->addFieldToFilter('role_name', ['nin' => [\"$superAdminConfig\",\"$administratorConfig\"]]);\n return $this;\n }\n\n //$this->addFieldToFilter('role_type', RoleGroup::ROLE_TYPE);\n //return $this;\n }", "title": "" }, { "docid": "e8cadad1e2510b22a1cd090e734dd8a4", "score": "0.5798634", "text": "function List_sel ($ind,$req){\r\n\techo \"<select name='{$this->texto_field}' id='{$this->texto_field}' $req tabindex='++$ind'>\";\r\n\techo \"<option value=''>-->> Escolha <<--</option>\";\r\n\t while($this->col_lst = mysql_fetch_array($this->sql_lst))\r\n\t {\r\n\t echo \"<option value='\".$this->col_lst[\"id\"].\"'>\".$this->col_lst[$this->campo_retorno].\"</option>\";\r\n\t }\r\n\techo \"</select>\";\r\n }", "title": "" }, { "docid": "0cc549d447b0d30cf66c3f9940cf3664", "score": "0.57610893", "text": "public static function select_edit_access()\n\t{\n\t\t$roles = array(0 => LL('cms::form.all', CMSLANG));\n\n\t\t$data = self::all();\n\n\t\tforeach ($data as $role) {\n\t\t\t$roles[$role->level] = ucfirst(LABEL('cms::role.', $role->name));\n\t\t}\n\n\t\treturn $roles;\n\n\t}", "title": "" }, { "docid": "8eaac270121d18533072e4b52165b304", "score": "0.5739153", "text": "function capabilities_dropdown() {\n $capabilities = array(\n __('all registered users', 'recaptcha') => 'read',\n __('edit posts', 'recaptcha') => 'edit_posts',\n __('publish posts', 'recaptcha') => 'publish_posts',\n __('moderate comments', 'recaptcha') => 'moderate_comments',\n __('activate plugins', 'recaptcha') => 'activate_plugins'\n );\n \n $this->build_dropdown('mailhide_options[minimum_bypass_level]', $capabilities, $this->options['minimum_bypass_level']);\n }", "title": "" }, { "docid": "a2ba53a588070e391844cb6192f6375f", "score": "0.57125044", "text": "function Access( &$row )\n\t{\n\t\t$db =& JFactory::getDBO();\n\n\t\t$query = \"SELECT id AS value, name AS text\"\n\t\t. \"\\n FROM #__groups\"\n\t\t. \"\\n ORDER BY id\"\n\t\t;\n\t\t$db->setQuery( $query );\n\t\t$groups = $db->loadObjectList();\n\t\t$access = JHTMLSelect::genericList( $groups, 'access', 'class=\"inputbox\" size=\"3\"', 'value', 'text', intval( $row->access ), '', 1 );\n\n\t\treturn $access;\n\t}", "title": "" }, { "docid": "97f31baab1fc691cf227dd345b302360", "score": "0.57030857", "text": "public function GenerateParentList($level)\r\n\t{\r\n\t\tif ($level==-1)\r\n\t\t{\r\n\t\t\treturn CJSON::encode(array( \r\n\t\t\t\t'no'=>true,\r\n\t\t\t)); \r\n\t\t} else {\r\n\t\t\t$criteria = new CDbCriteria;\r\n\t\t\t\r\n\t\t\t$criteria -> select = 'id, name';\r\n\t\t\t$criteria -> condition = 'level=:lev';\r\n\t\t\t$criteria -> order = 'name DESC';\r\n\t\t\t$criteria -> params = array(':lev' => $level);\r\n\t\t\t$parentList = CHtml::listData(Articles::model()->findAll($criteria),'id','name');\r\n\t\t\t//$parentList = Articles::model()->findAll($criteria);\r\n\t\t\t$ret = '';\r\n\t\t\tforeach ($parentList as $id => $name)\r\n\t\t\t{\r\n\t\t\t\t$ret .= CHtml::tag('option', array('value' => $id), CHtml::encode($name));\r\n\t\t\t}\r\n\t\t\treturn CJSON::encode(array('parentList' => $ret));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a763adab3459daba1b38be54985ec3a3", "score": "0.5699513", "text": "function getHTMLFieldsSelect($branch){\n\t\t$select = new we_html_select(array('name' => 'branch'));\n\n\t\t$fields_names = $this->View->customer->getFieldsNames($branch, $this->View->settings->getEditSort());\n\t\t$this->jsOut_fieldTypesByName = 'var fieldTypesByName = [];';\n\t\tforeach($fields_names as $val){\n\t\t\t$tmp = $this->View->getFieldProperties($val);\n\t\t\t$this->jsOut_fieldTypesByName .= \"fieldTypesByName['\" . $val . \"'] = '\" . (isset($tmp['type']) ? $tmp['type'] : '') . \"';\";\n\t\t}\n\t\tif(is_array($fields_names)){\n\t\t\tforeach($fields_names as $k => $field){\n\t\t\t\t$select->addOption($k, ($this->View->customer->isProperty($field) ?\n\t\t\t\t\t\t$this->View->settings->getPropertyTitle($field) :\n\t\t\t\t\t\t$field)\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\treturn $select;\n\t}", "title": "" }, { "docid": "ee7f1bf5f50cbb19e77b11b37e56ecf1", "score": "0.56796736", "text": "function generate_select_form($colname , $data_type, $value ) {\n // the second part of the data_type field should have the name of\n // the table which contains the list info\n preg_match_all(\"/\\w+/\", $data_type , $matches ); \n $array=$matches[0];\n $list_table=\"select_$array[1]\" ;\n \n $query = \"SELECT list_data from $list_table \" ;\n $result = do_sql($query) or die('Query failed: ' . pg_last_error());\n $list_data=array();\n while ( $row = pg_fetch_array($result, null, PGSQL_ASSOC) ) {\n array_push( $list_data , $row['list_data'] ) ;\n }\n\n //See if $value is set to something other than X, or nothing.\n // if not then set a few common defaults\n if ( \"$value\" == \"X\" || \"Z$value\" == \"Z\" ) {\n switch($colname){\n case \"entry_type\": $value=\"planned - done\" ; break ;\n case \"effort_notes\": $value=\"medium\" ; break ;\n case \"effort_notes\": $value=\"medium\" ; break ;\n case \"session_type\": $value=\"training\" ; break ;\n }\n }\n\n echo \" <SELECT NAME='${colname}' >\\n\" ;\n foreach ( $list_data as $list_item ) {\n $selected = \"\" ;\n if ( \"$list_item\" == \"$value\" ) { $selected = \"SELECTED\" ; }\n \n echo \"<OPTION VALUE='$list_item' $selected > $list_item </OPTION>\\n\";\n }\n echo \"</SELECT>\\n\";\n\n## END of FUNCTION\n}", "title": "" }, { "docid": "619d0eb08d09abac408b43c3fec08c0b", "score": "0.5672843", "text": "function getLoanPurposeList($db, $varname, $default = \"\", $extra = \"\", $criteria = \"\", $action = \"\", $listonly = false)\n{\n $strResult = \"\";\n if (!$listonly) {\n $strResult .= \"<select id=\\\"$varname\\\" name=\\\"$varname\\\" class=\\\"form-control select2\\\" $action>\\n\";\n }\n $strResult .= $extra;\n $strSQL = \"SELECT * FROM hrd_loan_purpose $criteria ORDER BY purpose \";\n $resDb = $db->execute($strSQL);\n while ($rowDb = $db->fetchrow($resDb)) {\n ($rowDb['purpose'] == $default) ? $strSelect = \"selected\" : $strSelect = \"\";\n $strResult .= \"<option value=\\\"\" . $rowDb['purpose'] . \"\\\" $strSelect>\" . $rowDb['purpose'] . \"</option>\\n\";\n }\n if (!$listonly) {\n $strResult .= \"</select>\\n\";\n }\n return $strResult;\n}", "title": "" }, { "docid": "c8ef6acbd6ed7081014a942fbd24ee13", "score": "0.5672754", "text": "public function getNonSelectableLevelList() {}", "title": "" }, { "docid": "2e68a943363e9021b44e4010ba8321d7", "score": "0.56644744", "text": "protected function getRecursiveSelectOptions() {}", "title": "" }, { "docid": "b41de16f4298e24a1a652e2547cf2a6a", "score": "0.5664007", "text": "function getInstructorList($db, $varname, $default = \"\", $extra = \"\", $criteria = \"\", $action = \"\", $listonly = false)\n{\n $strResult = \"\";\n $strHidden = \"\";\n if (!$listonly) {\n $strResult .= \"<select name=\\\"$varname\\\" id=\\\"$varname\\\" class=\\\"form-control select2\\\" $action>\\n\";\n }\n $strResult .= $extra;\n // flag = nomor urut\n $strSQL = \"SELECT * FROM hrd_training_vendor $criteria ORDER BY name_vendor \";\n $resDb = $db->execute($strSQL);\n while ($rowDb = $db->fetchrow($resDb)) {\n ($rowDb['id'] == $default) ? $strSelect = \"selected\" : $strSelect = \"\";\n $strResult .= \"<option value=\\\"\" . $rowDb['id'] . \"\\\" $strSelect>\" . $rowDb['name_vendor'] . \"</option>\\n\";\n }\n if (!$listonly) {\n $strResult .= \"</select>\\n\";\n }\n return $strResult;\n}", "title": "" }, { "docid": "d732fe7a0c409dafddca48c1f821500c", "score": "0.56533444", "text": "function DisplayFieldAccess()\r\n\t{\r\n\t\t$userTypeID = $this->m_usertype->GetID ();\r\n\t\tif ($userTypeID == CMS::GetUser ()->GetUserTypeID ())\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t$selectedModule = DB::REQUEST ( 'selectedModule' );\r\n\t\t$selectedTable = DB::REQUEST ( 'selectedTable' );\r\n\t\t\r\n\t\t$structure = CMSObject::$CMS->GetStructure ();\r\n\t\t\r\n\t\tprint ( '<!--Tables Accesst-->' );\r\n\t\tprint ( '<div class=\"someGTitleBox\">Fields Access</div>' );\r\n\t\t$this->DisplayFormHeadr ( 'changeAccessesField', 'fieldForm' );\r\n\t\t$this->DisplayHidden ( 'usertype', $userTypeID );\r\n\t\tprint ( '<div class=\"titleBox\">\r\n <div class=\"titleColL\">\r\n \t<label>Choose Modul: </label>' );\r\n\t\t\r\n\t\t$ajaxS = \" onchange=\\\"xajax_callAjax('usertype={$userTypeID}&action=getModuleTablesSelect&module=' + this.value, 'moduleTablesFieldDiv', 'innerHTML', 'tableFieldsDiv');\\\"\";\r\n\t\tprint ( \"<select name=\\\"selectedModule\\\" id=\\\"selectedModule\\\" $ajaxS>\\n\" );\r\n\t\t$slected = (! $selectedModule) ? \" selected='selected'\" : '';\r\n\t\tprint ( \"<option{$slected}>...</option>\\n\" );\r\n\t\tforeach ( $structure as $key => $module )\r\n\t\t{\r\n\t\t\t// if parent does not have access than chiled olso coulnd not have access\r\n\t\t\tif (! self::HasModuleAccess ( $key, $userTypeID ))\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// get structure name\r\n\t\t\t$name = $module ['name'] [CMS::GetCMSLang ()];\r\n\t\t\t$slected = ($selectedModule && $selectedModule == $key) ? \"selected='selected'\" : '';\r\n\t\t\tprint ( \"<option value='$key'{$slected}>$name</option>\\n\" );\r\n\t\t}\r\n\t\tprint ( '</select>' );\r\n\t\t\r\n\t\t// display tables select\r\n\t\tprint ( '<div id=\"moduleTablesFieldDiv\">' );\r\n\t\tif ($selectedModule != null)\r\n\t\t{\r\n\t\t\tprint $this->GetModuleTablesSelect ( $selectedModule, $userTypeID, $selectedTable );\r\n\t\t}\r\n\t\tprint ( '</div>' );\r\n\t\t\r\n\t\tprint ( '</div>\r\n\t\t<div class=\"titleColR\"><input name=\"\" type=\"submit\" value=\"Done\" /></div>\r\n <br class=\"clearFloat\" />\r\n </div>' );\r\n\t\t\r\n\t\t// display tables\r\n\t\tprint ( '<div class=\"someTableArea\" id=\"tableFieldsDiv\" name=\"tableFieldsDiv\">' );\r\n\t\t\r\n\t\tif ($selectedTable != null)\r\n\t\t{\r\n\t\t\tprint $this->GetTableFieldsCode ( $selectedTable, $userTypeID );\r\n\t\t}\r\n\t\tprint ( '</div>' );\r\n\t\t\r\n\t\tprint ( '</form><!--//Tables Access-->' );\r\n\t}", "title": "" }, { "docid": "2491369c2139ba80d54eb6baf102fe56", "score": "0.56451744", "text": "function getSqlSelectList() {\n\t\t$select = \"\";\n\t\t$select = \"SELECT * FROM (\" .\n\t\t\t\"SELECT *, (SELECT CONCAT(`jenis_praktikum`,'\" . ew_ValueSeparator(1, $this->fk_jenis_praktikum) . \"',`semester`,'\" . ew_ValueSeparator(2, $this->fk_jenis_praktikum) . \"',`biaya`) FROM `praktikum` `EW_TMP_LOOKUPTABLE` WHERE `EW_TMP_LOOKUPTABLE`.`kode_praktikum` = `detail_pendaftaran`.`fk_jenis_praktikum` LIMIT 1) AS `EV__fk_jenis_praktikum`, (SELECT `nama_kelompok` FROM `master_nama_kelompok` `EW_TMP_LOOKUPTABLE` WHERE `EW_TMP_LOOKUPTABLE`.`id_kelompok` = `detail_pendaftaran`.`id_kelompok` LIMIT 1) AS `EV__id_kelompok`, (SELECT `jam_praktikum` FROM `master_jam_praktikum` `EW_TMP_LOOKUPTABLE` WHERE `EW_TMP_LOOKUPTABLE`.`id_jam_praktikum` = `detail_pendaftaran`.`id_jam_prak` LIMIT 1) AS `EV__id_jam_prak`, (SELECT `nama_lab` FROM `master_lab` `EW_TMP_LOOKUPTABLE` WHERE `EW_TMP_LOOKUPTABLE`.`id_lab` = `detail_pendaftaran`.`id_lab` LIMIT 1) AS `EV__id_lab`, (SELECT `nama_pngajar` FROM `master_pengajar` `EW_TMP_LOOKUPTABLE` WHERE `EW_TMP_LOOKUPTABLE`.`kode_pengajar` = `detail_pendaftaran`.`id_pngjar` LIMIT 1) AS `EV__id_pngjar`, (SELECT `nama_asisten` FROM `master_asisten_pengajar` `EW_TMP_LOOKUPTABLE` WHERE `EW_TMP_LOOKUPTABLE`.`kode_asisten` = `detail_pendaftaran`.`id_asisten` LIMIT 1) AS `EV__id_asisten` FROM `detail_pendaftaran`\" .\n\t\t\t\") `EW_TMP_TABLE`\";\n\t\treturn ($this->_SqlSelectList <> \"\") ? $this->_SqlSelectList : $select;\n\t}", "title": "" }, { "docid": "f0015be90cc563dccc0e2b4c5d9e0843", "score": "0.5639572", "text": "public function get_select($actif=1){\r\n $visibility = $this->get_visibility(); \r\n $conditions[]= $this->get_restriction($visibility); \r\n $conditions[] = $actif == null ? '1=1' : 'Mw.ACTIF='.$actif;\r\n $list = $this->Mw->find('list',array('fields'=>array('Mw.id','Mw.NOM'),'conditions'=>$conditions,'order'=>array('Mw.NOM'=>'asc'),'recursive'=>0));\r\n return $list;\r\n }", "title": "" }, { "docid": "085299c555a29dffd7161acb3e9c2007", "score": "0.56309193", "text": "function getDropDown() ;", "title": "" }, { "docid": "77e1b3066a4b6765bae1ec223a59676a", "score": "0.5630071", "text": "protected abstract function getSelect();", "title": "" }, { "docid": "45164eb0fc3b646306a78f1e26ef8cd2", "score": "0.5618776", "text": "function limitCountriesDropdown_new()\r\n{\r\n $siteConfig = jomres_singleton_abstract::getInstance('jomres_config_site_singleton');\r\n $jrConfig = $siteConfig->get();\r\n\t\r\n $jomres_countries = jomres_singleton_abstract::getInstance('jomres_countries');\r\n\t$jomres_countries->get_all_countries();\r\n\r\n $options = array();\r\n foreach ($jomres_countries->countries as $country) {\r\n\t\t$options[] = jomresHTML::makeOption($country['countrycode'], $country['countryname']);\r\n }\r\n\t\r\n $countryDropdown = jomresHTML::selectList($options, 'cfg_limit_property_country_country', 'class=\"inputbox\" ', 'value', 'text', $jrConfig[ 'limit_property_country_country' ]);\r\n\r\n return $countryDropdown;\r\n}", "title": "" }, { "docid": "141c7c150e0bc73caa48c199868c1a66", "score": "0.56110954", "text": "Function buildUserSelect($intUserID,\r\n $showSpare,\r\n $intLocationID,\r\n $notSystem = FALSE,\r\n $formName = \"\",\r\n $strSqlCondition = \"\",\r\n $fieldName = \"cboUser\",\r\n $aryExtraOptions = FALSE) {\r\n\r\n global $adminDefinedCategory, $progText591, $progText592, $progText593;\r\n global $progText594, $progText595, $progText596, $progText597;\r\n \r\n // If stuck, fix location ID\r\n if ($_SESSION['stuckAtLocation']) {\r\n $intLocationID = $_SESSION['locationStatus'];\r\n }\r\n\r\n if (!$notSystem) {\r\n // Set sql parameters to filter on locationID, if provided (and not set to \"all\")\r\n If (is_numeric($intLocationID)) {\r\n $sqlLocation = \"(userLocationID=$intLocationID OR userLocationID IS NULL) AND\";\r\n }\r\n $strSQL = \"SELECT id, firstName, middleInit, lastName, userID FROM tblSecurity WHERE $sqlLocation\r\n accountID=\" . $_SESSION['accountID'] . \" AND hidden='0' $strSqlCondition ORDER BY lastName\";\r\n $spareText = $progText593; # make this a spare system\r\n } else {\r\n\r\n // Set sql parameters to filter on locationID, if provided (and not set to \"all\")\r\n If (is_numeric($intLocationID)) {\r\n $sqlLocation = \"(s.userLocationID=$intLocationID OR s.userLocationID IS NULL) AND\";\r\n }\r\n $strSQL = \"SELECT DISTINCT s.id, s.firstName, s.middleInit, s.lastName, s.userID FROM hardware as h,\r\n tblSecurity as s WHERE $sqlLocation s.id=h.userID AND s.hidden='0' AND s.accountID=\" . $_SESSION['accountID'] . \"\r\n $strSqlCondition ORDER BY s.lastName\";\r\n $spareText = $progText592; # make this a spare part\r\n }\r\n\r\n if ($formName AND ($formName != \"formXYZ\")) {\r\n $jsText = \"onChange=\\\"document.$formName.submit();\\\"\";\r\n }\r\n\r\n $strReturnString = \"<select name='\".$fieldName.\"' size='1' $jsText>\\n\";\r\n $strReturnString .= \"<option value=''>&nbsp;</option>\\n\";\r\n\r\n If (is_array($aryExtraOptions)) {\r\n Foreach ($aryExtraOptions as $extraOption) {\r\n $strReturnString .= \"<option value='$extraOption' \".writeSelected($extraOption, $intUserID).\">$extraOption</option>\\n\";\r\n }\r\n }\r\n\r\n if ($showSpare) {\r\n $strReturnString .= \"<option value='spare' \".writeSelected(\"spare\", $intUserID).\">** \".$spareText.\" **</option>\\n\";\r\n if (!$notSystem) {\r\n $strReturnString .= \"<option value='independent' \".writeSelected(\"independent\", $intUserID).\">** \".$progText594.\" **</option>\\n\";\r\n\t if ($adminDefinedCategory) {\r\n $strReturnString .= \"<option value='adminDefined' \".writeSelected(\"adminDefined\", $intUserID).\">** \".$progText595.\" **</option>\\n\";\r\n\t }\r\n }\r\n $showDivider = TRUE;\r\n }\r\n\r\n if ($notSystem) {\r\n $strSQLx = \"SELECT count(*) FROM hardware WHERE sparePart='1' AND accountID=\" . $_SESSION['accountID'] . \"\";\r\n $resultx = dbquery($strSQLx);\r\n $rowx = mysql_fetch_row($resultx);\r\n\r\n if ($rowx[0] > 0) {\r\n $strReturnString .= \"<option value='toSpare' \".writeSelected(\"toSpare\", $intUserID).\">** \".$progText596.\" **</option>\\n\";\r\n $showDivider = TRUE;\r\n }\r\n mysql_free_result($resultx);\r\n\r\n $strSQLx = \"SELECT count(*) FROM hardware WHERE sparePart='2' AND accountID=\" . $_SESSION['accountID'] . \"\";\r\n $resultx = dbquery($strSQLx);\r\n $rowx = mysql_fetch_row($resultx);\r\n if ($rowx[0] > 0) {\r\n $strReturnString .= \"<option value='toIndependent' \".writeSelected(\"toIndependent\", $intUserID).\">** \".$progText597.\" **</option>\\n\";\r\n $showDivider = TRUE;\r\n }\r\n mysql_free_result($resultx);\r\n\r\n\t if ($adminDefinedCategory) {\r\n $strSQLx = \"SELECT count(*) FROM hardware WHERE sparePart='3' AND accountID=\" . $_SESSION['accountID'] . \"\";\r\n $resultx = dbquery($strSQLx);\r\n $rowx = mysql_fetch_row($resultx);\r\n if ($rowx[0] > 0) {\r\n $strReturnString .= \"<option value='toAdminDefined' \".writeSelected(\"toAdminDefined\", $intUserID).\">** \".$adminDefinedCategory.\" \".$progText591.\" **</option>\\n\";\r\n $showDivider = TRUE;\r\n }\r\n mysql_free_result($resultx);\r\n \t }\r\n }\r\n\r\n if ($showDivider) {\r\n $strReturnString .= \"<option value=''>&nbsp;</option>\\n\";\r\n }\r\n\r\n $result = dbquery($strSQL);\r\n while ($row = mysql_fetch_array($result)) {\r\n $strReturnString .= \"<option value='\".$row['id'].\"' \".writeSelected($row['id'], $intUserID).\">\";\r\n $strReturnString .= buildName($row[\"firstName\"], $row[\"middleInit\"], $row[\"lastName\"], 0);\r\n If ($row[\"userID\"]) {\r\n $strReturnString .= \" (\".$row[\"userID\"].\")\";\r\n }\r\n $strReturnString .= \"</option>\\n\";\r\n }\r\n $strReturnString .= \"</select>\\n\";\r\n Return $strReturnString;\r\n }", "title": "" }, { "docid": "4c7c1ca7d71382c7802dbff65309ea43", "score": "0.5607739", "text": "public static function dropDownList()\n {\n return ['' => '(nicht gesetzt)'] + \\yii\\helpers\\ArrayHelper::map(self::find()->dropdownScope()->orderBy('modified_ts desc')->all(),'id','name');\n }", "title": "" }, { "docid": "5cc343da6ce0940036dc7b4f8265d085", "score": "0.5601248", "text": "protected function _buildSelect() {\n $fields = array();\n $wheres = array();\n $orders = array();\n $options = array();\n $query = '';\n\n foreach ($this->_fields as $field) {\n if (!isset($field['field']) OR !is_string($field['field'])) {\n continue;\n }\n if (isset($field['alias']) AND is_string($field['alias'])) {\n $fields[] = sprintf(\"%s AS %s\", $field['field'], $field['alias']);\n } else {\n $fields[] = sprintf(\"%s\", $field['field']);\n }\n }\n\n unset($field);\n\n if (is_string($this->_search)) {\n $wheres[] = sprintf(\"MATCH('%s')\", $this->_escapeQuery(($this->_search)));\n }\n\n foreach ($this->_wheres as $where) {\n $wheres[] = sprintf(\"%s %s %s\", $where['field'], $where['operator'], $where['value']);\n }\n\n unset($where);\n\n foreach ($this->_orders as $order) {\n $orders[] = sprintf(\"%s %s\", $order['field'], $order['sort']);\n }\n\n unset($order);\n\n foreach ($this->_options as $option) {\n $options[] = sprintf(\"%s=%s\", $option['name'], $option['value']);\n }\n\n unset($option);\n\n $query .= sprintf('SELECT %s ', count($fields) ? implode(', ', $fields) : '*');\n\n $query .= 'FROM ' . $this->_buildIndexes();\n\n if (count($wheres) > 0) {\n $query .= sprintf('WHERE %s ', implode(' AND ', $wheres));\n }\n\n if (is_string($this->_group)) {\n $query .= sprintf('GROUP BY %s ', $this->_group);\n }\n\n if (is_array($this->_groupOrder)) {\n $query .= sprintf('WITHIN GROUP ORDER BY %s %s ', $this->_groupOrder['field'], $this->_groupOrder['sort']);\n }\n\n if (count($orders) > 0) {\n $query .= sprintf('ORDER BY %s ', implode(', ', $orders));\n }\n\n $query .= sprintf('LIMIT %d, %d ', $this->_offset, $this->_limit);\n\n if (count($options) > 0) {\n $query .= sprintf('OPTION %s ', implode(', ', $options));\n }\n\n while (substr($query, -1, 1) == ' ') {\n $query = substr($query, 0, -1);\n }\n\n return $query;\n }", "title": "" }, { "docid": "3407a1837793d222aaf1cf3f5808e5f2", "score": "0.5594627", "text": "public function FilterDisplayLevelList($StartLimit='',$EndLimit='')\r\n\t{\r\n\t\t$FilTxtLevelName\t= GetSessionVal('FilTxtLevelName');\r\n\t\t$FilSltLevelStatus\t= GetSessionVal('FilSltLevelStatus');\r\n\t\t$WhereCond\t\t\t= '';\r\n\t\tif(trim($FilTxtLevelName) != '')\r\n\t\t{\r\n\t\t\t$WhereCond\t= \" ul.group_name LIKE '%\".$FilTxtLevelName.\"%' \";\r\n\t\t}\r\n\t\tif($FilSltLevelStatus != '')\r\n\t\t{\r\n\t\t\tif($WhereCond != '')\r\n\t\t\t{\r\n\t\t\t\t$WhereCond\t.= \" AND ul.group_status='\".$FilSltLevelStatus.\"' \";\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$WhereCond\t.= \" ul.group_status='\".$FilSltLevelStatus.\"' \";\r\n\t\t\t}\r\n\t\t}\r\n\t\tif($WhereCond != '')\r\n\t\t{\r\n\t\t\t$WhereCond\t= \" AND \".$WhereCond;\r\n\t\t}\r\n\t\tif($this->SuperAdmin == 1)\r\n\t\t{\r\n\t\t\t$UserLevelQuery \t= \"SELECT ul.id,ul.group_name,ul.description,ul.redirect,ul.group_status,\r\n\t\t\t\t\t\t\t\t (SELECT COUNT(id) FROM \".GetLangLabel('Tbl_LoginUsers').\" WHERE group_id=ul.id) as total_users,\r\n\t\t\t\t\t\t\t\t (SELECT COUNT(id) FROM \".GetLangLabel('Tbl_LoginUsers').\" WHERE group_id=ul.id AND user_status=1) as active_users\r\n\t\t\t\t\t\t\t\t FROM \".GetLangLabel('Tbl_UserLevel').\" ul \r\n\t\t\t\t\t\t\t\t WHERE ul.id!='\".$this->UserLevelId.\"' \".$WhereCond.\" ORDER BY ul.updated_on DESC\";\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$UserLevelQuery \t= \"SELECT ul.id,ul.group_name,ul.description,ul.redirect,ul.group_status,\r\n\t\t\t\t\t\t\t\t (SELECT COUNT(id) FROM \".GetLangLabel('Tbl_LoginUsers').\" WHERE group_id=ul.id) as total_users,\r\n\t\t\t\t\t\t\t\t (SELECT COUNT(id) FROM \".GetLangLabel('Tbl_LoginUsers').\" WHERE group_id=ul.id AND user_status=1) as active_users\r\n\t\t\t\t\t\t\t\t FROM \".GetLangLabel('Tbl_UserLevel').\" ul,\".GetLangLabel('Tbl_CreatedLevelList').\" cll\r\n\t\t\t\t\t\t\t\t WHERE cll.created_by='\".$this->LoggedUserId.\"' AND cll.group_id=ul.id AND \r\n\t\t\t\t\t\t\t\t ul.id!='\".$this->UserLevelId.\"' \".$WhereCond.\" ORDER BY ul.updated_on DESC\";\r\n\t\t}\r\n\t\tif($StartLimit >= 0 && $EndLimit > 0 )\r\n\t\t{\r\n\t\t\t$UserLevelQuery\t.= \" LIMIT \".$StartLimit.','.$EndLimit;\r\n\t\t}\r\n\t\t$UserLevelDetails\t= $this->db->query($UserLevelQuery);\r\n\t\t$ReturnResult\t\t= $UserLevelDetails->result();\r\n\t\treturn $ReturnResult;\r\n\t}", "title": "" }, { "docid": "2d3333fb486d741f4c034d1ec56d1d5c", "score": "0.55905753", "text": "static public function opcionEstatusExpDig(){\n $options = array();\n $userC = JFactory::getUser();\n $groups = JAccess::getGroupsByUser($userC->id, false);\n\n //Todos los filtros\n if(in_array(\"8\", $groups) || in_array(\"10\", $groups) || in_array(\"19\", $groups) || in_array(\"11\", $groups) || in_array(\"17\", $groups)){\n $options[] = JHtml::_('select.option', '0', \"Todos\");\n $options[] = JHtml::_('select.option', '1', \"Asignados\");\n $options[] = JHtml::_('select.option', '2', \"Por asignar\");\n $options[] = JHtml::_('select.option', '86', \"Disponible\");\n $options[] = JHtml::_('select.option', '87', \"Escriturado\");\n $options[] = JHtml::_('select.option', '88', \"Cancelado\");\n $options[] = JHtml::_('select.option', '90', \"Apartado\");\n $options[] = JHtml::_('select.option', '91', \"Incompleto\");\n $options[] = JHtml::_('select.option', '92', \"Diferencia\");\n $options[] = JHtml::_('select.option', '93', \"Inscrito\");\n $options[] = JHtml::_('select.option', '94', \"Aviso de retenci&oacute;n\");\n $options[] = JHtml::_('select.option', '95', \"Con problema\");\n $options[] = JHtml::_('select.option', '128', \"Bloqueada\");\n $options[] = JHtml::_('select.option', '387', \"Correcci&oacute;n de datos\");\n $options[] = JHtml::_('select.option', '388', \"Folio\");\n $options[] = JHtml::_('select.option', '389', \"Ahorro voluntario\");\n $options[] = JHtml::_('select.option', '390', \"Instalaci&oacute;n de acabados\");\n $options[] = JHtml::_('select.option', '400', \"Apartado definitivo\");\n $options[] = JHtml::_('select.option', '401', \"Apartado provisional\");\n $options[] = JHtml::_('select.option', '402', \"Regresar Asesor\");\n }\n\n return $options;\n }", "title": "" }, { "docid": "b0f332199cebea406528cb9afdb15cd2", "score": "0.5590523", "text": "function newsdesk_show_draw_pull_down_menu($name, $values, $default = '', $params = '', $required = false) {\n\n$field = '<select name=\"' . $name . '\"';\nif ($params) $field .= ' ' . $params;\n\t$field .= '>';\n\tfor ($i=0; $i<sizeof($values); $i++) {\n\t\t$field .= '<option value=\"' . $values[$i]['id'] . '\"';\n\t\tif ( ($GLOBALS[$name] == $values[$i]['id']) || ($default == $values[$i]['id']) ) {\n\t\t\t$field .= ' SELECTED';\n\t\t}\n\t\t$field .= '>' . $values[$i]['text'] . '</option>';\n\t}\n\t$field .= '</select>';\n\t$field .= tep_hide_session_id();\n\n\tif ($required) $field .= NEWS_TEXT_FIELD_REQUIRED;\n\nreturn $field;\n}", "title": "" }, { "docid": "823835f7b8cf516ee3e8789e0e06b3c3", "score": "0.55900884", "text": "function getGroupList($db, $varname, $default = \"\", $extra = \"\", $criteria = \"\", $action = \"\", $listonly = false)\n{\n $strResult = \"\";\n if (!$listonly) {\n $strResult .= \"<select id=\\\"$varname\\\" name=\\\"$varname\\\" class=\\\"form-control select2\\\" $action>\\n\";\n }\n $strResult .= $extra;\n $strSQL = \"SELECT * FROM hrd_group $criteria ORDER BY group_code \";\n $resDb = $db->execute($strSQL);\n while ($rowDb = $db->fetchrow($resDb)) {\n $strCode = $rowDb['group_code'];\n $strName = $rowDb['group_name'];\n ($strCode == $default) ? $strSelect = \"selected\" : $strSelect = \"\";\n ($strName == \"\") ? $strName = \"\" : $strName = \" - \" . $strName;\n $strResult .= \"<option value=\\\"$strCode\\\" $strSelect>$strCode - $strName</option>\\n\";\n }\n if (!$listonly) {\n $strResult .= \"</select>\\n\";\n }\n return $strResult;\n}", "title": "" }, { "docid": "1ffb7a95209c2cbc30d270b367c32043", "score": "0.5585502", "text": "function getLoanTypeList($db, $varname, $default = \"\", $extra = \"\", $criteria = \"\", $action = \"\", $listonly = false)\n{\n $strResult = \"\";\n if (!$listonly) {\n $strResult .= \"<select id=\\\"$varname\\\" name=\\\"$varname\\\" class=\\\"form-control select2\\\" $action>\\n\";\n }\n $strResult .= $extra;\n $strSQL = \"SELECT * FROM hrd_loan_type $criteria ORDER BY type \";\n $resDb = $db->execute($strSQL);\n while ($rowDb = $db->fetchrow($resDb)) {\n ($rowDb['type'] == $default) ? $strSelect = \"selected\" : $strSelect = \"\";\n $strResult .= \"<option value=\\\"\" . $rowDb['type'] . \"\\\" $strSelect>\" . $rowDb['type'] . \"</option>\\n\";\n }\n if (!$listonly) {\n $strResult .= \"</select>\\n\";\n }\n return $strResult;\n}", "title": "" }, { "docid": "5a5d550430fabd57f4931b23fc8259c6", "score": "0.55852795", "text": "public function getLevel()\n {\n //assign selected level into search array\n $search['level'] = !empty(html_escape($this->input->post('levelId'))) ? html_escape($this->input->post('levelId')) : 0;\n //use the search array to look specifi values\n $data['groupLevel'] = $this->level_group->getclassGroupLevel($search);\n //assign the view to the the variable to be returned to the caller\n $select = $this->load->view('subject_level/getLevel',$data,TRUE);\n //return the results to the caller \n echo json_encode($select);\n\n }", "title": "" }, { "docid": "dae9f5508a6312db9b6a7f4b70f402dc", "score": "0.5581115", "text": "function ts_category_list ($selectname = 'type', $selected = 0, $extra = '', $style = 'specialboxn')\n {\n global $usergroups;\n global $cache;\n global $_categoriesS;\n global $_categoriesC;\n $subcategoriesss = array ();\n if ((count ($_categoriesS) == 0 OR count ($_categoriesC) == 0))\n {\n require TSDIR . '/' . $cache . '/categories.php';\n }\n\n if ((is_array ($_categoriesS) AND 0 < count ($_categoriesS)))\n {\n foreach ($_categoriesS as $scquery)\n {\n if (($usergroups['canviewviptorrents'] != 'yes' AND $scquery['vip'] == 'yes'))\n {\n continue;\n }\n\n $subcategoriesss[$scquery['pid']] = (isset ($subcategoriesss[$scquery['pid']]) ? $subcategoriesss[$scquery['pid']] : '') . '\n\t\t\t\t\t<option value=\"' . $scquery['id'] . '\"' . ($scquery['id'] == $selected ? ' selected=\"selected\"' : '') . '>&nbsp;&nbsp;|-- ' . $scquery['name'] . '</option>\n\t\t\t\t\t';\n }\n }\n\n $showcategories = '<select name=\"' . $selectname . '\" id=\"' . $style . '\">\n\t' . $extra;\n if ((is_array ($_categoriesC) AND 0 < count ($_categoriesC)))\n {\n foreach ($_categoriesC as $mcquery)\n {\n if (($usergroups['canviewviptorrents'] != 'yes' AND $mcquery['vip'] == 'yes'))\n {\n continue;\n }\n\n $showcategories .= '\n\t\t\t\t<option value=\"' . $mcquery['id'] . '\"' . ($mcquery['id'] == $selected ? ' selected=\"selected\"' : '') . ' style=\"color:red;\">' . $mcquery['name'] . '</option>\n\t\t\t\t' . (isset ($subcategoriesss[$mcquery['id']]) ? $subcategoriesss[$mcquery['id']] : '') . '\n\t\t\t\t';\n }\n }\n\n $showcategories .= '</select>';\n return $showcategories;\n }", "title": "" }, { "docid": "dde411d4fa61c4d5558c8c2b1f11bd50", "score": "0.5579441", "text": "function makeselect($album, $level){\n?>\n <option value=\"<?= item::root()->url() ?><?= $album->relative_url() ?>\"><?= str_repeat(\"&nbsp;&nbsp;\", $level) ?><?= html::purify($album->title) ?></option>\n<?php\n //recurse over the children, and print their list items as well\n foreach ($album->viewable()->children(null, null, array(array(\"type\", \"=\", \"album\"))) as $child){\n makeselect($child,$level+1);\n }\n}", "title": "" }, { "docid": "c68426670a8b831871d906764c4fee00", "score": "0.55785036", "text": "function am_get_select($table , $primary_id, $select_name= '', $selected_id= '', $column_value='', $sort_by='' , $where )\n{\n\t$sql = \"SELECT \".$primary_id.\",\".$column_value.\" FROM \".$table.\" \";\n\tif($where )\n\t\t$ssql = \" WHERE \".implode(\" AND \", $where);\n\tif($sort_by != '')\n\t\t$ssql .= \" ORDER BY \".$sort_by;\n\t$sql .= $ssql;\n\t//echo $sql;\n\t$result = am_select($sql);\n\t$select = '<select name=\"'.$select_name.'\" id=\"'.$select_name.'\" >';\n\t$column_name = explode('_' , $column_value );\n\t//print_R($column_name); exit;\n\t$c_name = implode (' ', $column_name);\n\tif($table=='admin')\n\t\t$c_name = \"Executive\";\n\t$select .= '<option value=\"\" > Select '.ucfirst($c_name) . '</option>';\n\tfor($i=0, $j=count($result);$i<$j;$i++)\n\t{\n\t\t$selected = '';\n\t\tif($result[$i][$primary_id] == $selected_id )\n\t\t\t$selected = 'selected = \"selected\"';\n\t\t$select .= '<option value=\"'.$result[$i][$primary_id].'\" '.$selected.' >'. $result[$i][$column_value] . '</option>';\n\t\t\n\t}\n\t$select .= \"</select>\";\n\t\n\treturn $select;\n}", "title": "" }, { "docid": "3a71e0e44fbcb899efdc94fe864b2301", "score": "0.55681103", "text": "function memberlevels(){\n \n $this->session_check_admin(); \n $project_id = '0'; \n $this->set(\"hlpdata\",$this->getHelpContent(62)); \n App::import(\"Model\", \"MemberLevel\");\n $this->MemberLevel = & new MemberLevel(); \n \n if(!empty($this->data))\n { \n $searchkey=$this->data['Admins']['searchkey'];\n }else{\n $searchkey=\"\";\n }\n $cond='';//$this->MemberType->getMemberTypesByProjectCondition($project_id,$searchkey);\n $field='';\n $this->Pagination->sortByClass = 'MemberLevel'; ##initaite pagination \n \n $this->Pagination->total= count($this->MemberLevel->getDonationLevelsByProject($project_id, $searchkey)); \n list($order,$limit,$page) = $this->Pagination->init($cond,$field); \n $memberlevellist = $this->MemberLevel->getDonationLevelsByProject($project_id, $searchkey,$order, $limit, $page);\n\t\t\t//$this->pl($memberlevellist);\n ##set Coinset data in variable \n $this->set(\"memberlevellist\",$memberlevellist); \n\n }", "title": "" }, { "docid": "576d207fc92aeca1159ae45bf4e076d1", "score": "0.5563474", "text": "function build_empty_table()\n{\n global $TBL_SIZE;\n global $string;\n $table.= \"<select name=\\\"destination_users_select[]\\\" id=\\\"destination_users_select\\\" multiple=\\\"multiple\\\" size=\\\"$TBL_SIZE\\\">\";\n $table.= \"<optgroup label=\\\"\" . $string['selected'] . \"\\\">\";\n $table.= \"</optgroup>\";\n $table.= \"</select>\";\n \n return $table;\n}", "title": "" }, { "docid": "70dcabfb2b6c67674b578e9fdc68b92d", "score": "0.5558694", "text": "function selectList($name, $data, $selected = '') {\n\t$html = \"\\n<select name=\\\"$name\\\" id=\\\"select_$name\\\">\";\n\n\tforeach ((array)$data as $k => $v) {\n\t\t$attr = '';\n\t\tif ($k == $selected) {\n\t\t\t$attr = ' selected=\"selected\"';\n\t\t}\n\t\t$html.=\"\\n\\t<option value=\\\"$k\\\"$attr>$v</option>\";\n\t}\n\t$html .= \"\\n</select>\\n\";\n\treturn $html;\n}", "title": "" }, { "docid": "17d59b829c49986d8f2c9c22c26a4b56", "score": "0.55471396", "text": "function selectfield($filter)\r\n{ \r\n require Application::getLanguageDirectory().'/'.Application::getLanguage().\"/Tableheader.lan\";\r\n\r\n $html_result = '';\r\n $html_result .= \"<select name='sel_condicionfield' class='detailedViewTextBox'>\";\r\n\r\n //$html_result .= \"<option value=''></optional>\";\r\n\r\n //convierte la cadena a un vector\r\n $filter_fields = explode(\",\",$filter);\r\n\r\n for($i=0;$i < count($filter_fields);$i+=2){\r\n $html_result .= \"<option value='\".$filter_fields[$i].\"'\";\r\n if (isset($_REQUEST[sel_condicionfield]))\r\n if($_REQUEST[\"sel_condicionfield\"] ==$filter_fields[$i]) \r\n $html_result .= \" selected \";\r\n $html_result .= \">\".$Tableheaders[$filter_fields[$i+1]].\"</option>\";\r\n //$html_result .= \">\".$filter_fields[$i+1].\"</option>\";\r\n \r\n }\r\n $html_result .= \"</select>\";\r\n\r\n return $html_result;\r\n}", "title": "" }, { "docid": "29738daab3b25b62657439ee650cfd87", "score": "0.5545357", "text": "function build_category_list($selected, $excluded=0)\n{\n\tglobal $categ_array;\n\t$old_category_array=build_categ_list_array($excluded);\n\n\tif($old_category_array)\n\t\t$category_array=sort_categ_array($old_category_array);\n//\tvar_dump($category_array);\n//\tdie();\n\n\t$out_str=\"\";\n\tif($category_array)\n\tforeach ($category_array as $key=>$cat_array)\n\t{\n/*\t\t\n\t\tif($cat_array['parent']!=0)\n\t\t{\n\t $out_str.=build_optgroup($cat_array['category_name'],'',$cat_array);\n\t\t}\n\t\telse\n\t\t{\n\t $out_str.=\"<option value=\\\"\".$cat_array['category_id'].\"\\\" \";//options values\n $out_str.=($cat_array['category_id']==$selected?\" SELECTED \":\"\");//if selected\n $out_str.=\">\".str_repeat(\"&nbsp;&nbsp;\",$cat_array['level']).$cat_array['category_name'].\"</option>\";//options names\n\t\t}\n*/\t\t\n\t $out_str.=\"<option value=\\\"\".$cat_array['category_id'].\"\\\" \";//options values\n $out_str.=($cat_array['category_id']==$selected?\" SELECTED \":\"\");//if selected\n $out_str.=\">\".str_repeat(\"&nbsp;&nbsp;\",$cat_array['category_level']).$cat_array['category_name'].\"</option>\";//options names\n\t}\n\n\t$categ_array=$category_array;\n\treturn $out_str;\n}", "title": "" }, { "docid": "5e0eb98ae137a4bf5ac5eae0c6b93b98", "score": "0.5543538", "text": "function selectorENUMScenariostate($index) { /* <<<<<<<< shouldn't this be determined automatically from a query ? */\n\techo \"<select name=\\\"value[\" . $index . \"][]\\\" multiple=\\\"multiple\\\" size=\\\"3\\\">\\n\";\n\techo '<option value=\"Notstarted\">Notstarted</option>' . \"\\n\";\n\techo '<option value=\"Failedtestlevelvalidation\">Failedtestlevelvalidation</option>' . \"\\n\";\n\techo '<option value=\"Running\">Running</option>' . \"\\n\";\n\techo '<option value=\"Canceled\">Canceled</option>' . \"\\n\";\n\techo '<option value=\"Completed\">Completed</option>' . \"\\n\";\n\techo \"</select>\\n\";\n}", "title": "" }, { "docid": "f796a495acb6d0c8f128f08511508839", "score": "0.55428857", "text": "function eligo_groups_select_options($widget, $vars){\n $options = array();\n \n // have to get the users groups here, because it requires relationship\n // not the most efficient, but fits better with the framework\n $user = get_user($widget->owner_guid);\n \n $groups = $user->getGroups('', 0, 0);\n \n $group_guids = array();\n foreach($groups as $group){\n $group_guids[] = $group->guid;\n }\n \n // if we have any groups, use guids in options\n // otherwise invalidate the query\n if(count($group_guids) > 0){\n $options['guids'] = $group_guids;\n $options['limit'] = 0;\n }\n else{\n $options['subtypes'] = array('eligo_invalidate_query');\n }\n\t\n // determine sort-by\n $sort = $vars['eligo_select_sort'] ? $vars['eligo_select_sort'] : FALSE;\n if(!$sort){\n\t$sort = $widget->eligo_select_sort ? $widget->eligo_select_sort : 'date';\n }\n\t\n if ($sort == \"name\"){\n // join to objects_entity table to sort by title in sql\n\t$join = \"JOIN \" . elgg_get_config('dbprefix') . \"groups_entity o ON o.guid = e.guid\";\n\t$options['joins'] = array($join);\n\t$options['order_by'] = 'o.name ASC';\n }\n\n\t\n return $options;\n}", "title": "" }, { "docid": "b73e89dd53373aaa14eee3d7db4c97b4", "score": "0.55403113", "text": "public function getMulti($level){\n\t\t $menu = $this->Menulevel($level);\n\t\t $html=\"\";\n\t\t foreach($menu as $k => $row)\n\t\t {\n\t\t $html.='<option value=\"'.$row['idMenus'].'\">'.'--'.$row['title_menus'].'</option>';\n\t\t }\n\t\t return $html;\n\t }", "title": "" }, { "docid": "c5803f61b89ab7ac2deb5eea48bc2ac9", "score": "0.5538301", "text": "public function getSelectRoles()\n {\n $options = \"\";\n $arrData = $this->model->selectRoles();\n if (count($arrData) > 0) {\n for ($i = 0; $i < count(($arrData)); $i++) {\n if ($arrData[$i]['status_rol'] == 1) {\n $options .= '<option value = \"' . $arrData[$i]['id_rol'] . '\">' . $arrData[$i]['nombre_rol'] . '</option>';\n }\n }\n }\n echo $options;\n die();\n }", "title": "" }, { "docid": "62876fd78c1d52c41cb1a528c363acc6", "score": "0.5538195", "text": "function List_area_atua ($ind){\r\n\t$this->sql_area = mysql_query(\"{$this->query}\".\" WHERE codigo LIKE '_.__' AND codigo<>'1.09'\");\r\n\techo \"<select name='{$this->texto_field}' id='{$this->texto_field}' class='' tabindex='++$ind'>\";\r\n\techo \"<option value=''>-->> Escolha <<--</option>\";\r\n\t while($this->col_lst = mysql_fetch_array($this->sql_area))\r\n\t {\r\n\t echo \"<option value='\".Substr($this->col_lst[\"codigo\"],0,4).\"'>\".$this->col_lst[$this->campo_retorno].\"</option>\";\r\n\t }\r\n\techo \"</select>\";\r\n }", "title": "" }, { "docid": "49017884a5bec53dabf6ec2b7dd9c0a3", "score": "0.55365914", "text": "public function selectAll() {\n\t\treturn generateSelectOption($this->designation->get()->pluck('name', 'id')->all());\n\t}", "title": "" }, { "docid": "6e17529dc5e45b60de9819fd34536877", "score": "0.55328625", "text": "function getReligionList($db, $varname, $default = \"\", $extra = \"\", $criteria = \"\", $action = \"\", $listonly = false)\n{\n $strResult = \"\";\n if (!$listonly) {\n $strResult .= \"<select id=\\\"$varname\\\" name=\\\"$varname\\\" class=\\\"form-control select2\\\" $action>\\n\";\n }\n $strResult .= $extra;\n $strSQL = \"SELECT * FROM hrd_religion WHERE 1=1 $criteria ORDER BY code \";\n $resDb = $db->execute($strSQL);\n while ($rowDb = $db->fetchrow($resDb)) {\n ($rowDb['code'] == $default) ? $strSelect = \"selected\" : $strSelect = \"\";\n $strResult .= \"<option value=\\\"\" . $rowDb['code'] . \"\\\" $strSelect>\" . $rowDb['code'] . \" - \" . $rowDb['name'] . \"</option>\\n\";\n }\n if (!$listonly) {\n $strResult .= \"</select>\\n\";\n }\n return $strResult;\n}", "title": "" }, { "docid": "d062b5f4a837b561ef9b9713d54daa2c", "score": "0.55287635", "text": "function list_user_levels(){\n\treturn array(\n\t\"Staff\" => \"Staff\",\n\t\"Admin\" => \"System Admin\",\n\t\"Super\" => \"Super Administrator\");\n}", "title": "" }, { "docid": "cd3650ecd86b333269b47ffc9b6de5d6", "score": "0.55239886", "text": "function get_field_options($parameters){\n\t\t$selected \t\t\t= $this->check_parameters($parameters,\"selected\");\n\t\t$as \t\t\t\t= $this->check_parameters($parameters,\"as\",\"XML\");\n\t\t$identifier \t\t= $this->check_parameters($parameters,\"identifier\",-1);\n\t\tif($identifier==-1){\n\t\t\treturn Array();\n\t\t}\n//\t\tprint_r($selected);\n\t\t$field = $this->check_parameters($parameters,\"field\",\"\");\n\t\t$limit = $this->check_parameters($parameters,\"limit\",\"\");\n\t\tif($field!=\"__category__\"){\n\t\t\t$sql = \"Select * from information_options \n\t\t\t\t\t\tinner join information_fields on if_screen=0 and if_name = io_field and if_client=io_client and io_list = if_list\n\t\t\t\t\twhere io_list = $identifier and io_field='$field' and io_client = $this->client_identifier order by io_rank\";\n\t\t\t$out = Array();\n\t\t\t$result = $this->parent->db_pointer->database_query($sql);\n\t\t\t$i=0;\n\t while($r = $this->parent->db_pointer->database_fetch_array($result)){\n\t\t\t\t$selectedValue=\"false\";\n\t\t\t\tif(!is_array($selected)){\n\t\t\t\t\tif($selected==$r[\"io_value\"]){\n\t\t\t\t\t\t$selectedValue=\"true\";\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif(in_array($r[\"io_value\"], $selected)){\n\t\t\t\t\t\t$selectedValue=\"true\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t \t$out[$i] = Array(\"name\"=>$r[\"io_field\"], \"value\"=>$r[\"io_value\"], \"label\"=>$r[\"io_value\"],\"section\"=>\"\",\"selected\"=>$selectedValue);\n\t\t\t\t$i++;\n\t }\n\t $this->parent->db_pointer->database_free_result($result);\n\t\t} else {\n\t\t\t$sql = \"Select * from information_list where info_identifier = $identifier and info_client = $this->client_identifier\";\n\t\t\t$out = Array();\n\t\t\t$result = $this->parent->db_pointer->database_query($sql);\n\t\t\t$i=0;\n\t\t\t$cat_id=-1;\n\t while($r = $this->parent->db_pointer->database_fetch_array($result)){\n\t\t\t\t$cat_id \t\t= $r[\"info_category\"];\n\t\t\t\t$info_cat_label\t= $r[\"info_cat_label\"];\n\t\t\t}\n\t\t\tif (count($this->loadedcat)==0){\n\t\t\t\t$data = $this->call_command(\"CATEGORYADMIN_LOAD\", Array(\"list\" => $cat_id, \"identifier\" => $cat_id, \"rank\"=>1,\"recache\"=>1, \"optionList\"=>1, \"limit\"=>$limit, \"selected\"=>$selected));\n\t\t\t}\n \t$out[0] = Array(\"name\"=>\"__category__\", \"value\"=>$data, \"label\"=>$info_cat_label, \"section\"=>\"\",\"selected\"=>\"false\");\n\t $this->parent->db_pointer->database_free_result($result);\n\t\t}\n\t\tif($as == \"Array\"){\n\t\t\treturn $out;\n\t\t} else {\n\t\t\t$outd = \"<module name=\\\"\".$this->module_name.\"\\\" display=\\\"fieldoptions\\\">\";\n\t\t\tfor ($index=0; $index<$i;$index++){\n\t\t\t\t$outd .= \"<option>\";\t\n\t\t\t\tforeach($out[$index] as $key => $value){\n\t\t\t\t\t$outd .= \"<$key><![CDATA[$value]]></$key>\";\t\n\t\t\t\t}\n\t\t\t\t$outd .= \"</option>\";\t\n\t\t\t}\n\t\t\t$outd .= \"</module>\";\t\n\t\t\treturn $outd;\n\t\t}\n\t}", "title": "" }, { "docid": "876106eaa6ea9c291e5e921f816cff98", "score": "0.551631", "text": "function select_menu($class, $name, $display, $selector, $value){\n //echo \"<select id='$name' name='$name'>\";\n $options=\"\";\n eval(\"\\$me=new \".$class.\";\");\n $list = $me->find_by(\"all\");\n // print_r($list);\n \n foreach($list as $obj){\n if($obj->$selector==$value)\n $sel=\" selected\";\n else\n $sel=\"\";\n \n $options.= $this->ss_rep(array($obj->$selector, $sel, $obj->$display), _SSORM_OPTION);\n }\n echo $this->ss_rep(array($name, $name, $options), _SSORM_SELECT);\n }", "title": "" }, { "docid": "38f12ba08355ba2b1f06850f1fbe42a3", "score": "0.5514899", "text": "public function showMenuChooseList()\n {\n\t\t$query = \"\n\t\t\t\t\tSELECT \n\t\t\t\t\t\tm.id, m.Name, m.ShortName ,m.ShortName as Value, m.`Index`, m.Active,\n\t\t\t\t\t\tCASE\n \t\t\t\tWHEN m.`Position` = 'T' THEN '<b>Górne<b>'\n\t\t\t\t\t\t\tWHEN m.`Position` = 'B' THEN 'Dolne'\n\t\t\t\t\t\tEND AS MenuPosition,\n\t\t\t\t\t\tCASE\n\t\t\t\t\t\t\tWHEN p.PageName IS NULL THEN '<font color=\\\"red\\\">Brak</font>'\n\t\t\t\t\t\t\tWHEN p.PageName IS NOT NULL THEN p.PageName \n\t\t\t\t\t\tEND AS AssignedPageName,\n\t\t\t\t\t\tmp.ShortName as ParentMenuName\n\t\t\t\t\tFROM\n\t\t\t\t\t\tcmsMenuView AS m LEFT OUTER JOIN cmsPages AS p\n\t\t\t\t\t\t\tON m.FK_PageId = p.id\n\t\t\t\t\t\t LEFT OUTER JOIN cmsMenu AS mp\n\t\t\t\t\t\t \tON m.FK_ParentMenuItem = mp.id\n\t\t\t\t\tWHERE\n\t\t\t\t\t\tm.AdminMenu = 'N' AND\n\t\t\t\t\t\tm.FK_ParentMenuItem = 0\n\t\t\t\t\tORDER BY\n\t\t\t\t\t\tm.`Index`\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\";\n \t \t//----------------------------------------------------------\n \t \t$subQuery = \"\n\t\t\t\t\tSELECT \n\t\t\t\t\t\tm.id,m.FK_ParentMenuItem, m.Name, m.ShortName, m.ShortName as Value, m.`Index`, m.Active, \n\t\t\t\t\t\tCASE\n \t\t\t\twhen m.`Position` = 'L' then 'Lewe'\n\t\t\t\t\t\t\twhen m.`Position` = 'R' then '<i>Prawe</i>'\n\t\t\t\t\t\tend as MenuPosition,\n\t\t\t\t\t\tCASE\n\t\t\t\t\t\t\tWHEN p.PageName IS NULL THEN '<font color=\\\"red\\\">Brak</font>'\n\t\t\t\t\t\t\tWHEN p.PageName IS NOT NULL THEN p.PageName \n\t\t\t\t\t\tEND AS AssignedPageName,\t\n\t\t\t\t\t\tmp.ShortName as ParentMenuName\n\t\t\t\t\tFROM\n\t\t\t\t\t\tcmsMenu AS m LEFT OUTER JOIN cmsPages AS p\n\t\t\t\t\t\t\tON m.FK_PageId = p.id\n\t\t\t\t\t\t LEFT OUTER JOIN cmsMenu AS mp\n\t\t\t\t\t\t \tON m.FK_ParentMenuItem = mp.id\n\t\t\t\t\tWHERE\n\t\t\t\t\t\tm.AdminMenu = 'N'\n\t\t\t\t\t\"; \n\t\t$result = '';\n \t \t$result .= '<table class=\"Grid\" align=\"center\" cellspacing=0>';\n \t \t \t \t\n \t \t$result .= '<tr><td colspan=\"2\">';\n \t \t\n \t \t$menuListGrid = new gridRenderer();\n \t \t$menuListGrid->setDataQuery($query);\n \t \t$menuListGrid->setRecurseQuery($subQuery, 'm.FK_ParentMenuItem', 'ORDER BY m.`Index`');\n \t$menuListGrid -> setTitle('Lista pozycji menu');\n \t$menuListGrid->setGridAlign('center');\n \t$menuListGrid->setGridWidth(680);\n \t\n \t$menuListGrid->addColumn(\"Name\", 'Pełna nazwa', 200, false, false, 'left');\n \t$menuListGrid->addColumn(\"ShortName\", 'Nazwa techn.', 100, false, false, 'left');\n \t$menuListGrid->addColumn('MenuPosition', 'Pozycja', 40, false, false, 'center');\n \t$menuListGrid->addColumn(\"Index\", 'Kolejność', 20, false, false, 'right');\n \t$menuListGrid->addColumn('Active', 'Aktywne', 20, false, false, 'center');\n \t$menuListGrid->addColumn('AssignedPageName', 'Przypisana strona', 100, false, false, 'left');\n \t$menuListGrid->addColumn(\"id\", \"\", 200, true, false, 'right');\n \t$menuListGrid->addColumn('Value', '', 1, false, true, 'left');\n \t$menuListGrid->callBackAction('window.opener.document.dFORM.txtNazwa.value');\n \t//$menuListGrid->enabledEditAction(13);\n \t$result .= $menuListGrid->renderHtmlGrid(1);\n \t$result .= '</td></tr>';\n \t$result .= '</table>';\n\t\trestoreActionValue();\t\t\n\t\treturn $result;\n \t}", "title": "" }, { "docid": "a07d6164a12217670ccb295c47cf7707", "score": "0.5513069", "text": "function getAccessPickListValues()\r\n\t{\r\n\t\tglobal $adb;\r\n\t\tglobal $current_user;\r\n\t\tglobal $table_prefix;\r\n\t\t$id = array(getTabid($this->primarymodule));\r\n\t\tif($this->secondarymodule != '')\r\n\t\t\tarray_push($id, getTabid($this->secondarymodule));\r\n\r\n\t\t$query = 'select fieldname,columnname,fieldid,fieldlabel,tabid,uitype from '.$table_prefix.'_field where tabid in('. generateQuestionMarks($id) .') and uitype in (15,33,55,300)'; //and columnname in (?)'; // crmv@30528\r\n\t\t$result = $adb->pquery($query, $id);//,$select_column));\r\n\t\t$roleid=$current_user->roleid;\r\n\t\t$subrole = getRoleSubordinates($roleid);\r\n\t\tif(count($subrole)> 0)\r\n\t\t{\r\n\t\t\t$roleids = $subrole;\r\n\t\t\tarray_push($roleids, $roleid);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$roleids = $roleid;\r\n\t\t}\r\n\r\n\t\t$temp_status = Array();\r\n\t\tfor($i=0;$i < $adb->num_rows($result);$i++)\r\n\t\t{\r\n\t\t\t$fieldname = $adb->query_result($result,$i,\"fieldname\");\r\n\t\t\t$fieldlabel = $adb->query_result($result,$i,\"fieldlabel\");\r\n\t\t\t$tabid = $adb->query_result($result,$i,\"tabid\");\r\n\t\t\t$uitype = $adb->query_result($result,$i,\"uitype\");\r\n\t\t\t$fieldlabel1 = str_replace(\" \",\"_\",$fieldlabel);\r\n\t\t\t$keyvalue = getTabModuleName($tabid).\"_\".$fieldlabel1;\r\n\t\t\t$fieldvalues = Array();\r\n\t\t\t//se la picklist supporta il nuovo metodo\r\n\t\t\t$columns = array($adb->database->MetaColumnNames($table_prefix.\"_$fieldname\"));\r\n\t\t\tif ($columns && in_array('picklist_valueid',$columns) && $fieldname != 'product_lines'){\r\n\t\t\t\t$order_by = \"sortid,$fieldname\";\r\n\t\t\t\t$pick_query=\"select $fieldname from \".$table_prefix.\"_$fieldname where exists (select * from \".$table_prefix.\"_role2picklist where \".$table_prefix.\"_role2picklist.picklistvalueid = \".$table_prefix.\"_$fieldname.picklist_valueid and roleid in (\". generateQuestionMarks($roleids) .\"))\";\r\n\t\t\t\t$params = array($roleids);\r\n\t\t\t}\r\n\t\t\t//altrimenti uso il vecchio\r\n\t\t\telse {\r\n\t\t\t\tif (in_array('sortorderid',$columns))\r\n\t\t\t\t\t$order_by = \"sortorderid,$fieldname\";\r\n\t\t\t\telse\r\n\t\t\t\t\t$order_by = $fieldname;\r\n\t\t\t\t$pick_query=\"select $fieldname from \".$table_prefix.\"_$fieldname\";\r\n\t\t\t\t$params = array();\r\n\t\t\t}\r\n\t\t\tif ($fieldname != 'firstname')\r\n\t\t\t\t$mulselresult = $adb->pquery($pick_query,$params);\r\n\t\t\tif ($mulselresult){\r\n\t\t\t\tfor($j=0;$j < $adb->num_rows($mulselresult);$j++)\r\n\t\t\t\t{\r\n\t\t\t\t\t$fldvalue = $adb->query_result($mulselresult,$j,$fieldname);\r\n\t\t\t\t\tif(in_array($fldvalue,$fieldvalues)) continue;\r\n\t\t\t\t\t$fieldvalues[] = $fldvalue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$field_count = count($fieldvalues);\r\n\t\t\tif( $uitype == 15 && $field_count > 0 && ($fieldname == 'taskstatus' || $fieldname == 'eventstatus'))\r\n\t\t\t{\r\n\t\t\t\t$temp_count =count($temp_status[$keyvalue]);\r\n\t\t\t\tif($temp_count > 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tfor($t=0;$t < $field_count;$t++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$temp_status[$keyvalue][($temp_count+$t)] = $fieldvalues[$t];\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$fieldvalues = $temp_status[$keyvalue];\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\t$temp_status[$keyvalue] = $fieldvalues;\r\n\t\t\t}\r\n\r\n\t\t\tif($uitype == 33){\r\n\t\t\t\t$fieldlists[1][$keyvalue] = $fieldvalues;\r\n\t\t\t\t$fieldlists[1][$fieldname] = $fieldvalues;\r\n\t\t\t}\r\n\t\t\telse if($uitype == 55 && $fieldname == 'salutationtype'){\r\n\t\t\t\t$fieldlists[$keyvalue] = $fieldvalues;\r\n\t\t\t\t$fieldlists[$fieldname] = $fieldvalues;\r\n\t\t\t}\r\n\t else if($uitype == 15){\r\n\t\t $fieldlists[$keyvalue] = $fieldvalues;\r\n\t\t $fieldlists[$fieldname] = $fieldvalues;\r\n\t }\r\n\t\t}\r\n\t\treturn $fieldlists;\r\n\t}", "title": "" }, { "docid": "409c04dfb8483e1b038742ca965d4d53", "score": "0.5510376", "text": "function showuser_access_rows($rows)\n\t{\n\t\t$msg = \"<select name=\\\"users\\\" onchange=\\\"showUserAccess(this.value)\\\">\";\n\t\t$msg .= \"<option value=\\\"\\\">Select a person:</option>\";\n\t\tforeach($rows as $access_row) : \n\t\t\t$msg .= \"<option value=\\\"\" . $access_row['id'] . \"\\\">\" . $access_row['username'] . \"</option>\";\n\t\tendforeach;\n\t\t$msg .= \"\t</select>\";\n\t\t$msg .=\"<div id=\\\"txtHint\\\"><b>Person info will be listed here...</b></div>\";\n\t\treturn $msg;\n\t}", "title": "" }, { "docid": "391cdc05a06d6da46b9f2c0d64444e71", "score": "0.550306", "text": "function getSubSectionList($db, $varname, $default = \"\", $extra = \"\", $criteria = \"\", $action = \"\", $listonly = false)\n{\n global $strDataCompany;\n $strResult = \"\";\n $criteria .= ($strDataCompany == \"\") ? \"\" : \"AND management_code LIKE '%\" . printCompanyCode($strDataCompany) . \"%'\";\n if (!$listonly) {\n $strResult .= \"<select id=\\\"$varname\\\" name=\\\"$varname\\\" class=\\\"form-control select2\\\" $action>\\n\";\n }\n $strResult .= $extra;\n $strSQL = \"SELECT * FROM hrd_sub_section WHERE 1=1 $criteria ORDER BY section_code, sub_section_code \";\n $resDb = $db->execute($strSQL);\n while ($rowDb = $db->fetchrow($resDb)) {\n $strCode = $rowDb['sub_section_code'];\n $strName = $rowDb['sub_section_name'];\n ($strCode == $default) ? $strSelect = \"selected\" : $strSelect = \"\";\n $strResult .= \"<option value=\\\"$strCode\\\" $strSelect>$strCode - $strName</option>\\n\";\n }\n if (!$listonly) {\n $strResult .= \"</select>\\n\";\n }\n return $strResult;\n}", "title": "" }, { "docid": "0a7befebf17d086e8e41dd881e4b65a6", "score": "0.5501677", "text": "function _create_select($data)\n {\n if (!$this->is_not_empty($data['name'])) {\n echo '<p style=\"color:red\">You must provide a name for the <strong>' . $data['type'] . '</strong> element.</p>';\n return false;\n }\n\n # open the element\n $return = '<select name=\"' . $data['name'] . '\"';\n\n # if an ID wasn't supplied, create one from the field name\n if (!$this->is_not_empty($data['id'])) {\n $data['id'] = $data['name'];\n }\n\n # if we're selecting multiple items\n if (is_array($data['selected']) || isset($data['multiple'])) {\n $return .= ' multiple';\n }\n\n # add ID\n $return .= ' id=\"' . $data['id'] . '\"';\n\n\n # 'fix' the classes attribute\n $return .= $this->_fix_classes($return, $data);\n\n\n # add user-entered string and additional attributes\n $return .= ' ' . $this->_attributes($data);\n\n # if required\n if ($this->_check_required($data['name'], $data)) {\n $return .= ' required';\n }\n\n # close the opening tag\n $return .= '>' . $this->_nl(1);\n\n\n # a string was entered, so we'll grab the appropriate function from the Dropdowns class\n if (!empty($data['options']) && is_string($data['options'])) {\n $data['options'] = $this->_dropdowns($data['options']);\n }\n\n # if a default selected=\"selected\" value is defined, use that one and give it an empty value\n # if one is set in an array, insert that one as we loop through it later on\n if (!is_array($data['selected']) && !array_key_exists($data['selected'], $data['options']) && !empty($data['selected'])) {\n $return .= $this->_t(1) . '<option value=\"\">' . $data['selected'] . '</option>';\n }\n\n # options are user-defined\n # loop through the options array\n foreach ($data['options'] as $key => $value) {\n # if $value is an array, create an optgroup\n if (is_array($value)) {\n $return .= $this->_t(1) . '<optgroup label=\"' . $key . '\">';\n # loop through the array\n foreach ($value as $value => $label) {\n # if the form has been posted, print selected option\n if (isset($_POST[$data['name']]) && $_POST[$data['name']] == $value) {\n $return .= $this->_t(2) . '<option value=\"' . $value . '\" selected=\"selected\">' . $label . '</option>';\n }\n # print selected option(s) on form load\n elseif ($data['selected'] == $value || (is_array($data['selected']) && in_array($value, $data['selected']))) {\n $return .= $this->_t(2) . '<option value=\"' . $value . '\" selected=\"selected\">' . $label . '</option>';\n }\n # print remaining options\n else {\n $return .= $this->_t(2) . '<option value=\"' . $value . '\">' . $label . '</option>';\n }\n }\n $return .= $this->_t(1) . '</optgroup>';\n } else {\n # if the form has been posted, print selected option\n if (isset($_POST[$data['name']]) && $_POST[$data['name']] == $key) {\n $return .= $this->_t(2) . '<option value=\"' . $key . '\" selected=\"selected\">' . $value . '</option>' . $this->_nl(1);\n }\n # print selected option on form load\n elseif (!isset($_POST[$data['name']]) && $data['selected'] === $key || (is_array($data['selected']) && in_array($key, $data['selected']))) {\n # populate the field's value (on page load) with the session value\n if ($this->session_values && $this->session && !empty($_SESSION[$this->session][$data['name']])) {\n if ($_SESSION[$this->session][$data['name']] == $key) {\n $return .= $this->_t(2) . '<option value=\"' . $key . '\" selected=\"selected\">' . $value . '</option>' . $this->_nl(1);\n }\n } else {\n $return .= $this->_t(2) . '<option value=\"' . $key . '\" selected=\"selected\">' . $value . '</option>' . $this->_nl(1);\n }\n }\n # print remaining options\n else {\n # user has entered a value in the 'values' argument\n if (!isset($_POST[$data['name']]) && $data['value'] === $key) {\n $return .= $this->_t(2) . '<option value=\"' . $key . '\" selected=\"selected\">' . $value . '</option>' . $this->_nl(1);\n } else {\n $return .= $this->_t(2) . '<option value=\"' . $key . '\">' . $value . '</option>' . $this->_nl(1);\n }\n }\n }\n }\n\n # close the element\n $return .= $this->_t(1) . '</select>';\n\n # if using inline validation\n $return .= $this->inline($data['name']);\n\n $return = str_replace(' ', ' ', $return);\n\n $element = null;\n\n if (empty($data['fastform'])) {\n if (!$this->wrapper) {\n if (!empty($data['label'])) {\n # output the element and label without a wrapper\n if ($this->comments) {\n $element .= $this->_nl(1) . '<!-- ' . $data['name'] . ' -->' . $this->_nl(1);\n }\n $element .= $this->label($data) . $this->_nl(1);\n $element .= $return . $this->_nl(1);\n return $element;\n } else {\n # just return the element\n if ($this->comments) {\n $element .= $this->_nl(1) . '<!-- ' . $data['name'] . ' -->' . $this->_nl(1);\n }\n $element .= $return . $this->_nl(1);\n return $element;\n }\n } else {\n # wrap the element\n $element .= $return;\n return $this->_wrapper($element, $data);\n }\n } else {\n # we're using fastform(), which will run the element through wrapper()\n return $return;\n }\n }", "title": "" }, { "docid": "8803ccb5574ceb43a16c8d3b68312b5f", "score": "0.5501228", "text": "function getDivisionList($db, $varname, $default = \"\", $extra = \"\", $criteria = \"\", $action = \"\", $listonly = false)\n{\n global $strDataCompany;\n $strResult = \"\";\n $criteria .= ($strDataCompany == \"\") ? \"\" : \"AND management_code LIKE '%\" . printCompanyCode($strDataCompany) . \"%'\";\n if (!$listonly) {\n $strResult .= \"<select id=\\\"$varname\\\" name=\\\"$varname\\\" class=\\\"form-control select2\\\" $action>\\n\";\n }\n $strResult .= $extra;\n $strSQL = \"SELECT * FROM hrd_division WHERE 1=1 $criteria ORDER BY division_code \";\n $resDb = $db->execute($strSQL);\n while ($rowDb = $db->fetchrow($resDb)) {\n $strCode = $rowDb['division_code'];\n $strName = $rowDb['division_name'];\n ($strCode == $default) ? $strSelect = \"selected\" : $strSelect = \"\";\n $strResult .= \"<option value=\\\"$strCode\\\" $strSelect>$strCode - $strName</option>\\n\";\n }\n if (!$listonly) {\n $strResult .= \"</select>\\n\";\n }\n return $strResult;\n}", "title": "" }, { "docid": "bf00ae2299e5c7b394f4a134a332108e", "score": "0.54990655", "text": "function get_admin_list($post)\n {\n $CI =& get_instance();\n $is_perm=$CI->admin_auth_model->checkAdminPermissions(ADMINISTRATOR_CONTROL);\n $admin_id = $CI->admin_id;\n $data=array();\n $data['is_perm']=$is_perm;\n $data['admin_id']=$admin_id;\n $this->db->select('admins.id,admins.login,admins.access_id,admins.last_online');\n $this->db->from(db_prefix.'Admins admins');\n if(!$CI->is_super_admin)\n {\n $this->db->where('admins.id!=',1);\n }\n if(!$is_perm)\n {\n $this->db->where('admins.id',$admin_id);\n }\n $count=$this->db->count_all_results();\n $data['pagers']=pager_ex($post,$count,array('login','id','login','access_id','last_online'));\n $params=$data['pagers']['params'];\n\n $this->db->select('admins.id,admins.login, access_levels.name as access_level,admins.last_online');\n $this->db->from(db_prefix.'Admins admins');\n if(!$CI->is_super_admin)\n {\n $this->db->where('admins.id!=',1);\n }\n if(!$is_perm)\n {\n $this->db->where('admins.id',$admin_id);\n }\n $this->db->join(db_prefix.'Access_levels access_levels','admins.access_id=access_levels.id','left');\n $this->db->limit($params['limit'],$params['offset']);\n $this->db->order_by($params['column'],$params['order']);\n $query = $this->db->get();\n $levels_list=$query->result_array();\n $data['admin_list']=$levels_list;\n return $data;\n }", "title": "" }, { "docid": "1f19e9990f73fd1d3cfab9fd13a87476", "score": "0.5487169", "text": "function makeUserTypeDropdown($list, $selected=0)\n{\n\t$result='';\n\t$result = \"<option \".(($selected==0)?\" selected='selected'\":\"\").\" value='0' >Select user type.</option>\\n\";\n\tforeach ($list as $key => $value) {\n\t\t$result .= \"<option \".(($selected==$value['id'])?\" selected='selected'\":\"\").\" value='{$value['id']}' >{$value['name']}</option>\\n\";\n\t}\n\treturn $result;\n}", "title": "" }, { "docid": "765dcddb66e1d240d03f519b869b3f59", "score": "0.54854125", "text": "function create_select($attr_type)\n\t{ \n\t\tif(!empty($this->attribute_values[$attr_type['id']]))\n\t\t\t{\n\t\t\t\t$value\t=\t$this->attribute_values[$attr_type['id']];\n\t\t\t}\n\t\t//RETRIEVE SELECT OPTION AND LABEL\n\t\t$option_sql\t=\t\"select * from attribute_option where attribute_id=\".$attr_type['id'].\"\";\n\t\t$option_rs\t=\tmysql_query($option_sql) or die(mysql_error());\n\t\t \n\t\t$option \t=\t\"<div class='control-group'>\n\t\t\t\t\t\t<label class='control-label'>\".$attr_type['field_name'].\"</label>\n\t\t\t\t\t\t<div class='controls'>\";\n\t\t$option \t.=\t\"<select name='attribute_\".$attr_type['id'].\"' class='form-control'>\";\n\t\t$option \t.=\t\"<option value=''>Select</option>\";\n\t\twhile($option_value\t =\tmysql_fetch_array($option_rs)\t)\n\t\t\t{\n\t\t\t\t$selected\t=\t\"\";\n\t\t\t\tif($option_value['option_value']==$value)\n\t\t\t\t{\n\t\t\t\t\t$selected\t=\t\"selected='selected'\";\n\t\t\t\t}\n\t\t\t\t$option \t.=\t\"<option value='\".$option_value['option_value'].\"' \".$selected.\">\".$option_value['option_label'].\"</option>\";\n\t\t\t}\n\t\t\t\techo $option \t.=\t\"</select></div></div>\";\n\t}", "title": "" }, { "docid": "d50e5d61200b94cf349be1ee6df2f497", "score": "0.5482835", "text": "function getAllowanceTypeList(\n $db,\n $varname,\n $default = \"\",\n $extra = \"\",\n $criteria = \"\",\n $action = \"\",\n $listonly = false\n) {\n $strResult = \"\";\n $strHidden = \"\";\n $bolFound = false;\n if (!$listonly) {\n $strResult .= \"<select id=\\\"$varname\\\" name=\\\"$varname\\\" class=\\\"form-control select2\\\" $action>\\n\";\n }\n $strResult .= $extra;\n $strSQL = \"SELECT * FROM hrd_allowance_type $criteria ORDER BY name\";\n $resDb = $db->execute($strSQL);\n while ($rowDb = $db->fetchrow($resDb)) {\n if ($rowDb['name'] == $default) {\n $strSelect = \"selected\";\n $bolFound = true;\n } else {\n $strSelect = \"\";\n }\n $strResult .= \"<option value=\\\"\" . $rowDb['name'] . \"\\\" $strSelect>\" . $rowDb['name'] . \"</option>\\n\";\n }\n if (!$bolFound && $default != \"\") {\n // tambahkan default\n $strResult .= \"<option value=\\\"$default\\\" $strSelect>\" . $default . \"</option>\\n\";\n }\n if (!$listonly) {\n $strResult .= \"</select>\\n\";\n }\n return $strResult;\n}", "title": "" }, { "docid": "15b7922e95bcdb2009c3f79bed5959a7", "score": "0.54691", "text": "function MyProfile_adminapi_buildSelection($list,$type) {\r\n \tif ($type == 'radio') $chars = '@*';\r\n \telse if ($type == 'dropdown') $chars = '@@';\r\n \telse return false;\r\n if (eregi($chars,$list)) {\r\n\t\t$ra = explode($chars,$list);\r\n\t\tforeach ($ra as $element) {\r\n\t\t\t$ea = explode('||',$element);\r\n\t\t\tif ($ea[1]!='') {\r\n $result[] = array(\r\n 'text' => $ea[1],\r\n 'value' => $ea[0],\r\n 'id' => md5($ea[1].$ea[0])\r\n );\r\n }\r\n\t\t}\r\n\treturn $result;\r\n\t}\r\n}", "title": "" }, { "docid": "9993a81214cd43770ea90bf56c2d5498", "score": "0.54649925", "text": "function getManagementList($db, $varname, $default = \"\", $extra = \"\", $criteria = \"\", $action = \"\", $listonly = false)\n{\n global $strDataCompany;\n $strResult = \"\";\n $criteria .= ($strDataCompany == \"\") ? \"\" : \"AND management_code LIKE '%\" . printCompanyCode($strDataCompany) . \"%'\";\n if (!$listonly) {\n $strResult .= \"<select id=\\\"$varname\\\" name=\\\"$varname\\\" class=\\\"form-control select2\\\" $action>\\n\";\n }\n $strResult .= $extra;\n $strSQL = \"SELECT * FROM hrd_management WHERE 1=1 $criteria ORDER BY management_code \";\n $resDb = $db->execute($strSQL);\n while ($rowDb = $db->fetchrow($resDb)) {\n $strCode = $rowDb['management_code'];\n $strName = $rowDb['management_name'];\n ($strCode == $default) ? $strSelect = \"selected\" : $strSelect = \"\";\n $strResult .= \"<option value=\\\"$strCode\\\" $strSelect>$strCode - $strName</option>\\n\";\n }\n if (!$listonly) {\n $strResult .= \"</select>\\n\";\n }\n return $strResult;\n}", "title": "" }, { "docid": "74689b1848ac163c4eb6551e51519c3e", "score": "0.5456846", "text": "public function action_list()\n {\n if(Helper_User::getUserRole($this->logget_user) == 'student' || Helper_User::getUserRole($this->logget_user) == 'teacher') return $this->request->redirect('');\n $years = Model_Level::get_min_max_student_year();\n $data['years'] = $years[0];\n $data['year'] = $this->request->param('year') ? $this->request->param('year') : ORM::factory('academicyear')->where('name', '=', Helper_Main::getCurrentYear())->find()->id;\n $data['levels'] = ORM::factory('level')->order_by('order')->find_all();\n $data['user'] = $this->logget_user;\n Helper_Output::factory()->link_css('bootstrap')->link_js('level/index');\n $this->setTitle('Grade Levels')\n ->view('levels/levelsList', $data)\n ->render();\n }", "title": "" }, { "docid": "0954b1d85bf7dc4c9f0615f2d53f1aad", "score": "0.54528743", "text": "function generate_prefer_select_form($colname , $data_type, $value, $athlete_id ) {\n // selected by the user, when the log_field_names table col data_type\n // starts with 'pref'\n // $value is the default selected value.\n // the second part of the data_type field should have the name of\n // the table which contains the preferences list info\n preg_match_all(\"/\\w+/\", $data_type , $matches ); \n $array=$matches[0];\n $table=\"$array[1]\" ;\n \n $query = \"SELECT detail from $table where athlete_id = $athlete_id \" ;\n $result = do_sql($query) or die('Query failed: ' . pg_last_error());\n\n $list_data=array();\n while ( $row = pg_fetch_array($result, null, PGSQL_ASSOC) ) {\n array_push( $list_data , $row['detail'] ) ;\n }\n\n echo \" <SELECT NAME='${colname}' >\\n\" ;\n foreach ( $list_data as $list_item ) {\n $selected = \"\" ;\n if ( \"$list_item\" == \"$value\" ) { $selected = \"SELECTED\" ; }\n echo \"<OPTION VALUE='$list_item' $selected > $list_item </OPTION>\\n\";\n }\n echo \"</SELECT>\\n\";\n\n## END of FUNCTION\n}", "title": "" }, { "docid": "a417faf6a24ff6879b49f12ce861b878", "score": "0.5444133", "text": "public function get_select() {\n\t\t\t$html = '';\n\t\t\tforeach ($this->taxonomies as $tax) {\n\t\t\t\t$options = sprintf('<option value=\"\">%s %s</option>', __('View All', 'themify'),\n\t\t\t\tget_taxonomy($tax)->label);\n\t\t\t\t$class = is_taxonomy_hierarchical($tax) ? ' class=\"level-0\"' : '';\n\t\t\t\tforeach (get_terms( $tax ) as $taxon) {\n\t\t\t\t\t$options .= sprintf('<option %s%s value=\"%s\">%s%s</option>', isset($_GET[$tax]) ? selected($taxon->slug, $_GET[$tax], false) : '', '0' !== $taxon->parent ? ' class=\"level-1\"' : $class, $taxon->slug, '0' !== $taxon->parent ? str_repeat('&nbsp;', 3) : '', \"{$taxon->name} ({$taxon->count})\");\n\t\t\t\t}\n\t\t\t\t$html .= sprintf('<select name=\"%s\" id=\"%s\" class=\"postform\">%s</select>', $tax, $tax, $options);\n\t\t\t}\n\t\t\treturn print $html;\n\t\t}", "title": "" }, { "docid": "c23b014a151c8a3f79a09292e6a8d051", "score": "0.5443783", "text": "function getCompetencyTrainingList(\n $db,\n $varname,\n $default = \"\",\n $extra = \"\",\n $criteria = \"\",\n $action = \"\",\n $listonly = false\n) {\n global $strDataCompany;\n $strResult = \"\";\n //$criteria .= ($strDataCompany == \"\") ? \"\" : \"AND management_code LIKE '%\". printCompanyCode($strDataCompany).\"%'\";\n if (!$listonly) {\n $strResult .= \"<select id=\\\"$varname\\\" name=\\\"$varname\\\" class=\\\"form-control select2\\\" $action>\\n\";\n $strResult .= \"<option value=''></option>\";\n }\n $strResult .= $extra;\n $strSQL = \"SELECT competency FROM hrd_training_type WHERE 1=1 $criteria GROUP BY competency ORDER by competency asc\";\n $resDb = $db->execute($strSQL);\n while ($rowDb = $db->fetchrow($resDb)) {\n $strCode = $rowDb['competency'];\n $strName = $rowDb['competency'];\n ($strCode == $default) ? $strSelect = \"selected\" : $strSelect = \"\";\n $strResult .= \"<option value=\\\"$strCode\\\" $strSelect>$strName</option>\\n\";\n }\n if (!$listonly) {\n $strResult .= \"</select>\\n\";\n }\n return $strResult;\n}", "title": "" }, { "docid": "93c60d8a3cbc7c9e6188426c82614946", "score": "0.54387105", "text": "function list_drop_menu_security_services_audit_result($pre_selected_items='', $order_clause='') {\n\n\tif ($order_clause) {\n\t\t$order_clause = \" ORDER BY \".$order_clause.\"\";\n\t}\n\n\t# MUST EDIT\n\t$sql = \"SELECT * FROM security_services_audit_result_tbl WHERE security_services_audit_result_disabled = \\\"0\\\"\".$order_clause.\"\";\n\t$results = runQuery($sql);\n\n\tforeach($results as $results_item) {\n\t\tif (is_array($pre_selected_items)) { \n\t\t\t$match = NULL;\n\t\t\tforeach($pre_selected_items as $preselected) {\n\t\t\t\t# MUST EDIT\n\t\t\t\tif ($results_item[security_services_audit_result_id] == $preselected) {\n\t\t\t\t\techo \"<option selected=\\\"selected\\\" value=\\\"$results_item[security_services_audit_result_id]\\\">$results_item[security_services_audit_result_name]</option>\\n\";\n\t\t\t\t\t$match = 1;\n\t\t\t\t} \n\t\t\t}\n\n\t\t\t# MUST EDIT\n\t\t\tif (!$match) { \n\t\t\t\techo \"<option value=\\\"$results_item[security_services_audit_result_id]\\\">$results_item[security_services_audit_result_name]</option>\\n\"; \n\t\t\t}\n\n\t\t} elseif ($pre_selected_items) {\n\t\t\t$match = NULL;\n\t\t\t# MUST EDIT\n\t\t\tif ($results_item[security_services_audit_result_id] == $pre_selected_items) {\n\t\t\t\techo \"<option selected=\\\"selected\\\" value=\\\"$results_item[security_services_audit_result_id]\\\">$results_item[security_services_audit_result_name]</option>\\n\";\n\t\t\t\t$match = 1;\n\t\t\t} \n\n\t\t\t# MUST EDIT\n\t\t\tif (!$match) { \n\t\t\t\techo \"<option value=\\\"$results_item[security_services_audit_result_id]\\\">$results_item[security_services_audit_result_name]</option>\\n\"; \n\t\t\t}\n\t\t} else {\n\t\t\t# MUST EDIT\n\t\t\techo \"<option value=\\\"$results_item[security_services_audit_result_id]\\\">$results_item[security_services_audit_result_name]</option>\\n\"; \n\t\t}\n\t}\n\n}", "title": "" }, { "docid": "b258ae9185650fb455b8c06ca04b4ab5", "score": "0.5430933", "text": "function SelectList(Selectable $selectable)\n {\n return parent::CreateSelectList($selectable);\n }", "title": "" }, { "docid": "b94a33f1ea5cbd801bde3368fc76a615", "score": "0.54285437", "text": "public function drop_down_menu_facility_list()\n{\ninclude 'db_connection.php';\n\n\n$sql_facility_IDs = \"SELECT * FROM `\".$db.\"`.`schedule_facility` Order by ID\";\n$result_facility_IDs = $link->query($sql_facility_IDs);\n\n$menu = \"\";\nwhile ($row = $result_facility_IDs->fetch_assoc())\n{\n$menu = $menu . '<option value=\"'.$row['ID'].'\">'.$row['name'].'</option>';\n}\n\ninclude 'db_disconnect.php';\nreturn $menu;\n}", "title": "" }, { "docid": "b3c651b39288d3384e13ab3dc06cec72", "score": "0.5423341", "text": "public function getOptions()\n {\n /* Array with required fields */\n $requireds = array();\n\n $requireds[] = EcrHtmlSelect::scope($this->_scope);\n\n if( ! $this->_element)\n {\n $db = JFactory::getDBO();\n $tables = $db->getTableList();\n\n echo '<strong id=\"element_label\">'.jgettext('Table').'</strong> : ';\n echo '<select name=\"element\" id=\"table_name\" onchange=\"$(\\'element_name\\').value=$(\\'element\\').value;\">';\n echo '<option value=\"\">'.jgettext('Choose...').'</option>';\n\n $prefix = $db->getPrefix();\n\n foreach($tables as $table)\n {\n $v = str_replace($prefix, '', $table);\n echo '<option value=\"'.$v.'\">'.$v.'</option>';\n }\n\n echo '</select>';\n echo '<br />';\n }\n else\n {\n echo '<input type=\"hidden\" name=\"element\" value=\"'.$this->_element.'\" />';\n }\n\n /* Draws an input box for a name field */\n $requireds[] = EcrHtmlSelect::name($this->_element, jgettext('Table'));\n\n echo '<strong>Var Scope:</strong><br />';\n\n foreach($this->_varScopes as $vScope)\n {\n $checked =($vScope == 'var') ? ' checked=\"checked\"' : '';\n echo '<input type=\"radio\" name=\"var_scope\" value=\"'.$vScope.'\" id=\"vscope-'.$vScope.'\"'\n .$checked.'> <label for=\"vscope-'.$vScope.'\">'.$vScope.'</label><br />';\n }\n\n /*\n * Add your custom options\n * ...\n */\n\n /* Displays options for logging */\n EcrHtmlOptions::logging();\n\n /* Draws the submit button */\n EcrHtmlButton::submitParts($requireds);\n }", "title": "" }, { "docid": "cbf6803150651f67e90c5e5fea24ad2e", "score": "0.5421344", "text": "function crearSelect($campo,$nombreModulo,$tabla,$valor=0,$asis=false,$eventos=\"\",$requerido=true) {\n\t\t$this->htmlOut05 = '';\n\t\tif (!empty($campo['Relation'])) {\n $filterCompany = \"\";\n if($_SESSION['session']['usertype'] != 'superadmin'){\n $filterCompany = \" WHERE company_id = {$_SESSION['session']['company_id']}\";\n }\n \n\t\t\tif($_SESSION['config']['bd']['tipo'] == 'mysql'){\n $this->query = 'SELECT * FROM ev_'.$campo['Relation'].' '.$filterCompany.' ORDER BY 1'; //print $this->query;\n\t\t\t} \n\t\t\t//$this->result02 = $_SESSION['cmd']['_query']($this->query);\n\t\t\t$new = new BD();\n\t\t\t$this->result02 = $new->consulta($this->query);\n\t\t\t\n\t\t\t$this->htmlOut05 .= '<select name=\"'.(!$asis?$nombreModulo.'_'.$campo['Field']:$nombreModulo.'_'.$campo['Field'].']').'\" id=\"'.$nombreModulo.'_'.$campo['Field'].'\" class=\"'.$this->traerClases($campo).($requerido?' required\"':'\"').(!empty($eventos)?$eventos:\"\").'>';\n\t\t\t//if ($_SESSION['cmd']['_num_rows']($this->result02) > 0){\n\t\t\tif ($new->num_rows() > 0){\n\t\t\t\t$this->htmlOut05 .= '<option value=\"\"> :: Seleccionar ::</option>';\t\n\t\t\t}else{\n\t\t\t\t$this->htmlOut05 .= '<option value=\"\">:: No hay Reg :: </option>';\n\t\t\t}\n\t\t\t//while($this->rs02 = $_SESSION['cmd']['_fetch_row']($this->result02))\n\t\t\twhile($this->rs02 = $new->fetch_array()){\n\t\t\t\t//__imp($this->rs02);\n\t\t\t\t$select = ($this->rs02[$campo['Field']] == $valor[$campo['Field']]) ? \" selected='selected'\" : \"\";\n\t\t\t\t$this->htmlOut05 .= \"<option value='\".$this->rs02[$campo['Field']].\"'$select>\".$this->rs02[1].\"</option>\";\n\t\t\t}\n\t\t\t$this->htmlOut05 .= \"</select>\";\n\t\t}\n\t\t//$_SESSION['cmd']['_freeresult']($this->result02);\n\t\treturn $this->htmlOut05;\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "17b0c9f275ac1688fd9d71a9b4e40a84", "score": "0.54190725", "text": "public function toHtml() {\n\t\techo '<select '.$this->getAttributes().'>'.$this->renderChildren().'</select>';\n\t}", "title": "" }, { "docid": "12157b54926fc58f57ea433512bca1f1", "score": "0.54172844", "text": "function getSubDepartmentList(\n $db,\n $varname,\n $default = \"\",\n $extra = \"\",\n $criteria = \"\",\n $action = \"\",\n $listonly = false\n) {\n global $strDataCompany;\n $strResult = \"\";\n $criteria .= ($strDataCompany == \"\") ? \"\" : \"AND management_code LIKE '%\" . printCompanyCode(\n $strDataCompany\n ) . \"%'\";\n if (!$listonly) {\n $strResult .= \"<select id=\\\"$varname\\\" name=\\\"$varname\\\" class=\\\"form-control select2\\\" $action>\\n\";\n }\n $strResult .= $extra;\n $strSQL = \"SELECT * FROM hrd_sub_department WHERE 1=1 $criteria ORDER BY department_code, sub_department_code \";\n $resDb = $db->execute($strSQL);\n while ($rowDb = $db->fetchrow($resDb)) {\n $strCode = $rowDb['sub_department_code'];\n $strName = $rowDb['sub_department_name'];\n ($strCode == $default) ? $strSelect = \"selected\" : $strSelect = \"\";\n $strResult .= \"<option value=\\\"$strCode\\\" $strSelect>$strCode - $strName</option>\\n\";\n }\n if (!$listonly) {\n $strResult .= \"</select>\\n\";\n }\n return $strResult;\n}", "title": "" }, { "docid": "bf3e3ae3c365263d15ffec3cc6e3119e", "score": "0.5408889", "text": "protected function makeSelect($mode = 1) {\r\n\t\tif($mode == 1) {\r\n\t\t\t//if($this->defaultSelect) {\r\n\t\t\t\t//$select = clone $this->defaultSelect;\r\n\t\t\t\t//$where = $this->defaultSelect->getPart('where');\r\n\t\t\t\t$defaultSelect = $this->getDefaultSelect();\r\n\t\t\t\t$select = clone $defaultSelect;\r\n\t\t\t\t$where = $defaultSelect->getPart('where');\r\n\t\t\t\tif($where) {\r\n\t\t\t\t\t$whereStr = \"\";\r\n\t\t\t\t\tforeach($where as $w) {\r\n\t\t\t\t\t\t$whereStr .= $w . \" \";\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif($whereStr) {\r\n\t\t\t\t\t\t$select->reset(\"where\");\r\n\t\t\t\t\t\t$select->where($whereStr);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t//} else {\r\n\t\t\t//\t$select = $this->select();\r\n\t\t\t//}\r\n\t\t\tif($this->_referenceMap) {\r\n\t\t\t\t$select->setIntegrityCheck(false);\r\n\t\t\t\t$select->from($this);\r\n\r\n\t\t\t\t// join associated tables\r\n\t\t\t\tforeach($this->_referenceMap as $key => $map) {\r\n\t\t\t\t\tif(isset($map['columns']) && isset($map['refTable']) && isset($map['refColumns']) && isset($map['joinColumns'])) {\r\n\t\t\t\t\t\t$name = array($key => $map['refTable']);\r\n\t\t\t\t\t\t$cond = \"{$this->_name}.{$map['columns'][0]} = {$key}.{$map['refColumns'][0]}\";\r\n\t\t\t\t\t\t$select->joinLeft($name, $cond, $map['joinColumns']);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\r\n\t\t} else if($mode == 2) {\r\n\t\t\t$defaultSelect = $this->getDefaultSelect();\r\n\t\t\t$select = $this->select();\r\n\t\t\tif($defaultSelect) {\r\n\t\t\t\t$where = $defaultSelect->getPart('where');\r\n\t\t\t\t$whereStr = \"\";\r\n\t\t\t\tforeach($where as $w) {\r\n\t\t\t\t\t$whereStr .= $w;\r\n\t\t\t\t}\r\n\t\t\t\tif($whereStr) {\r\n\t\t\t\t\t$select->reset(\"where\");\r\n\t\t\t\t\t$select->where($whereStr);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$select = $this->select();\r\n\t\t}\r\n\t\treturn $select;\r\n\t}", "title": "" }, { "docid": "d21417c39fb2f8ea658589fa4cf16147", "score": "0.54064983", "text": "public function fields() {\n\n\t\treturn array(\n\t\t\tarray(\n\t\t\t\t'label' => esc_html__( 'Membership Level', 'svbk-rcp-countdown' ),\n\t\t\t\t'attr' => 'membership_level',\n\t\t\t\t'type' => 'select',\n\t\t\t\t'options' => wp_list_pluck( rcp_get_subscription_levels( 'active' ), 'name', 'id' ),\n\t\t\t),\n\t\t);\n\t}", "title": "" }, { "docid": "b65ca211798bef6297d1a20a341579be", "score": "0.5403026", "text": "function createSelect($elType,$elName,$valuArray,$dbArray,$lblArray,$char=',')\n{\nif(!is_array($valuArray)){$valuArray = explode($char,$valuArray);}//if not array, blow it up!\t\nif(!is_array($dbArray)){$dbArray = explode($char,$dbArray);} //db values\nif(!is_array($lblArray)){$lblArray = explode($char,$lblArray);} //labels identify\n\t\n$x = 0; $y = 0; $sel = \"\";//init stuff\n switch($elType)\n {\n case \"radio\":\n case \"checkbox\":\n for($x=0;$x<count($valuArray);$x++)\n {\n for($y=0;$y<count($dbArray);$y++)\n {\n if($valuArray[$x]==$dbArray[$y])\n {\n $sel = \" checked=\\\"checked\\\"\";\n }\n }//y for\n print \"<input type=\\\"\" . $elType . \"\\\" name=\\\"\" . $elName . \"\\\" value=\\\"\" . $valuArray[$x] . \"\\\"\" . $sel . \">\" . $lblArray[$x] . \"<br>\\n\";\n\t\t $sel = \"\";\n }//x for\n break;\n case \"select\":\n\tprint \"<select name=\\\"\" . $elName . \"\\\">\";\n for($x=0;$x<count($valuArray);$x++)\n {\n for($y=0;$y<count($dbArray);$y++)\n {\n if($valuArray[$x]==$dbArray[$y])\n {\n $sel = \" selected=\\\"selected\\\"\";\n }\n }//y for\n print \"<option value=\\\"\" . $valuArray[$x] . \"\\\"\" . $sel . \">\" . $lblArray[$x] . \"</option>\\n\";\n\t $sel = \"\";\n }//x for\n print \"</select>\";\n break;\n }\n}", "title": "" }, { "docid": "53eaa5fbf17e61e4fe97acb3b7a07e83", "score": "0.540197", "text": "function selectOptions($rules='ALL') {\n\t\t$html=\"\";\n\t\tforeach($this->validations as $name => $valarray) {\n\t\t\t$html.=\"<option value=\\\"$name\\\">\".$valarray[1].\"</option>\\n\";\n\t\t}\n\t\treturn $html;\n\t}", "title": "" }, { "docid": "1826056bc8db744facbf3cbdcb74baf2", "score": "0.53994346", "text": "function buildMenu(){\n\t\t$this->cObj = t3lib_div::makeInstance(\"tslib_cObj\");\n\t\t$this->pageSelect = t3lib_div::makeInstance(\"t3lib_pageSelect\");\t\n\t\t$this->pageId = $GLOBALS['TSFE']->id;\n\t\t$this->record = 'id_'.substr($GLOBALS['TSFE']->currentRecord,strpos($GLOBALS['TSFE']->currentRecord,':')+1,strlen($GLOBALS['TSFE']->currentRecord)).'_';\n\n \t\t/*\n\t\t* Get Global variables\n\t\t*/\n\t\t$piFlexForm = $GLOBALS['txMenuPiFlexForm'];\n\t\tforeach ($piFlexForm['data'] as $sheet => $data )\n\t\t\tforeach ( $data as $lang => $value )\n \t\t\t\tforeach ( $value as $key => $val )\n \t\t\t\t$this->lConf[$key] = $this->pi_getFFvalue($piFlexForm, $key, $sheet);\n\n\t\t// initialize funtions\n\t\t$outPut .= $this->setVars();\t\n\t\t$outPut .= $this->loadStylesheet();\n\t\t$outPut .= $this->loadJavascript();\n\t\t$outPutStart= $this->startDisplay();\n\t\t$outPutList = $this->buildList();\n\t\tif($this->preload)\n\t\t\t$outPutPreload = '<script type=\"text/javascript\">'.\"\\n\".$this->preload.\"\\n\".'</script>'.\"\\n\";\n\t\t$outPutEnd = $this->endDisplay();\n\t\treturn $outPut.$outPutPreload.$outPutStart.$outPutList.$outPutEnd;\n\t}", "title": "" }, { "docid": "a3bf0b68950b3ff53d835296d3383ea5", "score": "0.5397829", "text": "public function printCreateForm($title,$AddAccess,$errors,$Levels,$Menus,$Perms) {\r\n print \"<h2>\".htmlentities($title).\"</h2>\";\r\n if ($AddAccess){\r\n $this->print_ValistationErrors($errors);\r\n echo \"<form class=\\\"form-horizontal\\\" action=\\\"\\\" method=\\\"post\\\">\";\r\n echo \"<div class=\\\"form-group\\\">\";\r\n echo \"<label class=\\\"control-label\\\">Level <span style=\\\"color:red;\\\">*</span></label>\";\r\n echo \"<select name=\\\"Level\\\" class=\\\"form-control\\\">\";\r\n echo \"<option value=\\\"\\\"></option>\";\r\n if (empty($_POST[\"Level\"])){\r\n foreach ($Levels as $level){\r\n echo \"<option value=\\\"\".$level[\"Level\"].\"\\\">\".$level[\"Level\"].\"</option>\";\r\n }\r\n } else {\r\n foreach ($Levels as $level){\r\n if ($_POST[\"Level\"] == $level[\"Level\"]){\r\n echo \"<option value=\\\"\".$level[\"Level\"].\"\\\" selected>\".$level[\"Level\"].\"</option>\";\r\n }else{\r\n echo \"<option value=\\\"\".$level[\"Level\"].\"\\\">\".$level[\"Level\"].\"</option>\";\r\n }\r\n }\r\n }\r\n echo \"</select>\";\r\n echo \"</div>\";\r\n echo \"<div class=\\\"form-group\\\">\";\r\n echo \"<label class=\\\"control-label\\\">Menu <span style=\\\"color:red;\\\">*</span></label>\";\r\n echo \"<select name=\\\"menu\\\" class=\\\"form-control\\\">\";\r\n echo \"<option value=\\\"\\\"></option>\";\r\n if (empty($_POST[\"menu\"])){\r\n foreach ($Menus as $type){\r\n echo \"<option value=\\\"\".$type[\"Menu_id\"].\"\\\">\".$type[\"label\"].\"</option>\";\r\n }\r\n } else {\r\n foreach ($Menus as $type){\r\n if ($_POST[\"menu\"] == $type[\"Menu_id\"]){\r\n echo \"<option value=\\\"\".$type[\"Menu_id\"].\"\\\" selected>\".$type[\"label\"].\"</option>\";\r\n }else{\r\n echo \"<option value=\\\"\".$type[\"Menu_id\"].\"\\\">\".$type[\"label\"].\"</option>\";\r\n }\r\n }\r\n }\r\n echo \"</select>\";\r\n \techo \"</div>\";\r\n \techo \"<div class=\\\"form-group\\\">\";\r\n \techo \"<label class=\\\"fomr-control-label\\\">Permission <span style=\\\"color:red;\\\">*</span></label><br>\";\r\n echo \"<select name=\\\"permission\\\" class=\\\"form-control\\\">\";\r\n echo \"<option value=\\\"\\\"></option>\";\r\n if (empty($_POST[\"permission\"])){\r\n foreach ($Perms as $perm){\r\n echo \"<option value=\\\"\".$perm[\"perm_id\"].\"\\\">\".$perm[\"permission\"].\"</option>\";\r\n }\r\n } else {\r\n foreach ($Perms as $perm){\r\n if ($_POST[\"permission\"] == $perm[\"perm_id\"]){\r\n echo \"<option value=\\\"\".$perm[\"perm_id\"].\"\\\" selected>\".$perm[\"permission\"].\"</option>\";\r\n }else{\r\n echo \"<option value=\\\"\".$perm[\"perm_id\"].\"\\\">\".$perm[\"permission\"].\"</option>\";\r\n }\r\n }\r\n }\r\n echo \"</select>\";\r\n echo \"</div>\";\r\n echo \"<input type=\\\"hidden\\\" name=\\\"form-submitted\\\" value=\\\"1\\\" /><br>\";\r\n echo \"<div class=\\\"form-actions\\\">\";\r\n echo \"<button type=\\\"submit\\\" class=\\\"btn btn-success\\\">Create</button>\";\r\n echo \"<a class=\\\"btn\\\" href=\\\"Permission.php\\\">\".self::$BackIcon.\" Back</a>\";\r\n echo \"</div>\";\r\n echo \"<div class=\\\"form-group\\\">\";\r\n echo \"<span class=\\\"text-muted\\\"><em><span style=\\\"color:red;\\\">*</span> Indicates required field</em></span>\";\r\n echo \"</div>\";\r\n echo \"</form>\";\r\n } else {\r\n $this->print_error(\"Application error\", \"You do not access to this page\");\r\n }\r\n }", "title": "" } ]
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "340981c5ccc1471696aaea6488ecf4a0", "score": "0.0", "text": "public function index($store_id)\n {\n $employees = Employee::where('store_id', $store_id)->orderBy('created_at', 'DESC')->get();\n return view('employee.showAll', compact('employees', 'store_id'));\n }", "title": "" } ]
[ { "docid": "d37ee75c4feac8dcd7712d902a70bf82", "score": "0.7607344", "text": "public function listAction()\n {\n \t/**\n \t * @todo return a paginated and ordered list, selecting only valid elements (move valid clause to rowset)\n \t */\n \t$this->view->resources = $this->_table->fetchAll(null, null, 15);\n }", "title": "" }, { "docid": "de80270cda7dc6348112d1542c1c3b6a", "score": "0.7491118", "text": "public function listingAction() {\r\n\r\n\t\t// Search Params\r\n\r\n\t\t// Do the show thingy\r\n\t\t\t// Get an array of friend ids\r\n\t\t\t// Get stuff\r\n\t\t\t// unset($values['show']);\r\n\r\n\t\t// Get blog paginator\r\n\r\n\t\t// Render\r\n\t\t$this -> _helper -> content -> setNoRender() -> setEnabled();\r\n\t}", "title": "" }, { "docid": "7a3b535f1a43231cd882da50772ec5ee", "score": "0.74615455", "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', []);\n $filter = $this->Request()->getParam('filter', []);\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign(['success' => true, 'data' => $result]);\n }", "title": "" }, { "docid": "8e2e0cd6669d378062a560c70954d431", "score": "0.74168706", "text": "public function indexAction(): void\n {\n $limit = (int) $this->Request()->getParam('limit', 1000);\n $offset = (int) $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', []);\n $filter = $this->Request()->getParam('filter', []);\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": "c11d55ce36b9b6bf39c0094bfe5d0fd7", "score": "0.7369403", "text": "protected function listAction()\n {\n $this->dispatch(EasyAdminEvents::PRE_LIST);\n\n $fields = $this->entity['list']['fields'];\n $paginator = $this->findAll($this->entity['class'], $this->request->query->get('page', 1), $this->config['list']['max_results'], $this->request->query->get('sortField'), $this->request->query->get('sortDirection'));\n\n //add url parameter as hidden input in the search form\n $urlParameters = $this->getUrlParameters('search');\n $this->request->request->set('extraParameters', $urlParameters);\n\n $this->dispatch(EasyAdminEvents::POST_LIST, array('paginator' => $paginator));\n\n if (method_exists($this, $customMethodName = 'create'.$this->entity['name'].'SearchForm')) {\n $searchForm = $this->{$customMethodName}();\n } else {\n $searchForm = $this->createSearchForm();\n }\n\n return $this->render($this->entity['templates']['list'], array(\n 'paginator' => $paginator,\n 'fields' => $fields,\n 'searchForm' => $searchForm->createView(),\n 'delete_form_template' => $this->createDeleteForm($this->entity['name'], '__id__')->createView(),\n ));\n }", "title": "" }, { "docid": "e008dc293c8e1bdcbf38634c0f67a5d1", "score": "0.7354826", "text": "public function listAction() {\r\n\t\t// Preload info\r\n\r\n\r\n\t\t// Search Params\r\n\r\n\r\n\t\t// Get paginator\r\n\t\t// Render\r\n\t\t$this -> _helper -> content -> setNoRender() -> setEnabled();\r\n\t}", "title": "" }, { "docid": "e508f26cee6b6110b5e315b37bf01715", "score": "0.73057467", "text": "public function actionList()\n {\n $entity = $this->getEntity();\n if (!$entity->canList()) {\n $this->setEntityFlash('error', 'Unable to list {name}.');\n $this->redirectParent();\n }\n $this->render('list', array(\n 'entity' => $entity,\n ));\n }", "title": "" }, { "docid": "109b33b70bf69a93460d062b2f83502f", "score": "0.7226076", "text": "public function index()\n {\n $resources = $this->objStoreResource->getAllResource(auth()->id());\n return view('home.resource.index',compact('resources'));\n }", "title": "" }, { "docid": "68f3dc8f909d1dfb5a37b582d41cec68", "score": "0.719963", "text": "public function index()\n {\n\n extract($this->getResourceNames());\n\n $items = $modelPath::sortable()->paginate();\n \n\n\n return $this->compileView($resourceMultiple . '.index', [$resourceMultiple => $items]);\n }", "title": "" }, { "docid": "97f3caf6ecee75a55fbfadca2b98a829", "score": "0.7182086", "text": "protected function index()\n {\n $categories = Listing::paginate(10);\n return ListingResource::collection($categories);\n }", "title": "" }, { "docid": "d7820004a578ddc16d57dff08d715ef0", "score": "0.713195", "text": "public function showResource()\n\t{\n\t\treturn view('resources.list')->with('resources', Resources::all());\n\t}", "title": "" }, { "docid": "9ee2301bbe5ddd99bc48b5c1f13682d6", "score": "0.7125178", "text": "public static function list()\n {\n $books = Book::findAll();\n\n // 2. Return/include de la view\n include(__DIR__ . '/../views/books/list.php');\n }", "title": "" }, { "docid": "db3decb51890b80d45fe4f716c97523a", "score": "0.71218187", "text": "public function list() {\n\t\t$this->protectIt( 'read' ); \n\t\tsetTitle( 'Listagem' );\n\t\t\n\t\t// Carrega o grid\n\t\tview( 'grid/grid' );\n\t}", "title": "" }, { "docid": "7a45345cbd9a9dd304c36c4a494e5375", "score": "0.71166694", "text": "public function index()\n {\n return $this->response->paginator(\n $this->filterQuery()->orderBy('id', 'desc')->paginate(request('limit', 10)),\n $this->transformer,\n ['key' => $this->resource_key]\n );\n }", "title": "" }, { "docid": "7ca504ed4a4a2ab91d9d42ce768fbca1", "score": "0.7111673", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $resources = $em->getRepository('AppBundle:Resource')->findAll();\n\n return $this->render('resource/index.html.twig', array(\n 'resources' => $resources,\n ));\n }", "title": "" }, { "docid": "260bd7b6f859caf980dd2ec389de158f", "score": "0.70988476", "text": "public function listAction()\n {\n $this->users->denyAccessToPage('admin');\n \n $all = $this->users->findAll();\n $status = $this->users->IsAuthenticated();\n \n $this->theme->setTitle(\"Visa alla användare\");\n $this->views->add('users/list-all', [\n 'users' => $all,\n 'title' => \"Visa alla användare\",\n 'status' => $status,\n ], 'main');\n \n $this->views->add('users/users-sidebar', [], 'rsidebar');\n }", "title": "" }, { "docid": "3ff8464571003af8b9340bbfec1e3e20", "score": "0.7088415", "text": "public static function listing()\n {\n echo new \\UMS\\Views\\Standard('listing.phtml');\n }", "title": "" }, { "docid": "24716f78fa1798ecee7344c0553e427b", "score": "0.70843154", "text": "protected function listAction()\n {\n $this->dispatch(EasyAdminEvents::PRE_LIST);\n\n $fields = $this->entity['list']['fields'];\n $paginator = $this->findAll($this->entity['class'], $this->request->query->get('page', 1), $this->entity['list']['max_results'], $this->request->query->get('sortField'), $this->request->query->get('sortDirection'), $this->entity['list']['dql_filter']);\n\n $this->dispatch(EasyAdminEvents::POST_LIST, array('paginator' => $paginator));\n\n $parameters = array(\n 'paginator' => $paginator,\n 'fields' => $fields,\n 'delete_form_template' => $this->createDeleteForm($this->entity['name'], '__id__')->createView(),\n );\n\n return $this->render('@VortexginWebBundle/EasyAdmin/list.html.twig', $parameters); \n }", "title": "" }, { "docid": "f882d8455ca2c120342f2b2b1a1c2565", "score": "0.70281464", "text": "public function index()\n {\n $resources = DB::table('admin_resource')\n ->get()\n ->toArray();\n return view('admin.resource.index',compact('resources'));\n }", "title": "" }, { "docid": "ceecc69a5c7cd4cd8ab66be42cbae5ba", "score": "0.6991042", "text": "public function index()\n {\n $this->crud->hasAccessOrFail('list');\n\n $this->data['crud'] = $this->crud;\n $this->data['title'] = ucfirst($this->crud->entity_name_plural);\n\n // get all entries if AJAX is not enabled\n if (! $this->data['crud']->ajaxTable()) {\n $this->data['entries'] = $this->data['crud']->getEntries();\n }\n\n // load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package\n return view($this->crud->getListView(), $this->data);\n\t\t//return view('bcrud::list', $this->data);\n }", "title": "" }, { "docid": "a7c37722ff451d4806db867c3084436e", "score": "0.6983112", "text": "public function listing() {\r\n\r\n\t\t// Get the list of incidents from the database\r\n\t\t$incidents = $this->incident_model->list_all();\r\n\r\n\t\t// Prepare the data for the page\r\n\t\t$data = array(\r\n\t\t\t\t'title' => 'Listing of Incidents',\r\n\t\t\t\t'view' => 'incident/list',\r\n\t\t\t\t'incident_listing' => $this->incident_model->list_all()\r\n\t\t\t);\r\n\r\n\t\t// Load the view\r\n\t\t$this->load->view('main_template', $data);\r\n\r\n\t}", "title": "" }, { "docid": "36e3954f88638a9532a787d2cc444a30", "score": "0.6979115", "text": "function listAction() {\n $existing_api = _factory('sitemin_api_model_api')->get_gateway();\n $rs['api'] = $existing_api;\n $rs['_token'] = defaultHelper::page_hash_set('api,list');\n $rs['tpl'] = '/sitemin/api/view/_api_list.phtml';\n $rs['TITLE'] = 'API LIST';\n return array('view' => '/sitemin/view/index.phtml', 'data' => array('rs' => $rs));\n }", "title": "" }, { "docid": "970e35836b9768276ac32a7f819d569f", "score": "0.6969622", "text": "public function index()\n {\n return \"Here is the listing page.\";\n }", "title": "" }, { "docid": "e04c1be5ce440db436266eabe923599a", "score": "0.6958369", "text": "public function index() {\n\t\tSession::set(\"list_refer\", $_SERVER['REQUEST_URI']);\n\t\t$this->set_order();\n\t\t$this->display_action_name = 'List Items';\n\t\t$this->all_rows = $this->model->tree();\n\n\t\tif(!$this->all_rows) $this->all_rows = array();\n\t\t$this->filter_block_partial = $this->render_partial(\"filter_block\");\n\t\t$this->list = $this->render_partial(\"list\");\n\t}", "title": "" }, { "docid": "a4e3ca4a3d5bf61db50faf86a8841ea7", "score": "0.6958334", "text": "public function index()\n {\n return view('admin::resource.index');\n }", "title": "" }, { "docid": "61e25f17bfcad7555516a67f6d445d1a", "score": "0.6940597", "text": "public function indexAction()\n {\n $this->listentriesAction();\n }", "title": "" }, { "docid": "7f07ef0085f42180361c2986a0c246bc", "score": "0.6919749", "text": "public function index () {\n\t\t$this->showAll();\n\t}", "title": "" }, { "docid": "aa6c01f133b8fa50888c5287d810e174", "score": "0.69041467", "text": "public static function list() {\n $books = Book::findAll();\n\n // 2. Return/include de la view\n include( __DIR__ . '/../views/books/list.php');\n\n }", "title": "" }, { "docid": "cdbe57e5f68037a7d673227250684866", "score": "0.68880165", "text": "public function index()\n {\n return SpecializationResource::collection(Spec::paginate(10));\n }", "title": "" }, { "docid": "ce119cc9f5dd3ee1904e1fd10c2e5f4f", "score": "0.68733615", "text": "public function _list()\n\t{\n\t\t_root::getRequest()->setAction('list');\n\n\t\t$oAwardModel = new model_award();\n\t\t$tAwards = $oAwardModel->findAll();\n\n\t\t$oView = new _view('awards::list');\n\t\t$oView->tAwards = $tAwards;\n\n\t\t$this->oLayout->add('work', $oView);\n\t}", "title": "" }, { "docid": "5cbfcb7b405ab167a69ee36809e4e4c6", "score": "0.687026", "text": "public function index()\n {\n // Get items\n // $items = Item::orderBy('type', 'asc')->paginate(5);\n $items = Item::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of items as a resource\n return (ItemResource::collection($items))->response()->setStatusCode(200);\n }", "title": "" }, { "docid": "3880db888810873a15926adf0aeab153", "score": "0.68675166", "text": "public function action_list()\n {\n $model = Request::$current->param('model');\n $this->template->main->content = Model_Annex_Content::show_list($model);\n }", "title": "" }, { "docid": "0c8e64e28536e6fe176ead46e1742dc1", "score": "0.6852622", "text": "public function list()\n\t{\n\t\tglobal $venus;\n\t\t$this->prepare_items();\n\n\t\t$venus->plugins->run($this->prefix . 'list', $this);\n\t}", "title": "" }, { "docid": "fdd2aa08ee39ff613dfb2d2d853d735e", "score": "0.683835", "text": "public function index()\n {\n $this->checkPermission('shg_management_view');\n try {\n $data = $this->service->viewAllPartOne();\n $data = ShgListingResource::collection($data);\n\n return $this->respondWithSuccess($data);\n } catch (\\Throwable $th) {\n\n return $this->respondWithError($th);\n }\n }", "title": "" }, { "docid": "e5f507dbbe2411d3908a15f2210bc3ea", "score": "0.6836425", "text": "public function listAction() {\n $this->view->books = R::getAll('SELECT * FROM book WHERE title = :title', [':title' => 'Nodejs']);\n\n $this->render('list');\n }", "title": "" }, { "docid": "f29709817ec3db2d44ad77fdc0a55269", "score": "0.6829548", "text": "public function _index()\n\t{\n\t\t$this->_list();\n\t}", "title": "" }, { "docid": "4b8e52b6fdf81afdda958487f24d56b3", "score": "0.68279797", "text": "public function listAction()\n {\n $catalog = $this->container->get('catalog');\n\n $book_list = $catalog->listBooks();\n\n return [\n 'list' => $book_list,\n ];\n }", "title": "" }, { "docid": "0745910a7b8ed31535e75cefd27b7b8c", "score": "0.6801322", "text": "public function showAllAction()\n {\n //find all recipes in database\n $recipes = $this->getDoctrine()->getRepository('AppBundle:Recipe')->findAll();\n\n // show all recipes as links(it is set in Twig)\n return ['recipes' => $recipes];\n }", "title": "" }, { "docid": "41b8938878fc471b8e628e34cd112379", "score": "0.68005955", "text": "public function index(): ListResourceCollection\n {\n return new ListResourceCollection(TodoList::paginate(10));\n }", "title": "" }, { "docid": "d3a3617a0e0a9e2771655b1532f470c2", "score": "0.6792327", "text": "public function index()\n\t{\n\t\treturn BookResource::collection(Book::paginate(10));\n\t\t\n\t}", "title": "" }, { "docid": "6040a050b581e9888004ec972d7e09a0", "score": "0.6788249", "text": "public function listentriesAction()\n {\n // use app/MyFirstBlog/_templates/list.phtml for viewing\n $viewAllEntries = new View('list.phtml');\n $entries = $this->em->entry->getAll();\n\n // assign data to the template\n $viewAllEntries->assign('entries', $entries);\n\n echo $this->loadMainView($viewAllEntries);\n }", "title": "" }, { "docid": "8a85663335231f3143dcbf588b19dbfa", "score": "0.67871946", "text": "public function index()\n {\n $substances = $this->model->paginate();\n return $this->getView(__FUNCTION__ , compact('substances'));\n }", "title": "" }, { "docid": "1d602c01714319f06611ab4c66abd251", "score": "0.6786255", "text": "public function index()\n {\n //Retrieve all podcasts, ordered in descending order by their id value\n $podcasts = Podcast::orderBy('id', 'desc')->paginate(15);\n //Return the list of podcasts as a collection of PodcastResource instances\n return PodcastResource::collection($podcasts);\n }", "title": "" }, { "docid": "49c1d78d94eec140cbd39c5a0665f7cf", "score": "0.67806053", "text": "public function index()\n {\n // Get modules\n $modules = Module::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of modules as a resource\n return ModuleResource::collection($modules);\n }", "title": "" }, { "docid": "b8bbd5c4b2b076654ec4820cf0f4f302", "score": "0.67777556", "text": "public function index()\n {\n return ResponseHelper::findSuccess(\n 'Items',\n ItemResource::collection(Item::all())\n );\n }", "title": "" }, { "docid": "d73771ef09d730c6579f2a991515d849", "score": "0.67710793", "text": "public function index()\n {\n $loans = Loan::paginate();\n return LoanResource::collection($loans);\n }", "title": "" }, { "docid": "cdf88fbb286dc19c1ad1e099d34c24cd", "score": "0.67550325", "text": "public function indexAction() {\n $this->view->headTitle('List Student');\n\n $currentPageNumber = $this->getParam(\"page\", 1);\n $itemPerPage = $this->getParam(\"size\", 3);\n\n $paginator = $this->__factoryPaginator($currentPageNumber, $itemPerPage);\n $this->view->listStudents = $paginator;\n }", "title": "" }, { "docid": "a558183236ee0a06301b5345bfbe3fe1", "score": "0.67493373", "text": "public function index()\n {\n $companies = Company::paginate();\n\n return $this->resp->ok(eRespCode::C_LISTED_200_00, new CompaniesPaginationResourceCollection($companies));\n }", "title": "" }, { "docid": "79a7d6352cec8f118d68b28508fa7a97", "score": "0.6742735", "text": "public function index()\n {\n $lists = user()->lists()->get();\n\n return ListResource::collection($lists);\n }", "title": "" }, { "docid": "5f95d2756a5e123a83fb7c11ebb43128", "score": "0.6726971", "text": "public function showList()\n\t{\n\t\tinclude(\"/m23/inc/i18n/\".$GLOBALS[\"m23_language\"].\"/m23base.php\");\n\t\tHTML_showTableHeading($I18N_objectStorageObjectName, $I18N_description, $I18N_status/*, $I18N_action*/);\n\t\tforeach ($this->foundObjects as $object)\n\t\t\tHTML_showTableRow($this->getCOSName($object), $this->getCOSDescription($object), $this->getCOSStatusHumanReadable($object)/*, $this->getCOSStatus($object)*/);\n\t}", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67116815", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67116815", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "a69ac66edc8a557759a001c94242c947", "score": "0.6707937", "text": "function list() {\n global $app;\n $sth = $this->PDO->prepare(\"SELECT * FROM person\");\n $sth->execute();\n $result = $sth->fetchAll(\\PDO::FETCH_ASSOC);\n $app->render('default.php', [\"data\" => $result], 200);\n }", "title": "" }, { "docid": "7199baaacb728985be1992dbc56397e3", "score": "0.6706126", "text": "public function getIndex()\r\n { \r\n $response = $this->modelService->getAll();\r\n\r\n //return resources listing view\r\n return view(\\OogleeUConfig::get('config.user_index.index'), compact('response'));\r\n }", "title": "" }, { "docid": "61a33e299a8771fe4e3edd28a88e59b8", "score": "0.6694361", "text": "public function index()\n {\n $studentRecords = $this->studentRepository->getAllStudentRecords();\n return StudentResource::collection($studentRecords);\n }", "title": "" }, { "docid": "d79dbba2d57614ef830362a19c63a970", "score": "0.66864055", "text": "public function index()\n {\n return $this->view('list', [\n 'elements' => $this->service->index()\n ]);\n }", "title": "" }, { "docid": "f87e4c930a716211a968b3d9cc7f28cb", "score": "0.6679537", "text": "public function listAction()\n {\n $data = array(\n 'red',\n 'green',\n 'blue',\n 'yellow'\n );\n\n $request = $this->getRequest();\n $acceptHeader = $request->getHeader('Accept');\n\n $this->view->assign(\n array(\n 'data' => $data\n )\n );\n }", "title": "" }, { "docid": "daba699beaeef91359ed7b10313414c0", "score": "0.6675206", "text": "public function index()\n {\n $this->checkPermission(\"admin_permission_management\");\n $items = $this->service->getAll();\n\n $items = ApiResource::collection($items);\n\n return $this->respondWithSuccess($items);\n }", "title": "" }, { "docid": "5278e85997fa12c693ce5b7a9a5f2e24", "score": "0.6659221", "text": "public function index() {\n\t\treturn ClientResource::collection(Client::paginate(15));\n\t}", "title": "" }, { "docid": "601280f6c7a8fe1284080c1c22a3e447", "score": "0.6654493", "text": "public function index()\n {\n // Get Accounts\n $accounts = Account::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of Accounts as a resource\n return AccountResource::collection($accounts);\n }", "title": "" }, { "docid": "aa14178a7d612bc110499d18b35cfe1c", "score": "0.6653656", "text": "public function index()\n {\n return TodoResource::collection($this->todoRepository->findAll());\n }", "title": "" }, { "docid": "da0cc4a612f27e870e1a151346a2b1e3", "score": "0.66501856", "text": "public function index()\n {\n $sub_brand_details = SubBrandDetails::paginate(10);\n return SubBrandDetailsResource::collection($sub_brand_details);\n }", "title": "" }, { "docid": "d1c36ec734b04a00b0316be8705fdc95", "score": "0.6647826", "text": "public function defaultAction()\n {\n $this->listing();\n }", "title": "" }, { "docid": "d9dcf3302214d3795a06e4d23822d158", "score": "0.66456574", "text": "public function index()\n {\n $this->setDefaultData();\n $this->paginate = [\n 'contain' => ['RegisteredUsers', 'Listings'],\n 'conditions' => ['RegisteredUsers.username'\n => $this->Auth->user()['username']]\n ];\n $sellingLists = $this->paginate($this->SellingLists);\n\n $this->set(compact('sellingLists'));\n $this->set('_serialize', ['sellingLists']);\n }", "title": "" }, { "docid": "875081e376ab728c3750171aff9d42f9", "score": "0.6645129", "text": "public function index()\n {\n $items = $this->item->paginate(10);\n\n return $this->response->view('admin.item.index', [\n 'items' => $items\n ]);\n }", "title": "" }, { "docid": "e2eacd814cad9b8205ce83c08f3b5e18", "score": "0.6644318", "text": "public function showAllAction()\n {\n $title = \"Product overview\";\n $page = $this->app->page;\n $db = $this->app->db;\n\n $this->connection();\n $sql = \"SELECT * FROM product;\";\n $res = $db->executeFetchAll($sql);\n\n $data = [\n \"res\" => $res,\n \"check\" => \"check\"\n ];\n\n // $page->add(\"flash\", [], \"hej\");\n $page->add(\"products/header\");\n $page->add(\"products/show-all\", $data);\n\n return $page->render([\n \"title\" => $title,\n ]);\n }", "title": "" }, { "docid": "7ba8d3b39da88e11faeb12313b1810c2", "score": "0.6642726", "text": "public function index()\n {\n return view('pages.listing-list', [ 'listings' => Listing::all() ]);\n }", "title": "" }, { "docid": "2e266895b57f5ca532a4517799527c81", "score": "0.6637523", "text": "public function index()\n {\n $this->authorize('viewAny', Article::class);\n return ArticleResource::collection(Article::paginate(10));\n }", "title": "" }, { "docid": "c7312e7e8966df50b49658cf582ce6ec", "score": "0.66348624", "text": "public function index()\n {\n return ScreenResource::collection(Screen::orderby('created_at','desc')->paginate(10));\n }", "title": "" }, { "docid": "ddd89648877f652ca4fa01f7cfa10b0c", "score": "0.6634571", "text": "public function index()\n {\n return \\response()->json($this->listing->all());\n }", "title": "" }, { "docid": "db782cdc73caf0645a9287f4d968586b", "score": "0.66271836", "text": "public function actionList()\n {\n $dataProvider = Event::getEventsForView();\n return $this->render('list', ['listDataProvider' => $dataProvider]);\n }", "title": "" }, { "docid": "9d24fae63c3b76b647f11d2a4ee6986d", "score": "0.6619498", "text": "public function listAction() {\n $this->layout('layout/json');\n\n $sSystemKey = $_REQUEST['systemkey'];\n\n # get list label from query\n $sLang = 'en_US';\n if(isset($_REQUEST['lang'])) {\n $sLang = $_REQUEST['lang'];\n }\n\n // translating system\n $translator = new Translator();\n $aLangs = ['en_US','de_DE'];\n foreach($aLangs as $sLoadLang) {\n if(file_exists(__DIR__.'/../../../oneplace-translation/language/'.$sLoadLang.'.mo')) {\n $translator->addTranslationFile('gettext', __DIR__.'/../../../oneplace-translation/language/'.$sLang.'.mo', 'skeleton', $sLoadLang);\n }\n }\n\n $translator->setLocale($sLang);\n\n try {\n $oInstanceTbl = CoreController::$oServiceManager->get(\\OnePlace\\Instance\\Model\\InstanceTable::class);\n } catch(\\RuntimeException $e) {\n echo 'could not load instances';\n return false;\n }\n\n try {\n $oInstance = $oInstanceTbl->getSingle($sSystemKey,'instance_apikey');\n } catch(\\RuntimeException $e) {\n echo 'could not find your instance sorry';\n return false;\n }\n\n try {\n $oTag = CoreController::$aCoreTables['core-tag']->select(['tag_key'=>'category']);\n $oTag = $oTag->current();\n } catch(\\RuntimeException $e) {\n echo 'could not load tag';\n return false;\n }\n\n try {\n $oEntityTag = CoreController::$aCoreTables['core-entity-tag']->select(['tag_idfs'=>$oTag->Tag_ID,'entity_form_idfs'=>'article-single','tag_value'=>'Store Item']);\n $oEntityTag = $oEntityTag->current();\n } catch(\\RuntimeException $e) {\n echo 'could not load entity tag';\n return false;\n }\n\n try {\n $oArticleTbl = CoreController::$oServiceManager->get(\\OnePlace\\Article\\Model\\ArticleTable::class);\n $oItemsDB = $oArticleTbl->fetchAll(false,['multi_tag'=>$oEntityTag->Entitytag_ID]);\n } catch(\\RuntimeException $e) {\n echo 'could not load article';\n return false;\n }\n\n try {\n $aFields = $this->getFormFields('article-single');\n $oItemsDB = $oArticleTbl->fetchAll(false,['multi_tag'=>$oEntityTag->Entitytag_ID]);\n } catch(\\RuntimeException $e) {\n echo 'could not load article';\n return false;\n }\n\n $aItems = [];\n\n if(count($oItemsDB) > 0) {\n foreach($oItemsDB as $oItem) {\n $aPublicItem = ['id'=>$oItem->getID()];\n # add all fields to item\n foreach($aFields as $oField) {\n switch($oField->type) {\n case 'multiselect':\n # get selected\n $oTags = $oItem->getMultiSelectField($oField->fieldkey);\n $aTags = [];\n foreach($oTags as $oTag) {\n $aTags[] = ['id'=>$oTag->id,'label'=>$translator->translate($oTag->text,'skeleton',$sLang)];\n }\n $aPublicItem[$oField->fieldkey] = $aTags;\n break;\n case 'select':\n # get selected\n $oTag = $oItem->getSelectField($oField->fieldkey);\n if($oTag) {\n if (property_exists($oTag, 'tag_value')) {\n $aPublicItem[$oField->fieldkey] = ['id' => $oTag->id, 'label' => $translator->translate($oTag->tag_value,'skeleton',$sLang)];\n } else {\n $aPublicItem[$oField->fieldkey] = ['id' => $oTag->getID(), 'label' => $translator->translate($oTag->getLabel(),'skeleton',$sLang)];\n }\n }\n break;\n case 'text':\n case 'date':\n case 'textarea':\n case 'currency':\n $aPublicItem[$oField->fieldkey] = $translator->translate($oItem->getTextField($oField->fieldkey),'skeleton',$sLang);\n break;\n default:\n break;\n }\n }\n $aItems[] = $aPublicItem;\n }\n }\n\n $aReturn = ['state'=>'success','message'=>'welcome '.$oInstance->getLabel(),'category'=>$oEntityTag->tag_value,'items'=>$aItems];\n echo json_encode($aReturn);\n\n return false;\n }", "title": "" }, { "docid": "fbeb130c8eeb567e7fad3c7305600c0c", "score": "0.66142017", "text": "public function index()\n {\n $this->authorize('list', Client::class);\n\n return $this->ok($this->repo->paginate($this->request->all()));\n }", "title": "" }, { "docid": "dd6a998d3bb458c37ae44d961b97d40b", "score": "0.6612911", "text": "public function index()\n {\n //get contacts \n $contacts = Contacts::all();\n\n //return collection of contacts as a resource\n return ContactsResource::collection($contacts);\n }", "title": "" }, { "docid": "cb2a32c859addaec7f6f5ede08ff0730", "score": "0.66128945", "text": "public function index()\n {\n $responds = Respond::all();\n return RespondForListResource::collection($responds);\n }", "title": "" }, { "docid": "1a54ebc6660394a2c42a760823c26a75", "score": "0.66118765", "text": "public function index()\n {\n //Get works\n $works = Work::paginate(15);\n \n //Return collection of works as a resource\n return WorkResource::collection($works);\n }", "title": "" }, { "docid": "5c88cf68eb91b67ee61edf19f3f2ae11", "score": "0.6608679", "text": "public function index()\n {\n $inven = Inventory::paginate(15);\n\n return InventoryResource::collection($inven);\n }", "title": "" }, { "docid": "68fd86bd147479dce20ee02a8707173a", "score": "0.6592657", "text": "public function index()\n {\n //\n return CardResource::collection($this->cardRepo->getAll());\n }", "title": "" }, { "docid": "42a6f7bb31023e697bf6d8fe877d4585", "score": "0.658499", "text": "public function index()\n {\n $items = Item::all();\n return $this->sendData('list', $items, 200);\n }", "title": "" }, { "docid": "209ce25a3fdacd16972a8a7301eac167", "score": "0.6584275", "text": "public function listAction()\n {\n $entities = $this->get('trip.repository')->findActive(5);\n\n return $this->render('TripBundle:Trip:list_block.html.twig', array(\n 'entities' => $entities,\n 'list_length' => 5,\n ));\n }", "title": "" }, { "docid": "c6efa0ee8e5b46e919fc3043bad53b51", "score": "0.65816754", "text": "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate());\n }", "title": "" }, { "docid": "28b9b7b045b952a1e51b3daabb3db025", "score": "0.65804577", "text": "function Index()\n\t\t{\n\t\t\t$this->DefaultParameters();\n//\t\t\tif (!isset($this->request->get['parent_id'])) $this->request->get['parent_id'] = '0';\n\t\t\t\r\n\t\t\t$parameters = array('num_rows');\r\n\t\t\t$this->data[$this->name] = $this->controller_model->ListItemsPaged($this->request->get, '', $parameters);\r\n\t\t\t$this->data['num_rows'] = $parameters['num_rows'];\n\t\t}", "title": "" }, { "docid": "679aeb0a886968964597db4d52db9f05", "score": "0.65769154", "text": "public function action_list() {\n\t\tKohana::$log->add(Kohana::DEBUG,'Executing Controller_Admin_Photo::action_list');\n\n\t\t// Build request\n\t\t$query = DB::select();\n\n\t\tif(isset($_POST['terms']))\n\t\t{\n\t\t\t$query->where('title','like',\"%\".$_POST['terms'].\"%\");\n\t\t\t$query->or_where('subtitle','like',\"%\".$_POST['terms'].\"%\");\n\t\t}\n\n\t\t$photos = Sprig::factory('photo')->load($query, FALSE);\n\n\n\t\tif(Request::$is_ajax)\n\t\t{\n\t\t\t// return a json encoded HTML table\n $this->request->response = json_encode(\n\t\t\t\tView::factory('admin/photo/list_tbody')\n\t\t\t\t\t->bind('photos', $photos)\n ->render()\n );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// return the full page\n\t\t\t$this->template->content = View::factory('admin/photo/list')\n\t\t\t\t->set('tbody', View::factory('admin/photo/list_tbody')\n\t\t\t\t\t->bind('photos', $photos)\n\t\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "bb496e1f3376022c7114e22d5ed48267", "score": "0.6573981", "text": "public function index()\n\t{\n\t\t$this->getItem();\n\t}", "title": "" }, { "docid": "e99878c1a0eff5bcf7bf12ed5c8ef9d5", "score": "0.65716714", "text": "public function show()\n {\n return view('listing::show');\n }", "title": "" }, { "docid": "423da9caffc6ac8f568bcebdebf9afbe", "score": "0.65662223", "text": "public function listAction()\n {\n $this->view->users = UserCatalog::getInstance()->getActives();\n $this->setTitle('List the User');\n }", "title": "" }, { "docid": "2d21f0bc716b4c176e994f7636cae49f", "score": "0.65646654", "text": "public function index()\n {\n $branches = Branch::paginate(15);\n return BranchResource::collection($branches);\n }", "title": "" }, { "docid": "c192cad1748d0fe11000b8d2063a908e", "score": "0.65643096", "text": "public function index()\n {\n return $this->view('lists');\n }", "title": "" }, { "docid": "367f38d2314314134a538ae223f4cd5d", "score": "0.6560926", "text": "public function index () {\n permiss ( 'user.list' );\n\n $data = $this->entity\n ->with(['role'])\n ->where('id', '<>', \\Auth::id())\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "title": "" }, { "docid": "32b26e83b4a0ac1871cecd5a10eb2445", "score": "0.65592414", "text": "public function actionList()\r\n {\r\n $option = $this->getParams();\r\n $table = $this->getTableName($option);\r\n $model = $this->model($table);\r\n\r\n $list = $model->all(\r\n function ($ar) use ($table, $model, $option) {\r\n return $model->handleActiveRecord($ar, $table, $option);\r\n },\r\n null,\r\n Yii::$app->params['use_cache']\r\n );\r\n\r\n $this->success($list);\r\n }", "title": "" }, { "docid": "04afb7d77b84ccf4a4dd5ac14fa2c226", "score": "0.6552952", "text": "public function index()\n { \n $this->paginate = [\n 'order' => ['Firms.name' => 'ASC'],\n 'maxLimit' => 20\n ];\n $firms = $this->paginate($this->Firms);\n\n $this->set(compact('firms'));\n }", "title": "" }, { "docid": "6463720c82b75c6c9ffdb8fa297632ea", "score": "0.65498865", "text": "public function index()\n\t{\n $inventaries = Inventary::orderBy('updated_at', 'desc')->paginate(12);\n return view(self::$prefixView . 'lists', compact('inventaries'));\n\t}", "title": "" }, { "docid": "04cfd6b456f88347b94d80eedaf2f138", "score": "0.65456504", "text": "public function index()\n {\n return new FormatResourceCollection(Format::paginate(12));\n }", "title": "" }, { "docid": "4b7799b0d4a4b471dbc995e613462306", "score": "0.6540187", "text": "public function listAction()\n {\n return new Response(\n json_encode([\n [\n 'id' => 1,\n 'title' => 'First Post on Vox',\n 'author' => 'Mario Rossi',\n 'author_id' => 1,\n 'excerpt' => \"Here we are! Finally this is my first post on Vox and I am so happy that...\",\n 'content' => \"Here we are! Finally this is my first post on Vox and I am so happy that this is my lorem ipsum bla bla bla bla!\",\n 'date' => \"08/01/2015\"\n ],\n [\n 'id' => 2,\n 'title' => 'And yes, this is my second post!',\n 'author' => 'Lukas Schneider',\n 'author_id' => 2,\n 'excerpt' => \"Well this is already my second post and so you already know that...\",\n 'content' => \"Well this is already my second post and so you already know that, in terms of being my second post,\n this is exactly what is says it is: my second, incredibly well written and fantastimagically published post!\",\n 'date' => \"09/02/2015\"\n ]\n ]),\n 200,\n 'application/json'\n );\n }", "title": "" }, { "docid": "7bf076a0c3e59596e2f2d0bcbed69f85", "score": "0.65379655", "text": "public function index()\n {\n $artigos = Artigo::paginate(15);\n return ArtigoResource::collection($artigos);\n }", "title": "" }, { "docid": "3ce1999f8313263a55f4c0a4a6d107fc", "score": "0.6527433", "text": "public function index()\n\t{\n\t\tif(!$this->permission->has_permission(\"specialization_viewall\")){\n\t\t\techo \"No permissions\";\n\t\t\treturn;\n\t\t}\n\n\t\t// Get all specialization from db\n\t\t$specialization = $this->SpecializationModel->GetAll();\n\n\t\t// Define data array\n\t\t$data = array(\n\t\t\t\"specialization_list\" => $specialization\n\t\t);\n\n\t\t// Load specialization view\n\t\t$this->layout->view('manage_details/specialization/specialization',$data);\n\t}", "title": "" }, { "docid": "37171947214224489a9ea88290a99d00", "score": "0.652515", "text": "public function index()\n {\n return view(self::$prefixView.'list');\n }", "title": "" }, { "docid": "37171947214224489a9ea88290a99d00", "score": "0.652515", "text": "public function index()\n {\n return view(self::$prefixView.'list');\n }", "title": "" }, { "docid": "0e0fe48e1d16e1503e2b168a9374594b", "score": "0.6524685", "text": "public function index()\n {\n $todos = $this->todo->fetchPaginated();\n\n if ($todos->count() > 0) {\n return $this->respondWithPaginatedData($todos);\n }\n return $this->respondWithNoContent();\n }", "title": "" }, { "docid": "c21960757730e605b84ad99c7f97a9e0", "score": "0.6521291", "text": "public function index() {\n\n // 1. Récupérer les cars\n\n $cars = $this->container->getCarManager()->findAll();\n\n // 2. Afficher les cars\n echo $this->container->getTwig()->render('cars/index.html.twig', [\n 'cars' => $cars\n ]);\n }", "title": "" }, { "docid": "b1dec5f0dac45e2b14cc0f57d1289acb", "score": "0.65199256", "text": "public function index()\n {\n //\n\t\t\t\t// $resources = Resource::all();\n\t\t\t\t// $resources = $resources->sortByDesc('creation_date');\n\t\t\t\t// return response()->json($resources->values()->all());\n\n\t\t\t\treturn response()->json(Resource::orderBy('creation_date', 'desc')->get());\n }", "title": "" } ]
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "57aa5df6753d126b3537e26bcd66067f", "score": "0.0", "text": "public function store(Request $request)\n {\n $validator = $this->validation($request);\n if ($validator->fails()):\n return redirect('/website/create')->with('danger','Data failed to save.');\n endif;\n $metadata = new Metadata;\n $metadata->title_bm = $request->title_bm;\n $metadata->title_eng = $request->title_eng;\n $metadata->url = $request->url;\n $metadata->description_bm = $request->description_bm;\n $metadata->description_eng = $request->description_eng;\n $metadata->location_id = $request->location_id;\n $metadata->source_id = $request->source_id;\n $metadata->language_id = $request->language_id;\n $metadata->category_id = $request->category_id;\n $metadata->subcategory_id = $request->subcategory_id;\n $metadata->user_id = \\Auth::user()->id;\n $url = str_replace('http://', '', $request->url);\n $url = str_replace('https://', '', $url);\n $url = str_replace('www.', '', $url);\n $file_name = str_replace('.', '-', $url);\n $file_name = 'website/'.str_replace('/', '_', $file_name);\n $metadata->path = 'img/'.$file_name.'.jpeg';\n $metadata->save();\n return redirect('/website')->with('success','Data Seved.');\n }", "title": "" } ]
[ { "docid": "66fc929ce2208598ecac269021e7947f", "score": "0.72289926", "text": "public function store()\n {\n // Use the parent API to save the resource\n $object = $this->api()->store();\n\n // Redirect back with message\n return $this->back('created', ['id' => $object->id])\n ->with('message', $this->message('created') );\n }", "title": "" }, { "docid": "bbc87396bab9e03eae11f7a5d70bb9f4", "score": "0.70448303", "text": "public function store(ResourceCreateRequest $request)\n {\n if($resource = Resource::create($request->all()))\n {\n if ($request->hasFile('document')) {\n $file = $request->document;\n $path = Storage::putFile('files/resources', $file);\n $resource->file = $path;\n $resource->save();\n }\n SweetAlert::success('Resource created successfully', 'Resource Created');\n }\n else\n {\n SweetAlert::error('Resource was not created. Please correct your errors.', 'Oops!');\n return back();\n }\n return redirect('admin/resources');\n }", "title": "" }, { "docid": "0a2dcecef8071427bb4f3c22969d6817", "score": "0.6619958", "text": "public function store()\n {\n if (!$this->id) {\n $this->id = $this->insertObject();\n } else {\n $this->updateObject();\n }\n }", "title": "" }, { "docid": "39bea6da81fe955b5bc1e31916165a92", "score": "0.6423722", "text": "public function store(Request $request)\n {\n $this->validate($request, Resource::getValidationRules());\n $input = $request->all();\n $resource = Resource::create([\n 'type' => $input['type'],\n 'data' => $input['data'],\n 'description' => $input['description'],\n 'author_id' => $request->user()->id,\n ]);\n $resource->save();\n // return view('resources.show', ['resource' => $resource]);\n return redirect()->route('resources.show', ['id' => $resource->id]);\n }", "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": "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": "48a4f5d82e2ca95f2db842758d31ad70", "score": "0.63516957", "text": "public function store(CreateResourcesRequest $request)\n\t{\n\t\t$input = $request->all();\n\n\t\t$input['objectId'] = 'Reses'.str_random(10);\n\n\t\tif($request->file('author_img_path')){\n\t\t\t$image = $this->uploadImage($request->file('author_img_path'),'/authors_photo/');\n\t\t\t$input['author_img_path'] = $image['resize_url'][0];\n\t\t}\n\t\tif($request->file('resource_icon_img')){\n\t\t\t$image = $this->uploadImage($request->file('resource_icon_img'),'/resources_photo/');\n\t\t\t$input['resource_icon_img'] = $image['resize_url'][0];\n\t\t}\n\n\t\t$resources = $this->resourcesRepository->create($input);\n\n\t\tFlash::success('Resources saved successfully.');\n\n\t\treturn redirect(route('resources.index'));\n\t}", "title": "" }, { "docid": "df49e7e65ee574fc2aeeafed99804329", "score": "0.6347012", "text": "public function store()\n {\n $sanitized = request()->all();\n return new $this->resource($this->manager->storeOrUpdate($sanitized));\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": "" }, { "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": "" } ]
8907df40f14ff7d19bc778f0a10e4ff4
Closes the active database connection.
[ { "docid": "ac43a72472689f37ef2cce94e36fb75e", "score": "0.6882795", "text": "public function db_close(array $options = array())\n {\n db_close($options);\n }", "title": "" } ]
[ { "docid": "631ad466fb4a3165f9d9815dbfe0049c", "score": "0.79683614", "text": "public function close()\n {\n $this->db->close();\n }", "title": "" }, { "docid": "4712372904c07a8192930ad1b8e81042", "score": "0.79649276", "text": "public function close()\r\n {\r\n $this->database->close();\r\n }", "title": "" }, { "docid": "0403d47e6a41cc9f72bc1ecca89dfe39", "score": "0.7910238", "text": "public function close()\n\t{\n\t\tif ($this->db) {\n\t\t\t$this->db->close();\n\t\t\t$this->db = null;\n\t\t}\n\t}", "title": "" }, { "docid": "005b208a8a33e96ba33153356280a350", "score": "0.777821", "text": "public function db_close() {\n\n\t\tglobal $db_link;\n\t\tif ($db_link) $result = mysql_close($db_link);\n\t}", "title": "" }, { "docid": "af4755205212f60e59090a5105f62a6c", "score": "0.7769799", "text": "public function dbClose() {\r\n\t\t//in PDO assigning null to the connection object closes the connection\r\n\t\t$this->dbConn = null;\r\n\t}", "title": "" }, { "docid": "8e6ddfdc9e1877b85fecd7accc112235", "score": "0.7673892", "text": "public function close()\n\t\t{\n\t\t\tmysql_close($this->db_link);\n\t\t}", "title": "" }, { "docid": "9e32a997df277ad3aa1eeaaf47538d15", "score": "0.76505005", "text": "public function closeConnection() {\n\n unset($this->dbConn);\n }", "title": "" }, { "docid": "4b2210d897a56780499eb762683d896a", "score": "0.7638281", "text": "function close() {\n $this->db->close();\n }", "title": "" }, { "docid": "1eca95e907851a7a90e96eebda4c235b", "score": "0.7629773", "text": "public static function dbClose() {\r\n\t\tif (!isset(self::$instance)) {\r\n\t\t\t$this->dbh = null;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1d0a911f4a51a3c57656719162d65909", "score": "0.7520374", "text": "public function closeConnection(): void\n {\n $this->getDbal()->close();\n }", "title": "" }, { "docid": "98ec54cbcb656219509fee995a0cc5ac", "score": "0.7516623", "text": "function disconnect() {\n\t\t$this->db->Close();\n\t}", "title": "" }, { "docid": "ad3307b9da0d2a914b46cf647176df04", "score": "0.75001603", "text": "function closeConnection(){\n global $db;\n $db->close();\n }", "title": "" }, { "docid": "94483e1c775c8e52bcbbf6837eced870", "score": "0.74429953", "text": "public function terminate_connection()\n\t{\n\t\t$this->get_db_con()->close();\n\t}", "title": "" }, { "docid": "c6fa7a4ca38e6772e845012eddadb30b", "score": "0.7433889", "text": "function close()\n {\n if(null !== $this->_db)\n unset($this->_db);\n }", "title": "" }, { "docid": "31c98c74b3457c062668ab254f48d93d", "score": "0.7397849", "text": "public function closeConnection()\n\t{\n\t\t$this->dbhandler = null;\n\t}", "title": "" }, { "docid": "adc447551e154485268a8e67a31c7a52", "score": "0.73906577", "text": "public function closeDatabase(){\n\t\t\tmysqli_close($this->conn);\n\t\t}", "title": "" }, { "docid": "eee72721bc197214298827769d83ae9d", "score": "0.73850936", "text": "protected function closeConnection()\r\n {\r\n $this->_db = null;\r\n }", "title": "" }, { "docid": "4aff9e8b5fea0eaca7843077d81e9ca4", "score": "0.73778915", "text": "public static function close(){\n\t\tif (self::$_db != null)\n\t\t\tself::$_db = null;\n\t}", "title": "" }, { "docid": "d5f950496d0deba23c23e40a2ef2732c", "score": "0.7375946", "text": "public function close()\n {\n $this->dbh = null;\n }", "title": "" }, { "docid": "f671ad948f596c79c3a6338d75731823", "score": "0.7353837", "text": "public function close(){\n\t\t\t//close according the the type of connection\n\t\t\tswitch(trim($this->db_type)){\n\t\t\t\tcase $this->db_types['mysqli']:\n\t\t\t\t\tif(!$this->con->ping())\n\t\t\t\t\t\t$this->con->close();\n\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tif($this->con){\n\t\t\t\t\t\t$this->con = null; \n\t\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "2c1196bc5d56df856c03bc9a37fc805f", "score": "0.7351295", "text": "protected function disconnectDB()\n {\n if (isset($this->db)) {\n $this->db->close();\n $this->db = null;\n }\n }", "title": "" }, { "docid": "dc34eb3f3e7d1a41951a0acd5402f9b4", "score": "0.7342533", "text": "function close() {\n global $use_pdo;\n if ($use_pdo) {\n $this->dbh = NULL;\n } else {\n $this->dbh->disconnect();\n $this->dbh = false;\n }\n }", "title": "" }, { "docid": "2e9f6017a0470a86f90be25d5563e56e", "score": "0.73119134", "text": "function DB_CLOSE()\n {\n $this->setConn(null);\n }", "title": "" }, { "docid": "c5efe99a4aaa5da8282b03c118102118", "score": "0.7283043", "text": "function close()\n {\n $this->dbh = null;\n }", "title": "" }, { "docid": "e6f1f163e6520e199bad150bcf03cf30", "score": "0.723557", "text": "public function close($db);", "title": "" }, { "docid": "dced7e49e8c54412ad99ac4b7e22cf8c", "score": "0.7187246", "text": "public function closeDB() {\n\t\tmysql_close();\n\t}", "title": "" }, { "docid": "30de748fb7c637bcdc55abbb5bdd5814", "score": "0.71451944", "text": "public function close()\n\t{\n\t\tif($this->cn){mysqli_close($this->cn);}\n\t}", "title": "" }, { "docid": "f673d06f3aa8aefd68c69eab873f88db", "score": "0.7137552", "text": "public function closeConnection() {\n if (isset($this->connection)) {\n $this->connection->close();\n }\n }", "title": "" }, { "docid": "89d78b977dc2b2404faf6248491130a6", "score": "0.713639", "text": "function closeConnection(){\n\t\t$this->dbh = null;\n\t}", "title": "" }, { "docid": "4d38fae0f413f3a4ffde785dfc119a77", "score": "0.712758", "text": "public static function close()\n {\n if(self::$connection !== null) {\n self::$connection->close();\n }\n }", "title": "" }, { "docid": "73626b5d5c660e112c2b1b255c51fd7f", "score": "0.7117582", "text": "function closeConnectDB()\n\t{\n\t\t$this->dm->db->close();\n\t}", "title": "" }, { "docid": "a63bfd2325861115f65ab8907a028ed4", "score": "0.7117415", "text": "function close() {\n\t\treturn $this->db->close();\n }", "title": "" }, { "docid": "b4618da9814231387b8dc61471d89142", "score": "0.71141475", "text": "public function close()\n {\n if (is_resource(self::$_connection)) \n {\n self::$_connection->close();\n }\n }", "title": "" }, { "docid": "4eb739781aafe84b10f814a13d506d54", "score": "0.70585406", "text": "public function disconnect()\n {\n mysqli_close(self::$dbConnection);\n }", "title": "" }, { "docid": "fed407d941d63c5ce3c97250f9de3154", "score": "0.70416045", "text": "public function __destruct()\n {\n $this->db->close();\n }", "title": "" }, { "docid": "fed407d941d63c5ce3c97250f9de3154", "score": "0.70416045", "text": "public function __destruct()\n {\n $this->db->close();\n }", "title": "" }, { "docid": "42d5267c7c7d6d125a01307bf8d73db0", "score": "0.7020661", "text": "public function db_close($connection=false) {\n\t\tif($connection != false) $connection->close(); \n\t\t$this->db_connection->close();\n\t}", "title": "" }, { "docid": "12ffda4710d5fa1ab91070e75bef0da9", "score": "0.7016196", "text": "function close()\r\n\t{\r\n\t\t$this->activate();\r\n\r\n\t\tif(is_resource($this->hConnection))\r\n\t\t{\r\n\t\t\todb_close($this->hConnection);\r\n \t}\r\n \t\r\n \t$this->loaded = false;\r\n\t}", "title": "" }, { "docid": "bc5bf989e3afdee96d65f09d97f7c350", "score": "0.6990965", "text": "public function __destruct()\n {\n if ($this->internal_db_used) {\n @$this->db->close();\n }\n }", "title": "" }, { "docid": "62983f2ecde5445319a5977c6d026444", "score": "0.69810706", "text": "function closeConnection() {\r\n\t\t\tmysql_close($this->link);\r\n\t\t}", "title": "" }, { "docid": "7ed04eee98846ef9190b82d5b1afe028", "score": "0.6969853", "text": "function close()\n {\n global $app;\n \t//@$app[close][conn]($app[db][connection]);\n\t@$app[db][close_conn]($app[db][connection]);\n }", "title": "" }, { "docid": "fd308c9d69105d27152a98cc491f903c", "score": "0.6927184", "text": "public function disconnect() {\n\t\t@mysql_close($this->_dbLink);\n\t\t$this->_dbLink = 0;\n\t}", "title": "" }, { "docid": "6ce1c5a5182229010183e2332e5555d7", "score": "0.69163984", "text": "public function disconnect()\n {\n $this->db->disconnect();\n }", "title": "" }, { "docid": "6931cec880b44932642f58f3e5a88242", "score": "0.69146186", "text": "public function MySQLiConnectionClose() {\n $this->Connection->close();\n }", "title": "" }, { "docid": "bfb5aa6beac5049ca6a561431ddb68a4", "score": "0.69095623", "text": "public function close() {\r\n\t\t\tmysqli_close($this->connection) or die(\"Failed to close connection with erro: \" . mysqli_connect_error());\r\n\t\t}", "title": "" }, { "docid": "d73f22fc6bfc72c02d1ba21dc4b2ad71", "score": "0.6906507", "text": "function __destruct()\n {\n $this->db->close();\n }", "title": "" }, { "docid": "c9f1f8d176333977484816576cc505df", "score": "0.69060415", "text": "public function __destruct()\n {\n parent::$db->closeConnection();\n }", "title": "" }, { "docid": "c9f1f8d176333977484816576cc505df", "score": "0.69060415", "text": "public function __destruct()\n {\n parent::$db->closeConnection();\n }", "title": "" }, { "docid": "c9f1f8d176333977484816576cc505df", "score": "0.69060415", "text": "public function __destruct()\n {\n parent::$db->closeConnection();\n }", "title": "" }, { "docid": "c9f1f8d176333977484816576cc505df", "score": "0.69060415", "text": "public function __destruct()\n {\n parent::$db->closeConnection();\n }", "title": "" }, { "docid": "c9f1f8d176333977484816576cc505df", "score": "0.69060415", "text": "public function __destruct()\n {\n parent::$db->closeConnection();\n }", "title": "" }, { "docid": "9dd8d677c406be450c366f6ae3826f8a", "score": "0.6903519", "text": "public function close() {\n\t\tif($this->closed != true) {\n\t\t\t$this->connection = null;\n\t\t\t$this->closed = true;\n\t\t}\n\t}", "title": "" }, { "docid": "c3c95f2a5501d48ec03eb4d7e7a5b251", "score": "0.68844086", "text": "public function closeConnection() {\n\t\t$this->bConnected = false;\n\t\t$this->sQuery = null;\n\t\t$this->pdo = null;\n\t}", "title": "" }, { "docid": "64d0c3231d7f95c854b7f3a93186a73d", "score": "0.68801653", "text": "function __destruct()\n {\n $this->dbClose();\n }", "title": "" }, { "docid": "84b4dabd069eab888866916b4da38abc", "score": "0.68748224", "text": "public function Close()\n {\n $this->connection->close();\n }", "title": "" }, { "docid": "624e77215c53c9e8c35024c5a48f6820", "score": "0.6868732", "text": "function close()\n {\n return mysqli_close($this->db);\n }", "title": "" }, { "docid": "e8ecc0b2331ce3595e9770ca8a4bad07", "score": "0.6862764", "text": "private function db_close(){\n // Return immediately if DB is not available\n if (!$this->CONNECT){ return false; }\n // Close the open connection to the database\n if (isset($this->LINK) && $this->LINK != false){ $close = mysqli_close($this->LINK); }\n else { $close = true; }\n // If the closing was not successful, return false\n if ($close === false){\n $this->critical_error(\"<strong>cms_database::db_close</strong> : Critical error! Unable to close the database connection for host &lt;{$this->HOST}&gt;!<br />[MySQL Error \".mysqli_errno($this->LINK).\"] : &quot;\".mysqli_errno($this->LINK).\"&quot;\");\n return false;\n }\n // Return true\n return true;\n }", "title": "" }, { "docid": "bd1bb3c3109d09767b048305b1e083e7", "score": "0.6846902", "text": "static function doDBClose($dbConnection) {\n\t\tpg_close($dbConnection);\n\t}", "title": "" }, { "docid": "5cb3ec18ddf44f474f06e4c1fc20c416", "score": "0.6846469", "text": "function close(){\r\n\t\tswitch($this->nomeBD){\r\n\t\t\tcase 'ORACLE':\r\n\t\t\t\t@OCILogOff($this->connectionid);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'MYSQL':\r\n\t\t\t\t@mysql_close($this->connectionid);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'POSTGRES':\r\n\t\t\t\t@pg_close($this->connectionid);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'MATRIX':\r\n\t\t\t\t//DO NOTHING\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "702e551df9976e8fb6303afac72f2458", "score": "0.68434316", "text": "function close(){\n $this->statement->close();\n\t}", "title": "" }, { "docid": "34d0b56c620ae400513a0ec202ef3984", "score": "0.68389344", "text": "public function close()\n {\n $this->pdo = null;\n $this->isConnected = false;\n }", "title": "" }, { "docid": "6afffde9b4b9c9ea46303c4d14a379dd", "score": "0.6833491", "text": "function Close()\n\t{\n\t\t// check le connexion est initialisé\n\t\tif ($this->ConnMiddleCare)\n\t\t{\n\t\t\toci_close($this->ConnMiddleCare);\n\t\t}\n\t}", "title": "" }, { "docid": "8757dc7282a20ecaa88a27acd4cf6948", "score": "0.6820248", "text": "public function close_connection()\n {\n $this->connection->close();\n }", "title": "" }, { "docid": "b32b0a74b49b3cd559ef12d778b43286", "score": "0.6810418", "text": "public function close()\n\t\t{\n\t\t\tif (!@$this->link->close()) throw new SQLException($this->link->error, $this->link->errno);\n\t\t}", "title": "" }, { "docid": "c3ab3ed26917cc25b5f337fe34118fe2", "score": "0.68071604", "text": "public function close()\n {\n unset($this->conn);\n }", "title": "" }, { "docid": "3031d4584cdc9c12d2f38c19c881c3dd", "score": "0.68023825", "text": "public function close($db_handle);", "title": "" }, { "docid": "41cb3c3807af16fe1a9cbb1945953b3a", "score": "0.6788653", "text": "public function __destruct()\n {\n $this->db->close($this->conn);\n }", "title": "" }, { "docid": "6d3bff1d834a3708c2c3a37055f31e49", "score": "0.6784438", "text": "function close(){\n\t\t\tmysqli_close($this->link);\n\t\t\t$this->is_connected = false;\n\t\t}", "title": "" }, { "docid": "3929d226843065dbeace659161baab3c", "score": "0.6780706", "text": "function close()\n {\n global $app;\n \t@mysql_close($app[db][connection]);\n }", "title": "" }, { "docid": "85c3a3902ba67b554301c2deb16a2b03", "score": "0.67671746", "text": "public function close()\n {\n unset($this->conn, $this->query);\n }", "title": "" }, { "docid": "a057465bdd08afd02028fb9602838876", "score": "0.67628354", "text": "public function closeConnection()\n\t\t{\n\t\t\t//if(isset($this->conn))\n\t\t\t//{\n\t\t\t//\t$this->conn->close();\n\t\t\t//\t$this->conn = NULL;\n\t\t\t//\t$this->logger->debug(\"Connection Closed\");\n\t\t\t//}\n\t\t}", "title": "" }, { "docid": "f0ccb4d5873dacb56273f10851467cd7", "score": "0.6757946", "text": "public function closeConnection()\n {\n try {\n self::$instance = null;\n $this->connection = null;\n } catch (PDOException $e) {\n die($e->getMessage());\n }\n }", "title": "" }, { "docid": "0216be922e9f15fc05ac403b46aa9ec4", "score": "0.6754705", "text": "public function close_connection() {\n $this->_connection->close();\n }", "title": "" }, { "docid": "8ee6f4722b81d51d253141641bc45998", "score": "0.67434436", "text": "public function close()\n {\n mysql_close($this->conn);\n }", "title": "" }, { "docid": "65ec9d60b459acd347b6c33b1106c512", "score": "0.67427707", "text": "function __destruct() {\n\t\tif( $this->openConnection ) {\n\t\t\tmysqli_close($this->db);\n\t\t}\n\t}", "title": "" }, { "docid": "cf80eedb30a268ee540d85b8241122b5", "score": "0.6739678", "text": "function closedb(){\n\t\t\t$this->conn = null;\n\n\t}", "title": "" }, { "docid": "5e387af260981214ea22b7cde093b8d7", "score": "0.67326486", "text": "function disconnect( )\n\t{\n\t\tmysql_close( $this->dbConnection ) ;\n\t}", "title": "" }, { "docid": "c336cef8de8eb5209adeac8f98d5964b", "score": "0.6732258", "text": "private function disconnect()\n {\n pg_close($this->dbconn);\n }", "title": "" }, { "docid": "47e08f8a9a24055ebaa4587940b05795", "score": "0.672975", "text": "function close_db()\n{\n global $db_conn;\n \n if ($db_conn !== False)\n {\n mysql_close($db_conn);\n $db_conn = False;\n }\n}", "title": "" }, { "docid": "1c6d65f7c04452f5ee02da33b60d474d", "score": "0.6727676", "text": "public function disconnect() {\n\t\t@mysqli_close($this->databaseConnection);\n\t}", "title": "" }, { "docid": "a84ed8ebeca9d2841df68b053daca735", "score": "0.6725462", "text": "function close() {\r\n\tif(!@mysql_close($this->link_id)){\r\n\t\t$this->oops(\"Connection close failed.\");\r\n\t}\r\n}", "title": "" }, { "docid": "6bed3e8f5e114592e40bf6190f6449eb", "score": "0.6721917", "text": "public function __destruct() {\n\t\tif ( ! empty($this->db) ) {\n\t\t\t$this->db->close();\n\t\t}\n\t}", "title": "" }, { "docid": "6d77f971e75ef49930227bc9c4c8e71a", "score": "0.67134845", "text": "function __destruct()\n\t{\n\t\t$this->db->close();\n\t}", "title": "" }, { "docid": "6d77f971e75ef49930227bc9c4c8e71a", "score": "0.67134845", "text": "function __destruct()\n\t{\n\t\t$this->db->close();\n\t}", "title": "" }, { "docid": "e0d1828e2d3739492940cc7251dc42b8", "score": "0.6705824", "text": "public function close_connection(){\r\n\t\r\n if (isset($this->connection)){\r\n mysql_close($this->connection);\r\n unset($this->connection);\r\n }\r\n\t\r\n\t}", "title": "" }, { "docid": "92cd0e1e41e2c9c00ff2687b1ef55446", "score": "0.66853976", "text": "function close()\n {\n mysql_close($this->con);\n }", "title": "" }, { "docid": "d847bb210f4a726848bd116eb2f2aefe", "score": "0.66788477", "text": "function close()\n {\n unset($this->conn);\n }", "title": "" }, { "docid": "b586b44ce1e57d89d97a8c994aaa795f", "score": "0.6677535", "text": "public function __destruct(){\n\t\t\n\t\t$this->db->close();\n\t}", "title": "" }, { "docid": "a0dfb79cd75c10bea44914b835cdb5aa", "score": "0.6677076", "text": "public function close() {\r\n // destroy db connection\r\n $this->db = NULL;\r\n return true;\r\n }", "title": "" }, { "docid": "6548b5d35e5a6e140c9a2cae6abfa581", "score": "0.6672911", "text": "public function disconnect()\n {\n if ( self::$dbbackend !== null )\n {\n self::$dbbackend->_disconnect();\n self::$dbbackend= null;\n }\n }", "title": "" }, { "docid": "35d7ccf23c7da884390036e3e48821df", "score": "0.66566306", "text": "public function close()\n {\n mysqli_close($this->conn);\n }", "title": "" }, { "docid": "e050dac7e8bf0fd57eae79f87663991e", "score": "0.66562253", "text": "public function close()\n {\n if ($this->conn) {\n $this->_debug(\"C: Close\");\n ldap_unbind($this->conn);\n $this->conn = null;\n }\n }", "title": "" }, { "docid": "b4895cb861fcf96bed402baf85d37f17", "score": "0.6655094", "text": "public function close()\n {\n $this->unsetReferences();\n if ($this->statementClosed === false) {\n $this->statementClosed = true;\n if ($this->statement) {\n @$this->statement->close();\n $this->statement = null;\n }\n }\n }", "title": "" }, { "docid": "3b5c141d3fa8747a0396d73bc56d1391", "score": "0.6650046", "text": "public function __destruct(){\n\t\t\t$this->db->close();\n\t\t}", "title": "" }, { "docid": "5041fa7add7d080e02292144fa67d5b8", "score": "0.66329545", "text": "function __destruct()\n\t\t{\n\t\t\t// close the connection with the database\n\t\t\t$this->database->close();\n\t\t}", "title": "" }, { "docid": "eb307375f2de0f53269892503dccb8f8", "score": "0.66298074", "text": "public function forceClose()\n {\n if ($this->_socket !== null) {\n try {\n $connection = ($this->unixSocket ?: $this->hostname . ':' . $this->port) . ', database=' . $this->database;\n \\Yii::trace('Closing DB connection: ' . $connection, __METHOD__);\n stream_socket_shutdown($this->_socket, STREAM_SHUT_RDWR);\n } catch (\\Exception $e) {\n\n }\n $this->_socket = null;\n }\n }", "title": "" }, { "docid": "86afa2d00c7669743e21da6c8f6fb9c8", "score": "0.6619096", "text": "public function close() {\r\n mysql_close($this->conn);\r\n }", "title": "" }, { "docid": "8a1c9b9fe2c1b83790c5ef7ade76cafb", "score": "0.6617127", "text": "function _close()\n\t{\n\t\tif (!$this->autoCommit) {\n\t\t\t@fbird_rollback($this->_connectionID);\n\t\t}\n\t\treturn @fbird_close($this->_connectionID);\n\t}", "title": "" }, { "docid": "0b422cbb09104768fa948529a71e76e5", "score": "0.6611962", "text": "public function __destruct() {\n mysql_close($this->db);\n }", "title": "" }, { "docid": "c32a9b914ad167698117a3988dabee85", "score": "0.6602877", "text": "public function closeConnection()\n {\n if ($this->isConnected()) {\n $this->_connection->close();\n }\n $this->_connection = null;\n }", "title": "" } ]
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "216402ab1d7e11d80b958f57c7c3dc2b", "score": "0.0", "text": "public function store(AdsRequest $request)\n {\n $request->merge(['car_year' => strtotime($request->input('car_year'))]);\n $ad = Auth::user()->ads()->create($request->all());\n if (!empty($request->file('images'))) {\n $image_ids = [];\n foreach ($request->file('images') as $key => $image) {\n $imageName = time() .\"_($key)_\". $image->getClientOriginalName();\n $imageThumb = \"thumb_\" . time() .\"_($key)_\". $image->getClientOriginalName();\n $imagePath = 'ads/' . $ad->id . '/' . $imageName;\n $upload = Storage::put($imagePath, File::get($image));\n if ($upload) {\n Img::make(File::get($image))\n ->resize(350, 232)\n ->save(storage_path('app/ads/'.$ad->id.'/'.$imageThumb));\n }\n $ad->images()->create([\n 'ad_id' => $ad->id,\n 'imageName' => $imageName,\n 'imagePath' => $imagePath,\n ]);\n }\n }\n return redirect('ads')->with('message', 'Ad created but is not published yet, waiting for admin approval.');\n }", "title": "" } ]
[ { "docid": "df5c676a539300d5a45f989e772221a5", "score": "0.70093644", "text": "public function store()\n {\n return $this->storeResource();\n }", "title": "" }, { "docid": "0155000129669b2263a98f58d7370a8e", "score": "0.6865346", "text": "public function store()\n\t{\n\t\t$id = Input::get('id');\n\t\t\n\t\tAuth::user()->storages_id = $id;\n\t\tAuth::user()->save();\n\t}", "title": "" }, { "docid": "d7f07f6a9415189aaea40420852193a0", "score": "0.6786078", "text": "public function store()\n\t{\n\t\t$input = Input::all();\n\t\t$validation = Validator::make($input, CmsResource::$rules);\n\n\t\tif ($validation->passes())\n\t\t{\n\t\t\t$this->resource->create($input);\n\n\t\t\treturn Redirect::route('backend.resources.index');\n\t\t}\n\n\t\treturn Redirect::route('backend.resources.create')\n\t\t\t->withInput()\n\t\t\t->withErrors($validation)\n\t\t\t->with('message', 'There were validation errors.');\n\t}", "title": "" }, { "docid": "6a69b87756eaa032d9aa6f13233a63fd", "score": "0.6649751", "text": "public function store()\n\t{\n\t\t$validator = Resource::validate(Input::all());\n\t\tif ($validator->fails()) {\n\t\t\treturn Redirect::to('resources/create')\n\t\t\t\t->withErrors($validator)\n\t\t\t\t->withInput(Input::all());\n\t\t} else {\n\t\t\t// store\n\t\t\t$resource \t\t\t\t\t= new Resource;\n\t\t\t$resource->name = Input::get('name');\n\t\t\t$resource->description = Input::get('description');\n\t\t\t$resource->url \t\t\t\t= Input::get('url');\n\t\t\t$resource ->hits = 0;\n\t\t\t$resource->level = Input::get('level');\n\t\t\t$resource->faculty = Input::get('faculty');\n\n\t\t\t$deviceIds = Input::get('devices');\n\n\t\t\t$tagIds \t\t\t\t\t= Input::get('tag_ids');\n\t\t\t$resource->save();\n\t\t\tif($tagIds != ''){\n\t\t\t\t$tagIds = explode(\",\", $tagIds);\n\t\t\t\t$resource->tags()->attach($tagIds);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif($deviceIds != '')\n\t\t\t{\n\t\t\t\tforeach ($deviceIds as $device_type) {\n\t\t\t\t\t$device = new Device(array(\"device_type\" => $device_type));\n\n\t\t\t\t\t$resource->devices()->save($device);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn Redirect::to('resources');\n\t\t\t}\n\t}", "title": "" }, { "docid": "0a2dcecef8071427bb4f3c22969d6817", "score": "0.6619958", "text": "public function store()\n {\n if (!$this->id) {\n $this->id = $this->insertObject();\n } else {\n $this->updateObject();\n }\n }", "title": "" }, { "docid": "016e88402095d4ad79d6ee698ea43b6e", "score": "0.65712094", "text": "public function store()\n\t{\n\t\t// validate\n\t\t// read more on validation at http://laravel.com/docs/validation\n\t\t$rules = array(\n\t\t\t'initials' => 'required',\n\t\t);\n\t\t$validator = Validator::make(Input::all(), $rules);\n\n\t\t// process the login\n\t\tif ($validator->fails()) {\n\t\t\treturn Redirect::to('resources/create')\n\t\t\t\t->withErrors($validator)\n\t\t\t\t->withInput(Input::except('password'));\n\t\t} else {\n\t\t\t// store\n\t\t\t$resource = new Resource;\n\t\t\t$resource->initials = Input::get('initials');\n\t\t\t$resource->save();\n\n\t\t\t// redirect\n\t\t\tSession::flash('message', 'Successfully created resource!');\n\t\t\treturn Redirect::to('resources');\n\t\t}\n\n\t}", "title": "" }, { "docid": "592a9a876f9eb27f42d2201dd961a364", "score": "0.6569156", "text": "public function store(Request $request)\n {\n $resource = Resource::create($request->all());\n if(isset($request->document)){\n $resource->path = $request->document->store('resources');\n $resource->save();\n }\n return redirect()->route('resource.index');\n }", "title": "" }, { "docid": "17a0a26914be4b4eb351482e6387c032", "score": "0.6433111", "text": "public function store()\n\t{\n\t\t\n\t\ttry {\n\n\t\t\treturn $this->newResource();\n\n\t\t}\n\t\tcatch(Illuminate\\Database\\QueryException $e)\n\t\t{\n\n\t\t\treturn Response::json(array('ok' => 0, 'msg' => Lang::get('errors.errorCreatingElement'), \n\t\t\t\t'internalMsg' => $e->getMessage()));\n\n\t\t}\n\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": "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": "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": "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": "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": "" }, { "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": "" } ]
48933be0004bb247db18a37112039cb2
Sets field as mandatory, is null
[ { "docid": "107d08bbefbf171fa68e0c4e7be20607", "score": "0.0", "text": "public function setNullable()\n {\n\tif ( $this->isFrozen()) throw new FreezeException();\n\tif( !is_null($this->isNullable) )\n\t{\n\t $this->_addError(\"has already null/notnull\");\n\t return false;\n\t}\n\t$this->isNullable= true;\n\treturn $this;\n }", "title": "" } ]
[ { "docid": "50e235fc1a9e2dba8a7ab7d2fbedf2d0", "score": "0.77612615", "text": "public function asMandatory()\n {\n $this->mandatory = true;\n\n // update the cache that Datastore_MetaRecord holds\n $oDef = DataModel_Definitions::getIfExists($this->modelName);\n $oDef->setMandatoryField($this);\n }", "title": "" }, { "docid": "35fb8dc66c88078a75bef2042627f8c1", "score": "0.74067473", "text": "public function setRequired($required=true);", "title": "" }, { "docid": "117dc78c40330fff4909797d3ad93579", "score": "0.7391907", "text": "public function setRequired($required = true) {}", "title": "" }, { "docid": "117dc78c40330fff4909797d3ad93579", "score": "0.73918706", "text": "public function setRequired($required = true) {}", "title": "" }, { "docid": "0cdf87156db595bc22808975482ed565", "score": "0.73729366", "text": "public function setRequired($required = true);", "title": "" }, { "docid": "ed5ebf0d19fe2974b93dfc5248113b83", "score": "0.7190534", "text": "public function setRequired($required);", "title": "" }, { "docid": "c2e4eab8ae01abb348ae3ded78c11250", "score": "0.6923064", "text": "function set_required() \n {\n $this->error_state = FORMEX_FIELD_REQUIRED;\n }", "title": "" }, { "docid": "3626c069ea1f01943c7cd360d399762b", "score": "0.69080585", "text": "public function setRequired(bool $required=true): self;", "title": "" }, { "docid": "e580857a633ff54073a056a38ad15549", "score": "0.6636354", "text": "protected static function _required() {\n if (self::$_ruleValue) {\n if (trim(self::$_elementValue) == NULL &&\n strlen(self::$_elementValue) == 0) {\n self::setErrorMessage(\"Field Required\");\n self::setInvalidFlag(true);\n } else {\n self::setInvalidFlag(false);\n }\n }\n }", "title": "" }, { "docid": "f8ea82939b5cd42057335bff0a379cdd", "score": "0.65298647", "text": "public function setRequired($blnValue) {\n\t\t$this->__required = !!$blnValue;\n\t}", "title": "" }, { "docid": "3fdd81f60c05c07ccdfd17139b079325", "score": "0.6508467", "text": "function set_required_false( $field ){\r\n\r\n\t\tif( isset( $field[ 'status' ] ) && isset( $field[ 'required' ] ) ){\r\n\r\n\t\t\tif( $field[ 'status' ] == 'disabled' && $field[ 'required' ] ) $field[ 'required' ] = false;\r\n\r\n\t\t}\r\n\r\n\t\treturn $field;\r\n\r\n\t}", "title": "" }, { "docid": "ce75036ddde7aab4537238d58c04b2da", "score": "0.6463496", "text": "function required($fieldname, $value = true)\n\t{\n\t\t$this->setValidationOption($fieldname, 'required', $value);\n\t}", "title": "" }, { "docid": "d58fa3dfe01ef1470d1701ca13fdd99d", "score": "0.6418361", "text": "public function setRequired($required = true)\n\t\t{\n\t\t\t$this->required = $required;\n\t\t}", "title": "" }, { "docid": "cab4a68503c985f67cefd1f893b6d50f", "score": "0.6344292", "text": "function setIsMandatory($bNewValue) {\n\t\t$this->bIsMandatory = $bNewValue;\n\t}", "title": "" }, { "docid": "8fc1b11126e4dc2365f3e0b383fabc51", "score": "0.62917906", "text": "public function required(): static\r\n {\r\n if (empty($this->field)) $this->message(\"is required\");\r\n return $this;\r\n }", "title": "" }, { "docid": "c69152bba83d7c82198f651cc0d47f56", "score": "0.62751126", "text": "public function testFieldIsRequiredAndAutoIncremented()\n {\n $tableName = 'ramp_auth_users';\n $table = new Application_Model_DbTable_Table($tableName);\n $metaInfo = $table->info(Zend_Db_Table_Abstract::METADATA);\n $whichField = 'id';\n\n $field = new Application_Model_Field($whichField, array(),\n $metaInfo[$whichField]);\n $this->assertTrue($field->isInTable());\n $this->assertTrue($field->isInDB());\n $this->assertTrue($field->isRequired());\n $this->assertTrue($field->isPrimaryKey());\n $this->assertTrue($field->isAutoIncremented());\n $this->assertNull($field->getDefault());\n // User does not have to provide this value; system will provide it.\n $this->assertFalse($field->valueNecessaryForAdd());\n }", "title": "" }, { "docid": "f621c0ee9b9f71a1adb1f3cde9160b8c", "score": "0.6268514", "text": "public function testFieldIsRequiredAndHasNoDefault()\n {\n $tableName = 'ramp_enumTesting';\n $table = new Application_Model_DbTable_Table($tableName);\n $metaInfo = $table->info(Zend_Db_Table_Abstract::METADATA);\n $whichField = 'status';\n\n $field = new Application_Model_Field($whichField, array(),\n $metaInfo[$whichField]);\n $this->assertTrue($field->isInTable());\n $this->assertTrue($field->isInDB());\n $this->assertTrue($field->isRequired());\n $this->assertFalse($field->isPrimaryKey());\n $this->assertFalse($field->isAutoIncremented());\n $this->assertNull($field->getDefault());\n // User must provide this value.\n $this->assertTrue($field->valueNecessaryForAdd());\n }", "title": "" }, { "docid": "3a1906553757146b051b87d5cdfd2554", "score": "0.61999077", "text": "public function required() {\n $this->is_required = true;\n return $this;\n }", "title": "" }, { "docid": "80506c3229a2c4693f7982c8f7ac7ba1", "score": "0.61971474", "text": "public function isMandatory() {\n\t\t$this->getMandatory();\n\t}", "title": "" }, { "docid": "8b235390d3098b7f647aef0f56cf7b9b", "score": "0.61709535", "text": "public function setRequired(?bool $bool = null): void\n {\n $this->required = $bool ?? true;\n }", "title": "" }, { "docid": "1d402647fe4c6b57f28670f0385c8f90", "score": "0.6155207", "text": "private function checkRequired()\n {\n if ($this->fld->is_required == 1 && !$this->is_val_set) {\n throw new Exceptions\\DXCustomException(sprintf(trans('errors.required_field'), $this->fld->title_list));\n }\n }", "title": "" }, { "docid": "62bd15452da2fa28d23bc6e6aa42ca31", "score": "0.6087115", "text": "protected function setRequiredFields()\n {\n $requiredFields = [\n 'transaction_id',\n 'remote_ip',\n 'return_success_url',\n 'return_failure_url',\n 'amount',\n 'currency',\n 'bank_code'\n ];\n\n $this->requiredFields = \\Genesis\\Utils\\Common::createArrayObject($requiredFields);\n\n $requiredFieldValues = [\n 'currency' => [\n 'CNY', 'THB', 'IDR', 'MYR', 'INR'\n ]\n ];\n\n $this->requiredFieldValues = \\Genesis\\Utils\\Common::createArrayObject($requiredFieldValues);\n\n $this->setRequiredFieldsConditional();\n }", "title": "" }, { "docid": "b52d0a9500be20920d445816c39275cc", "score": "0.6080622", "text": "public function isRequired()\n {\n return true;\n }", "title": "" }, { "docid": "41e88603cc48de63aa9815456de63ffc", "score": "0.6062433", "text": "public function is_required(){\n\t\treturn $this->field->required;\n\t}", "title": "" }, { "docid": "04cd515015430a17ff88bf31a7f8973e", "score": "0.60199094", "text": "public function setIsRequired($required);", "title": "" }, { "docid": "4490820c8a3222a62bc01d654400da3b", "score": "0.59653187", "text": "protected function _emptyFieldsToNull(&$field, $key)\n {\n if ($this->_metadata[$key]['NULLABLE'] && empty($field)) {\n $field = null;\n }\n }", "title": "" }, { "docid": "86358566628dc29944b7659324dca238", "score": "0.592492", "text": "public function isRequired() {}", "title": "" }, { "docid": "86358566628dc29944b7659324dca238", "score": "0.5924755", "text": "public function isRequired() {}", "title": "" }, { "docid": "86358566628dc29944b7659324dca238", "score": "0.5924557", "text": "public function isRequired() {}", "title": "" }, { "docid": "86358566628dc29944b7659324dca238", "score": "0.5924557", "text": "public function isRequired() {}", "title": "" }, { "docid": "b6a945ceeef00f048203f19c715ef75a", "score": "0.59163064", "text": "public function fieldNotMandatory($fieldName) {\r\n $this->fieldNotRequired[$fieldName] = true;\r\n return $this;\r\n }", "title": "" }, { "docid": "3ae4ccbb1d0340977355093d9a3e2216", "score": "0.5911977", "text": "public function setIsRequired($val)\n {\n $this->_propDict[\"isRequired\"] = boolval($val);\n return $this;\n }", "title": "" }, { "docid": "baa84320ec305bba0db0df5d1658f726", "score": "0.58988756", "text": "public function optional(Field $field)\n {\n $disp = $field->getDispatcher();\n $disp->addListener(Events::BEFORE_TRANSFORM, function (Event $event) {\n if (null === $event->getInput()) {\n $event->setData(null);\n }\n });\n\n return $field;\n }", "title": "" }, { "docid": "aca299043c71a4de8c620b58e9ff0d39", "score": "0.58794904", "text": "public function isRequired() {\n\t\t\tif ($this->info->type == 'string') {\n\t\t\t\tif (Core\\Data\\ToolKit::isEmpty($this->value)) {\n\t\t\t\t\t// TODO add logging\n\t\t\t\t}\n\t\t\t\treturn $this;\n\t\t\t}\n\t\t\telse if (Core\\Data\\ToolKit::isUnset($this->value)) {\n\t\t\t\t// TODO add logging\n\t\t\t}\n\t\t\treturn $this;\n\t\t}", "title": "" }, { "docid": "954d5ef176fad6cdd1928e38874e5015", "score": "0.58785075", "text": "function required_validate() {\n if ($this->required) {\n if (array_key_exists('NOT_NULL', $this->condition)) \n {\n if ($this->value == '' || $this->value == NULL) {\n $this->errors->add_msj(NOT_NULL_PRE.$this->name.NOT_NULL_POS);\n }\n }\n\n if (array_key_exists('IS_INT', $this->condition)) \n {\n if (!field_is_int($this->value))\n {\n $this->errors->add_msj(IS_INT_PRE.$this->name.IS_INT_POS);\n }\n }\n\n }\n }", "title": "" }, { "docid": "066691ca5b12791df6e50390f62d351b", "score": "0.5876198", "text": "protected function setNullableField($model, $field)\n {\n $value = $model->getAttribute($field);\n\n # Compare the Value to empty string\n if( $value === ''){\n $value = null;\n }\n\n $model->setAttribute($field, $value );\n }", "title": "" }, { "docid": "cc1cdf11998e9e5f99639189d8d64827", "score": "0.5869151", "text": "public function setIsRequired(bool $isRequired);", "title": "" }, { "docid": "245149002660bef444875e1cb598c9a1", "score": "0.58523726", "text": "public function setIsRequired($val)\n {\n $this->_propDict[\"isRequired\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "3f77366d5ccb766f7d1587019b9cc552", "score": "0.5849061", "text": "public function isRequiredField($field_name, $node_type) {\n $bundle_fields = \\Drupal::getContainer()->get('entity_field.manager')->getFieldDefinitions('node', $node_type);\n $field_definition = $bundle_fields[$field_name];\n $setting = $field_definition->isRequired();\n Assert::assertNotEmpty($setting, 'Field ' . $field_name . ' is not required.');\n }", "title": "" }, { "docid": "8c77a27a1da9028ca69af6f3f861fef9", "score": "0.5843309", "text": "protected static function setupRequired(Param $p, RuntimeColumn $c, BaseRecordAction $a = null)\n {\n // required() is basically the same as notNull but provides extra\n // software validation.\n // When creating records, the primary key with auto-increment support is not required.\n // However when updating records, the primary key is required for updating the existing record..\n if ($c->notNull) {\n if ($a) {\n\n if ($c->primary) {\n\n if ($a instanceof CreateRecordAction) {\n // autoIncrement is not defined, then it requires the input value.\n if ($c->autoIncrement) {\n $p->required = false;\n } else {\n $p->required = true;\n }\n } else if ($a instanceof UpdateRecordAction || $a instanceof DeleteRecordAction) {\n // primary key is required to update/delete records.\n $p->required = true;\n }\n } else {\n $p->required = true;\n }\n\n } else {\n if (!$c->default && !($c->primary && $c->autoIncrement)) {\n $p->required = true;\n }\n }\n }\n }", "title": "" }, { "docid": "a841aa90f4d8a0d1b967ec365fad9b1b", "score": "0.5840308", "text": "public function isRequired();", "title": "" }, { "docid": "a841aa90f4d8a0d1b967ec365fad9b1b", "score": "0.5840308", "text": "public function isRequired();", "title": "" }, { "docid": "a841aa90f4d8a0d1b967ec365fad9b1b", "score": "0.5840308", "text": "public function isRequired();", "title": "" }, { "docid": "a841aa90f4d8a0d1b967ec365fad9b1b", "score": "0.5840308", "text": "public function isRequired();", "title": "" }, { "docid": "a841aa90f4d8a0d1b967ec365fad9b1b", "score": "0.5840308", "text": "public function isRequired();", "title": "" }, { "docid": "a841aa90f4d8a0d1b967ec365fad9b1b", "score": "0.5840308", "text": "public function isRequired();", "title": "" }, { "docid": "a841aa90f4d8a0d1b967ec365fad9b1b", "score": "0.5840308", "text": "public function isRequired();", "title": "" }, { "docid": "a841aa90f4d8a0d1b967ec365fad9b1b", "score": "0.5840308", "text": "public function isRequired();", "title": "" }, { "docid": "e3ea497d3af86ee26a96ffd8419d36be", "score": "0.58274513", "text": "public function doSetFieldAsRequired($key, $is_required = true) {\n\t\ttrigger_error('Use not $this->doSetFieldAsRequired() but $this->setVarInfo() instead!', E_USER_DEPRECATED);\n\t\t$this->setVarInfo($key, 'required', $is_required);\n\t}", "title": "" }, { "docid": "267c12bf3304dae7a24af5b4792d2d9a", "score": "0.5820807", "text": "function fillEmptyFields()\n\t{\n\t\tif(isset($this->data[$this->name])) \n\t\t{\n\t\t\t$data = $this->data[$this->name];\n\t\t} else {\n\t\t\t$data = $this->data;\n\t\t}\n\t\t\n\t\tforeach($this->_schema as $fieldname => $details) \n\t\t{\n\t\t\tif(!isset($data[$fieldname]))\n\t\t\t\t$this->set($fieldname, '');\n\t\t}\n\t}", "title": "" }, { "docid": "d3c15ff2fef0c6c2712e9d17856acdff", "score": "0.5818286", "text": "public function setRequiredFields($required_fields){\n\t\tif(!is_array($required_fields)) return;\n\t\t\n\t\tforeach($required_fields as $field_name){\n\t\t\tif(isset($this->Fields[$field_name])){\n\t\t\t\t$this->Fields[$field_name]->is_required = true;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a2b6e5a0c3e72822573e8358bbb5fadf", "score": "0.58082056", "text": "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_schema('');\n $this->setId_situacion('');\n $this->setDescripcion('');\n $this->setSuperada('');\n $this->setBreve('');\n $this->setPrimary_key($aPK);\n }", "title": "" }, { "docid": "3f5a20bb23be8fef4f28de113d8cff70", "score": "0.5806595", "text": "public function required_fields(array $fields)\n\t{\n\t\tif (count($fields) > 0)\n\t\t{\n\t\t\tforeach ($fields as $field)\n\t\t\t{\n\t\t\t\t$this->_required_fields[$field] = TRUE;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e2d7539c9b9162a11efb16a5274235fd", "score": "0.5805143", "text": "public function required();", "title": "" }, { "docid": "e2d7539c9b9162a11efb16a5274235fd", "score": "0.5805143", "text": "public function required();", "title": "" }, { "docid": "e2d7539c9b9162a11efb16a5274235fd", "score": "0.5805143", "text": "public function required();", "title": "" }, { "docid": "af009537b837a3c66ffab0504544646e", "score": "0.5797131", "text": "abstract protected function getMandatoryModelsFields();", "title": "" }, { "docid": "de642faace0da9462c033d53a17449ea", "score": "0.5795595", "text": "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_dl('');\n $this->setDl('');\n $this->setRegion('');\n $this->setNombre_dl('');\n $this->setGrupo_estudios('');\n $this->setRegion_stgr('');\n $this->setStatus('');\n $this->setPrimary_key($aPK);\n }", "title": "" }, { "docid": "fc07f36985256d44352cf084e4a70054", "score": "0.5795347", "text": "protected function setRequired($params)\n {\n $this->required = $params;\n }", "title": "" }, { "docid": "1ba54eb6bf596b947df2f83dc4e141be", "score": "0.57830197", "text": "protected function setIsNullable(Field &$field, $nullable)\n {\n $field->isNullable = (strtoupper($nullable) == 'YES');\n\n return $this;\n }", "title": "" }, { "docid": "2f4c9221584176b0d4e2a0fdd96ce04e", "score": "0.57745045", "text": "function sv_unrequire_wc_phone_field( $fields ) {\n $fields['billing_email']['required'] = false;\n return $fields;\n}", "title": "" }, { "docid": "b45b5f97e7ab813564e8f5fc8f476fda", "score": "0.57689744", "text": "public function __construct()\n {\n $this->setRequiredFields($this->_aDefaultRequiredFields);\n\n $aRequiredFields = oxRegistry::getConfig()->getConfigParam('aMustFillFields');\n if (is_array($aRequiredFields)) {\n $this->setRequiredFields($aRequiredFields);\n }\n }", "title": "" }, { "docid": "86977f2c42e1dc7a8f2c19243ee6af76", "score": "0.5762677", "text": "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_item('');\n $this->setId_enc('');\n $this->setId_nom('');\n $this->setModo('');\n $this->setF_ini('');\n $this->setF_fin('');\n $this->setId_nom_new('');\n $this->setPrimary_key($aPK);\n }", "title": "" }, { "docid": "561af728fc815babe1b37db57f5b83b6", "score": "0.5761776", "text": "public function setRequiredFields(array $requiredFields) {\n $this->model->requiredFields = $requiredFields;\n }", "title": "" }, { "docid": "2634f5c566d6daa051aeac71eef964c2", "score": "0.5759522", "text": "public function withRequiredFieldsEmpty($emptyField, $fieldType)\n {\n //Data\n if ($emptyField == 'general_sku') {\n $productData = $this->loadData('virtual_product_required',\n array($emptyField => '%noValue%'));\n } elseif ($emptyField == 'general_visibility') {\n $productData = $this->loadData('virtual_product_required',\n array($emptyField => '-- Please Select --'), 'general_sku');\n } elseif ($emptyField == 'inventory_qty') {\n $productData = $this->loadData('virtual_product_required', array($emptyField => ''),\n 'general_sku');\n } else {\n $productData = $this->loadData('virtual_product_required',\n array($emptyField => '%noValue%'), 'general_sku');\n }\n //Steps\n $this->productHelper()->createProduct($productData, 'virtual');\n //Verifying\n $this->addFieldIdToMessage($fieldType, $emptyField);\n $this->assertMessagePresent('validation', 'empty_required_field');\n $this->assertTrue($this->verifyMessagesCount(), $this->getParsedMessages());\n }", "title": "" }, { "docid": "1e59bd9659a51856e84fd410124b562a", "score": "0.5758662", "text": "final public function setRequired($required = true)\n {\n return $this->setOption('data-required', (bool)$required);\n }", "title": "" }, { "docid": "8234f1e09aa640c705c78ccd7716d6f4", "score": "0.5755753", "text": "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setNivel_stgr('');\n $this->setDesc_nivel('');\n $this->setDesc_breve('');\n $this->setOrden('');\n $this->setPrimary_key($aPK);\n }", "title": "" }, { "docid": "6154b5ad50dbf9d5f7f82e1cf9195418", "score": "0.57484174", "text": "public function setMandatory($inIsMandatory=true) {\n $this->__isMandatory = $inIsMandatory;\n return $this;\n }", "title": "" }, { "docid": "8ef7cae9ab6215746962431acc939dd8", "score": "0.5746054", "text": "protected function setEmptyFields($oUser)\n {\n $required = [\n 'oxuser__oxcompany',\n 'oxuser__oxusername',\n 'oxuser__oxfname',\n 'oxuser__oxlname',\n 'oxuser__oxstreet',\n 'oxuser__oxstreetnr',\n 'oxuser__oxaddinfo',\n 'oxuser__oxustid',\n 'oxuser__oxcity',\n 'oxuser__oxcountryid',\n 'oxuser__oxstateid',\n 'oxuser__oxzip',\n 'oxuser__oxfon',\n 'oxuser__oxfax',\n 'oxuser__oxsal'\n ];\n foreach ($required as $fieldName) {\n if ($oUser->{$fieldName} === false) {\n $oUser->{$fieldName} = new Field('');\n }\n }\n }", "title": "" }, { "docid": "0685a6ce1a29bd0103b0b22da5c4ad9c", "score": "0.57443416", "text": "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_schema('');\n $this->setId_item('');\n $this->setId_ubi('');\n $this->setId_tarifa('');\n $this->setYear('');\n $this->setCantidad('');\n $this->setObserv('');\n $this->setId_serie('');\n $this->setPrimary_key($aPK);\n }", "title": "" }, { "docid": "c8d62b923028102ba581df49b7f03bf0", "score": "0.5709218", "text": "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_item('');\n $this->setId_ubi('');\n $this->setF_gasto('');\n $this->setTipo('');\n $this->setCantidad('');\n $this->setPrimary_key($aPK);\n }", "title": "" }, { "docid": "83fa6893c21bd6dc8f6007e21a45d6ac", "score": "0.5701966", "text": "public function testNoAriaRequired()\n {\n $field = new OptionsetField('RequiredField', 'myRequiredField');\n\n $form = new Form(\n Controller::curr(),\n \"form\",\n new FieldList($field),\n new FieldList(),\n new RequiredFields([\"RequiredField\"])\n );\n $this->assertTrue($field->Required());\n\n $attributes = $field->getAttributes();\n $this->assertFalse(array_key_exists(\"name\", $attributes ?? []));\n $this->assertFalse(array_key_exists(\"required\", $attributes ?? []));\n $this->assertTrue(array_key_exists(\"role\", $attributes ?? []));\n }", "title": "" }, { "docid": "d6313f896a5d0cf34c6accc3f9e731b0", "score": "0.5701517", "text": "public function __construct()\n\t{\n\t\tparent::__construct('must_not_be_null');\n\t}", "title": "" }, { "docid": "cadbb3e8ce2fe44128b70b47d6c411b3", "score": "0.5690053", "text": "public function setRequired(bool $require) : OptionMetadataInterface;", "title": "" }, { "docid": "1767f38d0115f6c76320c8166bdc8d1c", "score": "0.56861794", "text": "public function setRequired($flag = true)\n {\n if ((bool) $flag === true) {\n $this->addValidator('required');\n } else {\n $this->removeValidator('required');\n }\n }", "title": "" }, { "docid": "17ef44b08091c251d5720d0ec504d26d", "score": "0.56789565", "text": "public static function set_default_values() {\n\t\t?>\n\t\tcase \"nu_phone\" :\n\t\t\tfield.label = \"Phone\";\n\t\t\tfield.isRequired = true;\n\t\t\tfield.description = \"Numbers only. e.g. 8885551212\";\n\t\t\tbreak;\n\t\t<?php\n\t}", "title": "" }, { "docid": "ccd919cebd1de6fa35cc86f0ddff1f7c", "score": "0.5677745", "text": "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_region('');\n $this->setRegion('');\n $this->setNombre_region('');\n $this->setStatus('');\n $this->setPrimary_key($aPK);\n }", "title": "" }, { "docid": "ce60381bfd242a9075b5bf9d3e08ffb0", "score": "0.56771696", "text": "public function isNotRequiredField($field_name, $node_type) {\n $bundle_fields = \\Drupal::getContainer()->get('entity_field.manager')->getFieldDefinitions('node', $node_type);\n $field_definition = $bundle_fields[$field_name];\n $setting = $field_definition->isRequired();\n Assert::assertEmpty($setting, 'Field ' . $field_name . ' is not required.');\n }", "title": "" }, { "docid": "1dfed37a0814cf1ab9b68c2403e12f25", "score": "0.56766695", "text": "public function requireValidFieldName($field)\n {\n // here\n\n if (!isset($this->aFields[$field]))\n {\n throw new DataModel_E_NoSuchField($field, $this->getModelName());\n }\n }", "title": "" }, { "docid": "601b2dbc94dd50bd9bf47471443800b2", "score": "0.5665152", "text": "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_schema('');\n $this->setId_activ('');\n $this->setId_asignatura('');\n $this->setId_nom('');\n $this->setId_nivel('');\n $this->setId_situacion('');\n $this->setPreceptor('');\n $this->setId_preceptor('');\n $this->setNota_num('');\n $this->setNota_max('');\n $this->setActa('');\n $this->setPrimary_key($aPK);\n }", "title": "" }, { "docid": "076effda728e1397834b1442d0ab0602", "score": "0.5658777", "text": "public function testFieldIsRequiredAndHasDefault()\n {\n $tableName = 'ramp_enumTesting';\n $table = new Application_Model_DbTable_Table($tableName);\n $metaInfo = $table->info(Zend_Db_Table_Abstract::METADATA);\n $whichField = 'gender';\n\n $field = new Application_Model_Field($whichField, array(),\n $metaInfo[$whichField]);\n $this->assertTrue($field->isInTable());\n $this->assertTrue($field->isInDB());\n $this->assertTrue($field->isRequired());\n $this->assertFalse($field->isPrimaryKey());\n $this->assertFalse($field->isAutoIncremented());\n $this->assertSame('Unknown', $field->getDefault());\n // User does not have to provide this value; default will serve.\n $this->assertFalse($field->valueNecessaryForAdd());\n }", "title": "" }, { "docid": "715967af12c9105cc8a271f0d428d5d6", "score": "0.5638269", "text": "public function setIsRequired($value)\n {\n $this->_fields['IsRequired']['FieldValue'] = $value;\n return $this;\n }", "title": "" }, { "docid": "8f15adb3ed1b0265620b24d9429e00ce", "score": "0.56339383", "text": "private function set_null($field)\n {\n try {\n // the custom data\n if (!empty($this->CI->form_validation->validation_data)) {\n $vChecked = &$this->array_access($this->CI->form_validation->validation_data, $field);\n // set the array value to null\n $vChecked = null;\n return true;\n }\n // the post request method\n if (!empty($this->CI->input->post())) {\n $vChecked = &$this->array_access($this->CI->input->post(), $field);\n // set the array value to null\n $vChecked = null;\n return true;\n }\n // the get request method\n if (!empty($this->CI->input->get())) {\n $vChecked = &$this->array_access($this->CI->input->get(), $field);\n // set the array value to null\n $vChecked = null;\n return true;\n }\n return true;\n }\n // field not exist\n catch (Exception $e) {\n return false;\n }\n }", "title": "" }, { "docid": "3549d556dfe0d72fac1708f71238a9c7", "score": "0.5620396", "text": "public static function getMandatoryField() {\n\t\t$mandatory['AU'] = array('bsb' => 'required','account_number' => 'required', 'account_holder_name' => 'required', 'currency' => 'required', 'routing_number' => 'required');\n\t\t$mandatory['CA'] = array('transit_number' => 'required','account_number' => 'required','institution_number' => 'required', 'account_holder_name' => 'required', 'currency' => 'required', 'routing_number' => 'required');\n\t\t$mandatory['GB'] = array('sort_code' => 'required', 'account_number' => 'required', 'account_holder_name' => 'required', 'currency' => 'required');\n\t\t$mandatory['HK'] = array('clearing_code' => 'required', 'account_number' => 'required', 'branch_code' => 'required', 'account_holder_name' => 'required', 'currency' => 'required');\n\t\t$mandatory['JP'] = array('bank_code' => 'required','bank_code' => 'required', 'account_number' => 'required', 'branch_code' => 'required', 'bank_name' => 'required', 'branch_name' => 'required', 'account_owner_name' => 'required', 'account_holder_name' => 'required', 'currency' => 'required');\n\t\t$mandatory['NZ'] = array('routing_number' => 'required', 'account_number' => 'required', 'account_holder_name' => 'required', 'currency' => 'required');\n\t\t$mandatory['SG'] = array('bank_code' => 'required', 'account_number' => 'required', 'branch_code' => 'required', 'account_holder_name' => 'required', 'currency' => 'required');\n\t\t$mandatory['US'] = array('routing_number' => 'required', 'account_number' => 'required', 'account_holder_name' => 'required', 'currency' => 'required', 'ssn_last_4' => 'required');\n\t\t$mandatory['AT'] = array('iban' => 'required','account_number'=>'required','account_holder_name' => 'required', 'currency' => 'required');\n\t\t$mandatory['BE'] = array('iban' => 'required','account_holder_name' => 'required','currency' => 'required','account_number'=>'required');\n\t\t$mandatory['CH'] = array('iban' => 'required', 'account_holder_name' => 'required', 'currency' => 'required','account_number'=>'required');\n\t\t$mandatory['DE'] = array('iban' => 'required', 'account_holder_name' => 'required', 'currency' => 'required','account_number' => 'required');\n\t\t$mandatory['DK'] = array('iban' => 'required', 'account_holder_name' => 'required', 'currency' => 'required','account_number' => 'required');\n\t\t$mandatory['ES'] = array('iban' => 'required', 'account_holder_name' => 'required', 'currency' => 'required','account_number'=>'required');\n\t\t$mandatory['FI'] = array('iban' => 'required', 'account_holder_name' => 'required', 'currency' => 'required','account_number' => 'required');\n\t\t$mandatory['FR'] = array('iban' => 'required', 'account_holder_name' => 'required', 'currency' => 'required','account_number' => 'required');\n\t\t$mandatory['IE'] = array('iban' => 'required', 'account_holder_name' => 'required', 'currency' => 'required','account_number'=>'required');\n\t\t$mandatory['IT'] = array('iban' => 'required', 'account_holder_name' => 'required', 'currency' => 'required','account_number'=>'required');\n\t\t$mandatory['LU'] = array('iban' => 'required', 'account_holder_name' => 'required', 'currency' => 'required','account_number'=>'required');\n\t\t$mandatory['NL'] = array('iban' => 'required', 'account_holder_name' => 'required', 'currency' => 'required','account_number'=>'required');\n\t\t$mandatory['NO'] = array('iban' => 'required', 'account_holder_name' => 'required', 'currency' => 'required','account_number'=>'required');\n\t\t$mandatory['PT'] = array('iban' => 'required', 'account_holder_name' => 'required', 'currency' => 'required','account_number'=>'required');\n\t\t$mandatory['SE'] = array('iban' => 'required', 'account_holder_name' => 'required', 'currency' => 'required','account_number'=>'required');\n\t\t$mandatory['OT'] = array('account_number' => 'required', 'bank_name' => 'required', 'account_holder_name' => 'required','branch_name' => 'required');\n\n\t\treturn $mandatory;\n\t}", "title": "" }, { "docid": "7602ee6aaa9e3a47a7ef2f34c30d2d7e", "score": "0.56168026", "text": "public function testCreateWithOnlyRequiredFields(): void\n {\n $this->doTestCreate('createWithOnlyRequiredFields.json');\n }", "title": "" }, { "docid": "493db786281cb5fc37f5742e6a81056d", "score": "0.5600569", "text": "public function isRequired()\n {\n return $this->validationBuilder->has(ValidationBuilder::NOT_NULL, $this->getFieldName());\n }", "title": "" }, { "docid": "aabce2138e1e9acaf74d64eb8a5b1db5", "score": "0.5595704", "text": "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_schema('');\n $this->setId_nom('');\n $this->setId_nivel('');\n $this->setId_asignatura('');\n $this->setId_situacion('');\n // la fecha debe estar antes del acta por si hay que usar la funcion inventarActa.\n $this->setF_acta('');\n $this->setActa('');\n $this->setDetalle('');\n $this->setPreceptor('');\n $this->setId_preceptor('');\n $this->setEpoca('');\n $this->setId_activ('');\n $this->setNota_num('');\n $this->setNota_max('');\n $this->setTipo_acta('');\n $this->setPrimary_key($aPK);\n }", "title": "" }, { "docid": "d5b359a1440720a61ca68773f0304e59", "score": "0.5585994", "text": "protected function beforeSave()\n {\n foreach ($this->getTableSchema()->columns as $column)\n {\n if ($column->allowNull == 1 && $this->getAttribute($column->name) == '')\n {\n $this->setAttribute($column->name, null);\n }\n }\n \n return parent::beforeSave();\n }", "title": "" }, { "docid": "479a441e5a1106485c0e9a00eea45831", "score": "0.55787927", "text": "public function setSubtypeAsRequired()\n {\n $this->subtypeRequired = true;\n }", "title": "" }, { "docid": "cc2cf4c0aa8798725f757ff26fd68d43", "score": "0.5554315", "text": "protected function processRequiredAttributes(array $fields): void\n {\n if (!$this->model || !method_exists($this->model, 'setValidationAttributeName')) {\n return;\n }\n\n foreach ($fields as $field) {\n if ($field->required !== null) {\n continue;\n }\n\n $attrName = implode('.', HtmlHelper::nameToArray($field->fieldName));\n $field->required = $this->model->isAttributeRequired($attrName);\n }\n }", "title": "" }, { "docid": "c7c2ea09c8ef1c1e2a7e3c010b278408", "score": "0.55315804", "text": "private function required ($param)\n {\n $v = trim($this->value);\n if ($v === '')\n {\n $this->SetError('required', 'The '.$this->SpacedKey.' field is required');\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "2e5d1f51eb2c359800f24f5b26aaabcf", "score": "0.55198294", "text": "public function setRequired(bool $required): self\n {\n\t\t$this->required = $required;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "1eac456a3803f90cb3848c33b56a2d54", "score": "0.550555", "text": "public function isMandatory(): bool\n {\n return $this->isMandatory;\n }", "title": "" }, { "docid": "3d47b31be32df7e49c9a70a87840b5be", "score": "0.5504422", "text": "public function changeFieldToNullable($field)\n {\n\tPerfORMController::getBuilder()->changeFieldsNullable($field);\n\t$this->updateFieldSync($field);\n }", "title": "" }, { "docid": "18a097e5d26d28a1c538922e22101810", "score": "0.5498196", "text": "public function addMandatoryInputField($inFieldName, $inDescription=null, $inOptAlwaysMandatory=true) {\n $this->__inMandatoryFields[] = array(self::KEY_NAME => $inFieldName,\n self::KEY_DESCRIPTION => $inDescription,\n self::KEY_ALWAYS => $inOptAlwaysMandatory);\n return $this;\n }", "title": "" }, { "docid": "329c9d59bf5150c5aaca6aac6a0b1ca6", "score": "0.5495401", "text": "public function setisRequiredTissue($v)\n {\n if ($v !== null) {\n if (is_string($v)) {\n $v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true;\n } else {\n $v = (boolean) $v;\n }\n }\n\n if ($this->isrequiredtissue !== $v) {\n $this->isrequiredtissue = $v;\n $this->modifiedColumns[] = ActionTypePeer::ISREQUIREDTISSUE;\n }\n\n\n return $this;\n }", "title": "" }, { "docid": "b7ea00e48aac8d54d6332396c274da93", "score": "0.54914266", "text": "public function setRequired( $isReq=true )\n\t{\n\t\tif (!empty($isReq))\n\t\t\t$this->setAttr('required', 'required');\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "50afdae4e0aef955c30f48e36c5cc375", "score": "0.5477222", "text": "function wp_required_field_indicator()\n {\n }", "title": "" }, { "docid": "c4d0a0802532253861513e7b4d9fb8c7", "score": "0.54580295", "text": "public function setRequired($required=true)\n\t{\n\t\tif (is_bool($required)) {\n\t\t\t$this->_required = $required;\n\t\t}\n\t\t\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "54f52b5aa7fb672767dbca7a8ec0d17c", "score": "0.54444104", "text": "public function validate() {\n if (!empty($this->value)) {\n parent::validate();\n }\n }", "title": "" }, { "docid": "54f52b5aa7fb672767dbca7a8ec0d17c", "score": "0.54444104", "text": "public function validate() {\n if (!empty($this->value)) {\n parent::validate();\n }\n }", "title": "" } ]
f5863b3d0a1990d30491885e92006671
^^^^^ fg=8ec07c fs= ^ fg=b8bb26 fs= ^^^ fg=ebdbb2 fs= ^ fg=fabd2f fs= ^^ fg=ebdbb2 fs=
[ { "docid": "cac30bb7a82db3e72554904a9e8befe5", "score": "0.0", "text": "function p(): Countable {}", "title": "" } ]
[ { "docid": "29add69874056d3a766596f247d04c63", "score": "0.57931757", "text": "function n(\n// ^^^^^ fg=#8ec07c fs=\n// ^ fg=#b8bb26 fs=\n// ^ fg=#ebdbb2 fs=\n\n $a,\n// ^^^ fg=#ebdbb2 fs=\n\n $b\n// ^^ fg=#ebdbb2 fs=\n\n ){}", "title": "" }, { "docid": "4b462335e2de2715753d4bd7528c5969", "score": "0.5394646", "text": "function FDISK_colorFS($fsName)\n{\n //html color-codes\n $COL_EXT2=\"#62A1FF\";\n $COL_EXT3=\"#5186D4\";\n $COL_EXT4=\"#406BA9\";\n $COL_SWAP=\"#BCE408\";\n $COL_REISERFS=\"#FFEC73\";\n $COL_FREE=\"#FFFFFF\";\n $COL_NONE=\"#7FFFF2\";\n $COL_EXTENDED=\"#000000\";\n\n $COL_FAT16=\"#9D2764\";\n $COL_FAT32=\"#E23890\";\n $COL_NTFS=\"#A83589\";\n $COL_HFS=\"#58B94B\";\n $COL_JFS=\"#E77911\";\n $COL_UFS=\"#FF0000\";\n $COL_XFS=\"#A742C3\";\n\n //give out the correct color to the keyword\n if (stristr($fsName,\"ext4\"))\n\t return($COL_EXT4);\n\n if (stristr($fsName,\"ext3\"))\n\treturn($COL_EXT3);\n\n if (stristr($fsName,\"ext2\"))\n\treturn($COL_EXT2);\n\n if (stristr($fsName,\"linux-swap\"))\n\treturn($COL_SWAP);\n\n if (stristr($fsName,\"reiserfs\"))\n\treturn($COL_REISERFS);\n\n if (stristr($fsName,\"fat\"))\n\treturn($COL_FAT32);\n\n if (stristr($fsName,\"ntfs\"))\n\treturn($COL_NTFS);\n\n if (($fsName==\"\") || ($fsName==\"free\"))\n\treturn($COL_FREE);\n\n if (stristr($fsName,\"none\"))\n\t return($COL_NONE);\n\n\n //should be extended partition\n if (($fsName==\"ext\") || ($fsName==-1))\n\t return($COL_EXTENDED);\n\n\n if (stristr($fsName,\"HFS\"))\n\t return($COL_HFS);\n\n if (stristr($fsName,\"jfs\"))\n\t return($COL_JFS);\n\n if (stristr($fsName,\"ufs\"))\n\t return($COL_UFS);\n\n if (stristr($fsName,\"xfs\"))\n\t return($COL_XFS);\n}", "title": "" }, { "docid": "540110d28355f0eb094faf294d1859d8", "score": "0.5190545", "text": "function wordstrap_options_valid_hex_color($hex) {\n return preg_match('/^#[a-f0-9]{6}$/i', $hex);\n}", "title": "" }, { "docid": "0b975ddf8cdacfc47dc2cc8888c45958", "score": "0.5168473", "text": "function ncurses_assume_default_colors($fg, $bg) {}", "title": "" }, { "docid": "9c70044da38c8b1656b6ec61a2516215", "score": "0.51275927", "text": "public function fg($name)\n {\n return $this->foreground($name);\n }", "title": "" }, { "docid": "282b30c091a7546c17d6732fb527212e", "score": "0.50762564", "text": "function FDISK_printColorDefinitions()\n{\ninclude(\"/m23/inc/i18n/\".$GLOBALS[\"m23_language\"].\"/m23base.php\");\n\n\n\necho(\"<table cellspacing=\\\"4\\\">\n\t<tr>\n\t\t<td width=\\\"20\\\">&nbsp;&nbsp;</td>\n\t\t<td width=\\\"20\\\">&nbsp;&nbsp;</td>\n\t\t<td><nobr><span class=\\\"title\\\">$I18N_supported_filesystems</span></nobr><br></td>\n\t</tr>\n\");\n\n\tforeach(FDISK_getSupportedFS() as $fs)\n\t{\n\t\techo(\"\n\t\t\t<tr>\n\t\t\t\t<td width=\\\"20\\\">&nbsp;&nbsp;</td>\n\t\t\t\t<td width=\\\"20\\\" bgcolor=\\\"\".FDISK_colorFS($fs).\"\\\">&nbsp;&nbsp;</td>\n\t\t\t\t<td>$fs</td>\n\t\t\t</tr>\n\t\t\");\n\t}\n\n\necho(\"\n\t<tr>\n\t\t<td width=\\\"20\\\">&nbsp;&nbsp;</td>\n\t\t<td width=\\\"20\\\" bgcolor=\\\"#7FFFF2\\\">&nbsp;&nbsp;</td>\n\t\t<td>$I18N_no_filesystem</td>\n\t</tr>\n\t<tr>\n\t\t<td width=\\\"20\\\">&nbsp;&nbsp;</td>\n\t\t<td width=\\\"20\\\" bgcolor=\\\"#FFFFFF\\\">&nbsp;&nbsp;</td>\n\t\t<td>$I18N_empty</td>\n\t</tr>\n\n\t<tr>\n\t\t<td width=\\\"20\\\">&nbsp;&nbsp;</td>\n\t\t<td width=\\\"20\\\" bgcolor=\\\"#000000\\\">&nbsp;&nbsp;</td>\n\t\t<td><nobr>$I18N_extended_partition</nobr></td>\n\t</tr>\n</table>\");\n}", "title": "" }, { "docid": "846a660b9a3dc36eb4b76c7f451fa5ff", "score": "0.507454", "text": "public function __construct() {\n // Set up shell colors\n // http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html\n $this->foreground_colors['black'] = '0;30';\n $this->foreground_colors['red'] = '0;31';\n $this->foreground_colors['green'] = '0;32';\n $this->foreground_colors['yellow'] = '1;33';\n $this->foreground_colors['blue'] = '0;34';\n $this->foreground_colors['purple'] = '0;35';\n $this->foreground_colors['cyan'] = '0;36';\n $this->foreground_colors['light_gray'] = '0;37';\n $this->foreground_colors['dark_gray'] = '1;30';\n $this->foreground_colors['light_blue'] = '1;34';\n $this->foreground_colors['light_green'] = '1;32';\n $this->foreground_colors['light_cyan'] = '1;36';\n $this->foreground_colors['light_red'] = '1;31';\n $this->foreground_colors['light_purple'] = '1;35';\n $this->foreground_colors['brown'] = '0;33';\n $this->foreground_colors['white'] = '1;37';\n\n $this->background_colors['black'] = '40';\n $this->background_colors['red'] = '41';\n $this->background_colors['green'] = '42';\n $this->background_colors['yellow'] = '43';\n $this->background_colors['blue'] = '44';\n $this->background_colors['magenta'] = '45';\n $this->background_colors['cyan'] = '46';\n $this->background_colors['light_gray'] = '47';\n\n $this->font_face['bold'] = '1';\n $this->font_face['dim'] = '2';\n $this->font_face['underline'] = '4';\n $this->font_face['blink'] = '5';\n $this->font_face['reverse'] = '7';\n $this->font_face['invert'] = '7';\n $this->font_face['hidden'] = '8';\n }", "title": "" }, { "docid": "cc1c93c1e9349f400485237c00ea9a2d", "score": "0.49181432", "text": "function EscapeColor($str, $attr='', $fg='', $bg='')\r\n{\r\n\t// Define some data\r\n\t$s_esc = \"\\x1b[\";\t// or \\033[\r\n\r\n\t$ar_attr = array();\r\n\t$ar_attr['reset']\t\t= 0;\t// 0\tReset All Attributes (return to normal mode)\r\n\t$ar_attr[0]\t\t\t\t= 0;\r\n\t$ar_attr['bright']\t\t= 1;\t// 1\tBright (Usually turns on BOLD)\r\n\t$ar_attr['bold']\t\t= 1;\t// 1\tBright (Usually turns on BOLD)\r\n\t$ar_attr[1]\t\t\t\t= 1;\r\n\t$ar_attr['dim']\t\t\t= 2;\t// 2 \tDim\r\n\t$ar_attr[2]\t\t\t\t= 2;\r\n\t$ar_attr['underline']\t= 3;\t// 3\tUnderline\r\n\t$ar_attr[3]\t\t\t\t= 3;\r\n\t//$ar_attr['reset']\t\t= 4;\r\n\t//$ar_attr[4]\t\t\t\t= 4;\r\n\t$ar_attr['blink']\t\t= 5;\t// 5\tBlink\r\n\t$ar_attr[5]\t\t\t\t= 5;\r\n\t$ar_attr['reverse']\t\t= 7;\t// 7 \tReverse\r\n\t$ar_attr[7]\t\t\t\t= 7;\r\n\t$ar_attr['hidden']\t\t= 8;\t// 8\tHidden\r\n\t$ar_attr[8]\t\t\t\t= 8;\r\n\r\n\t$ar_fg = array();\r\n\t$ar_fg['black']\t\t= 30;\t// 30\tBlack\r\n\t$ar_fg[30]\t\t\t= 30;\r\n\t$ar_fg['red']\t\t= 31;\t// 31\tRed\r\n\t$ar_fg[31]\t\t\t= 31;\r\n\t$ar_fg['green']\t\t= 32;\t// 32\tGreen\r\n\t$ar_fg[32]\t\t\t= 32;\r\n\t$ar_fg['yellow']\t= 33;\t// 33\tYellow\r\n\t$ar_fg[33]\t\t\t= 33;\r\n\t$ar_fg['blue']\t\t= 34;\t// 34\tBlue\r\n\t$ar_fg[34]\t\t\t= 34;\r\n\t$ar_fg['magenta']\t= 35;\t// 35\tMagenta\r\n\t$ar_fg[35]\t\t\t= 35;\r\n\t$ar_fg['cyan']\t\t= 36;\t// 36\tCyan\r\n\t$ar_fg[36]\t\t\t= 36;\r\n\t$ar_fg['white']\t\t= 37;\t// 37\tWhite\r\n\t$ar_fg[37]\t\t\t= 37;\r\n\r\n\t$ar_bg = array();\r\n\t$ar_bg['black']\t\t= 40;\t// 40\tBlack\r\n\t$ar_bg[40]\t\t\t= 40;\r\n\t$ar_bg['red']\t\t= 41;\t// 41\tRed\r\n\t$ar_bg[41]\t\t\t= 41;\r\n\t$ar_bg['green']\t\t= 42;\t// 42\tGreen\r\n\t$ar_bg[42]\t\t\t= 42;\r\n\t$ar_bg['yellow']\t= 43;\t// 43\tYellow\r\n\t$ar_bg[43]\t\t\t= 43;\r\n\t$ar_bg['blue']\t\t= 44;\t// 44\tBlue\r\n\t$ar_bg[44]\t\t\t= 44;\r\n\t$ar_bg['magenta']\t= 45;\t// 45\tMagenta\r\n\t$ar_bg[45]\t\t\t= 45;\r\n\t$ar_bg['cyan']\t\t= 46;\t// 46\tCyan\r\n\t$ar_bg[46]\t\t\t= 46;\r\n\t$ar_bg['white']\t\t= 47;\t// 47\tWhite\r\n\t$ar_bg[47]\t\t\t= 47;\r\n\r\n\t// The Color Code: <ESC>[{attr};{fg};{bg}m\r\n\r\n\t$attr = strtolower($attr);\r\n\tif (isset($ar_attr[$attr]))\r\n\t\t$s_attr = $ar_attr[$attr];\r\n\telse\r\n\t\t$s_attr = '';\r\n\r\n\t$fg = strtolower($fg);\r\n\tif (isset($ar_fg[$fg]))\r\n\t\t$s_fg = ';' . $ar_fg[$fg];\r\n\telse\r\n\t\t$s_fg = '';\r\n\r\n\t$bg = strtolower($bg);\r\n\tif (isset($ar_bg[$bg]))\r\n\t\t$s_bg = ';' . $ar_bg[$bg];\r\n\telse\r\n\t\t$s_bg = '';\r\n\r\n\treturn $s_esc . $s_attr . $s_fg . $s_bg . 'm' . $str . $s_esc . '0m';\r\n}", "title": "" }, { "docid": "6d1342c0c8c638662e68baaa945cbaba", "score": "0.48723993", "text": "function sb_printNextBGColor() {\n global $currentColor, $altColor;\n\n echo \"BGCOLOR=$currentColor\";\n $tempColor = $currentColor;\n $currentColor = $altColor;\n $altColor = $tempColor;\n }", "title": "" }, { "docid": "6d1342c0c8c638662e68baaa945cbaba", "score": "0.48723993", "text": "function sb_printNextBGColor() {\n global $currentColor, $altColor;\n\n echo \"BGCOLOR=$currentColor\";\n $tempColor = $currentColor;\n $currentColor = $altColor;\n $altColor = $tempColor;\n }", "title": "" }, { "docid": "6d1342c0c8c638662e68baaa945cbaba", "score": "0.48723993", "text": "function sb_printNextBGColor() {\n global $currentColor, $altColor;\n\n echo \"BGCOLOR=$currentColor\";\n $tempColor = $currentColor;\n $currentColor = $altColor;\n $altColor = $tempColor;\n }", "title": "" }, { "docid": "921323f35f1d71c9c08e881b51b66244", "score": "0.47585914", "text": "function jw_faq_bg_color() {\n\tif ( get_post_meta( get_the_ID(), 'faq-bg-color', true ) ) {\n\n\t\techo get_post_meta( get_the_ID(), 'faq-bg-color', true );\n\n\t} else {\n\t\techo jltmaf_options('faq-bg-color', 'jltmaf_content' );\n\t}\n}", "title": "" }, { "docid": "16bb46b256f1c0c4c9b87246819b5080", "score": "0.46704742", "text": "function print_nfo($nfo, $colour=0, $background=\"0\") { \n if (!is_array($nfo)) { \n $nfo = explode(\"\\n\", $nfo); \n } \n\n if (version_compare('4.0.6', phpversion()) == 1) { \n echo 'This version of PHP is not fully supported. You need 4.0.6 or ' .\n 'above.'; \n exit(); \n } \n\n if (extension_loaded('gd') == false && !dl('gd.so')) { \n echo 'You are missing the GD extension for PHP, sorry but I cannot ' .\n 'continue.'; \n exit(); \n } \n\n if (isset($background) == false) { \n $red = 0; \n $green = 0; \n $blue = 0; \n } \n else { \n $hex_bgc = $background; \n $hex_bgc = str_replace('#', '', $hex_bgc); \n\n switch (strlen($hex_bgc)) { \n case 6: \n $red = hexdec(substr($hex_bgc, 0, 2)); \n $green = hexdec(substr($hex_bgc, 2, 2)); \n $blue = hexdec(substr($hex_bgc, 4, 2)); \n break; \n\n case 3: \n $red = substr($hex_bgc, 0, 1); \n $green = substr($hex_bgc, 1, 1); \n $blue = substr($hex_bgc, 2, 1); \n $red = hexdec($red . $red); \n $green = hexdec($green . $green); \n $blue = hexdec($blue . $blue); \n break; \n\n default: \n $red = 0; \n $green = 0; \n $blue = 0; \n } \n } \n\n\n $fontpath = dirname(__FILE__); \n\n if (file_exists(\"$fontpath/nfogen.png\")) { \n $fontset = imagecreatefrompng(\"$fontpath/nfogen.png\"); \n } \n else { \n echo \"Aborting, cannot find the required fontset nfogen.png in \". \n \"path: $fontpath\"; \n exit(); \n } \n\n $x = 0; \n $y = 0; \n $fontx = 5; \n $fonty = 12; \n $colour = $colour * $fonty; \n\n //Calculate max width and height of image needed \n $image_height = count($nfo) * 12; \n $image_width = 0; \n\n //Width needs a loop through the text \n for ($c = 0; $c < count($nfo); $c++) { \n $line = $nfo[$c]; \n $temp_len = strlen($line); \n if ($temp_len > $image_width) { \n $image_width = $temp_len; \n } \n } \n\n $image_width = $image_width * $fontx; \n $image_width = $image_width + 10; \n\n //Sanity Checks \n if ($image_width > 1600) { \n $image_width = 1600; \n } \n\n $im = imagecreatetruecolor($image_width, $image_height); \n $bgc = imagecolorallocate($im, $red, $green, $blue); \n imagefill($im, 0, 0, $bgc); \n\n for ($c = 0; $c < count($nfo); $c++) { \n $x = $fontx; \n $line = $nfo[$c]; \n\n for ($i = 0; $i < strlen($line); $i++) { \n $current_char = substr($line, $i, 1); \n if ($current_char !== \"\\r\" && $current_char !== \"\\n\") { \n $offset = ord($current_char) * 5; \n imagecopy($im, $fontset, $x, $y, $offset, $colour, $fontx, \n $fonty); \n $x += $fontx; \n } \n } \n $y += $fonty; \n } \n\n header(\"Content-type: image/png\"); \n imagepng($im);\n imagedestroy($im); \n\n}", "title": "" }, { "docid": "c268586288b7d6689119e42641fa2fb3", "score": "0.4649695", "text": "public function e()\n// ^^^^^^ fg=#fb4934 fs=\n// ^^^^^^^^ fg=#8ec07c fs=\n// ^ fg=#b8bb26 fs=\n// ^^ fg=#ebdbb2 fs=\n {\n user_defined();\n// ^^^^^^^^^^^^ fg=#8ec07c fs=\n// ^^ fg=#bdae93 fs=\n// ^ fg=#ebdbb2 fs=\n\n phpversion();\n// ^^^^^^^^^^ fg=#8ec07c fs=\n// ^^ fg=#bdae93 fs=\n// ^ fg=#ebdbb2 fs=\n// \n parent::a();\n// ^^^^^^ fg=#d3869b fs=\n// ^^ fg=#ebdbb2 fs=\n// ^ fg=#689d6a fs=\n// ^^ fg=#bdae93 fs=\n// ^ fg=#ebdbb2 fs=\n\n self::class;\n// ^^^^ fg=#d3869b fs=\n// ^^ fg=#ebdbb2 fs=\n// ^^^^^ fg=#d3869b fs=\n// ^ fg=#ebdbb2 fs=\n\n self::$x;\n// ^^^^ fg=#d3869b fs=\n// ^^ fg=#ebdbb2 fs=\n// ^ fg=#458588 fs=\n// ^ fg=#fabd2f fs=\n// ^ fg=#ebdbb2 fs=\n\n self::a();\n// ^^^^ fg=#d3869b fs=\n// ^^ fg=#ebdbb2 fs=\n// ^ fg=#689d6a fs=\n// ^^ fg=#bdae93 fs=\n// ^ fg=#ebdbb2 fs=\n\n static::$x;\n// ^^^^^^ fg=#d3869b fs=\n// ^^ fg=#ebdbb2 fs=\n// ^ fg=#458588 fs=\n// ^ fg=#fabd2f fs=\n// ^ fg=#ebdbb2 fs=\n\n static::a();\n// ^^^^^^ fg=#d3869b fs=\n// ^^ fg=#ebdbb2 fs=\n// ^ fg=#689d6a fs=\n// ^^ fg=#bdae93 fs=\n// ^ fg=#ebdbb2 fs=\n\n $this->x;\n// ^ fg=#b16286 fs=\n// ^^^^ fg=#d3869b fs=\n// ^^ fg=#ebdbb2 fs=\n// ^ fg=#83a598 fs=\n// ^ fg=#ebdbb2 fs=\n\n $this->a();\n// ^ fg=#b16286 fs=\n// ^^^^ fg=#d3869b fs=\n// ^^ fg=#ebdbb2 fs=\n// ^ fg=#689d6a fs=\n// ^^ fg=#bdae93 fs=\n// ^ fg=#ebdbb2 fs=\n\n $this->$x();\n// ^ fg=#b16286 fs=\n// ^^^^ fg=#d3869b fs=\n// ^^ fg=#ebdbb2 fs=\n// ^ fg=#458588 fs=\n// ^ fg=#83a598 fs=\n// ^^^ fg=#ebdbb2 fs=\n\n $this->a()->c()->d();\n// ^ fg=#b16286 fs=\n// ^^^^ fg=#d3869b fs=\n// ^^ fg=#ebdbb2 fs=\n// ^ fg=#689d6a fs=\n// ^^ fg=#bdae93 fs=\n// ^^ fg=#ebdbb2 fs=\n// ^ fg=#689d6a fs=\n// ^^ fg=#bdae93 fs=\n// ^^ fg=#ebdbb2 fs=\n// ^ fg=#689d6a fs=\n// ^^ fg=#bdae93 fs=\n// ^ fg=#ebdbb2 fs=\n\n Abcd::$x;\n// ^^^^ fg=#fabd2f fs=\n// ^^ fg=#ebdbb2 fs=\n// ^ fg=#458588 fs=\n// ^ fg=#fabd2f fs=\n// ^ fg=#ebdbb2 fs=\n\n Abcd::X;\n// ^^^^ fg=#fabd2f fs=\n// ^^ fg=#ebdbb2 fs=\n// ^ fg=#d3869b fs=\n// ^ fg=#ebdbb2 fs=\n\n echo X::class;\n// ^^^^ fg=#8ec07c fs=\n// ^ fg=#fabd2f fs=\n// ^^ fg=#ebdbb2 fs=\n// ^^^^^ fg=#d3869b fs=\n// ^ fg=#ebdbb2 fs=\n\n $x = new X();\n// ^ fg=#458588 fs=\n// ^ fg=#83a598 fs=\n// ^ fg=#8ec07c fs=\n// ^^^ fg=#fb4934 fs=\n// ^ fg=#fabd2f fs=\n// ^^^ fg=#ebdbb2 fs=\n\n $x = new self();\n// ^ fg=#458588 fs=\n// ^ fg=#83a598 fs=\n// ^ fg=#8ec07c fs=\n// ^^^ fg=#fb4934 fs=\n// ^^^^ fg=#d3869b fs=\n// ^^^ fg=#ebdbb2 fs=\n\n $x = new static();\n// ^ fg=#458588 fs=\n// ^ fg=#83a598 fs=\n// ^ fg=#8ec07c fs=\n// ^^^ fg=#fb4934 fs=\n// ^^^^^^ fg=#d3869b fs=\n// ^^^ fg=#ebdbb2 fs=\n\n $abc->a();\n// ^ fg=#458588 fs=\n// ^^^ fg=#83a598 fs=\n// ^^ fg=#ebdbb2 fs=\n// ^ fg=#689d6a fs=\n// ^^ fg=#bdae93 fs=\n// ^ fg=#ebdbb2 fs=\n\n $abc::a();\n// ^ fg=#458588 fs=\n// ^^^ fg=#83a598 fs=\n// ^^ fg=#ebdbb2 fs=\n// ^ fg=#689d6a fs=\n// ^^ fg=#bdae93 fs=\n// ^ fg=#ebdbb2 fs=\n\n $abc::$x;\n// ^ fg=#458588 fs=\n// ^^^ fg=#83a598 fs=\n// ^^ fg=#ebdbb2 fs=\n// ^ fg=#458588 fs=\n// ^ fg=#fabd2f fs=\n// ^ fg=#ebdbb2 fs=\n\n $abc->$x();\n// ^ fg=#458588 fs=\n// ^^^ fg=#83a598 fs=\n// ^^ fg=#ebdbb2 fs=\n// ^ fg=#458588 fs=\n// ^ fg=#83a598 fs=\n// ^^^ fg=#ebdbb2 fs=\n\n $this->x = array_merge($this->y, $z);\n// ^ fg=#b16286 fs=\n// ^^^^ fg=#d3869b fs=\n// ^^ fg=#ebdbb2 fs=\n// ^ fg=#83a598 fs=\n// ^ fg=#8ec07c fs=\n// ^^^^^^^^^^^ fg=#8ec07c fs=\n// ^ fg=#bdae93 fs=\n// ^ fg=#b16286 fs=\n// ^^^^ fg=#d3869b fs=\n// ^^ fg=#ebdbb2 fs=\n// ^ fg=#83a598 fs=\n// ^ fg=#ebdbb2 fs=\n// ^ fg=#458588 fs=\n// ^ fg=#83a598 fs=\n// ^ fg=#bdae93 fs=\n// ^ fg=#ebdbb2 fs=\n\n $this->x($k, $v);\n// ^ fg=#b16286 fs=\n// ^^^^ fg=#d3869b fs=\n// ^^ fg=#ebdbb2 fs=\n// ^ fg=#689d6a fs=\n// ^ fg=#bdae93 fs=\n// ^ fg=#458588 fs=\n// ^ fg=#83a598 fs=\n// ^ fg=#ebdbb2 fs=\n// ^ fg=#458588 fs=\n// ^ fg=#83a598 fs=\n// ^ fg=#bdae93 fs=\n// ^ fg=#ebdbb2 fs=\n\n $a = isset($this->b) ? $this->b->c('d') : new X();\n// ^ fg=#458588 fs=\n// ^ fg=#83a598 fs=\n// ^ fg=#8ec07c fs=\n// ^^^^^ fg=#8ec07c fs=\n// ^ fg=#bdae93 fs=\n// ^ fg=#b16286 fs=\n// ^^^^ fg=#d3869b fs=\n// ^^ fg=#ebdbb2 fs=\n// ^ fg=#83a598 fs=\n// ^ fg=#bdae93 fs=\n// ^ fg=#ebdbb2 fs=\n// ^ fg=#b16286 fs=\n// ^^^^ fg=#d3869b fs=\n// ^^ fg=#ebdbb2 fs=\n// ^ fg=#83a598 fs=\n// ^^ fg=#ebdbb2 fs=\n// ^ fg=#689d6a fs=\n// ^ fg=#bdae93 fs=\n// ^ fg=#ebdbb2 fs=\n// ^ fg=#b8bb26 fs=\n// ^ fg=#ebdbb2 fs=\n// ^ fg=#bdae93 fs=\n// ^ fg=#ebdbb2 fs=\n// ^^^ fg=#fb4934 fs=\n// ^ fg=#fabd2f fs=\n// ^^^ fg=#ebdbb2 fs=\n\n if (!in_array($x, [false, 'a', 'b'], true)) {\n// ^^ fg=#fb4934 fs=\n// ^ fg=#ebdbb2 fs=\n// ^^^^^^^^^ fg=#8ec07c fs=\n// ^ fg=#bdae93 fs=\n// ^ fg=#458588 fs=\n// ^ fg=#83a598 fs=\n// ^ fg=#ebdbb2 fs=\n// ^ fg=#ebdbb2 fs=\n// ^^^^^ fg=#d3869b fs=\n// ^ fg=#ebdbb2 fs=\n// ^ fg=#ebdbb2 fs=\n// ^ fg=#b8bb26 fs=\n// ^^ fg=#ebdbb2 fs=\n// ^ fg=#ebdbb2 fs=\n// ^ fg=#b8bb26 fs=\n// ^^^ fg=#ebdbb2 fs=\n// ^^^^ fg=#d3869b fs=\n// ^ fg=#bdae93 fs=\n// ^ fg=#ebdbb2 fs=\n// ^ fg=#ebdbb2 fs=\n\n throw new InvalidArgumentException('x');\n// ^^^^^ fg=#fb4934 fs=\n// ^^^ fg=#fb4934 fs=\n// ^^^^^^^^^^^^^^^^^^^^^^^^ fg=#fabd2f fs=\n// ^^ fg=#ebdbb2 fs=\n// ^ fg=#b8bb26 fs=\n// ^^^ fg=#ebdbb2 fs=\n\n }\n\n if (isset(static::$x[$y])) {}\n// ^^ fg=#fb4934 fs=\n// ^ fg=#ebdbb2 fs=\n// ^^^^^ fg=#8ec07c fs=\n// ^ fg=#bdae93 fs=\n// ^^^^^^ fg=#d3869b fs=\n// ^^ fg=#ebdbb2 fs=\n// ^ fg=#458588 fs=\n// ^ fg=#fabd2f fs=\n// ^ fg=#ebdbb2 fs=\n// ^ fg=#458588 fs=\n// ^ fg=#83a598 fs=\n// ^ fg=#ebdbb2 fs=\n// ^ fg=#bdae93 fs=\n// ^ fg=#ebdbb2 fs=\n// ^^ fg=#ebdbb2 fs=\n\n return new self();\n// ^^^^^^ fg=#fb4934 fs=\n// ^^^ fg=#fb4934 fs=\n// ^^^^ fg=#d3869b fs=\n// ^^^ fg=#ebdbb2 fs=\n\n }", "title": "" }, { "docid": "f40f500e84b3d6455f1bcac6db3dee77", "score": "0.46395496", "text": "private function hextorgb_color($color) {\r\n\r\n\t\tif (!preg_match(\"/^\\#[a-f0-9]{6}$/\", $color)) {\r\n\t\t\tthrow new Exception('Color not valid');\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t$arrtmp = explode(' ', chunk_split($color, 2, \" \"));\r\n\t\t$arrtmp = array_map(\"hexdec\", $arrtmp);\r\n\t\treturn array('red' => $arrtmp[0]/255, 'green' => \r\n\t\t*/\r\n\r\n\t\treturn array('red' => hexdec('0x' . $color{1} . $color{2}), 'green' => hexdec('0x' . $color{3} . $color{4}), 'blue' => hexdec('0x' . $color{5} . $color{6}));\r\n\r\n\t}", "title": "" }, { "docid": "0c850c315ac8ed419dca758c03c73f17", "score": "0.46359053", "text": "public function render_bgcolor() {\n \n ?><input name=\"mdp_revealer_settings[bgcolor]\" class=\"mdp-color-fld\" data-alpha=\"true\" type=\"text\" value=\"<?php echo esc_attr( $this->options['bgcolor'] ); ?>\" /><?php\n \n }", "title": "" }, { "docid": "c9905181e88859d8b1ca4f7e231cc620", "score": "0.45868406", "text": "function getCurrentHotFix()\n{\n $v = shell_exec('git flow hotfix list');\n $v = preg_replace('/[[:space:]]|[^\\d\\+\\._a-zA-Z]/', '', $v);\n\n return $v;\n}", "title": "" }, { "docid": "5960858614e6230f73d407a370b3a91f", "score": "0.4578639", "text": "function ircColor($c)\n{\n\treturn \"\";\n}", "title": "" }, { "docid": "cdeb3e7c7d003113df904f9763d2482a", "score": "0.457611", "text": "function EscapeColorTable()\r\n{\r\n\techo \"Table for 16-color terminal escape sequences.\\n\";\r\n\techo \"Replace ESC with \\\\033 in bash.\\n\";\r\n\techo \"\\n\";\r\n\techo \"Background | Foreground colors\\n\";\r\n\techo \"---------------------------------------------------------------------\\n\";\r\n\tfor ($bg=40; $bg<=47; $bg++)\r\n\t\tfor ($bold=0; $bold<=1; $bold++)\t// bold = bright\r\n\t\t{\r\n\t\t\t//echo -en \"\\033[0m\"\" ESC[${bg}m | \"\r\n\t\t\techo EscapeColor(\"ESC[${bg}m | \", $bold);\r\n\t\t\tfor ($fg=30; $fg<=37; $fg++)\r\n\t\t\t{\r\n\t\t\t\tif (0 == $bold)\r\n\t\t\t\t\techo EscapeColor(\" [{$fg}m \", $bold, $fg, $bg);\r\n\t\t\t\telse\r\n\t\t\t\t\techo EscapeColor(\" [$bold;{$fg}m\", $bold, $fg, $bg);\r\n\t\t\t}\r\n\t\t\techo \"\\n\";\r\n\t\t\t/*\r\n\t\t\tif [ $bold == \"0\" ]; then\r\n\t\t\t\techo -en \"\\033[${bg}m\\033[${fg}m [${fg}m \"\r\n\t\t\telse\r\n\t\t\t\techo -en \"\\033[${bg}m\\033[1;${fg}m [1;${fg}m\"\r\n\t\t\tfi\r\n\t\t\t*/\r\n\t\t}\r\n\techo \"---------------------------------------------------------------------\\n\";\r\n\r\n}", "title": "" }, { "docid": "e9ff4e45dbeac7e2df0642567dcdd6e4", "score": "0.45713532", "text": "function font_color($bg, $bwonly = false)\n{\n\tglobal $config;\n\n\tif ($bwonly)\n\t{\n\t\tif (is_bright($bg))\n\t\t\treturn '000000';\n\t\telse\n\t\t\treturn 'FFFFFF';\n\t}\n\telse\n\t{\n\t\t$r = dechex(255 - hexdec(substr($bg,0,2)));\n\t\t$r = (strlen($r) > 1) ? $r : '0'.$r;\n\t\t$g = dechex(255 - hexdec(substr($bg,2,2)));\n\t\t$g = (strlen($g) > 1) ? $g : '0'.$g;\n\t\t$b = dechex(255 - hexdec(substr($bg,4,2)));\n\t\t$b = (strlen($b) > 1) ? $b : '0'.$b;\n\t\treturn strtoupper($r.$g.$b);\n\t}\n}", "title": "" }, { "docid": "b7e9d236d53c0d861b6527944552d176", "score": "0.45104772", "text": "function ncurses_init_pair($pair, $fg, $bg) {}", "title": "" }, { "docid": "1feea84d04d167945ca7ce536c13d602", "score": "0.4493128", "text": "function parseCSS( $css ){\n \n $css_color_names = array(\n \"AliceBlue\"=>\"F0F8FF\",\"AntiqueWhite\"=>\"FAEBD7\",\"Aqua\"=>\"00FFFF\",\"Aquamarine\"=>\"7FFFD4\",\"Azure\"=>\"F0FFFF\",\"Beige\"=>\"F5F5DC\",\"Bisque\"=>\"FFE4C4\",\"Black\"=>\"000000\",\"BlanchedAlmond\"=>\"FFEBCD\",\"Blue\"=>\"0000FF\",\"BlueViolet\"=>\"8A2BE2\",\"Brown\"=>\"A52A2A\",\"BurlyWood\"=>\"DEB887\",\"CadetBlue\"=>\"5F9EA0\",\"Chartreuse\"=>\"7FFF00\",\"Chocolate\"=>\"D2691E\",\"Coral\"=>\"FF7F50\",\"CornflowerBlue\"=>\"6495ED\",\"Cornsilk\"=>\"FFF8DC\",\"Crimson\"=>\"DC143C\",\"Cyan\"=>\"00FFFF\",\"DarkBlue\"=>\"00008B\",\"DarkCyan\"=>\"008B8B\",\"DarkGoldenRod\"=>\"B8860B\",\"DarkGray\"=>\"A9A9A9\",\"DarkGrey\"=>\"A9A9A9\",\"DarkGreen\"=>\"006400\",\"DarkKhaki\"=>\"BDB76B\",\"DarkMagenta\"=>\"8B008B\",\"DarkOliveGreen\"=>\"556B2F\",\"Darkorange\"=>\"FF8C00\",\"DarkOrchid\"=>\"9932CC\",\"DarkRed\"=>\"8B0000\",\"DarkSalmon\"=>\"E9967A\",\"DarkSeaGreen\"=>\"8FBC8F\",\"DarkSlateBlue\"=>\"483D8B\",\"DarkSlateGray\"=>\"2F4F4F\",\"DarkSlateGrey\"=>\"2F4F4F\",\"DarkTurquoise\"=>\"00CED1\",\"DarkViolet\"=>\"9400D3\",\"DeepPink\"=>\"FF1493\",\"DeepSkyBlue\"=>\"00BFFF\",\"DimGray\"=>\"696969\",\"DimGrey\"=>\"696969\",\"DodgerBlue\"=>\"1E90FF\",\"FireBrick\"=>\"B22222\",\"FloralWhite\"=>\"FFFAF0\",\"ForestGreen\"=>\"228B22\",\"Fuchsia\"=>\"FF00FF\",\"Gainsboro\"=>\"DCDCDC\",\"GhostWhite\"=>\"F8F8FF\",\"Gold\"=>\"FFD700\",\"GoldenRod\"=>\"DAA520\",\"Gray\"=>\"808080\",\"Grey\"=>\"808080\",\"Green\"=>\"008000\",\"GreenYellow\"=>\"ADFF2F\",\"HoneyDew\"=>\"F0FFF0\",\"HotPink\"=>\"FF69B4\",\"IndianRed\"=>\"CD5C5C\",\"Indigo\"=>\"4B0082\",\"Ivory\"=>\"FFFFF0\",\n \"Khaki\"=>\"F0E68C\",\"Lavender\"=>\"E6E6FA\",\"LavenderBlush\"=>\"FFF0F5\",\"LawnGreen\"=>\"7CFC00\",\"LemonChiffon\"=>\"FFFACD\",\"LightBlue\"=>\"ADD8E6\",\"LightCoral\"=>\"F08080\",\"LightCyan\"=>\"E0FFFF\",\"LightGoldenRodYellow\"=>\"FAFAD2\",\"LightGray\"=>\"D3D3D3\",\"LightGrey\"=>\"D3D3D3\",\"LightGreen\"=>\"90EE90\",\"LightPink\"=>\"FFB6C1\",\"LightSalmon\"=>\"FFA07A\",\"LightSeaGreen\"=>\"20B2AA\",\"LightSkyBlue\"=>\"87CEFA\",\"LightSlateGray\"=>\"778899\",\"LightSlateGrey\"=>\"778899\",\"LightSteelBlue\"=>\"B0C4DE\",\"LightYellow\"=>\"FFFFE0\",\"Lime\"=>\"00FF00\",\"LimeGreen\"=>\"32CD32\",\"Linen\"=>\"FAF0E6\",\"Magenta\"=>\"FF00FF\",\"Maroon\"=>\"800000\",\"MediumAquaMarine\"=>\"66CDAA\",\"MediumBlue\"=>\"0000CD\",\"MediumOrchid\"=>\"BA55D3\",\"MediumPurple\"=>\"9370D8\",\"MediumSeaGreen\"=>\"3CB371\",\"MediumSlateBlue\"=>\"7B68EE\",\"MediumSpringGreen\"=>\"00FA9A\",\"MediumTurquoise\"=>\"48D1CC\",\"MediumVioletRed\"=>\"C71585\",\"MidnightBlue\"=>\"191970\",\"MintCream\"=>\"F5FFFA\",\"MistyRose\"=>\"FFE4E1\",\"Moccasin\"=>\"FFE4B5\",\"NavajoWhite\"=>\"FFDEAD\",\"Navy\"=>\"000080\",\"OldLace\"=>\"FDF5E6\",\"Olive\"=>\"808000\",\"OliveDrab\"=>\"6B8E23\",\"Orange\"=>\"FFA500\",\"OrangeRed\"=>\"FF4500\",\"Orchid\"=>\"DA70D6\",\"PaleGoldenRod\"=>\"EEE8AA\",\"PaleGreen\"=>\"98FB98\",\"PaleTurquoise\"=>\"AFEEEE\",\"PaleVioletRed\"=>\"D87093\",\"PapayaWhip\"=>\"FFEFD5\",\"PeachPuff\"=>\"FFDAB9\",\"Peru\"=>\"CD853F\",\"Pink\"=>\"FFC0CB\",\"Plum\"=>\"DDA0DD\",\"PowderBlue\"=>\"B0E0E6\",\"Purple\"=>\"800080\",\"Red\"=>\"FF0000\",\"RosyBrown\"=>\"BC8F8F\",\"RoyalBlue\"=>\"4169E1\",\"SaddleBrown\"=>\"8B4513\",\"Salmon\"=>\"FA8072\",\"SandyBrown\"=>\"F4A460\",\"SeaGreen\"=>\"2E8B57\",\"SeaShell\"=>\"FFF5EE\",\"Sienna\"=>\"A0522D\",\"Silver\"=>\"C0C0C0\",\"SkyBlue\"=>\"87CEEB\",\"SlateBlue\"=>\"6A5ACD\",\"SlateGray\"=>\"708090\",\"SlateGrey\"=>\"708090\",\"Snow\"=>\"FFFAFA\",\"SpringGreen\"=>\"00FF7F\",\"SteelBlue\"=>\"4682B4\",\"Tan\"=>\"D2B48C\",\"Teal\"=>\"008080\",\"Thistle\"=>\"D8BFD8\",\"Tomato\"=>\"FF6347\",\"Turquoise\"=>\"40E0D0\",\"Violet\"=>\"EE82EE\",\"Wheat\"=>\"F5DEB3\",\"White\"=>\"FFFFFF\",\"WhiteSmoke\"=>\"F5F5F5\",\"Yellow\"=>\"FFFF00\",\"YellowGreen\"=>\"9ACD32\");\n \n foreach($css_color_names as &$c)\n\t$c = \"#\".$c;\n\n //sort array by key lenght so we first search for LightGreen and then for Green\n uksort($css_color_names, \"keycmp\");\n //removing \"LightGrey\" etc\n $css = str_ireplace( array_keys($css_color_names), array_values($css_color_names), $css );\n //desaturating #f1A etc\n $css = preg_replace_callback(\"/#([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])\\b/\",\"parseHexColor\",$css);\n //desaturating #f562A3 etc\n $css = preg_replace_callback(\"/#([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})\\b/\",\"parseHexColor\",$css);\n //desaturating rgb(1,23,120) etc\n $css = preg_replace_callback(\"/rgb\\(\\s*\\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\b\\s*,\\s*\\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\b\\s*,\\s*\\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\b\\s*\\)/i\",\"parseRgbColor\",$css);\n //desaturating rgb(10%,5%,100%) etc\n $css = preg_replace_callback(\"/rgb\\(\\s*(\\d?\\d%|100%)+\\s*,\\s*(\\d?\\d%|100%)+\\s*,\\s*(\\d?\\d%|100%)+\\s*\\)/i\",\"parsePercentColor\",$css);\n \n return $css;\n}", "title": "" }, { "docid": "0acf97d98c60ec33fd92c8b66db2c472", "score": "0.44900844", "text": "function jw_faq_title_bg_color() {\n\tif ( get_post_meta( get_the_ID(), 'faq-title-bg-color', true ) ) {\n\t\techo get_post_meta( get_the_ID(), 'faq-title-bg-color', true );\n\t} else {\n\t\techo jltmaf_options('faq-title-bg-color', 'jltmaf_content' );\n\t}\n}", "title": "" }, { "docid": "ccdac63397930694de7df236040bae2c", "score": "0.44847482", "text": "function woobizz_productlist_hextorgb($hex){\n\t$hex = str_replace(\"#\", \"\", $hex);\nif(strlen($hex) == 3){\n\t$r = hexdec(substr($hex,0,1).substr($hex,0,1));\n\t$g = hexdec(substr($hex,1,1).substr($hex,1,1));\n\t$b = hexdec(substr($hex,2,1).substr($hex,2,1));\n}else{\n\t$r = hexdec(substr($hex,0,2));\n\t$g = hexdec(substr($hex,2,2));\n\t$b = hexdec(substr($hex,4,2));\n}\n$rgb = array($r, $g, $b);\nreturn implode(\",\", $rgb); \n}", "title": "" }, { "docid": "804df0cfa47c657feeae47b8b4ad1d11", "score": "0.447678", "text": "function jw_faq_border_color() {\n\tif ( get_post_meta( get_the_ID(), 'faq-border-color', true ) ) {\n\n\t\techo get_post_meta( get_the_ID(), 'faq-border-color', true );\n\n\t} else {\n\t\techo jltmaf_options('faq-border-color', 'jltmaf_content' );\n\t}\n}", "title": "" }, { "docid": "2a646ef5dc1206728723f3ed410ca470", "score": "0.4467177", "text": "private function parseEntitiesColor(){\n\t\tif ($this->PeekChar('#') && ($rgb = $this->MatchReg('/\\\\G#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/'))) {\n\t\t\treturn $this->NewObj1('Less_Tree_Color',$rgb[1]);\n\t\t}\n\t}", "title": "" }, { "docid": "42ba488ee1576d871a0d8c843d3a0ff8", "score": "0.44535664", "text": "public static function parseHexcodes($dict) {\n $replacement = '<div class=\"pull-right\" style=\"background-color: ${0}; width: 25px; height: 25px;\"></div> ${0}';\n $i = 0;\n foreach($dict as $key => $value) {\n foreach($value as $key2 => $value2) {\n $test = preg_replace('/^#[a-f0-9]{6}$/i', $replacement, $value2);\n if ($test) {\n $dict[$i][$key2] = $test;\n }\n }\n $i++;\n }\n return $dict;\n }", "title": "" }, { "docid": "b1a0246d01ff382084ae083798f51a85", "score": "0.44474718", "text": "public function colorize($string, $fg = null, $bg = null)\n {\n if (stripos(PHP_OS, 'win') === false) {\n $fgColor = $this->getColorCode($fg, 'foreground');\n $bgColor = $this->getColorCode($bg, 'background');\n return ($fgColor !== null ? \"\\x1b[\" . $fgColor . 'm' : '') .\n ($bgColor !== null ? \"\\x1b[\" . $bgColor . 'm' : '') . $string . \"\\x1b[0m\";\n } else {\n return $string;\n }\n }", "title": "" }, { "docid": "50041611946b51bd898b5f330776e0c9", "score": "0.4431942", "text": "private function step3b()\n {\n if ($this->searchIfInRv(array('ch')) !== false) {\n $this->word = preg_replace('#(ch)$#u', 'c', $this->word);\n\n } elseif ($this->searchIfInRv(array('gh')) !== false) {\n $this->word = preg_replace('#(gh)$#u', 'g', $this->word);\n }\n }", "title": "" }, { "docid": "e2de9fef958c162e4b5a50a2367eaf1c", "score": "0.4420821", "text": "function ncurses_color_content($color, &$r, &$g, &$b) {}", "title": "" }, { "docid": "9436ff91865c28463e0cbb6678d73e42", "score": "0.4417459", "text": "function f_clear()\n{\n echo \"\\033c\";\n}", "title": "" }, { "docid": "a662bea7b5749509ec6628fa592762e1", "score": "0.43936434", "text": "function fk_get_all_font_classes() {\n\t\treturn array(\n\t\t\t\"ba-5\",\n\t\t\t\"ba-zoom11\",\n\t\t\t\"ba-add22\",\n\t\t\t\"ba-add23\",\n\t\t\t\"ba-add24\",\n\t\t\t\"ba-address5\",\n\t\t\t\"ba-alarm\",\n\t\t\t\"ba-align\",\n\t\t\t\"ba-align1\",\n\t\t\t\"ba-align2\",\n\t\t\t\"ba-align3\",\n\t\t\t\"ba-align4\",\n\t\t\t\"ba-align5\",\n\t\t\t\"ba-arrow57\",\n\t\t\t\"ba-arrow58\",\n\t\t\t\"ba-arrow59\",\n\t\t\t\"ba-asterisk\",\n\t\t\t\"ba-at1\",\n\t\t\t\"ba-attachment\",\n\t\t\t\"ba-attachment2\",\n\t\t\t\"ba-audio3\",\n\t\t\t\"ba-audio4\",\n\t\t\t\"ba-audio5\",\n\t\t\t\"ba-audio6\",\n\t\t\t\"ba-average1\",\n\t\t\t\"ba-battery10\",\n\t\t\t\"ba-battery11\",\n\t\t\t\"ba-battery12\",\n\t\t\t\"ba-battery13\",\n\t\t\t\"ba-battery14\",\n\t\t\t\"ba-battery15\",\n\t\t\t\"ba-battery16\",\n\t\t\t\"ba-battery5\",\n\t\t\t\"ba-battery6\",\n\t\t\t\"ba-battery7\",\n\t\t\t\"ba-battery8\",\n\t\t\t\"ba-battery9\",\n\t\t\t\"ba-bell2\",\n\t\t\t\"ba-bell3\",\n\t\t\t\"ba-bell4\",\n\t\t\t\"ba-big40\",\n\t\t\t\"ba-big45\",\n\t\t\t\"ba-big48\",\n\t\t\t\"ba-big53\",\n\t\t\t\"ba-big54\",\n\t\t\t\"ba-bin1\",\n\t\t\t\"ba-bin3\",\n\t\t\t\"ba-black28\",\n\t\t\t\"ba-black31\",\n\t\t\t\"ba-black32\",\n\t\t\t\"ba-black39\",\n\t\t\t\"ba-black40\",\n\t\t\t\"ba-boat\",\n\t\t\t\"ba-book4\",\n\t\t\t\"ba-book5\",\n\t\t\t\"ba-book6\",\n\t\t\t\"ba-bookmark\",\n\t\t\t\"ba-botton10\",\n\t\t\t\"ba-botton11\",\n\t\t\t\"ba-botton7\",\n\t\t\t\"ba-botton8\",\n\t\t\t\"ba-botton9\",\n\t\t\t\"ba-brightness3\",\n\t\t\t\"ba-brightness4\",\n\t\t\t\"ba-browser\",\n\t\t\t\"ba-browser1\",\n\t\t\t\"ba-browser11\",\n\t\t\t\"ba-browser19\",\n\t\t\t\"ba-browser2\",\n\t\t\t\"ba-browser3\",\n\t\t\t\"ba-browser4\",\n\t\t\t\"ba-browser5\",\n\t\t\t\"ba-browser6\",\n\t\t\t\"ba-browser7\",\n\t\t\t\"ba-bulb\",\n\t\t\t\"ba-bullet\",\n\t\t\t\"ba-bullhorn\",\n\t\t\t\"ba-calendar4\",\n\t\t\t\"ba-camera4\",\n\t\t\t\"ba-camera5\",\n\t\t\t\"ba-campane\",\n\t\t\t\"ba-cassette\",\n\t\t\t\"ba-center\",\n\t\t\t\"ba-clipboard2\",\n\t\t\t\"ba-clipboard3\",\n\t\t\t\"ba-clock3\",\n\t\t\t\"ba-close2\",\n\t\t\t\"ba-cloud10\",\n\t\t\t\"ba-cloud11\",\n\t\t\t\"ba-cloud12\",\n\t\t\t\"ba-cloud13\",\n\t\t\t\"ba-cloud9\",\n\t\t\t\"ba-code2\",\n\t\t\t\"ba-commit\",\n\t\t\t\"ba-compose\",\n\t\t\t\"ba-compose1\",\n\t\t\t\"ba-compose2\",\n\t\t\t\"ba-compose3\",\n\t\t\t\"ba-contract\",\n\t\t\t\"ba-contract1\",\n\t\t\t\"ba-contrast1\",\n\t\t\t\"ba-converge\",\n\t\t\t\"ba-crate\",\n\t\t\t\"ba-credit1\",\n\t\t\t\"ba-credit4\",\n\t\t\t\"ba-credit5\",\n\t\t\t\"ba-cross2\",\n\t\t\t\"ba-curlybrace\",\n\t\t\t\"ba-curlybrace1\",\n\t\t\t\"ba-curve2\",\n\t\t\t\"ba-curves\",\n\t\t\t\"ba-database10\",\n\t\t\t\"ba-database9\",\n\t\t\t\"ba-databases\",\n\t\t\t\"ba-day\",\n\t\t\t\"ba-day2\",\n\t\t\t\"ba-delete12\",\n\t\t\t\"ba-delete13\",\n\t\t\t\"ba-distribute\",\n\t\t\t\"ba-distribute1\",\n\t\t\t\"ba-distribute2\",\n\t\t\t\"ba-distribute3\",\n\t\t\t\"ba-distribute4\",\n\t\t\t\"ba-distribute5\",\n\t\t\t\"ba-document2\",\n\t\t\t\"ba-document3\",\n\t\t\t\"ba-document4\",\n\t\t\t\"ba-drawer\",\n\t\t\t\"ba-drizzle\",\n\t\t\t\"ba-droplet\",\n\t\t\t\"ba-envelope\",\n\t\t\t\"ba-exchange\",\n\t\t\t\"ba-exclude\",\n\t\t\t\"ba-expand2\",\n\t\t\t\"ba-expand6\",\n\t\t\t\"ba-expand7\",\n\t\t\t\"ba-expand8\",\n\t\t\t\"ba-favorite6\",\n\t\t\t\"ba-fivepointed2\",\n\t\t\t\"ba-flag2\",\n\t\t\t\"ba-flag3\",\n\t\t\t\"ba-flask\",\n\t\t\t\"ba-flask1\",\n\t\t\t\"ba-floppy\",\n\t\t\t\"ba-flux\",\n\t\t\t\"ba-fog\",\n\t\t\t\"ba-folder10\",\n\t\t\t\"ba-folder11\",\n\t\t\t\"ba-folder15\",\n\t\t\t\"ba-folder7\",\n\t\t\t\"ba-folder8\",\n\t\t\t\"ba-folder9\",\n\t\t\t\"ba-framework\",\n\t\t\t\"ba-grid\",\n\t\t\t\"ba-grid3\",\n\t\t\t\"ba-headset\",\n\t\t\t\"ba-heart18\",\n\t\t\t\"ba-heart9\",\n\t\t\t\"ba-helm\",\n\t\t\t\"ba-home15\",\n\t\t\t\"ba-home2\",\n\t\t\t\"ba-home4\",\n\t\t\t\"ba-image1\",\n\t\t\t\"ba-inbox1\",\n\t\t\t\"ba-inbox2\",\n\t\t\t\"ba-infinity2\",\n\t\t\t\"ba-internet3\",\n\t\t\t\"ba-intersect\",\n\t\t\t\"ba-intro\",\n\t\t\t\"ba-key3\",\n\t\t\t\"ba-layout\",\n\t\t\t\"ba-layout1\",\n\t\t\t\"ba-layout2\",\n\t\t\t\"ba-layout3\",\n\t\t\t\"ba-layout4\",\n\t\t\t\"ba-layout5\",\n\t\t\t\"ba-layout6\",\n\t\t\t\"ba-left19\",\n\t\t\t\"ba-left24\",\n\t\t\t\"ba-line6\",\n\t\t\t\"ba-7\",\n\t\t\t\"ba-list4\",\n\t\t\t\"ba-list5\",\n\t\t\t\"ba-list7\",\n\t\t\t\"ba-load\",\n\t\t\t\"ba-locked2\",\n\t\t\t\"ba-low4\",\n\t\t\t\"ba-mail1\",\n\t\t\t\"ba-mail2\",\n\t\t\t\"ba-mail3\",\n\t\t\t\"ba-map1\",\n\t\t\t\"ba-map2\",\n\t\t\t\"ba-marquee\",\n\t\t\t\"ba-marquee1\",\n\t\t\t\"ba-marquee2\",\n\t\t\t\"ba-marquee3\",\n\t\t\t\"ba-marquee5\",\n\t\t\t\"ba-marquee6\",\n\t\t\t\"ba-maximise\",\n\t\t\t\"ba-menu4\",\n\t\t\t\"ba-menu5\",\n\t\t\t\"ba-microphone5\",\n\t\t\t\"ba-minus\",\n\t\t\t\"ba-mizzle\",\n\t\t\t\"ba-new3\",\n\t\t\t\"ba-newspaper\",\n\t\t\t\"ba-newspaper1\",\n\t\t\t\"ba-next3\",\n\t\t\t\"ba-nib\",\n\t\t\t\"ba-nope\",\n\t\t\t\"ba-north\",\n\t\t\t\"ba-notes\",\n\t\t\t\"ba-old2\",\n\t\t\t\"ba-out1\",\n\t\t\t\"ba-outbox\",\n\t\t\t\"ba-outbox1\",\n\t\t\t\"ba-outgoing\",\n\t\t\t\"ba-outgoing1\",\n\t\t\t\"ba-paper6\",\n\t\t\t\"ba-paper8\",\n\t\t\t\"ba-paragrap\",\n\t\t\t\"ba-paragraph1\",\n\t\t\t\"ba-paragraph13\",\n\t\t\t\"ba-paragraph3\",\n\t\t\t\"ba-paragraph4\",\n\t\t\t\"ba-paragraph5\",\n\t\t\t\"ba-paragraph6\",\n\t\t\t\"ba-paragraph8\",\n\t\t\t\"ba-partially\",\n\t\t\t\"ba-pause4\",\n\t\t\t\"ba-pen6\",\n\t\t\t\"ba-pencil6\",\n\t\t\t\"ba-piano\",\n\t\t\t\"ba-pin7\",\n\t\t\t\"ba-pin8\",\n\t\t\t\"ba-plume\",\n\t\t\t\"ba-plus3\",\n\t\t\t\"ba-podcast\",\n\t\t\t\"ba-podcast1\",\n\t\t\t\"ba-polaroid\",\n\t\t\t\"ba-polaroid1\",\n\t\t\t\"ba-postage\",\n\t\t\t\"ba-power5\",\n\t\t\t\"ba-previous1\",\n\t\t\t\"ba-print\",\n\t\t\t\"ba-professional\",\n\t\t\t\"ba-pull\",\n\t\t\t\"ba-pullup\",\n\t\t\t\"ba-quill\",\n\t\t\t\"ba-rectangular\",\n\t\t\t\"ba-reduce\",\n\t\t\t\"ba-refresh1\",\n\t\t\t\"ba-reminder\",\n\t\t\t\"ba-remove\",\n\t\t\t\"ba-repeat\",\n\t\t\t\"ba-return2\",\n\t\t\t\"ba-return3\",\n\t\t\t\"ba-revert\",\n\t\t\t\"ba-rewind9\",\n\t\t\t\"ba-ripped\",\n\t\t\t\"ba-road2\",\n\t\t\t\"ba-rounded1\",\n\t\t\t\"ba-rounded11\",\n\t\t\t\"ba-rulers\",\n\t\t\t\"ba-safe\",\n\t\t\t\"ba-search\",\n\t\t\t\"ba-search4\",\n\t\t\t\"ba-seccin\",\n\t\t\t\"ba-send5\",\n\t\t\t\"ba-settings\",\n\t\t\t\"ba-settings2\",\n\t\t\t\"ba-shred\",\n\t\t\t\"ba-shuffle\",\n\t\t\t\"ba-sing\",\n\t\t\t\"ba-sleep1\",\n\t\t\t\"ba-small40\",\n\t\t\t\"ba-small41\",\n\t\t\t\"ba-small42\",\n\t\t\t\"ba-small43\",\n\t\t\t\"ba-small44\",\n\t\t\t\"ba-small45\",\n\t\t\t\"ba-small46\",\n\t\t\t\"ba-small47\",\n\t\t\t\"ba-small52\",\n\t\t\t\"ba-spam\",\n\t\t\t\"ba-spam1\",\n\t\t\t\"ba-speech10\",\n\t\t\t\"ba-speech11\",\n\t\t\t\"ba-speech17\",\n\t\t\t\"ba-speech3\",\n\t\t\t\"ba-speech4\",\n\t\t\t\"ba-speech5\",\n\t\t\t\"ba-speeck\",\n\t\t\t\"ba-spinner\",\n\t\t\t\"ba-spinner1\",\n\t\t\t\"ba-spinner3\",\n\t\t\t\"ba-split\",\n\t\t\t\"ba-split1\",\n\t\t\t\"ba-spool\",\n\t\t\t\"ba-square19\",\n\t\t\t\"ba-stamp\",\n\t\t\t\"ba-stamp1\",\n\t\t\t\"ba-star3\",\n\t\t\t\"ba-stiffy\",\n\t\t\t\"ba-stop3\",\n\t\t\t\"ba-stopwatch\",\n\t\t\t\"ba-store\",\n\t\t\t\"ba-substract\",\n\t\t\t\"ba-support\",\n\t\t\t\"ba-support2\",\n\t\t\t\"ba-swap\",\n\t\t\t\"ba-swap1\",\n\t\t\t\"ba-swatch\",\n\t\t\t\"ba-swatches\",\n\t\t\t\"ba-switch2\",\n\t\t\t\"ba-switch3\",\n\t\t\t\"ba-symbol2\",\n\t\t\t\"ba-tag3\",\n\t\t\t\"ba-tag4\",\n\t\t\t\"ba-tag5\",\n\t\t\t\"ba-tag7\",\n\t\t\t\"ba-terminal2\",\n\t\t\t\"ba-terminal5\",\n\t\t\t\"ba-terminal6\",\n\t\t\t\"ba-thermometer2\",\n\t\t\t\"ba-three12\",\n\t\t\t\"ba-tick1\",\n\t\t\t\"ba-tilde\",\n\t\t\t\"ba-timeline1\",\n\t\t\t\"ba-toggle\",\n\t\t\t\"ba-toggle1\",\n\t\t\t\"ba-top\",\n\t\t\t\"ba-transfer\",\n\t\t\t\"ba-unite\",\n\t\t\t\"ba-unlocked2\",\n\t\t\t\"ba-unwatch\",\n\t\t\t\"ba-upload5\",\n\t\t\t\"ba-user10\",\n\t\t\t\"ba-user11\",\n\t\t\t\"ba-user13\",\n\t\t\t\"ba-user7\",\n\t\t\t\"ba-user8\",\n\t\t\t\"ba-user9\",\n\t\t\t\"ba-users\",\n\t\t\t\"ba-video4\",\n\t\t\t\"ba-video8\",\n\t\t\t\"ba-vinyl\",\n\t\t\t\"ba-voicemail\",\n\t\t\t\"ba-wallet2\",\n\t\t\t\"ba-wallet3\",\n\t\t\t\"ba-watch1\",\n\t\t\t\"ba-wave\",\n\t\t\t\"ba-wave1\",\n\t\t\t\"ba-web1\",\n\t\t\t\"ba-web2\",\n\t\t\t\"ba-wifi10\",\n\t\t\t\"ba-wifi4\",\n\t\t\t\"ba-wifi8\",\n\t\t\t\"ba-windows4\",\n\t\t\t\"ba-zoom10\",\n\t\t\t\"ba-link6\",\n\t\t\t\"bc-code\",\n\t\t\t\"bc-battery\",\n\t\t\t\"bc-target\",\n\t\t\t\"bc-winsows\",\n\t\t\t\"bc-atom\",\n\t\t\t\"bc-credit-card\",\n\t\t\t\"bc-database\",\n\t\t\t\"bc-button\",\n\t\t\t\"bc-disk\",\n\t\t\t\"bc-lamp\",\n\t\t\t\"bc-camera\",\n\t\t\t\"bc-bookmark\",\n\t\t\t\"bc-shit\",\n\t\t\t\"bc-smiley\",\n\t\t\t\"bc-stop\",\n\t\t\t\"bc-address-book\",\n\t\t\t\"bc-diary\",\n\t\t\t\"bc-trophy\",\n\t\t\t\"bc-filter\",\n\t\t\t\"bc-floppy\",\n\t\t\t\"bc-crop\",\n\t\t\t\"bc-keyboard\",\n\t\t\t\"bc-paperclip\",\n\t\t\t\"bc-forward\",\n\t\t\t\"bc-target-2\",\n\t\t\t\"bc-stats\",\n\t\t\t\"bc-volume\",\n\t\t\t\"bc-volume-2\",\n\t\t\t\"bc-grid\",\n\t\t\t\"bc-list\",\n\t\t\t\"bc-compass\",\n\t\t\t\"bc-ampersand\",\n\t\t\t\"bc-bolt\",\n\t\t\t\"bc-trashcan\",\n\t\t\t\"bc-ipod\",\n\t\t\t\"bc-flag\",\n\t\t\t\"bc-basket\",\n\t\t\t\"bc-coffee\",\n\t\t\t\"bc-alarm\",\n\t\t\t\"bc-cone\",\n\t\t\t\"bc-gift\",\n\t\t\t\"bc-skype\",\n\t\t\t\"bc-cancel\",\n\t\t\t\"bc-checkmark\",\n\t\t\t\"bc-move\",\n\t\t\t\"bc-headphones\",\n\t\t\t\"bc-thumbs-down\",\n\t\t\t\"bc-thumbs-up\",\n\t\t\t\"bc-pointer\",\n\t\t\t\"bc-star\",\n\t\t\t\"bc-phone\",\n\t\t\t\"bc-tag\",\n\t\t\t\"bc-location\",\n\t\t\t\"bc-refresh\",\n\t\t\t\"bc-mouse\",\n\t\t\t\"bc-droplet\",\n\t\t\t\"bc-mobile\",\n\t\t\t\"bc-monitor\",\n\t\t\t\"bc-window\",\n\t\t\t\"bc-calendar\",\n\t\t\t\"bc-wrench\",\n\t\t\t\"bc-bookmark-2\",\n\t\t\t\"bc-heart\",\n\t\t\t\"bc-eye\",\n\t\t\t\"bc-info\",\n\t\t\t\"bc-location-2\",\n\t\t\t\"bc-earth\",\n\t\t\t\"bc-home\",\n\t\t\t\"bc-type\",\n\t\t\t\"bc-film\",\n\t\t\t\"bc-console\",\n\t\t\t\"bc-bug\",\n\t\t\t\"bc-pause\",\n\t\t\t\"bc-play\",\n\t\t\t\"bc-target-3\",\n\t\t\t\"bc-blocked\",\n\t\t\t\"bc-feed\",\n\t\t\t\"bc-forrst\",\n\t\t\t\"bc-dribbble\",\n\t\t\t\"bc-search\",\n\t\t\t\"bc-camera-2\",\n\t\t\t\"bc-folder\",\n\t\t\t\"bc-picture\",\n\t\t\t\"bc-minus\",\n\t\t\t\"bc-plus\",\n\t\t\t\"bc-file\",\n\t\t\t\"bc-apple\",\n\t\t\t\"bc-chart\",\n\t\t\t\"bc-key\",\n\t\t\t\"bc-star-2\",\n\t\t\t\"bc-switch\",\n\t\t\t\"bc-frame\",\n\t\t\t\"bc-pencil\",\n\t\t\t\"bc-twitter\",\n\t\t\t\"bc-music\",\n\t\t\t\"bc-cog\",\n\t\t\t\"bc-user\",\n\t\t\t\"bc-clock\",\n\t\t\t\"bc-contrast\",\n\t\t\t\"bc-cart\",\n\t\t\t\"bc-briefcase\",\n\t\t\t\"bc-envelope\",\n\t\t\t\"bc-mic\",\n\t\t\t\"bc-comment\",\n\t\t\t\"bc-inbox\",\n\t\t\t\"bc-locked\",\n\t\t\t\"bc-cloud\",\n\t\t\t\"bc-warning\",\n\t\t\t\"bk-number\",\n\t\t\t\"bk-number-2\",\n\t\t\t\"bk-number-3\",\n\t\t\t\"bk-number-4\",\n\t\t\t\"bk-number-5\",\n\t\t\t\"bk-number-6\",\n\t\t\t\"bk-number-7\",\n\t\t\t\"bk-number-8\",\n\t\t\t\"bk-number-9\",\n\t\t\t\"bk-number-10\",\n\t\t\t\"bk-number-11\",\n\t\t\t\"bk-number-12\",\n\t\t\t\"bk-number-13\",\n\t\t\t\"bk-number-14\",\n\t\t\t\"bk-number-15\",\n\t\t\t\"bk-number-16\",\n\t\t\t\"bk-number-17\",\n\t\t\t\"bk-number-18\",\n\t\t\t\"bk-number-19\",\n\t\t\t\"bk-number-20\",\n\t\t\t\"bk-quote\",\n\t\t\t\"bk-quote-2\",\n\t\t\t\"bk-tag\",\n\t\t\t\"bk-tag-2\",\n\t\t\t\"bk-link\",\n\t\t\t\"bk-link-2\",\n\t\t\t\"bk-cabinet\",\n\t\t\t\"bk-cabinet-2\",\n\t\t\t\"bk-calendar\",\n\t\t\t\"bk-calendar-2\",\n\t\t\t\"bk-calendar-3\",\n\t\t\t\"bk-file\",\n\t\t\t\"bk-file-2\",\n\t\t\t\"bk-file-3\",\n\t\t\t\"bk-files\",\n\t\t\t\"bk-phone\",\n\t\t\t\"bk-tablet\",\n\t\t\t\"bk-window\",\n\t\t\t\"bk-monitor\",\n\t\t\t\"bk-ipod\",\n\t\t\t\"bk-tv\",\n\t\t\t\"bk-camera\",\n\t\t\t\"bk-camera-2\",\n\t\t\t\"bk-camera-3\",\n\t\t\t\"bk-film\",\n\t\t\t\"bk-film-2\",\n\t\t\t\"bk-film-3\",\n\t\t\t\"bk-microphone\",\n\t\t\t\"bk-microphone-2\",\n\t\t\t\"bk-microphone-3\",\n\t\t\t\"bk-drink\",\n\t\t\t\"bk-drink-2\",\n\t\t\t\"bk-drink-3\",\n\t\t\t\"bk-drink-4\",\n\t\t\t\"bk-coffee\",\n\t\t\t\"bk-mug\",\n\t\t\t\"bk-ice-cream\",\n\t\t\t\"bk-cake\",\n\t\t\t\"bk-inbox\",\n\t\t\t\"bk-download\",\n\t\t\t\"bk-upload\",\n\t\t\t\"bk-inbox-2\",\n\t\t\t\"bk-checkmark\",\n\t\t\t\"bk-checkmark-2\",\n\t\t\t\"bk-cancel\",\n\t\t\t\"bk-cancel-2\",\n\t\t\t\"bk-plus\",\n\t\t\t\"bk-plus-2\",\n\t\t\t\"bk-minus\",\n\t\t\t\"bk-minus-2\",\n\t\t\t\"bk-notice\",\n\t\t\t\"bk-notice-2\",\n\t\t\t\"bk-cog\",\n\t\t\t\"bk-cogs\",\n\t\t\t\"bk-cog-2\",\n\t\t\t\"bk-warning\",\n\t\t\t\"bk-health\",\n\t\t\t\"bk-suitcase\",\n\t\t\t\"bk-suitcase-2\",\n\t\t\t\"bk-suitcase-3\",\n\t\t\t\"bk-picture\",\n\t\t\t\"bk-pictures\",\n\t\t\t\"bk-pictures-2\",\n\t\t\t\"bk-android\",\n\t\t\t\"bk-marvin\",\n\t\t\t\"bk-pacman\",\n\t\t\t\"bk-cassette\",\n\t\t\t\"bk-watch\",\n\t\t\t\"bk-chronometer\",\n\t\t\t\"bk-watch-2\",\n\t\t\t\"bk-alarm-clock\",\n\t\t\t\"bk-time\",\n\t\t\t\"bk-time-2\",\n\t\t\t\"bk-headphones\",\n\t\t\t\"bk-wallet\",\n\t\t\t\"bk-checkmark-3\",\n\t\t\t\"bk-cancel-3\",\n\t\t\t\"bk-eye\",\n\t\t\t\"bk-position\",\n\t\t\t\"bk-site-map\",\n\t\t\t\"bk-site-map-2\",\n\t\t\t\"bk-cloud\",\n\t\t\t\"bk-upload-2\",\n\t\t\t\"bk-chart\",\n\t\t\t\"bk-chart-2\",\n\t\t\t\"bk-chart-3\",\n\t\t\t\"bk-chart-4\",\n\t\t\t\"bk-chart-5\",\n\t\t\t\"bk-chart-6\",\n\t\t\t\"bk-location\",\n\t\t\t\"bk-download-2\",\n\t\t\t\"bk-basket\",\n\t\t\t\"bk-folder\",\n\t\t\t\"bk-gamepad\",\n\t\t\t\"bk-alarm\",\n\t\t\t\"bk-alarm-cancel\",\n\t\t\t\"bk-phone-2\",\n\t\t\t\"bk-phone-3\",\n\t\t\t\"bk-image\",\n\t\t\t\"bk-open\",\n\t\t\t\"bk-sale\",\n\t\t\t\"bk-direction\",\n\t\t\t\"bk-map\",\n\t\t\t\"bk-trashcan\",\n\t\t\t\"bk-vote\",\n\t\t\t\"bk-graduate\",\n\t\t\t\"bk-lab\",\n\t\t\t\"bk-tie\",\n\t\t\t\"bk-football\",\n\t\t\t\"bk-eight-ball\",\n\t\t\t\"bk-bowling\",\n\t\t\t\"bk-bowling-pin\",\n\t\t\t\"bk-baseball\",\n\t\t\t\"bk-soccer\",\n\t\t\t\"bk-3d-glasses\",\n\t\t\t\"bk-microwave\",\n\t\t\t\"bk-refrigerator\",\n\t\t\t\"bk-oven\",\n\t\t\t\"bk-washing-machine\",\n\t\t\t\"bk-mouse\",\n\t\t\t\"bk-smiley\",\n\t\t\t\"bk-sad\",\n\t\t\t\"bk-mute\",\n\t\t\t\"bk-hand\",\n\t\t\t\"bk-radio\",\n\t\t\t\"bk-satellite\",\n\t\t\t\"bk-medal\",\n\t\t\t\"bk-medal-2\",\n\t\t\t\"bk-switch\",\n\t\t\t\"bk-key\",\n\t\t\t\"bk-cord\",\n\t\t\t\"bk-locked\",\n\t\t\t\"bk-unlocked\",\n\t\t\t\"bk-locked-2\",\n\t\t\t\"bk-unlocked-2\",\n\t\t\t\"bk-magnifier\",\n\t\t\t\"bk-zoom-in\",\n\t\t\t\"bk-zoom-out\",\n\t\t\t\"bk-stack\",\n\t\t\t\"bk-stack-2\",\n\t\t\t\"bk-stack-3\",\n\t\t\t\"bk-david-star\",\n\t\t\t\"bk-cross\",\n\t\t\t\"bk-moon-and-star\",\n\t\t\t\"bk-transformers\",\n\t\t\t\"bk-batman\",\n\t\t\t\"bk-space-invaders\",\n\t\t\t\"bk-skeletor\",\n\t\t\t\"bk-lamp\",\n\t\t\t\"bk-lamp-2\",\n\t\t\t\"bk-umbrella\",\n\t\t\t\"bk-street-light\",\n\t\t\t\"bk-bomb\",\n\t\t\t\"bk-archive\",\n\t\t\t\"bk-battery\",\n\t\t\t\"bk-battery-2\",\n\t\t\t\"bk-battery-3\",\n\t\t\t\"bk-battery-4\",\n\t\t\t\"bk-battery-5\",\n\t\t\t\"bk-megaphone\",\n\t\t\t\"bk-megaphone-2\",\n\t\t\t\"bk-patch\",\n\t\t\t\"bk-pil\",\n\t\t\t\"bk-injection\",\n\t\t\t\"bk-thermometer\",\n\t\t\t\"bk-lamp-3\",\n\t\t\t\"bk-lamp-4\",\n\t\t\t\"bk-lamp-5\",\n\t\t\t\"bk-cube\",\n\t\t\t\"bk-box\",\n\t\t\t\"bk-box-2\",\n\t\t\t\"bk-diamond\",\n\t\t\t\"bk-bag\",\n\t\t\t\"bk-money-bag\",\n\t\t\t\"bk-grid\",\n\t\t\t\"bk-grid-2\",\n\t\t\t\"bk-list\",\n\t\t\t\"bk-list-2\",\n\t\t\t\"bk-ruler\",\n\t\t\t\"bk-ruler-2\",\n\t\t\t\"bk-layout\",\n\t\t\t\"bk-layout-2\",\n\t\t\t\"bk-layout-3\",\n\t\t\t\"bk-layout-4\",\n\t\t\t\"bk-layout-5\",\n\t\t\t\"bk-layout-6\",\n\t\t\t\"bk-layout-7\",\n\t\t\t\"bk-layout-8\",\n\t\t\t\"bk-layout-9\",\n\t\t\t\"bk-layout-10\",\n\t\t\t\"bk-layout-11\",\n\t\t\t\"bk-layout-12\",\n\t\t\t\"bk-layout-13\",\n\t\t\t\"bk-layout-14\",\n\t\t\t\"bk-tools\",\n\t\t\t\"bk-screwdriver\",\n\t\t\t\"bk-paint\",\n\t\t\t\"bk-hammer\",\n\t\t\t\"bk-brush\",\n\t\t\t\"bk-pen\",\n\t\t\t\"bk-chat\",\n\t\t\t\"bk-comments\",\n\t\t\t\"bk-chat-2\",\n\t\t\t\"bk-chat-3\",\n\t\t\t\"bk-volume\",\n\t\t\t\"bk-volume-2\",\n\t\t\t\"bk-volume-3\",\n\t\t\t\"bk-equalizer\",\n\t\t\t\"bk-resize\",\n\t\t\t\"bk-resize-2\",\n\t\t\t\"bk-stretch\",\n\t\t\t\"bk-narrow\",\n\t\t\t\"bk-resize-3\",\n\t\t\t\"bk-download-3\",\n\t\t\t\"bk-calculator\",\n\t\t\t\"bk-library\",\n\t\t\t\"bk-auction\",\n\t\t\t\"bk-justice\",\n\t\t\t\"bk-stats\",\n\t\t\t\"bk-stats-2\",\n\t\t\t\"bk-attachment\",\n\t\t\t\"bk-hourglass\",\n\t\t\t\"bk-abacus\",\n\t\t\t\"bk-pencil\",\n\t\t\t\"bk-pen-2\",\n\t\t\t\"bk-pin\",\n\t\t\t\"bk-pin-2\",\n\t\t\t\"bk-discout\",\n\t\t\t\"bk-edit\",\n\t\t\t\"bk-scissors\",\n\t\t\t\"bk-profile\",\n\t\t\t\"bk-profile-2\",\n\t\t\t\"bk-profile-3\",\n\t\t\t\"bk-rotate\",\n\t\t\t\"bk-rotate-2\",\n\t\t\t\"bk-reply\",\n\t\t\t\"bk-forward\",\n\t\t\t\"bk-retweet\",\n\t\t\t\"bk-shuffle\",\n\t\t\t\"bk-loop\",\n\t\t\t\"bk-crop\",\n\t\t\t\"bk-square\",\n\t\t\t\"bk-square-2\",\n\t\t\t\"bk-circle\",\n\t\t\t\"bk-dollar\",\n\t\t\t\"bk-dollar-2\",\n\t\t\t\"bk-coins\",\n\t\t\t\"bk-pig\",\n\t\t\t\"bk-bookmark\",\n\t\t\t\"bk-bookmark-2\",\n\t\t\t\"bk-address-book\",\n\t\t\t\"bk-address-book-2\",\n\t\t\t\"bk-safe\",\n\t\t\t\"bk-envelope\",\n\t\t\t\"bk-envelope-2\",\n\t\t\t\"bk-radio-active\",\n\t\t\t\"bk-music\",\n\t\t\t\"bk-presentation\",\n\t\t\t\"bk-male\",\n\t\t\t\"bk-female\",\n\t\t\t\"bk-aids\",\n\t\t\t\"bk-heart\",\n\t\t\t\"bk-info\",\n\t\t\t\"bk-info-2\",\n\t\t\t\"bk-piano\",\n\t\t\t\"bk-rain\",\n\t\t\t\"bk-snow\",\n\t\t\t\"bk-lightning\",\n\t\t\t\"bk-sun\",\n\t\t\t\"bk-moon\",\n\t\t\t\"bk-cloudy\",\n\t\t\t\"bk-cloudy-2\",\n\t\t\t\"bk-car\",\n\t\t\t\"bk-bike\",\n\t\t\t\"bk-truck\",\n\t\t\t\"bk-bus\",\n\t\t\t\"bk-bike-2\",\n\t\t\t\"bk-plane\",\n\t\t\t\"bk-paper-plane\",\n\t\t\t\"bk-rocket\",\n\t\t\t\"bk-book\",\n\t\t\t\"bk-book-2\",\n\t\t\t\"bk-barcode\",\n\t\t\t\"bk-barcode-2\",\n\t\t\t\"bk-expand\",\n\t\t\t\"bk-collapse\",\n\t\t\t\"bk-pop-out\",\n\t\t\t\"bk-pop-in\",\n\t\t\t\"bk-target\",\n\t\t\t\"bk-badge\",\n\t\t\t\"bk-badge-2\",\n\t\t\t\"bk-ticket\",\n\t\t\t\"bk-ticket-2\",\n\t\t\t\"bk-ticket-3\",\n\t\t\t\"bk-microphone-4\",\n\t\t\t\"bk-cone\",\n\t\t\t\"bk-blocked\",\n\t\t\t\"bk-stop\",\n\t\t\t\"bk-keyboard\",\n\t\t\t\"bk-keyboard-2\",\n\t\t\t\"bk-radio-2\",\n\t\t\t\"bk-printer\",\n\t\t\t\"bk-checked\",\n\t\t\t\"bk-error\",\n\t\t\t\"bk-add\",\n\t\t\t\"bk-minus-3\",\n\t\t\t\"bk-alert\",\n\t\t\t\"bk-pictures-3\",\n\t\t\t\"bk-atom\",\n\t\t\t\"bk-eyedropper\",\n\t\t\t\"bk-globe\",\n\t\t\t\"bk-globe-2\",\n\t\t\t\"bk-shipping\",\n\t\t\t\"bk-ying-yang\",\n\t\t\t\"bk-compass\",\n\t\t\t\"bk-zip\",\n\t\t\t\"bk-zip-2\",\n\t\t\t\"bk-anchor\",\n\t\t\t\"bk-locked-heart\",\n\t\t\t\"bk-magnet\",\n\t\t\t\"bk-navigation\",\n\t\t\t\"bk-tags\",\n\t\t\t\"bk-heart-2\",\n\t\t\t\"bk-heart-3\",\n\t\t\t\"bk-usb\",\n\t\t\t\"bk-clipboard\",\n\t\t\t\"bk-clipboard-2\",\n\t\t\t\"bk-clipboard-3\",\n\t\t\t\"bk-switch-2\",\n\t\t\t\"bk-ruler-3\",\n\t\t\t\"br-facebook\",\n\t\t\t\"br-codepen\",\n\t\t\t\"br-twitter\",\n\t\t\t\"br-twitter-bird\",\n\t\t\t\"br-vimeo\",\n\t\t\t\"br-vimeo-rect\",\n\t\t\t\"br-tumblr\",\n\t\t\t\"br-tumblr-rect\",\n\t\t\t\"br-googleplus-rect\",\n\t\t\t\"br-github-text\",\n\t\t\t\"br-github\",\n\t\t\t\"br-skype\",\n\t\t\t\"br-icq\",\n\t\t\t\"br-yandex\",\n\t\t\t\"br-yandex-rect\",\n\t\t\t\"br-vkontakte-rect\",\n\t\t\t\"br-odnoklassniki\",\n\t\t\t\"br-odnoklassniki-rect\",\n\t\t\t\"br-friendfeed\",\n\t\t\t\"br-friendfeed-rect\",\n\t\t\t\"br-blogger\",\n\t\t\t\"br-blogger-rect\",\n\t\t\t\"br-facebook-rect\",\n\t\t\t\"br-jabber\",\n\t\t\t\"br-lastfm\",\n\t\t\t\"br-lastfm-rect\",\n\t\t\t\"br-linkedin\",\n\t\t\t\"br-linkedin-rect\",\n\t\t\t\"br-picasa\",\n\t\t\t\"br-wordpress\",\n\t\t\t\"br-instagram\",\n\t\t\t\"br-instagram-filled\",\n\t\t\t\"br-diigo\",\n\t\t\t\"br-box\",\n\t\t\t\"br-box-rect\",\n\t\t\t\"br-tudou\",\n\t\t\t\"br-youku\",\n\t\t\t\"br-win8\",\n\t\t\t\"br-amex\",\n\t\t\t\"br-discover\",\n\t\t\t\"br-visa\",\n\t\t\t\"br-mastercard\",\n\t\t\t\"br-houzz\",\n\t\t\t\"br-bandcamp\",\n\t\t\t\"br-deviantart\",\n\t\t\t\"business-ascendant5\",\n\t\t\t\"business-wristwatch5\",\n\t\t\t\"business-bars10\",\n\t\t\t\"business-bars11\",\n\t\t\t\"business-bars12\",\n\t\t\t\"business-bars13\",\n\t\t\t\"business-bars14\",\n\t\t\t\"business-bars15\",\n\t\t\t\"business-bars16\",\n\t\t\t\"business-bars17\",\n\t\t\t\"business-bars18\",\n\t\t\t\"business-bars19\",\n\t\t\t\"business-bars20\",\n\t\t\t\"business-bars21\",\n\t\t\t\"business-bird30\",\n\t\t\t\"business-black208\",\n\t\t\t\"business-briefcase14\",\n\t\t\t\"business-briefcase15\",\n\t\t\t\"business-briefcase16\",\n\t\t\t\"business-briefcase17\",\n\t\t\t\"business-briefcase18\",\n\t\t\t\"business-briefcase19\",\n\t\t\t\"business-briefcase20\",\n\t\t\t\"business-briefcase21\",\n\t\t\t\"business-briefcase22\",\n\t\t\t\"business-briefcase23\",\n\t\t\t\"business-briefcase24\",\n\t\t\t\"business-briefcase25\",\n\t\t\t\"business-briefcase26\",\n\t\t\t\"business-business58\",\n\t\t\t\"business-business62\",\n\t\t\t\"business-business63\",\n\t\t\t\"business-calendar62\",\n\t\t\t\"business-calendar63\",\n\t\t\t\"business-calendar64\",\n\t\t\t\"business-calendar65\",\n\t\t\t\"business-calendar66\",\n\t\t\t\"business-calendar67\",\n\t\t\t\"business-calendar68\",\n\t\t\t\"business-calendar69\",\n\t\t\t\"business-circle54\",\n\t\t\t\"business-circular85\",\n\t\t\t\"business-clock43\",\n\t\t\t\"business-clock44\",\n\t\t\t\"business-clock45\",\n\t\t\t\"business-clock46\",\n\t\t\t\"business-clock47\",\n\t\t\t\"business-clock48\",\n\t\t\t\"business-clock49\",\n\t\t\t\"business-crayon4\",\n\t\t\t\"business-feather10\",\n\t\t\t\"business-feather9\",\n\t\t\t\"business-first21\",\n\t\t\t\"business-graphic12\",\n\t\t\t\"business-horizontal11\",\n\t\t\t\"business-horizontal13\",\n\t\t\t\"business-increasing9\",\n\t\t\t\"business-ink6\",\n\t\t\t\"business-line23\",\n\t\t\t\"business-line24\",\n\t\t\t\"business-line25\",\n\t\t\t\"business-ascendant6\",\n\t\t\t\"business-line27\",\n\t\t\t\"business-line28\",\n\t\t\t\"business-note16\",\n\t\t\t\"business-note17\",\n\t\t\t\"business-note18\",\n\t\t\t\"business-note19\",\n\t\t\t\"business-note20\",\n\t\t\t\"business-note21\",\n\t\t\t\"business-note22\",\n\t\t\t\"business-note23\",\n\t\t\t\"business-note24\",\n\t\t\t\"business-note25\",\n\t\t\t\"business-notebook26\",\n\t\t\t\"business-paper79\",\n\t\t\t\"business-paper81\",\n\t\t\t\"business-paper82\",\n\t\t\t\"business-paper83\",\n\t\t\t\"business-paper84\",\n\t\t\t\"business-paper86\",\n\t\t\t\"business-paper87\",\n\t\t\t\"business-paper88\",\n\t\t\t\"business-pen27\",\n\t\t\t\"business-pen28\",\n\t\t\t\"business-pen29\",\n\t\t\t\"business-pen30\",\n\t\t\t\"business-pen31\",\n\t\t\t\"business-pen32\",\n\t\t\t\"business-pen33\",\n\t\t\t\"business-pen34\",\n\t\t\t\"business-pencil39\",\n\t\t\t\"business-pencil40\",\n\t\t\t\"business-pencil41\",\n\t\t\t\"business-pencil43\",\n\t\t\t\"business-pencil44\",\n\t\t\t\"business-pencil45\",\n\t\t\t\"business-pie24\",\n\t\t\t\"business-pie25\",\n\t\t\t\"business-pie26\",\n\t\t\t\"business-pie27\",\n\t\t\t\"business-pie28\",\n\t\t\t\"business-pie29\",\n\t\t\t\"business-pie30\",\n\t\t\t\"business-pie31\",\n\t\t\t\"business-pie32\",\n\t\t\t\"business-pyramid3\",\n\t\t\t\"business-pyramid4\",\n\t\t\t\"business-rising9\",\n\t\t\t\"business-sand3\",\n\t\t\t\"business-sand4\",\n\t\t\t\"business-sand5\",\n\t\t\t\"business-sand6\",\n\t\t\t\"business-stopwatch4\",\n\t\t\t\"business-stopwatch5\",\n\t\t\t\"business-vintage51\",\n\t\t\t\"business-wall17\",\n\t\t\t\"business-watch10\",\n\t\t\t\"business-watch11\",\n\t\t\t\"business-weekly3\",\n\t\t\t\"business-weekly4\",\n\t\t\t\"business-wristwatch4\",\n\t\t\t\"business-line26\",\n\t\t\t\"cl-connection\",\n\t\t\t\"cl-volume32\",\n\t\t\t\"cl-comments-1\",\n\t\t\t\"cl-comments\",\n\t\t\t\"cl-magnifying-glass\",\n\t\t\t\"cl-add-comment-1\",\n\t\t\t\"cl-add-comment\",\n\t\t\t\"cl-download-1\",\n\t\t\t\"cl-download\",\n\t\t\t\"cl-back12\",\n\t\t\t\"cl-cabinet4\",\n\t\t\t\"cl-calculator30\",\n\t\t\t\"cl-calendar53\",\n\t\t\t\"cl-caret7\",\n\t\t\t\"cl-cellphone4\",\n\t\t\t\"cl-cellphone5\",\n\t\t\t\"cl-cellphone6\",\n\t\t\t\"cl-cloth\",\n\t\t\t\"cl-day7\",\n\t\t\t\"cl-dialogue\",\n\t\t\t\"cl-dialogue1\",\n\t\t\t\"cl-down13\",\n\t\t\t\"cl-down14\",\n\t\t\t\"cl-down15\",\n\t\t\t\"cl-empty21\",\n\t\t\t\"cl-family3\",\n\t\t\t\"cl-four30\",\n\t\t\t\"cl-halffilled\",\n\t\t\t\"cl-help11\",\n\t\t\t\"cl-help12\",\n\t\t\t\"cl-intersecting4\",\n\t\t\t\"cl-intertwined1\",\n\t\t\t\"cl-key31\",\n\t\t\t\"cl-left33\",\n\t\t\t\"cl-left34\",\n\t\t\t\"cl-left35\",\n\t\t\t\"cl-left36\",\n\t\t\t\"cl-left37\",\n\t\t\t\"cl-left38\",\n\t\t\t\"cl-line16\",\n\t\t\t\"cl-line17\",\n\t\t\t\"cl-line18\",\n\t\t\t\"cl-list31\",\n\t\t\t\"cl-lock25\",\n\t\t\t\"cl-lock26\",\n\t\t\t\"cl-looping1\",\n\t\t\t\"cl-man140\",\n\t\t\t\"cl-microphone29\",\n\t\t\t\"cl-microphone30\",\n\t\t\t\"cl-next10\",\n\t\t\t\"cl-connection-1\",\n\t\t\t\"cl-open99\",\n\t\t\t\"cl-organizational\",\n\t\t\t\"cl-pause15\",\n\t\t\t\"cl-pie19\",\n\t\t\t\"cl-pie20\",\n\t\t\t\"cl-pie21\",\n\t\t\t\"cl-play43\",\n\t\t\t\"cl-play44\",\n\t\t\t\"cl-play45\",\n\t\t\t\"cl-rectangular25\",\n\t\t\t\"cl-remote5\",\n\t\t\t\"cl-right31\",\n\t\t\t\"cl-right32\",\n\t\t\t\"cl-right33\",\n\t\t\t\"cl-right34\",\n\t\t\t\"cl-round40\",\n\t\t\t\"cl-round41\",\n\t\t\t\"cl-round42\",\n\t\t\t\"cl-round43\",\n\t\t\t\"cl-scissor2\",\n\t\t\t\"cl-scissor3\",\n\t\t\t\"cl-screen13\",\n\t\t\t\"cl-screen14\",\n\t\t\t\"cl-screen15\",\n\t\t\t\"cl-simcard1\",\n\t\t\t\"cl-single15\",\n\t\t\t\"cl-small145\",\n\t\t\t\"cl-song\",\n\t\t\t\"cl-speaker35\",\n\t\t\t\"cl-speaker36\",\n\t\t\t\"cl-speed4\",\n\t\t\t\"cl-square64\",\n\t\t\t\"cl-subtract2\",\n\t\t\t\"cl-telephone67\",\n\t\t\t\"cl-telephone68\",\n\t\t\t\"cl-television9\",\n\t\t\t\"cl-three60\",\n\t\t\t\"cl-threefourth\",\n\t\t\t\"cl-trash30\",\n\t\t\t\"cl-two122\",\n\t\t\t\"cl-two123\",\n\t\t\t\"cl-two124\",\n\t\t\t\"cl-two125\",\n\t\t\t\"cl-unlock4\",\n\t\t\t\"cl-up21\",\n\t\t\t\"cl-up22\",\n\t\t\t\"cl-volume30\",\n\t\t\t\"cl-volume31\",\n\t\t\t\"cl-open98\",\n\t\t\t\"cn-afghanistan\",\n\t\t\t\"cn-zimbabwe\",\n\t\t\t\"cn-algaria\",\n\t\t\t\"cn-andorra\",\n\t\t\t\"cn-angola\",\n\t\t\t\"cn-antigua\",\n\t\t\t\"cn-argentina\",\n\t\t\t\"cn-armenia\",\n\t\t\t\"cn-aruba\",\n\t\t\t\"cn-australia\",\n\t\t\t\"cn-austria\",\n\t\t\t\"cn-azerbaijan\",\n\t\t\t\"cn-bahamas\",\n\t\t\t\"cn-bahrain\",\n\t\t\t\"cn-bangladesh\",\n\t\t\t\"cn-barbados\",\n\t\t\t\"cn-belarus\",\n\t\t\t\"cn-belgium\",\n\t\t\t\"cn-belize\",\n\t\t\t\"cn-benin\",\n\t\t\t\"cn-bermuda\",\n\t\t\t\"cn-bhutan\",\n\t\t\t\"cn-bolivia\",\n\t\t\t\"cn-bosnia\",\n\t\t\t\"cn-botswana\",\n\t\t\t\"cn-brazil\",\n\t\t\t\"cn-brunei\",\n\t\t\t\"cn-bulgaria\",\n\t\t\t\"cn-burkina\",\n\t\t\t\"cn-burundi\",\n\t\t\t\"cn-cambodia\",\n\t\t\t\"cn-cameroon\",\n\t\t\t\"cn-canada\",\n\t\t\t\"cn-cape\",\n\t\t\t\"cn-central2\",\n\t\t\t\"cn-chad\",\n\t\t\t\"cn-chile\",\n\t\t\t\"cn-china\",\n\t\t\t\"cn-colombia\",\n\t\t\t\"cn-comoros\",\n\t\t\t\"cn-congo\",\n\t\t\t\"cn-costa\",\n\t\t\t\"cn-cote\",\n\t\t\t\"cn-croatia\",\n\t\t\t\"cn-cuba\",\n\t\t\t\"cn-cyprus\",\n\t\t\t\"cn-czech\",\n\t\t\t\"cn-democratic\",\n\t\t\t\"cn-denmark\",\n\t\t\t\"cn-djibouti\",\n\t\t\t\"cn-dominica\",\n\t\t\t\"cn-dominican\",\n\t\t\t\"cn-east2\",\n\t\t\t\"cn-ecuador\",\n\t\t\t\"cn-egypt\",\n\t\t\t\"cn-el\",\n\t\t\t\"cn-equatorial\",\n\t\t\t\"cn-eritrea\",\n\t\t\t\"cn-estonia\",\n\t\t\t\"cn-ethiopia\",\n\t\t\t\"cn-finland\",\n\t\t\t\"cn-france\",\n\t\t\t\"cn-gabon\",\n\t\t\t\"cn-gambia\",\n\t\t\t\"cn-georgia\",\n\t\t\t\"cn-germany\",\n\t\t\t\"cn-ghana\",\n\t\t\t\"cn-greece\",\n\t\t\t\"cn-greenland\",\n\t\t\t\"cn-grenada\",\n\t\t\t\"cn-guatemala\",\n\t\t\t\"cn-guinea\",\n\t\t\t\"cn-guinea1\",\n\t\t\t\"cn-guyana\",\n\t\t\t\"cn-haiti\",\n\t\t\t\"cn-honduras\",\n\t\t\t\"cn-hungary\",\n\t\t\t\"cn-iceland\",\n\t\t\t\"cn-india\",\n\t\t\t\"cn-indonesia\",\n\t\t\t\"cn-iran\",\n\t\t\t\"cn-iraq\",\n\t\t\t\"cn-ireland\",\n\t\t\t\"cn-israel\",\n\t\t\t\"cn-italy\",\n\t\t\t\"cn-jamaica\",\n\t\t\t\"cn-japan59\",\n\t\t\t\"cn-jordan\",\n\t\t\t\"cn-kazakhstan\",\n\t\t\t\"cn-kenya\",\n\t\t\t\"cn-kosovo\",\n\t\t\t\"cn-kuwait\",\n\t\t\t\"cn-kyrgyzstan\",\n\t\t\t\"cn-laos\",\n\t\t\t\"cn-latvia\",\n\t\t\t\"cn-lebanon\",\n\t\t\t\"cn-lesotho\",\n\t\t\t\"cn-albania\",\n\t\t\t\"cn-libya\",\n\t\t\t\"cn-liechstenstein\",\n\t\t\t\"cn-lithuania\",\n\t\t\t\"cn-luxembourg\",\n\t\t\t\"cn-macedonia\",\n\t\t\t\"cn-madagascar\",\n\t\t\t\"cn-malawi\",\n\t\t\t\"cn-malaysia\",\n\t\t\t\"cn-mali\",\n\t\t\t\"cn-malta\",\n\t\t\t\"cn-martinique\",\n\t\t\t\"cn-mauritania\",\n\t\t\t\"cn-mauritius\",\n\t\t\t\"cn-mexico\",\n\t\t\t\"cn-moldova\",\n\t\t\t\"cn-monaco\",\n\t\t\t\"cn-mongolia\",\n\t\t\t\"cn-montenegro\",\n\t\t\t\"cn-montserrat\",\n\t\t\t\"cn-morocco\",\n\t\t\t\"cn-mozambique\",\n\t\t\t\"cn-myanmar\",\n\t\t\t\"cn-namibia\",\n\t\t\t\"cn-nauru\",\n\t\t\t\"cn-nepal\",\n\t\t\t\"cn-netherlands\",\n\t\t\t\"cn-nicaragua\",\n\t\t\t\"cn-niger\",\n\t\t\t\"cn-nigeria\",\n\t\t\t\"cn-north3\",\n\t\t\t\"cn-norway\",\n\t\t\t\"cn-oman\",\n\t\t\t\"cn-pakistan\",\n\t\t\t\"cn-palau\",\n\t\t\t\"cn-palestine\",\n\t\t\t\"cn-panama\",\n\t\t\t\"cn-papua\",\n\t\t\t\"cn-paraguay\",\n\t\t\t\"cn-peru\",\n\t\t\t\"cn-philippines\",\n\t\t\t\"cn-poland\",\n\t\t\t\"cn-portugal\",\n\t\t\t\"cn-puerto\",\n\t\t\t\"cn-qatar\",\n\t\t\t\"cn-romania\",\n\t\t\t\"cn-russia\",\n\t\t\t\"cn-rwanda\",\n\t\t\t\"cn-saint2\",\n\t\t\t\"cn-saint3\",\n\t\t\t\"cn-saint4\",\n\t\t\t\"cn-san1\",\n\t\t\t\"cn-saudi\",\n\t\t\t\"cn-senegal\",\n\t\t\t\"cn-serbia\",\n\t\t\t\"cn-seychelles\",\n\t\t\t\"cn-sierra\",\n\t\t\t\"cn-singapore\",\n\t\t\t\"cn-slovakia\",\n\t\t\t\"cn-slovenia\",\n\t\t\t\"cn-somalia\",\n\t\t\t\"cn-somaliland\",\n\t\t\t\"cn-south2\",\n\t\t\t\"cn-south3\",\n\t\t\t\"cn-south4\",\n\t\t\t\"cn-spain\",\n\t\t\t\"cn-sri\",\n\t\t\t\"cn-sudan\",\n\t\t\t\"cn-suriname\",\n\t\t\t\"cn-swaziland\",\n\t\t\t\"cn-sweden1\",\n\t\t\t\"cn-switzerland\",\n\t\t\t\"cn-syria\",\n\t\t\t\"cn-taiwan\",\n\t\t\t\"cn-tajikistan\",\n\t\t\t\"cn-tanzania\",\n\t\t\t\"cn-thailand\",\n\t\t\t\"cn-togo\",\n\t\t\t\"cn-tonga\",\n\t\t\t\"cn-trinidad\",\n\t\t\t\"cn-tunisia\",\n\t\t\t\"cn-turkey\",\n\t\t\t\"cn-turkmenistan\",\n\t\t\t\"cn-uganda\",\n\t\t\t\"cn-ukraine\",\n\t\t\t\"cn-united\",\n\t\t\t\"cn-united1\",\n\t\t\t\"cn-united2\",\n\t\t\t\"cn-uruguay\",\n\t\t\t\"cn-uzbekistan\",\n\t\t\t\"cn-vanuatu\",\n\t\t\t\"cn-vatican\",\n\t\t\t\"cn-venezuela\",\n\t\t\t\"cn-vietnam\",\n\t\t\t\"cn-yemen\",\n\t\t\t\"cn-zambia\",\n\t\t\t\"cn-liberia\",\n\t\t\t\"creditcard-alipay\",\n\t\t\t\"creditcard-yandex1\",\n\t\t\t\"creditcard-american16\",\n\t\t\t\"creditcard-asia\",\n\t\t\t\"creditcard-atos\",\n\t\t\t\"creditcard-bank8\",\n\t\t\t\"creditcard-better\",\n\t\t\t\"creditcard-bips\",\n\t\t\t\"creditcard-bpay1\",\n\t\t\t\"creditcard-checkout\",\n\t\t\t\"creditcard-cirrus1\",\n\t\t\t\"creditcard-citibank1\",\n\t\t\t\"creditcard-clickandbuy1\",\n\t\t\t\"creditcard-credit60\",\n\t\t\t\"creditcard-delta\",\n\t\t\t\"creditcard-diners\",\n\t\t\t\"creditcard-direct2\",\n\t\t\t\"creditcard-discover1\",\n\t\t\t\"creditcard-dwolla\",\n\t\t\t\"creditcard-ebay4\",\n\t\t\t\"creditcard-eco54\",\n\t\t\t\"creditcard-electronic54\",\n\t\t\t\"creditcard-eps7\",\n\t\t\t\"creditcard-euronet1\",\n\t\t\t\"creditcard-eway\",\n\t\t\t\"creditcard-gift54\",\n\t\t\t\"creditcard-google47\",\n\t\t\t\"creditcard-heartland1\",\n\t\t\t\"creditcard-hsbc1\",\n\t\t\t\"creditcard-izettle1\",\n\t\t\t\"creditcard-jcb4\",\n\t\t\t\"creditcard-klarna\",\n\t\t\t\"creditcard-laser2\",\n\t\t\t\"creditcard-maestro1\",\n\t\t\t\"creditcard-mastercard5\",\n\t\t\t\"creditcard-amazon3\",\n\t\t\t\"creditcard-moneygram\",\n\t\t\t\"creditcard-neteller\",\n\t\t\t\"creditcard-ogone1\",\n\t\t\t\"creditcard-pay5\",\n\t\t\t\"creditcard-paymate\",\n\t\t\t\"creditcard-payoneer1\",\n\t\t\t\"creditcard-paypal11\",\n\t\t\t\"creditcard-paysafecard1\",\n\t\t\t\"creditcard-payza1\",\n\t\t\t\"creditcard-popmoney\",\n\t\t\t\"creditcard-realex1\",\n\t\t\t\"creditcard-recurly\",\n\t\t\t\"creditcard-sage\",\n\t\t\t\"creditcard-skrill1\",\n\t\t\t\"creditcard-solo\",\n\t\t\t\"creditcard-square91\",\n\t\t\t\"creditcard-stripe2\",\n\t\t\t\"creditcard-switch16\",\n\t\t\t\"creditcard-telecheck\",\n\t\t\t\"creditcard-timwe\",\n\t\t\t\"creditcard-truste\",\n\t\t\t\"creditcard-ukash\",\n\t\t\t\"creditcard-unionpay\",\n\t\t\t\"creditcard-verifone\",\n\t\t\t\"creditcard-verisign\",\n\t\t\t\"creditcard-vindicia\",\n\t\t\t\"creditcard-visa5\",\n\t\t\t\"creditcard-webmoney1\",\n\t\t\t\"creditcard-wepay\",\n\t\t\t\"creditcard-western1\",\n\t\t\t\"creditcard-wire\",\n\t\t\t\"creditcard-wirecard1\",\n\t\t\t\"creditcard-worldpay1\",\n\t\t\t\"creditcard-mondex\",\n\t\t\t\"ct-arrow-right\",\n\t\t\t\"ct-arrow-left\",\n\t\t\t\"ct-arrow-up\",\n\t\t\t\"ct-arrow-down\",\n\t\t\t\"ct-plus\",\n\t\t\t\"ct-minus\",\n\t\t\t\"ct-stats\",\n\t\t\t\"ct-broadcast\",\n\t\t\t\"ct-alert\",\n\t\t\t\"ct-comment\",\n\t\t\t\"ct-chat\",\n\t\t\t\"ct-bookmark\",\n\t\t\t\"ct-locked\",\n\t\t\t\"ct-unlock\",\n\t\t\t\"ct-film\",\n\t\t\t\"ct-camera\",\n\t\t\t\"ct-popout\",\n\t\t\t\"ct-printer\",\n\t\t\t\"ct-battery-full\",\n\t\t\t\"ct-battery-low\",\n\t\t\t\"ct-battery\",\n\t\t\t\"ct-hash\",\n\t\t\t\"ct-trashcan\",\n\t\t\t\"ct-crop\",\n\t\t\t\"ct-grid\",\n\t\t\t\"ct-frame\",\n\t\t\t\"ct-board\",\n\t\t\t\"ct-shrink\",\n\t\t\t\"ct-expand\",\n\t\t\t\"ct-tree\",\n\t\t\t\"ct-paper-plane\",\n\t\t\t\"ct-enter\",\n\t\t\t\"ct-download\",\n\t\t\t\"ct-mobile\",\n\t\t\t\"ct-mobile-2\",\n\t\t\t\"ct-screen\",\n\t\t\t\"ct-stats-2\",\n\t\t\t\"ct-camera-2\",\n\t\t\t\"ct-painting\",\n\t\t\t\"ct-painting-2\",\n\t\t\t\"ct-reload\",\n\t\t\t\"ct-credit-card\",\n\t\t\t\"ct-vcard\",\n\t\t\t\"ct-apple\",\n\t\t\t\"ct-cart\",\n\t\t\t\"ct-pause\",\n\t\t\t\"ct-play\",\n\t\t\t\"ct-next\",\n\t\t\t\"ct-previous\",\n\t\t\t\"ct-user\",\n\t\t\t\"ct-heart\",\n\t\t\t\"ct-heart-2\",\n\t\t\t\"ct-marker\",\n\t\t\t\"ct-list\",\n\t\t\t\"ct-file\",\n\t\t\t\"ct-next-2\",\n\t\t\t\"ct-previous-2\",\n\t\t\t\"ct-record\",\n\t\t\t\"ct-frame-2\",\n\t\t\t\"ct-plus-2\",\n\t\t\t\"ct-thumbs-up\",\n\t\t\t\"ct-printer-2\",\n\t\t\t\"ct-eject\",\n\t\t\t\"ct-disk\",\n\t\t\t\"ct-minus-2\",\n\t\t\t\"ct-checkbox-checked\",\n\t\t\t\"ct-popout-2\",\n\t\t\t\"ct-equalizer\",\n\t\t\t\"ct-desktop\",\n\t\t\t\"dr-align7\",\n\t\t\t\"dr-window12\",\n\t\t\t\"dr-arrow64\",\n\t\t\t\"dr-arrow73\",\n\t\t\t\"dr-arrows4\",\n\t\t\t\"dr-ascendant\",\n\t\t\t\"dr-attachment3\",\n\t\t\t\"dr-checkmark2\",\n\t\t\t\"dr-chevron8\",\n\t\t\t\"dr-circle9\",\n\t\t\t\"dr-clockwise\",\n\t\t\t\"dr-cloud14\",\n\t\t\t\"dr-code3\",\n\t\t\t\"dr-conversation1\",\n\t\t\t\"dr-cross5\",\n\t\t\t\"dr-days\",\n\t\t\t\"dr-direction1\",\n\t\t\t\"dr-down5\",\n\t\t\t\"dr-down6\",\n\t\t\t\"dr-download12\",\n\t\t\t\"dr-edit4\",\n\t\t\t\"dr-export\",\n\t\t\t\"dr-eye8\",\n\t\t\t\"dr-feed\",\n\t\t\t\"dr-folder24\",\n\t\t\t\"dr-forward1\",\n\t\t\t\"dr-frontal\",\n\t\t\t\"dr-gaming\",\n\t\t\t\"dr-gear\",\n\t\t\t\"dr-graph3\",\n\t\t\t\"dr-graph7\",\n\t\t\t\"dr-graph8\",\n\t\t\t\"dr-headset1\",\n\t\t\t\"dr-heart10\",\n\t\t\t\"dr-help2\",\n\t\t\t\"dr-home11\",\n\t\t\t\"dr-info6\",\n\t\t\t\"dr-justify\",\n\t\t\t\"dr-left11\",\n\t\t\t\"dr-left16\",\n\t\t\t\"dr-left17\",\n\t\t\t\"dr-line4\",\n\t\t\t\"dr-loading\",\n\t\t\t\"dr-location12\",\n\t\t\t\"dr-lock5\",\n\t\t\t\"dr-loop4\",\n\t\t\t\"dr-mail5\",\n\t\t\t\"dr-arrow63\",\n\t\t\t\"dr-media11\",\n\t\t\t\"dr-media12\",\n\t\t\t\"dr-menu10\",\n\t\t\t\"dr-microphone6\",\n\t\t\t\"dr-mobile5\",\n\t\t\t\"dr-mobile7\",\n\t\t\t\"dr-move5\",\n\t\t\t\"dr-multimedia1\",\n\t\t\t\"dr-new8\",\n\t\t\t\"dr-next5\",\n\t\t\t\"dr-note3\",\n\t\t\t\"dr-open15\",\n\t\t\t\"dr-open16\",\n\t\t\t\"dr-outline3\",\n\t\t\t\"dr-outlined\",\n\t\t\t\"dr-phone14\",\n\t\t\t\"dr-photo7\",\n\t\t\t\"dr-plus13\",\n\t\t\t\"dr-print1\",\n\t\t\t\"dr-question2\",\n\t\t\t\"dr-rectangular1\",\n\t\t\t\"dr-reply2\",\n\t\t\t\"dr-reply4\",\n\t\t\t\"dr-return5\",\n\t\t\t\"dr-retweet1\",\n\t\t\t\"dr-search6\",\n\t\t\t\"dr-star11\",\n\t\t\t\"dr-stop4\",\n\t\t\t\"dr-tablet4\",\n\t\t\t\"dr-tablet5\",\n\t\t\t\"dr-text15\",\n\t\t\t\"dr-text2\",\n\t\t\t\"dr-thin2\",\n\t\t\t\"dr-thin6\",\n\t\t\t\"dr-thumbs9\",\n\t\t\t\"dr-thumbup\",\n\t\t\t\"dr-trash3\",\n\t\t\t\"dr-triangle4\",\n\t\t\t\"dr-upload8\",\n\t\t\t\"dr-user14\",\n\t\t\t\"dr-user15\",\n\t\t\t\"dr-view\",\n\t\t\t\"dr-view2\",\n\t\t\t\"dr-view3\",\n\t\t\t\"dr-volume12\",\n\t\t\t\"dr-volume5\",\n\t\t\t\"dr-map4\",\n\t\t\t\"draw-abacus2\",\n\t\t\t\"draw-zip9\",\n\t\t\t\"draw-add78\",\n\t\t\t\"draw-add79\",\n\t\t\t\"draw-add80\",\n\t\t\t\"draw-add81\",\n\t\t\t\"draw-add82\",\n\t\t\t\"draw-address18\",\n\t\t\t\"draw-agenda\",\n\t\t\t\"draw-alert4\",\n\t\t\t\"draw-alert5\",\n\t\t\t\"draw-alien2\",\n\t\t\t\"draw-american11\",\n\t\t\t\"draw-analytics4\",\n\t\t\t\"draw-anchor23\",\n\t\t\t\"draw-android5\",\n\t\t\t\"draw-apple41\",\n\t\t\t\"draw-apple43\",\n\t\t\t\"draw-arch2\",\n\t\t\t\"draw-archive16\",\n\t\t\t\"draw-arroba6\",\n\t\t\t\"draw-arrow550\",\n\t\t\t\"draw-arrow551\",\n\t\t\t\"draw-arrow552\",\n\t\t\t\"draw-arrow553\",\n\t\t\t\"draw-arrows71\",\n\t\t\t\"draw-atom9\",\n\t\t\t\"draw-attention\",\n\t\t\t\"draw-back15\",\n\t\t\t\"draw-back16\",\n\t\t\t\"draw-back17\",\n\t\t\t\"draw-back18\",\n\t\t\t\"draw-baggage17\",\n\t\t\t\"draw-balance4\",\n\t\t\t\"draw-balloon4\",\n\t\t\t\"draw-bars22\",\n\t\t\t\"draw-bars23\",\n\t\t\t\"draw-battery90\",\n\t\t\t\"draw-beer13\",\n\t\t\t\"draw-behance3\",\n\t\t\t\"draw-bell20\",\n\t\t\t\"draw-bike11\",\n\t\t\t\"draw-bird31\",\n\t\t\t\"draw-bomb5\",\n\t\t\t\"draw-book126\",\n\t\t\t\"draw-bookmark12\",\n\t\t\t\"draw-bookmarks1\",\n\t\t\t\"draw-box42\",\n\t\t\t\"draw-box43\",\n\t\t\t\"draw-boy15\",\n\t\t\t\"draw-bright2\",\n\t\t\t\"draw-bright3\",\n\t\t\t\"draw-bug10\",\n\t\t\t\"draw-business66\",\n\t\t\t\"draw-business67\",\n\t\t\t\"draw-business68\",\n\t\t\t\"draw-calculator36\",\n\t\t\t\"draw-calendar71\",\n\t\t\t\"draw-cancel11\",\n\t\t\t\"draw-cancel12\",\n\t\t\t\"draw-cancel13\",\n\t\t\t\"draw-cancer\",\n\t\t\t\"draw-chat34\",\n\t\t\t\"draw-chat35\",\n\t\t\t\"draw-checkmark4\",\n\t\t\t\"draw-chemical1\",\n\t\t\t\"draw-chicken7\",\n\t\t\t\"draw-clip9\",\n\t\t\t\"draw-clipboard47\",\n\t\t\t\"draw-clipboard48\",\n\t\t\t\"draw-clipboard49\",\n\t\t\t\"draw-closed44\",\n\t\t\t\"draw-cloud161\",\n\t\t\t\"draw-cloud162\",\n\t\t\t\"draw-codebar\",\n\t\t\t\"draw-coffee29\",\n\t\t\t\"draw-coffee30\",\n\t\t\t\"draw-cogwheel13\",\n\t\t\t\"draw-coins18\",\n\t\t\t\"draw-compass51\",\n\t\t\t\"draw-completed\",\n\t\t\t\"draw-cone5\",\n\t\t\t\"draw-configuration7\",\n\t\t\t\"draw-configuration8\",\n\t\t\t\"draw-connection13\",\n\t\t\t\"draw-connection14\",\n\t\t\t\"draw-contacts5\",\n\t\t\t\"draw-crane3\",\n\t\t\t\"draw-crown29\",\n\t\t\t\"draw-css7\",\n\t\t\t\"draw-cupcake5\",\n\t\t\t\"draw-cutlery\",\n\t\t\t\"draw-cycle6\",\n\t\t\t\"draw-dashboard3\",\n\t\t\t\"draw-database34\",\n\t\t\t\"draw-delete34\",\n\t\t\t\"draw-delete35\",\n\t\t\t\"draw-delete36\",\n\t\t\t\"draw-delete37\",\n\t\t\t\"draw-delete38\",\n\t\t\t\"draw-delete39\",\n\t\t\t\"draw-delicious6\",\n\t\t\t\"draw-descending2\",\n\t\t\t\"draw-diamond26\",\n\t\t\t\"draw-directional9\",\n\t\t\t\"draw-directions\",\n\t\t\t\"draw-dna8\",\n\t\t\t\"draw-document87\",\n\t\t\t\"draw-document88\",\n\t\t\t\"draw-dont2\",\n\t\t\t\"draw-down17\",\n\t\t\t\"draw-down18\",\n\t\t\t\"draw-down19\",\n\t\t\t\"draw-down20\",\n\t\t\t\"draw-down25\",\n\t\t\t\"draw-download69\",\n\t\t\t\"draw-drawers\",\n\t\t\t\"draw-dribbble7\",\n\t\t\t\"draw-dropper8\",\n\t\t\t\"draw-edit27\",\n\t\t\t\"draw-edit28\",\n\t\t\t\"draw-eject16\",\n\t\t\t\"draw-empty22\",\n\t\t\t\"draw-eps6\",\n\t\t\t\"draw-euro32\",\n\t\t\t\"draw-exit10\",\n\t\t\t\"draw-exit9\",\n\t\t\t\"draw-expand17\",\n\t\t\t\"draw-expand18\",\n\t\t\t\"draw-export5\",\n\t\t\t\"draw-eye74\",\n\t\t\t\"draw-facebook32\",\n\t\t\t\"draw-factory9\",\n\t\t\t\"draw-favorite9\",\n\t\t\t\"draw-feather11\",\n\t\t\t\"draw-female130\",\n\t\t\t\"draw-fire23\",\n\t\t\t\"draw-flag33\",\n\t\t\t\"draw-fonts\",\n\t\t\t\"draw-forward12\",\n\t\t\t\"draw-forward13\",\n\t\t\t\"draw-foursquare7\",\n\t\t\t\"draw-free1\",\n\t\t\t\"draw-full25\",\n\t\t\t\"draw-funnel9\",\n\t\t\t\"draw-gallery\",\n\t\t\t\"draw-game21\",\n\t\t\t\"draw-gif6\",\n\t\t\t\"draw-gift52\",\n\t\t\t\"draw-glass18\",\n\t\t\t\"draw-go9\",\n\t\t\t\"draw-graduate7\",\n\t\t\t\"draw-gym8\",\n\t\t\t\"draw-hdd2\",\n\t\t\t\"draw-headphones18\",\n\t\t\t\"draw-heart212\",\n\t\t\t\"draw-heart213\",\n\t\t\t\"draw-horseshoe6\",\n\t\t\t\"draw-hot49\",\n\t\t\t\"draw-house80\",\n\t\t\t\"draw-html12\",\n\t\t\t\"draw-ice45\",\n\t\t\t\"draw-id5\",\n\t\t\t\"draw-idea11\",\n\t\t\t\"draw-illustrator\",\n\t\t\t\"draw-inbox20\",\n\t\t\t\"draw-inbox21\",\n\t\t\t\"draw-incomplete\",\n\t\t\t\"draw-increase3\",\n\t\t\t\"draw-infinite1\",\n\t\t\t\"draw-information41\",\n\t\t\t\"draw-information42\",\n\t\t\t\"draw-instagram6\",\n\t\t\t\"draw-java2\",\n\t\t\t\"draw-join\",\n\t\t\t\"draw-jpg4\",\n\t\t\t\"draw-jump5\",\n\t\t\t\"draw-key65\",\n\t\t\t\"draw-keyboard40\",\n\t\t\t\"draw-kilometers\",\n\t\t\t\"draw-lantern15\",\n\t\t\t\"draw-leaf37\",\n\t\t\t\"draw-left42\",\n\t\t\t\"draw-left43\",\n\t\t\t\"draw-left44\",\n\t\t\t\"draw-left45\",\n\t\t\t\"draw-less1\",\n\t\t\t\"draw-life4\",\n\t\t\t\"draw-lifeline6\",\n\t\t\t\"draw-lightbulb16\",\n\t\t\t\"draw-like29\",\n\t\t\t\"draw-link24\",\n\t\t\t\"draw-link25\",\n\t\t\t\"draw-linkedin13\",\n\t\t\t\"draw-list37\",\n\t\t\t\"draw-list38\",\n\t\t\t\"draw-list39\",\n\t\t\t\"draw-add77\",\n\t\t\t\"draw-lock29\",\n\t\t\t\"draw-love22\",\n\t\t\t\"draw-love23\",\n\t\t\t\"draw-low23\",\n\t\t\t\"draw-magic10\",\n\t\t\t\"draw-magnet4\",\n\t\t\t\"draw-magnifying41\",\n\t\t\t\"draw-mail62\",\n\t\t\t\"draw-male164\",\n\t\t\t\"draw-map62\",\n\t\t\t\"draw-map63\",\n\t\t\t\"draw-megaphone4\",\n\t\t\t\"draw-menu22\",\n\t\t\t\"draw-menu23\",\n\t\t\t\"draw-microphone53\",\n\t\t\t\"draw-microscope5\",\n\t\t\t\"draw-minus26\",\n\t\t\t\"draw-minus27\",\n\t\t\t\"draw-money42\",\n\t\t\t\"draw-money43\",\n\t\t\t\"draw-money44\",\n\t\t\t\"draw-money45\",\n\t\t\t\"draw-monitoring3\",\n\t\t\t\"draw-moon22\",\n\t\t\t\"draw-moon23\",\n\t\t\t\"draw-mosaic\",\n\t\t\t\"draw-mosaic1\",\n\t\t\t\"draw-mouse29\",\n\t\t\t\"draw-mug4\",\n\t\t\t\"draw-musical65\",\n\t\t\t\"draw-musical66\",\n\t\t\t\"draw-mustache6\",\n\t\t\t\"draw-new28\",\n\t\t\t\"draw-next11\",\n\t\t\t\"draw-next12\",\n\t\t\t\"draw-next13\",\n\t\t\t\"draw-no50\",\n\t\t\t\"draw-octocat\",\n\t\t\t\"draw-old38\",\n\t\t\t\"draw-open138\",\n\t\t\t\"draw-outbox2\",\n\t\t\t\"draw-pages5\",\n\t\t\t\"draw-paint52\",\n\t\t\t\"draw-painting32\",\n\t\t\t\"draw-palm10\",\n\t\t\t\"draw-paper89\",\n\t\t\t\"draw-paper90\",\n\t\t\t\"draw-paper91\",\n\t\t\t\"draw-paper92\",\n\t\t\t\"draw-paper93\",\n\t\t\t\"draw-paper94\",\n\t\t\t\"draw-pause19\",\n\t\t\t\"draw-pdf20\",\n\t\t\t\"draw-pen35\",\n\t\t\t\"draw-pencil46\",\n\t\t\t\"draw-phone82\",\n\t\t\t\"draw-php1\",\n\t\t\t\"draw-pi\",\n\t\t\t\"draw-picture14\",\n\t\t\t\"draw-picture15\",\n\t\t\t\"draw-pie33\",\n\t\t\t\"draw-pin29\",\n\t\t\t\"draw-pine4\",\n\t\t\t\"draw-pinterest15\",\n\t\t\t\"draw-pipe2\",\n\t\t\t\"draw-plug16\",\n\t\t\t\"draw-plus34\",\n\t\t\t\"draw-plus35\",\n\t\t\t\"draw-png5\",\n\t\t\t\"draw-podium\",\n\t\t\t\"draw-port1\",\n\t\t\t\"draw-pound14\",\n\t\t\t\"draw-power53\",\n\t\t\t\"draw-previous8\",\n\t\t\t\"draw-price4\",\n\t\t\t\"draw-private5\",\n\t\t\t\"draw-prohibition8\",\n\t\t\t\"draw-psd4\",\n\t\t\t\"draw-question27\",\n\t\t\t\"draw-question28\",\n\t\t\t\"draw-question29\",\n\t\t\t\"draw-quote3\",\n\t\t\t\"draw-radiation3\",\n\t\t\t\"draw-radio38\",\n\t\t\t\"draw-rain19\",\n\t\t\t\"draw-record4\",\n\t\t\t\"draw-refresh41\",\n\t\t\t\"draw-reload5\",\n\t\t\t\"draw-repeat1\",\n\t\t\t\"draw-rest1\",\n\t\t\t\"draw-revert1\",\n\t\t\t\"draw-right41\",\n\t\t\t\"draw-right42\",\n\t\t\t\"draw-robot7\",\n\t\t\t\"draw-rocket21\",\n\t\t\t\"draw-rss35\",\n\t\t\t\"draw-sad11\",\n\t\t\t\"draw-sale6\",\n\t\t\t\"draw-sale7\",\n\t\t\t\"draw-sand7\",\n\t\t\t\"draw-save9\",\n\t\t\t\"draw-scissors18\",\n\t\t\t\"draw-screen21\",\n\t\t\t\"draw-screwdriver17\",\n\t\t\t\"draw-settings23\",\n\t\t\t\"draw-settings24\",\n\t\t\t\"draw-share17\",\n\t\t\t\"draw-shopping131\",\n\t\t\t\"draw-shopping132\",\n\t\t\t\"draw-shuffle11\",\n\t\t\t\"draw-signal38\",\n\t\t\t\"draw-skype13\",\n\t\t\t\"draw-smile4\",\n\t\t\t\"draw-snowflakes12\",\n\t\t\t\"draw-soccer21\",\n\t\t\t\"draw-soda4\",\n\t\t\t\"draw-sound22\",\n\t\t\t\"draw-sound23\",\n\t\t\t\"draw-sound24\",\n\t\t\t\"draw-sound25\",\n\t\t\t\"draw-speedometer9\",\n\t\t\t\"draw-squad1\",\n\t\t\t\"draw-square82\",\n\t\t\t\"draw-star104\",\n\t\t\t\"draw-star105\",\n\t\t\t\"draw-star106\",\n\t\t\t\"draw-star107\",\n\t\t\t\"draw-stereo3\",\n\t\t\t\"draw-suitcase31\",\n\t\t\t\"draw-sun41\",\n\t\t\t\"draw-sun42\",\n\t\t\t\"draw-synchronize3\",\n\t\t\t\"draw-syringe15\",\n\t\t\t\"draw-tablet56\",\n\t\t\t\"draw-tag35\",\n\t\t\t\"draw-target23\",\n\t\t\t\"draw-telephone85\",\n\t\t\t\"draw-tennis14\",\n\t\t\t\"draw-terminal9\",\n\t\t\t\"draw-text74\",\n\t\t\t\"draw-thermometer29\",\n\t\t\t\"draw-thunder1\",\n\t\t\t\"draw-thunder2\",\n\t\t\t\"draw-thunderstorm\",\n\t\t\t\"draw-ticket9\",\n\t\t\t\"draw-time10\",\n\t\t\t\"draw-tools7\",\n\t\t\t\"draw-trash33\",\n\t\t\t\"draw-tray11\",\n\t\t\t\"draw-tree45\",\n\t\t\t\"draw-triangle24\",\n\t\t\t\"draw-trophy8\",\n\t\t\t\"draw-truck23\",\n\t\t\t\"draw-trumpet11\",\n\t\t\t\"draw-tv15\",\n\t\t\t\"draw-twitter22\",\n\t\t\t\"draw-umbrella21\",\n\t\t\t\"draw-undo15\",\n\t\t\t\"draw-union\",\n\t\t\t\"draw-unlock6\",\n\t\t\t\"draw-up31\",\n\t\t\t\"draw-up32\",\n\t\t\t\"draw-up33\",\n\t\t\t\"draw-up34\",\n\t\t\t\"draw-up35\",\n\t\t\t\"draw-up36\",\n\t\t\t\"draw-up37\",\n\t\t\t\"draw-upload43\",\n\t\t\t\"draw-upload44\",\n\t\t\t\"draw-usb23\",\n\t\t\t\"draw-user94\",\n\t\t\t\"draw-user95\",\n\t\t\t\"draw-user96\",\n\t\t\t\"draw-user97\",\n\t\t\t\"draw-users11\",\n\t\t\t\"draw-vector20\",\n\t\t\t\"draw-video114\",\n\t\t\t\"draw-video115\",\n\t\t\t\"draw-video116\",\n\t\t\t\"draw-vimeo13\",\n\t\t\t\"draw-water34\",\n\t\t\t\"draw-water35\",\n\t\t\t\"draw-webcam2\",\n\t\t\t\"draw-wifi51\",\n\t\t\t\"draw-wifi52\",\n\t\t\t\"draw-window34\",\n\t\t\t\"draw-window35\",\n\t\t\t\"draw-windows27\",\n\t\t\t\"draw-wine35\",\n\t\t\t\"draw-woman56\",\n\t\t\t\"draw-world32\",\n\t\t\t\"draw-wrench45\",\n\t\t\t\"draw-xls3\",\n\t\t\t\"draw-yen21\",\n\t\t\t\"draw-yin5\",\n\t\t\t\"draw-location31\",\n\t\t\t\"ec-download\",\n\t\t\t\"ec-chat\",\n\t\t\t\"ec-archive\",\n\t\t\t\"ec-user\",\n\t\t\t\"ec-users\",\n\t\t\t\"ec-archive-2\",\n\t\t\t\"ec-earth\",\n\t\t\t\"ec-location\",\n\t\t\t\"ec-contract\",\n\t\t\t\"ec-mobile\",\n\t\t\t\"ec-screen\",\n\t\t\t\"ec-mail\",\n\t\t\t\"ec-support\",\n\t\t\t\"ec-help\",\n\t\t\t\"ec-videos\",\n\t\t\t\"ec-pictures\",\n\t\t\t\"ec-link\",\n\t\t\t\"ec-search\",\n\t\t\t\"ec-cog\",\n\t\t\t\"ec-trashcan\",\n\t\t\t\"ec-pencil\",\n\t\t\t\"ec-info\",\n\t\t\t\"ec-article\",\n\t\t\t\"ec-clock\",\n\t\t\t\"ec-photoshop\",\n\t\t\t\"ec-illustrator\",\n\t\t\t\"ec-star\",\n\t\t\t\"ec-heart\",\n\t\t\t\"ec-bookmark\",\n\t\t\t\"ec-file\",\n\t\t\t\"ec-feed\",\n\t\t\t\"ec-locked\",\n\t\t\t\"ec-unlocked\",\n\t\t\t\"ec-refresh\",\n\t\t\t\"ec-list\",\n\t\t\t\"ec-share\",\n\t\t\t\"ec-archive-3\",\n\t\t\t\"ec-images\",\n\t\t\t\"ec-images-2\",\n\t\t\t\"ec-pencil-2\",\n\t\t\t\"ecommerce-bag19\",\n\t\t\t\"ecommerce-store5\",\n\t\t\t\"ecommerce-bag21\",\n\t\t\t\"ecommerce-bag22\",\n\t\t\t\"ecommerce-bag23\",\n\t\t\t\"ecommerce-bag24\",\n\t\t\t\"ecommerce-bag25\",\n\t\t\t\"ecommerce-basket10\",\n\t\t\t\"ecommerce-basket11\",\n\t\t\t\"ecommerce-basket12\",\n\t\t\t\"ecommerce-basket13\",\n\t\t\t\"ecommerce-basket14\",\n\t\t\t\"ecommerce-bill1\",\n\t\t\t\"ecommerce-black207\",\n\t\t\t\"ecommerce-coin11\",\n\t\t\t\"ecommerce-coin12\",\n\t\t\t\"ecommerce-coin13\",\n\t\t\t\"ecommerce-coins14\",\n\t\t\t\"ecommerce-coins15\",\n\t\t\t\"ecommerce-coins16\",\n\t\t\t\"ecommerce-coins17\",\n\t\t\t\"ecommerce-credit43\",\n\t\t\t\"ecommerce-credit44\",\n\t\t\t\"ecommerce-credit45\",\n\t\t\t\"ecommerce-credit46\",\n\t\t\t\"ecommerce-credit47\",\n\t\t\t\"ecommerce-credit48\",\n\t\t\t\"ecommerce-credit49\",\n\t\t\t\"ecommerce-credit50\",\n\t\t\t\"ecommerce-credit51\",\n\t\t\t\"ecommerce-credit52\",\n\t\t\t\"ecommerce-credit53\",\n\t\t\t\"ecommerce-credit54\",\n\t\t\t\"ecommerce-credit55\",\n\t\t\t\"ecommerce-dollar103\",\n\t\t\t\"ecommerce-money24\",\n\t\t\t\"ecommerce-money25\",\n\t\t\t\"ecommerce-money26\",\n\t\t\t\"ecommerce-money27\",\n\t\t\t\"ecommerce-money28\",\n\t\t\t\"ecommerce-money29\",\n\t\t\t\"ecommerce-money30\",\n\t\t\t\"ecommerce-money31\",\n\t\t\t\"ecommerce-money32\",\n\t\t\t\"ecommerce-money33\",\n\t\t\t\"ecommerce-money34\",\n\t\t\t\"ecommerce-money35\",\n\t\t\t\"ecommerce-money36\",\n\t\t\t\"ecommerce-bag20\",\n\t\t\t\"ecommerce-money38\",\n\t\t\t\"ecommerce-money39\",\n\t\t\t\"ecommerce-money40\",\n\t\t\t\"ecommerce-printed7\",\n\t\t\t\"ecommerce-receipt1\",\n\t\t\t\"ecommerce-receipt2\",\n\t\t\t\"ecommerce-receipt3\",\n\t\t\t\"ecommerce-receipt4\",\n\t\t\t\"ecommerce-receipt5\",\n\t\t\t\"ecommerce-receipt6\",\n\t\t\t\"ecommerce-receipt7\",\n\t\t\t\"ecommerce-receipt8\",\n\t\t\t\"ecommerce-shop3\",\n\t\t\t\"ecommerce-shop4\",\n\t\t\t\"ecommerce-shop5\",\n\t\t\t\"ecommerce-shop6\",\n\t\t\t\"ecommerce-shopping100\",\n\t\t\t\"ecommerce-shopping101\",\n\t\t\t\"ecommerce-shopping102\",\n\t\t\t\"ecommerce-shopping103\",\n\t\t\t\"ecommerce-shopping104\",\n\t\t\t\"ecommerce-shopping105\",\n\t\t\t\"ecommerce-shopping106\",\n\t\t\t\"ecommerce-shopping107\",\n\t\t\t\"ecommerce-shopping78\",\n\t\t\t\"ecommerce-shopping79\",\n\t\t\t\"ecommerce-shopping80\",\n\t\t\t\"ecommerce-shopping81\",\n\t\t\t\"ecommerce-shopping82\",\n\t\t\t\"ecommerce-shopping83\",\n\t\t\t\"ecommerce-shopping84\",\n\t\t\t\"ecommerce-shopping85\",\n\t\t\t\"ecommerce-shopping86\",\n\t\t\t\"ecommerce-shopping87\",\n\t\t\t\"ecommerce-shopping88\",\n\t\t\t\"ecommerce-shopping89\",\n\t\t\t\"ecommerce-shopping90\",\n\t\t\t\"ecommerce-shopping91\",\n\t\t\t\"ecommerce-shopping92\",\n\t\t\t\"ecommerce-shopping93\",\n\t\t\t\"ecommerce-shopping94\",\n\t\t\t\"ecommerce-shopping95\",\n\t\t\t\"ecommerce-shopping96\",\n\t\t\t\"ecommerce-shopping97\",\n\t\t\t\"ecommerce-shopping98\",\n\t\t\t\"ecommerce-shopping99\",\n\t\t\t\"ecommerce-money37\",\n\t\t\t\"el-mobile\",\n\t\t\t\"el-laptop\",\n\t\t\t\"el-desktop\",\n\t\t\t\"el-tablet\",\n\t\t\t\"el-phone\",\n\t\t\t\"el-document\",\n\t\t\t\"el-documents\",\n\t\t\t\"el-search\",\n\t\t\t\"el-clipboard\",\n\t\t\t\"el-newspaper\",\n\t\t\t\"el-notebook\",\n\t\t\t\"el-book-open\",\n\t\t\t\"el-browser\",\n\t\t\t\"el-calendar\",\n\t\t\t\"el-presentation\",\n\t\t\t\"el-picture\",\n\t\t\t\"el-pictures\",\n\t\t\t\"el-video\",\n\t\t\t\"el-camera\",\n\t\t\t\"el-printer\",\n\t\t\t\"el-toolbox\",\n\t\t\t\"el-briefcase\",\n\t\t\t\"el-wallet\",\n\t\t\t\"el-gift\",\n\t\t\t\"el-bargraph\",\n\t\t\t\"el-grid\",\n\t\t\t\"el-expand\",\n\t\t\t\"el-focus\",\n\t\t\t\"el-edit\",\n\t\t\t\"el-adjustments\",\n\t\t\t\"el-ribbon\",\n\t\t\t\"el-hourglass\",\n\t\t\t\"el-lock\",\n\t\t\t\"el-megaphone\",\n\t\t\t\"el-shield\",\n\t\t\t\"el-trophy\",\n\t\t\t\"el-flag\",\n\t\t\t\"el-map\",\n\t\t\t\"el-puzzle\",\n\t\t\t\"el-basket\",\n\t\t\t\"el-envelope\",\n\t\t\t\"el-streetsign\",\n\t\t\t\"el-telescope\",\n\t\t\t\"el-gears\",\n\t\t\t\"el-key\",\n\t\t\t\"el-paperclip\",\n\t\t\t\"el-attachment\",\n\t\t\t\"el-pricetags\",\n\t\t\t\"el-lightbulb\",\n\t\t\t\"el-layers\",\n\t\t\t\"el-pencil\",\n\t\t\t\"el-tools\",\n\t\t\t\"el-tools-2\",\n\t\t\t\"el-scissors\",\n\t\t\t\"el-paintbrush\",\n\t\t\t\"el-magnifying-glass\",\n\t\t\t\"el-circle-compass\",\n\t\t\t\"el-linegraph\",\n\t\t\t\"el-mic\",\n\t\t\t\"el-strategy\",\n\t\t\t\"el-beaker\",\n\t\t\t\"el-caution\",\n\t\t\t\"el-recycle\",\n\t\t\t\"el-anchor\",\n\t\t\t\"el-profile-male\",\n\t\t\t\"el-profile-female\",\n\t\t\t\"el-bike\",\n\t\t\t\"el-wine\",\n\t\t\t\"el-hotairballoon\",\n\t\t\t\"el-globe\",\n\t\t\t\"el-genius\",\n\t\t\t\"el-map-pin\",\n\t\t\t\"el-dial\",\n\t\t\t\"el-chat\",\n\t\t\t\"el-heart\",\n\t\t\t\"el-cloud\",\n\t\t\t\"el-upload\",\n\t\t\t\"el-download\",\n\t\t\t\"el-target\",\n\t\t\t\"el-hazardous\",\n\t\t\t\"el-piechart\",\n\t\t\t\"el-speedometer\",\n\t\t\t\"el-global\",\n\t\t\t\"el-rss\",\n\t\t\t\"el-tumblr\",\n\t\t\t\"el-linkedin\",\n\t\t\t\"el-dribbble\",\n\t\t\t\"el-googleplus\",\n\t\t\t\"el-twitter\",\n\t\t\t\"el-facebook\",\n\t\t\t\"el-sad\",\n\t\t\t\"el-happy\",\n\t\t\t\"el-refresh\",\n\t\t\t\"el-alarmclock\",\n\t\t\t\"el-scope\",\n\t\t\t\"el-quote\",\n\t\t\t\"el-aperture\",\n\t\t\t\"el-clock\",\n\t\t\t\"el-lifesaver\",\n\t\t\t\"el-compass\",\n\t\t\t\"elu-glass\",\n\t\t\t\"elu-youtube\",\n\t\t\t\"elu-search\",\n\t\t\t\"elu-search-circled\",\n\t\t\t\"elu-mail\",\n\t\t\t\"elu-mail-circled\",\n\t\t\t\"elu-heart\",\n\t\t\t\"elu-heart-circled\",\n\t\t\t\"elu-heart-empty\",\n\t\t\t\"elu-star\",\n\t\t\t\"elu-star-circled\",\n\t\t\t\"elu-star-empty\",\n\t\t\t\"elu-user\",\n\t\t\t\"elu-group\",\n\t\t\t\"elu-group-circled\",\n\t\t\t\"elu-torso\",\n\t\t\t\"elu-video\",\n\t\t\t\"elu-video-circled\",\n\t\t\t\"elu-video-alt\",\n\t\t\t\"elu-videocam\",\n\t\t\t\"elu-video-chat\",\n\t\t\t\"elu-picture\",\n\t\t\t\"elu-camera\",\n\t\t\t\"elu-photo\",\n\t\t\t\"elu-photo-circled\",\n\t\t\t\"elu-th-large\",\n\t\t\t\"elu-th\",\n\t\t\t\"elu-th-list\",\n\t\t\t\"elu-view-mode\",\n\t\t\t\"elu-ok\",\n\t\t\t\"elu-ok-circled\",\n\t\t\t\"elu-ok-circled2\",\n\t\t\t\"elu-cancel\",\n\t\t\t\"elu-cancel-circled\",\n\t\t\t\"elu-cancel-circled2\",\n\t\t\t\"elu-plus\",\n\t\t\t\"elu-plus-circled\",\n\t\t\t\"elu-minus\",\n\t\t\t\"elu-minus-circled\",\n\t\t\t\"elu-help\",\n\t\t\t\"elu-help-circled\",\n\t\t\t\"elu-info-circled\",\n\t\t\t\"elu-home\",\n\t\t\t\"elu-home-circled\",\n\t\t\t\"elu-website\",\n\t\t\t\"elu-website-circled\",\n\t\t\t\"elu-attach\",\n\t\t\t\"elu-attach-circled\",\n\t\t\t\"elu-lock\",\n\t\t\t\"elu-lock-circled\",\n\t\t\t\"elu-lock-open\",\n\t\t\t\"elu-lock-open-alt\",\n\t\t\t\"elu-eye\",\n\t\t\t\"elu-eye-off\",\n\t\t\t\"elu-tag\",\n\t\t\t\"elu-tags\",\n\t\t\t\"elu-bookmark\",\n\t\t\t\"elu-bookmark-empty\",\n\t\t\t\"elu-flag\",\n\t\t\t\"elu-flag-circled\",\n\t\t\t\"elu-thumbs-up\",\n\t\t\t\"elu-thumbs-down\",\n\t\t\t\"elu-download\",\n\t\t\t\"elu-download-alt\",\n\t\t\t\"elu-upload\",\n\t\t\t\"elu-share\",\n\t\t\t\"elu-quote\",\n\t\t\t\"elu-quote-circled\",\n\t\t\t\"elu-export\",\n\t\t\t\"elu-pencil\",\n\t\t\t\"elu-pencil-circled\",\n\t\t\t\"elu-edit\",\n\t\t\t\"elu-edit-circled\",\n\t\t\t\"elu-edit-alt\",\n\t\t\t\"elu-print\",\n\t\t\t\"elu-retweet\",\n\t\t\t\"elu-comment\",\n\t\t\t\"elu-comment-alt\",\n\t\t\t\"elu-bell\",\n\t\t\t\"elu-warning\",\n\t\t\t\"elu-exclamation\",\n\t\t\t\"elu-error\",\n\t\t\t\"elu-error-alt\",\n\t\t\t\"elu-location\",\n\t\t\t\"elu-location-circled\",\n\t\t\t\"elu-compass\",\n\t\t\t\"elu-compass-circled\",\n\t\t\t\"elu-trash\",\n\t\t\t\"elu-trash-circled\",\n\t\t\t\"elu-doc\",\n\t\t\t\"elu-doc-circled\",\n\t\t\t\"elu-doc-new\",\n\t\t\t\"elu-doc-new-circled\",\n\t\t\t\"elu-folder\",\n\t\t\t\"elu-folder-circled\",\n\t\t\t\"elu-folder-close\",\n\t\t\t\"elu-folder-open\",\n\t\t\t\"elu-rss\",\n\t\t\t\"elu-phone\",\n\t\t\t\"elu-phone-circled\",\n\t\t\t\"elu-cog\",\n\t\t\t\"elu-cog-circled\",\n\t\t\t\"elu-cogs\",\n\t\t\t\"elu-wrench\",\n\t\t\t\"elu-wrench-circled\",\n\t\t\t\"elu-basket\",\n\t\t\t\"elu-basket-circled\",\n\t\t\t\"elu-calendar\",\n\t\t\t\"elu-calendar-circled\",\n\t\t\t\"elu-mic\",\n\t\t\t\"elu-mic-circled\",\n\t\t\t\"elu-volume-off\",\n\t\t\t\"elu-volume-down\",\n\t\t\t\"elu-volume\",\n\t\t\t\"elu-volume-up\",\n\t\t\t\"elu-headphones\",\n\t\t\t\"elu-clock\",\n\t\t\t\"elu-clock-circled\",\n\t\t\t\"elu-lightbulb\",\n\t\t\t\"elu-lightbulb-alt\",\n\t\t\t\"elu-block\",\n\t\t\t\"elu-resize-full\",\n\t\t\t\"elu-resize-full-alt\",\n\t\t\t\"elu-resize-small\",\n\t\t\t\"elu-resize-vertical\",\n\t\t\t\"elu-resize-horizontal\",\n\t\t\t\"elu-move\",\n\t\t\t\"elu-zoom-in\",\n\t\t\t\"elu-zoom-out\",\n\t\t\t\"elu-down-open\",\n\t\t\t\"elu-left-open\",\n\t\t\t\"elu-right-open\",\n\t\t\t\"elu-up-open\",\n\t\t\t\"elu-down\",\n\t\t\t\"elu-left\",\n\t\t\t\"elu-music\",\n\t\t\t\"elu-up\",\n\t\t\t\"elu-down-circled\",\n\t\t\t\"elu-left-circled\",\n\t\t\t\"elu-right-circled\",\n\t\t\t\"elu-up-circled\",\n\t\t\t\"elu-down-hand\",\n\t\t\t\"elu-left-hand\",\n\t\t\t\"elu-right-hand\",\n\t\t\t\"elu-up-hand\",\n\t\t\t\"elu-cw\",\n\t\t\t\"elu-cw-circled\",\n\t\t\t\"elu-arrows-cw\",\n\t\t\t\"elu-shuffle\",\n\t\t\t\"elu-play\",\n\t\t\t\"elu-play-circled\",\n\t\t\t\"elu-play-circled2\",\n\t\t\t\"elu-stop\",\n\t\t\t\"elu-stop-circled\",\n\t\t\t\"elu-pause\",\n\t\t\t\"elu-pause-circled\",\n\t\t\t\"elu-record\",\n\t\t\t\"elu-eject\",\n\t\t\t\"elu-backward\",\n\t\t\t\"elu-backward-circled\",\n\t\t\t\"elu-fast-backward\",\n\t\t\t\"elu-fast-forward\",\n\t\t\t\"elu-forward\",\n\t\t\t\"elu-forward-circled\",\n\t\t\t\"elu-step-backward\",\n\t\t\t\"elu-step-forward\",\n\t\t\t\"elu-target\",\n\t\t\t\"elu-signal\",\n\t\t\t\"elu-desktop\",\n\t\t\t\"elu-desktop-circled\",\n\t\t\t\"elu-laptop\",\n\t\t\t\"elu-laptop-circled\",\n\t\t\t\"elu-network\",\n\t\t\t\"elu-inbox\",\n\t\t\t\"elu-inbox-circled\",\n\t\t\t\"elu-inbox-alt\",\n\t\t\t\"elu-globe\",\n\t\t\t\"elu-globe-alt\",\n\t\t\t\"elu-cloud\",\n\t\t\t\"elu-cloud-circled\",\n\t\t\t\"elu-flight\",\n\t\t\t\"elu-leaf\",\n\t\t\t\"elu-font\",\n\t\t\t\"elu-fontsize\",\n\t\t\t\"elu-bold\",\n\t\t\t\"elu-italic\",\n\t\t\t\"elu-text-height\",\n\t\t\t\"elu-text-width\",\n\t\t\t\"elu-align-left\",\n\t\t\t\"elu-align-center\",\n\t\t\t\"elu-align-right\",\n\t\t\t\"elu-align-justify\",\n\t\t\t\"elu-list\",\n\t\t\t\"elu-indent-left\",\n\t\t\t\"elu-indent-right\",\n\t\t\t\"elu-briefcase\",\n\t\t\t\"elu-off\",\n\t\t\t\"elu-road\",\n\t\t\t\"elu-qrcode\",\n\t\t\t\"elu-barcode\",\n\t\t\t\"elu-braille\",\n\t\t\t\"elu-book\",\n\t\t\t\"elu-adjust\",\n\t\t\t\"elu-tint\",\n\t\t\t\"elu-check\",\n\t\t\t\"elu-check-empty\",\n\t\t\t\"elu-asterisk\",\n\t\t\t\"elu-gift\",\n\t\t\t\"elu-fire\",\n\t\t\t\"elu-magnet\",\n\t\t\t\"elu-chart\",\n\t\t\t\"elu-chart-circled\",\n\t\t\t\"elu-credit-card\",\n\t\t\t\"elu-megaphone\",\n\t\t\t\"elu-clipboard\",\n\t\t\t\"elu-hdd\",\n\t\t\t\"elu-key\",\n\t\t\t\"elu-certificate\",\n\t\t\t\"elu-tasks\",\n\t\t\t\"elu-filter\",\n\t\t\t\"elu-gauge\",\n\t\t\t\"elu-smiley\",\n\t\t\t\"elu-smiley-circled\",\n\t\t\t\"elu-address-book\",\n\t\t\t\"elu-address-book-alt\",\n\t\t\t\"elu-asl\",\n\t\t\t\"elu-glasses\",\n\t\t\t\"elu-hearing-impaired\",\n\t\t\t\"elu-iphone-home\",\n\t\t\t\"elu-person\",\n\t\t\t\"elu-adult\",\n\t\t\t\"elu-child\",\n\t\t\t\"elu-blind\",\n\t\t\t\"elu-guidedog\",\n\t\t\t\"elu-accessibility\",\n\t\t\t\"elu-universal-access\",\n\t\t\t\"elu-male\",\n\t\t\t\"elu-female\",\n\t\t\t\"elu-behance\",\n\t\t\t\"elu-blogger\",\n\t\t\t\"elu-cc\",\n\t\t\t\"elu-css\",\n\t\t\t\"elu-delicious\",\n\t\t\t\"elu-deviantart\",\n\t\t\t\"elu-digg\",\n\t\t\t\"elu-dribbble\",\n\t\t\t\"elu-facebook\",\n\t\t\t\"elu-flickr\",\n\t\t\t\"elu-foursquare\",\n\t\t\t\"elu-friendfeed\",\n\t\t\t\"elu-friendfeed-rect\",\n\t\t\t\"elu-github\",\n\t\t\t\"elu-github-text\",\n\t\t\t\"elu-googleplus\",\n\t\t\t\"elu-instagram\",\n\t\t\t\"elu-linkedin\",\n\t\t\t\"elu-path\",\n\t\t\t\"elu-picasa\",\n\t\t\t\"elu-pinterest\",\n\t\t\t\"elu-reddit\",\n\t\t\t\"elu-skype\",\n\t\t\t\"elu-slideshare\",\n\t\t\t\"elu-stackoverflow\",\n\t\t\t\"elu-stumbleupon\",\n\t\t\t\"elu-twitter\",\n\t\t\t\"elu-tumblr\",\n\t\t\t\"elu-vimeo\",\n\t\t\t\"elu-vkontakte\",\n\t\t\t\"elu-w3c\",\n\t\t\t\"elu-wordpress\",\n\t\t\t\"elu-right\",\n\t\t\t\"en-phone\",\n\t\t\t\"en-mobile\",\n\t\t\t\"en-mouse\",\n\t\t\t\"en-directions\",\n\t\t\t\"en-location\",\n\t\t\t\"en-target\",\n\t\t\t\"en-share\",\n\t\t\t\"en-sharable\",\n\t\t\t\"en-cog\",\n\t\t\t\"en-tools\",\n\t\t\t\"en-trophy\",\n\t\t\t\"en-tag\",\n\t\t\t\"en-calendar\",\n\t\t\t\"en-bolt\",\n\t\t\t\"en-thunder\",\n\t\t\t\"en-droplet\",\n\t\t\t\"en-earth\",\n\t\t\t\"en-keyboard\",\n\t\t\t\"en-browser\",\n\t\t\t\"en-publish\",\n\t\t\t\"en-ticket\",\n\t\t\t\"en-rss\",\n\t\t\t\"en-signal\",\n\t\t\t\"en-thermometer\",\n\t\t\t\"en-feather\",\n\t\t\t\"en-paperclip\",\n\t\t\t\"en-drawer\",\n\t\t\t\"en-reply\",\n\t\t\t\"en-reply-all\",\n\t\t\t\"en-forward\",\n\t\t\t\"en-user\",\n\t\t\t\"en-users\",\n\t\t\t\"en-user-add\",\n\t\t\t\"en-vcard\",\n\t\t\t\"en-export\",\n\t\t\t\"en-location-2\",\n\t\t\t\"en-map\",\n\t\t\t\"en-compass\",\n\t\t\t\"en-star\",\n\t\t\t\"en-thumbs-up\",\n\t\t\t\"en-thumbs-down\",\n\t\t\t\"en-chat\",\n\t\t\t\"en-comment\",\n\t\t\t\"en-quote\",\n\t\t\t\"en-house\",\n\t\t\t\"en-popup\",\n\t\t\t\"en-search\",\n\t\t\t\"en-flashlight\",\n\t\t\t\"en-printer\",\n\t\t\t\"en-bell\",\n\t\t\t\"en-link\",\n\t\t\t\"en-flag\",\n\t\t\t\"en-palette\",\n\t\t\t\"en-leaf\",\n\t\t\t\"en-music\",\n\t\t\t\"en-music-2\",\n\t\t\t\"en-new\",\n\t\t\t\"en-graduation\",\n\t\t\t\"en-book\",\n\t\t\t\"en-newspaper\",\n\t\t\t\"en-bag\",\n\t\t\t\"en-airplane\",\n\t\t\t\"en-lifebuoy\",\n\t\t\t\"en-eye\",\n\t\t\t\"en-clock\",\n\t\t\t\"en-microphone\",\n\t\t\t\"en-hourglass\",\n\t\t\t\"en-gauge\",\n\t\t\t\"en-language\",\n\t\t\t\"en-network\",\n\t\t\t\"en-key\",\n\t\t\t\"en-progress-0\",\n\t\t\t\"en-sun\",\n\t\t\t\"en-sun-2\",\n\t\t\t\"en-adjust\",\n\t\t\t\"en-code\",\n\t\t\t\"en-pie\",\n\t\t\t\"en-bars\",\n\t\t\t\"en-graph\",\n\t\t\t\"en-lock\",\n\t\t\t\"en-lock-open\",\n\t\t\t\"en-question\",\n\t\t\t\"en-help\",\n\t\t\t\"en-warning\",\n\t\t\t\"en-cycle\",\n\t\t\t\"en-cw\",\n\t\t\t\"en-docs\",\n\t\t\t\"en-landscape\",\n\t\t\t\"en-pictures\",\n\t\t\t\"en-video\",\n\t\t\t\"en-music-3\",\n\t\t\t\"en-battery\",\n\t\t\t\"en-bucket\",\n\t\t\t\"en-magnet\",\n\t\t\t\"en-drive\",\n\t\t\t\"en-cup\",\n\t\t\t\"en-rocket\",\n\t\t\t\"en-brush\",\n\t\t\t\"en-suitcase\",\n\t\t\t\"en-cone\",\n\t\t\t\"en-screen\",\n\t\t\t\"en-infinity\",\n\t\t\t\"en-light-bulb\",\n\t\t\t\"en-credit-card\",\n\t\t\t\"en-database\",\n\t\t\t\"en-voicemail\",\n\t\t\t\"en-clipboard\",\n\t\t\t\"en-cart\",\n\t\t\t\"en-box\",\n\t\t\t\"en-resize-shrink\",\n\t\t\t\"en-volume\",\n\t\t\t\"en-sound\",\n\t\t\t\"en-arrow-left\",\n\t\t\t\"en-arrow-down\",\n\t\t\t\"en-arrow-up\",\n\t\t\t\"en-ellipsis\",\n\t\t\t\"en-dots\",\n\t\t\t\"en-dot\",\n\t\t\t\"en-vimeo\",\n\t\t\t\"en-twitter\",\n\t\t\t\"en-twitter-2\",\n\t\t\t\"en-rdio\",\n\t\t\t\"en-spotify\",\n\t\t\t\"en-spotify-2\",\n\t\t\t\"en-mute\",\n\t\t\t\"en-flow-cascade\",\n\t\t\t\"en-flow-branch\",\n\t\t\t\"en-arrow-right\",\n\t\t\t\"en-arrow-left-2\",\n\t\t\t\"en-arrow-down-2\",\n\t\t\t\"en-cc\",\n\t\t\t\"en-cc-by\",\n\t\t\t\"en-cc-nc\",\n\t\t\t\"en-facebook\",\n\t\t\t\"en-facebook-2\",\n\t\t\t\"en-facebook-3\",\n\t\t\t\"en-qq\",\n\t\t\t\"en-instagram\",\n\t\t\t\"en-dropbox\",\n\t\t\t\"en-flow-tree\",\n\t\t\t\"en-flow-line\",\n\t\t\t\"en-flow-parallel\",\n\t\t\t\"en-arrow-up-2\",\n\t\t\t\"en-arrow-right-2\",\n\t\t\t\"en-arrow-left-3\",\n\t\t\t\"en-cc-nc-eu\",\n\t\t\t\"en-cc-nc-jp\",\n\t\t\t\"en-cc-sa\",\n\t\t\t\"en-googleplus\",\n\t\t\t\"en-googleplus-2\",\n\t\t\t\"en-pinterest\",\n\t\t\t\"en-evernote\",\n\t\t\t\"en-flattr\",\n\t\t\t\"en-skype\",\n\t\t\t\"en-logout\",\n\t\t\t\"en-login\",\n\t\t\t\"en-checkmark\",\n\t\t\t\"en-cross\",\n\t\t\t\"en-minus\",\n\t\t\t\"en-plus\",\n\t\t\t\"en-ccw\",\n\t\t\t\"en-shuffle\",\n\t\t\t\"en-arrow\",\n\t\t\t\"en-arrow-2\",\n\t\t\t\"en-retweet\",\n\t\t\t\"en-loop\",\n\t\t\t\"en-folder\",\n\t\t\t\"en-archive\",\n\t\t\t\"en-trash\",\n\t\t\t\"en-upload\",\n\t\t\t\"en-download\",\n\t\t\t\"en-disk\",\n\t\t\t\"en-cross-2\",\n\t\t\t\"en-minus-2\",\n\t\t\t\"en-plus-2\",\n\t\t\t\"en-history\",\n\t\t\t\"en-back\",\n\t\t\t\"en-switch\",\n\t\t\t\"en-install\",\n\t\t\t\"en-cloud\",\n\t\t\t\"en-upload-2\",\n\t\t\t\"en-cross-3\",\n\t\t\t\"en-minus-3\",\n\t\t\t\"en-plus-3\",\n\t\t\t\"en-erase\",\n\t\t\t\"en-blocked\",\n\t\t\t\"en-info\",\n\t\t\t\"en-info-2\",\n\t\t\t\"en-list\",\n\t\t\t\"en-add-to-list\",\n\t\t\t\"en-layout\",\n\t\t\t\"en-list-2\",\n\t\t\t\"en-text\",\n\t\t\t\"en-text-2\",\n\t\t\t\"en-document\",\n\t\t\t\"en-first\",\n\t\t\t\"en-last\",\n\t\t\t\"en-resize-enlarge\",\n\t\t\t\"en-arrow-down-3\",\n\t\t\t\"en-arrow-up-3\",\n\t\t\t\"en-arrow-right-3\",\n\t\t\t\"en-arrow-right-4\",\n\t\t\t\"en-menu\",\n\t\t\t\"en-flickr\",\n\t\t\t\"en-flickr-2\",\n\t\t\t\"en-vimeo-2\",\n\t\t\t\"en-lastfm\",\n\t\t\t\"en-lastfm-2\",\n\t\t\t\"en-rdio-2\",\n\t\t\t\"en-vk\",\n\t\t\t\"en-smashing\",\n\t\t\t\"en-record\",\n\t\t\t\"en-stop\",\n\t\t\t\"en-next\",\n\t\t\t\"en-previous\",\n\t\t\t\"en-arrow-down-4\",\n\t\t\t\"en-arrow-up-4\",\n\t\t\t\"en-arrow-right-5\",\n\t\t\t\"en-arrow-left-4\",\n\t\t\t\"en-pinterest-2\",\n\t\t\t\"en-tumblr\",\n\t\t\t\"en-tumblr-2\",\n\t\t\t\"en-linkedin\",\n\t\t\t\"en-linkedin-2\",\n\t\t\t\"en-dribbble\",\n\t\t\t\"en-dribbble-2\",\n\t\t\t\"en-stumbleupon\",\n\t\t\t\"en-stumbleupon-2\",\n\t\t\t\"en-skype-2\",\n\t\t\t\"en-renren\",\n\t\t\t\"en-sina-weibo\",\n\t\t\t\"en-paypal\",\n\t\t\t\"en-picasa\",\n\t\t\t\"en-soundcloud\",\n\t\t\t\"en-mixi\",\n\t\t\t\"en-behance\",\n\t\t\t\"en-circles\",\n\t\t\t\"en-cc-nd\",\n\t\t\t\"en-cc-pd\",\n\t\t\t\"en-cc-zero\",\n\t\t\t\"en-cc-share\",\n\t\t\t\"en-cc-share-2\",\n\t\t\t\"en-daniel-bruce\",\n\t\t\t\"en-daniel-bruce-2\",\n\t\t\t\"en-github\",\n\t\t\t\"en-github-2\",\n\t\t\t\"en-bookmark\",\n\t\t\t\"en-bookmarks\",\n\t\t\t\"en-book-2\",\n\t\t\t\"en-play\",\n\t\t\t\"en-pause\",\n\t\t\t\"en-arrow-left-5\",\n\t\t\t\"en-arrow-down-5\",\n\t\t\t\"en-arrow-up--upload\",\n\t\t\t\"en-arrow-right-6\",\n\t\t\t\"en-arrow-left-6\",\n\t\t\t\"en-arrow-down-6\",\n\t\t\t\"en-arrow-up-5\",\n\t\t\t\"en-arrow-right-7\",\n\t\t\t\"en-arrow-left-7\",\n\t\t\t\"en-arrow-down-7\",\n\t\t\t\"en-arrow-up-6\",\n\t\t\t\"en-arrow-right-8\",\n\t\t\t\"en-arrow-left-8\",\n\t\t\t\"en-arrow-down-8\",\n\t\t\t\"en-arrow-up-7\",\n\t\t\t\"en-mail\",\n\t\t\t\"en-paperplane\",\n\t\t\t\"en-pencil\",\n\t\t\t\"en-heart\",\n\t\t\t\"en-heart-2\",\n\t\t\t\"en-star-2\",\n\t\t\t\"en-camera\",\n\t\t\t\"en-megaphone\",\n\t\t\t\"en-moon\",\n\t\t\t\"en-cd\",\n\t\t\t\"en-briefcase\",\n\t\t\t\"en-air\",\n\t\t\t\"en-progress-3\",\n\t\t\t\"en-progress-2\",\n\t\t\t\"en-brogress-1\",\n\t\t\t\"en-statistics\",\n\t\t\t\"en-droplets\",\n\t\t\t\"fa-renren\",\n\t\t\t\"fa-weibo\",\n\t\t\t\"fa-vk\",\n\t\t\t\"fa-bug\",\n\t\t\t\"fa-archive\",\n\t\t\t\"fa-moon\",\n\t\t\t\"fa-sun\",\n\t\t\t\"fa-gittip\",\n\t\t\t\"fa-male\",\n\t\t\t\"fa-female\",\n\t\t\t\"fa-trello\",\n\t\t\t\"fa-foursquare\",\n\t\t\t\"fa-skype\",\n\t\t\t\"fa-dribbble\",\n\t\t\t\"fa-linux\",\n\t\t\t\"fa-android\",\n\t\t\t\"fa-windows\",\n\t\t\t\"fa-apple\",\n\t\t\t\"fa-long-arrow-right\",\n\t\t\t\"fa-long-arrow-left\",\n\t\t\t\"fa-long-arrow-up\",\n\t\t\t\"fa-long-arrow-down\",\n\t\t\t\"fa-tumblr-sign\",\n\t\t\t\"fa-tumblr\",\n\t\t\t\"fa-bitbucket-sign\",\n\t\t\t\"fa-bitbucket\",\n\t\t\t\"fa-adn\",\n\t\t\t\"fa-flickr\",\n\t\t\t\"fa-instagram\",\n\t\t\t\"fa-stackexchange\",\n\t\t\t\"fa-dropbox\",\n\t\t\t\"fa-youtube-play\",\n\t\t\t\"fa-xing-sign\",\n\t\t\t\"fa-xing\",\n\t\t\t\"fa-youtube\",\n\t\t\t\"fa-youtube-sign\",\n\t\t\t\"fa-thumbs-down\",\n\t\t\t\"fa-thumbs-up\",\n\t\t\t\"fa-sort-by-order-alt\",\n\t\t\t\"fa-sort-by-order\",\n\t\t\t\"fa-sort-by-attributes-alt\",\n\t\t\t\"fa-sort-by-attributes\",\n\t\t\t\"fa-sort-by-alphabet-alt\",\n\t\t\t\"fa-sort-by-alphabet\",\n\t\t\t\"fa-file-text\",\n\t\t\t\"fa-file\",\n\t\t\t\"fa-bitcoin\",\n\t\t\t\"fa-won\",\n\t\t\t\"fa-renminbi\",\n\t\t\t\"fa-yen\",\n\t\t\t\"fa-rupee\",\n\t\t\t\"fa-dollar\",\n\t\t\t\"fa-gbp\",\n\t\t\t\"fa-euro\",\n\t\t\t\"fa-expand\",\n\t\t\t\"fa-collapse-top\",\n\t\t\t\"fa-collapse\",\n\t\t\t\"fa-compass\",\n\t\t\t\"fa-share-sign\",\n\t\t\t\"fa-external-link-sign\",\n\t\t\t\"fa-edit-sign\",\n\t\t\t\"fa-check-sign\",\n\t\t\t\"fa-level-down\",\n\t\t\t\"fa-level-up\",\n\t\t\t\"fa-check-minus\",\n\t\t\t\"fa-minus-sign-alt\",\n\t\t\t\"fa-ticket\",\n\t\t\t\"fa-play-sign\",\n\t\t\t\"fa-rss-sign\",\n\t\t\t\"fa-ellipsis-vertical\",\n\t\t\t\"fa-ellipsis-horizontal\",\n\t\t\t\"fa-bullseye\",\n\t\t\t\"fa-unlock-alt\",\n\t\t\t\"fa-anchor\",\n\t\t\t\"fa-css3\",\n\t\t\t\"fa-html5\",\n\t\t\t\"fa-chevron-sign-down\",\n\t\t\t\"fa-chevron-sign-up\",\n\t\t\t\"fa-chevron-sign-right\",\n\t\t\t\"fa-chevron-sign-left\",\n\t\t\t\"fa-maxcdn\",\n\t\t\t\"fa-rocket\",\n\t\t\t\"fa-fire-extinguisher\",\n\t\t\t\"fa-calendar-empty\",\n\t\t\t\"fa-shield\",\n\t\t\t\"fa-microphone-off\",\n\t\t\t\"fa-microphone\",\n\t\t\t\"fa-puzzle\",\n\t\t\t\"fa-eraser\",\n\t\t\t\"fa-subscript\",\n\t\t\t\"fa-superscript\",\n\t\t\t\"fa-exclamation\",\n\t\t\t\"fa-info\",\n\t\t\t\"fa-question\",\n\t\t\t\"fa-unlink\",\n\t\t\t\"fa-code-fork\",\n\t\t\t\"fa-crop\",\n\t\t\t\"fa-location-arrow\",\n\t\t\t\"fa-star-half-full\",\n\t\t\t\"fa-reply-all\",\n\t\t\t\"fa-code\",\n\t\t\t\"fa-terminal\",\n\t\t\t\"fa-flag-checkered\",\n\t\t\t\"fa-flag-alt\",\n\t\t\t\"fa-keyboard\",\n\t\t\t\"fa-gamepad\",\n\t\t\t\"fa-meh\",\n\t\t\t\"fa-frown\",\n\t\t\t\"fa-smile\",\n\t\t\t\"fa-collapse-alt\",\n\t\t\t\"fa-expand-alt\",\n\t\t\t\"fa-folder-open-alt\",\n\t\t\t\"fa-folder-close-alt\",\n\t\t\t\"fa-github-alt\",\n\t\t\t\"fa-reply\",\n\t\t\t\"fa-circle\",\n\t\t\t\"fa-spinner\",\n\t\t\t\"fa-quote-right\",\n\t\t\t\"fa-quote-left\",\n\t\t\t\"fa-circle-blank\",\n\t\t\t\"fa-mobile\",\n\t\t\t\"fa-tablet\",\n\t\t\t\"fa-laptop\",\n\t\t\t\"fa-desktop\",\n\t\t\t\"fa-angle-down\",\n\t\t\t\"fa-angle-up\",\n\t\t\t\"fa-angle-right\",\n\t\t\t\"fa-angle-left\",\n\t\t\t\"fa-double-angle-down\",\n\t\t\t\"fa-double-angle-up\",\n\t\t\t\"fa-double-angle-right\",\n\t\t\t\"fa-double-angle-left\",\n\t\t\t\"fa-plus-sign\",\n\t\t\t\"fa-h-sign\",\n\t\t\t\"fa-beer\",\n\t\t\t\"fa-fighter-jet\",\n\t\t\t\"fa-medkit\",\n\t\t\t\"fa-ambulance\",\n\t\t\t\"fa-hospital\",\n\t\t\t\"fa-building\",\n\t\t\t\"fa-file-alt\",\n\t\t\t\"fa-food\",\n\t\t\t\"fa-coffee\",\n\t\t\t\"fa-bell-alt\",\n\t\t\t\"fa-suitcase\",\n\t\t\t\"fa-stethoscope\",\n\t\t\t\"fa-user-md\",\n\t\t\t\"fa-cloud-upload\",\n\t\t\t\"fa-cloud-download\",\n\t\t\t\"fa-exchange\",\n\t\t\t\"fa-lightbulb\",\n\t\t\t\"fa-paste\",\n\t\t\t\"fa-umbrella\",\n\t\t\t\"fa-sitemap\",\n\t\t\t\"fa-bolt\",\n\t\t\t\"fa-comments-alt\",\n\t\t\t\"fa-comment-alt\",\n\t\t\t\"fa-dashboard\",\n\t\t\t\"fa-legal\",\n\t\t\t\"fa-undo\",\n\t\t\t\"fa-linkedin\",\n\t\t\t\"fa-envelope-alt\",\n\t\t\t\"fa-sort-up\",\n\t\t\t\"fa-sort-down\",\n\t\t\t\"fa-sort\",\n\t\t\t\"fa-columns\",\n\t\t\t\"fa-caret-right\",\n\t\t\t\"fa-caret-left\",\n\t\t\t\"fa-caret-up\",\n\t\t\t\"fa-caret-down\",\n\t\t\t\"fa-money\",\n\t\t\t\"fa-google-plus\",\n\t\t\t\"fa-google-plus-sign\",\n\t\t\t\"fa-pinterest-sign\",\n\t\t\t\"fa-pinterest\",\n\t\t\t\"fa-truck\",\n\t\t\t\"fa-magic\",\n\t\t\t\"fa-table\",\n\t\t\t\"fa-underline\",\n\t\t\t\"fa-strikethrough\",\n\t\t\t\"fa-list-ol\",\n\t\t\t\"fa-list-ul\",\n\t\t\t\"fa-reorder\",\n\t\t\t\"fa-sign-blank\",\n\t\t\t\"fa-save\",\n\t\t\t\"fa-paper-clip\",\n\t\t\t\"fa-copy\",\n\t\t\t\"fa-cut\",\n\t\t\t\"fa-beaker\",\n\t\t\t\"fa-cloud\",\n\t\t\t\"fa-link\",\n\t\t\t\"fa-group\",\n\t\t\t\"fa-fullscreen\",\n\t\t\t\"fa-briefcase\",\n\t\t\t\"fa-filter\",\n\t\t\t\"fa-tasks\",\n\t\t\t\"fa-wrench\",\n\t\t\t\"fa-globe\",\n\t\t\t\"fa-circle-arrow-down\",\n\t\t\t\"fa-circle-arrow-up\",\n\t\t\t\"fa-circle-arrow-right\",\n\t\t\t\"fa-circle-arrow-left\",\n\t\t\t\"fa-hand-down\",\n\t\t\t\"fa-hand-up\",\n\t\t\t\"fa-hand-left\",\n\t\t\t\"fa-hand-right\",\n\t\t\t\"fa-certificate\",\n\t\t\t\"fa-bell\",\n\t\t\t\"fa-bullhorn\",\n\t\t\t\"fa-hdd\",\n\t\t\t\"fa-rss\",\n\t\t\t\"fa-credit\",\n\t\t\t\"fa-unlock\",\n\t\t\t\"fa-github\",\n\t\t\t\"fa-facebook\",\n\t\t\t\"fa-twitter\",\n\t\t\t\"fa-phone-sign\",\n\t\t\t\"fa-bookmark-empty\",\n\t\t\t\"fa-check-empty\",\n\t\t\t\"fa-phone\",\n\t\t\t\"fa-lemon\",\n\t\t\t\"fa-upload-alt\",\n\t\t\t\"fa-github-sign\",\n\t\t\t\"fa-trophy\",\n\t\t\t\"fa-signin\",\n\t\t\t\"fa-external-link\",\n\t\t\t\"fa-pushpin\",\n\t\t\t\"fa-linkedin-sign\",\n\t\t\t\"fa-signout\",\n\t\t\t\"fa-heart-empty\",\n\t\t\t\"fa-star-half\",\n\t\t\t\"fa-thumbs-down-2\",\n\t\t\t\"fa-thumbs-up-2\",\n\t\t\t\"fa-comments\",\n\t\t\t\"fa-cogs\",\n\t\t\t\"fa-key\",\n\t\t\t\"fa-camera-retro\",\n\t\t\t\"fa-facebook-sign\",\n\t\t\t\"fa-twitter-sign\",\n\t\t\t\"fa-bar-chart\",\n\t\t\t\"fa-resize-horizontal\",\n\t\t\t\"fa-resize-vertical\",\n\t\t\t\"fa-folder-open\",\n\t\t\t\"fa-folder-close\",\n\t\t\t\"fa-shopping-cart\",\n\t\t\t\"fa-retweet\",\n\t\t\t\"fa-chevron-down\",\n\t\t\t\"fa-chevron-up\",\n\t\t\t\"fa-magnet\",\n\t\t\t\"fa-comment\",\n\t\t\t\"fa-random\",\n\t\t\t\"fa-calendar\",\n\t\t\t\"fa-plane\",\n\t\t\t\"fa-warning-sign\",\n\t\t\t\"fa-eye-close\",\n\t\t\t\"fa-eye-open\",\n\t\t\t\"fa-fire\",\n\t\t\t\"fa-leaf\",\n\t\t\t\"fa-gift\",\n\t\t\t\"fa-exclamation-sign\",\n\t\t\t\"fa-asterisk\",\n\t\t\t\"fa-minus\",\n\t\t\t\"fa-plus\",\n\t\t\t\"fa-resize-small\",\n\t\t\t\"fa-resize-full\",\n\t\t\t\"fa-share-alt\",\n\t\t\t\"fa-arrow-down\",\n\t\t\t\"fa-arrow-up\",\n\t\t\t\"fa-arrow-right\",\n\t\t\t\"fa-arrow-left\",\n\t\t\t\"fa-ban-circle\",\n\t\t\t\"fa-ok-circle\",\n\t\t\t\"fa-remove-circle\",\n\t\t\t\"fa-screenshot\",\n\t\t\t\"fa-info-sign\",\n\t\t\t\"fa-question-sign\",\n\t\t\t\"fa-ok-sign\",\n\t\t\t\"fa-remove-sign\",\n\t\t\t\"fa-minus-sign\",\n\t\t\t\"fa-plus-sign-2\",\n\t\t\t\"fa-chevron-right\",\n\t\t\t\"fa-chevron-left\",\n\t\t\t\"fa-eject\",\n\t\t\t\"fa-step-forward\",\n\t\t\t\"fa-fast-forward\",\n\t\t\t\"fa-forward\",\n\t\t\t\"fa-stop\",\n\t\t\t\"fa-pause\",\n\t\t\t\"fa-play\",\n\t\t\t\"fa-backward\",\n\t\t\t\"fa-fast-backward\",\n\t\t\t\"fa-step-backward\",\n\t\t\t\"fa-move\",\n\t\t\t\"fa-check\",\n\t\t\t\"fa-share\",\n\t\t\t\"fa-edit\",\n\t\t\t\"fa-tint\",\n\t\t\t\"fa-adjust\",\n\t\t\t\"fa-map-marker\",\n\t\t\t\"fa-pencil\",\n\t\t\t\"fa-picture\",\n\t\t\t\"fa-facetime-video\",\n\t\t\t\"fa-indent-right\",\n\t\t\t\"fa-indent-left\",\n\t\t\t\"fa-list\",\n\t\t\t\"fa-align-justify\",\n\t\t\t\"fa-align-right\",\n\t\t\t\"fa-align-center\",\n\t\t\t\"fa-align-left\",\n\t\t\t\"fa-text-width\",\n\t\t\t\"fa-text-height\",\n\t\t\t\"fa-italic\",\n\t\t\t\"fa-bold\",\n\t\t\t\"fa-font\",\n\t\t\t\"fa-camera\",\n\t\t\t\"fa-print\",\n\t\t\t\"fa-bookmark\",\n\t\t\t\"fa-book\",\n\t\t\t\"fa-tags\",\n\t\t\t\"fa-tag\",\n\t\t\t\"fa-barcode\",\n\t\t\t\"fa-qrcode\",\n\t\t\t\"fa-volume-up\",\n\t\t\t\"fa-volume-down\",\n\t\t\t\"fa-volume-off\",\n\t\t\t\"fa-headphones\",\n\t\t\t\"fa-flag\",\n\t\t\t\"fa-lock\",\n\t\t\t\"fa-list-alt\",\n\t\t\t\"fa-refresh\",\n\t\t\t\"fa-repeat\",\n\t\t\t\"fa-play-circle\",\n\t\t\t\"fa-inbox\",\n\t\t\t\"fa-upload\",\n\t\t\t\"fa-download\",\n\t\t\t\"fa-download-alt\",\n\t\t\t\"fa-road\",\n\t\t\t\"fa-time\",\n\t\t\t\"fa-file-2\",\n\t\t\t\"fa-home\",\n\t\t\t\"fa-trash\",\n\t\t\t\"fa-cog\",\n\t\t\t\"fa-signal\",\n\t\t\t\"fa-off\",\n\t\t\t\"fa-zoom-out\",\n\t\t\t\"fa-zoom-in\",\n\t\t\t\"fa-remove\",\n\t\t\t\"fa-ok\",\n\t\t\t\"fa-th-list\",\n\t\t\t\"fa-th\",\n\t\t\t\"fa-th-large\",\n\t\t\t\"fa-film\",\n\t\t\t\"fa-user\",\n\t\t\t\"fa-star-empty\",\n\t\t\t\"fa-star\",\n\t\t\t\"fa-heart\",\n\t\t\t\"fa-envelope\",\n\t\t\t\"fa-search\",\n\t\t\t\"fa-music\",\n\t\t\t\"fa-glass\",\n\t\t\t\"file-3dm\",\n\t\t\t\"file-zip6\",\n\t\t\t\"file-3g22\",\n\t\t\t\"file-3gp2\",\n\t\t\t\"file-7z1\",\n\t\t\t\"file-aac\",\n\t\t\t\"file-ai\",\n\t\t\t\"file-aif\",\n\t\t\t\"file-apk\",\n\t\t\t\"file-app6\",\n\t\t\t\"file-asf1\",\n\t\t\t\"file-asp\",\n\t\t\t\"file-aspx\",\n\t\t\t\"file-asx2\",\n\t\t\t\"file-avi4\",\n\t\t\t\"file-bak\",\n\t\t\t\"file-bat8\",\n\t\t\t\"file-bin6\",\n\t\t\t\"file-bmp2\",\n\t\t\t\"file-cab\",\n\t\t\t\"file-cad1\",\n\t\t\t\"file-cdr2\",\n\t\t\t\"file-cer\",\n\t\t\t\"file-cfg2\",\n\t\t\t\"file-cfm2\",\n\t\t\t\"file-cgi2\",\n\t\t\t\"file-class3\",\n\t\t\t\"file-com\",\n\t\t\t\"file-cpl2\",\n\t\t\t\"file-cpp1\",\n\t\t\t\"file-crx\",\n\t\t\t\"file-csr\",\n\t\t\t\"file-css5\",\n\t\t\t\"file-csv2\",\n\t\t\t\"file-cue2\",\n\t\t\t\"file-cur1\",\n\t\t\t\"file-dat2\",\n\t\t\t\"file-db2\",\n\t\t\t\"file-dbf2\",\n\t\t\t\"file-dds2\",\n\t\t\t\"file-dem2\",\n\t\t\t\"file-dll2\",\n\t\t\t\"file-dmg3\",\n\t\t\t\"file-dmp2\",\n\t\t\t\"file-doc2\",\n\t\t\t\"file-docx\",\n\t\t\t\"file-drv1\",\n\t\t\t\"file-dtd2\",\n\t\t\t\"file-dwg2\",\n\t\t\t\"file-dxf1\",\n\t\t\t\"file-elf2\",\n\t\t\t\"file-eps2\",\n\t\t\t\"file-eps5\",\n\t\t\t\"file-exe3\",\n\t\t\t\"file-fla2\",\n\t\t\t\"file-flash10\",\n\t\t\t\"file-flv\",\n\t\t\t\"file-fnt\",\n\t\t\t\"file-fon1\",\n\t\t\t\"file-gam2\",\n\t\t\t\"file-gbr1\",\n\t\t\t\"file-ged2\",\n\t\t\t\"file-gif3\",\n\t\t\t\"file-gpx1\",\n\t\t\t\"file-gz\",\n\t\t\t\"file-gzip2\",\n\t\t\t\"file-hqz\",\n\t\t\t\"file-html9\",\n\t\t\t\"file-ibooks1\",\n\t\t\t\"file-icns\",\n\t\t\t\"file-ico2\",\n\t\t\t\"file-ics2\",\n\t\t\t\"file-iff\",\n\t\t\t\"file-indd2\",\n\t\t\t\"file-iso1\",\n\t\t\t\"file-iso4\",\n\t\t\t\"file-jar8\",\n\t\t\t\"file-jpg3\",\n\t\t\t\"file-js2\",\n\t\t\t\"file-jsp2\",\n\t\t\t\"file-key35\",\n\t\t\t\"file-kml1\",\n\t\t\t\"file-kmz\",\n\t\t\t\"file-lnk2\",\n\t\t\t\"file-log2\",\n\t\t\t\"file-lua\",\n\t\t\t\"file-m3u\",\n\t\t\t\"file-m4a1\",\n\t\t\t\"file-3ds2\",\n\t\t\t\"file-macho\",\n\t\t\t\"file-max2\",\n\t\t\t\"file-mdb2\",\n\t\t\t\"file-mdf2\",\n\t\t\t\"file-mid\",\n\t\t\t\"file-mim\",\n\t\t\t\"file-mov2\",\n\t\t\t\"file-mp36\",\n\t\t\t\"file-mp4\",\n\t\t\t\"file-mpa\",\n\t\t\t\"file-mpg3\",\n\t\t\t\"file-msg2\",\n\t\t\t\"file-msi2\",\n\t\t\t\"file-nes1\",\n\t\t\t\"file-object4\",\n\t\t\t\"file-odb2\",\n\t\t\t\"file-odc2\",\n\t\t\t\"file-odf2\",\n\t\t\t\"file-odg\",\n\t\t\t\"file-odi2\",\n\t\t\t\"file-odp2\",\n\t\t\t\"file-ods2\",\n\t\t\t\"file-odt\",\n\t\t\t\"file-odt5\",\n\t\t\t\"file-odx\",\n\t\t\t\"file-ogg\",\n\t\t\t\"file-otf\",\n\t\t\t\"file-otf1\",\n\t\t\t\"file-pages4\",\n\t\t\t\"file-pct2\",\n\t\t\t\"file-pdb2\",\n\t\t\t\"file-pdf19\",\n\t\t\t\"file-pif2\",\n\t\t\t\"file-pkg2\",\n\t\t\t\"file-pl2\",\n\t\t\t\"file-png3\",\n\t\t\t\"file-pps2\",\n\t\t\t\"file-ppt\",\n\t\t\t\"file-pptx2\",\n\t\t\t\"file-ps\",\n\t\t\t\"file-psd3\",\n\t\t\t\"file-pub2\",\n\t\t\t\"file-python3\",\n\t\t\t\"file-ra\",\n\t\t\t\"file-rar2\",\n\t\t\t\"file-raw2\",\n\t\t\t\"file-rm\",\n\t\t\t\"file-rom2\",\n\t\t\t\"file-rpm2\",\n\t\t\t\"file-rss29\",\n\t\t\t\"file-rtf\",\n\t\t\t\"file-sav\",\n\t\t\t\"file-sdf\",\n\t\t\t\"file-sitx2\",\n\t\t\t\"file-sql3\",\n\t\t\t\"file-sql5\",\n\t\t\t\"file-srt\",\n\t\t\t\"file-svg1\",\n\t\t\t\"file-swf1\",\n\t\t\t\"file-sys\",\n\t\t\t\"file-tar1\",\n\t\t\t\"file-tex\",\n\t\t\t\"file-tga2\",\n\t\t\t\"file-thm1\",\n\t\t\t\"file-tiff1\",\n\t\t\t\"file-tmp\",\n\t\t\t\"file-torrent\",\n\t\t\t\"file-ttf2\",\n\t\t\t\"file-txt2\",\n\t\t\t\"file-uue2\",\n\t\t\t\"file-vb\",\n\t\t\t\"file-vcd2\",\n\t\t\t\"file-vcf2\",\n\t\t\t\"file-vob\",\n\t\t\t\"file-wav2\",\n\t\t\t\"file-wma1\",\n\t\t\t\"file-wmv2\",\n\t\t\t\"file-wpd2\",\n\t\t\t\"file-wps\",\n\t\t\t\"file-wsf2\",\n\t\t\t\"file-xhtml\",\n\t\t\t\"file-xlr2\",\n\t\t\t\"file-xls1\",\n\t\t\t\"file-xlsx\",\n\t\t\t\"file-xml5\",\n\t\t\t\"file-yuv2\",\n\t\t\t\"file-m4v2\",\n\t\t\t\"fo-emo-happy\",\n\t\t\t\"fo-marquee\",\n\t\t\t\"fo-emo-wink2\",\n\t\t\t\"fo-emo-unhappy\",\n\t\t\t\"fo-emo-sleep\",\n\t\t\t\"fo-emo-thumbsup\",\n\t\t\t\"fo-emo-devil\",\n\t\t\t\"fo-emo-surprised\",\n\t\t\t\"fo-emo-tongue\",\n\t\t\t\"fo-emo-coffee\",\n\t\t\t\"fo-emo-sunglasses\",\n\t\t\t\"fo-emo-displeased\",\n\t\t\t\"fo-emo-beer\",\n\t\t\t\"fo-emo-grin\",\n\t\t\t\"fo-emo-angry\",\n\t\t\t\"fo-emo-saint\",\n\t\t\t\"fo-emo-cry\",\n\t\t\t\"fo-emo-wink\",\n\t\t\t\"fo-emo-squint\",\n\t\t\t\"fo-emo-laugh\",\n\t\t\t\"fo-spin1\",\n\t\t\t\"fo-spin2\",\n\t\t\t\"fo-spin3\",\n\t\t\t\"fo-spin4\",\n\t\t\t\"fo-spin5\",\n\t\t\t\"fo-spin6\",\n\t\t\t\"fo-firefox\",\n\t\t\t\"fo-chrome\",\n\t\t\t\"fo-opera\",\n\t\t\t\"fo-ie\",\n\t\t\t\"fo-crown\",\n\t\t\t\"fo-crown-plus\",\n\t\t\t\"fo-crown-minus\",\n\t\t\t\"fo-emo-shoot\",\n\t\t\t\"foa-Speaker\",\n\t\t\t\"foa-Wheelchair\",\n\t\t\t\"foa-Eject\",\n\t\t\t\"foa-ViewModes\",\n\t\t\t\"foa-Eyeball\",\n\t\t\t\"foa-ASL\",\n\t\t\t\"foa-Person\",\n\t\t\t\"foa-QuestionMark\",\n\t\t\t\"foa-Adult\",\n\t\t\t\"foa-Child\",\n\t\t\t\"foa-Glasses\",\n\t\t\t\"foa-ClosedCaption\",\n\t\t\t\"foa-BlindWalking\",\n\t\t\t\"foa-FontSize\",\n\t\t\t\"foa-iPhoneHomeKey\",\n\t\t\t\"foa-W3CApproved\",\n\t\t\t\"foa-CSSValidated\",\n\t\t\t\"foa-Key\",\n\t\t\t\"foa-HearingImpaired\",\n\t\t\t\"foa-Male\",\n\t\t\t\"foa-Female\",\n\t\t\t\"foa-Globe\",\n\t\t\t\"foa-GuideDog\",\n\t\t\t\"foa-UniversalAccess\",\n\t\t\t\"foa-Elevator\",\n\t\t\t\"foa-Braille\",\n\t\t\t\"ft-approve3\",\n\t\t\t\"ft-world8\",\n\t\t\t\"ft-arrow128\",\n\t\t\t\"ft-arrow132\",\n\t\t\t\"ft-arrow133\",\n\t\t\t\"ft-arrow137\",\n\t\t\t\"ft-arrow138\",\n\t\t\t\"ft-black87\",\n\t\t\t\"ft-cart4\",\n\t\t\t\"ft-chains\",\n\t\t\t\"ft-checked10\",\n\t\t\t\"ft-chevron12\",\n\t\t\t\"ft-close15\",\n\t\t\t\"ft-close16\",\n\t\t\t\"ft-cloud43\",\n\t\t\t\"ft-comment21\",\n\t\t\t\"ft-contacts3\",\n\t\t\t\"ft-eye24\",\n\t\t\t\"ft-flat1\",\n\t\t\t\"ft-flat2\",\n\t\t\t\"ft-folder39\",\n\t\t\t\"ft-folder40\",\n\t\t\t\"ft-heart33\",\n\t\t\t\"ft-heart34\",\n\t\t\t\"ft-image33\",\n\t\t\t\"ft-internet8\",\n\t\t\t\"ft-key22\",\n\t\t\t\"ft-links3\",\n\t\t\t\"ft-list20\",\n\t\t\t\"ft-magnification2\",\n\t\t\t\"ft-arrow123\",\n\t\t\t\"ft-mail18\",\n\t\t\t\"ft-map3\",\n\t\t\t\"ft-mechanic2\",\n\t\t\t\"ft-menu6\",\n\t\t\t\"ft-microsoft4\",\n\t\t\t\"ft-nine1\",\n\t\t\t\"ft-phone23\",\n\t\t\t\"ft-picture3\",\n\t\t\t\"ft-planet5\",\n\t\t\t\"ft-pointer8\",\n\t\t\t\"ft-refresh20\",\n\t\t\t\"ft-refresh22\",\n\t\t\t\"ft-refresh27\",\n\t\t\t\"ft-right20\",\n\t\t\t\"ft-shopping22\",\n\t\t\t\"ft-smartphone6\",\n\t\t\t\"ft-speech9\",\n\t\t\t\"ft-tablet11\",\n\t\t\t\"ft-tablet25\",\n\t\t\t\"ft-thumb3\",\n\t\t\t\"ft-thumbs15\",\n\t\t\t\"ft-tiles\",\n\t\t\t\"ft-user21\",\n\t\t\t\"ft-view6\",\n\t\t\t\"ft-walk1\",\n\t\t\t\"ft-walk7\",\n\t\t\t\"ft-wheel4\",\n\t\t\t\"ft-window16\",\n\t\t\t\"ft-magnifier\",\n\t\t\t\"games-add86\",\n\t\t\t\"games-xbox9\",\n\t\t\t\"games-disc10\",\n\t\t\t\"games-dreamcast\",\n\t\t\t\"games-four44\",\n\t\t\t\"games-game23\",\n\t\t\t\"games-game24\",\n\t\t\t\"games-game25\",\n\t\t\t\"games-game26\",\n\t\t\t\"games-game27\",\n\t\t\t\"games-game28\",\n\t\t\t\"games-gamecube\",\n\t\t\t\"games-games10\",\n\t\t\t\"games-games11\",\n\t\t\t\"games-games8\",\n\t\t\t\"games-games9\",\n\t\t\t\"games-gane\",\n\t\t\t\"games-genesis\",\n\t\t\t\"games-nintendo1\",\n\t\t\t\"games-nintendo2\",\n\t\t\t\"games-online12\",\n\t\t\t\"games-plus42\",\n\t\t\t\"games-ps3\",\n\t\t\t\"games-cooperative\",\n\t\t\t\"games-racing3\",\n\t\t\t\"games-sony\",\n\t\t\t\"games-three85\",\n\t\t\t\"games-versus\",\n\t\t\t\"games-wifi58\",\n\t\t\t\"games-wii\",\n\t\t\t\"games-wii2\",\n\t\t\t\"games-wii3\",\n\t\t\t\"games-wii4\",\n\t\t\t\"games-wii5\",\n\t\t\t\"games-wii6\",\n\t\t\t\"games-wii7\",\n\t\t\t\"games-wii8\",\n\t\t\t\"games-xbox10\",\n\t\t\t\"games-xbox11\",\n\t\t\t\"games-xbox12\",\n\t\t\t\"games-xbox13\",\n\t\t\t\"games-xbox5\",\n\t\t\t\"games-xbox6\",\n\t\t\t\"games-xbox7\",\n\t\t\t\"games-xbox8\",\n\t\t\t\"games-ps4\",\n\t\t\t\"gesture-finger\",\n\t\t\t\"gesture-two37\",\n\t\t\t\"gesture-finger3\",\n\t\t\t\"gesture-fingers\",\n\t\t\t\"gesture-fingers1\",\n\t\t\t\"gesture-fingers2\",\n\t\t\t\"gesture-hand10\",\n\t\t\t\"gesture-hand11\",\n\t\t\t\"gesture-hand13\",\n\t\t\t\"gesture-hand14\",\n\t\t\t\"gesture-hand4\",\n\t\t\t\"gesture-hand5\",\n\t\t\t\"gesture-finger2\",\n\t\t\t\"gesture-hand8\",\n\t\t\t\"gesture-hand9\",\n\t\t\t\"gesture-mobiletuxedo2\",\n\t\t\t\"gesture-moving\",\n\t\t\t\"gesture-navigation\",\n\t\t\t\"gesture-ring2\",\n\t\t\t\"gesture-solid9\",\n\t\t\t\"gesture-three16\",\n\t\t\t\"gesture-two33\",\n\t\t\t\"gesture-two36\",\n\t\t\t\"gesture-hand6\",\n\t\t\t\"ic-chat\",\n\t\t\t\"ic-chat-alt-stroke\",\n\t\t\t\"ic-chat-alt-fill\",\n\t\t\t\"ic-comment-alt1-stroke\",\n\t\t\t\"ic-comment-alt1-fill\",\n\t\t\t\"ic-comment-stroke\",\n\t\t\t\"ic-comment-fill\",\n\t\t\t\"ic-comment-alt2-stroke\",\n\t\t\t\"ic-comment-alt2-fill\",\n\t\t\t\"ic-checkmark\",\n\t\t\t\"ic-check-alt\",\n\t\t\t\"ic-x\",\n\t\t\t\"ic-x-altx-alt\",\n\t\t\t\"ic-denied\",\n\t\t\t\"ic-cursor\",\n\t\t\t\"ic-rss\",\n\t\t\t\"ic-rss-alt\",\n\t\t\t\"ic-wrench\",\n\t\t\t\"ic-dial\",\n\t\t\t\"ic-cog\",\n\t\t\t\"ic-calendar\",\n\t\t\t\"ic-calendar-alt-stroke\",\n\t\t\t\"ic-calendar-alt-fill\",\n\t\t\t\"ic-share\",\n\t\t\t\"ic-mail\",\n\t\t\t\"ic-heart-stroke\",\n\t\t\t\"ic-heart-fill\",\n\t\t\t\"ic-movie\",\n\t\t\t\"ic-document-alt-stroke\",\n\t\t\t\"ic-document-alt-fill\",\n\t\t\t\"ic-document-stroke\",\n\t\t\t\"ic-document-fill\",\n\t\t\t\"ic-plus\",\n\t\t\t\"ic-plus-alt\",\n\t\t\t\"ic-minus\",\n\t\t\t\"ic-minus-alt\",\n\t\t\t\"ic-pin\",\n\t\t\t\"ic-link\",\n\t\t\t\"ic-bolt\",\n\t\t\t\"ic-move\",\n\t\t\t\"ic-move-alt1\",\n\t\t\t\"ic-move-alt2\",\n\t\t\t\"ic-equalizer\",\n\t\t\t\"ic-award-fill\",\n\t\t\t\"ic-award-stroke\",\n\t\t\t\"ic-magnifying-glass\",\n\t\t\t\"ic-trash-stroke\",\n\t\t\t\"ic-trash-fill\",\n\t\t\t\"ic-beaker-alt\",\n\t\t\t\"ic-beaker\",\n\t\t\t\"ic-key-stroke\",\n\t\t\t\"ic-key-fill\",\n\t\t\t\"ic-new-window\",\n\t\t\t\"ic-lightbulb\",\n\t\t\t\"ic-spin-alt\",\n\t\t\t\"ic-spin\",\n\t\t\t\"ic-curved-arrow\",\n\t\t\t\"ic-undo\",\n\t\t\t\"ic-reload\",\n\t\t\t\"ic-reload-alt\",\n\t\t\t\"ic-loop\",\n\t\t\t\"ic-loop-alt1\",\n\t\t\t\"ic-loop-alt2\",\n\t\t\t\"ic-loop-alt3\",\n\t\t\t\"ic-loop-alt4\",\n\t\t\t\"ic-transfer\",\n\t\t\t\"ic-move-vertical\",\n\t\t\t\"ic-move-vertical-alt1\",\n\t\t\t\"ic-move-vertical-alt2\",\n\t\t\t\"ic-move-horizontal\",\n\t\t\t\"ic-move-horizontal-alt1\",\n\t\t\t\"ic-move-horizontal-alt2\",\n\t\t\t\"ic-arrow-left\",\n\t\t\t\"ic-arrow-left-alt1\",\n\t\t\t\"ic-arrow-left-alt2\",\n\t\t\t\"ic-arrow-right\",\n\t\t\t\"ic-arrow-right-alt1\",\n\t\t\t\"ic-arrow-right-alt2\",\n\t\t\t\"ic-arrow-up\",\n\t\t\t\"ic-arrow-up-alt1\",\n\t\t\t\"ic-arrow-up-alt2\",\n\t\t\t\"ic-arrow-down\",\n\t\t\t\"ic-arrow-down-alt1\",\n\t\t\t\"ic-arrow-down-alt2\",\n\t\t\t\"ic-cd\",\n\t\t\t\"ic-steering-wheel\",\n\t\t\t\"ic-microphone\",\n\t\t\t\"ic-headphones\",\n\t\t\t\"ic-volume\",\n\t\t\t\"ic-volume-mute\",\n\t\t\t\"ic-play\",\n\t\t\t\"ic-pause\",\n\t\t\t\"ic-stop\",\n\t\t\t\"ic-eject\",\n\t\t\t\"ic-first\",\n\t\t\t\"ic-last\",\n\t\t\t\"ic-play-alt\",\n\t\t\t\"ic-fullscreen-exit\",\n\t\t\t\"ic-fullscreen-exit-alt\",\n\t\t\t\"ic-fullscreen\",\n\t\t\t\"ic-fullscreen-alt\",\n\t\t\t\"ic-iphone\",\n\t\t\t\"ic-battery-empty\",\n\t\t\t\"ic-battery-half\",\n\t\t\t\"ic-battery-full\",\n\t\t\t\"ic-battery-charging\",\n\t\t\t\"ic-compass\",\n\t\t\t\"ic-box\",\n\t\t\t\"ic-folder-stroke\",\n\t\t\t\"ic-folder-fill\",\n\t\t\t\"ic-at\",\n\t\t\t\"ic-ampersand\",\n\t\t\t\"ic-info\",\n\t\t\t\"ic-question-mark\",\n\t\t\t\"ic-pilcrow\",\n\t\t\t\"ic-hash\",\n\t\t\t\"ic-left-quote\",\n\t\t\t\"ic-right-quote\",\n\t\t\t\"ic-left-quote-alt\",\n\t\t\t\"ic-right-quote-alt\",\n\t\t\t\"ic-article\",\n\t\t\t\"ic-read-more\",\n\t\t\t\"ic-list\",\n\t\t\t\"ic-list-nested\",\n\t\t\t\"ic-book\",\n\t\t\t\"ic-book-alt\",\n\t\t\t\"ic-book-alt2\",\n\t\t\t\"ic-pen\",\n\t\t\t\"ic-pen-alt-stroke\",\n\t\t\t\"ic-pen-alt-fill\",\n\t\t\t\"ic-pen-alt2\",\n\t\t\t\"ic-brush\",\n\t\t\t\"ic-brush-alt\",\n\t\t\t\"ic-eyedropper\",\n\t\t\t\"ic-layers-alt\",\n\t\t\t\"ic-layers\",\n\t\t\t\"ic-image\",\n\t\t\t\"ic-camera\",\n\t\t\t\"ic-aperture\",\n\t\t\t\"ic-aperture-alt\",\n\t\t\t\"ic-chart\",\n\t\t\t\"ic-chart-alt\",\n\t\t\t\"ic-bars\",\n\t\t\t\"ic-bars-alt\",\n\t\t\t\"ic-eye\",\n\t\t\t\"ic-user\",\n\t\t\t\"ic-home\",\n\t\t\t\"ic-clock\",\n\t\t\t\"ic-lock-stroke\",\n\t\t\t\"ic-lock-fill\",\n\t\t\t\"ic-unlock-stroke\",\n\t\t\t\"ic-unlock-fill\",\n\t\t\t\"ic-tag-stroke\",\n\t\t\t\"ic-tag-fill\",\n\t\t\t\"ic-sun-stroke\",\n\t\t\t\"ic-sun-fill\",\n\t\t\t\"ic-moon-stroke\",\n\t\t\t\"ic-moon-fill\",\n\t\t\t\"ic-cloud\",\n\t\t\t\"ic-rain\",\n\t\t\t\"ic-umbrella\",\n\t\t\t\"ic-star\",\n\t\t\t\"ic-map-pin-stroke\",\n\t\t\t\"ic-map-pin-fill\",\n\t\t\t\"ic-map-pin-alt\",\n\t\t\t\"ic-target\",\n\t\t\t\"ic-download\",\n\t\t\t\"ic-upload\",\n\t\t\t\"ic-cloud-download\",\n\t\t\t\"ic-cloud-upload\",\n\t\t\t\"ic-fork\",\n\t\t\t\"ic-paperclip\",\n\t\t\t\"im-home\",\n\t\t\t\"im-list\",\n\t\t\t\"im-book\",\n\t\t\t\"im-pencil\",\n\t\t\t\"im-bookmark\",\n\t\t\t\"im-pointer\",\n\t\t\t\"im-cloud\",\n\t\t\t\"im-cloud-ul\",\n\t\t\t\"im-cloud-dl\",\n\t\t\t\"im-search\",\n\t\t\t\"im-folder\",\n\t\t\t\"im-trashcan\",\n\t\t\t\"im-droplet\",\n\t\t\t\"im-tag\",\n\t\t\t\"im-moon\",\n\t\t\t\"im-eye\",\n\t\t\t\"im-target\",\n\t\t\t\"im-blocked\",\n\t\t\t\"im-switch\",\n\t\t\t\"im-goal\",\n\t\t\t\"im-location\",\n\t\t\t\"im-close\",\n\t\t\t\"im-checkmark\",\n\t\t\t\"im-munis\",\n\t\t\t\"im-plus\",\n\t\t\t\"im-close-2\",\n\t\t\t\"im-divide\",\n\t\t\t\"im-minus\",\n\t\t\t\"im-plus-2\",\n\t\t\t\"im-equals\",\n\t\t\t\"im-cancel\",\n\t\t\t\"im-minus-2\",\n\t\t\t\"im-checkmark-2\",\n\t\t\t\"im-equals-2\",\n\t\t\t\"im-asterisk\",\n\t\t\t\"im-mobile\",\n\t\t\t\"im-tablet\",\n\t\t\t\"im-phone\",\n\t\t\t\"im-bars\",\n\t\t\t\"im-stack\",\n\t\t\t\"im-battery\",\n\t\t\t\"im-battery-2\",\n\t\t\t\"im-battery-3\",\n\t\t\t\"im-calculator\",\n\t\t\t\"im-bolt\",\n\t\t\t\"im-list-2\",\n\t\t\t\"im-grid\",\n\t\t\t\"im-list-3\",\n\t\t\t\"im-list-4\",\n\t\t\t\"im-layout\",\n\t\t\t\"im-equalizer\",\n\t\t\t\"im-equalizer-2\",\n\t\t\t\"im-cog\",\n\t\t\t\"im-window\",\n\t\t\t\"im-window-2\",\n\t\t\t\"im-window-3\",\n\t\t\t\"im-window-4\",\n\t\t\t\"im-locked\",\n\t\t\t\"im-unlocked\",\n\t\t\t\"im-shield\",\n\t\t\t\"im-cart\",\n\t\t\t\"im-console\",\n\t\t\t\"im-office\",\n\t\t\t\"im-basket\",\n\t\t\t\"im-suitcase\",\n\t\t\t\"im-airplane\",\n\t\t\t\"im-file-download\",\n\t\t\t\"im-file-upload\",\n\t\t\t\"im-file\",\n\t\t\t\"im-file-add\",\n\t\t\t\"im-file-remove\",\n\t\t\t\"im-bars-2\",\n\t\t\t\"im-chart\",\n\t\t\t\"im-stats\",\n\t\t\t\"im-arrow-right\",\n\t\t\t\"im-arrow-left\",\n\t\t\t\"im-arrow-down\",\n\t\t\t\"im-arrow-up\",\n\t\t\t\"im-arrow-right-2\",\n\t\t\t\"im-arrow-left-2\",\n\t\t\t\"im-arrow-up-2\",\n\t\t\t\"im-arrow-down-2\",\n\t\t\t\"im-arrow-down-left\",\n\t\t\t\"im-arrow-down-right\",\n\t\t\t\"im-arrow-up-left\",\n\t\t\t\"im-arrow-up-right\",\n\t\t\t\"im-arrow-left-3\",\n\t\t\t\"im-arrow-right-3\",\n\t\t\t\"im-arrow-down-3\",\n\t\t\t\"im-arrow-up-3\",\n\t\t\t\"im-move\",\n\t\t\t\"im-movie\",\n\t\t\t\"im-refresh\",\n\t\t\t\"im-picture\",\n\t\t\t\"im-music\",\n\t\t\t\"im-disk\",\n\t\t\t\"im-camera\",\n\t\t\t\"im-film\",\n\t\t\t\"im-tablet-2\",\n\t\t\t\"im-ipod\",\n\t\t\t\"im-camera-2\",\n\t\t\t\"im-mouse\",\n\t\t\t\"im-volume\",\n\t\t\t\"im-monitor\",\n\t\t\t\"im-thumbs-up\",\n\t\t\t\"im-thumbs-down\",\n\t\t\t\"im-neutral\",\n\t\t\t\"im-grin\",\n\t\t\t\"im-heart\",\n\t\t\t\"im-pacman\",\n\t\t\t\"im-star\",\n\t\t\t\"im-star-2\",\n\t\t\t\"im-envelope\",\n\t\t\t\"im-comment\",\n\t\t\t\"im-comment-2\",\n\t\t\t\"im-user\",\n\t\t\t\"im-download\",\n\t\t\t\"im-upload\",\n\t\t\t\"im-inbox\",\n\t\t\t\"im-partial\",\n\t\t\t\"im-unchecked\",\n\t\t\t\"im-checked\",\n\t\t\t\"im-circles\",\n\t\t\t\"im-pencil-2\",\n\t\t\t\"im-flag\",\n\t\t\t\"im-link\",\n\t\t\t\"im-stop\",\n\t\t\t\"im-play\",\n\t\t\t\"im-pause\",\n\t\t\t\"im-next\",\n\t\t\t\"im-previous\",\n\t\t\t\"im-drink\",\n\t\t\t\"im-drink-2\",\n\t\t\t\"im-hamburger\",\n\t\t\t\"im-mug\",\n\t\t\t\"im-calendar\",\n\t\t\t\"im-clock\",\n\t\t\t\"im-calendar-2\",\n\t\t\t\"im-compass\",\n\t\t\t\"imf-home\",\n\t\t\t\"imf-home-2\",\n\t\t\t\"imf-home-3\",\n\t\t\t\"imf-office\",\n\t\t\t\"imf-newspaper\",\n\t\t\t\"imf-pencil\",\n\t\t\t\"imf-pencil-2\",\n\t\t\t\"imf-quill\",\n\t\t\t\"imf-pen\",\n\t\t\t\"imf-blog\",\n\t\t\t\"imf-droplet\",\n\t\t\t\"imf-paint-format\",\n\t\t\t\"imf-image\",\n\t\t\t\"imf-image-2\",\n\t\t\t\"imf-images\",\n\t\t\t\"imf-camera\",\n\t\t\t\"imf-music\",\n\t\t\t\"imf-headphones\",\n\t\t\t\"imf-play\",\n\t\t\t\"imf-film\",\n\t\t\t\"imf-camera-2\",\n\t\t\t\"imf-dice\",\n\t\t\t\"imf-pacman\",\n\t\t\t\"imf-spades\",\n\t\t\t\"imf-clubs\",\n\t\t\t\"imf-diamonds\",\n\t\t\t\"imf-pawn\",\n\t\t\t\"imf-bullhorn\",\n\t\t\t\"imf-connection\",\n\t\t\t\"imf-podcast\",\n\t\t\t\"imf-feed\",\n\t\t\t\"imf-book\",\n\t\t\t\"imf-books\",\n\t\t\t\"imf-library\",\n\t\t\t\"imf-file\",\n\t\t\t\"imf-profile\",\n\t\t\t\"imf-file-2\",\n\t\t\t\"imf-file-3\",\n\t\t\t\"imf-file-4\",\n\t\t\t\"imf-copy\",\n\t\t\t\"imf-copy-2\",\n\t\t\t\"imf-copy-3\",\n\t\t\t\"imf-paste\",\n\t\t\t\"imf-paste-2\",\n\t\t\t\"imf-paste-3\",\n\t\t\t\"imf-stack\",\n\t\t\t\"imf-folder\",\n\t\t\t\"imf-folder-open\",\n\t\t\t\"imf-tag\",\n\t\t\t\"imf-tags\",\n\t\t\t\"imf-barcode\",\n\t\t\t\"imf-qrcode\",\n\t\t\t\"imf-ticket\",\n\t\t\t\"imf-cart\",\n\t\t\t\"imf-cart-2\",\n\t\t\t\"imf-cart-3\",\n\t\t\t\"imf-coin\",\n\t\t\t\"imf-credit\",\n\t\t\t\"imf-calculate\",\n\t\t\t\"imf-support\",\n\t\t\t\"imf-phone\",\n\t\t\t\"imf-phone-hang-up\",\n\t\t\t\"imf-address-book\",\n\t\t\t\"imf-notebook\",\n\t\t\t\"imf-envelop\",\n\t\t\t\"imf-pushpin\",\n\t\t\t\"imf-location\",\n\t\t\t\"imf-location-2\",\n\t\t\t\"imf-compass\",\n\t\t\t\"imf-map\",\n\t\t\t\"imf-map-2\",\n\t\t\t\"imf-history\",\n\t\t\t\"imf-clock\",\n\t\t\t\"imf-clock-2\",\n\t\t\t\"imf-alarm\",\n\t\t\t\"imf-alarm-2\",\n\t\t\t\"imf-bell\",\n\t\t\t\"imf-stopwatch\",\n\t\t\t\"imf-calendar\",\n\t\t\t\"imf-calendar-2\",\n\t\t\t\"imf-print\",\n\t\t\t\"imf-keyboard\",\n\t\t\t\"imf-screen\",\n\t\t\t\"imf-laptop\",\n\t\t\t\"imf-mobile\",\n\t\t\t\"imf-mobile-2\",\n\t\t\t\"imf-tablet\",\n\t\t\t\"imf-tv\",\n\t\t\t\"imf-cabinet\",\n\t\t\t\"imf-drawer\",\n\t\t\t\"imf-drawer-2\",\n\t\t\t\"imf-drawer-3\",\n\t\t\t\"imf-box-add\",\n\t\t\t\"imf-box-remove\",\n\t\t\t\"imf-download\",\n\t\t\t\"imf-upload\",\n\t\t\t\"imf-disk\",\n\t\t\t\"imf-storage\",\n\t\t\t\"imf-undo\",\n\t\t\t\"imf-redo\",\n\t\t\t\"imf-flip\",\n\t\t\t\"imf-flip-2\",\n\t\t\t\"imf-undo-2\",\n\t\t\t\"imf-redo-2\",\n\t\t\t\"imf-forward\",\n\t\t\t\"imf-reply\",\n\t\t\t\"imf-bubble\",\n\t\t\t\"imf-bubbles\",\n\t\t\t\"imf-bubbles-2\",\n\t\t\t\"imf-bubble-2\",\n\t\t\t\"imf-bubbles-3\",\n\t\t\t\"imf-bubbles-4\",\n\t\t\t\"imf-user\",\n\t\t\t\"imf-users\",\n\t\t\t\"imf-user-2\",\n\t\t\t\"imf-users-2\",\n\t\t\t\"imf-user-3\",\n\t\t\t\"imf-user-4\",\n\t\t\t\"imf-quotes-left\",\n\t\t\t\"imf-busy\",\n\t\t\t\"imf-spinner\",\n\t\t\t\"imf-spinner-2\",\n\t\t\t\"imf-spinner-3\",\n\t\t\t\"imf-spinner-4\",\n\t\t\t\"imf-spinner-5\",\n\t\t\t\"imf-spinner-6\",\n\t\t\t\"imf-binoculars\",\n\t\t\t\"imf-search\",\n\t\t\t\"imf-zoom-in\",\n\t\t\t\"imf-zoom-out\",\n\t\t\t\"imf-expand\",\n\t\t\t\"imf-contract\",\n\t\t\t\"imf-expand-2\",\n\t\t\t\"imf-contract-2\",\n\t\t\t\"imf-key\",\n\t\t\t\"imf-key-2\",\n\t\t\t\"imf-lock\",\n\t\t\t\"imf-lock-2\",\n\t\t\t\"imf-unlocked\",\n\t\t\t\"imf-wrench\",\n\t\t\t\"imf-settings\",\n\t\t\t\"imf-equalizer\",\n\t\t\t\"imf-cog\",\n\t\t\t\"imf-cogs\",\n\t\t\t\"imf-cog-2\",\n\t\t\t\"imf-hammer\",\n\t\t\t\"imf-wand\",\n\t\t\t\"imf-aid\",\n\t\t\t\"imf-bug\",\n\t\t\t\"imf-pie\",\n\t\t\t\"imf-stats\",\n\t\t\t\"imf-bars\",\n\t\t\t\"imf-bars-2\",\n\t\t\t\"imf-gift\",\n\t\t\t\"imf-trophy\",\n\t\t\t\"imf-glass\",\n\t\t\t\"imf-mug\",\n\t\t\t\"imf-food\",\n\t\t\t\"imf-leaf\",\n\t\t\t\"imf-rocket\",\n\t\t\t\"imf-meter\",\n\t\t\t\"imf-meter2\",\n\t\t\t\"imf-dashboard\",\n\t\t\t\"imf-hammer-2\",\n\t\t\t\"imf-fire\",\n\t\t\t\"imf-lab\",\n\t\t\t\"imf-magnet\",\n\t\t\t\"imf-remove\",\n\t\t\t\"imf-remove-2\",\n\t\t\t\"imf-briefcase\",\n\t\t\t\"imf-airplane\",\n\t\t\t\"imf-truck\",\n\t\t\t\"imf-road\",\n\t\t\t\"imf-accessibility\",\n\t\t\t\"imf-target\",\n\t\t\t\"imf-shield\",\n\t\t\t\"imf-lightning\",\n\t\t\t\"imf-switch\",\n\t\t\t\"imf-power-cord\",\n\t\t\t\"imf-signup\",\n\t\t\t\"imf-list\",\n\t\t\t\"imf-list-2\",\n\t\t\t\"imf-numbered-list\",\n\t\t\t\"imf-menu\",\n\t\t\t\"imf-menu-2\",\n\t\t\t\"imf-tree\",\n\t\t\t\"imf-cloud\",\n\t\t\t\"imf-cloud-download\",\n\t\t\t\"imf-cloud-upload\",\n\t\t\t\"imf-download-2\",\n\t\t\t\"imf-upload-2\",\n\t\t\t\"imf-download-3\",\n\t\t\t\"imf-upload-3\",\n\t\t\t\"imf-globe\",\n\t\t\t\"imf-earth\",\n\t\t\t\"imf-link\",\n\t\t\t\"imf-flag\",\n\t\t\t\"imf-attachment\",\n\t\t\t\"imf-eye\",\n\t\t\t\"imf-eye-blocked\",\n\t\t\t\"imf-eye-2\",\n\t\t\t\"imf-bookmark\",\n\t\t\t\"imf-bookmarks\",\n\t\t\t\"imf-brightness-medium\",\n\t\t\t\"imf-brightness-contrast\",\n\t\t\t\"imf-contrast\",\n\t\t\t\"imf-star\",\n\t\t\t\"imf-star-2\",\n\t\t\t\"imf-star-3\",\n\t\t\t\"imf-heart\",\n\t\t\t\"imf-heart-2\",\n\t\t\t\"imf-heart-broken\",\n\t\t\t\"imf-thumbs-up\",\n\t\t\t\"imf-thumbs-up-2\",\n\t\t\t\"imf-happy\",\n\t\t\t\"imf-happy-2\",\n\t\t\t\"imf-smiley\",\n\t\t\t\"imf-smiley-2\",\n\t\t\t\"imf-tongue\",\n\t\t\t\"imf-tongue-2\",\n\t\t\t\"imf-sad\",\n\t\t\t\"imf-sad-2\",\n\t\t\t\"imf-wink\",\n\t\t\t\"imf-wink-2\",\n\t\t\t\"imf-grin\",\n\t\t\t\"imf-grin-2\",\n\t\t\t\"imf-cool\",\n\t\t\t\"imf-cool-2\",\n\t\t\t\"imf-angry\",\n\t\t\t\"imf-angry-2\",\n\t\t\t\"imf-evil\",\n\t\t\t\"imf-evil-2\",\n\t\t\t\"imf-shocked\",\n\t\t\t\"imf-shocked-2\",\n\t\t\t\"imf-confused\",\n\t\t\t\"imf-confused-2\",\n\t\t\t\"imf-neutral\",\n\t\t\t\"imf-neutral-2\",\n\t\t\t\"imf-wondering\",\n\t\t\t\"imf-wondering-2\",\n\t\t\t\"imf-point-up\",\n\t\t\t\"imf-point-right\",\n\t\t\t\"imf-point-down\",\n\t\t\t\"imf-point-left\",\n\t\t\t\"imf-warning\",\n\t\t\t\"imf-notification\",\n\t\t\t\"imf-question\",\n\t\t\t\"imf-info\",\n\t\t\t\"imf-info-2\",\n\t\t\t\"imf-blocked\",\n\t\t\t\"imf-cancel-circle\",\n\t\t\t\"imf-checkmark-circle\",\n\t\t\t\"imf-spam\",\n\t\t\t\"imf-close\",\n\t\t\t\"imf-checkmark\",\n\t\t\t\"imf-checkmark-2\",\n\t\t\t\"imf-spell-check\",\n\t\t\t\"imf-minus\",\n\t\t\t\"imf-plus\",\n\t\t\t\"imf-enter\",\n\t\t\t\"imf-exit\",\n\t\t\t\"imf-play-2\",\n\t\t\t\"imf-pause\",\n\t\t\t\"imf-stop\",\n\t\t\t\"imf-backward\",\n\t\t\t\"imf-forward-2\",\n\t\t\t\"imf-play-3\",\n\t\t\t\"imf-pause-2\",\n\t\t\t\"imf-stop-2\",\n\t\t\t\"imf-backward-2\",\n\t\t\t\"imf-forward-3\",\n\t\t\t\"imf-first\",\n\t\t\t\"imf-last\",\n\t\t\t\"imf-previous\",\n\t\t\t\"imf-next\",\n\t\t\t\"imf-eject\",\n\t\t\t\"imf-volume-high\",\n\t\t\t\"imf-volume-medium\",\n\t\t\t\"imf-volume-low\",\n\t\t\t\"imf-volume-mute\",\n\t\t\t\"imf-volume-mute-2\",\n\t\t\t\"imf-volume-increase\",\n\t\t\t\"imf-volume-decrease\",\n\t\t\t\"imf-loop\",\n\t\t\t\"imf-loop-2\",\n\t\t\t\"imf-loop-3\",\n\t\t\t\"imf-shuffle\",\n\t\t\t\"imf-arrow-up-left\",\n\t\t\t\"imf-arrow-up\",\n\t\t\t\"imf-arrow-up-right\",\n\t\t\t\"imf-arrow-right\",\n\t\t\t\"imf-arrow-down-right\",\n\t\t\t\"imf-arrow-down\",\n\t\t\t\"imf-arrow-down-left\",\n\t\t\t\"imf-arrow-left\",\n\t\t\t\"imf-arrow-up-left-2\",\n\t\t\t\"imf-arrow-up-2\",\n\t\t\t\"imf-arrow-up-right-2\",\n\t\t\t\"imf-arrow-right-2\",\n\t\t\t\"imf-arrow-down-right-2\",\n\t\t\t\"imf-arrow-down-2\",\n\t\t\t\"imf-arrow-down-left-2\",\n\t\t\t\"imf-arrow-left-2\",\n\t\t\t\"imf-arrow-up-left-3\",\n\t\t\t\"imf-arrow-up-3\",\n\t\t\t\"imf-arrow-up-right-3\",\n\t\t\t\"imf-arrow-right-3\",\n\t\t\t\"imf-arrow-down-right-3\",\n\t\t\t\"imf-arrow-down-3\",\n\t\t\t\"imf-arrow-down-left-3\",\n\t\t\t\"imf-arrow-left-3\",\n\t\t\t\"imf-tab\",\n\t\t\t\"imf-checkbox-checked\",\n\t\t\t\"imf-checkbox-unchecked\",\n\t\t\t\"imf-checkbox-partial\",\n\t\t\t\"imf-radio-checked\",\n\t\t\t\"imf-radio-unchecked\",\n\t\t\t\"imf-crop\",\n\t\t\t\"imf-scissors\",\n\t\t\t\"imf-filter\",\n\t\t\t\"imf-filter-2\",\n\t\t\t\"imf-font\",\n\t\t\t\"imf-text-height\",\n\t\t\t\"imf-text-width\",\n\t\t\t\"imf-bold\",\n\t\t\t\"imf-underline\",\n\t\t\t\"imf-italic\",\n\t\t\t\"imf-strikethrough\",\n\t\t\t\"imf-omega\",\n\t\t\t\"imf-sigma\",\n\t\t\t\"imf-table\",\n\t\t\t\"imf-table-2\",\n\t\t\t\"imf-insert-template\",\n\t\t\t\"imf-pilcrow\",\n\t\t\t\"imf-left-to-right\",\n\t\t\t\"imf-right-to-left\",\n\t\t\t\"imf-paragraph-left\",\n\t\t\t\"imf-paragraph-center\",\n\t\t\t\"imf-paragraph-right\",\n\t\t\t\"imf-paragraph-justify\",\n\t\t\t\"imf-paragraph-left-2\",\n\t\t\t\"imf-paragraph-center-2\",\n\t\t\t\"imf-paragraph-right-2\",\n\t\t\t\"imf-paragraph-justify-2\",\n\t\t\t\"imf-indent-increase\",\n\t\t\t\"imf-indent-decrease\",\n\t\t\t\"imf-new-tab\",\n\t\t\t\"imf-embed\",\n\t\t\t\"imf-code\",\n\t\t\t\"imf-console\",\n\t\t\t\"imf-share\",\n\t\t\t\"imf-mail\",\n\t\t\t\"imf-mail-2\",\n\t\t\t\"imf-mail-3\",\n\t\t\t\"imf-mail-4\",\n\t\t\t\"imf-google\",\n\t\t\t\"imf-google-plus\",\n\t\t\t\"imf-google-plus-2\",\n\t\t\t\"imf-google-plus-3\",\n\t\t\t\"imf-google-plus-4\",\n\t\t\t\"imf-google-drive\",\n\t\t\t\"imf-facebook\",\n\t\t\t\"imf-facebook-2\",\n\t\t\t\"imf-facebook-3\",\n\t\t\t\"imf-instagram\",\n\t\t\t\"imf-twitter\",\n\t\t\t\"imf-twitter-2\",\n\t\t\t\"imf-twitter-3\",\n\t\t\t\"imf-feed-2\",\n\t\t\t\"imf-feed-3\",\n\t\t\t\"imf-feed-4\",\n\t\t\t\"imf-youtube\",\n\t\t\t\"imf-youtube-2\",\n\t\t\t\"imf-vimeo\",\n\t\t\t\"imf-vimeo2\",\n\t\t\t\"imf-vimeo-2\",\n\t\t\t\"imf-lanyrd\",\n\t\t\t\"imf-flickr\",\n\t\t\t\"imf-flickr-2\",\n\t\t\t\"imf-flickr-3\",\n\t\t\t\"imf-flickr-4\",\n\t\t\t\"imf-picassa\",\n\t\t\t\"imf-picassa-2\",\n\t\t\t\"imf-dribbble\",\n\t\t\t\"imf-dribbble-2\",\n\t\t\t\"imf-dribbble-3\",\n\t\t\t\"imf-forrst\",\n\t\t\t\"imf-forrst-2\",\n\t\t\t\"imf-deviantart\",\n\t\t\t\"imf-deviantart-2\",\n\t\t\t\"imf-steam\",\n\t\t\t\"imf-steam-2\",\n\t\t\t\"imf-github\",\n\t\t\t\"imf-github-2\",\n\t\t\t\"imf-github-3\",\n\t\t\t\"imf-github-4\",\n\t\t\t\"imf-github-5\",\n\t\t\t\"imf-wordpress\",\n\t\t\t\"imf-wordpress-2\",\n\t\t\t\"imf-joomla\",\n\t\t\t\"imf-blogger\",\n\t\t\t\"imf-blogger-2\",\n\t\t\t\"imf-tumblr\",\n\t\t\t\"imf-tumblr-2\",\n\t\t\t\"imf-yahoo\",\n\t\t\t\"imf-tux\",\n\t\t\t\"imf-apple\",\n\t\t\t\"imf-finder\",\n\t\t\t\"imf-android\",\n\t\t\t\"imf-windows\",\n\t\t\t\"imf-windows8\",\n\t\t\t\"imf-soundcloud\",\n\t\t\t\"imf-soundcloud-2\",\n\t\t\t\"imf-skype\",\n\t\t\t\"imf-reddit\",\n\t\t\t\"imf-linkedin\",\n\t\t\t\"imf-lastfm\",\n\t\t\t\"imf-lastfm-2\",\n\t\t\t\"imf-delicious\",\n\t\t\t\"imf-stumbleupon\",\n\t\t\t\"imf-stumbleupon-2\",\n\t\t\t\"imf-stackoverflow\",\n\t\t\t\"imf-pinterest\",\n\t\t\t\"imf-pinterest-2\",\n\t\t\t\"imf-xing\",\n\t\t\t\"imf-xing-2\",\n\t\t\t\"imf-flattr\",\n\t\t\t\"imf-foursquare\",\n\t\t\t\"imf-foursquare-2\",\n\t\t\t\"imf-paypal\",\n\t\t\t\"imf-paypal-2\",\n\t\t\t\"imf-paypal-3\",\n\t\t\t\"imf-yelp\",\n\t\t\t\"imf-libreoffice\",\n\t\t\t\"imf-file-pdf\",\n\t\t\t\"imf-file-openoffice\",\n\t\t\t\"imf-file-word\",\n\t\t\t\"imf-file-excel\",\n\t\t\t\"imf-file-zip\",\n\t\t\t\"imf-file-powerpoint\",\n\t\t\t\"imf-file-xml\",\n\t\t\t\"imf-file-css\",\n\t\t\t\"imf-html5\",\n\t\t\t\"imf-html5-2\",\n\t\t\t\"imf-css3\",\n\t\t\t\"imf-chrome\",\n\t\t\t\"imf-firefox\",\n\t\t\t\"imf-IE\",\n\t\t\t\"imf-opera\",\n\t\t\t\"imf-safari\",\n\t\t\t\"imf-IcoMoon\",\n\t\t\t\"ion-alert-circled\",\n\t\t\t\"ion-xbox\",\n\t\t\t\"ion-android-add-contact\",\n\t\t\t\"ion-android-add\",\n\t\t\t\"ion-android-alarm\",\n\t\t\t\"ion-android-archive\",\n\t\t\t\"ion-android-arrow-back\",\n\t\t\t\"ion-android-arrow-down-left\",\n\t\t\t\"ion-android-arrow-down-right\",\n\t\t\t\"ion-android-arrow-up-left\",\n\t\t\t\"ion-android-arrow-up-right\",\n\t\t\t\"ion-android-battery\",\n\t\t\t\"ion-android-book\",\n\t\t\t\"ion-android-calendar\",\n\t\t\t\"ion-android-call\",\n\t\t\t\"ion-android-camera\",\n\t\t\t\"ion-android-chat\",\n\t\t\t\"ion-android-checkmark\",\n\t\t\t\"ion-android-clock\",\n\t\t\t\"ion-android-close\",\n\t\t\t\"ion-android-contact\",\n\t\t\t\"ion-android-contacts\",\n\t\t\t\"ion-android-data\",\n\t\t\t\"ion-android-developer\",\n\t\t\t\"ion-android-display\",\n\t\t\t\"ion-android-download\",\n\t\t\t\"ion-android-dropdown\",\n\t\t\t\"ion-android-earth\",\n\t\t\t\"ion-android-folder\",\n\t\t\t\"ion-android-forums\",\n\t\t\t\"ion-android-friends\",\n\t\t\t\"ion-android-hand\",\n\t\t\t\"ion-android-image\",\n\t\t\t\"ion-android-inbox\",\n\t\t\t\"ion-android-information\",\n\t\t\t\"ion-android-keypad\",\n\t\t\t\"ion-android-lightbulb\",\n\t\t\t\"ion-android-locate\",\n\t\t\t\"ion-android-location\",\n\t\t\t\"ion-android-mail\",\n\t\t\t\"ion-android-microphone\",\n\t\t\t\"ion-android-mixer\",\n\t\t\t\"ion-android-more\",\n\t\t\t\"ion-android-note\",\n\t\t\t\"ion-android-playstore\",\n\t\t\t\"ion-android-printer\",\n\t\t\t\"ion-android-promotion\",\n\t\t\t\"ion-android-reminder\",\n\t\t\t\"ion-android-remove\",\n\t\t\t\"ion-android-search\",\n\t\t\t\"ion-android-send\",\n\t\t\t\"ion-android-settings\",\n\t\t\t\"ion-android-share\",\n\t\t\t\"ion-android-social-user\",\n\t\t\t\"ion-android-social\",\n\t\t\t\"ion-android-sort\",\n\t\t\t\"ion-android-star\",\n\t\t\t\"ion-android-stopwatch\",\n\t\t\t\"ion-android-storage\",\n\t\t\t\"ion-android-system-back\",\n\t\t\t\"ion-android-system-home\",\n\t\t\t\"ion-android-system-windows\",\n\t\t\t\"ion-android-timer\",\n\t\t\t\"ion-android-trash\",\n\t\t\t\"ion-android-volume\",\n\t\t\t\"ion-android-wifi\",\n\t\t\t\"ion-archive\",\n\t\t\t\"ion-arrow-down-a\",\n\t\t\t\"ion-arrow-down-b\",\n\t\t\t\"ion-arrow-down-c\",\n\t\t\t\"ion-arrow-expand\",\n\t\t\t\"ion-arrow-graph-down-left\",\n\t\t\t\"ion-arrow-graph-down-right\",\n\t\t\t\"ion-arrow-graph-up-left\",\n\t\t\t\"ion-arrow-graph-up-right\",\n\t\t\t\"ion-arrow-left-a\",\n\t\t\t\"ion-arrow-left-b\",\n\t\t\t\"ion-arrow-left-c\",\n\t\t\t\"ion-arrow-move\",\n\t\t\t\"ion-arrow-resize\",\n\t\t\t\"ion-arrow-return-left\",\n\t\t\t\"ion-arrow-return-right\",\n\t\t\t\"ion-arrow-right-a\",\n\t\t\t\"ion-arrow-right-b\",\n\t\t\t\"ion-arrow-right-c\",\n\t\t\t\"ion-arrow-shrink\",\n\t\t\t\"ion-arrow-swap\",\n\t\t\t\"ion-arrow-up-a\",\n\t\t\t\"ion-arrow-up-b\",\n\t\t\t\"ion-arrow-up-c\",\n\t\t\t\"ion-at\",\n\t\t\t\"ion-bag\",\n\t\t\t\"ion-battery-charging\",\n\t\t\t\"ion-battery-empty\",\n\t\t\t\"ion-battery-full\",\n\t\t\t\"ion-battery-half\",\n\t\t\t\"ion-battery-low\",\n\t\t\t\"ion-beaker\",\n\t\t\t\"ion-beer\",\n\t\t\t\"ion-bluetooth\",\n\t\t\t\"ion-bookmark\",\n\t\t\t\"ion-briefcase\",\n\t\t\t\"ion-bug\",\n\t\t\t\"ion-calculator\",\n\t\t\t\"ion-calendar\",\n\t\t\t\"ion-camera\",\n\t\t\t\"ion-card\",\n\t\t\t\"ion-chatbox-working\",\n\t\t\t\"ion-chatbox\",\n\t\t\t\"ion-chatboxes\",\n\t\t\t\"ion-chatbubble-working\",\n\t\t\t\"ion-chatbubble\",\n\t\t\t\"ion-chatbubbles\",\n\t\t\t\"ion-checkmark-circled\",\n\t\t\t\"ion-checkmark-round\",\n\t\t\t\"ion-checkmark\",\n\t\t\t\"ion-chevron-down\",\n\t\t\t\"ion-chevron-left\",\n\t\t\t\"ion-chevron-right\",\n\t\t\t\"ion-chevron-up\",\n\t\t\t\"ion-clipboard\",\n\t\t\t\"ion-clock\",\n\t\t\t\"ion-close-circled\",\n\t\t\t\"ion-close-round\",\n\t\t\t\"ion-close\",\n\t\t\t\"ion-cloud\",\n\t\t\t\"ion-code-download\",\n\t\t\t\"ion-code-working\",\n\t\t\t\"ion-code\",\n\t\t\t\"ion-coffee\",\n\t\t\t\"ion-compass\",\n\t\t\t\"ion-compose\",\n\t\t\t\"ion-connection-bars\",\n\t\t\t\"ion-contrast\",\n\t\t\t\"ion-disc\",\n\t\t\t\"ion-document-text\",\n\t\t\t\"ion-document\",\n\t\t\t\"ion-drag\",\n\t\t\t\"ion-earth\",\n\t\t\t\"ion-edit\",\n\t\t\t\"ion-egg\",\n\t\t\t\"ion-eject\",\n\t\t\t\"ion-email\",\n\t\t\t\"ion-eye-disabled\",\n\t\t\t\"ion-eye\",\n\t\t\t\"ion-female\",\n\t\t\t\"ion-filing\",\n\t\t\t\"ion-film-marker\",\n\t\t\t\"ion-flag\",\n\t\t\t\"ion-flash-off\",\n\t\t\t\"ion-flash\",\n\t\t\t\"ion-flask\",\n\t\t\t\"ion-folder\",\n\t\t\t\"ion-fork-repo\",\n\t\t\t\"ion-fork\",\n\t\t\t\"ion-forward\",\n\t\t\t\"ion-game-controller-a\",\n\t\t\t\"ion-game-controller-b\",\n\t\t\t\"ion-gear-a\",\n\t\t\t\"ion-gear-b\",\n\t\t\t\"ion-grid\",\n\t\t\t\"ion-hammer\",\n\t\t\t\"ion-headphone\",\n\t\t\t\"ion-heart\",\n\t\t\t\"ion-help-buoy\",\n\t\t\t\"ion-help-circled\",\n\t\t\t\"ion-help\",\n\t\t\t\"ion-home\",\n\t\t\t\"ion-icecream\",\n\t\t\t\"ion-icon-social-google-plus-outline\",\n\t\t\t\"ion-icon-social-google-plus\",\n\t\t\t\"ion-image\",\n\t\t\t\"ion-images\",\n\t\t\t\"ion-information-circled\",\n\t\t\t\"ion-information\",\n\t\t\t\"ion-ionic\",\n\t\t\t\"ion-ios7-alarm-outline\",\n\t\t\t\"ion-ios7-alarm\",\n\t\t\t\"ion-ios7-albums-outline\",\n\t\t\t\"ion-ios7-albums\",\n\t\t\t\"ion-ios7-arrow-back\",\n\t\t\t\"ion-ios7-arrow-down\",\n\t\t\t\"ion-ios7-arrow-forward\",\n\t\t\t\"ion-ios7-arrow-left\",\n\t\t\t\"ion-ios7-arrow-right\",\n\t\t\t\"ion-ios7-arrow-thin-down\",\n\t\t\t\"ion-ios7-arrow-thin-left\",\n\t\t\t\"ion-ios7-arrow-thin-right\",\n\t\t\t\"ion-ios7-arrow-thin-up\",\n\t\t\t\"ion-ios7-arrow-up\",\n\t\t\t\"ion-ios7-at-outline\",\n\t\t\t\"ion-ios7-at\",\n\t\t\t\"ion-ios7-bell-outline\",\n\t\t\t\"ion-ios7-bell\",\n\t\t\t\"ion-ios7-bolt-outline\",\n\t\t\t\"ion-ios7-bolt\",\n\t\t\t\"ion-ios7-bookmarks-outline\",\n\t\t\t\"ion-ios7-bookmarks\",\n\t\t\t\"ion-ios7-box-outline\",\n\t\t\t\"ion-ios7-box\",\n\t\t\t\"ion-ios7-briefcase-outline\",\n\t\t\t\"ion-ios7-briefcase\",\n\t\t\t\"ion-ios7-browsers-outline\",\n\t\t\t\"ion-ios7-browsers\",\n\t\t\t\"ion-ios7-calculator-outline\",\n\t\t\t\"ion-ios7-calculator\",\n\t\t\t\"ion-ios7-calendar-outline\",\n\t\t\t\"ion-ios7-calendar\",\n\t\t\t\"ion-ios7-camera-outline\",\n\t\t\t\"ion-ios7-camera\",\n\t\t\t\"ion-ios7-cart-outline\",\n\t\t\t\"ion-ios7-cart\",\n\t\t\t\"ion-ios7-chatboxes-outline\",\n\t\t\t\"ion-ios7-chatboxes\",\n\t\t\t\"ion-ios7-chatbubble-outline\",\n\t\t\t\"ion-ios7-chatbubble\",\n\t\t\t\"ion-ios7-checkmark-empty\",\n\t\t\t\"ion-ios7-checkmark-outline\",\n\t\t\t\"ion-ios7-checkmark\",\n\t\t\t\"ion-ios7-circle-filled\",\n\t\t\t\"ion-ios7-circle-outline\",\n\t\t\t\"ion-ios7-clock-outline\",\n\t\t\t\"ion-ios7-clock\",\n\t\t\t\"ion-ios7-close-empty\",\n\t\t\t\"ion-ios7-close-outline\",\n\t\t\t\"ion-ios7-close\",\n\t\t\t\"ion-ios7-cloud-download-outline\",\n\t\t\t\"ion-ios7-cloud-download\",\n\t\t\t\"ion-ios7-cloud-outline\",\n\t\t\t\"ion-ios7-cloud-upload-outline\",\n\t\t\t\"ion-ios7-cloud-upload\",\n\t\t\t\"ion-ios7-cloud\",\n\t\t\t\"ion-ios7-cloudy-night-outline\",\n\t\t\t\"ion-ios7-cloudy-night\",\n\t\t\t\"ion-ios7-cloudy-outline\",\n\t\t\t\"ion-ios7-cloudy\",\n\t\t\t\"ion-ios7-cog-outline\",\n\t\t\t\"ion-ios7-cog\",\n\t\t\t\"ion-ios7-compose-outline\",\n\t\t\t\"ion-ios7-compose\",\n\t\t\t\"ion-ios7-contact-outline\",\n\t\t\t\"ion-ios7-contact\",\n\t\t\t\"ion-ios7-copy-outline\",\n\t\t\t\"ion-ios7-copy\",\n\t\t\t\"ion-ios7-download-outline\",\n\t\t\t\"ion-ios7-download\",\n\t\t\t\"ion-ios7-drag\",\n\t\t\t\"ion-ios7-email-outline\",\n\t\t\t\"ion-ios7-email\",\n\t\t\t\"ion-ios7-eye-outline\",\n\t\t\t\"ion-ios7-eye\",\n\t\t\t\"ion-ios7-fastforward-outline\",\n\t\t\t\"ion-ios7-fastforward\",\n\t\t\t\"ion-ios7-filing-outline\",\n\t\t\t\"ion-ios7-filing\",\n\t\t\t\"ion-ios7-film-outline\",\n\t\t\t\"ion-ios7-film\",\n\t\t\t\"ion-ios7-flag-outline\",\n\t\t\t\"ion-ios7-flag\",\n\t\t\t\"ion-ios7-folder-outline\",\n\t\t\t\"ion-ios7-folder\",\n\t\t\t\"ion-ios7-gear-outline\",\n\t\t\t\"ion-alert\",\n\t\t\t\"ion-ios7-glasses-outline\",\n\t\t\t\"ion-ios7-glasses\",\n\t\t\t\"ion-ios7-heart-outline\",\n\t\t\t\"ion-ios7-heart\",\n\t\t\t\"ion-ios7-help-empty\",\n\t\t\t\"ion-ios7-help-outline\",\n\t\t\t\"ion-ios7-help\",\n\t\t\t\"ion-ios7-infinite-outline\",\n\t\t\t\"ion-ios7-infinite\",\n\t\t\t\"ion-ios7-information-empty\",\n\t\t\t\"ion-ios7-information-outline\",\n\t\t\t\"ion-ios7-information\",\n\t\t\t\"ion-ios7-ionic-outline\",\n\t\t\t\"ion-ios7-keypad-outline\",\n\t\t\t\"ion-ios7-keypad\",\n\t\t\t\"ion-ios7-lightbulb-outline\",\n\t\t\t\"ion-ios7-lightbulb\",\n\t\t\t\"ion-ios7-location-outline\",\n\t\t\t\"ion-ios7-location\",\n\t\t\t\"ion-ios7-locked-outline\",\n\t\t\t\"ion-ios7-locked\",\n\t\t\t\"ion-ios7-medkit-outline\",\n\t\t\t\"ion-ios7-medkit\",\n\t\t\t\"ion-ios7-mic-off\",\n\t\t\t\"ion-ios7-mic-outline\",\n\t\t\t\"ion-ios7-mic\",\n\t\t\t\"ion-ios7-minus-empty\",\n\t\t\t\"ion-ios7-minus-outline\",\n\t\t\t\"ion-ios7-minus\",\n\t\t\t\"ion-ios7-monitor-outline\",\n\t\t\t\"ion-ios7-monitor\",\n\t\t\t\"ion-ios7-moon-outline\",\n\t\t\t\"ion-ios7-moon\",\n\t\t\t\"ion-ios7-more-outline\",\n\t\t\t\"ion-ios7-more\",\n\t\t\t\"ion-ios7-musical-note\",\n\t\t\t\"ion-ios7-musical-notes\",\n\t\t\t\"ion-ios7-navigate-outline\",\n\t\t\t\"ion-ios7-navigate\",\n\t\t\t\"ion-ios7-paperplane-outline\",\n\t\t\t\"ion-ios7-paperplane\",\n\t\t\t\"ion-ios7-partlysunny-outline\",\n\t\t\t\"ion-ios7-partlysunny\",\n\t\t\t\"ion-ios7-pause-outline\",\n\t\t\t\"ion-ios7-pause\",\n\t\t\t\"ion-ios7-people-outline\",\n\t\t\t\"ion-ios7-people\",\n\t\t\t\"ion-ios7-person-outline\",\n\t\t\t\"ion-ios7-person\",\n\t\t\t\"ion-ios7-personadd-outline\",\n\t\t\t\"ion-ios7-personadd\",\n\t\t\t\"ion-ios7-photos-outline\",\n\t\t\t\"ion-ios7-photos\",\n\t\t\t\"ion-ios7-pie-outline\",\n\t\t\t\"ion-ios7-pie\",\n\t\t\t\"ion-ios7-play-outline\",\n\t\t\t\"ion-ios7-play\",\n\t\t\t\"ion-ios7-plus-empty\",\n\t\t\t\"ion-ios7-plus-outline\",\n\t\t\t\"ion-ios7-plus\",\n\t\t\t\"ion-ios7-pricetag-outline\",\n\t\t\t\"ion-ios7-pricetag\",\n\t\t\t\"ion-ios7-printer-outline\",\n\t\t\t\"ion-ios7-printer\",\n\t\t\t\"ion-ios7-rainy-outline\",\n\t\t\t\"ion-ios7-rainy\",\n\t\t\t\"ion-ios7-recording-outline\",\n\t\t\t\"ion-ios7-recording\",\n\t\t\t\"ion-ios7-redo-outline\",\n\t\t\t\"ion-ios7-redo\",\n\t\t\t\"ion-ios7-refresh-empty\",\n\t\t\t\"ion-ios7-refresh-outline\",\n\t\t\t\"ion-ios7-refresh\",\n\t\t\t\"ion-ios7-reload\",\n\t\t\t\"ion-ios7-rewind-outline\",\n\t\t\t\"ion-ios7-rewind\",\n\t\t\t\"ion-ios7-search-strong\",\n\t\t\t\"ion-ios7-search\",\n\t\t\t\"ion-ios7-skipbackward-outline\",\n\t\t\t\"ion-ios7-skipbackward\",\n\t\t\t\"ion-ios7-skipforward-outline\",\n\t\t\t\"ion-ios7-skipforward\",\n\t\t\t\"ion-ios7-snowy\",\n\t\t\t\"ion-ios7-speedometer-outline\",\n\t\t\t\"ion-ios7-speedometer\",\n\t\t\t\"ion-ios7-star-outline\",\n\t\t\t\"ion-ios7-star\",\n\t\t\t\"ion-ios7-stopwatch-outline\",\n\t\t\t\"ion-ios7-stopwatch\",\n\t\t\t\"ion-ios7-sunny-outline\",\n\t\t\t\"ion-ios7-sunny\",\n\t\t\t\"ion-ios7-telephone-outline\",\n\t\t\t\"ion-ios7-telephone\",\n\t\t\t\"ion-ios7-thunderstorm-outline\",\n\t\t\t\"ion-ios7-thunderstorm\",\n\t\t\t\"ion-ios7-time-outline\",\n\t\t\t\"ion-ios7-time\",\n\t\t\t\"ion-ios7-timer-outline\",\n\t\t\t\"ion-ios7-timer\",\n\t\t\t\"ion-ios7-trash-outline\",\n\t\t\t\"ion-ios7-trash\",\n\t\t\t\"ion-ios7-undo-outline\",\n\t\t\t\"ion-ios7-undo\",\n\t\t\t\"ion-ios7-unlocked-outline\",\n\t\t\t\"ion-ios7-unlocked\",\n\t\t\t\"ion-ios7-upload-outline\",\n\t\t\t\"ion-ios7-upload\",\n\t\t\t\"ion-ios7-videocam-outline\",\n\t\t\t\"ion-ios7-videocam\",\n\t\t\t\"ion-ios7-volume-high\",\n\t\t\t\"ion-ios7-volume-low\",\n\t\t\t\"ion-ios7-wineglass-outline\",\n\t\t\t\"ion-ios7-wineglass\",\n\t\t\t\"ion-ios7-world-outline\",\n\t\t\t\"ion-ios7-world\",\n\t\t\t\"ion-ipad\",\n\t\t\t\"ion-iphone\",\n\t\t\t\"ion-ipod\",\n\t\t\t\"ion-jet\",\n\t\t\t\"ion-key\",\n\t\t\t\"ion-knife\",\n\t\t\t\"ion-laptop\",\n\t\t\t\"ion-leaf\",\n\t\t\t\"ion-levels\",\n\t\t\t\"ion-lightbulb\",\n\t\t\t\"ion-link\",\n\t\t\t\"ion-load-a\",\n\t\t\t\"ion-load-b\",\n\t\t\t\"ion-load-c\",\n\t\t\t\"ion-load-d\",\n\t\t\t\"ion-location\",\n\t\t\t\"ion-locked\",\n\t\t\t\"ion-log-in\",\n\t\t\t\"ion-log-out\",\n\t\t\t\"ion-loop\",\n\t\t\t\"ion-magnet\",\n\t\t\t\"ion-male\",\n\t\t\t\"ion-man\",\n\t\t\t\"ion-map\",\n\t\t\t\"ion-medkit\",\n\t\t\t\"ion-mic-a\",\n\t\t\t\"ion-mic-b\",\n\t\t\t\"ion-mic-c\",\n\t\t\t\"ion-minus-circled\",\n\t\t\t\"ion-minus-round\",\n\t\t\t\"ion-minus\",\n\t\t\t\"ion-model-s\",\n\t\t\t\"ion-monitor\",\n\t\t\t\"ion-more\",\n\t\t\t\"ion-music-note\",\n\t\t\t\"ion-navicon-round\",\n\t\t\t\"ion-navicon\",\n\t\t\t\"ion-navigate\",\n\t\t\t\"ion-no-smoking\",\n\t\t\t\"ion-nuclear\",\n\t\t\t\"ion-paper-airplane\",\n\t\t\t\"ion-paperclip\",\n\t\t\t\"ion-pause\",\n\t\t\t\"ion-person-add\",\n\t\t\t\"ion-person-stalker\",\n\t\t\t\"ion-person\",\n\t\t\t\"ion-pie-graph\",\n\t\t\t\"ion-pin\",\n\t\t\t\"ion-pinpoint\",\n\t\t\t\"ion-pizza\",\n\t\t\t\"ion-plane\",\n\t\t\t\"ion-play\",\n\t\t\t\"ion-playstation\",\n\t\t\t\"ion-plus-circled\",\n\t\t\t\"ion-plus-round\",\n\t\t\t\"ion-plus\",\n\t\t\t\"ion-pound\",\n\t\t\t\"ion-power\",\n\t\t\t\"ion-pricetag\",\n\t\t\t\"ion-pricetags\",\n\t\t\t\"ion-printer\",\n\t\t\t\"ion-radio-waves\",\n\t\t\t\"ion-record\",\n\t\t\t\"ion-refresh\",\n\t\t\t\"ion-reply-all\",\n\t\t\t\"ion-reply\",\n\t\t\t\"ion-search\",\n\t\t\t\"ion-settings\",\n\t\t\t\"ion-share\",\n\t\t\t\"ion-shuffle\",\n\t\t\t\"ion-skip-backward\",\n\t\t\t\"ion-skip-forward\",\n\t\t\t\"ion-social-android-outline\",\n\t\t\t\"ion-social-android\",\n\t\t\t\"ion-social-apple-outline\",\n\t\t\t\"ion-social-apple\",\n\t\t\t\"ion-social-bitcoin-outline\",\n\t\t\t\"ion-social-bitcoin\",\n\t\t\t\"ion-social-buffer-outline\",\n\t\t\t\"ion-social-buffer\",\n\t\t\t\"ion-social-designernews-outline\",\n\t\t\t\"ion-social-designernews\",\n\t\t\t\"ion-social-dribbble-outline\",\n\t\t\t\"ion-social-dribbble\",\n\t\t\t\"ion-social-dropbox-outline\",\n\t\t\t\"ion-social-dropbox\",\n\t\t\t\"ion-social-facebook-outline\",\n\t\t\t\"ion-social-facebook\",\n\t\t\t\"ion-social-freebsd-devil\",\n\t\t\t\"ion-social-github-outline\",\n\t\t\t\"ion-social-github\",\n\t\t\t\"ion-social-googleplus-outline\",\n\t\t\t\"ion-social-googleplus\",\n\t\t\t\"ion-social-hackernews-outline\",\n\t\t\t\"ion-social-hackernews\",\n\t\t\t\"ion-social-linkedin-outline\",\n\t\t\t\"ion-social-linkedin\",\n\t\t\t\"ion-social-pinterest-outline\",\n\t\t\t\"ion-social-pinterest\",\n\t\t\t\"ion-social-reddit-outline\",\n\t\t\t\"ion-social-reddit\",\n\t\t\t\"ion-social-rss-outline\",\n\t\t\t\"ion-social-rss\",\n\t\t\t\"ion-social-skype-outline\",\n\t\t\t\"ion-social-skype\",\n\t\t\t\"ion-social-tumblr-outline\",\n\t\t\t\"ion-social-tumblr\",\n\t\t\t\"ion-social-tux\",\n\t\t\t\"ion-social-twitter-outline\",\n\t\t\t\"ion-social-twitter\",\n\t\t\t\"ion-social-vimeo-outline\",\n\t\t\t\"ion-social-vimeo\",\n\t\t\t\"ion-social-windows-outline\",\n\t\t\t\"ion-social-windows\",\n\t\t\t\"ion-social-wordpress-outline\",\n\t\t\t\"ion-social-wordpress\",\n\t\t\t\"ion-social-yahoo-outline\",\n\t\t\t\"ion-social-yahoo\",\n\t\t\t\"ion-social-youtube-outline\",\n\t\t\t\"ion-social-youtube\",\n\t\t\t\"ion-speakerphone\",\n\t\t\t\"ion-speedometer\",\n\t\t\t\"ion-spoon\",\n\t\t\t\"ion-star\",\n\t\t\t\"ion-stats-bars\",\n\t\t\t\"ion-steam\",\n\t\t\t\"ion-stop\",\n\t\t\t\"ion-thermometer\",\n\t\t\t\"ion-thumbsdown\",\n\t\t\t\"ion-thumbsup\",\n\t\t\t\"ion-trash-a\",\n\t\t\t\"ion-trash-b\",\n\t\t\t\"ion-umbrella\",\n\t\t\t\"ion-unlocked\",\n\t\t\t\"ion-upload\",\n\t\t\t\"ion-usb\",\n\t\t\t\"ion-videocamera\",\n\t\t\t\"ion-volume-high\",\n\t\t\t\"ion-volume-low\",\n\t\t\t\"ion-volume-medium\",\n\t\t\t\"ion-volume-mute\",\n\t\t\t\"ion-waterdrop\",\n\t\t\t\"ion-wifi\",\n\t\t\t\"ion-wineglass\",\n\t\t\t\"ion-woman\",\n\t\t\t\"ion-wrench\",\n\t\t\t\"ion-ios7-gear\",\n\t\t\t\"lis-amplified\",\n\t\t\t\"lis-world29\",\n\t\t\t\"lis-arrow435\",\n\t\t\t\"lis-arrow436\",\n\t\t\t\"lis-arrow437\",\n\t\t\t\"lis-arrowhead4\",\n\t\t\t\"lis-audio28\",\n\t\t\t\"lis-battery74\",\n\t\t\t\"lis-big80\",\n\t\t\t\"lis-big81\",\n\t\t\t\"lis-blank20\",\n\t\t\t\"lis-camera43\",\n\t\t\t\"lis-cassette7\",\n\t\t\t\"lis-cinema13\",\n\t\t\t\"lis-circular45\",\n\t\t\t\"lis-circular46\",\n\t\t\t\"lis-circular47\",\n\t\t\t\"lis-circular48\",\n\t\t\t\"lis-circular49\",\n\t\t\t\"lis-circular50\",\n\t\t\t\"lis-cloud102\",\n\t\t\t\"lis-cloudy12\",\n\t\t\t\"lis-coffee17\",\n\t\t\t\"lis-cogwheel8\",\n\t\t\t\"lis-compact8\",\n\t\t\t\"lis-compass39\",\n\t\t\t\"lis-connected8\",\n\t\t\t\"lis-crop2\",\n\t\t\t\"lis-cross39\",\n\t\t\t\"lis-curve19\",\n\t\t\t\"lis-diamond18\",\n\t\t\t\"lis-document58\",\n\t\t\t\"lis-dollar79\",\n\t\t\t\"lis-door7\",\n\t\t\t\"lis-double23\",\n\t\t\t\"lis-double24\",\n\t\t\t\"lis-downloading3\",\n\t\t\t\"lis-drawing4\",\n\t\t\t\"lis-empty20\",\n\t\t\t\"lis-eyes\",\n\t\t\t\"lis-fast10\",\n\t\t\t\"lis-fast11\",\n\t\t\t\"lis-file24\",\n\t\t\t\"lis-film24\",\n\t\t\t\"lis-fire13\",\n\t\t\t\"lis-flag26\",\n\t\t\t\"lis-flat10\",\n\t\t\t\"lis-fluff1\",\n\t\t\t\"lis-four26\",\n\t\t\t\"lis-full21\",\n\t\t\t\"lis-grocery10\",\n\t\t\t\"lis-half11\",\n\t\t\t\"lis-heart66\",\n\t\t\t\"lis-home62\",\n\t\t\t\"lis-huge3\",\n\t\t\t\"lis-increasing5\",\n\t\t\t\"lis-kings\",\n\t\t\t\"lis-letter11\",\n\t\t\t\"lis-light44\",\n\t\t\t\"lis-lines\",\n\t\t\t\"lis-low20\",\n\t\t\t\"lis-arrow434\",\n\t\t\t\"lis-maps5\",\n\t\t\t\"lis-mathematical3\",\n\t\t\t\"lis-microphone26\",\n\t\t\t\"lis-molecular\",\n\t\t\t\"lis-multiple18\",\n\t\t\t\"lis-music63\",\n\t\t\t\"lis-mute7\",\n\t\t\t\"lis-navigation8\",\n\t\t\t\"lis-newspaper8\",\n\t\t\t\"lis-no16\",\n\t\t\t\"lis-open89\",\n\t\t\t\"lis-open90\",\n\t\t\t\"lis-padlock18\",\n\t\t\t\"lis-paint26\",\n\t\t\t\"lis-paper43\",\n\t\t\t\"lis-paper44\",\n\t\t\t\"lis-personal5\",\n\t\t\t\"lis-phone51\",\n\t\t\t\"lis-picture10\",\n\t\t\t\"lis-plant10\",\n\t\t\t\"lis-play35\",\n\t\t\t\"lis-previous6\",\n\t\t\t\"lis-profile7\",\n\t\t\t\"lis-public5\",\n\t\t\t\"lis-rainy5\",\n\t\t\t\"lis-religion1\",\n\t\t\t\"lis-rewind22\",\n\t\t\t\"lis-rotating10\",\n\t\t\t\"lis-rotating9\",\n\t\t\t\"lis-round30\",\n\t\t\t\"lis-round31\",\n\t\t\t\"lis-rounded25\",\n\t\t\t\"lis-rounded26\",\n\t\t\t\"lis-royalty\",\n\t\t\t\"lis-scissors14\",\n\t\t\t\"lis-shopping63\",\n\t\t\t\"lis-signal21\",\n\t\t\t\"lis-simple47\",\n\t\t\t\"lis-small139\",\n\t\t\t\"lis-snowflake3\",\n\t\t\t\"lis-speech54\",\n\t\t\t\"lis-spring11\",\n\t\t\t\"lis-square51\",\n\t\t\t\"lis-square52\",\n\t\t\t\"lis-square53\",\n\t\t\t\"lis-square54\",\n\t\t\t\"lis-square55\",\n\t\t\t\"lis-square56\",\n\t\t\t\"lis-square57\",\n\t\t\t\"lis-stop20\",\n\t\t\t\"lis-sun30\",\n\t\t\t\"lis-syncing\",\n\t\t\t\"lis-telephone63\",\n\t\t\t\"lis-trash27\",\n\t\t\t\"lis-triangle14\",\n\t\t\t\"lis-tshirt14\",\n\t\t\t\"lis-umbrella14\",\n\t\t\t\"lis-user73\",\n\t\t\t\"lis-wide6\",\n\t\t\t\"lis-magnification3\",\n\t\t\t\"ln-heart\",\n\t\t\t\"ln-cloud\",\n\t\t\t\"ln-star\",\n\t\t\t\"ln-tv\",\n\t\t\t\"ln-sound\",\n\t\t\t\"ln-video\",\n\t\t\t\"ln-trash\",\n\t\t\t\"ln-user\",\n\t\t\t\"ln-key\",\n\t\t\t\"ln-search\",\n\t\t\t\"ln-settings\",\n\t\t\t\"ln-camera\",\n\t\t\t\"ln-tag\",\n\t\t\t\"ln-lock\",\n\t\t\t\"ln-bulb\",\n\t\t\t\"ln-pen\",\n\t\t\t\"ln-diamond\",\n\t\t\t\"ln-display\",\n\t\t\t\"ln-location\",\n\t\t\t\"ln-eye\",\n\t\t\t\"ln-bubble\",\n\t\t\t\"ln-stack\",\n\t\t\t\"ln-cup\",\n\t\t\t\"ln-phone\",\n\t\t\t\"ln-news\",\n\t\t\t\"ln-mail\",\n\t\t\t\"ln-like\",\n\t\t\t\"ln-photo\",\n\t\t\t\"ln-note\",\n\t\t\t\"ln-clock\",\n\t\t\t\"ln-paperplane\",\n\t\t\t\"ln-params\",\n\t\t\t\"ln-banknote\",\n\t\t\t\"ln-data\",\n\t\t\t\"ln-music\",\n\t\t\t\"ln-megaphone\",\n\t\t\t\"ln-study\",\n\t\t\t\"ln-lab\",\n\t\t\t\"ln-food\",\n\t\t\t\"ln-t-shirt\",\n\t\t\t\"ln-fire\",\n\t\t\t\"ln-clip\",\n\t\t\t\"ln-shop\",\n\t\t\t\"ln-calendar\",\n\t\t\t\"ln-wallet\",\n\t\t\t\"ln-vynil\",\n\t\t\t\"ln-truck\",\n\t\t\t\"ln-world\",\n\t\t\t\"lp-flag\",\n\t\t\t\"lp-resize\",\n\t\t\t\"lp-share\",\n\t\t\t\"lp-heart\",\n\t\t\t\"lp-comment\",\n\t\t\t\"lp-menu\",\n\t\t\t\"lp-grid\",\n\t\t\t\"lp-folder\",\n\t\t\t\"lp-eye\",\n\t\t\t\"lp-clock\",\n\t\t\t\"lp-link\",\n\t\t\t\"lp-sun\",\n\t\t\t\"lp-moon\",\n\t\t\t\"lp-contrast\",\n\t\t\t\"lp-file\",\n\t\t\t\"lp-plus\",\n\t\t\t\"lp-minus\",\n\t\t\t\"lp-cancel\",\n\t\t\t\"lp-divide\",\n\t\t\t\"lp-arrows\",\n\t\t\t\"lp-arrows-2\",\n\t\t\t\"lp-arrows-3\",\n\t\t\t\"lp-arrows-4\",\n\t\t\t\"lp-play\",\n\t\t\t\"lp-pause\",\n\t\t\t\"lp-stop\",\n\t\t\t\"lp-record\",\n\t\t\t\"lp-checkmark\",\n\t\t\t\"lp-cancel-2\",\n\t\t\t\"lp-move\",\n\t\t\t\"lp-file-2\",\n\t\t\t\"lp-switch\",\n\t\t\t\"lp-screen\",\n\t\t\t\"lp-music\",\n\t\t\t\"lp-alert\",\n\t\t\t\"lp-locked\",\n\t\t\t\"lp-popup\",\n\t\t\t\"lp-bars\",\n\t\t\t\"lp-location\",\n\t\t\t\"lp-calendar\",\n\t\t\t\"lp-battery\",\n\t\t\t\"lp-mail\",\n\t\t\t\"lp-droplet\",\n\t\t\t\"lp-star\",\n\t\t\t\"lp-direction\",\n\t\t\t\"lp-volume\",\n\t\t\t\"lp-meter\",\n\t\t\t\"lp-bookmark\",\n\t\t\t\"lp-magnifier\",\n\t\t\t\"lp-film\",\n\t\t\t\"lp-inbox\",\n\t\t\t\"lp-pacman\",\n\t\t\t\"lp-target\",\n\t\t\t\"lp-transform\",\n\t\t\t\"lp-paperplane\",\n\t\t\t\"lp-power\",\n\t\t\t\"lp-cloud\",\n\t\t\t\"lp-zip\",\n\t\t\t\"lp-equalizer\",\n\t\t\t\"lp-happy\",\n\t\t\t\"lp-lab\",\n\t\t\t\"lp-activity\",\n\t\t\t\"lp-credit-card\",\n\t\t\t\"lp-gear\",\n\t\t\t\"lp-mobile\",\n\t\t\t\"lp-justice\",\n\t\t\t\"lp-ipod\",\n\t\t\t\"lp-picture\",\n\t\t\t\"lp-camera\",\n\t\t\t\"lp-calculator\",\n\t\t\t\"lp-microphone\",\n\t\t\t\"lp-compass\",\n\t\t\t\"lp-thermometer\",\n\t\t\t\"lp-pencil\",\n\t\t\t\"lp-grid-2\",\n\t\t\t\"lp-wallet\",\n\t\t\t\"lp-cube\",\n\t\t\t\"lp-cabinet\",\n\t\t\t\"lp-chat\",\n\t\t\t\"lp-headset\",\n\t\t\t\"lp-blocked\",\n\t\t\t\"lp-expand\",\n\t\t\t\"lp-collapse\",\n\t\t\t\"lp-user\",\n\t\t\t\"lp-users\",\n\t\t\t\"lp-code\",\n\t\t\t\"lp-arrow\",\n\t\t\t\"lp-arrow-2\",\n\t\t\t\"lp-arrow-3\",\n\t\t\t\"lp-arrow-4\",\n\t\t\t\"lp-feed\",\n\t\t\t\"lp-twitter\",\n\t\t\t\"lp-dribbble\",\n\t\t\t\"lp-facebook\",\n\t\t\t\"lp-briefcase\",\n\t\t\t\"lp-skype\",\n\t\t\t\"lp-anchor\",\n\t\t\t\"lp-movie\",\n\t\t\t\"lp-analytics\",\n\t\t\t\"lp-home\",\n\t\t\t\"lp-transfer\",\n\t\t\t\"lp-camera-2\",\n\t\t\t\"lp-wrench\",\n\t\t\t\"lp-alarm\",\n\t\t\t\"lp-eject\",\n\t\t\t\"ls-addstar\",\n\t\t\t\"ls-yelp\",\n\t\t\t\"ls-album\",\n\t\t\t\"ls-alignadjust\",\n\t\t\t\"ls-aligncenter\",\n\t\t\t\"ls-alignleft\",\n\t\t\t\"ls-alignright\",\n\t\t\t\"ls-amazon\",\n\t\t\t\"ls-android\",\n\t\t\t\"ls-app\",\n\t\t\t\"ls-apple\",\n\t\t\t\"ls-arrowdown\",\n\t\t\t\"ls-arrowleft\",\n\t\t\t\"ls-arrowright\",\n\t\t\t\"ls-arrowup\",\n\t\t\t\"ls-back\",\n\t\t\t\"ls-backspace\",\n\t\t\t\"ls-bad\",\n\t\t\t\"ls-ban\",\n\t\t\t\"ls-barcode\",\n\t\t\t\"ls-bell\",\n\t\t\t\"ls-bicycle\",\n\t\t\t\"ls-bold\",\n\t\t\t\"ls-book\",\n\t\t\t\"ls-bookmark\",\n\t\t\t\"ls-building\",\n\t\t\t\"ls-bus\",\n\t\t\t\"ls-camera\",\n\t\t\t\"ls-car\",\n\t\t\t\"ls-category\",\n\t\t\t\"ls-check\",\n\t\t\t\"ls-chrome\",\n\t\t\t\"ls-cinnamon\",\n\t\t\t\"ls-circle\",\n\t\t\t\"ls-clear\",\n\t\t\t\"ls-clip\",\n\t\t\t\"ls-cloud\",\n\t\t\t\"ls-code\",\n\t\t\t\"ls-comment\",\n\t\t\t\"ls-comments\",\n\t\t\t\"ls-compass\",\n\t\t\t\"ls-cookpad\",\n\t\t\t\"ls-copy\",\n\t\t\t\"ls-crop\",\n\t\t\t\"ls-crown\",\n\t\t\t\"ls-cut\",\n\t\t\t\"ls-dashboard\",\n\t\t\t\"ls-delicious\",\n\t\t\t\"ls-down\",\n\t\t\t\"ls-dribbble\",\n\t\t\t\"ls-dropdown\",\n\t\t\t\"ls-edit\",\n\t\t\t\"ls-eject\",\n\t\t\t\"ls-etc\",\n\t\t\t\"ls-evernote\",\n\t\t\t\"ls-exchange\",\n\t\t\t\"ls-external\",\n\t\t\t\"ls-facebook\",\n\t\t\t\"ls-file\",\n\t\t\t\"ls-firefox\",\n\t\t\t\"ls-flag\",\n\t\t\t\"ls-flickr\",\n\t\t\t\"ls-folder\",\n\t\t\t\"ls-foursquare\",\n\t\t\t\"ls-forward\",\n\t\t\t\"ls-friend\",\n\t\t\t\"ls-frustrate\",\n\t\t\t\"ls-full\",\n\t\t\t\"ls-game\",\n\t\t\t\"ls-gear\",\n\t\t\t\"ls-geo\",\n\t\t\t\"ls-github\",\n\t\t\t\"ls-globe\",\n\t\t\t\"ls-good\",\n\t\t\t\"ls-google\",\n\t\t\t\"ls-graph\",\n\t\t\t\"ls-group\",\n\t\t\t\"ls-hatena\",\n\t\t\t\"ls-heart\",\n\t\t\t\"ls-heartempty\",\n\t\t\t\"ls-help\",\n\t\t\t\"ls-horizontal\",\n\t\t\t\"ls-home\",\n\t\t\t\"ls-hot\",\n\t\t\t\"ls-image\",\n\t\t\t\"ls-info\",\n\t\t\t\"ls-instapaper\",\n\t\t\t\"ls-internetexplorer\",\n\t\t\t\"ls-iphone\",\n\t\t\t\"ls-italic\",\n\t\t\t\"ls-key\",\n\t\t\t\"ls-keyboard\",\n\t\t\t\"ls-kudakurage\",\n\t\t\t\"ls-laugh\",\n\t\t\t\"ls-left\",\n\t\t\t\"ls-wink\",\n\t\t\t\"ls-link\",\n\t\t\t\"ls-linkedin\",\n\t\t\t\"ls-list\",\n\t\t\t\"ls-location\",\n\t\t\t\"ls-lock\",\n\t\t\t\"ls-login\",\n\t\t\t\"ls-logout\",\n\t\t\t\"ls-magic\",\n\t\t\t\"ls-mail\",\n\t\t\t\"ls-map\",\n\t\t\t\"ls-meal\",\n\t\t\t\"ls-memo\",\n\t\t\t\"ls-menu\",\n\t\t\t\"ls-minus\",\n\t\t\t\"ls-mixi\",\n\t\t\t\"ls-move\",\n\t\t\t\"ls-music\",\n\t\t\t\"ls-newwindow\",\n\t\t\t\"ls-next\",\n\t\t\t\"ls-notify\",\n\t\t\t\"ls-off\",\n\t\t\t\"ls-opera\",\n\t\t\t\"ls-ordble\",\n\t\t\t\"ls-paint\",\n\t\t\t\"ls-paramater\",\n\t\t\t\"ls-pause\",\n\t\t\t\"ls-pc\",\n\t\t\t\"ls-pencil\",\n\t\t\t\"ls-phone\",\n\t\t\t\"ls-adjust\",\n\t\t\t\"ls-picasa\",\n\t\t\t\"ls-pin\",\n\t\t\t\"ls-pinterest\",\n\t\t\t\"ls-plane\",\n\t\t\t\"ls-play\",\n\t\t\t\"ls-playmedia\",\n\t\t\t\"ls-plusicon\",\n\t\t\t\"ls-present\",\n\t\t\t\"ls-print\",\n\t\t\t\"ls-quote\",\n\t\t\t\"ls-readability\",\n\t\t\t\"ls-record\",\n\t\t\t\"ls-refresh\",\n\t\t\t\"ls-remove\",\n\t\t\t\"ls-repeat\",\n\t\t\t\"ls-reply\",\n\t\t\t\"ls-right\",\n\t\t\t\"ls-rss\",\n\t\t\t\"ls-safari\",\n\t\t\t\"ls-save\",\n\t\t\t\"ls-search\",\n\t\t\t\"ls-wrench\",\n\t\t\t\"ls-share\",\n\t\t\t\"ls-shopping\",\n\t\t\t\"ls-shuffle\",\n\t\t\t\"ls-skype\",\n\t\t\t\"ls-sleipnir\",\n\t\t\t\"ls-small\",\n\t\t\t\"ls-smile\",\n\t\t\t\"ls-sns\",\n\t\t\t\"ls-sort\",\n\t\t\t\"ls-star\",\n\t\t\t\"ls-starempty\",\n\t\t\t\"ls-stop\",\n\t\t\t\"ls-surprise\",\n\t\t\t\"ls-sync\",\n\t\t\t\"ls-tabezou\",\n\t\t\t\"ls-table\",\n\t\t\t\"ls-tag\",\n\t\t\t\"ls-tile\",\n\t\t\t\"ls-tilemenu\",\n\t\t\t\"ls-time\",\n\t\t\t\"ls-trash\",\n\t\t\t\"ls-trouble\",\n\t\t\t\"ls-tumblr\",\n\t\t\t\"ls-twitter\",\n\t\t\t\"ls-underline\",\n\t\t\t\"ls-undo\",\n\t\t\t\"ls-unlock\",\n\t\t\t\"ls-up\",\n\t\t\t\"ls-upload\",\n\t\t\t\"ls-user\",\n\t\t\t\"ls-vertical\",\n\t\t\t\"ls-video\",\n\t\t\t\"ls-view\",\n\t\t\t\"ls-volume\",\n\t\t\t\"ls-volumedown\",\n\t\t\t\"ls-volumeup\",\n\t\t\t\"ls-walking\",\n\t\t\t\"ls-web\",\n\t\t\t\"ls-wifi\",\n\t\t\t\"ls-youtube\",\n\t\t\t\"ls-zoomin\",\n\t\t\t\"ls-zoomout\",\n\t\t\t\"ls-brush\",\n\t\t\t\"ls-buffalo\",\n\t\t\t\"ls-dailycalendar\",\n\t\t\t\"ls-coffee\",\n\t\t\t\"ls-dark\",\n\t\t\t\"ls-eraser\",\n\t\t\t\"ls-grayscale\",\n\t\t\t\"ls-ink\",\n\t\t\t\"ls-invert\",\n\t\t\t\"ls-light\",\n\t\t\t\"ls-palette\",\n\t\t\t\"ls-refreshbutton\",\n\t\t\t\"ls-sepia\",\n\t\t\t\"ls-download\",\n\t\t\t\"ls-windows\",\n\t\t\t\"ls-emphasis\",\n\t\t\t\"ls-gree\",\n\t\t\t\"ls-gumroad\",\n\t\t\t\"ls-instagram\",\n\t\t\t\"ls-jpa\",\n\t\t\t\"ls-mobage\",\n\t\t\t\"ls-strike\",\n\t\t\t\"ls-yapcasia\",\n\t\t\t\"ls-yapcasialogo\",\n\t\t\t\"ls-yapcasialogomark\",\n\t\t\t\"ls-ltthon\",\n\t\t\t\"ls-calendar\",\n\t\t\t\"ls-SQALE\",\n\t\t\t\"ls-heteml\",\n\t\t\t\"ls-hatenabookmark\",\n\t\t\t\"ls-paperboy_co\",\n\t\t\t\"ls-checkbox\",\n\t\t\t\"ls-checkboxempty\",\n\t\t\t\"ls-aim\",\n\t\t\t\"ls-bing\",\n\t\t\t\"ls-blogger\",\n\t\t\t\"ls-cursor\",\n\t\t\t\"ls-digg\",\n\t\t\t\"ls-grab\",\n\t\t\t\"ls-myspace\",\n\t\t\t\"ls-pointer\",\n\t\t\t\"ls-sitemap\",\n\t\t\t\"ls-terminal\",\n\t\t\t\"ls-vimeo\",\n\t\t\t\"ls-wordpress\",\n\t\t\t\"ls-yahoo\",\n\t\t\t\"ls-dropbox\",\n\t\t\t\"ls-server\",\n\t\t\t\"ls-bag\",\n\t\t\t\"ls-college\",\n\t\t\t\"ls-female\",\n\t\t\t\"ls-line\",\n\t\t\t\"ls-male\",\n\t\t\t\"ls-spa\",\n\t\t\t\"ls-umbrella\",\n\t\t\t\"ls-ustream\",\n\t\t\t\"ls-slideshare\",\n\t\t\t\"ls-soundcloud\",\n\t\t\t\"ls-ubuntu\",\n\t\t\t\"ls-vk\",\n\t\t\t\"ls-photo\",\n\t\t\t\"ma-abstract\",\n\t\t\t\"ma-zoom15\",\n\t\t\t\"ma-administration\",\n\t\t\t\"ma-aeroplane\",\n\t\t\t\"ma-anchor5\",\n\t\t\t\"ma-animal1\",\n\t\t\t\"ma-archery\",\n\t\t\t\"ma-athlete\",\n\t\t\t\"ma-audition\",\n\t\t\t\"ma-bag3\",\n\t\t\t\"ma-balance1\",\n\t\t\t\"ma-batter\",\n\t\t\t\"ma-bicycle4\",\n\t\t\t\"ma-binoculars\",\n\t\t\t\"ma-black36\",\n\t\t\t\"ma-black37\",\n\t\t\t\"ma-black46\",\n\t\t\t\"ma-black47\",\n\t\t\t\"ma-black48\",\n\t\t\t\"ma-black62\",\n\t\t\t\"ma-black71\",\n\t\t\t\"ma-boat2\",\n\t\t\t\"ma-boat3\",\n\t\t\t\"ma-boat4\",\n\t\t\t\"ma-bowling2\",\n\t\t\t\"ma-braille\",\n\t\t\t\"ma-buy\",\n\t\t\t\"ma-calculator7\",\n\t\t\t\"ma-camera14\",\n\t\t\t\"ma-camping\",\n\t\t\t\"ma-canoe\",\n\t\t\t\"ma-canoeing\",\n\t\t\t\"ma-car10\",\n\t\t\t\"ma-car11\",\n\t\t\t\"ma-car8\",\n\t\t\t\"ma-carousel\",\n\t\t\t\"ma-cart2\",\n\t\t\t\"ma-church4\",\n\t\t\t\"ma-city5\",\n\t\t\t\"ma-close10\",\n\t\t\t\"ma-closed3\",\n\t\t\t\"ma-closed7\",\n\t\t\t\"ma-color1\",\n\t\t\t\"ma-communication2\",\n\t\t\t\"ma-compass4\",\n\t\t\t\"ma-creative2\",\n\t\t\t\"ma-cross7\",\n\t\t\t\"ma-cube\",\n\t\t\t\"ma-cursor6\",\n\t\t\t\"ma-dark12\",\n\t\t\t\"ma-dark13\",\n\t\t\t\"ma-dark21\",\n\t\t\t\"ma-decline\",\n\t\t\t\"ma-diamond1\",\n\t\t\t\"ma-disability1\",\n\t\t\t\"ma-diving\",\n\t\t\t\"ma-dollar3\",\n\t\t\t\"ma-dollar4\",\n\t\t\t\"ma-door2\",\n\t\t\t\"ma-dryer\",\n\t\t\t\"ma-escalation\",\n\t\t\t\"ma-exercise\",\n\t\t\t\"ma-exercise2\",\n\t\t\t\"ma-fireguard\",\n\t\t\t\"ma-fish3\",\n\t\t\t\"ma-fish4\",\n\t\t\t\"ma-fishing\",\n\t\t\t\"ma-flower1\",\n\t\t\t\"ma-footprint1\",\n\t\t\t\"ma-frontal4\",\n\t\t\t\"ma-fuel3\",\n\t\t\t\"ma-furnishing\",\n\t\t\t\"ma-giraffe\",\n\t\t\t\"ma-golf3\",\n\t\t\t\"ma-graduated\",\n\t\t\t\"ma-h\",\n\t\t\t\"ma-half1\",\n\t\t\t\"ma-hammer\",\n\t\t\t\"ma-hard\",\n\t\t\t\"ma-hook\",\n\t\t\t\"ma-house2\",\n\t\t\t\"ma-house6\",\n\t\t\t\"ma-interface11\",\n\t\t\t\"ma-judge\",\n\t\t\t\"ma-jump\",\n\t\t\t\"ma-ad\",\n\t\t\t\"ma-line3\",\n\t\t\t\"ma-line5\",\n\t\t\t\"ma-line7\",\n\t\t\t\"ma-list9\",\n\t\t\t\"ma-little25\",\n\t\t\t\"ma-lock6\",\n\t\t\t\"ma-lunchbox\",\n\t\t\t\"ma-man14\",\n\t\t\t\"ma-man19\",\n\t\t\t\"ma-map6\",\n\t\t\t\"ma-maps\",\n\t\t\t\"ma-medic\",\n\t\t\t\"ma-medical2\",\n\t\t\t\"ma-monumental\",\n\t\t\t\"ma-moon3\",\n\t\t\t\"ma-motorbike1\",\n\t\t\t\"ma-motorcyclist\",\n\t\t\t\"ma-oc\",\n\t\t\t\"ma-om\",\n\t\t\t\"ma-paint5\",\n\t\t\t\"ma-person1\",\n\t\t\t\"ma-person14\",\n\t\t\t\"ma-person5\",\n\t\t\t\"ma-person6\",\n\t\t\t\"ma-personal\",\n\t\t\t\"ma-pharmacy2\",\n\t\t\t\"ma-pipe\",\n\t\t\t\"ma-pisces\",\n\t\t\t\"ma-plate1\",\n\t\t\t\"ma-plate2\",\n\t\t\t\"ma-plug4\",\n\t\t\t\"ma-power7\",\n\t\t\t\"ma-road4\",\n\t\t\t\"ma-roof\",\n\t\t\t\"ma-scissors1\",\n\t\t\t\"ma-screen4\",\n\t\t\t\"ma-shield2\",\n\t\t\t\"ma-shield3\",\n\t\t\t\"ma-shopper\",\n\t\t\t\"ma-side\",\n\t\t\t\"ma-side3\",\n\t\t\t\"ma-side4\",\n\t\t\t\"ma-silhouette2\",\n\t\t\t\"ma-silhouette3\",\n\t\t\t\"ma-silhouette4\",\n\t\t\t\"ma-silver\",\n\t\t\t\"ma-sitting\",\n\t\t\t\"ma-skating\",\n\t\t\t\"ma-skating1\",\n\t\t\t\"ma-ski2\",\n\t\t\t\"ma-snack\",\n\t\t\t\"ma-snow\",\n\t\t\t\"ma-snowflake\",\n\t\t\t\"ma-sportive6\",\n\t\t\t\"ma-spyhole\",\n\t\t\t\"ma-star10\",\n\t\t\t\"ma-suitcase3\",\n\t\t\t\"ma-surf\",\n\t\t\t\"ma-swim1\",\n\t\t\t\"ma-swimming\",\n\t\t\t\"ma-swing\",\n\t\t\t\"ma-table1\",\n\t\t\t\"ma-teacherreading\",\n\t\t\t\"ma-temple1\",\n\t\t\t\"ma-tennis4\",\n\t\t\t\"ma-tennis5\",\n\t\t\t\"ma-toilet\",\n\t\t\t\"ma-toilet1\",\n\t\t\t\"ma-tooth\",\n\t\t\t\"ma-town1\",\n\t\t\t\"ma-train5\",\n\t\t\t\"ma-train6\",\n\t\t\t\"ma-train7\",\n\t\t\t\"ma-tshirt\",\n\t\t\t\"ma-two30\",\n\t\t\t\"ma-two31\",\n\t\t\t\"ma-two32\",\n\t\t\t\"ma-viewer\",\n\t\t\t\"ma-walking1\",\n\t\t\t\"ma-windsurf\",\n\t\t\t\"ma-winning\",\n\t\t\t\"ma-young\",\n\t\t\t\"ma-zoom13\",\n\t\t\t\"ma-language\",\n\t\t\t\"mfg-search\",\n\t\t\t\"mfg-mfg-logo-circled\",\n\t\t\t\"mfg-heart\",\n\t\t\t\"mfg-heart-broken\",\n\t\t\t\"mfg-star\",\n\t\t\t\"mfg-star-empty\",\n\t\t\t\"mfg-star-half\",\n\t\t\t\"mfg-star-half_empty\",\n\t\t\t\"mfg-user\",\n\t\t\t\"mfg-user-male\",\n\t\t\t\"mfg-user-female\",\n\t\t\t\"mfg-users\",\n\t\t\t\"mfg-movie\",\n\t\t\t\"mfg-videocam\",\n\t\t\t\"mfg-isight\",\n\t\t\t\"mfg-camera\",\n\t\t\t\"mfg-menu\",\n\t\t\t\"mfg-th-thumb\",\n\t\t\t\"mfg-th-thumb-empty\",\n\t\t\t\"mfg-th-list\",\n\t\t\t\"mfg-ok\",\n\t\t\t\"mfg-ok-circled\",\n\t\t\t\"mfg-cancel\",\n\t\t\t\"mfg-cancel-circled\",\n\t\t\t\"mfg-plus\",\n\t\t\t\"mfg-help-circled\",\n\t\t\t\"mfg-help-circled-alt\",\n\t\t\t\"mfg-info-circled\",\n\t\t\t\"mfg-info-circled-alt\",\n\t\t\t\"mfg-home\",\n\t\t\t\"mfg-link\",\n\t\t\t\"mfg-attach\",\n\t\t\t\"mfg-lock\",\n\t\t\t\"mfg-lock-alt\",\n\t\t\t\"mfg-lock-open\",\n\t\t\t\"mfg-lock-open-alt\",\n\t\t\t\"mfg-eye\",\n\t\t\t\"mfg-download\",\n\t\t\t\"mfg-upload\",\n\t\t\t\"mfg-download-cloud\",\n\t\t\t\"mfg-upload-cloud\",\n\t\t\t\"mfg-reply\",\n\t\t\t\"mfg-pencil\",\n\t\t\t\"mfg-export\",\n\t\t\t\"mfg-print\",\n\t\t\t\"mfg-retweet\",\n\t\t\t\"mfg-comment\",\n\t\t\t\"mfg-chat\",\n\t\t\t\"mfg-bell\",\n\t\t\t\"mfg-attention\",\n\t\t\t\"mfg-attention-alt\",\n\t\t\t\"mfg-location\",\n\t\t\t\"mfg-trash\",\n\t\t\t\"mfg-doc\",\n\t\t\t\"mfg-newspaper\",\n\t\t\t\"mfg-folder\",\n\t\t\t\"mfg-folder-open\",\n\t\t\t\"mfg-folder-empty\",\n\t\t\t\"mfg-folder-open-empty\",\n\t\t\t\"mfg-cog\",\n\t\t\t\"mfg-calendar\",\n\t\t\t\"mfg-login\",\n\t\t\t\"mfg-logout\",\n\t\t\t\"mfg-mic\",\n\t\t\t\"mfg-mic-off\",\n\t\t\t\"mfg-clock\",\n\t\t\t\"mfg-stopwatch\",\n\t\t\t\"mfg-hourglass\",\n\t\t\t\"mfg-zoom-in\",\n\t\t\t\"mfg-zoom-out\",\n\t\t\t\"mfg-down-open\",\n\t\t\t\"mfg-left-open\",\n\t\t\t\"mfg-right-open\",\n\t\t\t\"mfg-up-open\",\n\t\t\t\"mfg-down\",\n\t\t\t\"mfg-left\",\n\t\t\t\"mfg-mail\",\n\t\t\t\"mfg-up\",\n\t\t\t\"mfg-down-bold\",\n\t\t\t\"mfg-left-bold\",\n\t\t\t\"mfg-right-bold\",\n\t\t\t\"mfg-up-bold\",\n\t\t\t\"mfg-down-fat\",\n\t\t\t\"mfg-left-fat\",\n\t\t\t\"mfg-right-fat\",\n\t\t\t\"mfg-up-fat\",\n\t\t\t\"mfg-ccw\",\n\t\t\t\"mfg-shuffle\",\n\t\t\t\"mfg-play\",\n\t\t\t\"mfg-pause\",\n\t\t\t\"mfg-stop\",\n\t\t\t\"mfg-to-end\",\n\t\t\t\"mfg-to-start\",\n\t\t\t\"mfg-fast-forward\",\n\t\t\t\"mfg-fast-backward\",\n\t\t\t\"mfg-trophy\",\n\t\t\t\"mfg-monitor\",\n\t\t\t\"mfg-tablet\",\n\t\t\t\"mfg-mobile\",\n\t\t\t\"mfg-data-science\",\n\t\t\t\"mfg-data-science-inv\",\n\t\t\t\"mfg-inbox\",\n\t\t\t\"mfg-globe\",\n\t\t\t\"mfg-globe-inv\",\n\t\t\t\"mfg-flash\",\n\t\t\t\"mfg-cloud\",\n\t\t\t\"mfg-coverflow\",\n\t\t\t\"mfg-coverflow-empty\",\n\t\t\t\"mfg-math\",\n\t\t\t\"mfg-math-circled\",\n\t\t\t\"mfg-math-circled-empty\",\n\t\t\t\"mfg-paper-plane\",\n\t\t\t\"mfg-paper-plane-alt\",\n\t\t\t\"mfg-paper-plane-alt2\",\n\t\t\t\"mfg-fontsize\",\n\t\t\t\"mfg-color-adjust\",\n\t\t\t\"mfg-fire\",\n\t\t\t\"mfg-chart-bar\",\n\t\t\t\"mfg-hdd\",\n\t\t\t\"mfg-connected-object\",\n\t\t\t\"mfg-ruler\",\n\t\t\t\"mfg-vector\",\n\t\t\t\"mfg-vector-pencil\",\n\t\t\t\"mfg-at\",\n\t\t\t\"mfg-hash\",\n\t\t\t\"mfg-female\",\n\t\t\t\"mfg-male\",\n\t\t\t\"mfg-spread\",\n\t\t\t\"mfg-king\",\n\t\t\t\"mfg-anchor\",\n\t\t\t\"mfg-joystick\",\n\t\t\t\"mfg-spinner1\",\n\t\t\t\"mfg-spinner2\",\n\t\t\t\"mfg-github\",\n\t\t\t\"mfg-github-circled\",\n\t\t\t\"mfg-github-circled-alt\",\n\t\t\t\"mfg-github-circled-alt2\",\n\t\t\t\"mfg-twitter\",\n\t\t\t\"mfg-twitter-circled\",\n\t\t\t\"mfg-facebook\",\n\t\t\t\"mfg-facebook-circled\",\n\t\t\t\"mfg-gplus\",\n\t\t\t\"mfg-gplus-circled\",\n\t\t\t\"mfg-linkedin\",\n\t\t\t\"mfg-linkedin-circled\",\n\t\t\t\"mfg-dribbble\",\n\t\t\t\"mfg-dribbble-circled\",\n\t\t\t\"mfg-instagram\",\n\t\t\t\"mfg-instagram-circled\",\n\t\t\t\"mfg-soundcloud\",\n\t\t\t\"mfg-soundcloud-circled\",\n\t\t\t\"mfg-mfg-logo\",\n\t\t\t\"mfg-right\",\n\t\t\t\"mi-earth\",\n\t\t\t\"mi-clock\",\n\t\t\t\"mi-minus\",\n\t\t\t\"mi-plus\",\n\t\t\t\"mi-cancel\",\n\t\t\t\"mi-question\",\n\t\t\t\"mi-comment\",\n\t\t\t\"mi-chat\",\n\t\t\t\"mi-speaker\",\n\t\t\t\"mi-heart\",\n\t\t\t\"mi-list\",\n\t\t\t\"mi-edit\",\n\t\t\t\"mi-trash\",\n\t\t\t\"mi-briefcase\",\n\t\t\t\"mi-newspaper\",\n\t\t\t\"mi-calendar\",\n\t\t\t\"mi-inbox\",\n\t\t\t\"mi-facebook\",\n\t\t\t\"mi-google-plus\",\n\t\t\t\"mi-instagram\",\n\t\t\t\"mi-contrast\",\n\t\t\t\"mi-brightness\",\n\t\t\t\"mi-user\",\n\t\t\t\"mi-users\",\n\t\t\t\"mi-sent\",\n\t\t\t\"mi-archive\",\n\t\t\t\"mi-desktop\",\n\t\t\t\"mi-reply\",\n\t\t\t\"mi-popup\",\n\t\t\t\"mi-grid\",\n\t\t\t\"mi-email\",\n\t\t\t\"mi-tag\",\n\t\t\t\"mi-film\",\n\t\t\t\"mi-share\",\n\t\t\t\"mi-picture\",\n\t\t\t\"mi-frame\",\n\t\t\t\"mi-wand\",\n\t\t\t\"mi-mobile\",\n\t\t\t\"mi-crop\",\n\t\t\t\"mi-marquee\",\n\t\t\t\"mi-locked\",\n\t\t\t\"mi-pin\",\n\t\t\t\"mi-zoom-in\",\n\t\t\t\"mi-zoom-out\",\n\t\t\t\"mi-search\",\n\t\t\t\"mi-home\",\n\t\t\t\"mi-cart\",\n\t\t\t\"mi-camera\",\n\t\t\t\"mi-compass\",\n\t\t\t\"mi-cloud\",\n\t\t\t\"mk-aboveground-rail\",\n\t\t\t\"mk-warehouse\",\n\t\t\t\"mk-airport\",\n\t\t\t\"mk-art-gallery\",\n\t\t\t\"mk-bar\",\n\t\t\t\"mk-baseball\",\n\t\t\t\"mk-basketball\",\n\t\t\t\"mk-beer\",\n\t\t\t\"mk-belowground-rail\",\n\t\t\t\"mk-bicycle\",\n\t\t\t\"mk-bus\",\n\t\t\t\"mk-cafe\",\n\t\t\t\"mk-campsite\",\n\t\t\t\"mk-cemetery\",\n\t\t\t\"mk-cinema\",\n\t\t\t\"mk-college\",\n\t\t\t\"mk-commerical-building\",\n\t\t\t\"mk-credit-card\",\n\t\t\t\"mk-cricket\",\n\t\t\t\"mk-embassy\",\n\t\t\t\"mk-fast-food\",\n\t\t\t\"mk-ferry\",\n\t\t\t\"mk-fire-station\",\n\t\t\t\"mk-football\",\n\t\t\t\"mk-fuel\",\n\t\t\t\"mk-garden\",\n\t\t\t\"mk-giraffe\",\n\t\t\t\"mk-golf\",\n\t\t\t\"mk-grocery-store\",\n\t\t\t\"mk-harbor\",\n\t\t\t\"mk-heliport\",\n\t\t\t\"mk-airfield\",\n\t\t\t\"mk-industrial-building\",\n\t\t\t\"mk-library\",\n\t\t\t\"mk-lodging\",\n\t\t\t\"mk-london-underground\",\n\t\t\t\"mk-minefield\",\n\t\t\t\"mk-monument\",\n\t\t\t\"mk-museum\",\n\t\t\t\"mk-pharmacy\",\n\t\t\t\"mk-pitch\",\n\t\t\t\"mk-police\",\n\t\t\t\"mk-post\",\n\t\t\t\"mk-prison\",\n\t\t\t\"mk-rail\",\n\t\t\t\"mk-religious-christian\",\n\t\t\t\"mk-religious-islam\",\n\t\t\t\"mk-religious-jewish\",\n\t\t\t\"mk-restaurant\",\n\t\t\t\"mk-roadblock\",\n\t\t\t\"mk-school\",\n\t\t\t\"mk-shop\",\n\t\t\t\"mk-skiing\",\n\t\t\t\"mk-soccer\",\n\t\t\t\"mk-swimming\",\n\t\t\t\"mk-tennis\",\n\t\t\t\"mk-theatre\",\n\t\t\t\"mk-toilet\",\n\t\t\t\"mk-town-hall\",\n\t\t\t\"mk-trash\",\n\t\t\t\"mk-tree-1\",\n\t\t\t\"mk-tree-2\",\n\t\t\t\"mk-hospital\",\n\t\t\t\"mm-3d\",\n\t\t\t\"mm-without2\",\n\t\t\t\"mm-battery17\",\n\t\t\t\"mm-burn\",\n\t\t\t\"mm-camera22\",\n\t\t\t\"mm-camera25\",\n\t\t\t\"mm-cinema4\",\n\t\t\t\"mm-circular15\",\n\t\t\t\"mm-compact\",\n\t\t\t\"mm-contacts2\",\n\t\t\t\"mm-drawing2\",\n\t\t\t\"mm-electronic2\",\n\t\t\t\"mm-games1\",\n\t\t\t\"mm-games2\",\n\t\t\t\"mm-graphical\",\n\t\t\t\"mm-headphones1\",\n\t\t\t\"mm-headphones5\",\n\t\t\t\"mm-hearing1\",\n\t\t\t\"mm-laptop7\",\n\t\t\t\"mm-media13\",\n\t\t\t\"mm-media14\",\n\t\t\t\"mm-media15\",\n\t\t\t\"mm-media16\",\n\t\t\t\"mm-media17\",\n\t\t\t\"mm-mic2\",\n\t\t\t\"mm-mobile8\",\n\t\t\t\"mm-3d1\",\n\t\t\t\"mm-musical8\",\n\t\t\t\"mm-nearly\",\n\t\t\t\"mm-old12\",\n\t\t\t\"mm-pc\",\n\t\t\t\"mm-pendrive1\",\n\t\t\t\"mm-phone21\",\n\t\t\t\"mm-phone22\",\n\t\t\t\"mm-photo11\",\n\t\t\t\"mm-photo9\",\n\t\t\t\"mm-photograms\",\n\t\t\t\"mm-photos\",\n\t\t\t\"mm-piano2\",\n\t\t\t\"mm-radar4\",\n\t\t\t\"mm-radiator\",\n\t\t\t\"mm-radiocassette\",\n\t\t\t\"mm-remote1\",\n\t\t\t\"mm-remote4\",\n\t\t\t\"mm-smartphone5\",\n\t\t\t\"mm-sound7\",\n\t\t\t\"mm-speaker5\",\n\t\t\t\"mm-stand\",\n\t\t\t\"mm-super1\",\n\t\t\t\"mm-telephone4\",\n\t\t\t\"mm-vintage3\",\n\t\t\t\"mm-multimedia3\",\n\t\t\t\"mn-gowalla\",\n\t\t\t\"mn-stackoverflow\",\n\t\t\t\"mn-fivehundredpx\",\n\t\t\t\"mn-stackoverflow-2\",\n\t\t\t\"mn-fivehundredpx-2\",\n\t\t\t\"mn-foodspotting\",\n\t\t\t\"mn-friendsfeed\",\n\t\t\t\"mn-foodspotting-2\",\n\t\t\t\"mn-grooveshark\",\n\t\t\t\"mn-photobucket\",\n\t\t\t\"mn-designfloat\",\n\t\t\t\"mn-stumbleupon\",\n\t\t\t\"mn-twitterbird\",\n\t\t\t\"mn-twitterbird-2\",\n\t\t\t\"mn-stumbleupon-2\",\n\t\t\t\"mn-friendstar\",\n\t\t\t\"mn-photobucket-2\",\n\t\t\t\"mn-friendsfeed-2\",\n\t\t\t\"mn-feedburner\",\n\t\t\t\"mn-designfloat-2\",\n\t\t\t\"mn-googletalk\",\n\t\t\t\"mn-slideshare\",\n\t\t\t\"mn-gowallapin\",\n\t\t\t\"mn-deviantart\",\n\t\t\t\"mn-soundcloud\",\n\t\t\t\"mn-designbump\",\n\t\t\t\"mn-googlebuzz\",\n\t\t\t\"mn-technorati\",\n\t\t\t\"mn-foursquare\",\n\t\t\t\"mn-grooveshark-2\",\n\t\t\t\"mn-googleplus\",\n\t\t\t\"mn-googleplus-2\",\n\t\t\t\"mn-gowallapin-2\",\n\t\t\t\"mn-instagram\",\n\t\t\t\"mn-yahoobuzz\",\n\t\t\t\"mn-delicious\",\n\t\t\t\"mn-wordpress\",\n\t\t\t\"mn-technorati-2\",\n\t\t\t\"mn-wikipedia\",\n\t\t\t\"mn-soundcloud-2\",\n\t\t\t\"mn-slideshare-2\",\n\t\t\t\"mn-githubalt\",\n\t\t\t\"mn-googletalk-2\",\n\t\t\t\"mn-googlebuzz-2\",\n\t\t\t\"mn-friendstar-2\",\n\t\t\t\"mn-foursquare-2\",\n\t\t\t\"mn-posterous\",\n\t\t\t\"mn-feedburner-2\",\n\t\t\t\"mn-deviantart-2\",\n\t\t\t\"mn-designbump-2\",\n\t\t\t\"mn-pinterest\",\n\t\t\t\"mn-sharethis\",\n\t\t\t\"mn-pinterest-2\",\n\t\t\t\"mn-instagram-2\",\n\t\t\t\"mn-githubalt-2\",\n\t\t\t\"mn-yahoobuzz-2\",\n\t\t\t\"mn-wordpress-2\",\n\t\t\t\"mn-wikipedia-2\",\n\t\t\t\"mn-facebook\",\n\t\t\t\"mn-emberapp\",\n\t\t\t\"mn-coroflot\",\n\t\t\t\"mn-appstore\",\n\t\t\t\"mn-delicious-2\",\n\t\t\t\"mn-sharethis-2\",\n\t\t\t\"mn-slashdot\",\n\t\t\t\"mn-posterous-2\",\n\t\t\t\"mn-icondock\",\n\t\t\t\"mn-identica\",\n\t\t\t\"mn-newsvine\",\n\t\t\t\"mn-imessage\",\n\t\t\t\"mn-linkedin\",\n\t\t\t\"mn-metacafe\",\n\t\t\t\"mn-mobileme\",\n\t\t\t\"mn-aboutme\",\n\t\t\t\"mn-mugmug\",\n\t\t\t\"mn-myspace\",\n\t\t\t\"mn-youtube\",\n\t\t\t\"mn-dribble\",\n\t\t\t\"mn-digg\",\n\t\t\t\"mn-blogger\",\n\t\t\t\"mn-gowalla-2\",\n\t\t\t\"mn-viddler\",\n\t\t\t\"mn-behance\",\n\t\t\t\"mn-coroflot-2\",\n\t\t\t\"mn-podcast\",\n\t\t\t\"mn-appstore-2\",\n\t\t\t\"mn-emberapp-2\",\n\t\t\t\"mn-windows\",\n\t\t\t\"mn-facebook-2\",\n\t\t\t\"mn-squidoo\",\n\t\t\t\"mn-slashdot-2\",\n\t\t\t\"mn-spotify\",\n\t\t\t\"mn-newsvine-2\",\n\t\t\t\"mn-icondock-2\",\n\t\t\t\"mn-identica-2\",\n\t\t\t\"mn-imessage-2\",\n\t\t\t\"mn-mobileme-2\",\n\t\t\t\"mn-metacafe-2\",\n\t\t\t\"mn-linkedin-2\",\n\t\t\t\"mn-amazon\",\n\t\t\t\"mn-meetup\",\n\t\t\t\"mn-tumblr\",\n\t\t\t\"mn-digg-2\",\n\t\t\t\"mn-youtube-2\",\n\t\t\t\"mn-dribble-2\",\n\t\t\t\"mn-windows-2\",\n\t\t\t\"mn-viddler-2\",\n\t\t\t\"mn-github\",\n\t\t\t\"mn-daytum\",\n\t\t\t\"mn-lastfm\",\n\t\t\t\"mn-scribd\",\n\t\t\t\"mn-itunes\",\n\t\t\t\"mn-squidoo-2\",\n\t\t\t\"mn-spotify-2\",\n\t\t\t\"mn-mugmug-2\",\n\t\t\t\"mn-picasa\",\n\t\t\t\"mn-forrst\",\n\t\t\t\"mn-podcast-2\",\n\t\t\t\"mn-stackoverflow-3\",\n\t\t\t\"mn-behance-2\",\n\t\t\t\"mn-reddit\",\n\t\t\t\"mn-gowalla-3\",\n\t\t\t\"mn-myspace-2\",\n\t\t\t\"mn-aboutme-2\",\n\t\t\t\"mn-paypal\",\n\t\t\t\"mn-fivehundredpx-3\",\n\t\t\t\"mn-blogger-2\",\n\t\t\t\"mn-flickr\",\n\t\t\t\"mn-mrwong\",\n\t\t\t\"mn-drupal\",\n\t\t\t\"mn-email\",\n\t\t\t\"mn-meetup-2\",\n\t\t\t\"mn-mrwong-2\",\n\t\t\t\"mn-quora\",\n\t\t\t\"mn-paypal-2\",\n\t\t\t\"mn-picasa-2\",\n\t\t\t\"mn-amazon-2\",\n\t\t\t\"mn-github-2\",\n\t\t\t\"mn-reddit-2\",\n\t\t\t\"mn-scribd-2\",\n\t\t\t\"mn-foodspotting-3\",\n\t\t\t\"mn-forrst-2\",\n\t\t\t\"mn-itunes-2\",\n\t\t\t\"mn-hyves\",\n\t\t\t\"mn-flickr-2\",\n\t\t\t\"mn-tumblr-2\",\n\t\t\t\"mn-yahoo\",\n\t\t\t\"mn-drupal-2\",\n\t\t\t\"mn-heart\",\n\t\t\t\"mn-lastfm-2\",\n\t\t\t\"mn-skype\",\n\t\t\t\"mn-vimeo\",\n\t\t\t\"mn-addme\",\n\t\t\t\"mn-daytum-2\",\n\t\t\t\"mn-apple\",\n\t\t\t\"mn-yahoo-2\",\n\t\t\t\"mn-ebay\",\n\t\t\t\"mn-photobucket-3\",\n\t\t\t\"mn-quora-2\",\n\t\t\t\"mn-digg-3\",\n\t\t\t\"mn-mixx\",\n\t\t\t\"mn-twitterbird-3\",\n\t\t\t\"mn-email-2\",\n\t\t\t\"mn-addme-2\",\n\t\t\t\"mn-vimeo-2\",\n\t\t\t\"mn-stumbleupon-3\",\n\t\t\t\"mn-gdgt\",\n\t\t\t\"mn-grooveshark-3\",\n\t\t\t\"mn-etsy\",\n\t\t\t\"mn-skype-2\",\n\t\t\t\"mn-xing\",\n\t\t\t\"mn-virb\",\n\t\t\t\"mn-apple-2\",\n\t\t\t\"mn-friendsfeed-3\",\n\t\t\t\"mn-designfloat-3\",\n\t\t\t\"mn-hyves-2\",\n\t\t\t\"mn-blip\",\n\t\t\t\"mn-bing\",\n\t\t\t\"mn-yelp\",\n\t\t\t\"mn-bebo\",\n\t\t\t\"mn-heart-2\",\n\t\t\t\"mn-blip-2\",\n\t\t\t\"mn-aol\",\n\t\t\t\"mn-friendstar-3\",\n\t\t\t\"mn-digg-4\",\n\t\t\t\"mn-yelp-2\",\n\t\t\t\"mn-rss\",\n\t\t\t\"mn-xing-2\",\n\t\t\t\"mn-googlebuzz-3\",\n\t\t\t\"mn-virb-2\",\n\t\t\t\"mn-deviantart-3\",\n\t\t\t\"mn-etsy-2\",\n\t\t\t\"mn-foursquare-3\",\n\t\t\t\"mn-technorati-3\",\n\t\t\t\"mn-bing-2\",\n\t\t\t\"mn-googletalk-3\",\n\t\t\t\"mn-designbump-3\",\n\t\t\t\"mn-qik\",\n\t\t\t\"mn-gdgt-2\",\n\t\t\t\"mn-googleplus-3\",\n\t\t\t\"mn-gowallapin-3\",\n\t\t\t\"mn-icq\",\n\t\t\t\"mn-soundcloud-3\",\n\t\t\t\"mn-bebo-2\",\n\t\t\t\"mn-msn\",\n\t\t\t\"mn-feedburner-3\",\n\t\t\t\"mn-slideshare-3\",\n\t\t\t\"mn-mixx-2\",\n\t\t\t\"mn-ebay-2\",\n\t\t\t\"mn-wordpress-3\",\n\t\t\t\"mn-yahoobuzz-3\",\n\t\t\t\"mn-qik-2\",\n\t\t\t\"mn-githubalt-3\",\n\t\t\t\"mn-delicious-3\",\n\t\t\t\"mn-sharethis-3\",\n\t\t\t\"mn-rss-2\",\n\t\t\t\"mn-instagram-3\",\n\t\t\t\"mn-icq-2\",\n\t\t\t\"mn-pinterest-3\",\n\t\t\t\"mn-aol-2\",\n\t\t\t\"mn-posterous-3\",\n\t\t\t\"mn-msn-2\",\n\t\t\t\"mn-wikipedia-3\",\n\t\t\t\"mn-linkedin-3\",\n\t\t\t\"mn-emberapp-3\",\n\t\t\t\"mn-slashdot-3\",\n\t\t\t\"mn-icondock-3\",\n\t\t\t\"mn-identica-3\",\n\t\t\t\"mn-imessage-3\",\n\t\t\t\"mn-mobileme-3\",\n\t\t\t\"mn-newsvine-3\",\n\t\t\t\"mn-metacafe-3\",\n\t\t\t\"mn-appstore-3\",\n\t\t\t\"mn-facebook-3\",\n\t\t\t\"mn-coroflot-3\",\n\t\t\t\"mn-blogger-3\",\n\t\t\t\"mn-digg-5\",\n\t\t\t\"mn-squidoo-3\",\n\t\t\t\"mn-spotify-3\",\n\t\t\t\"mn-mugmug-3\",\n\t\t\t\"mn-aboutme-3\",\n\t\t\t\"mn-viddler-3\",\n\t\t\t\"mn-myspace-3\",\n\t\t\t\"mn-windows-3\",\n\t\t\t\"mn-dribble-3\",\n\t\t\t\"mn-behance-3\",\n\t\t\t\"mn-podcast-3\",\n\t\t\t\"mn-youtube-3\",\n\t\t\t\"mn-picasa-3\",\n\t\t\t\"mn-tumblr-3\",\n\t\t\t\"mn-forrst-3\",\n\t\t\t\"mn-meetup-3\",\n\t\t\t\"mn-paypal-3\",\n\t\t\t\"mn-lastfm-3\",\n\t\t\t\"mn-itunes-3\",\n\t\t\t\"mn-flickr-3\",\n\t\t\t\"mn-daytum-3\",\n\t\t\t\"mn-drupal-3\",\n\t\t\t\"mn-amazon-3\",\n\t\t\t\"mn-reddit-3\",\n\t\t\t\"mn-scribd-3\",\n\t\t\t\"mn-mrwong-3\",\n\t\t\t\"mn-github-3\",\n\t\t\t\"mn-email-3\",\n\t\t\t\"mn-apple-3\",\n\t\t\t\"mn-addme-3\",\n\t\t\t\"mn-yahoo-3\",\n\t\t\t\"mn-vimeo-3\",\n\t\t\t\"mn-skype-3\",\n\t\t\t\"mn-heart-3\",\n\t\t\t\"mn-quora-3\",\n\t\t\t\"mn-hyves-3\",\n\t\t\t\"mn-bebo-3\",\n\t\t\t\"mn-virb-3\",\n\t\t\t\"mn-blip-3\",\n\t\t\t\"mn-digg-6\",\n\t\t\t\"mn-ebay-3\",\n\t\t\t\"mn-mixx-3\",\n\t\t\t\"mn-gdgt-3\",\n\t\t\t\"mn-bing-3\",\n\t\t\t\"mn-yelp-3\",\n\t\t\t\"mn-etsy-3\",\n\t\t\t\"mn-xing-3\",\n\t\t\t\"mn-rss-3\",\n\t\t\t\"mn-icq-3\",\n\t\t\t\"mn-msn-3\",\n\t\t\t\"mn-qik-3\",\n\t\t\t\"mn-aol-3\",\n\t\t\t\"mo-3g1\",\n\t\t\t\"mo-write5\",\n\t\t\t\"mo-4gb\",\n\t\t\t\"mo-add76\",\n\t\t\t\"mo-arroba5\",\n\t\t\t\"mo-arrows70\",\n\t\t\t\"mo-auricular10\",\n\t\t\t\"mo-auricular11\",\n\t\t\t\"mo-auricular7\",\n\t\t\t\"mo-auricular8\",\n\t\t\t\"mo-auricular9\",\n\t\t\t\"mo-battery89\",\n\t\t\t\"mo-bell19\",\n\t\t\t\"mo-bluetooth11\",\n\t\t\t\"mo-call18\",\n\t\t\t\"mo-call19\",\n\t\t\t\"mo-calling1\",\n\t\t\t\"mo-camera55\",\n\t\t\t\"mo-card19\",\n\t\t\t\"mo-card20\",\n\t\t\t\"mo-card21\",\n\t\t\t\"mo-card22\",\n\t\t\t\"mo-chat30\",\n\t\t\t\"mo-chat31\",\n\t\t\t\"mo-chat32\",\n\t\t\t\"mo-chat33\",\n\t\t\t\"mo-chatting1\",\n\t\t\t\"mo-code15\",\n\t\t\t\"mo-cogwheel12\",\n\t\t\t\"mo-connection12\",\n\t\t\t\"mo-contact9\",\n\t\t\t\"mo-electric40\",\n\t\t\t\"mo-electric41\",\n\t\t\t\"mo-electrical3\",\n\t\t\t\"mo-email30\",\n\t\t\t\"mo-emails1\",\n\t\t\t\"mo-exchanging\",\n\t\t\t\"mo-finger7\",\n\t\t\t\"mo-four43\",\n\t\t\t\"mo-full23\",\n\t\t\t\"mo-full24\",\n\t\t\t\"mo-gps8\",\n\t\t\t\"mo-hand96\",\n\t\t\t\"mo-hand97\",\n\t\t\t\"mo-hanging7\",\n\t\t\t\"mo-home91\",\n\t\t\t\"mo-hour\",\n\t\t\t\"mo-image62\",\n\t\t\t\"mo-incoming10\",\n\t\t\t\"mo-incoming11\",\n\t\t\t\"mo-incoming12\",\n\t\t\t\"mo-incoming13\",\n\t\t\t\"mo-incoming9\",\n\t\t\t\"mo-listening2\",\n\t\t\t\"mo-locked5\",\n\t\t\t\"mo-locked6\",\n\t\t\t\"mo-low22\",\n\t\t\t\"mo-magnifier15\",\n\t\t\t\"mo-male163\",\n\t\t\t\"mo-mobile103\",\n\t\t\t\"mo-mobile104\",\n\t\t\t\"mo-mobile108\",\n\t\t\t\"mo-mobile110\",\n\t\t\t\"mo-mobile113\",\n\t\t\t\"mo-mobile114\",\n\t\t\t\"mo-mobile115\",\n\t\t\t\"mo-mobile116\",\n\t\t\t\"mo-mobile117\",\n\t\t\t\"mo-mobile120\",\n\t\t\t\"mo-mobile121\",\n\t\t\t\"mo-mobile122\",\n\t\t\t\"mo-mobile124\",\n\t\t\t\"mo-mobile125\",\n\t\t\t\"mo-mobile126\",\n\t\t\t\"mo-mobile127\",\n\t\t\t\"mo-mobile128\",\n\t\t\t\"mo-mobile129\",\n\t\t\t\"mo-mobile130\",\n\t\t\t\"mo-mobile131\",\n\t\t\t\"mo-mobile132\",\n\t\t\t\"mo-mobile134\",\n\t\t\t\"mo-mobile135\",\n\t\t\t\"mo-mobile136\",\n\t\t\t\"mo-mobile137\",\n\t\t\t\"mo-mobile138\",\n\t\t\t\"mo-mobile139\",\n\t\t\t\"mo-mobile140\",\n\t\t\t\"mo-mobile141\",\n\t\t\t\"mo-mobile142\",\n\t\t\t\"mo-mobile143\",\n\t\t\t\"mo-mobile146\",\n\t\t\t\"mo-mobile147\",\n\t\t\t\"mo-mobile148\",\n\t\t\t\"mo-mobile149\",\n\t\t\t\"mo-mobile151\",\n\t\t\t\"mo-mobile152\",\n\t\t\t\"mo-mobile153\",\n\t\t\t\"mo-mobile154\",\n\t\t\t\"mo-mobile158\",\n\t\t\t\"mo-mobile159\",\n\t\t\t\"mo-4g1\",\n\t\t\t\"mo-mobile162\",\n\t\t\t\"mo-mobile164\",\n\t\t\t\"mo-mobile166\",\n\t\t\t\"mo-mobile168\",\n\t\t\t\"mo-mobile169\",\n\t\t\t\"mo-mobile171\",\n\t\t\t\"mo-mobile172\",\n\t\t\t\"mo-mobile44\",\n\t\t\t\"mo-mobile45\",\n\t\t\t\"mo-mobile47\",\n\t\t\t\"mo-mobile48\",\n\t\t\t\"mo-mobile49\",\n\t\t\t\"mo-mobile50\",\n\t\t\t\"mo-mobile51\",\n\t\t\t\"mo-mobile52\",\n\t\t\t\"mo-mobile53\",\n\t\t\t\"mo-mobile55\",\n\t\t\t\"mo-mobile56\",\n\t\t\t\"mo-mobile57\",\n\t\t\t\"mo-mobile58\",\n\t\t\t\"mo-mobile60\",\n\t\t\t\"mo-mobile62\",\n\t\t\t\"mo-mobile63\",\n\t\t\t\"mo-mobile64\",\n\t\t\t\"mo-mobile65\",\n\t\t\t\"mo-mobile66\",\n\t\t\t\"mo-mobile67\",\n\t\t\t\"mo-mobile68\",\n\t\t\t\"mo-mobile69\",\n\t\t\t\"mo-mobile70\",\n\t\t\t\"mo-mobile71\",\n\t\t\t\"mo-mobile72\",\n\t\t\t\"mo-mobile73\",\n\t\t\t\"mo-mobile74\",\n\t\t\t\"mo-mobile75\",\n\t\t\t\"mo-mobile76\",\n\t\t\t\"mo-mobile77\",\n\t\t\t\"mo-mobile78\",\n\t\t\t\"mo-mobile80\",\n\t\t\t\"mo-mobile81\",\n\t\t\t\"mo-mobile82\",\n\t\t\t\"mo-mobile83\",\n\t\t\t\"mo-mobile84\",\n\t\t\t\"mo-mobile86\",\n\t\t\t\"mo-mobile87\",\n\t\t\t\"mo-mobile90\",\n\t\t\t\"mo-mobile91\",\n\t\t\t\"mo-mobile92\",\n\t\t\t\"mo-mobile93\",\n\t\t\t\"mo-mobile94\",\n\t\t\t\"mo-mobile95\",\n\t\t\t\"mo-musical64\",\n\t\t\t\"mo-mute11\",\n\t\t\t\"mo-mute12\",\n\t\t\t\"mo-no46\",\n\t\t\t\"mo-no47\",\n\t\t\t\"mo-no48\",\n\t\t\t\"mo-no49\",\n\t\t\t\"mo-outgoing4\",\n\t\t\t\"mo-outgoing5\",\n\t\t\t\"mo-outgoing6\",\n\t\t\t\"mo-password2\",\n\t\t\t\"mo-phone77\",\n\t\t\t\"mo-phone79\",\n\t\t\t\"mo-phone80\",\n\t\t\t\"mo-phone81\",\n\t\t\t\"mo-plug14\",\n\t\t\t\"mo-plug15\",\n\t\t\t\"mo-power52\",\n\t\t\t\"mo-protected3\",\n\t\t\t\"mo-protected4\",\n\t\t\t\"mo-qr4\",\n\t\t\t\"mo-question26\",\n\t\t\t\"mo-retweet4\",\n\t\t\t\"mo-retweet5\",\n\t\t\t\"mo-ring13\",\n\t\t\t\"mo-rotating14\",\n\t\t\t\"mo-sad10\",\n\t\t\t\"mo-security25\",\n\t\t\t\"mo-sending1\",\n\t\t\t\"mo-show\",\n\t\t\t\"mo-signal35\",\n\t\t\t\"mo-signal36\",\n\t\t\t\"mo-signal37\",\n\t\t\t\"mo-silence\",\n\t\t\t\"mo-star103\",\n\t\t\t\"mo-symbol3\",\n\t\t\t\"mo-two149\",\n\t\t\t\"mo-unlocked13\",\n\t\t\t\"mo-unlocked14\",\n\t\t\t\"mo-unlocking\",\n\t\t\t\"mo-unlocking1\",\n\t\t\t\"mo-up29\",\n\t\t\t\"mo-up30\",\n\t\t\t\"mo-usb22\",\n\t\t\t\"mo-verified5\",\n\t\t\t\"mo-vibrant\",\n\t\t\t\"mo-voice16\",\n\t\t\t\"mo-mobile161\",\n\t\t\t\"moon-half-moon19\",\n\t\t\t\"moon-moon-new31\",\n\t\t\t\"moon-moon27\",\n\t\t\t\"moon-moon28\",\n\t\t\t\"moon-moon29\",\n\t\t\t\"moon-moon30\",\n\t\t\t\"moon-moon31\",\n\t\t\t\"moon-moon32\",\n\t\t\t\"moon-moon33\",\n\t\t\t\"moon-moon34\",\n\t\t\t\"moon-moon35\",\n\t\t\t\"moon-moon36\",\n\t\t\t\"moon-moon37\",\n\t\t\t\"moon-moon26\",\n\t\t\t\"moon-moon39\",\n\t\t\t\"moon-moon40\",\n\t\t\t\"moon-moon41\",\n\t\t\t\"moon-moon42\",\n\t\t\t\"moon-moon43\",\n\t\t\t\"moon-moon44\",\n\t\t\t\"moon-moon45\",\n\t\t\t\"moon-moon46\",\n\t\t\t\"moon-moon47\",\n\t\t\t\"moon-moon48\",\n\t\t\t\"moon-moon49\",\n\t\t\t\"moon-moon50\",\n\t\t\t\"moon-moon38\",\n\t\t\t\"mp-search-1\",\n\t\t\t\"mp-youtube\",\n\t\t\t\"mp-heart-1\",\n\t\t\t\"mp-star-1\",\n\t\t\t\"mp-user-1\",\n\t\t\t\"mp-user-woman\",\n\t\t\t\"mp-user-pair\",\n\t\t\t\"mp-video-alt\",\n\t\t\t\"mp-videocam\",\n\t\t\t\"mp-videocam-alt\",\n\t\t\t\"mp-camera-1\",\n\t\t\t\"mp-th\",\n\t\t\t\"mp-th-list\",\n\t\t\t\"mp-ok\",\n\t\t\t\"mp-cancel-1\",\n\t\t\t\"mp-cancel-circle\",\n\t\t\t\"mp-plus-1\",\n\t\t\t\"mp-home-1\",\n\t\t\t\"mp-lock-1\",\n\t\t\t\"mp-lock-open-1\",\n\t\t\t\"mp-eye-1\",\n\t\t\t\"mp-tag-1\",\n\t\t\t\"mp-thumbs-up-1\",\n\t\t\t\"mp-thumbs-down-1\",\n\t\t\t\"mp-download-1\",\n\t\t\t\"mp-export-1\",\n\t\t\t\"mp-pencil-1\",\n\t\t\t\"mp-pencil-alt\",\n\t\t\t\"mp-edit\",\n\t\t\t\"mp-chat-1\",\n\t\t\t\"mp-print-1\",\n\t\t\t\"mp-bell-1\",\n\t\t\t\"mp-attention-1\",\n\t\t\t\"mp-info-1\",\n\t\t\t\"mp-question\",\n\t\t\t\"mp-location-1\",\n\t\t\t\"mp-trash-1\",\n\t\t\t\"mp-doc-1\",\n\t\t\t\"mp-article\",\n\t\t\t\"mp-article-alt\",\n\t\t\t\"mp-rss-1\",\n\t\t\t\"mp-wrench\",\n\t\t\t\"mp-basket-1\",\n\t\t\t\"mp-basket-alt\",\n\t\t\t\"mp-calendar-1\",\n\t\t\t\"mp-mail-1\",\n\t\t\t\"mp-volume-off\",\n\t\t\t\"mp-volume-down\",\n\t\t\t\"mp-volume-up\",\n\t\t\t\"mp-bullhorn\",\n\t\t\t\"mp-clock-1\",\n\t\t\t\"mp-clock-alt\",\n\t\t\t\"mp-stop-1\",\n\t\t\t\"mp-resize-full-1\",\n\t\t\t\"mp-resize-small-1\",\n\t\t\t\"mp-zoom-in\",\n\t\t\t\"mp-zoom-out\",\n\t\t\t\"mp-popup-1\",\n\t\t\t\"mp-down-dir-1\",\n\t\t\t\"mp-left-dir-1\",\n\t\t\t\"mp-right-dir-1\",\n\t\t\t\"mp-up-dir-1\",\n\t\t\t\"mp-down-1\",\n\t\t\t\"mp-up-1\",\n\t\t\t\"mp-cw-1\",\n\t\t\t\"mp-signal-1\",\n\t\t\t\"mp-award\",\n\t\t\t\"mp-mobile-1\",\n\t\t\t\"mp-mobile-alt\",\n\t\t\t\"mp-tablet\",\n\t\t\t\"mp-ipod\",\n\t\t\t\"mp-cd-1\",\n\t\t\t\"mp-grid\",\n\t\t\t\"mp-book-1\",\n\t\t\t\"mp-easel\",\n\t\t\t\"mp-globe-1\",\n\t\t\t\"mp-chart\",\n\t\t\t\"mp-chart-bar-1\",\n\t\t\t\"mp-chart-pie-1\",\n\t\t\t\"mp-dollar\",\n\t\t\t\"mp-at\",\n\t\t\t\"mp-colon\",\n\t\t\t\"mp-semicolon\",\n\t\t\t\"mp-squares\",\n\t\t\t\"mp-money\",\n\t\t\t\"mp-facebook-1\",\n\t\t\t\"mp-facebook-rect\",\n\t\t\t\"mp-twitter-1\",\n\t\t\t\"mp-twitter-bird\",\n\t\t\t\"mp-twitter-rect\",\n\t\t\t\"mp-calendar-alt\",\n\t\t\t\"mt-sunrise\",\n\t\t\t\"mt-sun\",\n\t\t\t\"mt-moon\",\n\t\t\t\"mt-sun-2\",\n\t\t\t\"mt-windy\",\n\t\t\t\"mt-wind\",\n\t\t\t\"mt-snowflake\",\n\t\t\t\"mt-cloudy\",\n\t\t\t\"mt-cloud\",\n\t\t\t\"mt-weather\",\n\t\t\t\"mt-weather-2\",\n\t\t\t\"mt-weather-3\",\n\t\t\t\"mt-lines\",\n\t\t\t\"mt-cloud-2\",\n\t\t\t\"mt-lightning\",\n\t\t\t\"mt-lightning-2\",\n\t\t\t\"mt-rainy\",\n\t\t\t\"mt-rainy-2\",\n\t\t\t\"mt-windy-2\",\n\t\t\t\"mt-windy-3\",\n\t\t\t\"mt-snowy\",\n\t\t\t\"mt-snowy-2\",\n\t\t\t\"mt-snowy-3\",\n\t\t\t\"mt-weather-4\",\n\t\t\t\"mt-cloudy-2\",\n\t\t\t\"mt-cloud-3\",\n\t\t\t\"mt-lightning-3\",\n\t\t\t\"mt-sun-3\",\n\t\t\t\"mt-moon-2\",\n\t\t\t\"mt-cloudy-3\",\n\t\t\t\"mt-cloud-4\",\n\t\t\t\"mt-cloud-5\",\n\t\t\t\"mt-lightning-4\",\n\t\t\t\"mt-rainy-3\",\n\t\t\t\"mt-rainy-4\",\n\t\t\t\"mt-windy-4\",\n\t\t\t\"mt-windy-5\",\n\t\t\t\"mt-snowy-4\",\n\t\t\t\"mt-snowy-5\",\n\t\t\t\"mt-weather-5\",\n\t\t\t\"mt-cloudy-4\",\n\t\t\t\"mt-lightning-5\",\n\t\t\t\"mt-thermometer\",\n\t\t\t\"mt-compass\",\n\t\t\t\"mt-none\",\n\t\t\t\"mt-Celsius\",\n\t\t\t\"mt-Fahrenheit\",\n\t\t\t\"oi-pavitra-s-tandon-only-goodness\",\n\t\t\t\"oi-ian-yates-y-fronts\",\n\t\t\t\"oi-pavitra-s-tandon-chat-for-lovers\",\n\t\t\t\"oi-muhamad-bahrul-ulum-log-out\",\n\t\t\t\"oi-muhamad-bahrul-ulum-log-in\",\n\t\t\t\"oi-justin-skull-ribbon\",\n\t\t\t\"oi-justin-burns-skull\",\n\t\t\t\"oi-justin-burns-skull-badge\",\n\t\t\t\"oi-designmodo-settings\",\n\t\t\t\"oi-designmodo-location\",\n\t\t\t\"oi-designmodo-like\",\n\t\t\t\"oi-cole-townsend-pencil\",\n\t\t\t\"oi-cole-townsend-check\",\n\t\t\t\"oi-cole-townsend-chat\",\n\t\t\t\"oi-ian-yates-porridge\",\n\t\t\t\"oi-ian-yates-mr-whippy\",\n\t\t\t\"oi-ian-yates-milk\",\n\t\t\t\"oi-aleks-dorohovich-rocket\",\n\t\t\t\"oi-vincent-gschwindemann-sun\",\n\t\t\t\"oi-vectortuts-pirate-panda\",\n\t\t\t\"oi-sanjit-saha-afro\",\n\t\t\t\"oi-samuel-sosina-command-line\",\n\t\t\t\"oi-quin-robinson-casual-shoe\",\n\t\t\t\"oi-michael-howarth-tardis\",\n\t\t\t\"oi-kenneth-bielinski-timer\",\n\t\t\t\"oi-juan-ortiz-zaforas-plug-f-female\",\n\t\t\t\"oi-juan-ortiz-zaforas-plug-c-female\",\n\t\t\t\"oi-juan-gomez-alzaga-rocking-horse\",\n\t\t\t\"oi-juan-gomez-alzaga-paint-brush\",\n\t\t\t\"oi-juan-gomez-alzaga-leaf\",\n\t\t\t\"oi-juan-gomez-alzaga-bird\",\n\t\t\t\"oi-jeffrey-herrera-beer-mug\",\n\t\t\t\"oi-jack-rugile-anchor\",\n\t\t\t\"oi-ilias-ismanalijev-batman\",\n\t\t\t\"oi-corinne-ducusin-doumbek\",\n\t\t\t\"oi-aleks-dorohovich-triforce\",\n\t\t\t\"oi-steve-debeus-farm\",\n\t\t\t\"oi-patrik-larsson-pokemon\",\n\t\t\t\"oi-patrik-larsson-pakman\",\n\t\t\t\"oi-ordog-zoltan-canon\",\n\t\t\t\"oi-johana-barretto-kitty\",\n\t\t\t\"oi-johana-barretto-kitty-stripy\",\n\t\t\t\"oi-jj-moi-manga-poison\",\n\t\t\t\"oi-jj-moi-manga-eye\",\n\t\t\t\"oi-jj-moi-kneel\",\n\t\t\t\"oi-dom-waters-speedo\",\n\t\t\t\"oi-dom-waters-knife\",\n\t\t\t\"oi-derek-mui-tie\",\n\t\t\t\"oi-derek-mui-invader\",\n\t\t\t\"oi-darren-reay-telephone-box\",\n\t\t\t\"oi-darren-reay-pen-nib\",\n\t\t\t\"oi-arno-hattingh-park\",\n\t\t\t\"oi-anton-boshoff-headset\",\n\t\t\t\"oi-joshua-barker-landscape\",\n\t\t\t\"oi-joshua-barker-house\",\n\t\t\t\"oi-jory-raphael-cart\",\n\t\t\t\"oi-johan-manuel-hernandez-record-player\",\n\t\t\t\"oi-danis-lou-joystick\",\n\t\t\t\"oi-christina-pedersen-walkman\",\n\t\t\t\"oi-christina-pedersen-cassette\",\n\t\t\t\"oi-chris-spittles-unpinned\",\n\t\t\t\"oi-chris-spittles-save\",\n\t\t\t\"oi-chris-spittles-pinned\",\n\t\t\t\"oi-chris-spittles-health\",\n\t\t\t\"oi-chris-spittles-geo-location\",\n\t\t\t\"oi-cesgra-globe\",\n\t\t\t\"oi-matt-hakes-spectacles\",\n\t\t\t\"oi-matt-hakes-moustache\",\n\t\t\t\"oi-ian-yates-creative-commons\",\n\t\t\t\"ow-semantic-web\",\n\t\t\t\"ow-bitcoin-simple\",\n\t\t\t\"ow-opensearch\",\n\t\t\t\"ow-opml\",\n\t\t\t\"ow-ostatus\",\n\t\t\t\"ow-ostatus-simple\",\n\t\t\t\"ow-share\",\n\t\t\t\"ow-share-simple\",\n\t\t\t\"ow-oauth\",\n\t\t\t\"ow-feed\",\n\t\t\t\"ow-feed-simple\",\n\t\t\t\"ow-geo\",\n\t\t\t\"ow-microformats\",\n\t\t\t\"ow-openid\",\n\t\t\t\"ow-open-share\",\n\t\t\t\"ow-open-share-simple\",\n\t\t\t\"ow-activity\",\n\t\t\t\"ow-federated\",\n\t\t\t\"ow-open-web\",\n\t\t\t\"ow-dataportability\",\n\t\t\t\"ow-web-intents\",\n\t\t\t\"ow-xmpp\",\n\t\t\t\"ow-html5\",\n\t\t\t\"ow-css3\",\n\t\t\t\"ow-connectivity\",\n\t\t\t\"ow-semantics\",\n\t\t\t\"ow-opengraph\",\n\t\t\t\"ow-epub\",\n\t\t\t\"ow-qr\",\n\t\t\t\"ow-foaf\",\n\t\t\t\"ow-info-card\",\n\t\t\t\"ow-browserid\",\n\t\t\t\"ow-remote-storage\",\n\t\t\t\"ow-persona\",\n\t\t\t\"ow-odata\",\n\t\t\t\"ow-markdown\",\n\t\t\t\"ow-tosdr\",\n\t\t\t\"ow-device-access\",\n\t\t\t\"ow-multimedia\",\n\t\t\t\"ow-offline-storage\",\n\t\t\t\"ow-apml\",\n\t\t\t\"ow-git\",\n\t\t\t\"ow-webhooks\",\n\t\t\t\"ow-3deffects\",\n\t\t\t\"ow-osi\",\n\t\t\t\"ow-rdf\",\n\t\t\t\"ow-hatom\",\n\t\t\t\"ow-activity-simple\",\n\t\t\t\"ow-hresume\",\n\t\t\t\"ow-hcard-add\",\n\t\t\t\"ow-hcard-download\",\n\t\t\t\"ow-glyph-52\",\n\t\t\t\"ow-glyph-53\",\n\t\t\t\"ow-pubsubhubbub\",\n\t\t\t\"ow-json-ld\",\n\t\t\t\"ow-svg\",\n\t\t\t\"ow-ofl-renaming\",\n\t\t\t\"ow-ofl-selling\",\n\t\t\t\"ow-ofl-embedding\",\n\t\t\t\"ow-glyph-60\",\n\t\t\t\"ow-glyph-61\",\n\t\t\t\"ow-tent\",\n\t\t\t\"ow-copyleft\",\n\t\t\t\"ow-gnu\",\n\t\t\t\"ow-cc\",\n\t\t\t\"ow-cc-by-ofl-attribution\",\n\t\t\t\"ow-cc-nc\",\n\t\t\t\"ow-cc-nc-eu\",\n\t\t\t\"ow-cc-nc-jp\",\n\t\t\t\"ow-cc-sa-ofl-share\",\n\t\t\t\"ow-cc-nd\",\n\t\t\t\"ow-cc-public\",\n\t\t\t\"ow-cc-zero\",\n\t\t\t\"ow-cc-share\",\n\t\t\t\"ow-cc-remix\",\n\t\t\t\"ow-indieweb1\",\n\t\t\t\"ow-indieweb2\",\n\t\t\t\"ow-indieweb3\",\n\t\t\t\"ow-webfinger\",\n\t\t\t\"ow-bitcoin\",\n\t\t\t\"ow-perfintegration\",\n\t\t\t\"payment-alipay1\",\n\t\t\t\"payment-yandex\",\n\t\t\t\"payment-american15\",\n\t\t\t\"payment-asia2\",\n\t\t\t\"payment-atos1\",\n\t\t\t\"payment-bank7\",\n\t\t\t\"payment-bbb\",\n\t\t\t\"payment-bips1\",\n\t\t\t\"payment-bpay\",\n\t\t\t\"payment-cirrus\",\n\t\t\t\"payment-citibank\",\n\t\t\t\"payment-clickandbuy\",\n\t\t\t\"payment-credit59\",\n\t\t\t\"payment-delta1\",\n\t\t\t\"payment-diners1\",\n\t\t\t\"payment-direct\",\n\t\t\t\"payment-discover\",\n\t\t\t\"payment-dwolla1\",\n\t\t\t\"payment-ebay5\",\n\t\t\t\"payment-eco55\",\n\t\t\t\"payment-electronic53\",\n\t\t\t\"payment-eps8\",\n\t\t\t\"payment-euronet\",\n\t\t\t\"payment-eway1\",\n\t\t\t\"payment-gift55\",\n\t\t\t\"payment-google46\",\n\t\t\t\"payment-heartland\",\n\t\t\t\"payment-hsbc\",\n\t\t\t\"payment-izettle\",\n\t\t\t\"payment-jcb3\",\n\t\t\t\"payment-klarna1\",\n\t\t\t\"payment-laser1\",\n\t\t\t\"payment-maestro\",\n\t\t\t\"payment-master3\",\n\t\t\t\"payment-amazon4\",\n\t\t\t\"payment-moneygram1\",\n\t\t\t\"payment-neteller1\",\n\t\t\t\"payment-ogone\",\n\t\t\t\"payment-pay4\",\n\t\t\t\"payment-paymate1\",\n\t\t\t\"payment-payoneer\",\n\t\t\t\"payment-paypal10\",\n\t\t\t\"payment-paysafecard\",\n\t\t\t\"payment-payza\",\n\t\t\t\"payment-popmoney1\",\n\t\t\t\"payment-realex\",\n\t\t\t\"payment-recurly1\",\n\t\t\t\"payment-sage1\",\n\t\t\t\"payment-skrill\",\n\t\t\t\"payment-solo1\",\n\t\t\t\"payment-square90\",\n\t\t\t\"payment-stripe1\",\n\t\t\t\"payment-switch15\",\n\t\t\t\"payment-telecheck1\",\n\t\t\t\"payment-timwe1\",\n\t\t\t\"payment-truste1\",\n\t\t\t\"payment-ukash1\",\n\t\t\t\"payment-unionpay1\",\n\t\t\t\"payment-verifone1\",\n\t\t\t\"payment-verisign1\",\n\t\t\t\"payment-vindicia1\",\n\t\t\t\"payment-visa4\",\n\t\t\t\"payment-webmoney\",\n\t\t\t\"payment-wepay1\",\n\t\t\t\"payment-western\",\n\t\t\t\"payment-wire1\",\n\t\t\t\"payment-wirecard\",\n\t\t\t\"payment-worldpay\",\n\t\t\t\"payment-mondex1\",\n\t\t\t\"place-beach3\",\n\t\t\t\"place-town\",\n\t\t\t\"place-boat12\",\n\t\t\t\"place-building21\",\n\t\t\t\"place-building22\",\n\t\t\t\"place-building23\",\n\t\t\t\"place-building24\",\n\t\t\t\"place-buildings5\",\n\t\t\t\"place-castle7\",\n\t\t\t\"place-church7\",\n\t\t\t\"place-coconut5\",\n\t\t\t\"place-compass44\",\n\t\t\t\"place-compass45\",\n\t\t\t\"place-compass46\",\n\t\t\t\"place-compass47\",\n\t\t\t\"place-compass49\",\n\t\t\t\"place-compass50\",\n\t\t\t\"place-factory7\",\n\t\t\t\"place-factory8\",\n\t\t\t\"place-flag31\",\n\t\t\t\"place-flag32\",\n\t\t\t\"place-heart206\",\n\t\t\t\"place-home84\",\n\t\t\t\"place-home85\",\n\t\t\t\"place-home86\",\n\t\t\t\"place-home87\",\n\t\t\t\"place-home88\",\n\t\t\t\"place-home89\",\n\t\t\t\"place-home90\",\n\t\t\t\"place-map35\",\n\t\t\t\"place-map36\",\n\t\t\t\"place-beach4\",\n\t\t\t\"place-map38\",\n\t\t\t\"place-map39\",\n\t\t\t\"place-map40\",\n\t\t\t\"place-map41\",\n\t\t\t\"place-map42\",\n\t\t\t\"place-map43\",\n\t\t\t\"place-map44\",\n\t\t\t\"place-map45\",\n\t\t\t\"place-map46\",\n\t\t\t\"place-map47\",\n\t\t\t\"place-map48\",\n\t\t\t\"place-map49\",\n\t\t\t\"place-map50\",\n\t\t\t\"place-map51\",\n\t\t\t\"place-map52\",\n\t\t\t\"place-map53\",\n\t\t\t\"place-map54\",\n\t\t\t\"place-map55\",\n\t\t\t\"place-map56\",\n\t\t\t\"place-map57\",\n\t\t\t\"place-map58\",\n\t\t\t\"place-map59\",\n\t\t\t\"place-map60\",\n\t\t\t\"place-palm9\",\n\t\t\t\"place-placeholder4\",\n\t\t\t\"place-sailboat5\",\n\t\t\t\"place-sunbathing\",\n\t\t\t\"place-sunbathing1\",\n\t\t\t\"place-tower15\",\n\t\t\t\"place-map37\",\n\t\t\t\"st-type\",\n\t\t\t\"st-box\",\n\t\t\t\"st-archive\",\n\t\t\t\"st-envelope\",\n\t\t\t\"st-email\",\n\t\t\t\"st-files\",\n\t\t\t\"st-folder-check\",\n\t\t\t\"st-wifi-low\",\n\t\t\t\"st-wifi-mid\",\n\t\t\t\"st-wifi-full\",\n\t\t\t\"st-connection-empty\",\n\t\t\t\"st-connection-25\",\n\t\t\t\"st-arrow-down\",\n\t\t\t\"st-arrow-right\",\n\t\t\t\"st-reload\",\n\t\t\t\"st-refresh\",\n\t\t\t\"st-volume\",\n\t\t\t\"st-volume-increase\",\n\t\t\t\"st-file-settings\",\n\t\t\t\"st-connection-50\",\n\t\t\t\"st-connection-75\",\n\t\t\t\"st-volume-decrease\",\n\t\t\t\"st-mute\",\n\t\t\t\"st-file-add\",\n\t\t\t\"st-file\",\n\t\t\t\"st-align-left\",\n\t\t\t\"st-align-right\",\n\t\t\t\"st-connection-full\",\n\t\t\t\"st-list\",\n\t\t\t\"st-grid\",\n\t\t\t\"st-microphone\",\n\t\t\t\"st-microphone-off\",\n\t\t\t\"st-book\",\n\t\t\t\"st-checkmark\",\n\t\t\t\"st-align-center\",\n\t\t\t\"st-align-justify\",\n\t\t\t\"st-file-broken\",\n\t\t\t\"st-browser\",\n\t\t\t\"st-windows\",\n\t\t\t\"st-window\",\n\t\t\t\"st-folder\",\n\t\t\t\"st-folder-add\",\n\t\t\t\"st-folder-settings\",\n\t\t\t\"st-battery-charging\",\n\t\t\t\"st-battery-empty\",\n\t\t\t\"st-battery-25\",\n\t\t\t\"st-battery-50\",\n\t\t\t\"st-battery-75\",\n\t\t\t\"st-battery-full\",\n\t\t\t\"st-settings\",\n\t\t\t\"st-arrow-left\",\n\t\t\t\"st-arrow-up\",\n\t\t\t\"st-checkbox-checked\",\n\t\t\t\"st-checkbox\",\n\t\t\t\"st-paperclip\",\n\t\t\t\"st-download\",\n\t\t\t\"st-tag\",\n\t\t\t\"st-trashcan\",\n\t\t\t\"st-search\",\n\t\t\t\"st-zoom-in\",\n\t\t\t\"st-zoom-out\",\n\t\t\t\"st-chat\",\n\t\t\t\"st-chat-1\",\n\t\t\t\"st-chat-2\",\n\t\t\t\"st-chat-3\",\n\t\t\t\"st-comment\",\n\t\t\t\"st-unlocked\",\n\t\t\t\"st-unlocked-2\",\n\t\t\t\"st-users\",\n\t\t\t\"st-user\",\n\t\t\t\"st-users-2\",\n\t\t\t\"st-drink\",\n\t\t\t\"st-shorts\",\n\t\t\t\"st-vcard\",\n\t\t\t\"st-sun\",\n\t\t\t\"st-bill\",\n\t\t\t\"st-lab\",\n\t\t\t\"st-clipboard\",\n\t\t\t\"st-mug\",\n\t\t\t\"st-bucket\",\n\t\t\t\"st-select\",\n\t\t\t\"st-calendar\",\n\t\t\t\"st-bookmark\",\n\t\t\t\"st-user-2\",\n\t\t\t\"st-bullhorn\",\n\t\t\t\"st-coffee\",\n\t\t\t\"st-graph\",\n\t\t\t\"st-crop\",\n\t\t\t\"st-email-2\",\n\t\t\t\"st-heart\",\n\t\t\t\"st-enter\",\n\t\t\t\"st-cloud\",\n\t\t\t\"st-book-2\",\n\t\t\t\"st-star\",\n\t\t\t\"st-clock\",\n\t\t\t\"st-share\",\n\t\t\t\"st-screen\",\n\t\t\t\"st-phone\",\n\t\t\t\"st-phone-portrait\",\n\t\t\t\"st-phone-landscape\",\n\t\t\t\"st-tablet\",\n\t\t\t\"st-tablet-landscape\",\n\t\t\t\"st-newspaper\",\n\t\t\t\"st-stack\",\n\t\t\t\"st-map-marker\",\n\t\t\t\"st-map\",\n\t\t\t\"st-support\",\n\t\t\t\"st-barbell\",\n\t\t\t\"st-image\",\n\t\t\t\"st-cube\",\n\t\t\t\"st-bars\",\n\t\t\t\"st-chart\",\n\t\t\t\"st-pencil\",\n\t\t\t\"st-measure\",\n\t\t\t\"st-eyedropper\",\n\t\t\t\"st-printer\",\n\t\t\t\"st-home\",\n\t\t\t\"st-flag\",\n\t\t\t\"st-meter\",\n\t\t\t\"st-switch\",\n\t\t\t\"st-forbidden\",\n\t\t\t\"st-lock\",\n\t\t\t\"st-laptop\",\n\t\t\t\"st-camera\",\n\t\t\t\"st-microwave-oven\",\n\t\t\t\"st-credit-cards\",\n\t\t\t\"st-calculator\",\n\t\t\t\"st-bag\",\n\t\t\t\"st-diamond\",\n\t\t\t\"st-stopwatch\",\n\t\t\t\"st-atom\",\n\t\t\t\"st-syringe\",\n\t\t\t\"st-health\",\n\t\t\t\"st-bolt\",\n\t\t\t\"st-pill\",\n\t\t\t\"st-bones\",\n\t\t\t\"sw-store\",\n\t\t\t\"sw-out\",\n\t\t\t\"sw-in\",\n\t\t\t\"sw-in-alt\",\n\t\t\t\"sw-home\",\n\t\t\t\"sw-light-bulb\",\n\t\t\t\"sw-anchor\",\n\t\t\t\"sw-feather\",\n\t\t\t\"sw-expand\",\n\t\t\t\"sw-maximize\",\n\t\t\t\"sw-search\",\n\t\t\t\"sw-zoom-in\",\n\t\t\t\"sw-zoom-out\",\n\t\t\t\"sw-add\",\n\t\t\t\"sw-subtract\",\n\t\t\t\"sw-exclamation\",\n\t\t\t\"sw-question\",\n\t\t\t\"sw-close\",\n\t\t\t\"sw-cmd\",\n\t\t\t\"sw-forbid\",\n\t\t\t\"sw-book\",\n\t\t\t\"sw-spinner\",\n\t\t\t\"sw-play\",\n\t\t\t\"sw-stop\",\n\t\t\t\"sw-pause\",\n\t\t\t\"sw-forward\",\n\t\t\t\"sw-rewind\",\n\t\t\t\"sw-sound\",\n\t\t\t\"sw-sound-alt\",\n\t\t\t\"sw-sound-off\",\n\t\t\t\"sw-task\",\n\t\t\t\"sw-inbox\",\n\t\t\t\"sw-inbox-alt\",\n\t\t\t\"sw-envelope\",\n\t\t\t\"sw-compose\",\n\t\t\t\"sw-newspaper\",\n\t\t\t\"sw-newspaper-alt\",\n\t\t\t\"sw-clipboard\",\n\t\t\t\"sw-calendar\",\n\t\t\t\"sw-hyperlink\",\n\t\t\t\"sw-trash\",\n\t\t\t\"sw-trash-alt\",\n\t\t\t\"sw-grid\",\n\t\t\t\"sw-grid-alt\",\n\t\t\t\"sw-menu\",\n\t\t\t\"sw-list\",\n\t\t\t\"sw-gallery\",\n\t\t\t\"sw-calculator\",\n\t\t\t\"sw-windows\",\n\t\t\t\"sw-browser\",\n\t\t\t\"sw-alarm\",\n\t\t\t\"sw-clock\",\n\t\t\t\"sw-attachment\",\n\t\t\t\"sw-settings\",\n\t\t\t\"sw-portfolio\",\n\t\t\t\"sw-user\",\n\t\t\t\"sw-users\",\n\t\t\t\"sw-heart\",\n\t\t\t\"sw-chat\",\n\t\t\t\"sw-comments\",\n\t\t\t\"sw-screen\",\n\t\t\t\"sw-iphone\",\n\t\t\t\"sw-ipad\",\n\t\t\t\"sw-fork-and-spoon\",\n\t\t\t\"sw-fork-and-knife\",\n\t\t\t\"sw-instagram\",\n\t\t\t\"sw-facebook\",\n\t\t\t\"sw-delicious\",\n\t\t\t\"sw-googleplus\",\n\t\t\t\"sw-dribbble\",\n\t\t\t\"sw-pin\",\n\t\t\t\"sw-pin-alt\",\n\t\t\t\"sw-camera\",\n\t\t\t\"sw-brightness\",\n\t\t\t\"sw-brightness-half\",\n\t\t\t\"sw-moon\",\n\t\t\t\"sw-cloud\",\n\t\t\t\"sw-circle-full\",\n\t\t\t\"sw-circle-half\",\n\t\t\t\"sw-globe\",\n\t\t\t\"ty-battery-low\",\n\t\t\t\"ty-battery\",\n\t\t\t\"ty-battery-full\",\n\t\t\t\"ty-battery-charging\",\n\t\t\t\"ty-plus\",\n\t\t\t\"ty-cross\",\n\t\t\t\"ty-arrow-right\",\n\t\t\t\"ty-arrow-left\",\n\t\t\t\"ty-pencil\",\n\t\t\t\"ty-search\",\n\t\t\t\"ty-grid\",\n\t\t\t\"ty-list\",\n\t\t\t\"ty-star\",\n\t\t\t\"ty-heart\",\n\t\t\t\"ty-back\",\n\t\t\t\"ty-forward\",\n\t\t\t\"ty-map-marker\",\n\t\t\t\"ty-phone\",\n\t\t\t\"ty-home\",\n\t\t\t\"ty-camera\",\n\t\t\t\"ty-arrow-left-2\",\n\t\t\t\"ty-arrow-right-2\",\n\t\t\t\"ty-arrow-up\",\n\t\t\t\"ty-arrow-down\",\n\t\t\t\"ty-refresh\",\n\t\t\t\"ty-refresh-2\",\n\t\t\t\"ty-escape\",\n\t\t\t\"ty-repeat\",\n\t\t\t\"ty-loop\",\n\t\t\t\"ty-shuffle\",\n\t\t\t\"ty-feed\",\n\t\t\t\"ty-cog\",\n\t\t\t\"ty-wrench\",\n\t\t\t\"ty-bars\",\n\t\t\t\"ty-chart\",\n\t\t\t\"ty-stats\",\n\t\t\t\"ty-eye\",\n\t\t\t\"ty-zoom-out\",\n\t\t\t\"ty-zoom-in\",\n\t\t\t\"ty-export\",\n\t\t\t\"ty-user\",\n\t\t\t\"ty-users\",\n\t\t\t\"ty-microphone\",\n\t\t\t\"ty-mail\",\n\t\t\t\"ty-comment\",\n\t\t\t\"ty-trashcan\",\n\t\t\t\"ty-delete\",\n\t\t\t\"ty-infinity\",\n\t\t\t\"ty-key\",\n\t\t\t\"ty-globe\",\n\t\t\t\"ty-thumbs-up\",\n\t\t\t\"ty-thumbs-down\",\n\t\t\t\"ty-tag\",\n\t\t\t\"ty-views\",\n\t\t\t\"ty-warning\",\n\t\t\t\"ty-beta\",\n\t\t\t\"ty-unlocked\",\n\t\t\t\"ty-locked\",\n\t\t\t\"ty-eject\",\n\t\t\t\"ty-move\",\n\t\t\t\"ty-expand\",\n\t\t\t\"ty-cancel\",\n\t\t\t\"ty-electricity\",\n\t\t\t\"ty-compass\",\n\t\t\t\"ty-location\",\n\t\t\t\"ty-directions\",\n\t\t\t\"ty-pin\",\n\t\t\t\"ty-mute\",\n\t\t\t\"ty-volume\",\n\t\t\t\"ty-globe-2\",\n\t\t\t\"ty-pencil-2\",\n\t\t\t\"ty-minus\",\n\t\t\t\"ty-equals\",\n\t\t\t\"ty-list-2\",\n\t\t\t\"ty-flag\",\n\t\t\t\"ty-info\",\n\t\t\t\"ty-question\",\n\t\t\t\"ty-chat\",\n\t\t\t\"ty-clock\",\n\t\t\t\"ty-calendar\",\n\t\t\t\"ty-sun\",\n\t\t\t\"ty-contrast\",\n\t\t\t\"ty-mobile\",\n\t\t\t\"ty-download\",\n\t\t\t\"ty-puzzle\",\n\t\t\t\"ty-music\",\n\t\t\t\"ty-scissors\",\n\t\t\t\"ty-bookmark\",\n\t\t\t\"ty-anchor\",\n\t\t\t\"ty-checkmark\",\n\t\t\t\"ty2-music-outline\",\n\t\t\t\"ty2-vimeo\",\n\t\t\t\"ty2-search-outline\",\n\t\t\t\"ty2-search\",\n\t\t\t\"ty2-mail\",\n\t\t\t\"ty2-heart\",\n\t\t\t\"ty2-heart-filled\",\n\t\t\t\"ty2-star\",\n\t\t\t\"ty2-star-filled\",\n\t\t\t\"ty2-user-outline\",\n\t\t\t\"ty2-user\",\n\t\t\t\"ty2-users-outline\",\n\t\t\t\"ty2-users\",\n\t\t\t\"ty2-user-add-outline\",\n\t\t\t\"ty2-user-add\",\n\t\t\t\"ty2-user-delete-outline\",\n\t\t\t\"ty2-user-delete\",\n\t\t\t\"ty2-video\",\n\t\t\t\"ty2-videocam-outline\",\n\t\t\t\"ty2-videocam\",\n\t\t\t\"ty2-picture-outline\",\n\t\t\t\"ty2-picture\",\n\t\t\t\"ty2-camera-outline\",\n\t\t\t\"ty2-camera\",\n\t\t\t\"ty2-th-outline\",\n\t\t\t\"ty2-th\",\n\t\t\t\"ty2-th-large-outline\",\n\t\t\t\"ty2-th-large\",\n\t\t\t\"ty2-th-list-outline\",\n\t\t\t\"ty2-th-list\",\n\t\t\t\"ty2-ok-outline\",\n\t\t\t\"ty2-ok\",\n\t\t\t\"ty2-cancel-outline\",\n\t\t\t\"ty2-cancel\",\n\t\t\t\"ty2-cancel-alt\",\n\t\t\t\"ty2-cancel-alt-filled\",\n\t\t\t\"ty2-cancel-circled-outline\",\n\t\t\t\"ty2-cancel-circled\",\n\t\t\t\"ty2-plus-outline\",\n\t\t\t\"ty2-plus\",\n\t\t\t\"ty2-minus-outline\",\n\t\t\t\"ty2-minus\",\n\t\t\t\"ty2-divide-outline\",\n\t\t\t\"ty2-divide\",\n\t\t\t\"ty2-eq-outline\",\n\t\t\t\"ty2-eq\",\n\t\t\t\"ty2-info-outline\",\n\t\t\t\"ty2-info\",\n\t\t\t\"ty2-home-outline\",\n\t\t\t\"ty2-home\",\n\t\t\t\"ty2-link-outline\",\n\t\t\t\"ty2-link\",\n\t\t\t\"ty2-attach-outline\",\n\t\t\t\"ty2-attach\",\n\t\t\t\"ty2-lock\",\n\t\t\t\"ty2-lock-filled\",\n\t\t\t\"ty2-lock-open\",\n\t\t\t\"ty2-lock-open-filled\",\n\t\t\t\"ty2-pin-outline\",\n\t\t\t\"ty2-pin\",\n\t\t\t\"ty2-eye-outline\",\n\t\t\t\"ty2-eye\",\n\t\t\t\"ty2-tag\",\n\t\t\t\"ty2-tags\",\n\t\t\t\"ty2-bookmark\",\n\t\t\t\"ty2-flag\",\n\t\t\t\"ty2-flag-filled\",\n\t\t\t\"ty2-thumbs-up\",\n\t\t\t\"ty2-thumbs-down\",\n\t\t\t\"ty2-download-outline\",\n\t\t\t\"ty2-download\",\n\t\t\t\"ty2-upload-outline\",\n\t\t\t\"ty2-upload\",\n\t\t\t\"ty2-upload-cloud-outline\",\n\t\t\t\"ty2-upload-cloud\",\n\t\t\t\"ty2-reply-outline\",\n\t\t\t\"ty2-reply\",\n\t\t\t\"ty2-forward-outline\",\n\t\t\t\"ty2-forward\",\n\t\t\t\"ty2-code-outline\",\n\t\t\t\"ty2-code\",\n\t\t\t\"ty2-export-outline\",\n\t\t\t\"ty2-export\",\n\t\t\t\"ty2-pencil\",\n\t\t\t\"ty2-pen\",\n\t\t\t\"ty2-feather\",\n\t\t\t\"ty2-edit\",\n\t\t\t\"ty2-print\",\n\t\t\t\"ty2-comment\",\n\t\t\t\"ty2-chat\",\n\t\t\t\"ty2-chat-alt\",\n\t\t\t\"ty2-bell\",\n\t\t\t\"ty2-attention\",\n\t\t\t\"ty2-attention-filled\",\n\t\t\t\"ty2-warning-empty\",\n\t\t\t\"ty2-warning\",\n\t\t\t\"ty2-contacts\",\n\t\t\t\"ty2-vcard\",\n\t\t\t\"ty2-address\",\n\t\t\t\"ty2-location-outline\",\n\t\t\t\"ty2-location\",\n\t\t\t\"ty2-map\",\n\t\t\t\"ty2-direction-outline\",\n\t\t\t\"ty2-direction\",\n\t\t\t\"ty2-compass\",\n\t\t\t\"ty2-trash\",\n\t\t\t\"ty2-doc\",\n\t\t\t\"ty2-doc-text\",\n\t\t\t\"ty2-doc-add\",\n\t\t\t\"ty2-doc-remove\",\n\t\t\t\"ty2-news\",\n\t\t\t\"ty2-folder\",\n\t\t\t\"ty2-folder-add\",\n\t\t\t\"ty2-folder-delete\",\n\t\t\t\"ty2-archive\",\n\t\t\t\"ty2-box\",\n\t\t\t\"ty2-rss-outline\",\n\t\t\t\"ty2-rss\",\n\t\t\t\"ty2-phone-outline\",\n\t\t\t\"ty2-phone\",\n\t\t\t\"ty2-menu-outline\",\n\t\t\t\"ty2-menu\",\n\t\t\t\"ty2-cog-outline\",\n\t\t\t\"ty2-cog\",\n\t\t\t\"ty2-wrench-outline\",\n\t\t\t\"ty2-wrench\",\n\t\t\t\"ty2-basket\",\n\t\t\t\"ty2-calendar-outlilne\",\n\t\t\t\"ty2-calendar\",\n\t\t\t\"ty2-mic-outline\",\n\t\t\t\"ty2-mic\",\n\t\t\t\"ty2-volume-off\",\n\t\t\t\"ty2-volume-low\",\n\t\t\t\"ty2-volume-middle\",\n\t\t\t\"ty2-volume-high\",\n\t\t\t\"ty2-headphones\",\n\t\t\t\"ty2-clock\",\n\t\t\t\"ty2-wristwatch\",\n\t\t\t\"ty2-stopwatch\",\n\t\t\t\"ty2-lightbulb\",\n\t\t\t\"ty2-block-outline\",\n\t\t\t\"ty2-block\",\n\t\t\t\"ty2-resize-full-outline\",\n\t\t\t\"ty2-resize-full\",\n\t\t\t\"ty2-resize-normal-outline\",\n\t\t\t\"ty2-resize-normal\",\n\t\t\t\"ty2-move-outline\",\n\t\t\t\"ty2-move\",\n\t\t\t\"ty2-popup\",\n\t\t\t\"ty2-zoom-in-outline\",\n\t\t\t\"ty2-zoom-in\",\n\t\t\t\"ty2-zoom-out-outline\",\n\t\t\t\"ty2-zoom-out\",\n\t\t\t\"ty2-popup-1\",\n\t\t\t\"ty2-music\",\n\t\t\t\"ty2-left-open\",\n\t\t\t\"ty2-right-open-outline\",\n\t\t\t\"ty2-right-open\",\n\t\t\t\"ty2-down\",\n\t\t\t\"ty2-left\",\n\t\t\t\"ty2-right\",\n\t\t\t\"ty2-up\",\n\t\t\t\"ty2-down-outline\",\n\t\t\t\"ty2-left-outline\",\n\t\t\t\"ty2-right-outline\",\n\t\t\t\"ty2-up-outline\",\n\t\t\t\"ty2-down-small\",\n\t\t\t\"ty2-left-small\",\n\t\t\t\"ty2-right-small\",\n\t\t\t\"ty2-up-small\",\n\t\t\t\"ty2-cw-outline\",\n\t\t\t\"ty2-cw\",\n\t\t\t\"ty2-arrows-cw-outline\",\n\t\t\t\"ty2-arrows-cw\",\n\t\t\t\"ty2-loop-outline\",\n\t\t\t\"ty2-loop\",\n\t\t\t\"ty2-loop-alt-outline\",\n\t\t\t\"ty2-loop-alt\",\n\t\t\t\"ty2-shuffle\",\n\t\t\t\"ty2-play-outline\",\n\t\t\t\"ty2-play\",\n\t\t\t\"ty2-stop-outline\",\n\t\t\t\"ty2-stop\",\n\t\t\t\"ty2-pause-outline\",\n\t\t\t\"ty2-pause\",\n\t\t\t\"ty2-fast-fw-outline\",\n\t\t\t\"ty2-fast-fw\",\n\t\t\t\"ty2-rewind-outline\",\n\t\t\t\"ty2-rewind\",\n\t\t\t\"ty2-record-outline\",\n\t\t\t\"ty2-record\",\n\t\t\t\"ty2-eject-outline\",\n\t\t\t\"ty2-eject\",\n\t\t\t\"ty2-eject-alt-outline\",\n\t\t\t\"ty2-eject-alt\",\n\t\t\t\"ty2-bat1\",\n\t\t\t\"ty2-bat2\",\n\t\t\t\"ty2-bat3\",\n\t\t\t\"ty2-bat4\",\n\t\t\t\"ty2-bat-charge\",\n\t\t\t\"ty2-plug\",\n\t\t\t\"ty2-target-outline\",\n\t\t\t\"ty2-target\",\n\t\t\t\"ty2-wifi-outline\",\n\t\t\t\"ty2-wifi\",\n\t\t\t\"ty2-desktop\",\n\t\t\t\"ty2-laptop\",\n\t\t\t\"ty2-tablet\",\n\t\t\t\"ty2-mobile\",\n\t\t\t\"ty2-contrast\",\n\t\t\t\"ty2-globe-outline\",\n\t\t\t\"ty2-globe\",\n\t\t\t\"ty2-globe-alt-outline\",\n\t\t\t\"ty2-globe-alt\",\n\t\t\t\"ty2-sun\",\n\t\t\t\"ty2-sun-filled\",\n\t\t\t\"ty2-cloud\",\n\t\t\t\"ty2-flash-outline\",\n\t\t\t\"ty2-flash\",\n\t\t\t\"ty2-moon\",\n\t\t\t\"ty2-waves-outline\",\n\t\t\t\"ty2-waves\",\n\t\t\t\"ty2-rain\",\n\t\t\t\"ty2-cloud-sun\",\n\t\t\t\"ty2-drizzle\",\n\t\t\t\"ty2-snow\",\n\t\t\t\"ty2-cloud-flash\",\n\t\t\t\"ty2-cloud-wind\",\n\t\t\t\"ty2-wind\",\n\t\t\t\"ty2-plane-outline\",\n\t\t\t\"ty2-plane\",\n\t\t\t\"ty2-leaf\",\n\t\t\t\"ty2-lifebuoy\",\n\t\t\t\"ty2-briefcase\",\n\t\t\t\"ty2-brush\",\n\t\t\t\"ty2-pipette\",\n\t\t\t\"ty2-power-outline\",\n\t\t\t\"ty2-power\",\n\t\t\t\"ty2-check-outline\",\n\t\t\t\"ty2-check\",\n\t\t\t\"ty2-gift\",\n\t\t\t\"ty2-temperatire\",\n\t\t\t\"ty2-chart-outline\",\n\t\t\t\"ty2-chart\",\n\t\t\t\"ty2-chart-alt-outline\",\n\t\t\t\"ty2-chart-alt\",\n\t\t\t\"ty2-chart-bar-outline\",\n\t\t\t\"ty2-chart-bar\",\n\t\t\t\"ty2-chart-pie-outline\",\n\t\t\t\"ty2-chart-pie\",\n\t\t\t\"ty2-ticket\",\n\t\t\t\"ty2-credit-card\",\n\t\t\t\"ty2-clipboard\",\n\t\t\t\"ty2-database\",\n\t\t\t\"ty2-key-outline\",\n\t\t\t\"ty2-key\",\n\t\t\t\"ty2-flow-split\",\n\t\t\t\"ty2-flow-merge\",\n\t\t\t\"ty2-flow-parallel\",\n\t\t\t\"ty2-flow-cross\",\n\t\t\t\"ty2-certificate-outline\",\n\t\t\t\"ty2-certificate\",\n\t\t\t\"ty2-scissors-outline\",\n\t\t\t\"ty2-scissors\",\n\t\t\t\"ty2-flask\",\n\t\t\t\"ty2-wine\",\n\t\t\t\"ty2-coffee\",\n\t\t\t\"ty2-beer\",\n\t\t\t\"ty2-anchor-outline\",\n\t\t\t\"ty2-anchor\",\n\t\t\t\"ty2-puzzle-outline\",\n\t\t\t\"ty2-puzzle\",\n\t\t\t\"ty2-tree\",\n\t\t\t\"ty2-calculator\",\n\t\t\t\"ty2-infinity-outline\",\n\t\t\t\"ty2-infinity\",\n\t\t\t\"ty2-pi-outline\",\n\t\t\t\"ty2-pi\",\n\t\t\t\"ty2-at\",\n\t\t\t\"ty2-at-circled\",\n\t\t\t\"ty2-looped-square-outline\",\n\t\t\t\"ty2-looped-square-interest\",\n\t\t\t\"ty2-sort-alphabet-outline\",\n\t\t\t\"ty2-sort-alphabet\",\n\t\t\t\"ty2-sort-numeric-outline\",\n\t\t\t\"ty2-sort-numeric\",\n\t\t\t\"ty2-dribbble-circled\",\n\t\t\t\"ty2-dribbble\",\n\t\t\t\"ty2-facebook-circled\",\n\t\t\t\"ty2-facebook\",\n\t\t\t\"ty2-flickr-circled\",\n\t\t\t\"ty2-flickr\",\n\t\t\t\"ty2-github-circled\",\n\t\t\t\"ty2-github\",\n\t\t\t\"ty2-lastfm-circled\",\n\t\t\t\"ty2-lastfm\",\n\t\t\t\"ty2-linkedin-circled\",\n\t\t\t\"ty2-linkedin\",\n\t\t\t\"ty2-pinterest-circled\",\n\t\t\t\"ty2-pinterest\",\n\t\t\t\"ty2-skype-outline\",\n\t\t\t\"ty2-skype\",\n\t\t\t\"ty2-tumbler-circled\",\n\t\t\t\"ty2-tumbler\",\n\t\t\t\"ty2-twitter-circled\",\n\t\t\t\"ty2-twitter\",\n\t\t\t\"ty2-vimeo-circled\",\n\t\t\t\"ty2-left-open-outline\",\n\t\t\t\"u12-airplane7\",\n\t\t\t\"u12-wrench8\",\n\t\t\t\"u12-arrow159\",\n\t\t\t\"u12-arrow160\",\n\t\t\t\"u12-arrow164\",\n\t\t\t\"u12-arrows11\",\n\t\t\t\"u12-bag14\",\n\t\t\t\"u12-ball10\",\n\t\t\t\"u12-bank\",\n\t\t\t\"u12-bar6\",\n\t\t\t\"u12-barometer1\",\n\t\t\t\"u12-blank4\",\n\t\t\t\"u12-calendar31\",\n\t\t\t\"u12-calendar34\",\n\t\t\t\"u12-caret1\",\n\t\t\t\"u12-check15\",\n\t\t\t\"u12-cinema9\",\n\t\t\t\"u12-circular26\",\n\t\t\t\"u12-clipboard20\",\n\t\t\t\"u12-clipboard23\",\n\t\t\t\"u12-closed14\",\n\t\t\t\"u12-clothes5\",\n\t\t\t\"u12-compact2\",\n\t\t\t\"u12-computer27\",\n\t\t\t\"u12-cross26\",\n\t\t\t\"u12-cut9\",\n\t\t\t\"u12-cylindrical\",\n\t\t\t\"u12-diskette5\",\n\t\t\t\"u12-dollar14\",\n\t\t\t\"u12-easel\",\n\t\t\t\"u12-email16\",\n\t\t\t\"u12-flag19\",\n\t\t\t\"u12-front5\",\n\t\t\t\"u12-full16\",\n\t\t\t\"u12-game9\",\n\t\t\t\"u12-gift16\",\n\t\t\t\"u12-graph12\",\n\t\t\t\"u12-greek6\",\n\t\t\t\"u12-grocery2\",\n\t\t\t\"u12-hard5\",\n\t\t\t\"u12-heart46\",\n\t\t\t\"u12-human8\",\n\t\t\t\"u12-labels\",\n\t\t\t\"u12-lock21\",\n\t\t\t\"u12-low11\",\n\t\t\t\"u12-archive10\",\n\t\t\t\"u12-map12\",\n\t\t\t\"u12-mountain5\",\n\t\t\t\"u12-open42\",\n\t\t\t\"u12-open43\",\n\t\t\t\"u12-open44\",\n\t\t\t\"u12-painting4\",\n\t\t\t\"u12-paper31\",\n\t\t\t\"u12-personal2\",\n\t\t\t\"u12-personal3\",\n\t\t\t\"u12-photo21\",\n\t\t\t\"u12-picnic2\",\n\t\t\t\"u12-power15\",\n\t\t\t\"u12-radio8\",\n\t\t\t\"u12-recycle14\",\n\t\t\t\"u12-round7\",\n\t\t\t\"u12-rounded17\",\n\t\t\t\"u12-rounded18\",\n\t\t\t\"u12-rounded19\",\n\t\t\t\"u12-rounded8\",\n\t\t\t\"u12-rounded9\",\n\t\t\t\"u12-ships\",\n\t\t\t\"u12-small87\",\n\t\t\t\"u12-sound11\",\n\t\t\t\"u12-speech25\",\n\t\t\t\"u12-speech26\",\n\t\t\t\"u12-sphere\",\n\t\t\t\"u12-star41\",\n\t\t\t\"u12-suitcase14\",\n\t\t\t\"u12-table12\",\n\t\t\t\"u12-target12\",\n\t\t\t\"u12-target13\",\n\t\t\t\"u12-teacup\",\n\t\t\t\"u12-telephone51\",\n\t\t\t\"u12-thermometer13\",\n\t\t\t\"u12-three27\",\n\t\t\t\"u12-thunderbolt\",\n\t\t\t\"u12-tree12\",\n\t\t\t\"u12-tshirt6\",\n\t\t\t\"u12-voice2\",\n\t\t\t\"u12-white22\",\n\t\t\t\"u12-white27\",\n\t\t\t\"u12-white30\",\n\t\t\t\"u12-white34\",\n\t\t\t\"u12-magnifying14\",\n\t\t\t\"u8-airplane11\",\n\t\t\t\"u8-white31\",\n\t\t\t\"u8-arrow181\",\n\t\t\t\"u8-arrow182\",\n\t\t\t\"u8-auricular3\",\n\t\t\t\"u8-bag12\",\n\t\t\t\"u8-baggage4\",\n\t\t\t\"u8-bank2\",\n\t\t\t\"u8-bars3\",\n\t\t\t\"u8-basket7\",\n\t\t\t\"u8-battery49\",\n\t\t\t\"u8-bible\",\n\t\t\t\"u8-blank5\",\n\t\t\t\"u8-boat6\",\n\t\t\t\"u8-bold8\",\n\t\t\t\"u8-calculator18\",\n\t\t\t\"u8-calendar32\",\n\t\t\t\"u8-cellular\",\n\t\t\t\"u8-chart7\",\n\t\t\t\"u8-check18\",\n\t\t\t\"u8-circles2\",\n\t\t\t\"u8-circular21\",\n\t\t\t\"u8-clipboard18\",\n\t\t\t\"u8-clipboard19\",\n\t\t\t\"u8-clothing\",\n\t\t\t\"u8-cloud68\",\n\t\t\t\"u8-computer28\",\n\t\t\t\"u8-computer29\",\n\t\t\t\"u8-condenser1\",\n\t\t\t\"u8-contact3\",\n\t\t\t\"u8-cross21\",\n\t\t\t\"u8-cross24\",\n\t\t\t\"u8-cup17\",\n\t\t\t\"u8-cut11\",\n\t\t\t\"u8-cut8\",\n\t\t\t\"u8-database24\",\n\t\t\t\"u8-directional1\",\n\t\t\t\"u8-dollar13\",\n\t\t\t\"u8-doodle\",\n\t\t\t\"u8-double13\",\n\t\t\t\"u8-fence5\",\n\t\t\t\"u8-filled2\",\n\t\t\t\"u8-film15\",\n\t\t\t\"u8-folded4\",\n\t\t\t\"u8-game8\",\n\t\t\t\"u8-arrow163\",\n\t\t\t\"u8-grocery1\",\n\t\t\t\"u8-half10\",\n\t\t\t\"u8-hammer5\",\n\t\t\t\"u8-heart48\",\n\t\t\t\"u8-information23\",\n\t\t\t\"u8-irregular2\",\n\t\t\t\"u8-ladies\",\n\t\t\t\"u8-light19\",\n\t\t\t\"u8-lock15\",\n\t\t\t\"u8-magnifying17\",\n\t\t\t\"u8-mobile17\",\n\t\t\t\"u8-open39\",\n\t\t\t\"u8-open40\",\n\t\t\t\"u8-open41\",\n\t\t\t\"u8-page48\",\n\t\t\t\"u8-painting2\",\n\t\t\t\"u8-pie13\",\n\t\t\t\"u8-power16\",\n\t\t\t\"u8-printer33\",\n\t\t\t\"u8-recycling2\",\n\t\t\t\"u8-rewind16\",\n\t\t\t\"u8-save4\",\n\t\t\t\"u8-shooting1\",\n\t\t\t\"u8-signal8\",\n\t\t\t\"u8-small79\",\n\t\t\t\"u8-small88\",\n\t\t\t\"u8-speech16\",\n\t\t\t\"u8-speech23\",\n\t\t\t\"u8-spiral1\",\n\t\t\t\"u8-spring2\",\n\t\t\t\"u8-spring3\",\n\t\t\t\"u8-star44\",\n\t\t\t\"u8-storage3\",\n\t\t\t\"u8-suitcase16\",\n\t\t\t\"u8-thermometer16\",\n\t\t\t\"u8-thick4\",\n\t\t\t\"u8-three28\",\n\t\t\t\"u8-trash20\",\n\t\t\t\"u8-tree14\",\n\t\t\t\"u8-triangle11\",\n\t\t\t\"u8-tshirt8\",\n\t\t\t\"u8-user61\",\n\t\t\t\"u8-volume20\",\n\t\t\t\"u8-white28\",\n\t\t\t\"u8-gift13\",\n\t\t\t\"usa-puertorico\",\n\t\t\t\"usa-alaska\",\n\t\t\t\"usa-alabama\",\n\t\t\t\"usa-arkansas\",\n\t\t\t\"usa-arizona\",\n\t\t\t\"usa-california\",\n\t\t\t\"usa-colorado\",\n\t\t\t\"usa-connecticut\",\n\t\t\t\"usa-delaware\",\n\t\t\t\"usa-florida\",\n\t\t\t\"usa-georgia\",\n\t\t\t\"usa-hawaii\",\n\t\t\t\"usa-iowa\",\n\t\t\t\"usa-idaho\",\n\t\t\t\"usa-illinois\",\n\t\t\t\"usa-indiana\",\n\t\t\t\"usa-kansas\",\n\t\t\t\"usa-kentucky\",\n\t\t\t\"usa-louisiana\",\n\t\t\t\"usa-massachusetts\",\n\t\t\t\"usa-maryland\",\n\t\t\t\"usa-maine\",\n\t\t\t\"usa-michigan\",\n\t\t\t\"usa-minnesota\",\n\t\t\t\"usa-missouri\",\n\t\t\t\"usa-mississippi\",\n\t\t\t\"usa-montana\",\n\t\t\t\"usa-northcarolina\",\n\t\t\t\"usa-northdakota\",\n\t\t\t\"usa-nebraska\",\n\t\t\t\"usa-newhampshire\",\n\t\t\t\"usa-newjersey\",\n\t\t\t\"usa-newmexico\",\n\t\t\t\"usa-nevada\",\n\t\t\t\"usa-newyork\",\n\t\t\t\"usa-ohio\",\n\t\t\t\"usa-oklahoma\",\n\t\t\t\"usa-oregon\",\n\t\t\t\"usa-pennsylvania\",\n\t\t\t\"usa-rhodeisland\",\n\t\t\t\"usa-southcarolina\",\n\t\t\t\"usa-southdakota\",\n\t\t\t\"usa-tennessee\",\n\t\t\t\"usa-texas\",\n\t\t\t\"usa-utah\",\n\t\t\t\"usa-virginia\",\n\t\t\t\"usa-vermont\",\n\t\t\t\"usa-washington\",\n\t\t\t\"usa-wisconsin\",\n\t\t\t\"usa-westvirginia\",\n\t\t\t\"usa-wyoming\",\n\t\t\t\"usa-districtofcolumbia\",\n\t\t\t\"usa-usa\",\n\t\t\t\"wb-pilcrow\",\n\t\t\t\"wb-multiply\",\n\t\t\t\"wb-divide\",\n\t\t\t\"wb-pipe\",\n\t\t\t\"wb-ring\",\n\t\t\t\"wb-dagger\",\n\t\t\t\"wb-tie\",\n\t\t\t\"wb-euro\",\n\t\t\t\"wb-home\",\n\t\t\t\"wb-capslock\",\n\t\t\t\"wb-gradient\",\n\t\t\t\"wb-minus\",\n\t\t\t\"wb-infinity\",\n\t\t\t\"wb-intersection\",\n\t\t\t\"wb-image\",\n\t\t\t\"wb-fork\",\n\t\t\t\"wb-bell\",\n\t\t\t\"wb-chair\",\n\t\t\t\"wb-rectangle\",\n\t\t\t\"wb-triangle\",\n\t\t\t\"wb-yinyang\",\n\t\t\t\"wb-smile\",\n\t\t\t\"wb-compass\",\n\t\t\t\"wb-diamond\",\n\t\t\t\"wb-checkmark\",\n\t\t\t\"wb-wallet\",\n\t\t\t\"wb-uniF470\",\n\t\t\t\"wb-uniF471\",\n\t\t\t\"wb-uniF472\",\n\t\t\t\"wb-uniF473\",\n\t\t\t\"wb-uniF474\",\n\t\t\t\"wb-uniF475\",\n\t\t\t\"wb-uniF476\",\n\t\t\t\"wb-uniF477\",\n\t\t\t\"wb-uniF478\",\n\t\t\t\"wb-uniF479\",\n\t\t\t\"wb-uniF47A\",\n\t\t\t\"wb-uniF47B\",\n\t\t\t\"wb-uniF47C\",\n\t\t\t\"wb-uniF47D\",\n\t\t\t\"wb-uniF47E\",\n\t\t\t\"wb-uniF47F\",\n\t\t\t\"wb-uniF480\",\n\t\t\t\"wb-uniF481\",\n\t\t\t\"wb-uniF482\",\n\t\t\t\"wb-uniF483\",\n\t\t\t\"wb-uniF484\",\n\t\t\t\"wb-uniF485\",\n\t\t\t\"wb-uniF486\",\n\t\t\t\"wb-uniF487\",\n\t\t\t\"wb-uniF488\",\n\t\t\t\"wb-uniF489\",\n\t\t\t\"wb-uniF48A\",\n\t\t\t\"wb-uniF48B\",\n\t\t\t\"wb-pigpena\",\n\t\t\t\"wb-pigpenb\",\n\t\t\t\"wb-pigpenc\",\n\t\t\t\"wb-pigpend\",\n\t\t\t\"wb-pigpene\",\n\t\t\t\"wb-pigpenf\",\n\t\t\t\"wb-pigpeng\",\n\t\t\t\"wb-pigpenh\",\n\t\t\t\"wb-pigpeni\",\n\t\t\t\"wb-pigpenj\",\n\t\t\t\"wb-pigpenk\",\n\t\t\t\"wb-pigpenl\",\n\t\t\t\"wb-pigpenm\",\n\t\t\t\"wb-pigpenn\",\n\t\t\t\"wb-pigpeno\",\n\t\t\t\"wb-pigpenp\",\n\t\t\t\"wb-pigpenq\",\n\t\t\t\"wb-pigpenr\",\n\t\t\t\"wb-pigpens\",\n\t\t\t\"wb-pigpent\",\n\t\t\t\"wb-pigpenu\",\n\t\t\t\"wb-pigpenv\",\n\t\t\t\"wb-pigpenw\",\n\t\t\t\"wb-pigpenx\",\n\t\t\t\"wb-pigpeny\",\n\t\t\t\"wb-pigpenz\",\n\t\t\t\"wb-braillea\",\n\t\t\t\"wb-brailleb\",\n\t\t\t\"wb-braillec\",\n\t\t\t\"wb-brailled\",\n\t\t\t\"wb-braillee\",\n\t\t\t\"wb-braillef\",\n\t\t\t\"wb-brailleg\",\n\t\t\t\"wb-brailleh\",\n\t\t\t\"wb-braillei\",\n\t\t\t\"wb-braillej\",\n\t\t\t\"wb-braillek\",\n\t\t\t\"wb-braillel\",\n\t\t\t\"wb-braillem\",\n\t\t\t\"wb-braillen\",\n\t\t\t\"wb-brailleo\",\n\t\t\t\"wb-braillep\",\n\t\t\t\"wb-brailleq\",\n\t\t\t\"wb-brailler\",\n\t\t\t\"wb-brailles\",\n\t\t\t\"wb-braillet\",\n\t\t\t\"wb-brailleu\",\n\t\t\t\"wb-braillev\",\n\t\t\t\"wb-braillew\",\n\t\t\t\"wb-braillex\",\n\t\t\t\"wb-brailley\",\n\t\t\t\"wb-braillez\",\n\t\t\t\"wb-braille0\",\n\t\t\t\"wb-braille1\",\n\t\t\t\"wb-braille2\",\n\t\t\t\"wb-braille3\",\n\t\t\t\"wb-braille4\",\n\t\t\t\"wb-braille5\",\n\t\t\t\"wb-braille6\",\n\t\t\t\"wb-braille7\",\n\t\t\t\"wb-braille8\",\n\t\t\t\"wb-braille9\",\n\t\t\t\"wb-braillespace\",\n\t\t\t\"wb-hydrant\",\n\t\t\t\"wb-fort\",\n\t\t\t\"wb-cannon\",\n\t\t\t\"wb-route\",\n\t\t\t\"wb-gameboy\",\n\t\t\t\"wb-nintendods\",\n\t\t\t\"wb-baloon\",\n\t\t\t\"wb-greenlightbulb\",\n\t\t\t\"wb-egg\",\n\t\t\t\"wb-pasta\",\n\t\t\t\"wb-dna\",\n\t\t\t\"wb-broom\",\n\t\t\t\"wb-speed\",\n\t\t\t\"wb-stumbleupon\",\n\t\t\t\"wb-fridge\",\n\t\t\t\"wb-davidstar\",\n\t\t\t\"wb-christiancross\",\n\t\t\t\"wb-islam\",\n\t\t\t\"wb-torigate\",\n\t\t\t\"wb-desklamp\",\n\t\t\t\"wb-aaabattery\",\n\t\t\t\"wb-sharethree\",\n\t\t\t\"wb-danger\",\n\t\t\t\"wb-razor\",\n\t\t\t\"wb-safetypin\",\n\t\t\t\"wb-cricket\",\n\t\t\t\"wb-searchdocument\",\n\t\t\t\"wb-searchfolder\",\n\t\t\t\"wb-wind\",\n\t\t\t\"wb-breakable\",\n\t\t\t\"wb-thissideup\",\n\t\t\t\"wb-pictureframe\",\n\t\t\t\"wb-alienship\",\n\t\t\t\"wb-firefox\",\n\t\t\t\"wb-blackberry\",\n\t\t\t\"wb-travel\",\n\t\t\t\"wb-tank\",\n\t\t\t\"wb-windleft\",\n\t\t\t\"wb-windright\",\n\t\t\t\"wb-screw\",\n\t\t\t\"wb-nut\",\n\t\t\t\"wb-nail\",\n\t\t\t\"wb-stiletto\",\n\t\t\t\"wb-foursquare\",\n\t\t\t\"wb-fishbone\",\n\t\t\t\"wb-teapot\",\n\t\t\t\"wb-candy\",\n\t\t\t\"wb-microwave\",\n\t\t\t\"wb-bread\",\n\t\t\t\"wb-weight\",\n\t\t\t\"wb-superman\",\n\t\t\t\"wb-greenlantern\",\n\t\t\t\"wb-captainamerica\",\n\t\t\t\"wb-avengers\",\n\t\t\t\"wb-punisher\",\n\t\t\t\"wb-spawn\",\n\t\t\t\"wb-xmen\",\n\t\t\t\"wb-spider\",\n\t\t\t\"wb-spiderman\",\n\t\t\t\"wb-batman\",\n\t\t\t\"wb-ironman\",\n\t\t\t\"wb-darthvader\",\n\t\t\t\"wb-tetrisone\",\n\t\t\t\"wb-tetristwo\",\n\t\t\t\"wb-tetristhree\",\n\t\t\t\"wb-apple\",\n\t\t\t\"wb-tron\",\n\t\t\t\"wb-residentevil\",\n\t\t\t\"wb-designcontest\",\n\t\t\t\"wb-spaceinvaders\",\n\t\t\t\"wb-xbox\",\n\t\t\t\"wb-pokemon\",\n\t\t\t\"wb-quake\",\n\t\t\t\"wb-aperture\",\n\t\t\t\"wb-robocop\",\n\t\t\t\"wb-rorschach\",\n\t\t\t\"wb-chicken\",\n\t\t\t\"wb-fish\",\n\t\t\t\"wb-cupcake\",\n\t\t\t\"wb-pizza\",\n\t\t\t\"wb-cherry\",\n\t\t\t\"wb-mushroom\",\n\t\t\t\"wb-bone\",\n\t\t\t\"wb-steak\",\n\t\t\t\"wb-bottle\",\n\t\t\t\"wb-restaurantmenu\",\n\t\t\t\"wb-muffin\",\n\t\t\t\"wb-pepperoni\",\n\t\t\t\"wb-sunnysideup\",\n\t\t\t\"wb-coffeebean\",\n\t\t\t\"wb-chocolate\",\n\t\t\t\"wb-raspberry\",\n\t\t\t\"wb-raspberrypi\",\n\t\t\t\"wb-fries\",\n\t\t\t\"wb-birthday\",\n\t\t\t\"wb-globe\",\n\t\t\t\"wb-glue\",\n\t\t\t\"wb-eightball\",\n\t\t\t\"wb-rim\",\n\t\t\t\"wb-lego\",\n\t\t\t\"wb-stove\",\n\t\t\t\"wb-speaker\",\n\t\t\t\"wb-submarine\",\n\t\t\t\"wb-metronome\",\n\t\t\t\"wb-trumpet\",\n\t\t\t\"wb-knob\",\n\t\t\t\"wb-cassette\",\n\t\t\t\"wb-watch\",\n\t\t\t\"wb-viking\",\n\t\t\t\"wb-mickeymouse\",\n\t\t\t\"wb-christmastree\",\n\t\t\t\"wb-snowman\",\n\t\t\t\"wb-candycane\",\n\t\t\t\"wb-treeornament\",\n\t\t\t\"wb-bowtie\",\n\t\t\t\"wb-lifehacker\",\n\t\t\t\"wb-favoritefile\",\n\t\t\t\"wb-favoritefolder\",\n\t\t\t\"wb-crayon\",\n\t\t\t\"wb-toiletpaper\",\n\t\t\t\"wb-toothbrush\",\n\t\t\t\"wb-bluetoothconnected\",\n\t\t\t\"wb-handpointdown\",\n\t\t\t\"wb-handpointright\",\n\t\t\t\"wb-handpointleft\",\n\t\t\t\"wb-satellite\",\n\t\t\t\"wb-harrypotter\",\n\t\t\t\"wb-jason\",\n\t\t\t\"wb-skull\",\n\t\t\t\"wb-raceflag\",\n\t\t\t\"wb-doghouse\",\n\t\t\t\"wb-birdhouse\",\n\t\t\t\"wb-phonemic\",\n\t\t\t\"wb-island\",\n\t\t\t\"wb-handcuffs\",\n\t\t\t\"wb-addtocart\",\n\t\t\t\"wb-emptycart\",\n\t\t\t\"wb-lasso\",\n\t\t\t\"wb-polygonlasso\",\n\t\t\t\"wb-finder\",\n\t\t\t\"wb-dialpad\",\n\t\t\t\"wb-tictactoe\",\n\t\t\t\"wb-washer\",\n\t\t\t\"wb-theather\",\n\t\t\t\"wb-glassesalt\",\n\t\t\t\"wb-skypeonline\",\n\t\t\t\"wb-skypeaway\",\n\t\t\t\"wb-skypebusy\",\n\t\t\t\"wb-skypeoffline\",\n\t\t\t\"wb-grooveshark\",\n\t\t\t\"wb-lastfm\",\n\t\t\t\"wb-taxi\",\n\t\t\t\"wb-macpro\",\n\t\t\t\"wb-keyboarddelete\",\n\t\t\t\"wb-gearfour\",\n\t\t\t\"wb-flowernew\",\n\t\t\t\"wb-signal\",\n\t\t\t\"wb-aries\",\n\t\t\t\"wb-taurus\",\n\t\t\t\"wb-gemini\",\n\t\t\t\"wb-cancer\",\n\t\t\t\"wb-leo\",\n\t\t\t\"wb-virgo\",\n\t\t\t\"wb-libra\",\n\t\t\t\"wb-scorpio\",\n\t\t\t\"wb-sagitarius\",\n\t\t\t\"wb-capricorn\",\n\t\t\t\"wb-aquarius\",\n\t\t\t\"wb-pisces\",\n\t\t\t\"wb-oneupalt\",\n\t\t\t\"wb-oneup\",\n\t\t\t\"wb-zelda\",\n\t\t\t\"wb-atari\",\n\t\t\t\"wb-halflife\",\n\t\t\t\"wb-halo\",\n\t\t\t\"wb-walle\",\n\t\t\t\"wb-monstersinc\",\n\t\t\t\"wb-alienware\",\n\t\t\t\"wb-warcraft\",\n\t\t\t\"wb-drwho\",\n\t\t\t\"wb-angrybirds\",\n\t\t\t\"wb-visa\",\n\t\t\t\"wb-webplatform\",\n\t\t\t\"wb-parentheses\",\n\t\t\t\"wb-vendetta\",\n\t\t\t\"wb-circleleft\",\n\t\t\t\"wb-circledown\",\n\t\t\t\"wb-circleup\",\n\t\t\t\"wb-circleright\",\n\t\t\t\"wb-donut\",\n\t\t\t\"wb-tea\",\n\t\t\t\"wb-hotdog\",\n\t\t\t\"wb-taco\",\n\t\t\t\"wb-chef\",\n\t\t\t\"wb-pretzel\",\n\t\t\t\"wb-foodtray\",\n\t\t\t\"wb-soup\",\n\t\t\t\"wb-bowlingpins\",\n\t\t\t\"wb-bat\",\n\t\t\t\"wb-dart\",\n\t\t\t\"wb-domino\",\n\t\t\t\"wb-stadium\",\n\t\t\t\"wb-curling\",\n\t\t\t\"wb-whistle\",\n\t\t\t\"wb-hockey\",\n\t\t\t\"wb-addfriend\",\n\t\t\t\"wb-removefriend\",\n\t\t\t\"wb-ticket\",\n\t\t\t\"wb-marvin\",\n\t\t\t\"wb-tooth\",\n\t\t\t\"wb-lungs\",\n\t\t\t\"wb-kidney\",\n\t\t\t\"wb-stomach\",\n\t\t\t\"wb-liver\",\n\t\t\t\"wb-brain\",\n\t\t\t\"wb-helicopter\",\n\t\t\t\"wb-invoice\",\n\t\t\t\"wb-lighthouse\",\n\t\t\t\"wb-diode\",\n\t\t\t\"wb-capacitator\",\n\t\t\t\"wb-dcsource\",\n\t\t\t\"wb-acsource\",\n\t\t\t\"wb-resistor\",\n\t\t\t\"wb-antenna\",\n\t\t\t\"wb-filmstrip\",\n\t\t\t\"wb-lollypop\",\n\t\t\t\"wb-telescope\",\n\t\t\t\"wb-tophat\",\n\t\t\t\"wb-fedora\",\n\t\t\t\"wb-carrot\",\n\t\t\t\"wb-strawberry\",\n\t\t\t\"wb-banana\",\n\t\t\t\"wb-sticker\",\n\t\t\t\"wb-ink\",\n\t\t\t\"wb-dieone\",\n\t\t\t\"wb-dietwo\",\n\t\t\t\"wb-diethree\",\n\t\t\t\"wb-diefour\",\n\t\t\t\"wb-diefive\",\n\t\t\t\"wb-diesix\",\n\t\t\t\"wb-scales\",\n\t\t\t\"wb-wheelchair\",\n\t\t\t\"wb-uniF000\",\n\t\t\t\"wb-uniF001\",\n\t\t\t\"wb-uniF002\",\n\t\t\t\"wb-uniF003\",\n\t\t\t\"wb-uniF004\",\n\t\t\t\"wb-uniF005\",\n\t\t\t\"wb-uniF006\",\n\t\t\t\"wb-uniF007\",\n\t\t\t\"wb-uniF008\",\n\t\t\t\"wb-uniF009\",\n\t\t\t\"wb-uniF00A\",\n\t\t\t\"wb-uniF00B\",\n\t\t\t\"wb-uniF00C\",\n\t\t\t\"wb-uniF00D\",\n\t\t\t\"wb-uniF00E\",\n\t\t\t\"wb-uniF00F\",\n\t\t\t\"wb-uniF010\",\n\t\t\t\"wb-uniF011\",\n\t\t\t\"wb-uniF012\",\n\t\t\t\"wb-uniF013\",\n\t\t\t\"wb-uniF014\",\n\t\t\t\"wb-support3\",\n\t\t\t\"wb-reliability\",\n\t\t\t\"wb-uptime\",\n\t\t\t\"wb-value\",\n\t\t\t\"wb-windows\",\n\t\t\t\"wb-linux\",\n\t\t\t\"wb-domain\",\n\t\t\t\"wb-domain2\",\n\t\t\t\"wb-domain3\",\n\t\t\t\"wb-affiliate\",\n\t\t\t\"wb-intel\",\n\t\t\t\"wb-amd\",\n\t\t\t\"wb-firewall\",\n\t\t\t\"wb-link\",\n\t\t\t\"wb-colocation2\",\n\t\t\t\"wb-colocation3\",\n\t\t\t\"wb-vps\",\n\t\t\t\"wb-server\",\n\t\t\t\"wb-servers\",\n\t\t\t\"wb-email\",\n\t\t\t\"wb-ftp\",\n\t\t\t\"wb-hdd\",\n\t\t\t\"wb-home2\",\n\t\t\t\"wb-ram\",\n\t\t\t\"wb-security\",\n\t\t\t\"wb-security2\",\n\t\t\t\"wb-barchart\",\n\t\t\t\"wb-uni0430\",\n\t\t\t\"wb-webhostinghub\",\n\t\t\t\"wb-price\",\n\t\t\t\"wb-webpage\",\n\t\t\t\"wb-websitebuilder\",\n\t\t\t\"wb-shoppingcart\",\n\t\t\t\"wb-cms\",\n\t\t\t\"wb-sharedhosting\",\n\t\t\t\"wb-managedhosting\",\n\t\t\t\"wb-greenhosting\",\n\t\t\t\"wb-resellerhosting\",\n\t\t\t\"wb-socialnetworking\",\n\t\t\t\"wb-wizard\",\n\t\t\t\"wb-video2\",\n\t\t\t\"wb-password\",\n\t\t\t\"wb-password2\",\n\t\t\t\"wb-contact\",\n\t\t\t\"wb-theme\",\n\t\t\t\"wb-lang\",\n\t\t\t\"wb-shortcut\",\n\t\t\t\"wb-mailbox\",\n\t\t\t\"wb-webmail\",\n\t\t\t\"wb-boxtrapper\",\n\t\t\t\"wb-spam\",\n\t\t\t\"wb-spam2\",\n\t\t\t\"wb-emailforward2\",\n\t\t\t\"wb-error\",\n\t\t\t\"wb-taskmanager\",\n\t\t\t\"wb-awstats\",\n\t\t\t\"wb-protecteddirectory\",\n\t\t\t\"wb-ssh\",\n\t\t\t\"wb-sslmanager\",\n\t\t\t\"wb-hotlinkprotection\",\n\t\t\t\"wb-authentication\",\n\t\t\t\"wb-subdomain\",\n\t\t\t\"wb-domainaddon\",\n\t\t\t\"wb-redirect\",\n\t\t\t\"wb-parkeddomain\",\n\t\t\t\"wb-apache\",\n\t\t\t\"wb-mimetype\",\n\t\t\t\"wb-certificate\",\n\t\t\t\"wb-certificate2\",\n\t\t\t\"wb-error2\",\n\t\t\t\"wb-wrench\",\n\t\t\t\"wb-filter\",\n\t\t\t\"wb-userfiltering\",\n\t\t\t\"wb-accountfiltering\",\n\t\t\t\"wb-backupwizard\",\n\t\t\t\"wb-opencart\",\n\t\t\t\"wb-prestashop\",\n\t\t\t\"wb-smf\",\n\t\t\t\"wb-phpbb\",\n\t\t\t\"wb-dolphinsoftware\",\n\t\t\t\"wb-mybb\",\n\t\t\t\"wb-whmcs\",\n\t\t\t\"wb-ruby\",\n\t\t\t\"wb-html\",\n\t\t\t\"wb-html5\",\n\t\t\t\"wb-css3\",\n\t\t\t\"wb-jquery\",\n\t\t\t\"wb-jqueryui\",\n\t\t\t\"wb-oxwall\",\n\t\t\t\"wb-magento\",\n\t\t\t\"wb-ajax\",\n\t\t\t\"wb-flashplayer\",\n\t\t\t\"wb-python\",\n\t\t\t\"wb-cpanel\",\n\t\t\t\"wb-joomla\",\n\t\t\t\"wb-wordpress\",\n\t\t\t\"wb-drupal\",\n\t\t\t\"wb-mysql\",\n\t\t\t\"wb-codeigniter\",\n\t\t\t\"wb-refresh\",\n\t\t\t\"wb-cgicenter\",\n\t\t\t\"wb-mxentry\",\n\t\t\t\"wb-ftpaccounts\",\n\t\t\t\"wb-ftpsession\",\n\t\t\t\"wb-analytics3\",\n\t\t\t\"wb-leechprotect\",\n\t\t\t\"wb-dnszone\",\n\t\t\t\"wb-commentout\",\n\t\t\t\"wb-github\",\n\t\t\t\"wb-ads\",\n\t\t\t\"wb-java\",\n\t\t\t\"wb-nodejs\",\n\t\t\t\"wb-grails\",\n\t\t\t\"wb-cgi\",\n\t\t\t\"wb-binary\",\n\t\t\t\"wb-push\",\n\t\t\t\"wb-pull\",\n\t\t\t\"wb-query\",\n\t\t\t\"wb-ipcontrol\",\n\t\t\t\"wb-form\",\n\t\t\t\"wb-sc\",\n\t\t\t\"wb-autorespond\",\n\t\t\t\"wb-address\",\n\t\t\t\"wb-mailinglists\",\n\t\t\t\"wb-emailtrace\",\n\t\t\t\"wb-importcontacts\",\n\t\t\t\"wb-key\",\n\t\t\t\"wb-filemanager\",\n\t\t\t\"wb-legacyfilemanager\",\n\t\t\t\"wb-diskspace\",\n\t\t\t\"wb-visitor\",\n\t\t\t\"wb-plugin2\",\n\t\t\t\"wb-faq\",\n\t\t\t\"wb-software\",\n\t\t\t\"wb-phppear\",\n\t\t\t\"wb-php\",\n\t\t\t\"wb-fourohfour\",\n\t\t\t\"wb-indexmanager\",\n\t\t\t\"wb-images\",\n\t\t\t\"wb-plugin\",\n\t\t\t\"wb-calendar2\",\n\t\t\t\"wb-briefcase\",\n\t\t\t\"wb-supportrequest\",\n\t\t\t\"wb-coppermine\",\n\t\t\t\"wb-dropmenu\",\n\t\t\t\"wb-network\",\n\t\t\t\"wb-bug\",\n\t\t\t\"wb-virus\",\n\t\t\t\"wb-syringe\",\n\t\t\t\"wb-pill\",\n\t\t\t\"wb-restricted\",\n\t\t\t\"wb-zikula\",\n\t\t\t\"wb-piwigo\",\n\t\t\t\"wb-fantastico\",\n\t\t\t\"wb-concrete5\",\n\t\t\t\"wb-cmsmadesimple\",\n\t\t\t\"wb-cplusplus\",\n\t\t\t\"wb-csharp\",\n\t\t\t\"wb-squarebrackets\",\n\t\t\t\"wb-braces\",\n\t\t\t\"wb-chevrons\",\n\t\t\t\"wb-perl\",\n\t\t\t\"wb-perl2\",\n\t\t\t\"wb-algorhythm\",\n\t\t\t\"wb-cloud\",\n\t\t\t\"wb-cloudupload\",\n\t\t\t\"wb-clouddownload\",\n\t\t\t\"wb-cloudsync\",\n\t\t\t\"wb-sync\",\n\t\t\t\"wb-lock\",\n\t\t\t\"wb-unlock\",\n\t\t\t\"wb-remotemysql\",\n\t\t\t\"wb-rawaccesslogs\",\n\t\t\t\"wb-document\",\n\t\t\t\"wb-spreadsheet\",\n\t\t\t\"wb-presentation\",\n\t\t\t\"wb-search\",\n\t\t\t\"wb-createfile\",\n\t\t\t\"wb-deletefile\",\n\t\t\t\"wb-save\",\n\t\t\t\"wb-copy\",\n\t\t\t\"wb-cut\",\n\t\t\t\"wb-paste\",\n\t\t\t\"wb-vinyl\",\n\t\t\t\"wb-cd\",\n\t\t\t\"wb-trash\",\n\t\t\t\"wb-trashempty\",\n\t\t\t\"wb-trashfull\",\n\t\t\t\"wb-circleadd\",\n\t\t\t\"wb-circledelete\",\n\t\t\t\"wb-circleselect\",\n\t\t\t\"wb-mouse\",\n\t\t\t\"wb-monitor\",\n\t\t\t\"wb-file\",\n\t\t\t\"wb-notes\",\n\t\t\t\"wb-laptop\",\n\t\t\t\"wb-explorerwindow\",\n\t\t\t\"wb-addfolder\",\n\t\t\t\"wb-deletefolder\",\n\t\t\t\"wb-cursor\",\n\t\t\t\"wb-handpointup\",\n\t\t\t\"wb-handdrag\",\n\t\t\t\"wb-handtwofingers\",\n\t\t\t\"wb-diskspace2\",\n\t\t\t\"wb-sim\",\n\t\t\t\"wb-volumefull\",\n\t\t\t\"wb-volumehalf\",\n\t\t\t\"wb-volumemute\",\n\t\t\t\"wb-volumemute2\",\n\t\t\t\"wb-iphone\",\n\t\t\t\"wb-nexus\",\n\t\t\t\"wb-mobile\",\n\t\t\t\"wb-router\",\n\t\t\t\"wb-plug\",\n\t\t\t\"wb-lock2\",\n\t\t\t\"wb-treediagram\",\n\t\t\t\"wb-powerplug\",\n\t\t\t\"wb-lan\",\n\t\t\t\"wb-sharedfile\",\n\t\t\t\"wb-foldertree\",\n\t\t\t\"wb-tethering\",\n\t\t\t\"wb-edit2\",\n\t\t\t\"wb-batterycharging\",\n\t\t\t\"wb-batterycharged\",\n\t\t\t\"wb-batteryempty\",\n\t\t\t\"wb-battery20\",\n\t\t\t\"wb-battery40\",\n\t\t\t\"wb-battery60\",\n\t\t\t\"wb-battery80\",\n\t\t\t\"wb-batteryfull\",\n\t\t\t\"wb-imac\",\n\t\t\t\"wb-firewire\",\n\t\t\t\"wb-powerjack\",\n\t\t\t\"wb-webcam\",\n\t\t\t\"wb-wifi\",\n\t\t\t\"wb-networksignal\",\n\t\t\t\"wb-batteryaltfull\",\n\t\t\t\"wb-batteryalt60\",\n\t\t\t\"wb-batteryalt30\",\n\t\t\t\"wb-batteryaltcharging\",\n\t\t\t\"wb-keyboard2\",\n\t\t\t\"wb-sd\",\n\t\t\t\"wb-microsd\",\n\t\t\t\"wb-graphicscard\",\n\t\t\t\"wb-screenshot\",\n\t\t\t\"wb-brightness\",\n\t\t\t\"wb-brightnessfull\",\n\t\t\t\"wb-brightnesshalf\",\n\t\t\t\"wb-usb\",\n\t\t\t\"wb-usb2\",\n\t\t\t\"wb-usb3\",\n\t\t\t\"wb-grid\",\n\t\t\t\"wb-details\",\n\t\t\t\"wb-thumbnails\",\n\t\t\t\"wb-list\",\n\t\t\t\"wb-terminal\",\n\t\t\t\"wb-touchpad\",\n\t\t\t\"wb-zip\",\n\t\t\t\"wb-rar\",\n\t\t\t\"wb-tablet\",\n\t\t\t\"wb-keyboard\",\n\t\t\t\"wb-download\",\n\t\t\t\"wb-upload\",\n\t\t\t\"wb-sync2\",\n\t\t\t\"wb-power\",\n\t\t\t\"wb-shutdown\",\n\t\t\t\"wb-restart\",\n\t\t\t\"wb-ubuntu\",\n\t\t\t\"wb-sim2\",\n\t\t\t\"wb-loading\",\n\t\t\t\"wb-hourglass2\",\n\t\t\t\"wb-sidebar\",\n\t\t\t\"wb-print\",\n\t\t\t\"wb-mouse2\",\n\t\t\t\"wb-menu\",\n\t\t\t\"wb-install\",\n\t\t\t\"wb-webcam2\",\n\t\t\t\"wb-android\",\n\t\t\t\"wb-bluetooth\",\n\t\t\t\"wb-comment\",\n\t\t\t\"wb-comment2\",\n\t\t\t\"wb-post\",\n\t\t\t\"wb-quote\",\n\t\t\t\"wb-post2\",\n\t\t\t\"wb-loved\",\n\t\t\t\"wb-love\",\n\t\t\t\"wb-user\",\n\t\t\t\"wb-friends\",\n\t\t\t\"wb-phonebook\",\n\t\t\t\"wb-email2\",\n\t\t\t\"wb-businesscard2\",\n\t\t\t\"wb-thumbup\",\n\t\t\t\"wb-thumbdown\",\n\t\t\t\"wb-favorite\",\n\t\t\t\"wb-favorite2\",\n\t\t\t\"wb-happy\",\n\t\t\t\"wb-sad\",\n\t\t\t\"wb-blankstare\",\n\t\t\t\"wb-laugh\",\n\t\t\t\"wb-facebook\",\n\t\t\t\"wb-skype\",\n\t\t\t\"wb-youtube\",\n\t\t\t\"wb-bookmark\",\n\t\t\t\"wb-notificationdown\",\n\t\t\t\"wb-notificationup\",\n\t\t\t\"wb-flickr\",\n\t\t\t\"wb-share2\",\n\t\t\t\"wb-phone2\",\n\t\t\t\"wb-phone3\",\n\t\t\t\"wb-instagram\",\n\t\t\t\"wb-facebook2\",\n\t\t\t\"wb-dribbble\",\n\t\t\t\"wb-forrst\",\n\t\t\t\"wb-chrome\",\n\t\t\t\"wb-phonebook2\",\n\t\t\t\"wb-gmail\",\n\t\t\t\"wb-yahoo\",\n\t\t\t\"wb-delicious\",\n\t\t\t\"wb-myspace\",\n\t\t\t\"wb-reddit\",\n\t\t\t\"wb-comment3\",\n\t\t\t\"wb-comment4\",\n\t\t\t\"wb-comment5\",\n\t\t\t\"wb-comment6\",\n\t\t\t\"wb-browser\",\n\t\t\t\"wb-avatar\",\n\t\t\t\"wb-phone\",\n\t\t\t\"wb-missedcall\",\n\t\t\t\"wb-incomingcall\",\n\t\t\t\"wb-outgoingcall\",\n\t\t\t\"wb-tag2\",\n\t\t\t\"wb-basecamp\",\n\t\t\t\"wb-avatar2\",\n\t\t\t\"wb-chat\",\n\t\t\t\"wb-googledrive\",\n\t\t\t\"wb-tumblr\",\n\t\t\t\"wb-googleplus\",\n\t\t\t\"wb-linkedin\",\n\t\t\t\"wb-blogger\",\n\t\t\t\"wb-vimeo\",\n\t\t\t\"wb-path\",\n\t\t\t\"wb-twitter\",\n\t\t\t\"wb-pocket\",\n\t\t\t\"wb-share\",\n\t\t\t\"wb-newwindow\",\n\t\t\t\"wb-closewindow\",\n\t\t\t\"wb-newtab\",\n\t\t\t\"wb-closetab\",\n\t\t\t\"wb-archive\",\n\t\t\t\"wb-draft\",\n\t\t\t\"wb-reademail\",\n\t\t\t\"wb-emailrefresh\",\n\t\t\t\"wb-emailforward\",\n\t\t\t\"wb-emailexport\",\n\t\t\t\"wb-emailimport\",\n\t\t\t\"wb-inbox\",\n\t\t\t\"wb-outbox\",\n\t\t\t\"wb-draft2\",\n\t\t\t\"wb-rss\",\n\t\t\t\"wb-evernote\",\n\t\t\t\"wb-video\",\n\t\t\t\"wb-play2\",\n\t\t\t\"wb-movie4\",\n\t\t\t\"wb-headphones\",\n\t\t\t\"wb-music\",\n\t\t\t\"wb-fastforward\",\n\t\t\t\"wb-rewind\",\n\t\t\t\"wb-play\",\n\t\t\t\"wb-stop\",\n\t\t\t\"wb-pause\",\n\t\t\t\"wb-repeat\",\n\t\t\t\"wb-shuffle\",\n\t\t\t\"wb-record\",\n\t\t\t\"wb-next\",\n\t\t\t\"wb-previous\",\n\t\t\t\"wb-voice\",\n\t\t\t\"wb-music2\",\n\t\t\t\"wb-equalizer\",\n\t\t\t\"wb-equalizer2\",\n\t\t\t\"wb-ipod\",\n\t\t\t\"wb-microphone\",\n\t\t\t\"wb-vlc\",\n\t\t\t\"wb-movie5\",\n\t\t\t\"wb-soundwave\",\n\t\t\t\"wb-boombox\",\n\t\t\t\"wb-repeatone\",\n\t\t\t\"wb-next2\",\n\t\t\t\"wb-previous2\",\n\t\t\t\"wb-eject\",\n\t\t\t\"wb-guitar\",\n\t\t\t\"wb-camera\",\n\t\t\t\"wb-videocamera\",\n\t\t\t\"wb-video3\",\n\t\t\t\"wb-piano\",\n\t\t\t\"wb-album\",\n\t\t\t\"wb-hdtv\",\n\t\t\t\"wb-radio\",\n\t\t\t\"wb-podcast\",\n\t\t\t\"wb-headphones2\",\n\t\t\t\"wb-tv\",\n\t\t\t\"wb-violin\",\n\t\t\t\"wb-transform\",\n\t\t\t\"wb-twocolumnright\",\n\t\t\t\"wb-twocolumnright2\",\n\t\t\t\"wb-twocolumnleft\",\n\t\t\t\"wb-twocolumnleft2\",\n\t\t\t\"wb-threecolumn\",\n\t\t\t\"wb-inkpen\",\n\t\t\t\"wb-eyedropper\",\n\t\t\t\"wb-font\",\n\t\t\t\"wb-crop\",\n\t\t\t\"wb-rectangleselection\",\n\t\t\t\"wb-circleselection\",\n\t\t\t\"wb-selectionadd\",\n\t\t\t\"wb-selectionrmove\",\n\t\t\t\"wb-selectionintersect\",\n\t\t\t\"wb-bucket\",\n\t\t\t\"wb-vector\",\n\t\t\t\"wb-edit\",\n\t\t\t\"wb-brush\",\n\t\t\t\"wb-palette\",\n\t\t\t\"wb-book\",\n\t\t\t\"wb-wacom\",\n\t\t\t\"wb-elipse\",\n\t\t\t\"wb-roundedrectangle\",\n\t\t\t\"wb-polygon\",\n\t\t\t\"wb-line\",\n\t\t\t\"wb-lineheight\",\n\t\t\t\"wb-sortbynameascending\",\n\t\t\t\"wb-sortbynamedescending\",\n\t\t\t\"wb-sortbysizeascending\",\n\t\t\t\"wb-sortbysizedescending\",\n\t\t\t\"wb-write\",\n\t\t\t\"wb-macro\",\n\t\t\t\"wb-spray\",\n\t\t\t\"wb-canvas\",\n\t\t\t\"wb-adobe\",\n\t\t\t\"wb-layers\",\n\t\t\t\"wb-layers2\",\n\t\t\t\"wb-pagebreak\",\n\t\t\t\"wb-photoshop\",\n\t\t\t\"wb-illustrator\",\n\t\t\t\"wb-flash\",\n\t\t\t\"wb-dreamweaver\",\n\t\t\t\"wb-alignverticalcenters\",\n\t\t\t\"wb-alignhorizontalcenters\",\n\t\t\t\"wb-alignbottomedges\",\n\t\t\t\"wb-aligntopedges\",\n\t\t\t\"wb-alignrightedges\",\n\t\t\t\"wb-alignleftedges\",\n\t\t\t\"wb-alignleft\",\n\t\t\t\"wb-alignright\",\n\t\t\t\"wb-aligncenter\",\n\t\t\t\"wb-alignjustify\",\n\t\t\t\"wb-distributeverticalcenters\",\n\t\t\t\"wb-distributehorizontalcenters\",\n\t\t\t\"wb-shapes\",\n\t\t\t\"wb-exposure\",\n\t\t\t\"wb-invert\",\n\t\t\t\"wb-insertpicture\",\n\t\t\t\"wb-insertpictureleft\",\n\t\t\t\"wb-insertpictureright\",\n\t\t\t\"wb-insertpicturecenter\",\n\t\t\t\"wb-insertpiechart\",\n\t\t\t\"wb-insertbarchart\",\n\t\t\t\"wb-color\",\n\t\t\t\"wb-clearformatting\",\n\t\t\t\"wb-paintbrush\",\n\t\t\t\"wb-kerning\",\n\t\t\t\"wb-subscript\",\n\t\t\t\"wb-superscript\",\n\t\t\t\"wb-magazine\",\n\t\t\t\"wb-resize\",\n\t\t\t\"wb-pen\",\n\t\t\t\"wb-ruler\",\n\t\t\t\"wb-moleskine\",\n\t\t\t\"wb-eraser\",\n\t\t\t\"wb-indentleft\",\n\t\t\t\"wb-indentright\",\n\t\t\t\"wb-bold\",\n\t\t\t\"wb-italic\",\n\t\t\t\"wb-underline\",\n\t\t\t\"wb-strikethrough\",\n\t\t\t\"wb-fontheight\",\n\t\t\t\"wb-fontwidth\",\n\t\t\t\"wb-paintroll\",\n\t\t\t\"wb-wizard2\",\n\t\t\t\"wb-creativecommons\",\n\t\t\t\"wb-addshape\",\n\t\t\t\"wb-subtractshape\",\n\t\t\t\"wb-intersectshape\",\n\t\t\t\"wb-excludeshape\",\n\t\t\t\"wb-mergeshapes\",\n\t\t\t\"wb-rotateclockwise\",\n\t\t\t\"wb-rotatecounterclockwise\",\n\t\t\t\"wb-marker\",\n\t\t\t\"wb-canvasrulers\",\n\t\t\t\"wb-sun\",\n\t\t\t\"wb-moon\",\n\t\t\t\"wb-water\",\n\t\t\t\"wb-maps\",\n\t\t\t\"wb-pin\",\n\t\t\t\"wb-flag\",\n\t\t\t\"wb-placeios\",\n\t\t\t\"wb-temperature\",\n\t\t\t\"wb-temperature2\",\n\t\t\t\"wb-calendar\",\n\t\t\t\"wb-clock\",\n\t\t\t\"wb-truck\",\n\t\t\t\"wb-scope\",\n\t\t\t\"wb-spoon\",\n\t\t\t\"wb-knife\",\n\t\t\t\"wb-tent\",\n\t\t\t\"wb-gasstation\",\n\t\t\t\"wb-forest\",\n\t\t\t\"wb-umbrella\",\n\t\t\t\"wb-stopwatch\",\n\t\t\t\"wb-boat\",\n\t\t\t\"wb-roadsign\",\n\t\t\t\"wb-forest2\",\n\t\t\t\"wb-port\",\n\t\t\t\"wb-gpsoff\",\n\t\t\t\"wb-gpson\",\n\t\t\t\"wb-place\",\n\t\t\t\"wb-placeadd\",\n\t\t\t\"wb-placedelete\",\n\t\t\t\"wb-checkin\",\n\t\t\t\"wb-place2\",\n\t\t\t\"wb-place2add\",\n\t\t\t\"wb-place2delete\",\n\t\t\t\"wb-checkin2\",\n\t\t\t\"wb-wheel\",\n\t\t\t\"wb-cigarette\",\n\t\t\t\"wb-trafficlight\",\n\t\t\t\"wb-clock2\",\n\t\t\t\"wb-cactus\",\n\t\t\t\"wb-watertap\",\n\t\t\t\"wb-snow\",\n\t\t\t\"wb-rain\",\n\t\t\t\"wb-storm\",\n\t\t\t\"wb-storm2\",\n\t\t\t\"wb-flag2\",\n\t\t\t\"wb-alarm\",\n\t\t\t\"wb-bag\",\n\t\t\t\"wb-coffee\",\n\t\t\t\"wb-martini\",\n\t\t\t\"wb-scope2\",\n\t\t\t\"wb-wine\",\n\t\t\t\"wb-automobile\",\n\t\t\t\"wb-navigation\",\n\t\t\t\"wb-wave2\",\n\t\t\t\"wb-wave\",\n\t\t\t\"wb-alarm2\",\n\t\t\t\"wb-airplane\",\n\t\t\t\"wb-shipping\",\n\t\t\t\"wb-roadsignleft\",\n\t\t\t\"wb-bus\",\n\t\t\t\"wb-stamp\",\n\t\t\t\"wb-stamp2\",\n\t\t\t\"wb-beer\",\n\t\t\t\"wb-building\",\n\t\t\t\"wb-emergency\",\n\t\t\t\"wb-hospital\",\n\t\t\t\"wb-railroad\",\n\t\t\t\"wb-road\",\n\t\t\t\"wb-freeway\",\n\t\t\t\"wb-cup\",\n\t\t\t\"wb-men\",\n\t\t\t\"wb-women\",\n\t\t\t\"wb-mug\",\n\t\t\t\"wb-metro\",\n\t\t\t\"wb-stocks\",\n\t\t\t\"wb-stockup\",\n\t\t\t\"wb-stockdown\",\n\t\t\t\"wb-timeline\",\n\t\t\t\"wb-coupon\",\n\t\t\t\"wb-playstore\",\n\t\t\t\"wb-news\",\n\t\t\t\"wb-piggybank\",\n\t\t\t\"wb-calculator\",\n\t\t\t\"wb-dollar2\",\n\t\t\t\"wb-euro2\",\n\t\t\t\"wb-pound\",\n\t\t\t\"wb-pound2\",\n\t\t\t\"wb-yen2\",\n\t\t\t\"wb-briefcase2\",\n\t\t\t\"wb-briefcase3\",\n\t\t\t\"wb-gift\",\n\t\t\t\"wb-abacus\",\n\t\t\t\"wb-bank\",\n\t\t\t\"wb-law\",\n\t\t\t\"wb-price2\",\n\t\t\t\"wb-calculator2\",\n\t\t\t\"wb-mastercard\",\n\t\t\t\"wb-paypal\",\n\t\t\t\"wb-skrill\",\n\t\t\t\"wb-alertpay\",\n\t\t\t\"wb-westernunion\",\n\t\t\t\"wb-exchange\",\n\t\t\t\"wb-appointment\",\n\t\t\t\"wb-officechair\",\n\t\t\t\"wb-cashregister\",\n\t\t\t\"wb-squareapp\",\n\t\t\t\"wb-googlewallet\",\n\t\t\t\"wb-moneybag\",\n\t\t\t\"wb-store\",\n\t\t\t\"wb-shoppingbag\",\n\t\t\t\"wb-rubberstamp\",\n\t\t\t\"wb-qrcode\",\n\t\t\t\"wb-barcode\",\n\t\t\t\"wb-sale\",\n\t\t\t\"wb-bill\",\n\t\t\t\"wb-creditcard\",\n\t\t\t\"wb-factory\",\n\t\t\t\"wb-cash\",\n\t\t\t\"wb-shredder\",\n\t\t\t\"wb-flask\",\n\t\t\t\"wb-flaskfull\",\n\t\t\t\"wb-fire\",\n\t\t\t\"wb-eye\",\n\t\t\t\"wb-magnet\",\n\t\t\t\"wb-radioactive\",\n\t\t\t\"wb-microscope\",\n\t\t\t\"wb-paperclip\",\n\t\t\t\"wb-paperclip2\",\n\t\t\t\"wb-paperclip3\",\n\t\t\t\"wb-megaphone\",\n\t\t\t\"wb-student\",\n\t\t\t\"wb-icecream2\",\n\t\t\t\"wb-switch\",\n\t\t\t\"wb-powerplugeu\",\n\t\t\t\"wb-powerplugus\",\n\t\t\t\"wb-switchon2\",\n\t\t\t\"wb-switchoff2\",\n\t\t\t\"wb-crown\",\n\t\t\t\"wb-shovel\",\n\t\t\t\"wb-hammer\",\n\t\t\t\"wb-screwdriver\",\n\t\t\t\"wb-screwdriver2\",\n\t\t\t\"wb-sunglasses\",\n\t\t\t\"wb-glasses\",\n\t\t\t\"wb-paperairplane\",\n\t\t\t\"wb-recycle\",\n\t\t\t\"wb-remote\",\n\t\t\t\"wb-flashlight\",\n\t\t\t\"wb-candle\",\n\t\t\t\"wb-forklift\",\n\t\t\t\"wb-rocket\",\n\t\t\t\"wb-paw\",\n\t\t\t\"wb-orange\",\n\t\t\t\"wb-croisant\",\n\t\t\t\"wb-binoculars\",\n\t\t\t\"wb-woman\",\n\t\t\t\"wb-man\",\n\t\t\t\"wb-patch\",\n\t\t\t\"wb-icecream\",\n\t\t\t\"wb-flower\",\n\t\t\t\"wb-target\",\n\t\t\t\"wb-peace\",\n\t\t\t\"wb-lightning2\",\n\t\t\t\"wb-sheriff\",\n\t\t\t\"wb-police\",\n\t\t\t\"wb-hanger\",\n\t\t\t\"wb-addtolist\",\n\t\t\t\"wb-toast\",\n\t\t\t\"wb-director\",\n\t\t\t\"wb-fence\",\n\t\t\t\"wb-science\",\n\t\t\t\"wb-lamp\",\n\t\t\t\"wb-wrench2\",\n\t\t\t\"wb-hamburger\",\n\t\t\t\"wb-alert2\",\n\t\t\t\"wb-eye2\",\n\t\t\t\"wb-jar\",\n\t\t\t\"wb-extinguisher\",\n\t\t\t\"wb-plaque\",\n\t\t\t\"wb-bed\",\n\t\t\t\"wb-firstaid\",\n\t\t\t\"wb-psbuttoncircle\",\n\t\t\t\"wb-psbuttonsquare\",\n\t\t\t\"wb-psbuttontriangle\",\n\t\t\t\"wb-psbuttonx\",\n\t\t\t\"wb-buttona\",\n\t\t\t\"wb-buttonb\",\n\t\t\t\"wb-buttonx\",\n\t\t\t\"wb-buttony\",\n\t\t\t\"wb-pscursor\",\n\t\t\t\"wb-psup\",\n\t\t\t\"wb-psright\",\n\t\t\t\"wb-psdown\",\n\t\t\t\"wb-psleft\",\n\t\t\t\"wb-analogleft\",\n\t\t\t\"wb-analogright\",\n\t\t\t\"wb-analogup\",\n\t\t\t\"wb-analogdown\",\n\t\t\t\"wb-psl1\",\n\t\t\t\"wb-psl2\",\n\t\t\t\"wb-psr1\",\n\t\t\t\"wb-psr2\",\n\t\t\t\"wb-gamecursor\",\n\t\t\t\"wb-controllerps\",\n\t\t\t\"wb-controllernes\",\n\t\t\t\"wb-controllersnes\",\n\t\t\t\"wb-joystickarcade\",\n\t\t\t\"wb-joystickatari\",\n\t\t\t\"wb-podium\",\n\t\t\t\"wb-trophy\",\n\t\t\t\"wb-die\",\n\t\t\t\"wb-boardgame\",\n\t\t\t\"wb-ghost\",\n\t\t\t\"wb-pacman\",\n\t\t\t\"wb-bomb\",\n\t\t\t\"wb-steam\",\n\t\t\t\"wb-starempty\",\n\t\t\t\"wb-starhalf\",\n\t\t\t\"wb-starfull\",\n\t\t\t\"wb-lifeempty\",\n\t\t\t\"wb-lifehalf\",\n\t\t\t\"wb-lifefull\",\n\t\t\t\"wb-warmedal\",\n\t\t\t\"wb-medal\",\n\t\t\t\"wb-medalgold\",\n\t\t\t\"wb-medalsilver\",\n\t\t\t\"wb-medalbronze\",\n\t\t\t\"wb-basketball\",\n\t\t\t\"wb-tennis\",\n\t\t\t\"wb-football\",\n\t\t\t\"wb-americanfootball\",\n\t\t\t\"wb-sword\",\n\t\t\t\"wb-bow\",\n\t\t\t\"wb-axe\",\n\t\t\t\"wb-pingpong\",\n\t\t\t\"wb-golf\",\n\t\t\t\"wb-racquet\",\n\t\t\t\"wb-bowling\",\n\t\t\t\"wb-hearts\",\n\t\t\t\"wb-spades\",\n\t\t\t\"wb-clubs\",\n\t\t\t\"wb-diamonds\",\n\t\t\t\"wb-pawn\",\n\t\t\t\"wb-bishop\",\n\t\t\t\"wb-rook\",\n\t\t\t\"wb-knight\",\n\t\t\t\"wb-king\",\n\t\t\t\"wb-queen\",\n\t\t\t\"wb-down\",\n\t\t\t\"wb-downleft\",\n\t\t\t\"wb-downright\",\n\t\t\t\"wb-up\",\n\t\t\t\"wb-upleft\",\n\t\t\t\"wb-upright\",\n\t\t\t\"wb-right\",\n\t\t\t\"wb-left\",\n\t\t\t\"wb-settings2\",\n\t\t\t\"wb-settings3\",\n\t\t\t\"wb-settings4\",\n\t\t\t\"wb-settings5\",\n\t\t\t\"wb-bigger\",\n\t\t\t\"wb-smaller\",\n\t\t\t\"wb-equals\",\n\t\t\t\"wb-restore\",\n\t\t\t\"wb-minimize\",\n\t\t\t\"wb-maximize\",\n\t\t\t\"wb-checkbox\",\n\t\t\t\"wb-checkbox2\",\n\t\t\t\"wb-radiobutton\",\n\t\t\t\"wb-forbidden\",\n\t\t\t\"wb-forbidden2\",\n\t\t\t\"wb-info\",\n\t\t\t\"wb-alert\",\n\t\t\t\"wb-asterisk2\",\n\t\t\t\"wb-resizeh\",\n\t\t\t\"wb-resizev\",\n\t\t\t\"wb-fastleft\",\n\t\t\t\"wb-fastright\",\n\t\t\t\"wb-fastup\",\n\t\t\t\"wb-fastdown\",\n\t\t\t\"wb-back\",\n\t\t\t\"wb-forward\",\n\t\t\t\"wb-zoomin\",\n\t\t\t\"wb-zoomout\",\n\t\t\t\"wb-move\",\n\t\t\t\"wb-enter\",\n\t\t\t\"wb-exit\",\n\t\t\t\"wb-scaleup\",\n\t\t\t\"wb-scaledown\",\n\t\t\t\"wb-mergecells\",\n\t\t\t\"wb-quoteup\",\n\t\t\t\"wb-quotedown\",\n\t\t\t\"wb-undo\",\n\t\t\t\"wb-redo\",\n\t\t\t\"wb-switchon\",\n\t\t\t\"wb-switchoff\",\n\t\t\t\"wb-importfile\",\n\t\t\t\"wb-exportfile\",\n\t\t\t\"wb-preview\",\n\t\t\t\"wb-pagesetup\",\n\t\t\t\"wb-opennewwindow\",\n\t\t\t\"wb-link2\",\n\t\t\t\"wb-merge\",\n\t\t\t\"wb-split\",\n\t\t\t\"wb-infographic\",\n\t\t\t\"wb-wizard3\",\n\t\t\t\"wb-lightbulb\",\n\t\t\t\"wb-loading2\",\n\t\t\t\"wb-cmd\",\n\t\t\t\"wb-sum\",\n\t\t\t\"wb-root\",\n\t\t\t\"wb-synckeeponserver\",\n\t\t\t\"wb-synckeeplocal\",\n\t\t\t\"wb-dollar\",\n\t\t\t\"wb-percent\",\n\t\t\t\"wb-asterisk\",\n\t\t\t\"wb-plus\",\n\t\t\t\"wb-_0\",\n\t\t\t\"wb-_1\",\n\t\t\t\"wb-_2\",\n\t\t\t\"wb-_3\",\n\t\t\t\"wb-_4\",\n\t\t\t\"wb-_5\",\n\t\t\t\"wb-_6\",\n\t\t\t\"wb-_7\",\n\t\t\t\"wb-_8\",\n\t\t\t\"wb-_9\",\n\t\t\t\"wb-at\",\n\t\t\t\"wb-A\",\n\t\t\t\"wb-B\",\n\t\t\t\"wb-C\",\n\t\t\t\"wb-D\",\n\t\t\t\"wb-E\",\n\t\t\t\"wb-F\",\n\t\t\t\"wb-G\",\n\t\t\t\"wb-H\",\n\t\t\t\"wb-I\",\n\t\t\t\"wb-J\",\n\t\t\t\"wb-K\",\n\t\t\t\"wb-L\",\n\t\t\t\"wb-M\",\n\t\t\t\"wb-N\",\n\t\t\t\"wb-O\",\n\t\t\t\"wb-P\",\n\t\t\t\"wb-Q\",\n\t\t\t\"wb-R\",\n\t\t\t\"wb-S\",\n\t\t\t\"wb-T\",\n\t\t\t\"wb-U\",\n\t\t\t\"wb-V\",\n\t\t\t\"wb-W\",\n\t\t\t\"wb-X\",\n\t\t\t\"wb-Y\",\n\t\t\t\"wb-Z\",\n\t\t\t\"wb-a\",\n\t\t\t\"wb-b\",\n\t\t\t\"wb-c\",\n\t\t\t\"wb-d\",\n\t\t\t\"wb-e\",\n\t\t\t\"wb-f\",\n\t\t\t\"wb-g\",\n\t\t\t\"wb-h\",\n\t\t\t\"wb-i\",\n\t\t\t\"wb-j\",\n\t\t\t\"wb-k\",\n\t\t\t\"wb-l\",\n\t\t\t\"wb-m\",\n\t\t\t\"wb-n\",\n\t\t\t\"wb-o\",\n\t\t\t\"wb-p\",\n\t\t\t\"wb-q\",\n\t\t\t\"wb-r\",\n\t\t\t\"wb-s\",\n\t\t\t\"wb-t\",\n\t\t\t\"wb-u\",\n\t\t\t\"wb-v\",\n\t\t\t\"wb-w\",\n\t\t\t\"wb-x\",\n\t\t\t\"wb-y\",\n\t\t\t\"wb-z\",\n\t\t\t\"wb-yen\",\n\t\t\t\"wb-copyright\",\n\t\t\t\"wi-windy-sunny-2\",\n\t\t\t\"wi-compass-west\",\n\t\t\t\"wi-sunny-1\",\n\t\t\t\"wi-windy-sunny-1\",\n\t\t\t\"wi-rainy-sunny-1\",\n\t\t\t\"wi-thunder\",\n\t\t\t\"wi-rainy-sunny2\",\n\t\t\t\"wi-rainy-sunny3\",\n\t\t\t\"wi-rainy-sunny-2\",\n\t\t\t\"wi-rainy-sunny-3\",\n\t\t\t\"wi-snowy-sunny-4\",\n\t\t\t\"wi-rainy-sunny\",\n\t\t\t\"wi-sunny-2\",\n\t\t\t\"wi-sunny\",\n\t\t\t\"wi-thunder-rainy-sunny-1\",\n\t\t\t\"wi-thunder-rainy-sunny\",\n\t\t\t\"wi-windy-2\",\n\t\t\t\"wi-windy-1\",\n\t\t\t\"wi-cloudy\",\n\t\t\t\"wi-windy-3\",\n\t\t\t\"wi-rainy-1\",\n\t\t\t\"wi-thunder-lightning\",\n\t\t\t\"wi-rainy-2\",\n\t\t\t\"wi-rainy-3\",\n\t\t\t\"wi-rainy-4\",\n\t\t\t\"wi-rainy-5\",\n\t\t\t\"wi-snowy\",\n\t\t\t\"wi-rainy\",\n\t\t\t\"wi-thunder-rainy-1\",\n\t\t\t\"wi-thunder-rainy\",\n\t\t\t\"wi-windy-4\",\n\t\t\t\"wi-windy-night-1\",\n\t\t\t\"wi-windy-night-2\",\n\t\t\t\"wi-rainy-night-1\",\n\t\t\t\"wi-thunder-night-1\",\n\t\t\t\"wi-rainy-night-2\",\n\t\t\t\"wi-rainy-night-3\",\n\t\t\t\"wi-rainy-night-4\",\n\t\t\t\"wi-rainy-night-5\",\n\t\t\t\"wi-snowy-night-1\",\n\t\t\t\"wi-rainy-night-6\",\n\t\t\t\"wi-thunder-rainy-night-1\",\n\t\t\t\"wi-thunder-rainy-night-2\",\n\t\t\t\"wi-night-moon\",\n\t\t\t\"wi-windy-5\",\n\t\t\t\"wi-windy-sunny\",\n\t\t\t\"wi-windy-night-3\",\n\t\t\t\"wi-rainy-night-7\",\n\t\t\t\"wi-thunder-night\",\n\t\t\t\"wi-rainy-night-8\",\n\t\t\t\"wi-rainy-night-9\",\n\t\t\t\"wi-rainy-night-10\",\n\t\t\t\"wi-rainy-night-11\",\n\t\t\t\"wi-snowy-night\",\n\t\t\t\"wi-rainy-night\",\n\t\t\t\"wi-thunder-rainy-night-3\",\n\t\t\t\"wi-thunder-rainy-night\",\n\t\t\t\"wi-celcius\",\n\t\t\t\"wi-download-cloud\",\n\t\t\t\"wi-refresh-cloud\",\n\t\t\t\"wi-upload-cloud\",\n\t\t\t\"wi-cloud\",\n\t\t\t\"wi-degree\",\n\t\t\t\"wi-south-west-arrow\",\n\t\t\t\"wi-south-arrow-down\",\n\t\t\t\"wi-fahrenheit\",\n\t\t\t\"wi-sunrise-sunset-1\",\n\t\t\t\"wi-sunrise-sunset-2\",\n\t\t\t\"wi-west-arrow\",\n\t\t\t\"wi-windy-night\",\n\t\t\t\"wi-arc-arrow\",\n\t\t\t\"wi-refresh-circle-arrow\",\n\t\t\t\"wi-east-arrow\",\n\t\t\t\"wi-rain\",\n\t\t\t\"wi-wind\",\n\t\t\t\"wi-sunrise-sunset-3\",\n\t\t\t\"wi-sunrise-sunset\",\n\t\t\t\"wi-temperature-1\",\n\t\t\t\"wi-temperature-2\",\n\t\t\t\"wi-temperature\",\n\t\t\t\"wi-tornado\",\n\t\t\t\"wi-north-east-arrow\",\n\t\t\t\"wi-north-arrow\",\n\t\t\t\"wi-compass-east\",\n\t\t\t\"wi-compass-north-east\",\n\t\t\t\"wi-compass-north-west\",\n\t\t\t\"wi-compass-north\",\n\t\t\t\"wi-compass-south-east\",\n\t\t\t\"wi-compass-south-west\",\n\t\t\t\"wi-compass-south\",\n\t\t\t\"wi-windy\",\n\t\t\t\"wl-3docean\",\n\t\t\t\"wl-youthedesigner1\",\n\t\t\t\"wl-activeden\",\n\t\t\t\"wl-activeden1\",\n\t\t\t\"wl-appstorm\",\n\t\t\t\"wl-appstorm1\",\n\t\t\t\"wl-audiojungle\",\n\t\t\t\"wl-audiojungle1\",\n\t\t\t\"wl-codecanyon\",\n\t\t\t\"wl-codecanyon1\",\n\t\t\t\"wl-codrops\",\n\t\t\t\"wl-codrops1\",\n\t\t\t\"wl-coliss\",\n\t\t\t\"wl-coliss1\",\n\t\t\t\"wl-creative5\",\n\t\t\t\"wl-creative6\",\n\t\t\t\"wl-creattica\",\n\t\t\t\"wl-cssmania\",\n\t\t\t\"wl-cssmatic\",\n\t\t\t\"wl-desarrolloweb\",\n\t\t\t\"wl-desarrolloweb1\",\n\t\t\t\"wl-desarrolloweb2\",\n\t\t\t\"wl-designbeep\",\n\t\t\t\"wl-designer\",\n\t\t\t\"wl-diego\",\n\t\t\t\"wl-dr\",\n\t\t\t\"wl-drwebde\",\n\t\t\t\"wl-elegant10\",\n\t\t\t\"wl-envato\",\n\t\t\t\"wl-envato1\",\n\t\t\t\"wl-flaticon\",\n\t\t\t\"wl-football10\",\n\t\t\t\"wl-freepik2\",\n\t\t\t\"wl-freepik3\",\n\t\t\t\"wl-freepikcom\",\n\t\t\t\"wl-genbeta\",\n\t\t\t\"wl-genbeta1\",\n\t\t\t\"wl-graphicriver\",\n\t\t\t\"wl-graphicriver1\",\n\t\t\t\"wl-hongkiat\",\n\t\t\t\"wl-inkydeals\",\n\t\t\t\"wl-inkydeals1\",\n\t\t\t\"wl-inspiredmag\",\n\t\t\t\"wl-inspiremag\",\n\t\t\t\"wl-instant\",\n\t\t\t\"wl-instant1\",\n\t\t\t\"wl-isopixel\",\n\t\t\t\"wl-istockphoto\",\n\t\t\t\"wl-microlancer\",\n\t\t\t\"wl-microlancer1\",\n\t\t\t\"wl-microsiervos\",\n\t\t\t\"wl-3docean1\",\n\t\t\t\"wl-mojo\",\n\t\t\t\"wl-moz\",\n\t\t\t\"wl-noupe\",\n\t\t\t\"wl-page53\",\n\t\t\t\"wl-photodune\",\n\t\t\t\"wl-photodune1\",\n\t\t\t\"wl-pixabay\",\n\t\t\t\"wl-pixeden\",\n\t\t\t\"wl-pixeden1\",\n\t\t\t\"wl-psd1\",\n\t\t\t\"wl-resultados\",\n\t\t\t\"wl-sitepoint\",\n\t\t\t\"wl-sitepoint1\",\n\t\t\t\"wl-smashing\",\n\t\t\t\"wl-smashing1\",\n\t\t\t\"wl-smashing2\",\n\t\t\t\"wl-speckyboy\",\n\t\t\t\"wl-spyrestudios\",\n\t\t\t\"wl-stockvault\",\n\t\t\t\"wl-stockvault1\",\n\t\t\t\"wl-taringa\",\n\t\t\t\"wl-template\",\n\t\t\t\"wl-templatemonster\",\n\t\t\t\"wl-themeforest\",\n\t\t\t\"wl-themeforest1\",\n\t\t\t\"wl-thumbrio\",\n\t\t\t\"wl-ultralinx\",\n\t\t\t\"wl-vandelay\",\n\t\t\t\"wl-vecteezy\",\n\t\t\t\"wl-vector12\",\n\t\t\t\"wl-videohive\",\n\t\t\t\"wl-videohive1\",\n\t\t\t\"wl-web13\",\n\t\t\t\"wl-web14\",\n\t\t\t\"wl-web15\",\n\t\t\t\"wl-web16\",\n\t\t\t\"wl-web17\",\n\t\t\t\"wl-web18\",\n\t\t\t\"wl-web19\",\n\t\t\t\"wl-webappers\",\n\t\t\t\"wl-weblogs\",\n\t\t\t\"wl-weblogs1\",\n\t\t\t\"wl-woothemes\",\n\t\t\t\"wl-woothemes1\",\n\t\t\t\"wl-wwwhats\",\n\t\t\t\"wl-wwwhatsnew\",\n\t\t\t\"wl-xataka\",\n\t\t\t\"wl-xataka1\",\n\t\t\t\"wl-youthedesigner\",\n\t\t\t\"wl-microsiervos1\",\n\t\t\t\"ws-search\",\n\t\t\t\"ws-odnoklassniki-rect\",\n\t\t\t\"ws-heart\",\n\t\t\t\"ws-heart-empty\",\n\t\t\t\"ws-star\",\n\t\t\t\"ws-user\",\n\t\t\t\"ws-video\",\n\t\t\t\"ws-picture\",\n\t\t\t\"ws-th-large\",\n\t\t\t\"ws-th\",\n\t\t\t\"ws-th-list\",\n\t\t\t\"ws-ok\",\n\t\t\t\"ws-ok-circle\",\n\t\t\t\"ws-cancel\",\n\t\t\t\"ws-cancel-circle\",\n\t\t\t\"ws-plus-circle\",\n\t\t\t\"ws-minus-circle\",\n\t\t\t\"ws-link\",\n\t\t\t\"ws-attach\",\n\t\t\t\"ws-lock\",\n\t\t\t\"ws-lock-open\",\n\t\t\t\"ws-tag\",\n\t\t\t\"ws-reply\",\n\t\t\t\"ws-reply-all\",\n\t\t\t\"ws-forward\",\n\t\t\t\"ws-code\",\n\t\t\t\"ws-retweet\",\n\t\t\t\"ws-comment\",\n\t\t\t\"ws-comment-alt\",\n\t\t\t\"ws-chat\",\n\t\t\t\"ws-attention\",\n\t\t\t\"ws-location\",\n\t\t\t\"ws-doc\",\n\t\t\t\"ws-docs-landscape\",\n\t\t\t\"ws-folder\",\n\t\t\t\"ws-archive\",\n\t\t\t\"ws-rss\",\n\t\t\t\"ws-rss-alt\",\n\t\t\t\"ws-cog\",\n\t\t\t\"ws-logout\",\n\t\t\t\"ws-clock\",\n\t\t\t\"ws-block\",\n\t\t\t\"ws-mail\",\n\t\t\t\"ws-resize-full-circle\",\n\t\t\t\"ws-popup\",\n\t\t\t\"ws-left-open\",\n\t\t\t\"ws-right-open\",\n\t\t\t\"ws-down-circle\",\n\t\t\t\"ws-left-circle\",\n\t\t\t\"ws-right-circle\",\n\t\t\t\"ws-up-circle\",\n\t\t\t\"ws-down-dir\",\n\t\t\t\"ws-right-dir\",\n\t\t\t\"ws-down-micro\",\n\t\t\t\"ws-up-micro\",\n\t\t\t\"ws-cw-circle\",\n\t\t\t\"ws-arrows-cw\",\n\t\t\t\"ws-updown-circle\",\n\t\t\t\"ws-target\",\n\t\t\t\"ws-signal\",\n\t\t\t\"ws-progress-0\",\n\t\t\t\"ws-progress-1\",\n\t\t\t\"ws-progress-2\",\n\t\t\t\"ws-progress-3\",\n\t\t\t\"ws-progress-4\",\n\t\t\t\"ws-progress-5\",\n\t\t\t\"ws-progress-6\",\n\t\t\t\"ws-progress-7\",\n\t\t\t\"ws-font\",\n\t\t\t\"ws-list\",\n\t\t\t\"ws-list-numbered\",\n\t\t\t\"ws-indent-left\",\n\t\t\t\"ws-indent-right\",\n\t\t\t\"ws-cloud\",\n\t\t\t\"ws-terminal\",\n\t\t\t\"ws-facebook-rect\",\n\t\t\t\"ws-twitter-bird\",\n\t\t\t\"ws-vimeo-rect\",\n\t\t\t\"ws-tumblr-rect\",\n\t\t\t\"ws-googleplus-rect\",\n\t\t\t\"ws-linkedin-rect\",\n\t\t\t\"ws-skype\",\n\t\t\t\"ws-vkontakte-rect\",\n\t\t\t\"ws-youtube\",\n\t\t\t\"ws-resize-full\",\n\t\t\t\"zm-facebook\",\n\t\t\t\"zm-twitter-old\",\n\t\t\t\"zm-share\",\n\t\t\t\"zm-feed\",\n\t\t\t\"zm-bird\",\n\t\t\t\"zm-chat\",\n\t\t\t\"zm-envelope\",\n\t\t\t\"zm-envelope-2\",\n\t\t\t\"zm-phone\",\n\t\t\t\"zm-phone-2\",\n\t\t\t\"zm-mouse\",\n\t\t\t\"zm-cd\",\n\t\t\t\"zm-floppy\",\n\t\t\t\"zm-hardware\",\n\t\t\t\"zm-usb\",\n\t\t\t\"zm-cord\",\n\t\t\t\"zm-socket\",\n\t\t\t\"zm-socket-2\",\n\t\t\t\"zm-socket-3\",\n\t\t\t\"zm-printer\",\n\t\t\t\"zm-music\",\n\t\t\t\"zm-microphone\",\n\t\t\t\"zm-radio\",\n\t\t\t\"zm-ipod\",\n\t\t\t\"zm-headphone\",\n\t\t\t\"zm-cassette\",\n\t\t\t\"zm-broadcast\",\n\t\t\t\"zm-broadcast-2\",\n\t\t\t\"zm-calculator\",\n\t\t\t\"zm-gamepad\",\n\t\t\t\"zm-battery\",\n\t\t\t\"zm-battery-full\",\n\t\t\t\"zm-folder\",\n\t\t\t\"zm-search\",\n\t\t\t\"zm-zoom-out\",\n\t\t\t\"zm-zoom-in\",\n\t\t\t\"zm-binocular\",\n\t\t\t\"zm-location\",\n\t\t\t\"zm-pin\",\n\t\t\t\"zm-file\",\n\t\t\t\"zm-pencil\",\n\t\t\t\"zm-pen\",\n\t\t\t\"zm-user\",\n\t\t\t\"zm-user-2\",\n\t\t\t\"zm-user-3\",\n\t\t\t\"zm-trashcan\",\n\t\t\t\"zm-cart\",\n\t\t\t\"zm-bag\",\n\t\t\t\"zm-suitcase\",\n\t\t\t\"zm-card\",\n\t\t\t\"zm-clock\",\n\t\t\t\"zm-timer\",\n\t\t\t\"zm-food\",\n\t\t\t\"zm-drink\",\n\t\t\t\"zm-mug\",\n\t\t\t\"zm-cup\",\n\t\t\t\"zm-drink-2\",\n\t\t\t\"zm-mug-2\",\n\t\t\t\"zm-lollipop\",\n\t\t\t\"zm-lab\",\n\t\t\t\"zm-sunny\",\n\t\t\t\"zm-droplet\",\n\t\t\t\"zm-umbrella\",\n\t\t\t\"zm-truck\",\n\t\t\t\"zm-car\",\n\t\t\t\"zm-gas-pump\",\n\t\t\t\"zm-factory\",\n\t\t\t\"zm-tree\",\n\t\t\t\"zm-leaf\",\n\t\t\t\"zm-flower\",\n\t\t\t\"zm-arrow-top-right\",\n\t\t\t\"zm-arrow-top-left\",\n\t\t\t\"zm-arrow-bottom-right\",\n\t\t\t\"zm-arrow-bottom-left\",\n\t\t\t\"zm-contract\",\n\t\t\t\"zm-enlarge\",\n\t\t\t\"zm-refresh\",\n\t\t\t\"zm-skull\",\n\t\t\t\"zm-bug\",\n\t\t\t\"zm-mine\",\n\t\t\t\"zm-earth\",\n\t\t\t\"zm-bookmark\",\n\t\t\t\"zm-bookmark-2\",\n\t\t\t\"zm-newspaper\",\n\t\t\t\"zm-notebook\",\n\t\t\t\"zm-window\",\n\t\t\t\"zm-server\",\n\t\t\t\"zm-hdd\",\n\t\t\t\"zm-keyboard\",\n\t\t\t\"zm-tv\",\n\t\t\t\"zm-camera\",\n\t\t\t\"zm-camera-2\",\n\t\t\t\"zm-volume\",\n\t\t\t\"zm-globe\",\n\t\t\t\"zm-planet\",\n\t\t\t\"zm-battery-2\",\n\t\t\t\"zm-battery-low\",\n\t\t\t\"zm-address-book\",\n\t\t\t\"zm-clipboard\",\n\t\t\t\"zm-clipboard-2\",\n\t\t\t\"zm-board\",\n\t\t\t\"zm-phone-3\",\n\t\t\t\"zm-mobile\",\n\t\t\t\"zm-ipod-2\",\n\t\t\t\"zm-camera-3\",\n\t\t\t\"zm-pictures\",\n\t\t\t\"zm-eye\",\n\t\t\t\"zm-gamepad-2\",\n\t\t\t\"zm-cog\",\n\t\t\t\"zm-shield\",\n\t\t\t\"zm-tag\",\n\t\t\t\"zm-quote\",\n\t\t\t\"zm-attachment\",\n\t\t\t\"zm-book\",\n\t\t\t\"zm-gift\",\n\t\t\t\"zm-lamp\",\n\t\t\t\"zm-puzzle\",\n\t\t\t\"zm-flag\",\n\t\t\t\"zm-star\",\n\t\t\t\"zm-heart\",\n\t\t\t\"zm-badge\",\n\t\t\t\"zm-cup-2\",\n\t\t\t\"zm-scissors\",\n\t\t\t\"zm-snowflake\",\n\t\t\t\"zm-cloud\",\n\t\t\t\"zm-lightning\",\n\t\t\t\"zm-night\",\n\t\t\t\"zm-direction\",\n\t\t\t\"zm-thumbs-up\",\n\t\t\t\"zm-thumbs-down\",\n\t\t\t\"zm-pointer\",\n\t\t\t\"zm-pointer-2\",\n\t\t\t\"zm-pointer-3\",\n\t\t\t\"zm-pointer-4\",\n\t\t\t\"zm-arrow-up\",\n\t\t\t\"zm-arrow-down\",\n\t\t\t\"zm-arrow-left\",\n\t\t\t\"zm-arrow-right\",\n\t\t\t\"zm-settings\",\n\t\t\t\"zm-support\",\n\t\t\t\"zm-medicine\",\n\t\t\t\"zm-cone\",\n\t\t\t\"zm-locked\",\n\t\t\t\"zm-unlocked\",\n\t\t\t\"zm-key\",\n\t\t\t\"zm-info\",\n\t\t\t\"zm-monitor\",\n\t\t\t\"zm-laptop\",\n\t\t\t\"zm-film\",\n\t\t\t\"zm-film-2\",\n\t\t\t\"zm-modem\",\n\t\t\t\"zm-speaker\",\n\t\t\t\"zm-camera-4\",\n\t\t\t\"zm-movie\",\n\t\t\t\"zo-duckduckgo\",\n\t\t\t\"zo-lkdto\",\n\t\t\t\"zo-delicious\",\n\t\t\t\"zo-paypal\",\n\t\t\t\"zo-flattr\",\n\t\t\t\"zo-android\",\n\t\t\t\"zo-eventful\",\n\t\t\t\"zo-smashmag\",\n\t\t\t\"zo-gplus\",\n\t\t\t\"zo-wikipedia\",\n\t\t\t\"zo-lanyrd\",\n\t\t\t\"zo-calendar\",\n\t\t\t\"zo-stumbleupon\",\n\t\t\t\"zo-fivehundredpx\",\n\t\t\t\"zo-pinterest\",\n\t\t\t\"zo-bitcoin\",\n\t\t\t\"zo-w3c\",\n\t\t\t\"zo-foursquare\",\n\t\t\t\"zo-html5\",\n\t\t\t\"zo-ie\",\n\t\t\t\"zo-call\",\n\t\t\t\"zo-grooveshark\",\n\t\t\t\"zo-ninetyninedesigns\",\n\t\t\t\"zo-forrst\",\n\t\t\t\"zo-digg\",\n\t\t\t\"zo-spotify\",\n\t\t\t\"zo-reddit\",\n\t\t\t\"zo-guest\",\n\t\t\t\"zo-gowalla\",\n\t\t\t\"zo-appstore\",\n\t\t\t\"zo-blogger\",\n\t\t\t\"zo-cc\",\n\t\t\t\"zo-dribbble\",\n\t\t\t\"zo-evernote\",\n\t\t\t\"zo-flickr\",\n\t\t\t\"zo-google\",\n\t\t\t\"zo-viadeo\",\n\t\t\t\"zo-instapaper\",\n\t\t\t\"zo-weibo\",\n\t\t\t\"zo-klout\",\n\t\t\t\"zo-linkedin\",\n\t\t\t\"zo-meetup\",\n\t\t\t\"zo-vk\",\n\t\t\t\"zo-plancast\",\n\t\t\t\"zo-disqus\",\n\t\t\t\"zo-rss\",\n\t\t\t\"zo-skype\",\n\t\t\t\"zo-twitter\",\n\t\t\t\"zo-youtube\",\n\t\t\t\"zo-vimeo\",\n\t\t\t\"zo-windows\",\n\t\t\t\"zo-aim\",\n\t\t\t\"zo-yahoo\",\n\t\t\t\"zo-chrome\",\n\t\t\t\"zo-email\",\n\t\t\t\"zo-macstore\",\n\t\t\t\"zo-myspace\",\n\t\t\t\"zo-podcast\",\n\t\t\t\"zo-amazon\",\n\t\t\t\"zo-steam\",\n\t\t\t\"zo-cloudapp\",\n\t\t\t\"zo-dropbox\",\n\t\t\t\"zo-ebay\",\n\t\t\t\"zo-facebook\",\n\t\t\t\"zo-github\",\n\t\t\t\"zo-github-circled\",\n\t\t\t\"zo-googleplay\",\n\t\t\t\"zo-itunes\",\n\t\t\t\"zo-plurk\",\n\t\t\t\"zo-songkick\",\n\t\t\t\"zo-lastfm\",\n\t\t\t\"zo-gmail\",\n\t\t\t\"zo-pinboard\",\n\t\t\t\"zo-openid\",\n\t\t\t\"zo-quora\",\n\t\t\t\"zo-soundcloud\",\n\t\t\t\"zo-tumblr\",\n\t\t\t\"zo-eventasaurus\",\n\t\t\t\"zo-wordpress\",\n\t\t\t\"zo-yelp\",\n\t\t\t\"zo-intensedebate\",\n\t\t\t\"zo-eventbrite\",\n\t\t\t\"zo-scribd\",\n\t\t\t\"zo-posterous\",\n\t\t\t\"zo-stripe\",\n\t\t\t\"zo-opentable\",\n\t\t\t\"zo-cart\",\n\t\t\t\"zo-print\",\n\t\t\t\"zo-angellist\",\n\t\t\t\"zo-instagram\",\n\t\t\t\"zo-dwolla\",\n\t\t\t\"zo-appnet\",\n\t\t\t\"zo-statusnet\",\n\t\t\t\"zo-acrobat\",\n\t\t\t\"zo-drupal\",\n\t\t\t\"zo-buffer\",\n\t\t\t\"zo-pocket\",\n\t\t\t\"zo-bitbucket\",\n\t\t\t\"zo-lego\",\n\t\t\t\"zo-login\",\n\t\t\t\"zo-stackoverflow\",\n\t\t\t\"zo-hackernews\",\n\t\t\t\"zo-xing\",\n\t\t);\n\t}", "title": "" }, { "docid": "7072baaab0c0962e8acf784f380fd079", "score": "0.43933377", "text": "public static function check_colour($value) { \n if ( preg_match( '/^#[a-f0-9]{6}$/i', $value ) ) { // if user insert a HEX color with # \n return true;\n }\n \n return false;\n }", "title": "" }, { "docid": "1e87a937ed86016c819de0867c46bd74", "score": "0.4379062", "text": "function fgNameFix($fgName, $positionType) {\n\tswitch ($fgName) {\n\t\tcase 'Ivan De Jesus':\n\t\t\treturn 'Ivan De Jesus Jr.';\n\n\t\tcase 'Melvin Upton':\n\t\t\treturn 'Melvin Upton Jr.';\n\n\t\tcase 'Michael Montgomery':\n\t\t\treturn 'Mike Montgomery';\n\n\t\tcase 'Joshua Ravin':\n\t\t\treturn 'Josh Ravin';\n\n\t\tcase 'Zachary Heathcott':\n\t\t\treturn 'Slade Heathcott';\n\n\t\tcase 'Edward Easley':\n\t\t\treturn 'Ed Easley';\n\n\t\tcase 'Jung-ho Kang':\n\t\t\treturn 'Jung Ho Kang';\n\n\t\tcase 'Dennis Tepera':\n\t\t\treturn 'Ryan Tepera';\n\n\t\tcase 'T.J. House':\n\t\t\treturn 'TJ House';\n\n\t\tcase 'Daniel Dorn':\n\t\t\treturn 'Danny Dorn';\n\n\t\tcase 'Rubby de la Rosa':\n\t\t\treturn 'Rubby De La Rosa';\n\n\t\tcase 'Jorge de la Rosa':\n\t\t\treturn 'Jorge De La Rosa';\n\n\t\tcase 'Mitchell Harris':\n\t\t\treturn 'Mitch Harris';\n\n\t\tcase 'Steven Souza':\n\t\t\treturn 'Steven Souza Jr.';\n\n\t\tcase 'Tom Layne':\n\t\t\treturn 'Tommy Layne';\n\n\t\tcase 'Nate Karns':\n\t\t\treturn 'Nathan Karns';\n\n\t\tcase 'Delino Deshields Jr.':\n\t\t\treturn 'Delino DeShields';\n\n\t\tcase 'Robbie Ross':\n\t\t\treturn 'Robbie Ross Jr.';\n\n\t\tcase 'JR Murphy':\n\t\t\treturn 'John Ryan Murphy';\n\n\t\tcase 'Jon Niese':\n\t\t\treturn 'Jonathon Niese';\n\n\t\tcase 'Matthew Tracy':\n\t\t\treturn 'Matt Tracy';\n\n\t\tcase 'Andrew Schugel':\n\t\t\treturn 'A.J. Schugel';\n\n\t\tcase 'Sugar Marimon':\n\t\t\treturn 'Sugar Ray Marimon';\n\n\t\tcase 'Daniel Muno':\n\t\t\treturn 'Danny Muno';\n\n\t\tcase 'Nicholas Tropeano':\n\t\t\treturn 'Nick Tropeano';\n\n\t\tcase 'Enrique Hernandez':\n\t\t\treturn 'Kike Hernandez';\n\n\t\tcase 'Kenneth Roberts':\n\t\t\treturn 'Ken Roberts';\n\n\t\tcase 'Shin-Soo Choo':\n\t\t\treturn 'Shin-soo Choo';\n\n\t\tcase 'Chris Young':\n\t\t\tif ($positionType == 'hitter') {\n\t\t\t\treturn 'Chris Young (OF)';\n\t\t\t}\n\n\t\t\tif ($positionType == 'pitcher') {\n\t\t\t\treturn 'Chris Young (SP)';\n\t\t\t}\n\t\t\n\t\tdefault:\n\t\t\treturn $fgName;\n\t}\n}", "title": "" }, { "docid": "ce14a47165aec1ad78bf741fd204d409", "score": "0.43790153", "text": "function PutSTBD($stbd) {\n sscanf($stbd,\"%02x%02x%02x%02x%1x\", $DIMENSION, $DIMENSION, \n\t\t$_SESSION['white'][0],$_SESSION['white'][1],$_SESSION['jogador']);\n \n}", "title": "" }, { "docid": "488a86a64c055797233778b093e5ce1c", "score": "0.43756023", "text": "function ncurses_use_env($flag) {}", "title": "" }, { "docid": "2a78a3b36e7ebc60e5dba5ec1a14d7ba", "score": "0.4367265", "text": "public function test_returnFalseOnForegroundColorNotFound()\n {\n $fg = $this->color->getForeground('fake');\n\n $this->assertFalse($fg);\n }", "title": "" }, { "docid": "c6ca9090fe02842136dc46cf7ca83e41", "score": "0.4366995", "text": "function jw_faq_text_color() {\n\tif ( get_post_meta( get_the_ID(), 'faq-text-color', true ) ) {\n\n\t\techo get_post_meta( get_the_ID(), 'faq-text-color', true );\n\n\t} else {\n\t\techo jltmaf_options('faq-text-color', 'jltmaf_content' );\n\t}\n}", "title": "" }, { "docid": "b001b57389734043274d627331cdd02d", "score": "0.43592873", "text": "function da($str,$label=false){\n\techo \"\\n<br />\";\n\tif($label!=false) echo $label.\"<br />\";\n\techo \"<textarea cols='100' rows='30'>\";\n\tprint_r($str);\n\techo \"</textarea><br />\\n\";\n\tflsh();\n}", "title": "" }, { "docid": "514ec1097d75c9b2be99417642905220", "score": "0.43583307", "text": "abstract protected function getGambitPattern(): string;", "title": "" }, { "docid": "017df5aa886da0dfa3b5c8a7ead9fc97", "score": "0.4341733", "text": "public function fed_add_inline_css_at_head_color() {\n\t\t\t$fed_colors = get_option( 'fed_admin_setting_upl_color' );\n\t\t\tif ( false !== $fed_colors ) {\n\t\t\t\t$pbg_color = $fed_colors['color']['fed_upl_color_bg_color'];\n\t\t\t\t$pbg_font_color = $fed_colors['color']['fed_upl_color_bg_font_color'];\n\t\t\t\t$sbg_color = $fed_colors['color']['fed_upl_color_sbg_color'];\n\t\t\t\t$sbg_font_color = $fed_colors['color']['fed_upl_color_sbg_font_color'];\n\t\t\t\t?>\n\t\t\t\t<style>\n\t\t\t\t\t.bc_fed .fed_header_font_color {\n\t\t\t\t\t\tcolor: <?php echo $pbg_color; ?> !important;\n\t\t\t\t\t\tfont-weight: bolder;\n\t\t\t\t\t}\n\n\t\t\t\t\t.bc_fed .nav-tabs > li.active > a, .nav-tabs > li.active > a:focus, .nav-tabs > li.active > a:hover,\n\t\t\t\t\t.bc_fed .btn-primary,\n\t\t\t\t\t.bc_fed .bg-primary,\n\t\t\t\t\t.bc_fed .nav-pills > li.active > a,\n\t\t\t\t\t.bc_fed .nav-pills > li.active > a:focus,\n\t\t\t\t\t.bc_fed .nav-pills > li.active > a:hover,\n\t\t\t\t\t.bc_fed .list-group-item.active,\n\t\t\t\t\t.bc_fed .list-group-item.active:focus,\n\t\t\t\t\t.bc_fed .list-group-item.active:hover,\n\t\t\t\t\t.bc_fed .panel-primary > .panel-heading,\n\t\t\t\t\t.bc_fed .btn-primary.focus, .btn-primary:focus,\n\t\t\t\t\t.bc_fed .btn-primary:hover,\n\t\t\t\t\t.bc_fed .btn.active, .btn:active,\n\t\t\t\t\t.bc_fed input[type=\"button\"]:hover,\n\t\t\t\t\t.bc_fed input[type=\"button\"]:focus,\n\t\t\t\t\t.bc_fed input[type=\"submit\"]:hover,\n\t\t\t\t\t.bc_fed input[type=\"submit\"]:focus,\n\t\t\t\t\t.bc_fed .popover-title {\n\t\t\t\t\t\tbackground-color: <?php echo $pbg_color ?> !important;\n\t\t\t\t\t\tbackground-image: none !important;\n\t\t\t\t\t\tborder-color: <?php echo $pbg_color ?> !important;\n\t\t\t\t\t\tcolor: <?php echo $pbg_font_color ?> !important;\n\t\t\t\t\t}\n\n\t\t\t\t\t.bc_fed .pagination > .active > a, .pagination > .active > a:focus, .pagination > .active > a:hover,\n\t\t\t\t\t.bc_fed .pagination > .active > span, .pagination > .active > span:focus, .pagination > .active > span:hover {\n\t\t\t\t\t\tbackground-color: <?php echo $pbg_color ?> !important;\n\t\t\t\t\t\tborder-color: <?php echo $pbg_color ?> !important;\n\t\t\t\t\t\tcolor: <?php echo $pbg_font_color ?> !important;\n\t\t\t\t\t}\n\n\t\t\t\t\t.bc_fed .nav-tabs {\n\t\t\t\t\t\tborder-bottom: 1px solid <?php echo $pbg_color ?> !important;\n\t\t\t\t\t}\n\n\t\t\t\t\t.bc_fed .panel-primary {\n\t\t\t\t\t\tborder-color: <?php echo $pbg_color ?> !important;\n\t\t\t\t\t}\n\n\t\t\t\t\t.bc_fed .bg-primary-font {\n\t\t\t\t\t\tcolor: <?php echo $pbg_color; ?>;\n\t\t\t\t\t}\n\n\t\t\t\t\t.bc_fed .fed_login_menus {\n\t\t\t\t\t\tbackground-color: <?php echo $pbg_color; ?> !important;\n\t\t\t\t\t\tcolor: <?php echo $pbg_font_color ?> !important;\n\t\t\t\t\t}\n\n\t\t\t\t\t.bc_fed .fed_login_content {\n\t\t\t\t\t\tborder: 1px solid <?php echo $pbg_color; ?> !important;\n\t\t\t\t\t\tpadding: 20px 40px;\n\t\t\t\t\t}\n\n\t\t\t\t\t.bc_fed .list-group-item {\n\t\t\t\t\t\tbackground-color: <?php echo $sbg_color?> !important;\n\t\t\t\t\t\tborder-color: #ffffff !important;\n\t\t\t\t\t\tcolor: <?php echo $sbg_font_color?> !important;\n\t\t\t\t\t}\n\n\t\t\t\t\t.bc_fed .list-group-item a {\n\t\t\t\t\t\tcolor: <?php echo $sbg_font_color?> !important;\n\t\t\t\t\t}\n\n\t\t\t\t\t.bc_fed .list-group-item.active, .bc_fed .list-group-item.active:hover, .bc_fed .list-group-item.active:focus {\n\t\t\t\t\t\ttext-shadow: none !important;\n\t\t\t\t\t}\n\n\t\t\t\t\t.bc_fed .btn-default, .bc_fed .btn-primary, .bc_fed .btn-success, .bc_fed .btn-info, .bc_fed .btn-warning, .bc_fed .btn-danger {\n\t\t\t\t\t\ttext-shadow: none !important;\n\t\t\t\t\t}\n\t\t\t\t</style>\n\n\t\t\t\t<?php\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "3eba2d574683caac61cde75087a17b9f", "score": "0.43390647", "text": "function EscapeColor2Html($in)\r\n{\r\n\t//Auto fix format like ESC[01;32m (01 -> 1)\r\n\t//$in = str_replace(\"\\x1b[01;\", \"\\x1b[1;\", $in);\r\n\t//$in = str_replace(\"\\x1b[00;\", \"\\x1b[0;\", $in);\r\n\t//$in = str_replace(\"\\x1b[00m\", \"\\x1b[0m\", $in);\r\n\r\n\t//attr:\r\n\t$in = preg_replace(\"/\\x1b\\[0*m/\",\r\n\t\t\"</span>\", $in);\t//0 - reset\r\n\t$in = preg_replace(\"/\\x1b\\[0?[278];([\\d;]+)m/\",\r\n\t\t\"\\x1b[\\\\1m\", $in);\t//2,7,8 - dim(dark?),reverse,hidden - ignore\r\n\t$in = preg_replace(\"/\\x1b\\[0?1;([\\d;]+)m/\",\r\n\t\t\"<span style=\\\"font-weight: bold;\\\">\\x1b[\\\\1m\", $in);\t//1 - bold\r\n\t$in = preg_replace(\"/\\x1b\\[0?3;([\\d;]+)m/\",\r\n\t\t\"<span style=\\\"text-decoration: underline;\\\">\\x1b[\\\\1m\", $in);\t//3 - underline\r\n\t$in = preg_replace(\"/\\x1b\\[0?5;([\\d;]+)m/\",\r\n\t\t\"<span style=\\\"text-decoration: blink;\\\">\\x1b[\\\\1m\", $in);\t//5 - blink\r\n\r\n\t//fg colors:\r\n\t$fgcolor = array(\r\n\t\t30\t=>\t'black',\r\n\t\t31\t=>\t'red',\r\n\t\t32\t=>\t'green',\r\n\t\t33\t=>\t'yellow',\r\n\t\t34\t=>\t'blue',\r\n\t\t35\t=>\t'magenta',\r\n\t\t36\t=>\t'cyan',\r\n\t\t37\t=>\t'white');\r\n\t$key = array(); $replace = array();\r\n\tforeach ($fgcolor as $k=>$v)\r\n\t{\r\n\t\t//$key[] = \"/\\x1b[${k};?(m[^\\x1b]*)/\";\r\n\t\t$key[] = \"/\\x1b\\[${k};?(\\d{0,2};?)m/\";\r\n\t\t$replace[] = \"<span style=\\\"color: $v;\\\">\\x1b[\\\\1m\";\r\n\t}\r\n\t$in = preg_replace($key, $replace, $in);\r\n\r\n\t//bg colors ??\r\n\r\n\t//remove un-recoginized colors\r\n\t$in = preg_replace(\"/\\x1b\\[[\\d;]*m/\", '', $in);\r\n\r\n\t//merge duplicate <span> markup\r\n\t$in = preg_replace(\"/<span style=\\\"([^>]*)\\\"><span style=\\\"([^>]*)\\\">/\",\r\n\t\t\"<span style=\\\"\\\\1 \\\\2\\\">\", $in);\r\n\r\n\t//merge duplicate </span> markup\r\n\t$in = preg_replace(\"/<\\/span>([^<]*)<\\/span>/\",\r\n\t\t\"</span>\\\\1\", $in);\r\n\t$in = preg_replace(\"/[\\r\\n]([^<]*)<\\/span>([^<])*[\\r\\n]/\",\r\n\t\t\"\\\\1\\\\2\", $in);\r\n\t$in = preg_replace(\"/[\\r\\n]([^<]*)<\\/span>/\", '\\1', $in);\r\n\r\n\t//remove \\t\r\n\t$in = str_replace(\"\\x07\", '', $in);\r\n\r\n\t//add losted </span> sometimes\r\n\t//this must run twice because the second <span> used in the 1st replace\r\n\t//will not be tract as the beginning <span> in remain search\r\n\t//it means, it was 'skipped'\r\n\t$in = preg_replace(\"/<span([^>]*)>([^<\\n]*)<span/\",\r\n\t\t\"<span\\\\1>\\\\2</span><span\", $in);\r\n\t$in = preg_replace(\"/<span([^>]*)>([^<\\n]*)<span/\",\r\n\t\t\"<span\\\\1>\\\\2</span><span\", $in);\r\n\t$in = preg_replace(\"/<span([^>]*)>([^<]*)[\\n\\r]/\",\r\n\t\t\"<span\\\\1>\\\\2</span>\\n\", $in);\r\n\r\n\t//clean escape control chars\r\n\t$escape_control = array(\r\n\t\t\"/\\x1b\\\\[(\\\\d+;)?\\\\d*[ABCDGJKnr]/\",\r\n\t\t\"/\\x1b\\\\[(\\\\d+;)?\\\\d*[fH]/\",\r\n\t\t//below is some chars which i don't know what it is .\r\n\t\t\"/\\x1b\\\\[\\\\??\\\\d*[hl]/\",\r\n\t\t\"/\\x1b[>\\\\=]/\",\r\n\t\t\"/\\x1b\\&gt;/\",\r\n\t\t);\r\n\t$in = preg_replace($escape_control, \"\", $in);\r\n\r\n\t//clean remain esc code\r\n\t//$in = str_replace(\"\\x1b[\", 'ESC[', $in);\r\n\r\n\treturn($in);\r\n\r\n\t/* Old useless code\r\n\t//define colors\r\n\t$colormap = array(\r\n\t\t'black'\t\t\t=>\t\"\\x1b[0;30m\",\r\n\t\t'red'\t\t\t=>\t\"\\x1b[0;31m\",\r\n\t\t'green'\t\t\t=>\t\"\\x1b[0;32m\",\r\n\t\t'brown'\t\t\t=>\t\"\\x1b[0;33m\",\r\n\t\t'blue'\t\t\t=>\t\"\\x1b[0;34m\",\r\n\t\t'purple'\t\t=>\t\"\\x1b[0;35m\",\r\n\t\t'cyan'\t\t\t=>\t\"\\x1b[0;36m\",\r\n\t\t'lightgrey'\t\t=>\t\"\\x1b[0;37m\",\r\n\t\t'darkgrey'\t\t=>\t\"\\x1b[1;30m\",\r\n\t\t'lightred'\t\t=>\t\"\\x1b[1;31m\",\r\n\t\t'lightgreen'\t=>\t\"\\x1b[1;32m\",\r\n\t\t'yellow'\t\t=>\t\"\\x1b[1;33m\",\r\n\t\t'lightblue'\t\t=>\t\"\\x1b[1;34m\",\r\n\t\t'lightpurple'\t=>\t\"\\x1b[1;35m\",\r\n\t\t'lightcyan'\t\t=>\t\"\\x1b[1;36m\",\r\n\t\t'white'\t\t\t=>\t\"\\x1b[1;37m\",\r\n\t\t'default'\t\t=>\t\"\\x1b[0m\"\r\n\t\t);\r\n\t//---------------------------------------\r\n\t//define colors\r\n\t$colormap = array(\r\n\t\t'black'\t\t\t=>\t\"\\x1b[0;30m\",\r\n\t\t'red'\t\t\t=>\t\"\\x1b[0;31m\",\r\n\t\t'green'\t\t\t=>\t\"\\x1b[0;32m\",\r\n\t\t'brown'\t\t\t=>\t\"\\x1b[0;33m\",\r\n\t\t'blue'\t\t\t=>\t\"\\x1b[0;34m\",\r\n\t\t'purple'\t\t=>\t\"\\x1b[0;35m\",\r\n\t\t'cyan'\t\t\t=>\t\"\\x1b[0;36m\",\r\n\t\t'lightgrey'\t\t=>\t\"\\x1b[0;37m\",\r\n\t\t'darkgrey'\t\t=>\t\"\\x1b[1;30m\",\r\n\t\t'lightred'\t\t=>\t\"\\x1b[1;31m\",\r\n\t\t'lightgreen'\t=>\t\"\\x1b[1;32m\",\r\n\t\t'yellow'\t\t=>\t\"\\x1b[1;33m\",\r\n\t\t'lightblue'\t\t=>\t\"\\x1b[1;34m\",\r\n\t\t'lightpurple'\t=>\t\"\\x1b[1;35m\",\r\n\t\t'lightcyan'\t\t=>\t\"\\x1b[1;36m\",\r\n\t\t'white'\t\t\t=>\t\"\\x1b[1;37m\",\r\n\t\t'default'\t\t=>\t\"\\x1b[0m\"\r\n\t\t);\r\n\t//color begin with every color set\r\n\t$color_begin = 'white';\r\n\t//color end with\r\n\t$color_end = 'default';\r\n\r\n\t//del the begin color from colormap and $in\r\n\t$in = str_replace($colormap[$color_begin], '', $in);\r\n\tunset($colormap[$color_begin]);\r\n\r\n\t$search = array_values($colormap);\r\n\t$replace = array_keys($colormap);\r\n\r\n\t//do some format to replacers\r\n\tfor ($i=0; $i<count($replace); $i++)\r\n\t{\r\n\t\t$val = &$replace[$i];\r\n\t\tif ($val == $color_end)\r\n\t\t\t$val = '</span>';\r\n\t\telse\r\n\t\t\t$val = \"<span style=\\\"color: $val;\\\">\";\r\n\t}\r\n\r\n\t$str = str_replace($search, $replace, $in);\r\n\t//fix some html repeat\r\n\t$str = str_replace('</span></span>', '</span>', $str);\r\n\treturn $str;\r\n\t*/\r\n}", "title": "" }, { "docid": "2c956750b7c07ebc58310fa76217cef8", "score": "0.43376592", "text": "function cedi_border_get_color_options() {\n return drupal_map_assoc(\n array(\n t('black'),\n t('lightgrey'),\n t('orange'),\n t('blue'),\n t('red'),\n t('yellow'),\n t('green'),\n t('other'),\n )\n );\n}", "title": "" }, { "docid": "80ffe64f55a673166e74b65c07aec3c5", "score": "0.43262455", "text": "function colour_str($num) { /*\n\tGLOBAL $COLOUR;\n\tif ($COLOUR === false) {\n\t\treturn \"\";\n\t} else {\n\t\tswitch($num) {\n\t\t\tcase COLOR_BLACK:\treturn \"\\x1b\\x5b\\x33\\x30\\x6d\";\n\t\t\tcase COLOR_RED:\t\treturn \"\\x1b\\x5b\\x33\\x31\\x6d\";\n\t\t\tcase COLOR_GREEN:\treturn \"\\x1b\\x5b\\x33\\x32\\x6d\";\n\t\t\tcase COLOR_YELLOW:\treturn \"\\x1b\\x5b\\x33\\x33\\x6d\";\n\t\t\tcase COLOR_BLUE:\treturn \"\\x1b\\x5b\\x33\\x34\\x6d\";\n\t\t\tcase COLOR_MAGENTA:\treturn \"\\x1b\\x5b\\x33\\x35\\x6d\";\n\t\t\tcase COLOR_CYAN:\treturn \"\\x1b\\x5b\\x33\\x36\\x6d\";\n\t\t\tcase COLOR_WHITE:\treturn \"\\x1b\\x5b\\x33\\x37\\x6d\";\n\t\t\tcase COLOR_NORMAL:\treturn \"\\x1b\\x5b\\x33\\x39\\x6d\";\n\t\t}\n\t}\n\treturn \"\";\n*/\n}", "title": "" }, { "docid": "7b85ce0f861b6b869da9211db6dce4cc", "score": "0.43163082", "text": "protected function getFontColour()\n {\n return '111111';\n }", "title": "" }, { "docid": "e113c6eb33960cb5cae05f9d7fb7fda0", "score": "0.4309726", "text": "function pfb_daemon_dnsbl() {\n\tglobal $pfb;\n\n\tif (($h_handle = @fopen('php://stdin', 'r')) !== FALSE) {\n\t\tsyslog(LOG_NOTICE, '[pfBlockerNG] DNSBL parser daemon started');\n\n\t\t$chk_ver\t= FALSE;\n\t\t$lighty_47\t= FALSE;\n\t\t$lighty_58\t= FALSE;\n\t\t$lighty_59\t= FALSE;\n\t\t$checkpos\t= 3; \t// Pre Lighttpd v1.4.47\n\n\t\twhile (!feof($h_handle)) {\n\t\t\t$pfb_buffer = @fgets($h_handle);\n\n\t\t\tif (!$chk_ver) {\n\n\t\t\t\t// Lighttpd v1.4.58+ conditional error log with 'ssl.verifyclient.activate' to collect the domain name\n\t\t\t\tif (!$lighty_47 && strpos($pfb_buffer, 'lighttpd/1.4.58') !== FALSE) {\n\t\t\t\t\t$chk_ver\t= TRUE;\n\t\t\t\t\t$lighty_58\t= TRUE;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// Lighttpd v1.4.59+ syntax changes to IP line\n elseif (!$lighty_47 &&\n\t\t\t\t (strpos($pfb_buffer, 'lighttpd/1.4.59') !== FALSE ||\n\t\t\t\t strpos($pfb_buffer, 'lighttpd/1.4.6') !== FALSE ||\n\t\t\t\t strpos($pfb_buffer, 'lighttpd/1.4.7') !== FALSE ||\n\t\t\t\t strpos($pfb_buffer, 'lighttpd/1.5') !== FALSE)) {\n\t\t\t\t\t$chk_ver\t= TRUE;\n\t\t\t\t\t$lighty_59\t= TRUE;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// Lighttpd v1.4.47 uses mod_openssl with a different conditional log formatting\n\t\t\t\telseif (strpos($pfb_buffer, 'global/HTTPscheme') !== FALSE) {\n\t\t\t\t\t$lighty_47\t= TRUE;\n\t\t\t\t\t$checkpos\t= 1;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($lighty_58 || $lighty_59) {\n\n\t\t\t\t// Verify HTTP[\"remoteip\"]\n\t\t\t\tif (empty($src_ip)) {\n\t\t\t\t\tif ($lighty_58) {\n\t\t\t\t\t\tif (strpos($pfb_buffer, '[\"re') !== FALSE) {\n\t\t\t\t\t\t\t$src_ip = strstr($pfb_buffer, ') compare', TRUE);\n\t\t\t\t\t\t\t$src_ip = ltrim(strstr($src_ip, '] (', FALSE), '] (');\n\t\t\t\t\t\t\t$src_ip = (filter_var($src_ip, FILTER_VALIDATE_IP) !== FALSE) ? $src_ip : '';\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (strpos($pfb_buffer, '[\"re') !== FALSE && strpos($pfb_buffer, ' compare to ') !== FALSE) {\n\t\t\t\t\t\t\t$src_ip = strstr($pfb_buffer, ' compare to ', FALSE);\n\t\t\t\t\t\t\t$src_ip = trim(ltrim($src_ip, ' compare to '));\n\t\t\t\t\t\t\t$src_ip = (filter_var($src_ip, FILTER_VALIDATE_IP) !== FALSE) ? $src_ip : '';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (!empty($src_ip) && strpos($pfb_buffer, \"SSL: \") === FALSE) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (empty($domain) && strpos($pfb_buffer, \"SSL: can't verify client without ssl.\") !== FALSE) {\n\t\t\t\t\t$domain = str_replace(' server name ', '', strstr(trim($pfb_buffer), ' server name ', FALSE));\n\t\t\t\t}\n\n\t\t\t\tif (!empty($domain) && !empty($src_ip)) {\n\n\t\t\t\t\t$domain = pfb_filter($domain, PFB_FILTER_DOMAIN, 'pfb_daemon_dnsbl');\n\t\t\t\t\t$src_ip = pfb_filter($src_ip, PFB_FILTER_IP, 'pfb_daemon_dnsbl');\n\t\t\t\t\tif (!empty($domain) && !empty($src_ip)) {\n\n\t\t\t\t\t\t// URL/Referer/URI/Agent String not available for HTTPS events\n\t\t\t\t\t\t$req_agent\t= 'Unknown';\n\t\t\t\t\t\t$type\t\t= 'DNSBL-HTTPS';\n\n\t\t\t\t\t\tpfb_log_event($type, $domain, $src_ip, $req_agent);\n\t\t\t\t\t\t$domain = $src_ip = '';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// Parse only HTTP[\"xxx\"] log lines\n\t\t\t\tif (strpos($pfb_buffer, 'HTTP[') === FALSE) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// Verify only HTTPS lines\n\t\t\t\tif (strpos($pfb_buffer, '( https') !== FALSE) {\n\t\t\t\t\tif ($lighty_47) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t$checkpos = 0;\n\t\t\t\t}\n\n\t\t\t\t// Verify HTTP[\"remoteip\"]\n\t\t\t\tif ($checkpos == 1 && strpos($pfb_buffer, '[\"re') !== FALSE) {\n\t\t\t\t\t$src_ip = strstr($pfb_buffer, ' ) compare', TRUE);\n\t\t\t\t\t$src_ip = ltrim(strstr($src_ip, '] ( ', FALSE), '] ( ');\n\t\t\t\t\t$src_ip = (filter_var($src_ip, FILTER_VALIDATE_IP) !== FALSE) ? $src_ip : '';\n\t\t\t\t}\n\n\t\t\t\t// Verify HTTP[\"host\"]\n\t\t\t\telseif ($checkpos == 2 && strpos($pfb_buffer, '[\"ho') !== FALSE) {\n\t\t\t\t\t$lighty_47\t= FALSE;\n\t\t\t\t\t$domain\t\t= strstr($pfb_buffer, ' ) compare', TRUE);\n\t\t\t\t\t$domain\t\t= ltrim(strstr($domain, '] ( ', FALSE), '] ( ');\n\n\t\t\t\t\t// URL/Referer/URI/Agent String not available for HTTPS events\n\t\t\t\t\t$req_agent\t= 'Unknown';\n\t\t\t\t\t$type\t\t= 'DNSBL-HTTPS';\n\n\t\t\t\t\t// Log event and Increment SQLite DNSBL Group counter\n\t\t\t\t\tif (!empty($domain) && !empty($src_ip)) {\n\n\t\t\t\t\t\t$domain = pfb_filter($domain, PFB_FILTER_DOMAIN, 'pfb_daemon_dnsbl');\n\t\t\t\t\t\t$src_ip = pfb_filter($src_ip, PFB_FILTER_IP, 'pfb_daemon_dnsbl');\n\t\t\t\t\t\tif (!empty($domain) && !empty($src_ip)) {\n\n\t\t\t\t\t\t\t// URL/Referer/URI/Agent String not available for HTTPS events\n\t\t\t\t\t\t\t$req_agent\t= 'Unknown';\n\t\t\t\t\t\t\t$type\t\t= 'DNSBL-HTTPS';\n\n\t\t\t\t\t\t \tpfb_log_event($type, $domain, $src_ip, $req_agent);\n\t\t\t\t\t\t\t$domain = $src_ip = '';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$checkpos++;\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t\tlog_error('[pfBlockerNG] DNSBL conditional log parser - Failed to open handle');\n\t}\n\t@fclose($h_handle);\n}", "title": "" }, { "docid": "25a7fac2e6cec1263999d72baafc290a", "score": "0.4306", "text": "public function fgbits($fgbits = null)\n {\n if(null === $fgbits)\n {\n return $this->property('fgbits');\n }\n return $this->property('fgbits', (int) $fgbits);\n }", "title": "" }, { "docid": "50aec55c73329255307a8f803efcc32f", "score": "0.42875034", "text": "function ColoredQuote($buffer, $boardtype) {\n $newline_added = false;\n $lines = explode(\"\\n\", $buffer);\n foreach($lines as $i => $line){\n $t_line = ltrim($line);\n if(substr($t_line, 0, 4) == '&gt;'){\n if(substr($t_line, 4, 1) != ' '){\n $t_line = '&gt; ' . substr($t_line, 4);\n }\n $lines[$i] = '<span class=\"unkfunc\">' . $t_line . '</span>';\n }\n }\n return join(\"\\n\", $lines);\n }", "title": "" }, { "docid": "7a80bfe0ae9a885c91f1f90af3d57543", "score": "0.42874232", "text": "function rbg_red($col) {return (($col >> 8) >> 8) % 256;}", "title": "" }, { "docid": "dfca364acfb14509aea5ab92a15fb675", "score": "0.42850354", "text": "function ncurses_use_default_colors() {}", "title": "" }, { "docid": "649aea2f8c91106327371643a9096d10", "score": "0.42840433", "text": "function GetRedKeyWord($fstr)\n{\n\t$ks=$this->wd_array;\n\t$kwsql = '';\n\tforeach($ks as $k)\n\t{\n\t\t$k = trim($k);\n\t\tif($k=='')\n\t\t{\n\t\t\tcontinue;\n\t\t}\n\t\tif(ord($k[0])>0x80 && strlen($k)<0)\n\t\t{\n\t\t\tcontinue;\n\t\t}\n\t\t$fstr = str_replace($k,\"<strong>$k</strong>\",$fstr);\n\t}\n\treturn $fstr;\n}", "title": "" }, { "docid": "1be0ec2d65599af09001ac6ecaaef8d9", "score": "0.42782572", "text": "function ncurses_bkgd($attrchar) {}", "title": "" }, { "docid": "0ed54e066b86ce92f49738b4a19a12e4", "score": "0.42709297", "text": "function hg30_2W_CaCH6qtLGIcvZ()\n{\n \n}", "title": "" }, { "docid": "4ac42d8882c613ec5cf72c0b9d9915af", "score": "0.42617574", "text": "function pfblockerng_php_pre_deinstall_command() {\n\trequire_once('config.inc');\n\tglobal $g, $pfb;\n\n\t// Set these two variables to disable pfBlockerNG on de-install\n\t$pfb['save'] = $pfb['install'] = TRUE;\n\n\tupdate_status(\"Removing pfBlockerNG...\");\n\tsync_package_pfblockerng();\n\n\t// Maintain pfBlockerNG settings and database files if $pfb['keep'] is ON.\n\tif ($pfb['keep'] != 'on') {\n\t\tupdate_status(\" Removing all customizations/data...\");\n\t\t// Remove pfBlockerNG log and DB folder\n\t\trmdir_recursive(\"{$pfb['dbdir']}\");\n\t\trmdir_recursive(\"{$pfb['logdir']}\");\n\n\t\t// Remove all pfB aliastables\n\t\texec(\"{$pfb['pfctl']} -s Tables | {$pfb['grep']} '^pfB_'\", $pfb_tables);\n\t\tif (isset($pfb_tables)) {\n\t\t\tforeach ($pfb_tables as $pfb_table) {\n\t\t\t\t$pfb_table_esc = escapeshellarg($pfb_table);\n\t\t\t\texec(\"{$pfb['pfctl']} -t {$pfb_table_esc} -T kill 2>&1\", $result);\n\t\t\t}\n\t\t}\n\n\t\t// Remove aliastables archive and earlyshellcmd if found.\n\t\t@unlink_if_exists(\"{$pfb['aliasarchive']}\");\n\t\tif (config_path_enabled('system','earlyshellcmd')) {\n\t\t\t$a_earlyshellcmd = config_get_path('system/earlyshellcmd', '');\n\t\t\tif (preg_grep(\"/pfblockerng.sh aliastables/\", $a_earlyshellcmd)) {\n\t\t\t\tconfig_set_path('system','earlyshellcmd',\n\t\t\t\t\t\t\t\tpreg_grep(\"/pfblockerng.sh aliastables/\", $a_earlyshellcmd, PREG_GREP_INVERT));\n\t\t\t}\n\t\t}\n\t\tforeach (config_get_path('installedpackages/shellcmdsettings/config', []) as $key => $shellcmd) {\n\t\t\tif (strpos($shellcmd['cmd'], 'pfblockerng.sh aliastables') !== FALSE) {\n\t\t\t\tconfig_del_path(\"installedpackages/shellcmdsettings/config/{$key}\");\n\t\t\t}\n\t\t}\n\n\t\t// Remove settings from config.xml\n\t\tpfb_remove_config_settings();\n\n\t\tunlink_if_exists(\"{$pfb['dnsbl_conf']}\");\n\t\tunlink_if_exists(\"{$pfb['dnsbl_cert']}\");\n\t\tunlink_if_exists(\"{$pfb['aliasarchive']}\");\n\t\tunlink_if_exists(\"{$pfb['dnsbl_info']}\");\n\t\tunlink_if_exists(\"{$pfb['dnsbl_resolver']}\");\n\n\t\tunlink_if_exists(\"{$g['unbound_chroot_path']}/pfb_unbound.py\");\n\t\tunlink_if_exists(\"{$g['unbound_chroot_path']}/pfb_unbound_include.inc\");\n\t\tunlink_if_exists(\"{$g['unbound_chroot_path']}/pfb_py_hsts.txt\");\n\n\t\t// Remove widget (code from Snort deinstall)\n\t\t$pfb['widgets'] = config_get_path('widgets/sequence', '');\n\t\tif (!empty($pfb['widgets'])) {\n\t\t\t$widgetlist = explode(',', $pfb['widgets']);\n\t\t\tforeach ($widgetlist as $key => $widget) {\n\t\t\t\tif (strpos($widget, 'pfblockerng') !== FALSE) {\n\t\t\t\t\tunset($widgetlist[$key]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tconfig_set_path('widgets/sequence', implode(',', $widgetlist));\n\t\t\twrite_config('pfBlockerNG: Remove widget');\n\t\t}\n\t}\n\telse {\n\t\tupdate_status(\" All customizations/data will be retained...\");\n\t}\n\n\tunlink_if_exists('/usr/local/sbin/lighttpd_pfb');\n\tunlink_if_exists('/usr/local/bin/php_pfb');\n\tunlink_if_exists('/usr/local/sbin/clog_pfb');\n\tunlink_if_exists('/usr/bin/tail_pfb');\n\tunlink_if_exists('/usr/local/etc/rc.d/pfb_filter.sh');\n\tunlink_if_exists('/usr/local/etc/rc.d/pfb_dnsbl.sh');\n\n\tunlink_if_exists(\"{$pfb['dnsbl_cache']}\");\n\tunlink_if_exists(\"/var/tmp/unbound_cache_*\");\n\tunlink_if_exists(\"{$pfb['ip_cache']}\");\n\n\t// Remove incorrect xml setting\n\tconfig_del_path('installedpackages/pfblockerngantartica');\n\n\tupdate_status(\" done.\\n\");\n}", "title": "" }, { "docid": "678b8d2db28b45cb9f8189e5fe042154", "score": "0.4249444", "text": "function Emsg($msg, $f = 0) {\n $m = \"<br/><font color='red'><b>$msg</b></font><br/>\\n\";\n if ($f) { return $m; }\n print $m;\n}", "title": "" }, { "docid": "12dc6ef7271f268b48d124de6ecf339c", "score": "0.4242867", "text": "function eF_replaceMD5($message) {\n $pos = strpos($message, \"###md5(\");\n //echo \"*****\".$pos.\"****<BR>\";\n if ($pos) {\n $remaining_msg = substr($message, $pos+7);\n //echo $remaining_msg.\"<BR>\";\n $pos2 = strpos($remaining_msg, \")###\");\n //echo \"*****\".$pos2.\"****<BR>\";\n if ($pos2) {\n $message = substr($message, 0, $pos) . md5(substr($message, $pos+7, $pos2).G_MD5KEY) . eF_replaceMD5(substr($message, $pos+7+$pos2+4));\n }\n }\n return $message;\n}", "title": "" }, { "docid": "a5c8dce1f3eb7005e9bdbf202aa03539", "score": "0.4242327", "text": "Function get_bgcolor()\n{\n $returnvar = '';\n if ($_SERVER['SERVER_NAME'] <> production) $returnvar = \" BGCOLOR='#FFCC99' \";\n return $returnvar;\n}", "title": "" }, { "docid": "e280231f7f51701b5a71e3e8c2513506", "score": "0.42350796", "text": "public function __construct()\n {\n // Set up shell colors\n $this->foregroundColors['black'] = '0;30';\n $this->foregroundColors['dark_gray'] = '1;30';\n $this->foregroundColors['blue'] = '0;34';\n $this->foregroundColors['light_blue'] = '1;34';\n $this->foregroundColors['green'] = '0;32';\n $this->foregroundColors['light_green'] = '1;32';\n $this->foregroundColors['cyan'] = '0;36';\n $this->foregroundColors['light_cyan'] = '1;36';\n $this->foregroundColors['red'] = '0;31';\n $this->foregroundColors['light_red'] = '1;31';\n $this->foregroundColors['purple'] = '0;35';\n $this->foregroundColors['light_purple'] = '1;35';\n $this->foregroundColors['brown'] = '0;33';\n $this->foregroundColors['yellow'] = '1;33';\n $this->foregroundColors['light_gray'] = '0;37';\n $this->foregroundColors['white'] = '1;37';\n\n $this->backgroundColors['black'] = '40';\n $this->backgroundColors['red'] = '41';\n $this->backgroundColors['green'] = '42';\n $this->backgroundColors['yellow'] = '43';\n $this->backgroundColors['blue'] = '44';\n $this->backgroundColors['magenta'] = '45';\n $this->backgroundColors['cyan'] = '46';\n $this->backgroundColors['light_gray'] = '47';\n }", "title": "" }, { "docid": "cac19ba52b74e5588055f3d108bea6be", "score": "0.42339367", "text": "function finch_colour_scheme() {\n wp_admin_css_color(\n 'finch',\n __('finch'),\n get_template_directory_uri().\"/assets/css/wp-admin-colours.css\",\n array('#07273E', '#14568A', '#6e949c', '#bb3131'),\n array( 'base' => '#e5f8ff', 'focus' => '#fff', 'current' => '#fff' )\n );\n\n}", "title": "" }, { "docid": "9d09da245af78288af6e706ccea14c0a", "score": "0.42306516", "text": "function ncurses_has_colors() {}", "title": "" }, { "docid": "98d41ae72e84970112a26d39a0ebf046", "score": "0.4230583", "text": "public function test_nfc()\n {\n $nfc = array(\n \"{$this->D_dot_above}\" => \"{$this->D_dot_above}\",\n \"{$this->D}{$this->dot_above}\" => \"{$this->D_dot_above}\",\n \"{$this->D_dot_below}{$this->dot_above}\" => \"{$this->D_dot_below}{$this->dot_above}\",\n \"{$this->D_dot_above}{$this->dot_below}\" => \"{$this->D_dot_below}{$this->dot_above}\",\n \"{$this->D}{$this->dot_above}{$this->dot_below}\" => \"{$this->D_dot_below}{$this->dot_above}\",\n \"{$this->D}{$this->dot_above}{$this->horn}{$this->dot_below}\" => \"{$this->D_dot_below}{$this->horn}{$this->dot_above}\",\n \"{$this->E_macron_grave}\" => \"{$this->E_macron_grave}\",\n \"{$this->E_macron}{$this->grave}\" => \"{$this->E_macron_grave}\",\n \"{$this->E_grave}{$this->macron}\" => \"{$this->E_grave}{$this->macron}\",\n \"{$this->angstrom}\" => \"{$this->A_ring}\",\n \"{$this->A_ring}\" => \"{$this->A_ring}\",\n\n \"{$this->A_diaeresis}ffin\" => \"{$this->A_diaeresis}ffin\",\n \"{$this->A_diaeresis}{$this->ffi_ligature}n\" => \"{$this->A_diaeresis}{$this->ffi_ligature}n\",\n \"Henry IV\" => \"Henry IV\",\n \"Henry {$this->IV}\" => \"Henry {$this->IV}\",\n \"{$this->ga}\" => \"{$this->ga}\",\n \"{$this->ka}{$this->ten}\" => \"{$this->ga}\",\n \"{$this->hw_ka}{$this->hw_ten}\" => \"{$this->hw_ka}{$this->hw_ten}\",\n \"{$this->ka}{$this->hw_ten}\" => \"{$this->ka}{$this->hw_ten}\",\n \"{$this->hw_ka}{$this->ten}\" => \"{$this->hw_ka}{$this->ten}\",\n );\n \n $i = -1;\n foreach($nfc as $test_value => $test_result)\n {\n $i++;\n $decomp = Unicode::utf8_recompose(Unicode::utf8_decompose($test_value));\n if($decomp !== $test_result)\n {\n throw new UnicodeTestCaseFailure(\n array(\n \"index\" => $i,\n \"input_literal\" => $test_value,\n \"input_hex\" => Unicode::hexdump($test_value),\n \"expected_output\" => $test_result,\n \"expected_output_hex\" => Unicode::hexdump($test_result),\n \"actual_output\" => $decomp,\n \"actual_output_hex\" => Unicode::hexdump($decomp),\n )\n );\n }\n }\n }", "title": "" }, { "docid": "470e88683e7e36dcbebe4c6d6224b95f", "score": "0.42278022", "text": "public function bp_acf_color_palette() {\n\n $matches = $this->loader->bp_get_theme_colors();\n\n $matches = array_slice($matches[0], 0, 8);\n $matches = json_encode($matches);\n\n ?>\n\t\t<script type=\"text/javascript\">\n\t\t\t(function($) {\n\n\t\t\t\tacf.add_filter('color_picker_args', function( args, $field ){\n\t\t\t\t\targs.palettes = <?php echo $matches ?>;\n\t\t\t\t\treturn args;\n\t\t\t\t});\n\t\t\t})(jQuery);\n\t\t</script>\n\t<?php\n\t}", "title": "" }, { "docid": "0f7c2fbe5828e4d7ae819f4c716d3d6a", "score": "0.42269853", "text": "protected function getValidSGF()\n {\n\t$sgf = '(' . $this->getRootNode();\n\t$sgf .= $this->getSetupPosition();\n\t$markup = $this->getSGFMarkup() . $this->getSpecialSGFMarkup();\n\t$sgf .= $markup;\n\t$sgf .= \"\\n\" . $this->getSGFMoves();\n\t$sgf .= \"\\n\\n;\" . trim($markup);\n\t$sgf .= \"\\n)\\n\";\n\treturn $sgf;\n }", "title": "" }, { "docid": "f67bafe139e4137f6cd89c992cc021d6", "score": "0.4220141", "text": "function HTMLColorFingerprint($value)\n{\n // We want to generate a color that is suitable to use as a background color on a light (white)\n // background for black text, so we want a to pick color with both a minimum and maximum brightness\n // so there is enough contrast between the back text and the background color, and the coloring is\n // still visible.\n // Pick a random color in the Hue, Saturation and Lightness (HSL) color space\n // with a Lightness value between minL and maxL\n $minL = 50.0 / 100.0; // 0 .. 1\n $maxL = 80.0 / 100.0; // 0 .. 1\n // Since the md5 mixes the bits of $value into the fingerprint that it returns, we arbitrarily cut\n // three 4 digit hex numbers (0..65535) from the md5 fingerprint and scale them to appropriate values\n // for H, S and L\n $hexFingerprint=md5($value); // 32 character hex string\n $h = (1.0 / 65535.0) * intval(substr($hexFingerprint, 0, 4), 16); // 0 .. 1\n $s = (1.0 / 65535.0) * intval(substr($hexFingerprint, 4, 4), 16); // 0 .. 1\n $l = $minL + $maxL * (1.0-$minL) * (1.0 / 65535.0) * intval(substr($hexFingerprint, 8, 4), 16); // $minLightness .. 100 (%)\n // Convert from HSL to Red, Green and Blue (RGB) color space\n // Source: https://stackoverflow.com/questions/20423641/php-function-to-convert-hsl-to-rgb-or-hex\n $r=$l; $g=$l; $b=$l;\n $v = ($l <= 0.5) ? ($l * (1.0 + $s)) : ($l + $s - $l * $s);\n if ($v > 0){\n $m = $l + $l - $v;\n $sv = ($v - $m ) / $v;\n $h *= 6.0;\n $sextant = floor($h);\n $fract = $h - $sextant;\n $vsf = $v * $sv * $fract;\n $mid1 = $m + $vsf;\n $mid2 = $v - $vsf;\n switch ($sextant) {\n case 0:\n $r = $v; $g = $mid1; $b = $m;\n break;\n case 1:\n $r = $mid2; $g = $v; $b = $m;\n break;\n case 2:\n $r = $m; $g = $v; $b = $mid1;\n break;\n case 3:\n $r = $m; $g = $mid2; $b = $v;\n break;\n case 4:\n $r = $mid1; $g = $m; $b = $v;\n break;\n case 5:\n $r = $v; $g = $m; $b = $mid2;\n break;\n }\n }\n // Convert from RGB values (0 .. 1) to hex (00 .. FF)\n $color='#' .str_pad(dechex($r*256),2,'0',STR_PAD_LEFT)\n .str_pad(dechex($g*256),2,'0',STR_PAD_LEFT)\n .str_pad(dechex($b*256),2,'0',STR_PAD_LEFT);\n return $color;\n}", "title": "" }, { "docid": "cd10f6b4656090c659360c90b25d3548", "score": "0.42181328", "text": "function kickstart_background_callback() {\n if ( ! get_background_color() ) {\n return;\n }\n printf( '<style>body { background-color: #%s; }</style>' . \"\\n\", get_background_color() );\n}", "title": "" }, { "docid": "de60eac338716b5b107edb08dbe150f8", "score": "0.4204862", "text": "function mts_check_hex_color( $hex ) {\n // Strip # sign is present\n $color = str_replace(\"#\", \"\", $hex);\n\n // Make sure it's 6 digits\n if( strlen($color) == 3 ) {\n $color = $color[0].$color[0].$color[1].$color[1].$color[2].$color[2];\n }\n\n return $color;\n}", "title": "" }, { "docid": "6689d27eb5ad74b6d28d8e36b7c0e917", "score": "0.42037702", "text": "function delicious_color_schemes() {\r\n\t$style = genesis_get_option('style_selection') ? genesis_get_option('style_selection') : 'style.css';\r\n?>\r\n\t<p><label><?php _e('Colour Scheme', 'genesis'); ?>: \r\n\t\t<select name=\"<?php echo GENESIS_SETTINGS_FIELD; ?>[style_selection]\">\r\n\t\t\t<?php\r\n\t\t\tforeach ( glob(CHILD_DIR . \"/*.css\") as $file ) :\r\n\t\t\t\t$file = basename($file);\r\n\t\t\t if(!genesis_style_check($file, 'genesis')){\r\n \tcontinue;\r\n }\r\n ?>\r\n <option style=\"padding-right:10px;\" value=\"<?php echo esc_attr( $file ); ?>\" <?php selected($file, $style); ?>><?php echo esc_html( $file ); ?></option>\r\n <?php \r\n endforeach; ?>\r\n </select>\r\n\t</label></p>\r\n <p><span class=\"description\">Please select the Delicious color style from the drop down list and save your settings. Only stylesheets found in the child theme directory will be included in this list.</span></p>\r\n<?php\r\n}", "title": "" }, { "docid": "b6140270a608602972fdc23b3af43e23", "score": "0.4189864", "text": "function space_key_word($read, $line) {\n global $end;\n\n if (!preg_match(\"/echo|printf/\", $read)) {\n $count = 0;\n $tab = array('auto', 'break', 'case','char', 'const', 'continue', 'default', 'do', 'double', 'else' ,'enum' , 'extern',\n 'float', 'for', 'goto', 'if', 'int', 'long', 'register', 'return', 'short', 'signed', 'sizeof', 'static', 'struct',\n 'switch', 'typedef', 'union', 'unsigned', 'void', 'volatile', 'while');\n\n while (isset($tab[$count])) {\n if (preg_match(\"/$tab[$count]/\", $read)) {\n if (!preg_match(\"/$tab[$count]\\s{1}/\", $read)) {\n $end += 1;\n echo \"\\e[0;31m Erreur : \\e[0;34m ligne $line : \\e[0;31m Veuillez ajouter un espace apres le mot cle. \\e[0;m\\n\";\n }\n }\n $count += 1;\n }\n }\n}", "title": "" }, { "docid": "0255fbd5bbab28a770a736256614d84e", "score": "0.4178997", "text": "function get_color($sinini,$sinfini,$fecharevision,$fechaini,$fechafin,$fecharealini,$fecharealfin)\n{\n$color =\"\";\n \n if (($sinini=='true') && ($sinfini=='true') && (($fecharevision>=$fechafin))) {\n $color = '#c00000';\n }\n if (($sinini=='true') && ($sinfini=='true') && (($fecharevision>=$fechaini)) && (($fecharevision<$fechafin))) {\n $color = '#c0504d';\n }\n if (($sinini=='true') && ($sinfini=='true') && (($fechaini>=$fecharevision))) { \n $color = '#d99795';\n }\n \n if (($fecharealini!=0) && ($sinfini=='true') && (($fecharealini>=$fechafin))) {\n $color = '#f79646';\n } \n if (($fecharealini!=0) && ($sinfini=='true') && (($fecharealini>$fechaini))&&(($fecharealini<$fechafin))) {\n $color = '#fac090';\n } \n if (($fecharealini!=0) && ($sinfini=='true') && (($fechaini>=$fecharealini))) {\n $color = '#fcd5b4';\n } \n \n if (($fecharealini!='')&&($fecharealfin!=0)&&(($fecharealini>$fechafin))){\n $color = '#c2d69a';\n }\n if (($fecharealini!=0)&&($fecharealfin!=0)&&(($fechafin>$fecharealini))&&(($fechafin<$fecharealfin))){ \n $color = '#75923c';\n }\n if (($fecharealini!=0)&&($fecharealfin!=0)&&(($fecharealfin<=$fechafin))){ \n $color = '#4f6228';\n }\n \n return $color;\n\n\n}", "title": "" }, { "docid": "ae6708e3eb200cb16ed3b55ebfcf5614", "score": "0.41764894", "text": "public function paletteEpilogue()\n {\n # This must be done here as FONT records\n # come *before* the PALETTE record :-(\n foreach ($this->font_list as $font) {\n if ($font->font_index == 4) { # the missing font record\n continue;\n }\n $cx = $font->colour_index;\n if ($cx == 0x7fff) { # system window text colour\n continue;\n }\n if (isset($this->colour_map[$cx])) {\n $this->colour_indexes_used[$cx] = 1;\n }\n }\n\n }", "title": "" }, { "docid": "9bb878177315252f83ac0914bd2dca24", "score": "0.41752627", "text": "function get_blowfish_secret()\n{\n\tglobal $blowfish_secret;\n\n\tif( isset( $blowfish_secret ) ) {\n\t\tif( trim( $blowfish_secret ) == '' )\n\t\t\treturn null;\n\t\telse\n\t\t\treturn $blowfish_secret;\n\t} else\n\t\treturn null;\n}", "title": "" }, { "docid": "fc80fcbb3c56af411f976b2e0932ce8b", "score": "0.41742608", "text": "function shellini()\r\n{\r\n\treturn \"0x4d5a4b45524e454c33322e444c4c00004c6f61644c696272617279410000000047657450726f63416464726573730000557061636b42794477696e6740000000504500004c010200000000000000000000000000e0000e210b0100360090000000100100000000003d9502000010000000a00000000000100010000000020000040000000000000004000000000000000010030000020000000000000200000000001000001000000000100000100000000000001000000009980200dd020000f19702001400000000c001009000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e557061636b000000b00100001000000000000000000000000000000000000000000000600000e02e727372630000000050010000c00100e6da000000020000000000000000000000000000600000e088010010e89a02101b0000000e000000001000106b970210b7970210ba970210c8970210a3970210fc0f0010de960210e0960210809502101dba0110ed970210ffaf0110d2960210000400007c070000c40b0000b30200006604000090c0011000000000ffffffff01000000010000000100000001000000000000000000000000000000010000008800008018000080000000000000000000000000000002006500000038000080660000006000008000000000000000000000000000000100040800005000000090000100004400000000000000000000000000000000000000000000000001000408000078000000904401005c3c000000000000000000000300420049004e00459398edb4853493541907b2de1fcbd640cd0773df2017d5f39748433f6d90c556f2b1c13f1be3bcb417f756a33186e453b17faf31e8157911b03da9aaf41f2277afffec07571bfae8214b0ff18af2f7c0ad2d95a1ff0f487658e587923bc1ce9d2c2698c74b940c5842bf55c7da2026563c174c45c6c5e08e95b030390ef0886bd124043aed5b1631b138955065fa05fbfcc1c0b81636c51c7f18bccc846ac8305f5c5134fd92a3e9cb2bb5d99ee1e21a6f5d2929597c59b61e8925c1675138746f1f549d1b8a0c35b7dab30b46a401737162d316fb50723e8a98ca5d6d298259015fe6e1c0a402790e15a965807b488c73e6915ffd6e57d333c0d86ef3a562e0bf0bccbe4bc7ccb560bc2df75d593904f638eae6a964c33f4e123a1d3c213b184373bf34c66ed68b368316156e32f6fa63e02add3b03893f73af8abd1099c48c1d0c886314167008ef255d5c2c3539fb781d6d39aa432d654c702f15df0a339530889adfefde4b9df29d2e8fa7e4317fda1b0588a22265eb53c317bc6ea94fa1981968d5a60921ff60f9e9559123aeaa8d1e91e38fb1a2fb1d2075454e8ef226538ed8307db2c99cd396b5c6da829569c3875f317a4bff429b0528d204af4284fc05207901d48e52b386e5d44c69a2e8e3086f137f1d0694ecd619ecc97af83a97d5a0598701b386bd704864c72b3858824fc94082da933d5fadb23ef3dee6528cd4cb2eefe2f2b03d17857940d70222d541b2523f4e7d5b8ee46caba89830d664defb08f798e83818cde2701b8c5d37fc6c5c045ae468efca8b8d5b62b60811c21dae6b86deffa3824e7581435c0bc67555c2d498047554b52d0bfc909911e94ce5d6d3a72659b0ee25f2b40be7d239115256d8c2687afc7e075a2557f974d9130d76e09955235ed4afbc03891d8cc489c8a6f0aa00cfa41ceffd29df70edd17679477c4edd29023c807a55e8dfe614fefe44ad759cfca628d9da21b68e2d6a7ab33d62b175fb858c94158923278f256e96eff885e3eafa12b09ecabfa54d523a3c33270510fd821a0f56e24d3bfaa815a6bd4e2eba52e52a940037728e2cbcd8278fe714384a4bfc887797b071bb440b010a9d0db60cbacee05907b7b08e20dba7f45ffd21265bc47086f8275c1c5071afaeb7ce0336e0a5facf0a7923597c7f4ee7b54512b38608c8ce06acd05cfcdd68ec58f288889ef615623409bc88dd3b09b8be22fcc199755426b4b0704ec21ae1a3e7efe21cf6952456f3743d8d76e1d02e7f7815ea30feb20f279fa9cf827d7618c1c182be35a5ab2eb9f611057b493eff526a75513347a1dce859f1d8d5cc9e842f55f82211b2fa26ce53c5f133afd31531c50324a5429b74fab0746eed031acb0d02344e1b495bca244ae6eba4dcd3da28419a064c22e895880fd2485c3e6861b6e06a4e43959b9d0633774ea85692b12408f6867903f8b9bf790973680440d4822238690617af451d0eebf942d4c98637e9ba092b38dcdc608f330722cc255a4feb5d2a3cb268518ebf43231d9630ac95ae22ff0b8640335febcaf6a3066be83f03673636639e7cb025963d4071886ef072bf9f6f5ad0e0a407734b77320cb1fc6a6a07d14d36403ac1b849eba998b5f64d59ecfa4e30200d84d236a12b1b11acae3e4d74ca5368657f93b4d80cc5356c5537ffab7d3f792a03912a01d94c03f4f097824586708ecc7cbd1db4b7e24a0f2e45121629b9c2bc92716b790246c4a4159fd9e4958fc13a4a72c1d799078d601f3eba6457ae19a68877841d343175f3b692ec219c3a059931421596335af3121670ef9602fce94de822922d7f1c357f7719b2a63de4a0c9b648297326b5a32082462e6bd83457f5c415a418209b4deecbb66f26383d9244f08e0aee60659808dbd2a4744865f6b6a0950ed88138a0c6496245c84d60caabef5facc467f114dd3b695e39fb076887147be54b8ff924aad0e159f4da839d7b67ea764b3e5906ad36bc3c476584bb38b7f009cedab0e6d89bb9ec76e3228e559b69c763bcbe2804dfbc4c6eba24173214dd72f455eaf170e5afc8b7a1ffac801dcd05a53aaef649f67f1d11cf249cdcf2e33a7d93e872d323a836a78be609996b592f3bb5fd8f6b952fd09d66647dcc055aa681b8af88597d510daae5255d2318b9b5e116b83b06c8a644010d677c683684abd9b677ac444ec7163218e4708336b0d12bbb660fe9bc21e49d2efc76d74e26c71d6c945267fd7d664fe5385abc834f661fe715b0924e9c63f5f6c88cb0ee11b44393a9113f6c17d56bd982a00cd4811653669c3a1b9535260742017659cf380fbf76ae37b92863bc94923f3990658db72c9c64bc29d4c2c03ec0c1c74e3558f66092c1d78d710d52a2c96cc6cad8729d9385016b36c9d231986cb60e8cfeb37aacf1205b9cbad985834c8b4b9d435e17dbc94967b5eb3e32e2a0423744951b1a087d85a822663de7a3f9c2253f7366d02e161b9b3a18fdee2946d741d3f2a5b0d0f3217e54d9cc97c8a62abca1b114240cce3576a7131069751af5a280721df185caace01a618f57cd8dc52e03a85048adb2d6f31d9d136817602ee2c38f694e6cb9eb2e830abf46b8a2f4ecf4fbd190e357d774e1dbe9de09650ea97486d41bb406c36d07dfa66c8347720158494c21ef841d6219aa0d3c8dd1cd33c3734e49ee574928bb0b1b28f86f0eced7c8fc50e93868455d6419ed7bffe464315490de54ab89437cd6f9f2e71fd59e4c5863ec3f83e4760edc9bc51a9c55a4b253c7966eb110259221449c131b3b328630ea1da1d8553d05fe6830902950a48d623396edd5280a1bbb165d1eab1a77f157d1b7870c4411850752bab0b6fb688d268901c2d8e456e3ee0614d1dd30a138f33661268fd83eb720f5953c280949f7760372ddfbcfd9fa54ced88fe574da013246aeea3bd41b72c6dbf603adcc21e5b7de44345d2a972ec002761a886b55579b8ff13286f668504c3290d15dbef81b1e96ad946a6466b7128d0ac11fb7fad4fe60b6c70e687c5665827a1ded9326f329c3dacb0dbd25ac1adcdc3eccab7d97db8c55b96afd5504bde724ca1489ef6108b25da9555f78111a6a04c30ae62961ade9cb8c02be27ba9984c0104ab80376719a08047d821b0bf60e1a29a6d7d377760b053ae91bf8057156e5b593a7dc8058f05e2da4ca217cf5be8881e00fa9d1f7a618820a0f0b2ba6175dbca0b6f035bc24ebe83198b5a90ebde91e8954581da67159639f40f37210a1bd8bf14dc987fd37b1a5fe69bda234e6d7f70d9ca0531039f19fd054904eea5b7a52ec468e5345437d0737b1495dc7249ea4cfa6f48c2e3e6158d5f0f1efd1bafb4d7fe0b0dce7ad98e8d3f57bb708a8aea83a0eea3ddc00394dfcdfafd308b6b24fa20c7625d2fcd6a5fae7d273ec98eea794bfe979dc3123ffc32c197bdca6321b57785908e6d19ab6f536a8df7e1e05baded7a4ebc007766c508a13394f51803beea47fac0ed97c25ed9888ddc6dc6219e704c6a132cd04cff7447b2df742108d0272366b11b2c4767464b460251de4ce3ce6d193589d14aec9b97766a6883e4dbf1dca0edf32f8980ebf2f9c935dcc56fa6e0b29798ea458e6edc0af271e6814fa425548e41fc8f641b8ad487a20812e4eb25063746b3d4244b101031580a0119d649ca5f32a68b11e7d5741a5ad7682fa8fafbe5aff113269b9a47923f81d3a028615f8c6e7b38e78e443cb2a49d91c2a7757a99df35aaa71dfd21e0b5591af970e6d2f239ff7e2d76acd9967ad6fc30d460d552f1930461e9b86a92d358618fa3b539029603a3260fc65d57a5909e35777a633d9093911fc636bfe3745a7510cb4633092223f5315f6745a604ac0365abae8968b19677f840b1502e21b638ceffd5075b3d3688eab91379dfeed65beaa5f7ca5b971dbc53c6c000b259dea5d6fd84b2e12090331a45299d807d3c12545f84710d36168ca4f277c8fa3982806faef71d73860b58f8db7a3116af13418100c8e905651b538b5c1853fb194c574a918b8f0426152253ff3db5af8289080fe0d7bf2b9d907c54eb2604d8f4e3865d8c7e8659acd1928182206c0efad42664b6ef473f74d7a8d681273590a487f250c143bd18253c3df904b620f4203757b029d8b41bfbcb9ace3d5e7673386dab5e3e486a3f49bbf89f5a4c67e0c1067c0adf6bbdfa43cd6289c1e45e46fc4f236a708684f9461787a90f6fd9a1f55690bbb3ddfcb94d960c39f58110acd1a4538b6ae85b06e4024610575bc3069a2b90b07e01096854e1e8bd00260bd495f975c8543030031c6fbcd201bf384f27f72af8c9ce354ef66a27fbc04dc0bb34f7a67518575d78bcac95243f1743b0f843f7806d1b6278766e05e90694a328230b378516ece63e46180a0c2d3972674fa8de29c864198e66173bea93f54995bfaa4b1e8638ba111187e26161d23ddbaff9a1dde6c8601b6c1c5e0658a153685de38e7a92a39d34587d67d10da2d7a01e70ac5488b16d0002229154101f0d5f6afd6636f7e376a3d5842861f8c5642b81676a5a3dc14de9bfe1e3011cb9e4cdd6a1afa87e84f86ee792a090f48f9540a23eb0928cf8d9f52a44acba76c827494bb6ef8971f1690d441f0ba8322b5cb15ee105e95ab47f560ecef4d5046c75ded3523549b3a2a0c878906af9ef17bddb57d82a437932d9b6802cf178e34f9c4764054f01902258e7d2317b9a98e78bc273e406d6fd2d33c4270cfd4596fedec01c4f9e6216f73a71e930b208d247dceee69f0d1f55a179c70b69f71c0e8a8b4cfdd89cdb1908d6d96b33d98a26456f79f26c744f9f7508983324cc354c1f20f89480c8c506fa04f59cb8ae99f8bf4ae9ba8b06f6aa052b695aa5da8143eefda5b3a4d65b0333f944861d2d53503236151731f4b262d66597865ffebc3474f3566b56f4ba520e9fd933c304ef9ca43bd6336e9b82e0e76724c1820aa1bc231ae694cf759938c29c210cb676885a65b4ae212f4382788458ea9a136bfc9bfed6f159e0844c4db54a3bac68d95cc91623f7e1476f8f736c131097daf671157f18d67116a2d273fa9e53375955bb7bb6ecb3518e7f05dd9248a1e26607708ab2a67904c44325fbe219e04512da82e93d466fa33a7d00d70d1cd45d650f3bf001bd7a2d0ae1c545fb75fb6af69bbde85e358e272b26dd2ea189db0a41c1131ec3882d5b72e3a643e02527909758ba4bd542746b60d822b35884b828a12b683aa4abd4861f7a249bbc0dbc12559e88c2bce5bf5aa35c0b17c69794abbc5765e7eabca36ebfb7318998f974d42f3df2564e29abe38e7671d25702051346b86fa36f6b71dae27e7506e5a5a790658646ab672bb825857890107e837992ab33ad751963c155d5d85dbca61092accb9e38c4589db3487082068f2dfc818fe05f8ce8a18dfc6716e0466e87d79ad6bf1353b0a34be96416d0f44c44a9563fdbc2c093875a385ecfdc6e11a488964690333669e8dc714957e0e1b3ce29c2309bd17ccc74520cda658381385821f44137a3486a682fcefc2e111d8304264538a64e8acb6e791960342463f970c4d250e154f28b66a5a7011bf7942c04e053804c100e79a1cbc4278f689ab9a3bd4669928bcad4c165644b53695fc7910a2129a872e548de830ef3b7ee255e7b6480f06f9fd895e84e5b5e038ffc0389317e95a79dbe8c95c8b8bcaef5a524abd85da966e905d2db3946d56eee8f5006ce54eea02c035af841bdcf95509422fc24329e6a03bf6eafbefe5b6ffe19f45a63ceb73ef8bcb0ea9e3030d27c3d6a8ddd88b041dc47fb229431498262a8887785dd8657c055229dad916a71360aa931bd7e158b6c17e3a2d8cefd88f77e40ebbcfa4db96b89d6f51402d7e325a8e64fe1fab085568dc5f373bce2bd05b24eb60f87214fa162086d5521d39ee0eb565f86f338ff996e3fcf4a9dc36f3a32cdcc356eff69cc0f5bacea0f331494796d808168b83eeb8489c0f687052c709e7558005e7d34aa60424265cc8a656d065ca83b78ed51d0a2a6f1768c3048ade80275469ca6091a5720d56e36c1c5dc0f6fa344259d34c2324821ede5ce0ddf1b9d9132270a6c2ace863d258b5377f3dabd660a0c4d59278fa23f056d76b077812e7db036500bdd1bb333043ff1aa5267ed828ee5af9e4cdbdeea851f3234f93700e681f13b5eacb938e03851d4e80f319d5dc8e6439fa41475d6f133d131cebefe4db7f3a7c0b9d62511805373e2a5ccb637b81fd27fddf03eb72d74bf20b54e00a501acf1a61aba9d994055402d838b85930912630335e5b545c0058d9474e5ac355a5f630f8ae6e3860bf8a62798926179a3bc9c2e7264752ea7a0b45bb6053169504510e70a043d3efdc5af76a2e1df04c2a2b7cf96dff5e8f212510d9dfec01b425107c9c8fa7500637a27eff7bb7eb7935566bfaf5d37323def1740318875ba2e0cea9dd3ae9ab7d0bf74ad9fb7c87c91a62aafd80b8661f28d5148d92a4f8f80167b786751a40edca8b3de8c2bb05c7cd682865ac3493377cba23a4e1fea18299336e7533e38af3598acde9646c1d6164b3fa8059aaa522824f6ffb90c12b4827d0e0302153f2126201bb6b588875cab0d346a7dc8749654f503f01bd9a4e672a88104829417bfd2e344b435fd111ce7ff27b56c81b44c487df01e63f0ba70228ad76fa2b4e0d5a57d7f63827afc2328a3f6b679eb581c9247689baf8057fc892bf5b323f19091b085bfd1625d7458d8a8a8ba3248fe992fe9edb14dafe34355234271d9ceaf4e9e298c02743be6b5488a8e248baae788e793301078ebc3824424374a0624404d6ce2d268fcf0052a20125e71295eea2b0c395ecb2f4bc20efd7270e4b00f2a17de04a587c4e17bdbb07713f830be090c4200db5477f75e44c9714d4eee288e438fd3c6887e5b08ba6f2f015dc749871fed99ac7bb5d25de80ff396f0139c1a98ecf25971383068cd71083d9a3d11f73860372efeb266da459d9e3f49d7c6a47e034ba7d97142cc6183bdcd38b0881ae18061070e767f68835d8e51dd585dbb6597b8e66ea60a553d876bd355b83d2c1340385ecfacda26d65c744aa6d025dd393ec353778c0c24df4abce8f96006856ce322cc902aed08ad19ec4c01ea392ddd15ea0b6f25fab35cc314169c440e9552e5dcfbf02a7eb924c8f40e7299245d550ced955f57dda2b95770de0f80041384f26f075cf4eeb0b893f5a3844e9779b5ed0c83810f6ff31836f6c289a7bdfc95e9d452f931e6dad9252d97220485e59aea90fa8df84b17e993f1627ac66a7ce4920eb63fd7f27b0969e7e19fb83f8252623818cd78ca73414cbb5be0f242ed5fbe337fafb88cc3d203b5cbc73daef664635f7c9db24a6a7795ab7f2fec1d47cda394ca4367013911174e0a7949c6a8993483c76891b248803a5be67deed96cf301a14ab61246be742eb8e3a09d3c619ad9f3320ff53b99c2b6b2f41b009d629ce0df2494836158fbe4bf7e3460d88cb212c99a4decf3f9ccec071f494269d7bd570b5ea0fca07485e5326a4a6727e7e0c101375e4239535ee6b0d63a20c3c9bfc5d0dd9940348c3421673039371ae3074698e7167c70fc635ecb2daa207aaf4570043f2dadb1af007b930d979cc0da729baff0e077df062ad3f2bcbd4e9daebd96f90fe9946cd88eee0d72a9ed035af0bfceb843a2399468088a24d8b999403438fc99f0da8e4a91a939953ffaf7251ca3fd466ff2110afb33242e278c6b072f5ed3df4c1482d28722874f0b1f30226bf336699766333dc331abf7ec09466be15eceaa2bc8d6b21ba56d5e960b7b485466ac92f03b3ae98bdc441686e2d89975756dd922bde9f8760c6a9a21e046d9f38ad2477e5c11e306b7f335eb5bdc198c28a28139b4944f43cd22b6798e89ed772271a43f1c802db013d047977dfd98361a4ee89186dbfe61fbfa02432ac4645f0ded7e6ec07e82f102922c1917082529e3a364b43196e93c1ec6353a0f972165d63b2086e43d31c21e28136e72f338ffeea68bca8490d58227d435dcd2defed8ca49cf486ab29b7e776220e66c20636f1f551d54bae83b4996ec68d656f1a29b82d806f5498f29178f503919d517835f289d4b5f679d61c4f91522ed8ab502b544346ed3b3c2fc949a149a24a703aa524a38a233323a02fe5fd220884d708999f227cc27f800b6b00c4cae107def5b0cb9ca4336875662af9622231b38521463432c4b7ef837569efbad1fb7d6ca953e28d1d0e520b0c98fd74a424a6c06d41a60d7cd6e8ee721847acf03f996c371c321a83bf15d37c72aaa44b51bf5a7e8caf1c3787eee48aaf372f010931cff21682968b2033bf4809203203ec61566f96fcd2acd00172d91e9bfb5b8025652263281d985b316040ddef4aeac0f8e3542b41b76ff98b5d0303854aaa254c3a841867bb25c65fcbc2271814b525be74b3401b240fe5fa3ab12175af55366c7a839fa2c7ff59f85bf0b51943df5c12537ca78ae77c176c5e4002a87893a62c256f0c4f86778e4e059c0aa20e75bfc5c2835f4df0fcd7ac1171f49a8ce39ec5b6a2f69b995997dc62f7638c6e379846045e4a6ee0c1dfd162e2655b45769fa10e87bfd6b4a488477dd4f8e70cdbdbeeff66daa8715f286ac7a73506871cc21e4f7ef300b6c295c78c1b3e5d6031d7fb3be5b5635bdb92bf94c3f4e4335724182facaa37c5d65ff165913ff61cd8971d178a62444e45d6c92b19bc9a1b21febe3715a1f9f916aaab25910986da22c736954bfbf8b0c0281b1ef97b9851b12ff39d1ad97dbecde06fb708a588f4bc99dc5d52f1ab87407b40c1e06d23761e354a2dfde9324f64b7d3391c5d2857904a12965011bd2d1f5d6e5fadc4d4acd5605167f10172dfbdf466ef9f34fd1b5b290d426bb3c4c812de12616016c6dfed62615f522342a1157218cc54ecb2874a3fff11d97810c5d667413cf74008b6ba55cf547d7ad1e10930da17f15a7b9979dcdec0191f00fecc45a8321f0ec2c4c2abc963f8bdf34f3d05b8db7591880c0e36ea294ca4e483be57094addbf9edae51f8b0c97bf47861304e7b304f3591f1f2e6f2b287b3ce9e64fefad5e811725b9a41ea799735ac307790582e651e16020bcb3c4a4c34735b4c6527703674d5506d63e7a5a5511018dd34532ca896906e1b8c9dcfab3ae32e52727f9322ca39609cfbcf058e20920c673e7af34cc8f3450b3a52e16deb895cdb2e412d26b88b9c2837bcb7f82c9992cdbe9dea677a34e4d9c612cb2dcdbcc9a2eb11d77558410c483844a7a9cca54e1a2a2d74d131817dbbefa63405bbbe04c659868fe80cf240daf9c26eebdb898077e59114a226bcd0d8a24e2ededb73f18128661f5ed021b14ccd6c706ad72dd68614248496fda0e7428ac21269c6cdfd567800cf258f031de85d46a1dd9f962acc481085a1078e95f9a839d5c08e55c2652879d2c2506429689612ed4a6431b1e2302965b00f9ae4c6520f18711ee8e618d4dca0d4927b88381cc0d5fe9652f29a3e45faf1918a1663b0a117fc3ba17640c01d60b305d4aa89afc9a50517e78bd488b66c4bda8ed57e3ba56270478bebb4737580f1f77785cb60bfcdfe840e9053d3b5f06750adcfbfe713cb46a1df4b7a828a4f3c8117e208a7b3d8d934b408478101d29dba20493b57a443962e2969f3165a200fe6ded2692a029cb1f9c138e25c14903129b018eba648d93c2079a614dd03d948fdea6e877b748fff6a7d396bc58e096ca72a525cb67594841f95a99ea9351ccda548a7b7b2311ec672b27e535edac3c2bbeeec863b4ed848b53488189ab6bfea6bd376e5280f0f4f5a1d526fbcc91a97a3d21f044235d6bed56284c19c41f4cfa3f31598e7dcb31fa761e61a9bf57f19daa3ba5634e5a37cb7bddc6115d436f9b3a0e56fc0adbbc4b34e8c0e25643d7b9bdb32267f524b2965a37e5070db5fb5b612d249ec12960128f7980d700b2253a5fab0fea4aa9735144d640d7f25a34282a3517f2dfe39d595c4c68a525e1ed92ebbdc50798b5b62fa8a694e61af9db663f2f0f6bec86ec451fa0b08584c23feab9804dcaf95899fe80206103a841f88ffd663d3d475eb4633ff36702afad9eb4c8b666014d89c21eff0f1036b6fe2845d5e24870e45d61f89eb8ed87a70289500391151d89ed889cda7fff8575a19e9b824aa2b28a9ff22a7b603bc6c91bfdd38b01303c2fbcd51d62a5fd73db8305ff84d7436901d0c3b613b6bae8216d15e357181b6cccb325dcb1ec9e41f5282165e6333011ae090f9fe001a3a2d8f3e47c1fcbb651c0040ae1fd3a593934b8e838ad397ba115433dff9f55e62dae5d5f768cd6a5becb121aaa08cd3f1e83f4ac69eb191247573ecc66c6c9faa7dc5f97e3405dbf86a9211c9450c62218c5f14f3719b0a1ebb7e9128e8989070e8921eb4e0552339b34d02b2b80d12a966ab63562ec61688d46b3beacf361793d9f2df65024473dd785b8ad4a5b98fcd1385cd2cb78e01061d0e8e23b437022f42a2f8ea396b44c1abf35b644efacbb064345eaba265093eb75d6ff9371edce1d3eb1ecbb364c55db41e0287554af06ca4b0db4875a5d2c8f1aba69771790d792b06ac064a9d12854e2324a485ccf5a4fe6ad39c3a57ff30c8a83b341bbc69e9dbbb89530b2009a30b5bff3adf3505311dd291208d47edd288bcf6bbff26a2877254b4dceed90a3f7a4a5b2f7594f02e43e07b635a4ee8b182c4fef7282352a655bcb4e8d7fa68365712b23ad0bd600dc3d5f39af26290a4dd8564b68d1c985cef5434c461d8206bac6d7c0d1e55eab379c5a8b1c17eeeace75590c78bc63a59e3a72827c0584500ca48ccfc2a65e16b3527950ade1f945f1dc31044f0b56ffd1d372014a9b347d85d63d0efe03d1bd6ae0fc95d5703dddfa091098ea4b8228ec77fb6fa192c969343232c3ea5896d9a39503c528564d8babfebde7c85c9ba14aeae5c012c41a75450ee464298d6af1cdb03e44211d2c6796babec9d335446977aa552a51dfdf7d61cc8ba4ada1d5674321ba172aabcb7e82caa3e497923de2a466ca1e908b118b4dd07fa6fb40901f3d6e0d6af3dcbeb2b678e44899b8663f1e91cd00a32f21c407965aa89cc3d6a43b5d9a4472c756e6620a82f22fdeee5e4d416698f75dafb1f4e19b4114b65e4ef6de33348cc5292a67e598eb84edd47841ea6145ae1a9feda9d2a41983af77596a87083ab0c88e27bde0ba0cb96b5ec0641b2c7b82455e3b72013fe5112e3ca8657e5a785fe8bf5fc2d2073bd75910a12215949867c1fd5a9639f6aa9640bbbc7e59194bd165dea0402f949e8baad329f46fa16cef4390faf9b7111e2575fe16e1b76639ca0079afbdd03741aa148754ad5d7dde6b4321ee295003a0b23001a2cdf27f263a71876958295fe9b3721c1f04ea2eebbe98bddd7f0af338a88b9bd57dc88710d28f573e2a2d905d713af99d492c129b2d539277d7418b1d357a74adbe27585c25bd2c16c9f39f66ced1f5472f2da1b92c195b5aa84737c1c51a7a1bde1344bae614912654ef6643e3d820b121dd2631cb6d497aa826c4eb79dc98c6b8a9bac431659610a6c7d1511a6fda5b7769c847b59052f072b2af69d47efca50f39afad47158ba81fe287d725d07003bb58f0ecdf7467992f63b6e413b932d70aae0930e0f1ff762f3d004526d89a388c690a20b949f574d6c248d6ab42696437dcfbc9fefeeb40742dd3c10d2f5f22c05e8e7c0fabbfa12aaf186a79b47f3c7e0cbcc2d0152ff2aea736096537a3c9c1f936ba96bb64733907701efd65a619c788b589a7f15702bcf2f0af62857b9f8a7e343156ed3e483fd08f34957354daeed6827c67b34f6b3461dfdb2bd3c8d390fb31930c3822fb7f694a22f3239d012f706dabff10b03f0e66869be4a435eff24469dac80754839d8933e1e781b965826eb53c47fc53bc2a85386cce1dd07fed6dc16390562ba8362bdc541919893cc2ccbf5565ba3b37166a31221de542d5b11ef0381d32e8ed8a4c8789a219721f821b38e2106cda68c2c6d2088fa5b3d1b9c2f8c543ef40555d9f667186fefef64b54dbae5a906dad48cd02e0fdb4500aa492e7efc6d5698dce363563bbd606179dc7821b9a736c31f39def29f10e40dafdc52d29b591178223b5e84f1983dd54a62981d8eab5b674d80c70627135ad90c1bcbdc2a9bdc926653cd56078eda264b9c9226fc4c9b549fc4cf73cdd41a7c26616755e7f8a1450f5236d1ba0c378188ae71d5344eadf7d04dfc122af44d59e9c263a258739c34082d88c0760ed5067baabd00485a3339e19afa4ffca023ac57c936fa78b1c7c04dc0d94f2542dfabb0f3ac3a7536d7d1384edf06729ff08eba1b7a7f5dd3f78f154f51f6092db8dbb91f8d0ea81065f4d0c431276a68f416022be7efa82d735613025c3f593c7d57b15643be8ad7126102ace4ec9a82b32b3ca4ca9140aec4d9f0172c7e7dcb22fd06e0b9d3bb1ae41b5c8a7d35e043e75f30eef7c0abd7d10bbe23847dab51b9031fc61f1f8a05cf395970d66d2193de952644efd0da226dc1858df23950e1d871d93ce5d1008e5dba83545a24ca5fc3012e126fa3950b6ece8849d4ab945583614e3b2afebd234049766b6e735956e93fddc17911129ae13bed1594c03d0f5d92929c3cb685172bafee4c9d0ef45ea41e453ed07df0aee980fb563d6ddde1ffd0774120946db1246da6ce55c76d31f93c495e100ed6a5afd7d193112bf1c068430e038320be0499ec8c524580700909ab767df81d86debdce5c01748f010ef0e9862027eb951a5018c4da0382b6c3dc8f76fac6fdecd4a0cb9a2b34d48ba009947706d3c720fd882b7cc73405a308a6784d14389d8d781b819ff556f012e88bc1638c35c62a060f6c30fd399e963ee82b2588b4dcc001307e69cfd9f6fdf6e611b0b69f22e3d02ab78a09691312b6eff74499cbbb852e412ecb166ffbf7c6d3be3413a19a584c830cea1cd5e9a1f52eb37ca558292e827787745ae7c7041f981cf94a513584b3486e2632c9dbca0c5908502f8cfb53d002e36b3cf3df31ec7da8e79169ec2f39918142af1788eca5cd67e60e13dfaf37ecc0d9cc5fd33215f54253f6cbe0f72e655c53d1c318875d83e140ae2d667b0cbd4bd2b904ac6b6bc39c9b431a84d73d94e1a4644d25f25d109a7fe65df560e07bcc96def81d4fa67d771a50c99a80b53b75e39fb7b16113898da773476c4f43d69ec5c4b89c0f9ee0a41559004700836a86f1402169c6243afcbb13a0cf722b67a85b020dfb57f9d34fcd8a86028a530f67f054fa672fed0b6ce0e0495ddb45c1308b67f05b57ded97aac9f3c087cd065d5525fc9909de4a8ba79f26966101bba6dc997cbab1a9b2fc5889929ebcb2d6ce8d4b1cf60fe18ef4110096151eb83654b78b1b0770b4f7ebfb47ed2169af66c6570c71ae66f512ce87dc40c9f2c0e0e5e5e5887dd6c4def7b0e61e8e2bdbac4927d9461554a1684a255b37bbab86c26ee00ad27843586cc3ad15ef05cb3367ba063f9802e60c01d067abe98b294bc517189a328c0b73b69bfee6a0639354325e27163b2bd4f02981252285f33af416bf68f81db991cca2e64d4f276c7641222712c81fdb111b7b89292c4fa78f76c8a9bd7363386ed8d5b002cd63f7c80dca98f8f2c086ed00bb0570fd5f8305656589e567e86db83089867a92e0b4c141d00e71b0ce6c594949a3a222738d5d11355d808b0d925b361186d4f23075fe362a38d3ae8bfd38ce21265f7e28d8798ab41cccd1b367e279dca2f50fca29e8565ac7cec5764dc88e366f7283b98049c671f51705663d411d3d744003a49a3b3d53f382659226cce498713c9dbda079908118e08bb78f39961e3e1fbbc8329bc809755f1c3178161bc7011a7cbf7718ac3d3cebce2dd720fb454cf087aa80c3890391eaa2d10e43cd465467150df8d39bf42305d62d5642b362e4461ada6a3c3d6e1072ebf3a9fdc2e79e558d169b618209cd736ac0763e1f100bf14ed582949f085956906293cf50dc3b078b23f717c63454dcf2edc2cc5e2006d66ce2ada717afa877d0882809cc103dfbbb112e3293e7c7db37761ca570349e07b8c5ece29e59be7bb9ea662f87782650afb6b9e4b30d61b217af634b90f0dc80e6dd60abe6ef7270782df88785984ada2070bbbe515b0cd65cfd2a05e134613ff5e9271663fd6c1d9d01489ad2535e9b2d869af61cdc7a5a62a2b35cf84c3c9d5dd7b20b932b3f90ddee8b131f42daea24fb5d71414537cb78bafcb0ecbe49f22316264a9a655bf3cd5ca9222522a4dcb985a9f8fc59264d205eb0e0abd2974797fa1e349727f0acffa2c13de54510a3c2c22db848a866f255d77586bf7cae2dde55504a3e5e3e80a263db3564841986ed426ae055358386cbe3367a7fde5a474d43bc3735554d89221f265ff0ddc681f79187406a825f51887177b7862877a5b45728cbe29d067d8a6c71e8c3f5a591cac6b638b780c37f762d1ea33f38d15dc024431b4a2411002e2b23979e7c5fd8e162b21276a45716e90140ff011c1a24681671f4ed17d2fc6dc01717c2ab64dfde04fd45f1e5bec95f202f54a78fb97cdc802b02b200807cc893b923fe8329a68a41fdcbaff41852fc9bc8e7ad5d5842d58040413776b59ee1f30eee03b0166823d3a2b1e4f0b2601b5dbe77d959bea8ce745f93c54db824bbd9d1b0227db684e54ecaca813e377b70ced62446215d18648984a2e57a430decec917447851153a097735be296a4a39110812431a300b5df0f4687854bc19b13079075547c53901deea9e40bb666874b18675cafb6489dccba1e0cb451ce673106fbd5bd0998abafcd3e4673c475d2932becfb7377abe977e61cbdc2dbaf157cb6c400e994da71220774936c8be7b400e4672b43b669b290a2d7d549d53806ab1e0241b74bcd1f112380b3325106b433ec1bbb9af1fe5da10c95661632eedf0d88de0163aea3ec5381e361dff44eee7ccc76f166760f1d32049a4f3c05084e4f1bbb56856d2de22cf2a4a84577cff05bb6ac94d69562d21fc4da5dd722aec6a8c453ed6b3534165e3e28debc8ad203c10b87cf72387eac7abc5074c0a85ac450dce12c348f6c0a55d7468c153a41e0e9c88d1706db258596b950b5b4335f427b0a2f9d64acd06d2138dfe432274450f2b503af17141914accceb362f3dd347f96eee27fe35e70d40c59c70ff0a7937f6b8c36478be5c8dd7d33bb6b6fa0f26d8ede01d902a5a2c7f4a9ca7e73a0e709816d0922a96840b95e815b556769154f2ed939f29df0f3e3f3a7f38e7ef034562b079f1b5b6a154383dd16b45ec6e3758261b6998db2610dcb27088c37220521d294c397f31dc29f2c19d3b70267aaa121230e9e55a5eacff0c5b9bfe88b74b83da1e71bcaaf6d2a838f9387ecb744a944480c4058a2f0316e988ec56c7df3b618f4dc95d4768bb80de0dec27b63631f1167d8362fa3763bab484a74899df9b197f28a02c489fa71b084d1efd532a8b2e77a4307f1059042d1febd95e4f01f4c1585ea26cddcce03bf698514538e04978584cb9564cd342bf119190c405c2293a36f75b2378cf03e85c29889c82d6f031700d8a9ebc00cb171e42a5753ee3160f8bfcdd9c0701908e6fe554e69fd01cbc0477d7758b449a7674016fe2bce8756da160823a84a66ce94a37df8019b2c93d6a4eab7c173211e41fddf31daf84c998600e70926a28a25e494ef785bb21c61f0054fd922ed3a27fca4085fb8bf892ea31961d3b43d146e86130943e71d488d8b484409c56d74e77cf8b2d7867007db9ee43a0cb9f50c71368f2904b671b9fc03209b8f2071479512c4e4a8b8fe265bdfbad204d016a79ba29ee6677bd3f9718bc00601ea26b98b0d3ca6d692e3b4bd1bbd4ee5fa1264c65100111fdab2e18747589dbce8a95a0aa52741585da0fce2690b389d059c8e8036822a9aa5ba19e81d26dd81025cf29c5f15bc9f91cab963042ffc561b2f15e1db38bfb4d508943a140a61e1a4d550a5e1a3b33f85e7ba06eada96ee61edab269c82298d6869592df17485d1d750d2f36de8742cd2270da1b939661f0193d3ebfcfe13d3bce5bfa5a416c9c68672c824f93de370723e3107c3f3f8035104f8cb95d27f47b2b1abc30917f542f80f668a84b3048a9ef93b1da6b1ce9eb9ea113383b3e7c206e91de68f566e63d99846167ab3e00b959bd42b3ba1c9e0d83ef89743cddcc897d8697ae63c5c177606447ca19be90a958900131dede2816b7aaf3d36ec880609e949b2d07dc3505be844581ee48059683297085311db2add3b83b5d636f217f3a3fb2dae769ae8e6302abc3d35761b4d7cd1653da8491601948c3500078d79bea30e4dc28d3c2e8a9c6c67f7bee958a062dba83e8b5623f2382c1b373ddf5a17f06dd1817d85a6ab89e571e3cbf2eac366ecbf44ae7dbaf0dc2f19cc1655cef4ddb8b32f880d44fc5595331f452e53779040d8939d88e04f66ea99f9e7e2b5b3fb985fd683fbc06f4357b74b28f2370c0ad615f5b8b4758faa4a92805b8b1db56ef6fe4ece833eca711811ce87a8e1df3f40b358fd1e6001f48d3d103c846d52c869b0d06d0067c55806e7f3a5c32e12fe2f12db1c870b3986395c8baee31418ba2c72f238c7539ccb8a80405ee76de2ce34729223c7fec8f409aeff5d471a76fe01cbbb5ad917120dbe022c78c08776f72b04c56edb9bc3a35538d7ae44cde5e4e70fbeb10e33b15807c560de69ecf40e4a91f146a6cbfd76aab01b755510086a2b6e77c52a9f98a1b0ab068ae7e8c04c6396fd4a34e8dbc9e49488a60dc829a30ae34aaafa453debfbeb6eb88dacaef91cc28dddad1ccd9617a6c1f89f6771187408d4280931ba431ea01798baa3c7c2508932c76f36fef4623a8e2d98aefa5b8f6c44a1c13debd9323801d245e360a39f0f3ae2bb0464ec6b7490096e6413da0e4601392d1c849f4a5fa9c7d497f4f716e1e3ad5897cd1631d14af8e949e502f2e5a65d8b3f23813512390cf147efa03333aec9a43ec2f0c764d7ee8eb3ddb1009b7d3fe3566abf2c588789d9f472974960fe5f0c4f347a8bb711b560ddd1d8debdd185ce8615b06373fed625abb5db15565833b60a547bb75a73f9275bc7bc2a9bf48f82d62afd627339cbd6b2edd1205b6b73f87b89358f1f8d88936994487de5c2605c4f1a37080247bedac01f7535a5ead2687f6718c070e23c884f49789e9394a1fbb75bad8a0f3766b8bfabd33d37bd8e3cb61426badff804f977ef99b855c86e4b019cfe3a021792662218b31a5fde64ac4efae68a3b48a93c6b4707df076c9bd3d90de9b3f1243284f43fbce30b9bb00b554a216bf32a54b06e28a8bcaf2d986fff58a4533a519be9c9bf56b6802accfda380a3ea1a749c9e4361b55bb44c124e2ecb1279ab11e25fa81073b6db2b01bdfb6f0c689b90a4bfa826df9a7f2b513130fbb054548a1371f0832dbf6b347c4c567bed3916d1a10188a5c1e07e4a85024f250529904a8bcaf8bab0022e2c63a94a3b1e94998490be660a514b3d78b3a1701f6a8e31837d5c6ac317b70a7c2b51a303d523061b22ff33af4683adabb58cef2a0c9501238418e979c82ee4ef6b82a217df79224b112306ee52b8ed193eb08c9da5e20b2a2af836fd3e9cf55810239c5bdacb7fd7e027a5d8f4d12524b2e3d5beaf7f81c11fbb252ee799dd0f0fec8579a5032fff17d2625c47128b5e7171d4da3d631180c9b02d2f509b77e3f847f6721f8f72cbf386bb7c48738008974685fc1f064747d5ba8f4a3610dbb5a13a3c148d44ab587e507de05a135f2588404691884927e9bb4b04a356260202bc37435ef12223ae695d4330cfbad73413867d1f4794323a1d292c5c2fab19b015f63cd17b14fa5db18d5dc9d8edd498e445718845465c4b3fb30655742e8d4c8faf1b4778f1530dad392b1fbeae9d712da6e5822043e5e5b137438c3edab2b828e4bc6305f971ff67bbcf08f15884425e4968f3099988f02d9e2215a6e194257982bfcc6f5ae96936a111077b4c965e37bffaef8752bfd9a1f3a2ccc7991fc37d8e7d4839d32039118df140390a886b92ae8a6ad805d3aa1791f3e7887f4673a74907a69575241b0122d3174dc68da208b7490c27da0cf0e0b1ead68a23e92c9c211fd42842d28f71275554656be06e18fcb3acb363142470253b2d40e11b287dab8d705a8f2b4bec94a3adc1ce72231738c07bb411a9d235bea1056902c0e83b042b5062809a94f45965842db5c56aea31e9d046c77c9e14d87d764fe0e6c887de519e9ba3b30f0b29de6f90e808384f5095946226b9d5e44a0ce9486b8ade46bf14a41c6cf536d1889f4c91d1028f5502b56fa66c38b3efc8ff1cd855297a0dbf3ece720da3aeaa1dc628c05955778c4a2f30c8e6381ab70e2db64d00117aacd1f2fb5579c249d291ad8ba5fb0dbff38eff8e9b50092f825fa9d33ec561f2069de3057c5606bbde234a2f13552f6c023ad4100211f0ecca478e3dfbac23b4cb2da79a368f9bb354251bc22daf7bcad09c1ba6a4f88e6419ebace91379f01f014c86105d5b65cbdc399ef30cff3a73c29342d9cb8e403f04db0bddbb01ac8b76eb2934e5416e337f7c9e0902f72143ecc0e50c7b20b82ff5a672abafc09356f758f8e74e3093b61cb3a0362e751574eb5a50166bf6ad75971cbfd6aff7aa8891bb783e06be575267a7447967b4977ab061c704b0fc1bb0b8622a0b104695f9f377662edf30dd5c2acad9f0a55bbafe905b13ded1199404f55e71f666bcde5b7a851d74f52624f9afd1bbc4d14ec4c36d273f2c3b5ad8084440443c8b22f38b5214b5afb9eff6a2ef8822d1a83eca260d885e696b0f1d84b8e9f4c02add490ebdc0dca8fcd3c5c4d794bcf3cea4a1ed675750895d12e33f82de0aa674e9d4150d0161abc5d1a21a07d7ebab95be849672a5db395c6be57d8654d64841dc169d0ef39262868e7a9fe365bcc4c5ee464ffbf1679dd8621ea8fbe7a5ff40475ae65bfd92869b462601eac17fec54026996de3415b8d491382124840184bce757a975f2e10598ac4fcb6bc7014ff5796955aea79b81114b1211fda278bf1beccbae95fd8eaa32fe439a4d46bafdff1a79e8f512b529d102d3be109816b66df175f70185b82b99b03bad0d908b7c7cae78156e09e6aaa40d5a5e8ac22656ab24a1f5f3afc796e1272b10b52edbb72cdf8f924963f1e171e39ade35a08d09ece4dcfdfec36f42a99e5e95d541390674536592d1823885fc56acb0255832e56029f7a586ac5596985f39166b60b1a4b1709cd625c3cb8b6d543ed4e9101438f254e957b432dda17014a76e51e78d4bacf49a8bd392e3b709d2a0f4cc6623cc415835e0afc2da4b8bb7a2fee2bfe6de8dd0fe10824a1534b9897f4e9e8282af3fd2ee8f22c33009b012b11ece4ffb1440d0fec19af0fd6a1b9e938f5afd06424d4f21f462ce62de2beba5e1a232280baf31470c9de922e2313a4f64f6e400aa536d53aa70821eeab6569671bc60aaf771c89ad688db253e37545a0d3d1b21a99f09ce989e4980169312ae5be8e8feca90f2475ad8f7fecadc2d233e170e174a57f6a13c51d0a0a9892fcaa0b157910403475ed31933c5d6b8f28fea07b063536f1202946730b406beb36e17b53d4bfedf217c9b9f2f03fbc53898d4435bcbe5b11b69284640bf8a137ea422c7ef181848f745c102e7be58c016bc3319e05efe7de88f9f59f3c01e487017d530b8a9ab767a6acfbf392844a48f010ef0bc2fa4e47cbded63f49200d7665f05a45ee9098c9a4c640a1c12e6ab36aad4b6f8ec9ece000a04ca50d8e2757e2715c8cf6073b3cd0adef20995b0bbc958472b941482887b01f4992eca9e58585cf68fb4b8cb852c9432c52613c0aaa89485f3dacf709ac66fc7f122134d914ac40b576da4aae62e85507de7505e30a8601a2253db11900d7fdb5a42a9700741e1ef66871389c2e016fa16f039aac9efd1864374168359934a05bd3a41777d7c503ce277a2e7db63e130dfd1cd352a54a42b3f87f18696ec7b66751b1b926f85c76ef56c735d8cb7e06a10ab7e9bb86adc2eb85173d69cfd8c19116db95675a4e2239bee23ff5030e29782d0497fed4572572b5c09f67b2fd0e08c5894aa6c11d79551caeeae8e769a111db0f04875895274a83683605dcfde3a805627f8dd7d2468ad6b36fb7e42b840de27aefe8b2427874e53dbc4177be008b0a0bded486c164a559f18ee727c9c99b7e6d1468b39f7c9210fe2983755bf999c264998094173e21698d21719672faf4ef3c454bb82b57b9866be3ac7112a97c13c7aa934bbff1e6d948177feb855c2c5a7587b73c27392f6abbbcf47a4d379664dbacc14e7e861c602f11d1b3dd1d272092f48b48996fc1d2cf4e611c8633fc7ff9f9dca88494073b1f56010f95c131bc878708fbce5577b82743b089d548aa1edef7cd645fea5e755b45c048b7c26a53188159a242f2143e3ac677307c037f904c2d2fcd3d6230063c564f1fae0466f5ed68faf96f2bd94b0627d9f8bea2c9ddee4605e1a55c7b104b6869a95ce485e2f789b038490664d1691a693ea85de3f8bb481a3a7fe3eebef38cfd0e0d6dedf1eadd330b1b66ae246aa21c2186fb2278f40144e37e8b5c574f9d7a7b807bce8e2acb8eacf72575150c4077706ea23d172344453e17e1eb1bafa7c5c85d459409683c9caf982edb85595cae8686e1c029ce01bc5629bbcc77229d95b35b835ac279e0e871085d65524913a5c4be1b955b9292d2e309a93b21949d6506b18f0d8b4525d18333ecb5b7f0061f5aed91f20d8745e0d47c357464745023597133a183021767ec2582c1998247cdfcffeb3149cd81db2d6b61074473258868aee979bfdcbf77030ebf9f95a1e8762be25378fa273d57ce8011fc998038d3796ede393b0c83ab3e5bd936895d3db1af983e4a007c9df724b56b509f2c40a8e71e904806c51d63b68130951e8969996a49a22ec6f450a01925e4b2d2cd8de7f3be69de8648c3fa809dc6d349d9feca84da41a739476def056c510c81aecf112cdd0340ba86284e2919dcc41d750e68cdf5aab63f2c5e7ebeae40aacc0fb109a6b84df7953ec9f5b0d83fdf19155c4bac7caf0db74661553277d829cd9993d8fb887516a00ee4547378c898b835b4afe2ccaecbe079a1c4916c52827252c8752f861c4cb7d7c0250f974973c5c3cf4c73d2bcce6e9f4dbccfe23fa4015634caea4894bb161b5bcd7b4ea658eb7f6cd129b4b4de5a35c8bcc10442a1f94756a745e5dcbaeac3c2e38af7514fb141d598c0cec652b5df77b25208a3be96a144a22d56713035ab2f5c977eee0261e439ce63724be5c36d7bdd1f01bcc57841df35f07c45f41574f274094db53c7cd5e9c44c988deb73f9a29204446e13e30ca4ab39e1992e563e63a1dfe65be20b13aa29f6d0e18f881243f901dd17bcd3af50a888e149754457498c00c9a1471c7c3c25c28fc336020fa8411bc3e3db26ea8a2cd46ecb6dc954d6ff7b47fd0009750a6fcda790bedfc0700717ea30b61eb0e59c024f2cf48facb6ead6f9cae3f2f2963760017911147dcecd098279810d091dae7a43d2f9717075bd291ea7b357f1fbd4951cdc22b64122a0681b4bfb44091b25c7285253a529d7b5c5a84fbd14165fd8e06d231b19e0df6804db907651f9b13938190057da7c60918f4e248326c5aef7e85103ba4097fb64ec06e9ae28cb9ccb5c3f251490ecb7de758cf1c20a8df200203f3c650797d340b5f5bc68eade188809f760cacfef51e597103cc82eedc70e1c7dacc19cb2259c1499d1dbab36f3240ed96bc259c94ff32388e5f822dde4e7d381b54a6d0c2252d707035a747e4a79e406f8e7e8c7f175b3589c6da647fab6f241695e66d5b96b660fb46dec08f9f18a348bc96ab9951d05f31be5d33229a87b14ddc1e44c57462c6f8464a8282b698a5ef759d258a189bc597ca88c52df1ff2f7d38173c059fc66f3d6f375b6406be766641fed9dbdb09cd9da02deaa7fdcadece2187290f969ea7a65afea79d3ca444557525e14d14ff802c14e81219ae67069cb923583f5258fa5e0235cf2da061a188bfc1f67f8395f81165669fa04edb1e5b8fdeca9de3ed1b651b1bc2c07fd7fcb543559f38b659ebaf966450862627974b0151cc2d75dd2d4b61556bce123ce4c2873767d81d3fc171bf3e199d033a5b682d1c29781af03748f6f7871c11c366600d43a5495902df816d4dcff0beb45dba45a690eb40a4970e60e83a30e6fa6a91d4cecc3f41f70bc0307e9a62cc6ba3b26195f915720ad6ad7afe52651a56938a39f8fb65e957201d634121fc84c4c392c4b0b8114560cb4b1436db01b0e7644ba5850db822585b97511b70a86581acbc93bb1d980ebb0387f06b1b0a23823df46794f2cf00866d1d6153a772f04ff2a4ecec06155448e36edb3641c80dca23408a3ae9faffcd2124fdcb2849c6e00a878659bcb06abce7f3fda5a7c05a2f038784df41f2ab57e866e2dbb4ae4c5ac67c49c4721b93280941007110fab4d31a40dcc15a01c0f114e3c44094bc8fd627b5a0fad04bdbaa0b78158ffa302c94b2df09787388e915ee8c96f92d2aaeda566fed3d9fd1ea952c2b1fd42e493ea688aac7b56032395ea9ee896507b30b755ec6907ea7c8836dd7aae4ce3122ca85e380df7804b097f0ec69fdebd6ae243d8b03628dacff883a89cde4e3e86dae83b0d8c46e4325405e26aef46781f64096d5b994817a99108dc343444a254ad3a820e701a71338c906617a8ec3ec7ea9d9942e511321783e2954664cc351062828add7f0d781aa41f21a3c0a625178e4b4f9f2cd69eca3914464bbdd7cf65d17e5630f00b7f371bf27f76cbd620ca0e9e3993b328299003a0d2f5545c7db0516e9256567f23df6370d8e64be00bdcd852782b8ce52442de93db9abff8f197c0b7365e2505986586ecbdf3d9d11eaa2d9858bcbecfeb4f3048356e39bd0fde5f6f720ce38b669a250d3857ad28ccd80d5510069682087345942b72d9bea6ba07602f77b47df66d1683b66273546dae0ca6c5a696034a2d48230fe515174ee4d4c21a06916c17cf1f247d5cb650475000bab3f622b34d583c5d1e961f568210c1d7520a408e42aedbad11a7f9d2829255190ba94af6044c66f5512518987fbaaa98b5925b1c7b0c9afc07bfcb68214ae64c4c7511dd6e71f5969382beaec43a73d69065a75858f614cce9d0193b5656c297ae22540f3074fa1ab7172be594cc40c8eda8ea9c029f654391e41507588f34c7c935005c24d6d51d98c71cfeb6f64e05a5d1363b6fe9876ae2ed77372da427e6982b253f51ab223dcd494aee1208eaaaeb9572fe537c2456465723a693781877e64e050716947b66005491a0fe35424e572cdc5f5c706445ed029f48cd0bff24e9f0f3fba37a802c26b8fb66852108b58ea2307667ebfd2852331684c06d796887d2d9f2ff80d8472dce0d68f9904b0b96c34be6c845ed77f15074655db75a2d2fdc0e3fb16b5d0e4166a08ec7ce7e222eadc81052aa198c410bc3e7f42c31dd41b354d6b433c763467b8cdc22d4cee8df2b40f2fb176527a874ed559c603824b980891c0d63a76e29b76d52387ad9f161cffd91f1b27e2cb33b8d968bb8c54ada0e77fab6f943a59bb6ffe894fb9f342d50ae9c6b6066efbc6a3b53c15427cb26f2e8ad58795293a67dd802dfa1323f496f20aaae6f2c307b2f5ca7fc1e817dd0403fb7f5163e1307edfb4ab21f9ef4d5dea2c5fc5f97294c7403ced344c3a8640c7c877e6cda14e6bd164a4caf8fe2bea0ac99ee096a8dff0e98b4f079ea4bed6bc3879bca306f03a08015423aed4b4938b4f86a8382de2e7b9f23ed86a308514af8244920c1672c96d56f97e545801f62abd03c475a075c97814da88ff6f7000a62585258f697c1cb27d6dc20c2d0a85eb8c91604985a3e80fc0abe29c87611a3037e8be4e2e1e890d73725ee3eaa6d87d1af08ca6573ec42cd1ee8e319f2286ff0efe42123cf245582b135fad5dd6126f73a8ff95c999468a79693fe53d5d50fd19941384f0f9e4dba45ceb49ed54fd4cd5141786336bd1a60d499e432af436b45181ce07a2de0143ca64d33a5166b749c8c34ef90a64e7ae5861bbf2e3815d1b5918aff642bac8e29fbcfdeab605159795ca426973ec2b674f44463d8965378572cadc4122c0288a1657b24012af41a82b5bbe9ea09f3d21b29be15b355990434cbadeec168685bffa7de050ed985cbc63133bd3324f53000ce55830bea5534152a5b2eba22c108446f756405e038a4793798ec972e2c1952466fb2cd0cada132ad6d744e58a2abb6b40e3dcd0ed9a04fb4875939762887862477161c72114f57fff1ae7c47a7620d1b2df7f1f1394b98cda7bd7f5ddc88c08e3c1ff45345b21c612a67654ec627eea0d400138100245732530f0312faac7dbe89bd9f4857832cb7c293e5a74eb3d386c8a03853bdc8c717f002950ccc10f4cae73d3e19127e0639eea34c1f810c5794688132f1a0de221c5e6119c7f47b07809734149514334a64714dcc1ec3a01dd510a00e24dc8550466a97e8ff7c9f357aff45601d841d49a845dca2164af4bb5e3ea62dd2033492a07fdaa1ac9bd5b168716226359f17f243d26dbf85f3098c168fb9c1ed2cd824eb5bac0de81db52783cb18ba1e3234246dec6a8575dfc10c7709c5dd0640917c90ab8a274dd6c38425be84dde28ebfa85232e6e13f01810e5e5b1088f065f06c0fca0cf35b80b16bb8fdc972a315d9b0495ed9b7c83d1605dc8331d641fd6aa9d95731a4b65d182fc758dfc14e65eb4fc5020370788e5fb589cfe575fe9ff99be418d87566e627ee3090675ebba27e324602cde0b5eb92555e3d25f1acb86c1c547029d0ce24e82e02578951e556da9c680ee8641590ae6f4206786e85642b317e364b348fbd0ac6ad2fbeb1689261652fe785125839ec11050976c9ce52179e57d576f7a8b22bcc8bd2fd8a6e2557e4a586cfbd5e9c45441aab93493044ed99fcd45d2b07e4535ee5b4aad80e9d18053eab871b0584d0ce41b6c65cd8f40a0fee835b736d76e5491602c1034aaf7e07f2945e8f14beedcec7cba86124f98648f4f578914b78c820c16ec021f510d6bb1d7f876d43faccfe650f9ace5af141ee769b71736060bef45c380aaa145121361feceb53da49d1de800460d303d9e5062b76d94a54c64c8e69e807ba5b2abacb571beb8de41694284d0be2742aff1a7a82f0d4c9735b5bda2c18cb0e00548d6ef99383a4fd1048e55e3c80572b14c73f00dcd904c37310dbd6c89a32bbf75e7db82e17240269d53a16b4bbb4fe99858a8ca3186792a27a1005bb91111cd3f3c7285a9f7a593ab0079f1b450569f2e675eb955c9667c77363c3f4c9b68c6682f7cddecc11e56d814d182c49e7a8e8fc23be9d44f97334837c6fba903679ae4e88e85642c3f0421d3abd8394e30413196234ffb74e46338102a18883463bcbc9cee2ec4e68c2184e951e9294f351e7cd7390b4fd8f699e72b142b62e35dfd92ccfdc432ec21c32d643722ca1223f14cd75b56806fb51fe5ade1958b5d7748a6ced267fd73e5a9d1c5357d0c55397989c272c527c8aa09ada7d0a94442188606efd2d861dc0bfe7998f8b541629a74c1b2320e8fd5fdd5bc37f6d39117a44a3887fcb09ff1959ec69275c890e5c7ee4e1e65159d5911814cb75735838c41140da85eb5ceaf39496279d73fac5c21e3047881e29ef080ad048b0f94fd18740d014c50e20867f4b3371fe5604f0eb7eb90982ead3ee42f4cd90e4779284ecf59aa2fc66e97e7fa2614dd94bbf4ba85477890fd02a3b72b800ef45b813ec8253d1015bbf467bbf79d8a9190cb5b2c7d80517ba9e46d8930a2e40a821a574d5f18fb886d3e4640222cc87b9940c962333aacd145db5cbb4851b84d0058b2ec4e63df8679ea9a1d93f59fd13d2e206c7aa2f10e211300e687cb8539f70650b2651e3b76869c7417de21323f424becd6cb6a8976d1ccf28f3aec4c17999cbebf4be810d658aeb97afbb5d465ae01cb1643dadae72f6c11f96180eb0943eb754b910e4635f5f16c6c464b14c21edc8b7c2bf92639cf0d82cb7ae6e7a9db387530e90f8af971e0994f6206b65c5db97fa672198d209bb3a1ec4e5c764e03720773310d6afd4634f51b75fe2022b6f88d612fa4e754706dbc9d8ef7975e5a6f495180daafebcfbf90e3f9c165305b2cc51d9cb131d9738a6e79c9f2b764ac7da3835592f13d07a631f8e093abb24f1bdeabd706f259c7d14bb59723ee49ee2b16e8d04e2082283b1e8889c0033bf9848601eb2d2097500972ee3899c3980881b702ed227bb04b058749920c21e015a667a4344a6e095a54e3f8e2939fe6fd1def3608e65acd8ef5fa5f17358d2cbbf874a9d7762cab58afa4016609454dc2aa18123ecb1c292c1ed79737f26d3867c4d6e25b1f28a337faa39c30f34675557b9f2fce65fc7ec627534ff74bda4dcb201d5a34faed0fff09bcd57ff1a3dbf6530f998b4bb26afce3a624355d46ef5637dcb7d727f52d81a1fa004cd8c77937b3f811b703de39a54f73c084b8e5b7081f659b838ad467ab0c6007daa08b32a58b312ba94428ef3529c656fa85fa696a743c9273679fb765fa4dfbad4fefe50dfb7d237e5022922d9ac787e1cfda2c7b75919a3e79cceeaab414e0069e927e20165addb9ccc919333ea4feed8ae1f202bb5b52d9ffb7a2812e237261bd8f9bcf189adac92284b29212a8807233dba4857df1988cf8aad9d65d4642d7569750822dd29fef42de813cc0b226d229e0a3ac4a3d8503b32694fe886ab503aa9644e565adeded7dee756d04ea122dccf3f77675707ce901189ab1cec589e21b367095fd069b0db1334792aeb7a84538bcac5f1bea2fdb51ab897f3201b83c418f9dcf1b983d8f4be1fd75b031b088c64b25c556c86144a533a89daf53e1801ed42fdcf7fe7f3d7d6ee25295c46053cc23f88e725765cc0fe90349dee34d485653d3cdde350a84753c219d5d67c6cc13f20668e166bcdcb4fc09d2c12029e0eadd0f255c15d0e37fb2d306b32e0727d26e0eaa5d45ba571c2f2dd93c9f42ace0ce083ff3a37cae790491f3d14a823a102b8356edeb775f615f40c79c51f35d5215d20d72cb452726c2543a0693ed8ce280f58bf4466c3e2cbdac73200a072fb089709f8444930a21c852a0a4d20a46690930fa400f902d6efa875f87372accbf3b0d51f07787c2b8943e3e5ca1e93cf11dcca5f866efc7824e8c7e49d2a15e4eb2a4fdd51f791dfa39644b16f197d01de33a9eea16e7cb95647399a7f337aa97e9be4227be5e175b764dcdaba5a37e04ee9f57b73a725495f95b52497b113d7c5880cd52cbe0c21f3719ed52b9b61b71cd7d7f262bdc32683816ceefbdf0eb27052e2e897368b32619e9d70ee214aecf00c2cdb7b995c6d844e0281dcb26d6ff2606a869d7954edfca1dec3a50d1ba14390abd818468d983c8bdfee27649c4ebfd9eac6db08afe18666ee31ba86a1ab8276bea6774823b814ba70a3acb3ab267ac56e80a515f328401e6867628c1687723d05227d6725db302cf8a05ddcfc86c2c0c556ee28dd33ee22fb212a84dd2701825ed9e8b63734c13e60a0000da2510d4acfbe21873b819cd571986b601bd774480f58879ba68059bf7896225b9860c56b124f3ae2b1a734ca1b93115eace077cdf6777df1f71ccaea0019f078dd65389c61fcad630b18b5d991add1e7ee8f7386aaeffc6d093b072f3d10f6698fe0ce28cea29d8a6ab862a4a23c1efa942954e4fa2fc85c952e942a040df190371f695fe8cd90a62e280d7ac1f96e6123cb96c3f0a4cd460a045c3544073ef5250db4ab55b712ddf6d8c39820730912387b71d95d6df4631b865eaa74ddc179737a54099a1e7c287354d17e75ace72c30a7ee1bdf36f2a2011ba8d35de8107450201e4db7d4ddd1c9eb9c37440fd15ef14c2ecc2d03c4da4783c4e0e864d7a9be3ec3ca087c24447c66dbbecea515a4d8b21aeadbfba91ce037e7a78a6f1b68483dae9e0e4ce9059109bc209c5b347a10e3c3685c7b0b5510a7b0741035ce46a6bcfe4271c8d630ab64a289516899ba8341820bcab3c700bb95f7a74d7489009c90f97fa9f829cc6df8c20933c9d6299e25b1f490f16bce38317d0c2272d327d3b1fd8c3a556e9e6cf8bfcce0ccd95a22028f2ba362d9966d5373bf5851d5a214dc83b6509077bfcaa1a29a34dfc016602def74be1f5baa303275c0299c42eb8218ab99ef34788f87f7c5a17b2a356528db3d8af997a824b1aa197bbe0faef3fd7f2c41fb544ac435c586c9d38424e8edf504c9c9e22406cb5b3bb7a4653baef3316b409955c4f02556366aaf5e589dbead80898ed79146cf582497d680e7d5787d65776b936336193f31fc2ed6122c3f16cff99bb05bce8c5413de6e179beac50f0e6bc3ad33c66ec62696f223831f56622e9a1570d964c7b13ee983ff4de03838605b5b0e8c333b10dde4a867e32f17a3a7bc5e2b2e3afc6a02a5c311ce5f8b5b12dc928079f870ec07e9f7fb9e63910e79f201261cc6b517cbd773864b1e88582187f1be630187091bb5d7b799ac2c3b5204e2f4e544d68d0572ff3c9cc0be24e1bd7040747db31e06a83d754691e40b5e7fb0e637a889ecd6992d3f0fe35d31357af87e66de8f8cdb6fb3c9d1a0a70d6c9f779cf00919beee4a7343744f858fcb98a0c8ea399174986d2751b8b24ec3cfae031cbaa6ffd19ea413e370e269833eea85c79e951475357b5b4602e9290c6580d85da014b1dafd7a886da5bec813904150bd3dd106d37cb2f61168ffa18e0c37cb77fd5d988a19d101555fcdbb8bfd21f63e2141cb02a9e98b80d962c23e6dadcd66f56778c68827a0bfdd34fe3ef53cd1c056adf7141fcdab60b2ff1f245f4f9a835fd316a8786b886fd60176da324353989a0472640165f5dcb233bfabc87f2df1ba1d5bd7190fa070a181fe67922025014eec7c8c559bd449b9bd33e63ca050ec1135c249664095c2e7f3610e39f2a23e0727d7c52d25d9f455211671bdab2d90a06ffc8da6f305372ea5d671d0436c829a80c9135f7c5f8c0a83d4cd4100d70bf52e4aabc9cecb7bb667606a6c9c429af148a03450161b81580fc44f68de0b0d5d375d87b0a401cd17403ce351b0d800107a2a201c9b5da1ae777aa7c5e17fad1b98aa795efd339b7ecff136021cbfa7db69c032eab46b1fd203bbec8e48494c97b1f0e578a1beaf7d98b7d93f9f41b02d5760fc169dfa68c7f9634e3ab35c473f1af859ec60ca205d1a65cb5a5671fd6a9e696bacc594eed3905f4271b821811fa1e54789b3215a4f3e28eb3e890639034de266b5f12e7982640e7945da2535a0ca4711f3f9988762ef0cd929964fff36cafa4768c45c394b911875d946cb7cf51bf5e04b84b0b65c2f11a64e9cd2e20c2badc1d9fc32de959eba6393b76c75b957518e66d080c606196c1a7b641ffc820448a0e4c9d09176fa1fd5e9dfe313b8ca5bc0793fced56a9ce1cd59a1dbdab0fabeb9544769eca207d4e2b4a56594cb1a026265c1b28adf5ffc31962c9ce44e13326ad11eb876b39953345b7fe133a56fdfa4d206d7505096d479c7450974e1117f8d959313fd2fd6e2b5a9ba5b5d76bf7ab4d2cf054e74988206454b094093128a1e943b69451d2fb49ea71d821db1f2d25344fc75cb914e1d6443c6d6b77ef49bc2183858571caeeff829afd6402ba80cd922e4ea57096eaf065e7fd3770274fcef7689174fe8f434065957bdbf88b108fa072037f32faa0c66c335affabe01863ed017e13ce12bc665c4d9ec4bc593a8025d14a4370494cb1e72f82a0016501e013fda6d22b366a0e3a9fb46bc6e49937a5a97d0e25bec22108bc9c928c068871a708115643301bb64d6519c9e0439ccf9d701936d52cda7df358238a83cc1fc19d784ecc16718b5c6eb6789467437c57164ffec71079680c06db274966abe33f3099f9af6f1c9406972b75998a15a4ed30de165f50734a97e27009dd29bb06b794893a805f7cd25616938c117af9b7eea9ac3843ee955601d8f918c8c306727f6a2c8fdb1b96ccffa4e5f5c922abf8f824fc53fe49950766fb7ec60d2e4b3fe3fd20fa7c89cf83785fa777bf9ac95efa565df3f287a553660b5acd6dede4231b972d3a2e2cc8882efdf33d2cafbfea77d5322925678c1c9e4c228a3db51827af4b86d35efd3ec5469209fee514ae0f14d0f45e481a9638919df61b1923f38e0da7b2a4e22296c2690991204f22aaa6b0f544e2f863e329213c6c2263e5dcef62dcd2088a0b122e5da7303a0b4dd5a6cd949cb61b51db7c7f7727f80c8d03a4238bbb0ef8c1f7e29ea891bde053f4e443d1bc3030e5fe5133921e8dfd375a631e06a43d448ef384272bac8bc10aa6ff8f3d89f1ae76b15bb1e805e970d56de39aaf1a77a7c77d235ee89c444d1fcf316721416bcdfad8fb7b5e6f9c1ba4b0ed2aa5295f3eadfd819b19de20d18e503a2098894f2cdfa9dcc97ea1348066a5303c403ce033361b1a3332c58c085d3730a3528caed308c9615417fe44675d9acb3ff7ef01290920eeb7a78fcba8069356e7724972538e1dbd32eff0d2fe7534452cfed7f7276c04d940f002331d447f23a2d3210af0881133ae3de9ff69c29d83e59b8fdd1fe8f47f6567e8a9fa7a555ca7b13a472ce735171c4cbf8d7d121b9a79635317117b0cc5e5e1a34e3ace51edbfed68179d034097feb9462e39424c7d8d58c56d2b7fb575d109b709ed8379f5a5257e1f2652cc2b99896d64b5fa666d0600139eadf3bba593ed26f47bb9edb899dacdfb4711348caeb9bfc909254bba81997e9e1a874f8cdb9a53b425815d7de3cca2fa1c43fefed58d41e78a689de4c22b876bcef5e7e1d04eea481bafdd26d46132f60e017d1437b83fa0e111d7c45198467f3e539efa6cff8d5d7e2b1bf3f9c2ae00da8beb027ce2254a15df12743f20587408fe1322ba975860074da7c85bb0a99b250125b1f5083d6f1cc593814cb8361addd096a84af10e80096aff0893f961a37468963d9507bf3c71570b23ab1c8b00a0c5d479f0ecda5b12919a7c911c24031d49787599c50df0f7996ec1c76809af1f45c34456f3289a6ad8c238ae2de0ecb5c1b1c6e400c62a3198c0ea6f78b094baf58d1ff0476178799ae7e74ab3c2e461b45fc7921cea99682be661c7493de0cfc7e06af2a681b58ac203a0207010b959fdf30bcb57b05639c163d0d2bdc3c25c5b514c0bb5625073e711bc26852fba3a0bcf36e1c6d7ddbaee501ac39e1a53964741f6b5c466df4b7bfeadd5ed90e97c9cf153edcd1dc49ca6233c086d7c9bf96a9ba19b8c1343d106c5a0025b15f3039ad43e1a6fc288794495b4bd247d8440d567ffb586726ff139a2e3e56b63373821c28497b5234715a97f46c8973c337e9b02fd26e2a6c31e0fe5c89e7411b14f882e5d8c1c94fb46ff8edfa530d94d3a596010d4e997630c9bf49fb7988b8058b3261b8e0c6f88ddd369f8dc31ed2741ba46a29f0bae972736d7c11ac26d6a027766738ce2d1ba640a75d95c4527b06fa940e03e53ce8d5cb92cb9529aa4d8abb786cbdc09fd1bd9745489dc58c4649b83316d3b91bdb99fade0b51ab68bad4533903d1c2cb8ed9b97ed428ef5d44318a51844ccb0ac8f51df04bf03c8576e2502de8b42dd6ec2ab427203dfe4698744a57e389ae6a025cc78a5131e1beb1849f63db66de48ddd71f17c3367fe3c3689136f6d35baa4c648343a58202684ed8e73601f8e4e50a6ebdf18d2d0b3222fccca48c2db9a1cda8747f22373ed26a8099cc9a29e7866cbfc8835ddb12ce6625cd9a9653e911c79d365ba37d9722d2d9871d65e6f979e0525e15088edcc5f31e022a6f06194e495e26656595578c740ac1e4cb673c270d173190ab5574f9dbca78089a876c6773e01faef109b55ac49a802ffacdf3f55da7f4781e687621f0f9c4bf40a3c4262ba70103672bf9f7fa7d24ba0b6da2a1ab73b57977900261f21455484b3339ed43d48ba5aee68a8c7632e630bde9fa498dbd2b03163474b50b24709b5ae4f5b625ec072d6cdd9081ddbda9ab7196a45e0f234107e2e1932835e048747ad246ebc86c56a94606cdc4d4e36f57be44f91111b7c594cf2707e9ff266c374bdc52b7355b0eceed289dc5e8a905704c48152a40e8442f6aa2a2d902a321a33176d5a9e2535b84293dc644f2be625e9b3f99a13631963c95cd13b43e737f579ed03d59dbba62a824c71bb07b2ca6b0cdc783aa17a9b9771a94cdb8402637917b4c58ba5d92ac72c7bc686496a15b4ef3c21ac3bc3dce808dc6e44fa75a0792da765e5441af4caa30c33ac85ae636140bea5cdaaca29a335a8e4327c31699f11616ec00600d1630ce7063f796328ca0fc8c3b0e09b3292e48bacc8bce8fa521605667cbfd37faf33f96d3f1446342ad9c9901d6fa7de5d6c62e6724d3c656c0c78812e64d621fd6d93a9baebf934221e889e9b07165089b618ffbbaf48e934062f22465c63473033648ab3ba434273f6ae896b3c155e05a8a3ea6256faa37c72c503e69ad9ee8174ccf8bf9548d256799ae57d22b877c7a0c83c430895da3669ba88724329f10aeb803d9500c5ad559175910e26890a03e9eef2cab1f96dd036c959d236fe3320a0ea23e9adc30616209bc5940d86a9473c4e4c0c3f57d6266b52a04e731b7d1a530afd78a7c85433ce6e338825fa3df14c17435fbaea924712972b489bdbc6faab07ede2844de776d6db6abe5e5383d98519589c199d2420bd99f4c72b407b96f186159e5ee929f4337d54af997360d329f2a7b251a63018182556539fe2c158e1e2ed7c00c34b804bd6afca6962cd6af8edb4d4181a256a77269634497151aecfc03573da3ebb3f626599a0e8e924d6b79e47a67cda46b5fa751948733c1001f5bb41c3623ff67c9bd53b427865abac76009b661a86c46c56b67252e409a9ddc9cb5492f49c79713cf364d5d0d222c025371806ea4a6714b446ed7609727e04f2b0f172f58237c7aa31c017da0585a3c2577e9c8a87cedb1d0fd06b3202282562060012c96761c6ffc643db42b194c4bcadcfad0633db2cd0ed8bf18f0edc8764090aad35df60415f10090b1381e21b0035d48d8384b7dc8faaf96bc3f43abce53625d218c8637b13558b06e33cf6fa7a9c93da2feacd0fe8ec8534e5003f9c13febfa979c0094cca6fe90a48f6618da44f2218930ede1e2fe623ed1d6048b460524904d561c15a004038083c0d455adcd351a471e6425369d9355fd9dac3acd836d018f6103d6fd116fb1d1e013c8cc4d6215ff367e176eb4699ae188a4f898e329002d89045e9608bbb0b64574ee5607a7acc7579ca4248bb905a56403a2372257cc1a25ef2c194bdb34c45abe775f3cff1d7759271af9a60c449bb7e13d4afd44710f485decab029d352c9abb025a5b1dd9a03e12d5422db125bf9643fa213e2cd3c190c32e2fb73ffb5a3eed322e70676765850816b6b1ccedde60782f5ff5956729bfcfc4da2dd16012f2c535481e73edc301df382e3de4d75b34243531972a37130bc8bdfbc0308c376f8ae3abc288a1fcff5c92a8f03e08439bfc9d6e30530678c1e0efa90c60064dea31e33ea0e0772890611cc58c2d36a342f1cdc3a560946d18dbcfbd3d32541bb0f6b68f25e31d466710e393edf27d47b206e56f86fc5afbf95eb9d6e09b94b0328c30485c964d5587db460047852b234b48e65bb3be2cc19b36aa245c61ad741445e982061f23afe21e5cfc6056eab703e034609fb5be0338feff596216d3e47a1d2f37ffc26a21efa2416032ebf77cf6802885d9904e7ef7c4812b253cae5a00284e01de283a109f73bc6ef4936d2002e68dd07566166b0df04417594a8b1e2aa316009dca4081e76ee0175e8d01bc29f26d75a0b10dd639d4b603458f821eb5dfd22e1ac209a4813ef6a985cee436e1d16a07ac2240e794b0633fb5f47b989d6df3cdf7163874c392771addf688b6279c9a7d7d0a4dcfee19ca7c6f93c27824323ac5f08153c1f59c499eaa8ad0a1ba67c41fddda39dcac6494f47eb5e835675f15cd7f9d8df893c155dc979bd4ebb10cfea3bc33d44622ca8d4455c2e168ff768c58b95a3ad8d1627f7124076dfb5e89e0b8a0480dc4d4cca143619b853447f8ffe4e1bcd44705bf5a7fe71bf8e66f957923cf42540cee3abde4d161a8ae5a61440b7756400abbf994d87c664eca7009ec0b0e07d366cf53d845ef8b754931aee7c58335834cdfbdba9d754f822949c3e6be61d2cd385c84ad4d1d8f56277bcdba80baf1c2d04ed5d289d20ec27760032b3d47e4caea6780264a771a870df95e2f68d35b73a0b760662584b6a161e8ea7d54faa863c163c8be404597567a89e4e9da52c35718aec85145289b297e9364dae41ea3f38380613d66d75eb44b7313b4a07a74a45347ac576d1e5ddaf7782cad26ed7d6c622e176ea3e6648aeb509cfc95de90268a21fd91eb4258180a66e8ba6f2bb314ba6a95c8399183d8bb8d91cf147ae4e939f11c26b20a6b3443df4f7079f4e3d44f15d7725ae1f38a9b18f607f46c36f010337474f5d3f5ac1d870df5e491854d7e8f3d8f657d009b3fc7a81f62f6890a578c4f4b4890ffbe6f7da568961c9d44ba0beca37fc31b0912a1d382d06dab60f108a82f5dffea0ed068676135afd0f95b4e950e18abf9bcccb3772a499c280789dbdc9bf944692c37ba2e1dc0150021e2926328e2883bc71f8a901fe040c501cd109567b902ee4b31658f120c5d12ef2a9eae15e575f219ef5b9cd14b4e6608982a5d09c410d6e429a440716c4442fa919fd794a8c58b88fcd3871399d04b01f0c0508ff9d8011301492d436379d097aaf0c23b54274ab822decd41bbf110f6a6f76c5a5480f7d86256197583cdd0e483a391945cf492d771d28283fe38d228496f5d345a3f24b90801b95bf23beada232c435af56f861c0aa80b583af989e2afe4092af181d17ac831c29d23a642a509df26e83746d88d9d51a1082f8bfa6edec55acd38e7fd8392e14b014d44cf52e8d4e1cd182d3e8bcdd8cff0e8f6f724c5e8b94b4f3ccadc8f6f3d4907c5ad9c691f313ee7cf57ddd757bacf07c03ad7cf775da3b7d32fd3a064aa279fe5e1fc227c829bc8c3421b53e4c4bdccd83eb2bd9945b0a8ddb5d14849a53e5e48a0124cb48da918560bb55e5a009c3ef067551830a504cca6a4d91fa54dc7f46837cfc8866fbe1f13235e5badb375d3674fc3e70339f65d5f95d94e9fde9e19d5d2387abe0271803c99134767b7731f960a02e87d9a650884664d538292eb612b3f837543f46c64a096f40bc72ca4506732bbe3cd5068635f795be5a0cc711037f4a281846cc2b0293b7c3849822e08425e1f26f2b30c2f3a4a24b2ba06dff98d4c43221b060a912c56a76b166b179363115e6b0463c5cb1cf8ab69f642f8c53ee586b43e4bf38d34437b9d626559502cea0f254e704634a71782d4ff93fac26c16033c754a4eb25afbe5f6d33ed0a46791a7943608fa722463748c8b93ff39d119158ba36faf99bd166dfe47a860553ecf5b8ba9624802dada6f3daf7d025d19b009227e2a45a0cf7ea44ae02aba1d922c299769a325700c6a74f21aded554edf13a63fd3ec30cf0b51580f53390e8ce4fb9d182b5f49e769fc9c5b3e328ea83342ffd94433f4a6d46e6b5b9113aa1be2de1f96a6f6d2e7b03334dd1fb1bb3d75a8192e1cfa8c6750d9bf95b21d5bc1a5c153420c666118c53b472caff3bc67b237aa926020d8fb3cb7c9a4b644b555f573c713720d246262fdce2fa4b21c68e62e20ac30d25822609de7a6395e3b6be2a7e725d3dfc986c5ff12743a38307e51a7f66ed31b9b06068cb4a787d89dce994b0b4961f3993e3a1c653387ad45054071ddd2aebdc32a4ecf7371abe5c07c97a22abf8604f57d589fba64033c6416515fe0c9da35888b0afc392718349fc03dff890f3c2203552cb1145681a847c66705e7972e3d568f7f22778b675896cbf12cd5a032288d471fe9e323c2c3f65759153e271b1f0a35a1d8d61527d02e0a385029030658eda0d15b4fd46268a4d0dd87ed5bd73c4d0542734ef5a00ffbc1b6cb62887a8a471d5c92524637d6e54d16d9ee43d3eb3503affa7ba1ffcbd2799aab49ca1de71ce47581e203fe4954762919c94f06d5dc53fe16aa6af8e2dca195664d7c058413af65f599031a8b56f996c95ee2bb58941402c589851c4c8890718c2f7b25b25000df5fc7c2bc7dc7b39e7ffcfbe806ae8c3ad7dfbdfb59649a78f24869acd27f6cb6c053bfe57d5bcd48d2561b429d81605d58d3f970450ecca830b6ae94548303231e4ebbe3ea37fc9365c98485e00e5df6ae41a5135b3f49a8fa8266c602028d9d03f66107f7515f7a991e98ec55fb199c50a0bcf9f3942251f540fbff63a0487182a71159df4d33b5dcdedddf8e0bdbc40ca09c8944bdd058ba66793cb60c8860951b12da83d1ccbfd26c7fdb8d742fed4c55c4bf9f95d3fd85272b56f13d93f4842eb1fd3960fbbf4dbcb98cc7c16a14ba2f4334d67d4ec5ab90ad5e48df046b7c58c68e23e2cb16c1689fb97e94cc91dd6b499b4cb47f193a3f098a27414b509074d7e540c9bf95388f453e58a5ff77b4050328a13167fb5e1731efab2d73295a700fe25f48ddd8151817a4ac8dc8b57d30a5fabc47afb6bf3ce287d6332f9998e6c1b5e55a8470d75f763e541fef11ceca46565de33b128ac5763ba9e64f2a085780158ac405acd984029ff2038cfa6ac5e4e654bbbf3a8b6643d4783e43c18b7f47c7fb733dd61e36418391f36bdbfb2c0520710441ab4e13d72338c006f1ac85053200e8bc8d3c96c02bdd475b20ab8c1f3332cac91d2eff8d62765202ba0837c43ee804b5a9f80a76c6f0668d664249fac9efb85693bf250816a7ee46caeaaf881c6a3af2ece1717a9f1d15a17cc0ef571b0e639634494cbb0c233a5a1cfbfeab3fb7b8e4ebabb9a3fc378659b03d2796adbdd6e80321da9b33bc24128f8477c9ebe124c62039e1c965d0db691b15f8d6f2483bef8e01b2bfa7656deace783904766039d46feb8513c01e795432cec798a757801a3bfc54ec2fc28abc9f147699a2d945522c3440ce23eecfc7ad22d977fe184c3baa906990cbcade62b987a4be7f173d43db17c3b998f370752522ce05937eff448c1a9172c5edceccd79d8ad1c1f923bad5d963eef6692599ecaed353746ada82384ed50572a3851e7bd915094f2119a74c52df0621bf1711e6aeb1c456a18a521d706673e65b96e7118e6751a43d6907e1462c556fcb5c4cc08e67345c58d2bebd6b3d2fc5ee1c9443aab21d719884172e68c3bc5d0506772d8665a81930b24492d6d208cf815949cbad1da4a9b3da7f52b38e62e33d565ed3d2dbc69c9d295b8944894601a2af8d0be8cb46878dea5d1cdb7102b980e9b9ec28d99a43d78eea2c2ded1576ffa37ff6357278fca8d239138a9a8963432e5ddf26d8a98ed09a1dc664fbe6a2501a8cdda03e0b3c5700a41a9a9be8bf3e38fbcf0ae2424d7c81bdf9c3aee1a66b7e4cfa3431fef696f76119ec1f54e87cb2665e2e3c830a2c878c4017e5ed340efecbc1d1a1bc5c3b22beea858e2077830ad6950ee6ccadaeffe63823ef9d4767b2da6c703e098636b90951b6e6e0f707f1ea956e51b0f2ed964b4d22abd9a20c6648857c53801328a4bd1abf3623022045793bfa1c06026a15340143d607990097b61c08d1c4c910d618e10c65c8c8d1ed3f026c7747b9101101eddf6e027aa874ea1817252a27c5b9449f353f1ef2c14635b1110933b204b8ca4cfa7d2693e535adf6b5b53a56f4838877b9a997fe27b81439f8d5060be93ea95a704f6a6c003d2d2b941ec61a7186a267ea1874a6bdb713947ecf1c4abe57f092558f6b7a8f3a3ec309176657f9a01d8ebd5be1a5e85fd72e485cad10dead7fb518fa95b0320b7552ebdc234c85a6cd3a94ec8b23aa744cbacc5e9de11677ca783503766f70d4af5bf0a35e3cbe3c445ba5398b633c4f5486274aa31eeba0279a1ac99ffb63fc03bad7aa4dfb9b924e39793e9c3b71ae424ea49d98ad0402794ec0486b513bf729b668d86ca6112e9293225b1a86247f04334116d22064fdf74adebb7bdfbee8f288618ae4d2e942257e06677d5ad28416ac4a07c356edb3040429b94a096134b5e3e133a72f3f1d437b5b5d8d0f7d993e1ae70a9efee0a3fcdbce019a9717c6e663dc3c40549e2a8b9aa7267e6c155b9ad9b64718a459ec1c99448aa9f298619ebfee252399c72147e7bd67cd49c0c95f8771c31d8be2c5a7c4b3d5d17484eb8ec33f362e654340341fee467fa871044b06b599b44b82b8d5a38ccac6125da32897ff58212343733461cacf1f2950593a0c4fd7a73cae1e2d0d6a6743d343ac63f621ef0f1ed5cd3033c21948fac9167b078a24f2a8ef2df0210f5ef7e4cd2b02f96a3bd9efe53679d38195da70aed658c7f0f1df883e934e4a1c10a039c64cb2e298c00cd6459fcbe4236eda2586f93a19576faf54e1630c0c2ce520a7c878dc85984b0bf55fa52e0d9b5d882a9c1355a93fc46aabed23b406d1e96fca9ee4ce390d0a341a85582d082e074566fa4c0e5bffb6df5ee306e31f8b1bac4e8a5665546b114f95d01cc5e96a0d2a1420c3dcf5c75a18037f04f99ae3427452f7583174294f4cc17fa6cf2f4894b2d52278f43a4fb22d06828a6514a9ee433a847a6c65f2acc133023bd4355ccb2db7601b687aae0ac74c25f245f549c67b771316d717acb938485a71645f22b218f625b7a92f4b4c44064567867c420c20bb3d05574281d8877982812b323ef014214969a4232c764f5440da5f597f84debd2490e93db4ae95542b415390cb96a2c7de5ab30e764976300b11bf7e391297878ae4a5607ead6a9e77ab0b9f5f0b8b8a8866ef13786dd8531e3fffc1805886a4ed42e4af294bdc0d59cd16abb65a7aeef3aaf5ab32301518e1ee23d7488ec85e73bebf3f7251961683b6916fab0d10021f6bd8a7f00bf3ecf91876e83d3767f40ac182d1cba95b98b226930476d062af1a5f34230bf5da2cc657b8c5469bc8e2d07459421126c24432671b9a4fe9eeb50ca5f2f6e7b8285be488eff970cfe5ba2b939872b6665a74fd4368a081b3842d45c630d847b305d77f44528738754b776f490b4a4e35883a6473f880565d9cf381977c3b082cf9ed926619b8b4a7ceccccd441844a4ae34fe375c61a8d3c44921aba943512d60c666181196c45c5d2a9714d32d85d288dba546a4012d8cff46a74fe3aff97dccbdc163f0053e9d900d42f3d88445051f7d2c1343410ea9170cb76c5137c5ad7946cb39425ec193fa0365e82aa717e359c7c749075e3701df1de558f933434b82271a21f104671a373c1f435e8c9ba2390dde856c9284f21af7fc965975e59677a45ed117556fefcf303da2f8532d4cb0a1c88853f60bab9895c42dc393b1c2d555d8f97481f505a288a36da5f933986a799df109ac2f6a0d864a819d52693e5766fcd4d6b44019cb028da64558a5c648bbdb5d94aca39959fdc156e94262496ac89fedbb414dc5c61e3cfdd0a4781d283f63cac1b3dfd0f67ff838f27bedd689518800b9bc48b67e081a3ea57aadfab9aabd636c997b36a442ca282cd035ef82bb6166ea0b672e7e562e93467ad573f7b7165be1d1adfdf1cbf6232baaf91c17ea1b6847f12ec613197aa686778538855ef6a620bd41061d5105cdce2d573906756f425ba5005f598fe283f0a19432e0227205c594f091567201ef2909cdcfac2bc69cea60028e84bc580287536272a73e025acfc50348b1db4b40bc7bfbad805c96c61e3a36860616b27f26d7d71b240f0113253d8925bf857b7cc3f1f0eb41864a58a8160f0f43873ed04c7cfb0993cd2ad44d8c913937a4f84471c7d11170db4980fd02fe7049bb482a5c622eb3b9177221d6a8348fea82d46cd9da3c8eecbbecb1d832693f8f90c74ac66ff183061a24f326badac83d6d37e9586124264692ab5baf4621e95e79017ffd73cd08697cd17c73c9182ef9557919d8caed33944f94a41fd08dd18fdb85a99204382794040c88b0307f15db09e0e40fbe4819afb996a8faea77adcae06c416ebc3394afaf75123f2847562b28ba2f1d67984928a2661b4dbae3b41a277377dd8561f634d007edd647bc170080d5d5cd9280b2127fb6783af38263d135edbb5f31ac83ff1003fb7f707f324ac7621955dbc0a2337ce3fe2253ae0f161ef81547505ad5314fbd5f67dd14b5c5c5583b11bf3f4affc5346e9ca554ac01c89621c9a4a516136c37b06028ac17e460cde14c5d4228b43a948222ec51fa9ed552e2495d577f38d4c04bbe0bca5f632dcd2158e176f04221132b0345b6949a638af8540c3df2cae07310e745c801957659f5076f1fd66231410531bc2b0141b604be836473c76ac12c7d61f9150114dc3021e8d13200dd1a7d298880b597ab53cf31df0477a48f24144bba5707c61fa28e35022a42858236d5b17b1c8e016d597371c71c12dc824e2c6a81779c66dd62c18e44fcf3cf49ea753d27029b4c4b5c6cbaa08454ae3cc6a3ab3c3e32861f95d0267bc2b999440f658f3cb8a9a0e070a651231bcd90c04950a842d1598e4ae344aecad9ce3222eb7d4bee7519e905db5d73c104f46e986930925f1710a944b7d726ffe32aa5fb653d9865867b034256ef9f4978f9b7648d40dfc7db11b64f221e4f5ae16dab9af079fc09d71305fcdf68c4701bf2e53692b6be7e8cde27012ec720a89236fd7f165cb443279ae283535f7cf4a876eb1d45fd02dde822bb530b48cdec35e37a2ed4814505bdd3694eeec61817b71d384578c10781b1c2ac4af1729f27914b76bf3d94ac3d5dd98041195de989895332905b3b155edd1efdf0f1bd288ce48da0eb5e1cf0a8af7bc73fa7e19c78ab3719af4b48a0736aa6677efbfe4130e8a49fb909e05b6c0bc261f4664e744bbcfc0900291660b351858877e52096eb09f7b8dfdaa55b8b826b3a5a7b42cb3c49274085c7e0c10b918b447e877384bcefa34ffb1b52af2588d332b9c537cb0913a9f36b161e5418c8073e09b40f35796c0c1e1df6a259192fd721b1064cc2bdb97ff5860fdcadc368974e7babd6a375d6a31faee8cda39af7caa61ca2df6bdb7520c810feb8202339bd492ea1fa427cf55d305662673dda770b7aa33c36792fe1e3653bb772fa96b6ebd3b47a1119bd85117da3b99a0da133c44e0050f1b0747d3cb30b44bffad24c43cef944b28cb486025dbac6416f5bbc7d4aa375e22f1e7427bdbac9b047173128518e7266e9de713d557c890606740cbf46892dc5d074cbd3614f972b591c6e5b843f8eb7b16bd3f66f308acee89628ac54d8ffd2a270042b04487ae1c1e03f7f297586f6105855ba69286736043f902b3b8246074e670b34d8acdbeae5ae36b0f8eac0e87ee64e55152c9db5a0d70ed0ba85b8b64cf74d3bf5d5176b21ac94f3531445397e3e84c5a0ff5143b3783e7c2dc3cdc917ccdf290e2cbe3be5ec8cf56f2c16b56b9a5097d23caf0d127bc0520e5b65631459aea4c9773861bf1ded2f486eb7bdaade1d09c359d96244d778f69ce0fcf1fe74be8ef34dee67b2bbe3d4bdcbd87f946a7ebd4ca4566b216f1ee39a0aac98a56b80bcee325cf76e080ec03957d494643446d866bad64e40e6588bc4ff21fea773f775b75629b740c7889fe7e1bc6bef38f207626331b5a45beb0c97097297e01c36d437872020651da2b5d19262fbadb0a2097cef022e1e79394dd092745b4785e714a0cd0cd7cb5c6687785116e78901e002fc763300e9e56438559e1deeaf3f152c786490c1653e4fab0e3419867d8f7c8e913aacdd41903d138ed0ec218497aabd451c2e66194ebb179a0dbdabc242068b71eeeed1967df43a0d258703b001d74dd6fba76934bd71789f151a5a7e3404f13e0626090409f20275b026b7c3042ac057e357cda91a59431c6b9fae0ef445569c50b176df9037df3e1bed5b941cfe9e5c94c9484f731059a8af20d4d93f8e7244feeb8b0aaba5aa1c46175b2f24533b0b2ff416cda88a276498c244c5284e18f853794362653e1eb45540a6778eeecf96e59a65e6e289bc42204ba9126cae2997e434401f383943b583fa518616db9e920431c54fdc274a1264347f010d4d8125dc09947900b644b3d8c2d0f87f13447a46b9e610afefcc5b112af1d938d9df2a7445dd72ae1d2d2da644c24bfdddf42efc967a2fdc97d98136cd87647d30af3b7f8113701fa4af4c837972af1fed961dc874195074d55f3bb71b13c1a6135c7804740b211178ccb2e014fe1c0a922b3d920912593fecb66e694fd5d61a369b378c8aeff9ee053eba6d2262f3b1ab3160d49f3d47804b634ea1d16a5e060ff43afc82e3768fedaa0822865c64dfff2ca39303e618740027c6bcc041255e2dce3cf6431756725e605a9ecaf7f1b4eb5fa494542e35fc0f3990940bf5172c1f733462395aee68cf9b777355a2370aad9b980b76d37e7ac128583ad00f16a6627446445896f1afe58b2d65cd3a7ae56a497140ccdb0276567a2dec8f700b387a8970e1f1619c9f3ce076eb231be0e6f3c7da2e0460820f74b7160dc91737aed378ab291c4d44f1579de4d565c2cf186c3351d7d8f8f02b69ac13936fc61c0643970df7260136c263603d1241989edaf69bd4faac997d7f7d34a0a1a45fc89391ce65850b2c18eaf6929ca6e8ea7cda34033def499d9a119a74e69a59bc1c57d4ce46f04b99e6d2ca2a0d5108fddd208ca60f43c527d35b2d8865f44c14a94088db51e05c9bd48cb0f782f25c610d96f0b80d8e6ed750ba6f9fe69117d4f17eb5be0e2380148dcc5fb4fd83d90e054d2698540a02e1a1ca2f29872203539a537f55d6b40b9390636ce7b9e5118b23f9136ff7970e475c073ffb0ccad65aa8e7b5cb38a0ad21b0d7e755ce4ad911f8f2c612814ad7967416422c1708eb3b94888bbda4f1e57df59b5c36f03dd520a4fbea5689d4cd80883f3803a13c60002f6c9b0168984c7db66edeac198ed8264caad91de936197bc06b4ee074caf4869b8c5d10b5c1ac8ddacb95d36452d2f9e384c59e934066c8235b23b8cf221f002be88913cda1ea957837c801b6ddd63e8f406d1bc9da00de7832d408d1ec157b39596c7d6897c4f6c09624d831f96e9a96a023d1a7d447e00fe04fef485bc7ffacdee8a4e443a40cde23262b77274bdee9200f04418002e91cf0bea0ab8ababf35e9d03fea8ff69ee98f3aad1844f54f07068163ecc28bd9795dba7ed098f58a09a619960903d560b14fa717d2143f8d2f7cfbe67790e519c0a600ef82320bdfff1d6cdf7bb3d097f0d05df6d54da4031c39e4e17915b3bb6cde4a27869577218031bd323b924ed3b30b806f5fe70b620f3272c90928f29eaaa967f311506d87d38aab6f16a9f239d2ec2e19cf266b9714f2239d8305ee7420b2e3f57447898c9ed0422e99ac986764d125ba2c4654c8c3dddea41f3018aeba28fbf915b012dc8064595b437a5ed2c217bf543b6d677c4c6ad0c53a7d3be8d25944c274f86183fb6b071d80c05cd7b340475196dfdc22d927e93468c05cf64d362eebd2818cfa0115e4d4fae198ad6370fa136883110275a0f0f6c6b825a15aeafc927c34317df29a625b53339799ceabb805f3ce35a7997232925a1999439503d2a6a374d52de39da4713fd90f3d34d37ef87488675ea3f975de5cf10cca714d6e73f0aa32b41591a7a3e4eb2093b0ca4562da8e223dc66f8fb71e29500a5d1f304962bf99fcc9c11ed5bdc5a32c98dab500102024d83878f8c232f6c44d89f24b4fbbad5d08a82754fc77ed67a13774f5abc267e8b52950e3c7ddd55006d3eb47cf3a736337818e638ff4451c3278f477e569c9c5ef30dfd2eca6b257a119756a636dcfa76a937f8e898d703123716131768a43a4b9eb9fab03e48c9fb8bfb77cfdada5fa679ebc0b8f802e6e93de956f8b747ba30c1a365d3784e00cf4dafff2a0a40f9dd1e5bdab4540c9ca6708bcf42fbc73c20f8767ae059e48e82b4a51559bbe80e73b8c94af3563d5a8832ab75128923f1d2db0812e11848c0baedd8476b97ece83d36f06ccaccc060e8ef73a1fed862c44cf73a7567964c6c7e87e59a4ddaf7e7d481622db49db5c3b9a6bba7b49e36768cbc49a17740c169efeae3cda9a25ac1a5ff9b446133b2eac9d860ff2de275834561a9a7e4ef42177571c4d0d075055977f924cce3f28722bc9037ed3ace52dd5d6be5663b2d03843921e5413177e958cfad41cc654bc0ccefc8f58e531beb673bd95714024fa1e3d0e8cdac01c190bb0274a476b5f63ca9c5e4bf36c2f5b448d8074e16f4db33d6b940e60bfbccff1276e3c8d70a030056a630d73c6ee82c3b54f4c283d37f59b450854986d396bf2e7694950fe31500593ec473a875ff976f94791609aa59cfa648f6409b4914ad7e7d7592c4355d037c6690a006d0c7b73ceef18a1bbbb00514fd93f143444f49bfa81bce95700c45d5f8a143cf53b5564261b6d7843ee1eaa30209d45dc401f1416ed54f097fc8a286828e8bbc7f0422f2248bf63a407f67cfd725e95408220c3328a5afab105b9dce6232b7fc65f31390d3f38d5fc4b42452349ad77a4fcb3e70b1df732b2c2999fd3fc649c75e5c9afc182910bb4d1380638b5a42101519a2e75c355999f673327c30ec57d06e5afc0aaaa9e5c575afcd9ec8210be5b5c89129513c3a9bddc7a4c26cce3b50bc9305420ec4798f0400fc448a1edbb129691af109dd875381c35c0b594a18b9886676b1cf19f8386a3dcf2a6d958e04121b41dfaa2cef9e7bac37af3c2443f9d5b9cdbb7c0ec248f24da99647929ddc4df3ac953594df0534ff62036e1677c9bdae04ed0bb68e8184725741af90fbf15465022f560ef210e29e1286c056527fb032a3b4003f02491f998903bc85e0f54f0e5d9d56e1bd281dedcc6193a4b84a25711841a3cb124d83c56d9dcda0eed845bcfed8cd7cb550f013ad6bbc09138293b0961f1fbe4f4edc23018a9b38c73267358f6add4f7c24793eee1f850b17fa16c5cd3dd556c2bcc50e3eb093d0803e41ad6768f3809f93b588a75befd00d09b54d9cec3d539e12403934fd3447768c4a79728fc379d102020c31738c313134f92fc3a3d32193ddfa1542f6760006b8823adc1154d7b4c80c86d4730e729ad1a1935703252388b5a19912ef6b38c58b14751f03513d0af9506eb3f77a7350a7869e6f5e62516e58c432c684d5e1641deb9e655b4552122847ce2e1bc3189a148eee4aa116ba2c8998fd76d7f0f23c34f89c531bb4964fdeead2be3d380aa5f7690da0e8e8cf50795e7f32eaf7e6aa438e9455bbc0987f21ee3e04be8e01083e2888299e6985ad2116d9c0970acabe77ae90d82c9890a3a484863a816da01156951ae8a85e6c022039831f1b007ebbf8e39bd40ce71b968863d467fcbbc6c050626878f270396dc5f6c268064985a9fa1d37256c03abdef9389ec967d99a77c66d80939696f0a00f9120aa49fc33e330d3f5d03584a384e31c5fc2da88847f0e554468d3def441eaea85fa54cd4b4916c460c9a3bfadc04a3fbc100d6117fc59462c5181bd23a1ec5c08d3b3a6fc5184d24def301e7f17db04fa23996957232004b5992391a0d265297f1fd0419bd8e7992853f5ee614790cfe77fb4e05beedc321fa26d17b2c7398673116d61739aa6ca517a4d272896d3ade8f0aa0dbb13adfa5ec84a4dd1c80fa11eed16e87b1902ed9ac6fa305121fd2c8c554633aaca14357eec992b4ed766f7b318f23c6b2f876d6604c61b5798ae8e2137cb159939159a1f2b419e13143d90269a64faf72aa1d58b6dc0cecbb6375f5ddd3f3ec20eb370dad3e343fd28394832c0d8b56d9b25282026678a0f0612826fa9d339e443fd7a939add8089d0f99e5224dd057648fd7064a0034f82ced1ce415b65ef983b4b6a26f462b422b95b0e1149edcef6aab096365dcd18c81e73222d8795eaa0445e5dfafd41dd65002bae0fc715e4ac15582a26780dbf77a42f1ef38d5932ac334ac4e757fff92db09133190eeceb301a517cfbfc9c6f7bc8815e531ce68771d793bc209abdc47895a885de33911e02ebc550c4ff7f69f4bfc4cf7eb5ddabf6775a509aa82d97bb587e60350ba377e2c88599f29863cbb6b71167223edc2e01916cf1e555f89721dda216c6f6a866adab09cd543ed611c2d47df2e4930671f7b192d826171392a77063b3ef49fa58cd6aa755d6e86a995f7d92da8b3f95e8d61f8eb4b60205a8b9bb48846016aef407c3895570add1c5f80dfa9ab17238eff4fc9ebfeb1176fa6fedc6b9365a91d1be5f2eb8809c1cd1fea5c94ad066fbc636efcc2ba4645ceb9112395af6e4d3e6bebdb3b81f9637df0074d5eb948a804d885c5a777e62ee623bd0c34e298d8e48c1679b5922a103c1b4a5163413ed9537e6fab41dc5a8abaae15ce4d8a5826801214e3972af95d124e31ca0706a11fe6ea21c485b91420c9c56f37bb4936e11b64d59941bbb69d93517716458839b2c2f9ea19db9cc1335a335e83d76ddc40923f2df947f8f89c8cf7d764bf33aaa64e13045d4bda6fe477ac96e55c020cd3cedd0695e2e1cd1ddb4f0e7f3aa764829b275d62d1887663520db2bbe51f6cb7d4d72a54cac808d40327572b593b0e7dafa72f5fa63d06724cf645f8a61887e3047aa1ec82f6dc03fc5e02a1db6ea991d2b80083a6cb1e510372eddca7ddce9c78c7314f2cae4a0aa5a65c4bbeff582f8ee43f5f58509b6de8c895215d383f5a8a90a2f1170ab1cde9f0e3057c3f7c2965ef3ffc5534c339de43a463e7258d2f7969bfdcb8e9460003fa8d3f01d3b42a91199cd0dcae412b06e7b8fafd70eacf0f0a11668794a4db238ef5918ae34659fd5f53ed9383b0d8d26b2fb63a04da98d72cb675f879a57ddab1393670c185e21d1a6d0be5e185647350febd32e3e17904a2540c8fc44cae03600023d4a0eda4574557c83ec36f620e0fce79022c8c2f4201863b9320edd4e99dd4b0302f4dd6c7eb1086ef574c92a6d4ab64b391303018c3320f920edc8af25fb7e85cc66d9336786d249b0943f1053eb2959c4fb0a4b287c17c0102a7738b60db34d70c51232fd9debcb194348f613dcbbb10c9a91c902950d4de534d2d7d900690f2130850182e6464aa57226d52faaedecb6e3dd2de2b23e2f46f0a1d606081bfe3f863c6526422e11685e5b8fb3534776aadbf47046840cba6bbfb4ea0e14c94ef44f16e36b92f405aaf68f38fb555cdc2faa82ba531299f222eb82f502145d4bbe52ae330bf58a7c2d81b95267fcea72ba2bb3ded8c42fb22da54bd7b01e0d700371c273e9d5209853ff8b6fc9228a5775ce0b8175bf6876db7a15bfdc80d9c57b69302abab646c15d9dbe4318ace70fb0238751f034e846f27067b5244570bf49c696cd6f7b47573691ce46ad8c7c432be1af230bb136cb4d582e5d38f3d83e305aaf2c5aae0a16c7a4a9ee9346951ca83c34dfc9c957d284176db89964bb1bd01f10ec1e3698343e8282eda1960ba867150a39fd4a847a067907d39aad9a37d8c1261688334a14f23836edbfc6a285f1d9f9afbce0bdadb04de5512c010d675f764d4a4b3ef6e86b7b4af8c477c1bdeecbaf7ceecbe8036b854da4d061e554dad5d54d2255a60ab49d34283290104f269ed2a41f74462abd78de49d4c72264294c09574b89837955afb51840d5748a7ab076a4ae8785e6bac7fb9105e1212d44fdcb4cbc376ebd2cbbfc674bc2cda6351d4f204693bc2919037c8c572d76c51e05d9c0950c867900dbfb8210bbc5970b1272008e389941c9112f09ce36a713d51998b0332c14a0a269187558eaf3f506bef5d53c1532318b908dcc719e67fac8749ce15e3c93ec8931c305715e08b875ed834d45a1185c0a3f76c7485e32514fc2e5ac2beaf401ad99f28a77baa1b511a5c8194d1e6b77d0c3def75cfa23a8854b287e82b2f5fbbcf3a605670358f69992acf473497f88c1291d31964a46464014397eee2e54eaa8ec2a33cb4e70b4c81830e9f88be4cdfbbabdbc64b3e9fdfbfd5f138da7eaf75c1eafdbc5059636a63ca350fcfc5fa71c7d41cf4a14027673761ca09fe349d18f640ba054faa7b16702823c6e1a7306c75f46cb15ce53daa2de13a045d5a824bbabbb901cfabce867dfdb9bdd7b81bc9f69e24b56b0ce63da50fa19c66e65db09720d20b213b0aa0e5b2023a22345623da8a9f52a68d00208ae1e564628778aae040e11a84446ba1ad1420e03e36405b654e12fc89415a35e5bb8170c708f9adee63499b096d435fa42b59c49f3e6512f8d9f433b27d85b80d04ef130bedd1b8c30b7cfdabb7f0e4882c5d92dac557c29555197f479e472f52ddcacca0c62f54404d3903c3ee712634eae2ca6fc85d1db6896144317fd16914336234d85d8611b9100e972bb90dc0d687819636bb10ba11b0bbb49ddaaad14178dc53be88649ce93951a2e96642c84f4b5f86a77e34cf3fe71fc5f57084372efd7826917f5c57f9213d3945b12b2f34515b7c98af4941c659f316b7aa0ae2cbe26e01ffd716b63948c515cd1891e6615d839110fca7faefb982cefa4276c88acc60d951185fe9529112993774677ffe13ab8d5b3734a51c1c018866aa3d91c78a86c188063c1a7ee9097b5b21e9b6ec23a0dd9429adc2afb6b12fb88aa2c92d8a931850795def3a611e59307efba49347ad1b82a3bffe6697fc7a81522e411042768f096b36e89b3983affc92229d505107901bd06090a1a485c7fc89be8f95f1d1281436321e74fee22f08b076836b2adc9ff325aac9f4b6dca3e53f335fb7d0b7760971459c504b0033e761bcca54bf013c896084fc6fbcf6b95a7dcde949d75c278bdb9fc0759c8a96bc4e8030746d84cdb48fb48659b8a105cd12ab4530923a85d9adb947a27fa8fdd6eb0f1b65b1a078f08dceb57db973cfc399abaaabace1acb2c105d45184de034625baf99a20fc242baf59eb706e2208bfbd1fdf4762eeedd9880bf92fddb9e09cfacfd254a989fed2deb4dd4ea9e7da85cb84c33ab3ab1fe5ec1ca5303ae3e673807740d4352ce6f57d839152942c7938b72427df8bc75a8695f43b5d4b4082fe278a9e48259f32d7c71081f1fcb9aa5931daf3ab438efa6f7841e0354713213bcadf1a00115ae1fe008fd91fa2066fbd002df38eaee17b76ab5ee0e43e240c12aa7f34678d81451d5ff2aeb4206144938d5b0c9e3f1f2a4dab0db0bf2a01de80ce4b4f248681592c734ada5a19e91ff66c5b4425315535d455150061aa3171b52e29bd4dcc5393f2983139e4d752f3c31357541a281cfc5da56091b96a58840938582fccae316d5580b2f0d52bf984bc104018eae4b1ab27f1e65ffa51e81ee47233211a70a9deb72541f6f8846b5aaac0f3d1d549cc6b85921cf780a83de888a6d55e0fc42602421c1500c302b06ac83517fd538f375885df4e6b8b254c3ef891ddc5d22cc073e6869d3f94227e718905be393c4d7a96b5e683fb065d25dd5bedbdd0c01f3d5cfd09ad98f2f962a23cb5b46261f7e38526f534be01ede1f153dbd7f326a308c34ef4b19e430c78452a1b3026663dab317e466d119903bac3f63f699a3e9f0b72757a2dcf138b6d61f5a8aae9dc396db70477d84afd2124ff991207c8e4c06059f4935bccafdc3a091a3f854f16030e77d982cc3357f4722e1b3e33f3e3173a7b5a722d4536551e0e2f47c9b474fb4f3a188c4f12890706e6c3058b4177dbd32949cc0e9f6df3f961ba37a82da796faf8aa3cedef195eb391a876a379d6a4f35d57e12532d0697f319215928bf7bb3c89f61eedcd8a09dd0003387571df771f46d5c16508d3f9eade1795939088023d5031e9d8cc6247535d0920d1e096dc43ec28db545867d046741fb0033ece0fb3d6f57b260c281d461f24fc4b26e93bace8663a38375c2beba5fe3199540765b821906907a04086579526aad16d1d5a7f72ff6b047ec8e7a6d23f000cad5696e28f01307acd1295ccc52075ec7cd69949782b2b1e4eb66dbac141e7a09a7ba4540e3d42a0e4cef19bb0ded93dbe498329f188dd83506134990159044ee556897177fc3716c03f7fcaf4dd39929137a0dd58347c0f81f314c5e81e97826d205d47a911471b63c25019e3527ba9f2c835bc5a02f7707c160f393afbf1e12b13b23c83b0772eb8255b33e90bfb06bc16af1b122987ac209de6db3ac67e4f2ce244f4cc73d82a97babe99714d3e316d90655355d6f3959ad278a44c8a1477e23ece33e3e3d1263b36928536ae1f39455a1a0dfdc77ba690717a1a7341919b460ea16e71b43055a2254d3a09bd5d1933ad05931e5736bc4ccdf33112c025c159fdc42a25f9ea935797f9c4a2cabbc501734bec24582396cda2955a149530266162298439b29160de4aca40625d6a4c16a7af2168b1514ac1ed0d613cb4eaf0ffc5e87891ea784a59a3935b56874663bb05c0f841a418ff352e1533692ee81da67ae7e6f7a2e9a5a75595ab7ba34c15f82cc2d355d142055650ff8f8ce54c672c87bcda85c970976b8a949e38ed1d95d5d598504ff37fc0d60431b263e773dbb4e8237903b61ff5c5e3a8ceb12cd36a3377002e8e7a22c89a127e67f195ecff0b4db9a87991bb2beb78ac9f5cf420bd9db6322e0f530583ff9c8dcd9e580bce82d79640cad317f4610450eef733a0a8c7c92104ecb85b050a65b30db289a3159b89646d118561abe2e212330a3d88402728ac4d17473e9588913ac491692284e0f641f11a2b3b29f643521ad9b804c8d0380799db4241bf8796e299d9b10346db80dd71dbc75bffe0c1b4e2bde3a214dce2befb55bd66ab04a05d67b3931ff451c6f01283d4df668aecafba30440317a685a7c7e775a9b1518598c692af1bac555703aa5070ecd7163b89d94a2c84aebf9361a6bcef7898009f3d20de0e7bf5dc20878b8da4c6c65f391851bac59396d04e60bca24418993878f262e1f1c4a91f6bb3b147eb87e5705b8e5792e198f99cc0305d0f581771312ee12ef6a924c923476846bf9757b21aeadc4f3f51f436fb30628ab5b7562355b8cf88fb127dcdf4f10321c6ec46423e516873f7a242c1a49d21b97030e757e6034e284513503ddd105a514bd3f84e045e743ed29ba74d63811649d56ac1578889761238656e8917468e093bf47a2cd9c5d72266e95ea3e1d3af725baa3ffea5fdc1b0921542c68303a2281f8dc7ad4f2519fcd9667dd195904426c822eeaaafd90b0d162d4f2f8e84aad64246ab74922b60fd762e58ecf88ea29333fcdd76a9deb3df3b25399b3fd3a03c862787f948cb2bfb38e3496c9c526c5d29fa6719be3a114a2a79049a4ebad05e1e8c879541e4ad16463dbaed45e92c86dca331f88ea3dd86192e0d7187dfd0dd8f0e4face7f1cf11e37fcbf677df607865ef5ccdf3ee136d5c3aaa37d86a174dd04a8b92b5297f6db7823eb2bdcf90d411ead083ad02110b6d3261f46abd293b126fd2bbee2d9fdb03ae4e153aa40f901869c72b4402a5a11c5afbf4d0b3a9960c3d5fa08780d4d1b584be94b104fad40bf5b496243920d2a05e94aefd454e70c8c97cd687aa3b4944e1b3b6bd34c297b705e0ccd75a4d8b02cbdb8fac10242643421d98af899a224304d33ee17472fbae5cdd3f931a748a14dc26be168efc368214b9448aec7d33ac8e63ea137d2e1ea986e99356d4d70dec7e2c3e41e3fd69265dbf32edd41d426591bdccfdf75085fb1a60087b08ca6fc552f9cb04fa882215bfd44826e11e0491ad861083a01ab9d637ba698618771ef04465e7b9a13050c65bcdc399f439532a5c294e8c59d86c2b283e1de5f783cf97c4f5359af71e2261615fcd2db7b2bcedd93be2698a62448225316c115d8f33162a801f364e241293b9c55b4bc7d19e400343f15ad3fdda7cafe3d8a1183f849837893e7d51849c88d3648ab862b3b525f092cc8c9794552bdda7bf84376401642b0e46dbf765a2269dddd2e76aacd2300074b094c5bb7d8e2134215294a65c14e31a4bb9747eb2c881a230d83fd522be01a1a5f1f4d3d1d2308f4f9c46d17c3bcc773481c1fb478d4ef94aa76ef4034e22d673e82bd17a6a3156d8bee0acfe2474ee10d13fe0e3efee3972e92f0f1838d42f6ae98271289057ef133f3855e98014fcc682c18702a1c0b0f4a61da4c25fdf9c640d7ac937691d4f8478d10ead51f65cf2d84d37df2cb4ff9ccdfb64e18c62432006224266d0242193e09648bc2ed61cf5380e4ef820ac20b3e55f78c925ec5cb38366a17a83d2c501eb5cb610312b8d7578090acf132c9d245fe9bb834fe619bf6eef53ad433615a2eb2b2359f55df063113f3649592eaf2a7de61847dac5e544d59e050b77257ccbfa9400a11f0d8170113f7c9be320b09dd597aeb0ecea1b8bad7740d0731a0bd7aeca48797b0fa7c19a7d0f78166f34c7e0d67dbe6c9108c123925d9e30a0d74a9db7e4ae87749eff7c6e1382a503121afa2f6c572a05aece0f84e191eac3aa5253ba84c6a005acbf8d3c67a03639456ece02560587f1b4d7fc3fd6786f10ad232f40695f8441ec4dc59705a4d58a8012a7c895fd264244c49b9b10a14f6e391d6f1d25d6bf30f2a47a1c1c3bea685bd016f0400dbf915dbb354a520f8a782f3cbf9f3eb3f689c38c3813d08e88343fb45a78aa17c1a25d474e461f6bc9cd3a6c36df08d5fa3bba9d05c46e3606622eb8d1bf6a3faee9ad63dbd1227ecb64835ee86ef453338804b820dde5f8c03deff1b1f7b6161e3987a0c7ec0082d249f4cf217123f4f5334831efd2044f632f288a754a157b66829dc0d45d57484e83499f043e2c6cdabda3d7e80cda6837f8e101a311a70dad21e4061a2644b62d47d9aa62ad0ed1bd83f27c032db2126853a365455567b3395422a22ed6ad73b23d48c2a62a11c435cdccc3491631345b10395ed43ab0a045161a4fc36f1753473ffe49f73dfa9a34b734fde5bee8bc3de778b261133420331e0432c8907f93dde95dd5a071fca79f83aa9953945251acf6ae4e3fb812b8f54cafa7fe83c4fe53b1fe6b6271c4388ccd4837440c7fe0c51ecd84c5807c94aa075d60258f716e6cf6267f802c169ab347003b024727d0022eb7bc14bd2f57a356f9c4a1a25c00bb8fd12a07ee4f41d8a927f7f80d6c8fcc962b80e56af75990d05ac60f2d1941a767c188abec850d61f90542e3b708c1fc00280be521a5c2f9182084997913f5e995fef4e22d215922ace08a3903d69948f46727e2cc8024a99347a5f207a0d0f7059f892d675e801c22d42af2661108fc0be4d222302573b6eed818e45372c9beace3ce0eb087a6e33412c8cd5332220aee4b136589d72861295cf2b46b6f6098f52a22028a4a21337a781f25bc119287045e98733b5a3a7f5d9f20d1bac77f270e78b7b46baa3e17900768a3cdb74b76b0249e2d86162426177a16623420804cd220efbbfe8df31792d6df52b106689fcc68de07991251dfbffa1de2cd41c2bc287016248ca6b51395c767b8f4b9fb47829c1eef05738631b2ee3016fbf2f89082bf4578dba38456f39ade5dcfa891ba1cbbf50381df1dafcf83ad61dd3f0f1f06f95ba9896542d07e314ef9c608329ad5050e0811fde57abd024717f45eeae06ea10e1c16048c2a9077ee1c31a5ced9af3c02164982dcf961c26aa18bcbedbd16eec6063d45adc7867ac1064a961748fd6175fadfce9173993fb01de01872280e3aae069aebed992a2a91b6acb6b63d28416928b560c873968b60ff266b24e1befc7ce1534637e1160e00e1d28863f9df8d90af7d4550586715415a782b128ad28bb9be1154004aead99303e709d9c5df337772c5a7f0d531f2a87c9a7b7a81ae278917b46e243ea63e572ddccae2478686380b4d312494a273fcb188fb63a745313803be95b23efe5c774e1c236748c5df1aff0b72a7e06ff065434f97226a0b19f276358a1f64195e3301075c00e12c284a86a24109349eb49e6e8114e0e635301bdf87760618e8eee209f798e9ee8b2a061deaa28e73cf7e6e3f778fdf289b2ff5474d08ec38eab6124215fe838cd6e7ba3edf6f5fd18ded3796af387a2d31b8ae3530ae08c99802bacfb2ff309ee909039a508f4cfd02327a38a1934a77aad487f53b8ae46fe9d3efe13a9d240988b14be260961e711bd0ba0a61a8933b2af54ca3e18bd5dabe5d40c7714b43b7aca966237f93253451697c78edb06c303e3c42b71f16d79b22fbb805591c540dea2b904562f551d18f47ceb3c96c53c7956bb8e1442803a01e34ec4931c9dab3a3818ee6a5f15ffcbe94f9dda7d67160cd8b0c6d0d8615ed531ac99f143d3e76d341329985520bb2ebd19823e966ce881e084bc093f2a4ed505fe523dc7de2348cf11fea9aa989cab5b31065d2987485eb055e6b892b659ae523e5eedff01c0524a9f013c9837f6058c7da7125b9fc52e83544857857880d7857b6fab18ec3f573f2832dd08af26fea65279f4a56934f64e7141379304ef2987eefd130e7a8d3ab0a0a80c2c64ed6f13317729b039b2b31a865d8660f25174a86d7c38cb0ead86123af9b6e163355192b69710e65db75d54a36d0a9765d655850aa1ad33ddd223044d728c12a405327ff5f4614249e17deaa804d5757d624a904b866cb83dff197aa627d7f6e1950e3d9388ce8db40395bb36959dd8afffdf3048ded3a8f3a659df1a2584297a053bc18fc64b78ee611ea3d5348803d4dc04c6cecdee635b624aa42f8274a93ca8aa9d12f93f1e562bd644291b6c1a7ad367a67f85703ca4e5e2f25064d8319ba4e452c47862f9248a4e150b2ca0090e9b9a494c5321c8950df4f38b13e20d04cb706e55fc054695cb449e4239ac1a41fb554660c786c3fea1044c901b68c906b59c1888f4b775d8c22d0095c14dc9d9ea6495fd62a5336876a05c50b0d3bcac97bd111826f90acf87248705c9ab2ee6e9356627a92ee17b0511be97ab5dc522679c211ec4b5133338d5af810f37f70783257e753e529c36dfedc90393c019db27854925587fb5e20db578b2360846c0c46297612d50cf919776d0139f64f2fed231631f3661c7fbc0d7f810dd170f2779c31c700cd30cbdb3fb53dd0d7c021603af59a25a5d873e5cf10a9dc87bd9480e0744266f1fb2303d5e27eddf21127e4171c33b5567002a8828752fec3562c22700928205595db0f9acfaa39add45a17c7c44ed605021f77f7e2cb21762f29fd84ebb7bd6f85b8ec6b1bee8faf25be94739002ac0e23f816292ba536ca95c790e8669b62f9ab6752a2475b111f32a7a54faea051d4360be7d6d20a428f51f7783cbf585fe6d74a626f350d2d80b1f40b2790a2f115e2364f9bc8cb6aeb6dcb61c06c6cc60dcc7d1d47b955093c1ea40020e5d6413c3784ba338aab81b0ec70413670095403dba21df62844860e6878a7d423004e6d08706f4f68f446f46070f6c21568370a3260853df40e2817b3138933e38279f4cc46c772d0935b8d31dd105e70bb465c6169f780cd1e28b78d5d2ae464b9479f39dc224dd98cdb447728168809d2c9770fd000f9890e0eaa29078554597f27ae75f038332b2803a4da4cc242a8fe9c4ab8bf54d593d652f06b55e661ac028eb187275494fbde450050de4710cf6a33eee4eb89b8f000dcdb5a4d944f15d11881c5d7082d30be664281c37b8bf2a31d15062b8019c530a6241a220c58a529c7397a3298e8ea848f539e1ae3a5efc75e1f980e804add7ef41e1912e1cee7557996ea0d71c31fe5ca990b919ed8a247507aa71d72a88119247f9a7bb072c999a0fc069812dce4697b4c24946ec341b3f4a47fc74fc1f468b94a34e4282226021534f8a6a503c138c3024149005d7f7a7cc98c98abe447627c57143f76cab0fb7a421e12ea19f2e696fe236b04679d9916a4c5a0148daf3a7938d6cf01be0b7a9d43e1259d22349cdc3d9108ebd4b1e33cdc9b2e12aa291abd5066d2df18e5446f0c74dba6ddb0566fab371d0af0606b444c5a76a5ae02359bdd897911b8f9de3743474c8e19c997ec9a6189184c847ef102ae11cc868d32246b960f43518995217836ca398fc70a4a039688e2ee6f6ed0a91ba3c72fd34d62e2bd7d9ba18c7d9255380c328c501d007c278671eb54339a0026899995bff021ab258022a42a0c150d6826198884ef7e81d3f017c394c8bd3d835c08b6d74a870bed64ff70d0d6c7d8c1a9f379be50e2a97c8c2dca5add877ce023958f60c4f56b69196cfbbfe200bfee2907d91764e8520a0102a2ecb471d147d63e2b88d23bc4ff91c64e00c34338f10ee7ab1bca09bbe38462c83b5cecea4485ec7c8e2a91bbc7b0e025ab692d0c5d5775cea7afde323bd01d01bfcf2cd3efaa91241dd3eff048e9a03c0d0cdbdd7557ce18d02432c18b4d2a4858be9debe6fca050a7e6ef532321cc75d53afbb31fe8ccd82182dc1274c0ffb91cbfcb42c1e2d1c2bd9b80850994247d5dabe2005483caab6f9a2f339048ab2f14f1a76176d976a05b0b6847eb6685843b86fe6f6852f29d39b22e7a817faa4b1b64e69b0e24abf30ec5cee71c2b26e26d310c7e75d0fefa6c1f4c4503ccbf31a57ec0f10caac0f1003457a92f0caa37a303456e689f87b3a24f870f84ee812aa5c001827cae83affa96a2ca36dabea3921842d90c236f031010e96712c3a61d83c1251ee45394273b91b1eb386b928800db7106b340a6675e372495ba1cb7e8f8ef7f664c41f529eeab88e7b65253b8a9c44969e7ad1933725d5c8a4574a96d6b09b29c6bacfba1364a4ec2f2af9ccfea626d5bd5e66d7890bb37cf91593f1ef1c14c001d3097a2dbc974ee0f630a84961234fdb740b10558ff1c064c8c3d75b25a3334e23807cbd47218d1363b94178623671c949936cb3ea6b186ed2eb7c6eada9b073b38ec3b82ef38e1b1e3d91b42441fbfa7714533da38293c336463f36572d14e1d503f52480e35bd4e0e2102ab20f3a5f55e009167e33511bea171bf1b51ef69eb206d4fe8de2a0dfbcfe774bf49a47e4f76a5a8a358d0b8ef83eea33d52f090fc08bcafcf47fa40e8334bde485645e3fad313fe32f7106a6248757217589d5859df46e5665c552a2048cddca7a55e7f533e70ed795ebdd40af655fa148ce1f929a9f042c5bc34a56c376c6a3b776c86edd658831a2cb06e477a376275bcba612330563292d65ba42c64a3918b350e0e71cc1d1d45fa71aa38a6c8c7f4188cc57e7aa60d105560f53d9425157222675e87b428ede69389c02cd8ed71796ca67b2191916ca7b1624cca69b0ca017474804a9752e54f808f7cf8886f812765800b60a470e8e0909fba0f64e108757d7985ed561ebd58b9f8eb613cc200f83d30a5d7bc1cbfe487f60c27e7af6492dc0b6687f5d485fa30598c1de69d8ee33bfa2bd7d1f085c4fe78cea4bdbc96e5cc87ae83eff606d96831b0c74e1828b225474e260cee22f6045b1621ea59744a7c38af2c88c54cfd54e44fecab400a7c1a1dd9735de6c05f8a1777b0ec8035040db863f81bddce1fa9dc046bee9166e136abb67b98fdd0c1c0027ad9e68e2d74735b3d83f0402bd537b9d24ee1836a7cec8a2d23c10fb4854001de80aba8a5c9fcd8b31e9ff22802490247017cd65afec29a2a32819e3f48fda5ab4a4c67b93a12a6de8d08aed86f101bb5b480ebe48c513972f49ba24625d41199112ac12a76c30c6a8e5fd661eb40f8cac01fb5ab860422ea5f47253aecc83f46b843ce8b6c5c10fd5485dbaf92c1695e330c3e4f843777dcca7c3bf1d45575d61e455679c7e0168bdb41e7a8e678d633930195c1f3e5f440cc978813a3a0ecaf2ce5b81e66ea97f83896c1ec33a562f73444feb12c0ceda5f4224a456d3316239e3651ae0c779dab2ed5cb57b64678d3b2a615ade37b5483339a2e195f878c6e1727c54723782991a8d2f8b4bd498ddcd6a94889f9dc06cd4c74960a325af3e56ea676a11c9a2e19e739e67d4978011ec668b94dc1215a4f7356af30c5145c1114f404dad1a159b2483cb9b058f93dc7da3b1149bde5ff7874da58a6a2e81b761080674af75a4bb5497886b29bcf96001dd9f7ca15181a0a515b4dde3615a76861a5d3fd1f58a315ad7341e0fd4c5512e8e56477a44e77cdac04dece34adb6f36eaa23d812a19afeeefb57a8b58dfcd9b0551af6e50c1054d63c87db5d64902d6aab24c9a0987954e44d4e2409884e63f9dca5606a2527b52ce391537305e25cbd38242085ed22e3e187e0ec143256c9b4a620dba48c4132a8b0189f69cce600793ba1c4b76a08ef5b62bfda1e3e2de14187aa0c44e82a921ed58dc010faf4c7ef49f58b4252f914d93f169c4f95a71271cefe503c9413ed246c660c0d8a8cc456a075c2e2badad6d93ec12930f31e3476b3e05a5dbfb8280a4803f45d2976f4576c0ed7d1425a0e9f034511719c1b2415a0654b9dffbb061c7216bb77cc23427f34707930aa1624853dbff164b492bdde7c900eabe4f063232cc4dc75cd4ef5a7761ce0c44def3f3505ee73429f7922fea77a856c651e4c8b810d2a30713499d8e1ed95c8b12e8991dd3aa1c81ed7afaa849690b32dbb4a764d861418f375588f6b8fe2203a86f5f7453f4cb3acf057a41590d053453451c497cecf07027d99a2bdbdbcfd75f3771b414794ea5d05b4e7e6223f4e5b9758a9ee87d8b21b65a29c671a3bcf0a11602d55ed38d73227344a8ef4e2d249c65981b9cf12ed15b6c0d038bfe938dc6f284f1a910df0b98063e6b58ca6495966b9f305bed64eb419f1632735abaa0e3890d1d2221c0dfcec9458d872b09bcd8b302323d150707877e9e30b02f0136fb542df651daa5a3380d81a7cf4355cf20f778a5cf2f9b21a0454b7dfd77184f113a3d63eac446abcbd487a0321c488c5b107b0d8fedf69965ccb4a3d9cee7b9855d4b1cbdd9698392f5b57cfe7b9882cf8ae76bd7fe0855f46ebfc88e4c7a10b6a89ef312364fb166a3891d6438be2f5ea019034d8fdcd207772223ac7046f2756119c74507ad0e03b99d05d2d17a71fd071b30905290af309940bd68acb7bb526b7fd5eae4f39da55abfad19cdaa7956fc029dd020d426d00267c42ee9db9ededb3ef4b9bdafdfecc76847c0099996f202791192d7c8b6d16ca46c657ce139896fc60f42f9398f8c5cb697998efb67671e94b9aeffbd93437f71d12fa37ac15475c33a9f618cd8844949e51fc2b7b39989b83376d1563e4596bc5741f101b281fb4deda680d85f234f3bd2e3facd6fbd05da63e536f61dcffe8c4222248979062b2495f1062b4ae6c09ed0b45ee74085a1587bf894cf1284d22135acadedd180ff0f0397f649aae73d927c71f198c5a80b554d9df13a14f64b90073575abddb34625b9acc55b33a5a87412eae848031b0d9e8d438e1017ee9c54903129f23612c81f22bf17d00c87ef960c1369178f32221c47c200c84b86acfc17c1727cad08ae6836a78fd17c5b7f1eee8cb68fd9d4b948f319b597400b792ed1d661d31ece2983002872c7831d253e53ff6bbef9d136b636fb5a94acff2917ff1a0ad4a4f2920b4b1bc6e240ab96fe2b98627755add79b68aa67cb131c1573207815552a8fe23aeb35e1530e96726fce34b91823a9eabe2c32cfaf646eea8e2c1c0e4c34ea344b85d053e5067afb79e389e164d80f2de9afe2c2e2f76de6275fa416e4119510159ae76a9aaea571c6ff59c879e8b4b46065f83f0d93ed45fd8862f4b87d0607e3fdfe8f1fad789b5d53f03872b6afac423f2e777dcff435e6418afada84fe4fb83300c5899ca1cece626f12a403384ce10890a6de03778c06f734cdb0a6892fb1176044845c2fba278e5287005907e90733486e7a14ba7743f450f0995d70adbdcd8cf4d23e89095739c17740963374888a7172975590f8858947bb9cb0ef1b074fd2f7e2191c431b7ea58138078e56891c70aa046da398bb8e72bb150bd6509e2db32457c421d6e1bcb04e80720ae1c30b48a1d9a8a50186e24767943acde214d43f4cd733da451a2de0918e8fc7d12b12f6a2a6e3c80ae77e536cb801e220c1e44c7c345886b5f17fc347b6c4834d73f315e20c8e2543399471886fe13810c7aa6642ede7c37fd6875c88feed6c73a98d223df88e4e6f3a3d4f013d8ab44a9eba5cd40c8b909010234c9ff53c6629c4186cce9821f874be93ac994b1c9f1ac1aba5cf9697396ab5ae5b5f78e9b5e9d14f763bb31a081dadcdbeddf5f6690966859c4ff2c7b5f65cb4b1cbcb2e609d17ee31e0b9eca91e243edd90b95a01c985a48e7f34e6dfd0f18b153e9790925d4c8a5d56ed702fe70a518001a2aff781d8fc7dadc986f09aad901121f79ed3b8c527cdae38da5de1c7dd8eb257a34a217db515b053630515bf0d6e8a5bbd0d44d40cd7c67e8df1ce5c00e5c6b713219d9fd44e85f115ca26d133cdee94d370ee1fb7b44317a3d5428261636b5b7ea38461df2d142c5f257db5a8441127fa80f6b7af7f687af3dc9696c97fd6a1eb4fa534f2eecd7e6eb3a36f31052b6df1935ee6e2278a2838430493a3e86df70b88895e2cca7fcac6ed6c851acdc98f93eec68305096b02b1323096719d5cc0b7ec938f2775e45c1ff3c1d4d8c3b8147e376bf2320b364217ab37c5c9f91a6c97e791a016f53dcb2613b96cbf2a26d9a8baa913cf85f91db5edf880023e1c6466ab0fb96a1b03f32e66320345a45227278473d52286da0ad7b095758674c6dc491f1205796e50f971516ed1984fb216f3a821694ac138f0e90970c174e3afc3836868d4d616edc764719bde5005e32394773c714f1f0efb2e240be797aac96d2f556c936c1063931db97b32ee3c7c18bb6dcef65db0c0f7fdc129ebfd97f37f7588022a0b47c1261a0401484644dfd876afc59aedc7c2f808ca6e076a7e2755f104373c6e69e1958d371668664224d4e85d2ac68dc791a489f6bcb7dec20ac5766b97246cecf55af7e48b366c2bc2e9b9dae1af2bfc9779ff4cd1365e238e37a2138207c3da46f8a2cab105836a55eeb0515649a6fdca729023ce21e9baa7bfcfa9d0a5197af9c03c77120ff612d22486b1ff3fe88e6fa17ed57ae62698ed7ed6946f8ccb9b424e833088ef4af332e6d02dd1f0e25f2e70631d5900fbffa35aa1be6ac675ab61055de26fbf93aa14edd18e2367fe1727b67cf77b1811fbf60a593cd3ed4d8bd0eaed7c3c6e1ab5940bb5a116c83ad35abc65da61951f7b8076d37c15c4ac1fd795248b531da42b161648476b0315c8c8854ae3ad5de2a2ab77ac5359c7582ae2de81fa6a640cf764378a2a65fde472b560d7e9e3e8c689708315bf1c93715734d7b4924b7c7d319f845f3d67049cf8cb9cbed6298207d226d8463a692699b2647b14e1a0afd0ccb2761091678b0d033d29bf4652bfe6e59dc55deb5763eeb65ab9db8068788314b49790aca1d8ae3c6ea28d20b0593de44c64a848db6b9235336e3bc54fbf56e8017521a4107488c5cd2c1fe32e111d11516d99f5913b3145b0821788d28d6bc7499d25a2cd2136c473d882e131692bb4aec2deb1cbe1a3590f978b7a1cce922da0c46398e16dc77dd0206ff31788f5a691e12a16240dea979a2de0ce046163e1ef24ce9b4c39b63dda36650cc3ae5f5ebe05ab658f6847a520c80fb2af3a3a0651c8e204b8c171e702f6d46d6ac804fb0bab3eef16f1984a1e749762de7cc68954f9cef24e5e18470909f26197ee9e7e532ecc0a36a52f83f372dfdbb25a86e5e7eb7a3c083ca57694e5ec3f1f17d24f89658c7f002b8bd8e61c5c41b83ca2cc841a75f479ef8786451e48d31bb81c50e815a935fb876cf17c2b8023a8ea0ba56530c90712e0f9f2155820a69035e95c61f81e298796dd41cbd5a0ee3aaa77e90f385e78c8888f808d56ac1ce005cd6c6a821104b15331cf2626fc4402142001ec5c56fe528d45b711cf0909b7e5fa024e91aa98cfcf61e8a44440d819cab186f2e68c613793e863771ee6555b6d1f3338e6b2c353f9e9eeea876f091d12788690d408d22cb0eb4e008a242106f0645ec30249ac87c4cd074d1dae85e071faebcfff2ba0ec98b45b7ea643d4adfe2fc543c68195c616c3c3d4cb45c4eea5c91fb5e63421716052720d1acd5b56f0eaedd6a56ec415a5d96caf8e3619507a69e0e5a1806fe9378ec9305686c014fae116eb706b181e1bd5e646a81496b2ff2176133b3d0f649c478d3bb4a7b5a99da4d086f182caedeb8a70a300f5ce0b1d6bc64241df8e51451e3a49f22758aae77bdb51d161016fede5865dc9ff78af356c4e8fdeffa48ec479d6da9af836742499839e79905a2bca9bfe1a627f0fa5ee03f16cc14a197fd8e3f8b10b8f9b491a4167e9731f3919b4bd09a7bf8c3670141e5e7bb93e9460dded4d90a694da646b5c75829d961d84587cd1f832a1a40096c20be21eed015d56100fa8e8233b1ed27acc33210a8fdbda8f94db09870a849bf85d68bdb4daa4f9d789bed3176e2f3530a6aa2b308fb16a9d5424188aa4ed043564df3cc61a2adbb63617181176892e8553df7420a8226b21a39ffb5890634490a8a8ebb97fe6ec19de9d21a7992a947b10df01a8410e5875955ad216f0eb748fd30ee11c6a344f26f2e7b2ed2af325bc34439a3102eb25bbda3ce43696018081f0cee3ba78f3a5d63c114931b122ad537351eee942f2f4d3a1961c2bbeed57fd325dcbe80a956114aedcfc90ccd5cfa71986bf933a3a2027c3fc02082e4e4415c2864bf973b1398b14f81072348ee23008b15ce618c54e4862f13caf3708011695847658656e59abfd180855e26dbe498e067a9606016c59109f29760ea6a5a2ec9fa855d7ee13494a0297b012919393cb405a2595bcfba036805863e9f15571af50fc42b8a38ac1cb8f4dd258cc49771a4db6cf5a5c0b530195950fa09fc3e3e6e0f2f1d655e067cb65caa359ff2a19b3f5026d3ea2ef8ebb251d962849c260f90c4775b201c6156ee6618bf7fff483b99e1e8a045614b3f167456055006b6b8f0718b2989b7d420c85d198634e10271640a4536dbda24967e699ccf5df861f724761b3e87ad7f15d3e8cad34950f0aa5610c03bb293afb1113d8143780a2f24bf57ccd8a4ec3c5f75eb30314a2fd59730e9bd3f2681e4b38194a99fe884ba858c52afdac26d61f24106d7ad5476567debdd3c3f911f6764dd81e4d37d4e5524e6bcbfad92a3ee6063a3ca61401ffb630bc62dfd9dbce33d5faca2dba9660d74c975fac79cce9872be2c28927489eb7cb23b31a8ad9fd104b4cc07fbe94a85a185609234dd23d63fecb81a1ab8dd28effa6a0378d96c10017f4179392290ecdaf010fa28c0b0d62e743c84f03e3601fbe09e6b2d004316fa65e383f8ed907a9112a0067000e016f9695c80c01b9cfa8112297411c117eb445306b3ea66d3e755eb969c6765019579a2165bb110b016274506e5eb8d35e7adac7fdfa6aa8adee70a01bdd31b04c82f401bda0f7cc099b2f69236719f6bc6fffe35cb81c2cd87895ebdc97c26adbacd40aa2d9b2917f57a24a7df2e9b64a4979f0d51eb812fa16461d8ecc402e043f05bacdd70656e247021cb2508423cab8657ba60ebc583b2192f3c7ed4389e0e4799f84ff43c49cbf4d939cd6e2354a79f38a7c6abad7252e8078dc18f5a49d7560ea75437286ed9523f9d848dc2dab58413c782fc7aeb61c243b2bcedcd71d075009f92e6c304a2eb744ba84ebdac1a5dc92bce319e77fd3e6113458f0143262523a67588ea4cef6a2788e9dc19dda2625e4bffba3afb72c877479d1ae61213d749045b33a51cd8026c2ffba010e3d4370d49f02d0d5b4f0bb80ddee5c32f4abb67806dda1ae99aef3e0586bb439968e47f28f62385c9aa30065f0ecb1689379f4d349a97edb9b06ae6bc40240d574d4432a4c5737ca2e8b1b55389f19e8ff28618b25c9ee62efb142aa3d29c4c9edc5460c8ee6332a04d2342fe089a0270227d596a58cbf6a794543e9d0a76a8f8a6aefdef019932d4856328fcab6a65607dc0017e51b434b8fe5a0fc1d449dd3bdb84123ddaa9a3247721f36c67baac6fe53227a100454c196bc1d30a32b53cd254b900390b90743254b77cbb0f910615cf32297e121b08f4c44a8608f649bd05d5453d75c7909b87ea9eae5a49a1e4eb6c6ac66a0888c853f46ab80f105fa034bd46d1b126c5a0c642a69781fa1791a76586ff06b25d64cf265f066d0ac0daf05bfa8f7c65124dbcba4ecdb29da3f2979666d26e09871685e23272cb047d60616890233639f6c40a000db8dac772851ab08146c9e088d3a90ea5096bc4b8c9c5d6eff103ce1afe28c95661d312ff774903e3b5ba35f28315a04f2d6159230670cc7a12a8cd531c2dc5fb85f0b2a0cb70cbc53c5aaad5e832d33b157a31749d69f9cb9411c9530619ea1e952d09f9b6410adaf5c3a8c170e61700a9efb10df9d2687b2cdf3bc4c5537bcc13b0439202929084d160855251dd05730b0e688811d95a569fc4b286e73034341e4b392a3c12c755f4f579fa90d53d4e9809dbae08659c8f9b0b979ada3aa6a37b192215c0f387b6007849eaf3b55352db115442dd87d393051766e2d28c3d71b857c14238d4352db14a2a29bcfa8819db0029fe0e48adb9c4001b3ab981892699f30cfac7bd983253a3fc1f287930d66e1b1663ba57904e964e34f7d3db7a67fe644cc3d6ec57c9f81c0c676c29f05daaa1a0db43fc5306415e8f88a5408ce18960292e74587e5bbdc4cc03d289a6741be40b0b7bc23d648f428002ca3e9e8a9b262439fb3ad792969db31fe897f3ec893eef2e5695de2263fec4a9980bdbf5290cb641d6da7845c6e2693f9aa49e769ee82a84098c55f1c3da11c4f3a171d3998e1814e1b5aa2998867b4132406aaef42f2dcd6ff88a1b362e8eacd10a9f855531ef9c001225ef8060fa4f58deb1c001a1b3f184e3e6bb986a8f56102752c073722f6f7ba68053cc8c9223592f19f6d8091be0301a11a017e18d57ba773ee51d9766dfa0892935d217c69699f5454328678b842222fb0fb812bfc50c45fc59080f140c0e900de5f7eabda4876141331f0eb1398b99af71fb41a09889147a9ec60482f5ca4066271291e9b39b1a939a545880ac250c0b97350f5651da47c5318c6395f14eed8095d89317ad4d52163338d3c6a5f7718399ac3769a4f68dd1f97cd8543ffc0d8c8374a85f288edea1cf9c814b4d087678d0b8d01cb34d8b18690b0f9381cf9155a31b1655f7923fb14873cf9f82d54d776b901e245912629ecda1b2372af57559df3620863df97efec208cbd05318f02441262ba594c24b6c1aca1804800ab6dcfac60fd16627b6c718de6550d422ac676535a3fe3189dbde3fb4cc2f385bebb863b847a557076e0f379b803776d137e38b58ff79e6e2c1215f281a2fefaf03cf7cac0ce1f337bd395aa8d7f1ca5dd33ab9ceb0fc856dda193dbeb929edaeb79d381bf2f5803803874dc766295bff0170c9f2322e24aeee973639e33d3bfa2e27a459aae4ef8bd21c4c162c87c92b3930559d7e79985debaf0e7850d6114cb25428602168524229ca3cfbad5725a92173cb9ae8e862a30132208a4fd86e65db920b39d339532159f94a8bd1f43e99ea8f45384f9ce974176da571e2bec328be22748fb54fb4ddf501d9937f40b79dcfc4dc859544081622d864110664f247755cd0d4c75ed1c908349477d67f233c60bdeb984216ac25a7a7e7ef096c8e7ab898a5b45561eec047b388b95333a525d3c1b5d3144146ab5e30e19dd40855a500dbd08b5cfb28792b951f7e5447621d8275b360b9eef59ade231a2c4473cf1bf59bc3ac8df9baff76e80029ee0a8a12752d525018520d845d75adf2fe3f1b036d7cd60b9278579a61b0c92be24e6777fd8ba32e86b9128094b5a5a20200c96ff637ae5fe1b35478f43a54b96dfaa4e8153a182e26b429c8a83181e16d582582f4f5f8fd61e950ec54233546bd28c09254f3543873a2b31f9050683ca8db18b3c96f48c48c12674e9979edae596f3382223e94003c7d5f06bb14503ac4b93793a433ef8163314f73c57d829626b1dcdb43ca84b94a079dd2fcf72a0bf565e0fdd4a586db11923bee45e568c5ac259449f3cd598aeb4ec6057eb3edb0ee7553cea0b6ea946bc874d6c180c821e208a26303b7f49f71810c65edc3f721b9928b85a8d4da0c62ae4718cc64b79aaf6f836c71490754ce89d65c8f0a60becaa490d623e563f31a551b3b155ed009d599f8cc66615f3a00295fb781c554d6df06f717173efd8c0248c325cabd378a72e11ff1debb383c6868f1bcb5f8dab7a84af34dd1f6c63ccce4f7083d03f7a4909ac55e40725e781b754bffa9cb6212358a7264fcc301666ad904fd18e238248054859f6c782c0ee82c0aedd52357bf52ff276e940c108a2dce6a0fb8fe64cf4359ac669ccb788c65a9f12f59f7caabc4dc96eb3e1b2e1b88e409b814fffbb1b55da36ce17db2d53e1ae72569bcd53139e8423e7b8bfba590c3a69d999e556ae4022625be77c20f29de8d014d34863b2e69d4047b858735de1b4d2fee8cdb2ec5f75a7d5606ce85f30ad368adeeb29cdcd06699bdcca966eda541cee464c06afddd18c990a493c569bf5fad2a76d567555ded3a88a6fc561280e2e6101fee9c15b68dc835f467180bc1f4633201a2a8abd80db0736e3c3f879d5e121ddbb0d18ce70d3cfdb91dde5cc162a7c5ff274dba0f2b2b8aeebf0dd10ea45bbb60013f2e257bc37cb9894a734e48f048f178a562a84afc8421761a83ad4b945a0d63c27a37ffca54960f7c349ec369a1f36edee47609c479d83371fc5034e6ede8beea1fa56997f6b4fec1001ae303b6389e7a9c676b448fff0eef32b9b78dd9f6d1cbc2e5188cfb063292c39051724ba7da77929300772be1219daf4b6834d264aa370052060ecb70521aa7f0e78c252eae1792df34a8be250c4426b5df3e8d4fe1b21b00ae2203c8959f2c942b1846d7e3cf849a9c59bd4db625b8003db2ff1ce70ab8c81b4c09bfc80e10492eb2cc0990cd67c139e576d84a840ead85bbafc15c1380c2575c4bcf938595298089e254f954f1ec81bb30bed9061304166529dc63be4b3cebfb92f3836a200ed8ceefc7422e361fada9484a5bd9c62eae9cc971495e9c9ff62ecc4f16fc05bcd7c3480dfffc3d444f5e0a57887de95e8f84df37d1adc4ce10c5a818ee764d0dbcdde9533d70bec2837e74a30e2b04565e27e11702de60ee2ace7253a92ca1b51697dfb3f20106e4b2b07e8e3d7b1d8e5772a3eeca0e948ef0702347077c716f01e235354a8b1309529c46eafba9c13f7114b772347a98e26acccbeae88a7456797cf40836588f45c3d416e5812139ba9e099c8481e63240f440ae34e30c25c1264b4ea9f3df9ff0632bd61acba0e9f67b5c9e4d0cb35683ba74dec85e9a5c1bf8df707abe74fa6bb247b5960fa9664604613a1cba7496a51a083e4d0fdab1c3c83baf73d726b2153d308729188cd1405be34b71449b71b786a95e9f206b5c1d058e9f8695c963e228ef35eb4af6b5352f8164b7f3952bb7fbb6f47de32e069b6951e880e151b49ccd62769af05ff8368ba5dbd94baeb743bae6bcf7ca8e3d07b29bfd9542a1f1c1bc2d890ff5218c031576759ef062f777f75628d8f8501ebbad751508e43006ba08ef7911c8c11054b3e967ad7f61bb4b7eda060691b835763a63b88a2df89266d1077b8cc7f72cbfaf40ba1af231668a601cfad63350ba7a5a8237c6d59e4a4b9062843bf3f94d5a70d4df2d06ece2546d4703d15fa8dea4c9aca74136ef62eda42fa7c57031bdec6d1698e9ecb5bf9db77a54ad9e04251bb47bad35138d3370e743b19af3c70ada5197ef10eeafddea501e04526bfae9ba42ce5535bc7c77a7c8b7d0ad5e632831d92fae3b45b6dc6c1f8e3b2df35366143343a363c88cb3048caf80e341e10d891bb5252e4545cacca7071988c8385e5a1ffd0c9b54f2735a80565bd57eebc9fdc8958b4cd414e54000039cc808bab446f7a34086c019fbb5e4e76936cf89349f18f8c30f9bc03771767ef8c24138946f9f72f3563e4ccd4623b7176b95f437907a27bb95e98b68a4cb484c801d46775f493853cb6d9e7fdefd13e3e44993df96bb1dc5b7bc085490f3d45d05fee396129853c61dd77d478eb65fd4dd2e2e069b320d6db6845426edffce82244a0fe00febd18e82d9492c82616c4ccf953f45663c68a8caf1406a205df0b635b239f00562153fe9bba80167a244b46dc00fc5481557a70ec0ff8c210378ace8920416a0298be1e5a821ab000f249747694373714672d6d8e5cb403a11df7fdb6e906db306dc87c29f9d757e927d170deebb9de0f18cf5d0596edbcb85e11abf08e5b20f9c00a1b47cc4aa742f40fb885a91725de17281f5d7c82ee326ba886ade5f010f943b5eea141f29bbc359686a8eb3f06ff4edf81f7455dcbc218207272ec1cc7edaef85325e4b945149f70ded430ac08fce8b4d40dc0dac2627efc8d14a0132bd6c5ad3628dd30e6056aad384104f155ee94a0cc07a522545b8fc79e10de30b01b060b93718671b647e94773a894c689efe230fdf7bae5859bc9f532c6c38f73decfe7a0276fc12ace3636c0eb1adcd329b50afb51c24192b031b821835b2e686e422b25a54b1b72a399a1720b27f1e7d1522fee1cada382dc9c1faf308209710f3a8bf544924f75636524245ccec97e96af5ebd9fcaae7f0059864dd9ab6b2b7528389fb00ff09e9cab92223190693984eac3d38817040a17e108e57dcd60ecd5e2ddb488ce9ac3ab95204379b811d1b8a12155da4d22cbf2881475b9b438f699bca71c5b8fbe1c94e78ef82c1bc4409a104debdf71166547e49376600eab44e93d437afe65195997ddad56879f212bbb8397edeea03c7faebe65c87066b55405329ea797cbe88b4ca2833dbe96fa5137e31b47f38b72ac0fcc2308fbd2b588dfdcc0999a0d07f0ad127d9b84e8ff574b6e3593042d2f49ed904e7ba67b45b732ab4c6dc40f18442622e1e81858f2fe9b490751c81fe3241fc0259515bcb57793dee89339caf82ebfa6123fca946dabf7f5c118b0b650ca09955f7327b88cf99b3703e86107985d54d44cfa152e8c9e0916c1847573d9ee33ba02402df410da97f09140939d61e27856f05b6bd314401cffdd889ae450936428e488ce1c54583e24ef715c1c577e49c82b5f017e4e57033b3a95d3c65acac6e5b545e5f924326993855d842a286e520759fbc75e2b9678c3f3fd9497b2364c64670848140fd06b7201f376216612725b17ff5e91481cc3c3a9eb04770a76c29622959845298d09163e7f8a0858e88ca33aac8f2b18118a29793f344407c3fa10b414f20e4ddcc351cee0e78b7a140dabe320aa52963028226d79c8c0fb3b3b4fb20bff0a11200484c675cbbbe05b14d7dd3bf802d03fcd6f2fa5141df18591bfa2b98dd64bfb37b3c7aba257fa7df4a69257e35f69d2e1d0f6a2124f76ece02bd009efe870e04c1e4d033c59528ad4b533c2648a238b7a7b1dc8de9f05ea2bde344fe56aa1f8b1d3ef3511a39c64ed1bdc9fbf77b6045d9473e95c539d3a10e3de156635037b4b68a7dea0260016c379e4ffac60cf82fa256ba9cc7cb786b9993b5cfef4414926b845699d127d3e787abc1c694f947c668f3dcf4c0082cabba060934875ec4e675fdc8bf42cb9bd9c2c3a42dae53a5deb569af03bdec4dce2fc1b18f7c323e78d2f3c879751ec1ac21418a779c61caa259f09c132be604b97ba39e9e80b5eefa3160784c9ded268ee9e586872515df2e1864693a0cb251cd30630fb1d77eeb14072af0526ccbe387480053940a95f3f4b6a232ee3760dc397dc146d03748dad4161c67e0e3d1c123d6684464dbe59181af9d22efe145ef9cb9f722c271ee30a5c987ff95b5b87ebab0ed100b8d0ba83c37df4d6225bb9642224d4cfa211149cf5be32794d3c3c379c2e896a581d8364c80634449753ba980f608c203e703a7a65f721eaa487b5cf11cd6f294ff91b633a08e12404912f03af971d1cdb381ce1fd102414b52a235b495dfb7631644da524d068908d6eafcfa73f26086caacd2591fe006370ea5501dac27ff325a78067b9ee59652a05e8904decb7219ceba2744b0546ada587290363c4b5af950d4d64a72478f5356725227805e50cc7b714cf8f43e40b03ba7f867069482d164b54f3099e671a5803c881eccad2ae8aea6280b174863e271f77e94e1ffea81811ad5e60e8b87671f592a95b3264e94415ff66e8ab22bd2120b15a10bd99f8e0d74852e41dff820bd68635f84a004346944e99f9ca97f5cfe8fe1d949824b8c8918b57614c15e0f71fd9d84e5308950ce52cc19857dd16b81b3bc962db9cbbd8ea87e39e7fd59bd78e947eab77e0d16c58d3fb2530d622651b8ecefad13c7ad5bb0443720d7eef9ea65c763d1bc7886029f926071eb1debacbfb0fb551ab1d704cc82d957683c2d3d57d94c7752caf77632968b7e20ebd3fc56510657d630a227f0c9202af2870e71c231e252ecc2cde1f98f4110d6af64d4e1a88552be73e68f6283ca1a2a817b3149eed85818e499a65c19ab244bc7eb61db5ac35ed55faeca0b01664efd1f2da213274535bc7e41e1254f5a50824b12bb613b27266dabe3bd62e2145b5da0cd726d122a6281b1ca86fe9df66483ea1083573ee3ed4121837d4cc85f0eee2c02afc46e7be8eda706d3467c7fe6ee7fe5facaa9e6dd1249cfc92fd403a9cd43b9944656afb643cd54663281c71eaab46e2c63df9c0619d80e156f885ff9b02b676de154024d95345c770adcd7325468597b44d6b3d29bed4fafc002c7a987fd1bdb9febe59e350ce37610562d99286604b171ae985d20ff53c64a39831d93137cfc76810ca2c671715c09b2dfc52167240be4a6cdbc905ec95f8604149cbc9cf560f004c608306e2f90bc703be4d257c885bb7c6375a8a988431b1dde742064f0fc4b8d294c8b34844e383c1ca393acadf1c1da8ff9b13f4c70ed8208ee2c0670c1aed365ba0fce7d874fcc0addd9d74077e9d9cb230545ee35dacee2605b29a7f863bc58e0b2423a7b3a2326563210329a492cabc9f44406de4e8c14fb78d9059dbc286b6b27f01dbdc947caccee3675c19f54118d5ea0b98740e9102d2459c63811876d0a0ecd9bd55edaa60e4eecfbdef30a9ac33f952402a62c97dcb061d018c0fc6ee2760ca2eaadcdf6b397135c7875c47c36852076d607d4aac060812f601ac6f73dce3c7f50bb4aeb5369ebf65e14f43078de0dce84b270a743134db987b17710fc0d863a4791cee861a0a5568be977b1cf3b2e1eca312542df4324575f8c3e4661ed2b955bb7c48077d4952193496265740f6de6955e935cd67df798c2f77b645cb33ff297d90de4eee66384f8f5eaf5c761cde263c60619c1e1c09995d7799cc74689071abc4d310fc08f6d069cd4aa32e47beea8438d6b9aa9bdc100671c2e1b17e2014cbc782e2c7972bff99785bd2e4f2af6e6d7f46aaecc6958ddeabb52b4e93ca67fd2741af101cda966e83f822e29ec180c2bfb704a666fb9dde2ddbe8d389e98c3e3d360037860fce71598fd3444d133c21feddb993371f5f704d4ead8a116fbd09550382b62ffa1fa179b8b6eb1c9611f16a0bf4ec475aa9fb951c19c468f94fd1c2d3ec793bce76a50969ff8f39214de1f714633bbd8aced6b71034b95c38a640c51289794c4191499f9bf013e5aa9e9928b675e96ce2358b14abac50cde601ee9fdba355bc0d48900ded3bba6d8e761a5b36ab0b2480422889d0081a3adccf83cc621fbc5e110c2d2e9a5d9dab399a324c7d01ff7dac85933351e552b7b0fe2132b319b630f93e642aeb2af777627148aff3ebbf6dfebdd1985e91cdbe9a4b47bbc7e189cfd4a9de568d974d13b596f4b5c10a01b487e1191b8e742aa752ae89147256501e30918f7be67e03b4f4869c55817dd2358e438359b7cd22fd1affabd78518b91f3248e2d839ade3dcfaba45ab72519c5fcc6d7db4bee7840c1b2c23834c7d8079d42c4ff6b8b9291e0e5773b41b716bd6ea94ab8e8934eb81e9326737a06b320b1c98919f8654b0c6e2ce3b792f42465f4506e54900a654233b468ded6bcf7b99fe25754c35cb1c67dee159d9db365eda9fa979115b668008c15f3564401b4b74e082355a596b776ab5c14a7d998f844a48c8e1bf5406dddf8b56c6641dbf0cd68e7e98a2e8d2b829ee342ee65ae34c23b9d2823768fbd80024db4970abccdf91b0e92ae2fbeb2822633ee42dc7622e2ef9c7b0b60dcdd181e2271cef8e0a4a161c700b17c40fea711edd36ca33513d433f109c657d4b610be67f5b17ea714162dbf40e74576613a316bdc75f3572c0dc12fe3c7487249d00c5afaa4ad3d854ba763dabc807da78996e6585b9a6bcfe2956ee3691778ea9d6ee8027e309b066d67116d0c2eafcad749a4858c362aa0eb6d56a28aee9a2bdf22b401c6361d8d13818dbdb2e220ecddb361b622b3f1577fd50722b4f9523378249a4d5968bcf6214c9837991a576e07b556dedfe9d1e7613ee28e1edfd080c943e518582fcb90f41cc60e74a22953d67a042fb24b522db482529b6348645c622dda250b3506ce19c9f2cdb202a454db52f3f73be52026726147717f70b7d3872e4c945104eca84d4f652ac71e87c4b94470626784c6654fdd968dd81d472745d4720341d9307e436a92b29b1a419bf024b70700a0d2c1133c3911f081ba1bce9dd0b74499fc6da58e19165d5e452c8469aac1e2a2e5687b98e081f05e73122b7b4bac513d7ec8a940c648b44bba80076273189858549b283ab363d0eb9e8962462a24f1bbd96db00922744e9484f09aae326461e57da8679c14d41b1986f33682aa70d91efe6d0dd81b65d26000463b8c3429c8f93f0801d71ab1123611b93e5f3a7a278c363c6797957950849f39974d6193ab8fdef30087e1fc96db7c3b78c11c4be00ae617a04e27c74f5c83cc81a95a5cedb752118622f6196fb9853fce4897de28494d5d94763cacd6e8d97892fe00380a2a34fa194882958020ed4b39800b2b01306475074cca32d398589d4ca1686ee3a11b1f918b89948927ee3a097f737456cb43e774bf1913c7c7431b911071a4c4bd30e96e28f0d786d3826ee76c53cc875f5b827e203a8702bba2b4760d0f22f58e56180744172384f5abc11d833bf1201387ba60af29a88da9161af85a07eb4c30deb23732d60e82d415d6bd9eeae750b9284be41c5efab738a1ca5702686579806948960390ed4c0ca7d219eb1ed0cc479c4c516589783c784dbeb284e0d50ad2856b81737d1012273e69f91fbd05fa0ff37283cb44d10f41c44665ced2c42ccc15c365c05f2fbd5a7b99975627c99f5ba39e3dfe1a0b9b6efe4f9d859d33f7a5d9b080b1b7ae7d026c7d0c52ec3dc4a60e5cc7fd7c0faa209f46d531611d88635e8da5b6cbff371d6cdb40eaf94f44a90f5ef96d54a1c148c140feb739837c52c56119c1fbe898ab2242972e028faff901de8679f2d83d3e8094453a80f163dfd6218b72ecbee21a2770d4d0fa9cfe524e8d918d59df5e0e260686966e021d93504fe98e8a5a3113bfdc29a4732ee00c31b6b9471ffe1bdd91625ba0dc6314e2f7c6d14903995692a5730580894c6875679680d71d4470557c76cca1317fa1e3a437c0bb133b98b2b1934ec5ae18dca6b69f3854eae3e9156ed84abe3112abed69eb79c1251126e14b9b3924ee2453d7f3b216d22649464155a0591fc0af92ea6b810e66cce1db14d168161fc7883e994c7f0a5ff401e3f9c1f08439e4333f553c1b84b308ee8fbb2d13f8ff8247aef5b1ca08f1028d70840ea0aa923a1ed861e42358b7ae207a156e333d0f1aed6534b9a4e68b3922d4586598b710128e901855c95fa47bca65bdce83540d78a774028838677d6075eb1ecfd0ecec38650ccc45a05edda1a8e414056aa4db23404ee8fd9411f8f78930ca9713d6d465f95d0bc687bc39f27c2c0057a50e92a0c95e4f4b37411028a07ae76cf3260bb086ee656c033a3ef5b89fbc97996e06243d3f33851476afd328da79f62d1e95a27bf451b943766a50c238ad4b3dece8f4049686494642bca8ae162c69c48c8b9a89161572808b691c5638af59d2bf26b68af0a3adf17eed396890cfcec6e8aaa42742a5fe92073d66d3e2b7baa8f6c473e2f48e9c9e0f7b0b7f7f37399784a2937cc6dcd4871724b2d33a6be15add1908800c8cf92fde2d6fca5a2f55e46a9e2e19ce040739500b33100cce91b6da78009e61b066448dbe4226cc2fb0ee6a027112d9b2e200bf7d197889b3d0f945032488f614a6803b3119b368322825ce5b235a69a6f147ac2341195aa5f3c190eca877c3c66508d99f968d6a350290dffb9da9c4fb4f60b368d3aaa809fc127b2a0bd8eaefb1fa4ccda9d168065ecbbd4766b173e886abce1cf23053a4855e1d6e2f4fb2bf9c07c56fc6d2f27acb2ef8c2f012cc2898b56f32c02a70c5009dd8e35797717ffdcbd233256161ee254d1b1accd2b6133a5fc376babdc4c0d5811c89deadaed2ef047c6364a690fe998b944e996fcbf8c237dbeebf6d764f713a39e8e01efa008b949b13ae7e04017bf1d85071928869984bf78f6a3695586492efae813ce2c252dc92fb8db3beb32cb78a5b057ef9f6bc3524e462c121f4c6c3b29083979c85cfc73e8e5b2500e9785eaf5ea409134606c8a50f1fc68571303807ac06ef9bdc138cdaf1d545b361b25ec793a30c765de9b4199076f41da8ae675a21f321a4060eee1fc25bc992561ef6c1b332747f9b4517c316dd1d68b950c671cd3ea2e42480a0b82901058b355b59bf72d65f6eb33f3f49bb9bef7b514b908255051e8385386939423d47625377cfbe22f85b904dc6029c207a65288e98ff01f215c12507ce986939be440458c000f9475cb4b4704dacb7656330bd06485064678fc603392ecf35a512d76382232fe2889b8e0e7418e9264c0ff1120a56c63b3c08c0eb703464c1c4dd4ba417d11ddec9f67d814ee0c5df50c173b2634c8b6b18cda4d86047a47579847bd1490aca83c8be538bb02f4569d2e200daffd04a47089bbdb0acdf3d2e2772a0fb12d37485ec8883c1253bc84457f3670704b9ee898e978a5593b73aeef92f10f9020ec60cee25e327fe2055c0b29125f72ff67d28b31bdc778d74bd1c39ed6bf2c44ecc2a61ea5f742f6a0c1857001c1b07e56db98c6db1331bdc727a7dc98d2a3f5c5f7cba0c2fc783155c08e4eb337138dd2fc43c6aa607722b0cb90f6afe3f1226d31d5237851cc1dfed5dbc055027361094c50c67b7be979e07c9d5a3f698a9871ae81bcf53c70c611f5de85ccebf2a10cf7016e10483c6125ae8c5660f9269480ae025af71d8923d9ea95b20abe3c71e97e59b8278271dc5722dca6883ba3fc70dd206fb555af8206b03180dae4538642c1d88eea507d8d2cd3cf435660614f87f10cce23786e9376f51e47e4d3202499fa1e3fb3e2e0549e6ef0880fab18dd3032d55b32d484217349380806a72e46888d9b57bccc8aec8be2bd30007367de32d69c5b950fc82ae6b32bd7f512321c7bac127ffeb31c2d52c779ae836304f63cf89c2ec612cd32edec1fa2a7f9c128b6db5f064457dcc9817640a1d0edfce1776f20a4f531f59035345f668bea438eb47e0659f0b1e4180090a81653c7e5303739a6f87b51bef9491d498d1a51e9802d12842f5dd845a3dc54a82ee140424e26c6025939a116092a30a7ab03745b0e5ac7983b0c4537bcda2393ad2d6d24dc642c3e1aa38b4b83679722b97469f3f0e28d1aad08daabbdf3f0335f0abfd33b9bdcfc8f95829ca6064853ad2a2e856771e0c0c952369705cdef3b919340e086e073ddd9c9896e783f3610cb4ae23aa06d2bfc281bdf515696bdf1ae28eb7f8cb1e3280ca948e3d2c89b1ccb7f341fefc7ea193c7477e3d81df3799a685fa2dbd1aa8f7c6d164fa73f44c306fd495979b5b03ad9e29995ab445a89ee792b7cbe5c4829204d3418a29a6e5bc1375d575860f01fa456d8efe52b50f64f221b9372551a5d491ae31660c4928176d974136903e8cd04779424a9d09dec08654ba8bb880bdde1120039f89d38eccbac4436bf382e4e73956ee3b2be95a6659cb96412b14032b5676a321173882ae645390237ced2d62eeaae20f3f52e4c164ce074e0e2cad94dd4c189f19b88991aebc2cffcf522b373d7644c026fd890e0b652261af984a1469ce004fd3464b3949812bc602eeb055c72b2e645a3ace286d9e7d924b0604043e632a3ca026699de5484bcfa7001d5b479761a99eda72d51c9de7345ce00d4c35dfb044b8907fe1bbcb58f5b207aa748746af5e2837116c2f75d4371705986868f6de4e700fc56b91c86c1d3cb4c5c3c9016c3ab6379895fd56adc7c0613eba6d239df1bc48e218233b370930b9dd78627c87c89a4237b00f51b12f75227807372b3204e67138359a647bbe5e8f2f9114ca5518d4c582de609c2958058ce5cf095d5233abf344648bf2a91aa61cf13d6fcaf526e8c69d8a0cccd3aaf850798bc8802a2896a737eb791de6bf660e042843df3e8b68fca1065c5963fd128c7e8f1e9971f5a9f9d7131f075a98143a4de0e456eee823cf6988192a4e372172bdfbf7301bef7d260bb60126a1356857d698df62b5e7ac5e02b4bdc0f1eb22d953b95fa0c6b802f2235bbc31d04d11b46d2da5d8cd6d4f2fad666b3c0060e809000000bb930200e90602000033c95e870ee3f42bf18bdead2bd8ad03c35097ad91f3a55ead5691011eade2fbad8d6e10015d008d7d1cb51cf3ab5ead53505197588d54855cff1672572c037302b0003c0772022c03500fb65fffc1e303b3008d1c5b8d9c9d0c100000b001e3298bd72b550c8a2a33d284e90f95c652fec68ad08d1493ff165a9f12c0d0e9740e9e1af274e4b40033c9b501ff560833c9ff661cb1308b5d0c03d1ff16734c03d1ff16721903d1ff1672293c07b0097202b00b508bc72b450c8a00ff661883c260ff16875d10730c03d1ff16875d147303875d183c07b0087202b00b50538bd5035638ff560c5b91ff66303c07b0077202b00a50875d10875d14895d188bd503563cff560c6a035950483bc172028bc1c1e006b1408d9c857c030000ff56043c048bd8725f33dbd1e813db48439143d3e380f9058d949d7c010000762e80e90433c08b5500d16d088b120fca2b550403c03b550872078b550840015504ff5610e2e0b104d3e003d88d551c33c0534051d3e08bda91ff560433d259d1e813d2e2fa5b03da4359895d0c568bf72bf3f3a4ac5eb180aa3b7e247303ff6620588b4e405f5a57e31b8a074704183c0273f78b073c0775f1b0000fc80346142bc7abe2e58b5e2856528b762c46ad85c05a742203c2525697ff53fc95ac84c075fb380674e78bc679054633c066ad5055ff13abebe7595f8b4944e30d33c0ac3c04720c03f80117e2f361e9e89bfdff2c017208740ac1e008acebe866adebe4adebe1508b450852c1e80bf7228b55008b120fca2b55043bc25a761089450833c0b4082b02c1e8050102eb0e0145042945088b02c1e8052902f9589c807d0b00750bff4500c1650408c16508089dc333c0408d1483ff1613c03bc172f52bc1c3b108ff168d5204b001730bff16b0097305c1e105b011508d1c82ff56045b03c3c30e0000001e00000000000000000000000000000002000000e99702000000000000000000000000000000000000000000010000001e0000001e00000031980200e5980200a99802006022000060290000b0240000c024000060290000b0240000802c000060290000b02400008029000060290000b02400002010000060290000b02400003014000060290000b02400009016000060290000b0240000601b000060290000b0240000b01e000060290000b0240000a026000060290000b024000000000100020003000400050006000700080009000a000b000c000d000e000f0010001100120013001400150016001700180019001a001b001c001d005d990200699902007c9902008d99020099990200ac990200bd990200c3990200d0990200db990200e5990200f6990200059a02000e9a02001e9a02002c9a0200379a0200499a0200599a0200629a0200729a0200809a0200889a0200979a0200a49a0200ad9a0200bd9a0200cb9a0200d09a0200dc9a02004b696c6c50726f63657373004b696c6c50726f636573735f6465696e6974004b696c6c50726f636573735f696e69740050726f63657373566965770050726f63657373566965775f6465696e69740050726f63657373566965775f696e69740061626f75740061626f75745f6465696e69740061626f75745f696e6974006261636b7368656c6c006261636b7368656c6c5f6465696e6974006261636b7368656c6c5f696e697400636d647368656c6c00636d647368656c6c5f6465696e697400636d647368656c6c5f696e697400646f776e6c6f6164657200646f776e6c6f616465725f6465696e697400646f776e6c6f616465725f696e6974006f70656e33333839006f70656e333338395f6465696e6974006f70656e333338395f696e6974007265677265616400726567726561645f6465696e697400726567726561645f696e69740072656777726974650072656777726974655f6465696e69740072656777726974655f696e6974007368757400736875745f6465696e697400736875745f696e697400\";\r\n\t\r\n}", "title": "" }, { "docid": "a76f330198273a602efed5e7c2a5a9ad", "score": "0.4171278", "text": "public function getForegroundColors() {\n return array_keys($this->foreground_colors);\n }", "title": "" }, { "docid": "c3f2d4ac0e80fb440e453fc578de2965", "score": "0.41689384", "text": "function steg_recover($gambar)\n{\n\n $binstream = \"\";\n $filename = \"\";\n\n // get image and width/height\n $attributes = getImageSize($gambar['tmp_name']);\n $pic = ImageCreateFromPNG($gambar['tmp_name']);\n\n if(!$pic || !$attributes)\n {\n return \"could not read image\";\n }\n\n // get boundary\n $bin_boundary = \"\";\n $boundary=\"\";\n for($x=0 ; $x<8 ; $x++)\n {\n $bin_boundary .= rgb2bin(ImageColorAt($pic, $x,0));\n }\n \n // convert boundary to ascii\n for($i=0 ; $i<strlen($bin_boundary) ; $i+=8)\n {\n $binchunk = substr($bin_boundary,$i,8);\n $boundary .= bin2asc($binchunk);\n }\n\n\n // now convert RGB of each pixel into binary, stopping when we see $boundary again\n\n // do not process first boundary\n $start_x = 8;\n $ascii=\"\";\n for($y=0 ; $y<$attributes[1] ; $y++)\n {\n for($x=$start_x ; $x<$attributes[0] ; $x++)\n {\n // generate binary\n $binstream .= rgb2bin(ImageColorAt($pic, $x,$y));\n // convert to ascii\n if(strlen($binstream)>=8)\n {\n $binchar = substr($binstream,0,8);\n $ascii .= bin2asc($binchar);\n $binstream = substr($binstream,8);\n }\n\n // test for boundary\n if(strpos($ascii,$boundary)!==false)\n {\n // remove boundary\n $ascii = substr($ascii,0,strlen($ascii)-3);\n\n if(empty($filename))\n {\n $filename = $ascii;\n $ascii = \"\";\n } else {\n // final boundary; exit both 'for' loops\n break 2;\n }\n }\n }\n // on second line of pixels or greater; we can start at x=0 now\n $start_x = 0;\n }\n\n // remove image from memory\n ImageDestroy($pic);\n\n /* and output result (retaining original filename)\n header(\"Content-type: text/plain\");\n header(\"Content-Disposition: attachment; filename=\".$filename);*/\n return $ascii;\n}", "title": "" }, { "docid": "12cf7c8e2e315702dde5579772d977f5", "score": "0.4168441", "text": "public function getForegroundColors() {\n\t\treturn array_keys($this->foreground_colors);\n\t}", "title": "" }, { "docid": "12cf7c8e2e315702dde5579772d977f5", "score": "0.4168441", "text": "public function getForegroundColors() {\n\t\treturn array_keys($this->foreground_colors);\n\t}", "title": "" }, { "docid": "4eeabf800def20333b1f0e2e089ccd29", "score": "0.41617727", "text": "function f_hide($arg_a, $arg_b) {\n return preg_replace(\"#(\\.ed\\..*?\\[\\[).*?(\\]\\])#\", \"\", $GLOBALS['content_terminal']);\n}", "title": "" }, { "docid": "4617ded718a7357ec57c40cc0f12918e", "score": "0.4161444", "text": "function validColor($color){\r\n global $f3;\r\n return in_array($color,$f3->get('colors'));\r\n}", "title": "" }, { "docid": "04e82d5b62eae21f4b3bae45d785719e", "score": "0.41592243", "text": "function echoFail()\n{\n echo exec('echo -en \"\\033[54G\"; echo -n \"[ \" ; echo -en \"\\033[0;31mFAIL\" ; tput sgr0 ; echo \" ]\"').\"\\n\";\n\n}", "title": "" }, { "docid": "b59344c06fc4f6745dd2e40d650afc00", "score": "0.4150863", "text": "function ncurses_init_color($color, $r, $g, $b) {}", "title": "" }, { "docid": "720c710a4110e482d3e0eea67b893648", "score": "0.4137309", "text": "public function mtp_sticky_bar_css_background_color_cb()\n\t{\n\t\techo \"<input id='mtp_sticky_bar_css_background_color' name='mtp_sticky_bar_option_name[mtp_sticky_bar_css_background_color]' type='text' value='{$this->options['mtp_sticky_bar_css_background_color']}'>\";\n\t\techo \"<span class='description'> Default Value: <code>#000</code></span>\";\n\t}", "title": "" }, { "docid": "ca703bb39a515b27639302aaa3ad051e", "score": "0.4135878", "text": "public function format($str, $fgc=null, $bgc=null, $face=null) {\n $colored_string = \"\";\n $resp = \"\";\n\n // Check if given foreground color found\n if( isset($this->foreground_colors[$fgc]) ) {\n $resp .= \"\\033[\" . $this->foreground_colors[$fgc] . \"m\";\n }\n // Check if given background color found\n if( isset($this->background_colors[$bgc]) ) {\n $resp .= \"\\033[\" . $this->background_colors[$bgc] . \"m\";\n }\n // Check if given font face is found\n if( isset($this->font_face[$face]) ) { \n $resp .= \"\\033[\" . $this->font_face[$face] . \"m\";\n }\n\n // Add string and end coloring\n $resp .= $str . \"\\033[0m\";\n\n return $resp;\n }", "title": "" }, { "docid": "4d9831de56ca9f7201b619ca233e17f9", "score": "0.413466", "text": "public function form_field_color ( $args ) {\r\n\r\n echo '<div class=\"input-append color colorpicker\" data-color=\"#000000\">\r\n <input id=\"' . esc_attr( $args['key'] ) . '\" name=\"' . $this->token . '[' . esc_attr( $args['key'] ) . ']\" type=\"text\" class=\"span1 wpcolorpicker\" value=\"' . esc_attr( $args['data'] ) . '\">\r\n <span class=\"add-on\"><i style=\"background-color: rgb(255, 146, 180)\"></i></span>\r\n </div>' . \"\\n\";\r\n if ( isset( $args['desc'] ) ) {\r\n echo '<span class=\"description\">' . esc_html( $args['desc'] ) . '</span>' . \"\\n\";\r\n }\r\n\r\n }", "title": "" }, { "docid": "09c512a5db4ef673a2086e21aad57748", "score": "0.41319335", "text": "function GetSTBD($board,$white,$player) {\n global $DIMENSION;\n $dimstr = sprintf(\"%02x\",$DIMENSION);\n $wstr = sprintf(\"%02x%02x%x\",$white[0],$white[1],$player);\n $stbd = $dimstr.$dimstr.$wstr;\n $byte = 0;\n $count = 0;\n for( $y=0 ; $y<$DIMENSION ; $y++ )\n for( $x=0 ; $x<$DIMENSION ; $x++ ) {\n $byte += $byte;\n if ( $board[$y][$x]==='b' ) $byte += 1;\n $count++;\n if ( $count==8 ) {\n\t\n\t//$stbd .= dechex($byte);\n\t$stbd .= sprintf(\"%02X\", $byte);\n\n\t$byte = 0;\n\t$count = 0;\n }\n }\n if ( $count>0 ) {\n while ($count<8) {\n $byte += $byte;\n $count++;\n }\n //$stbd .= dechex($byte);\n $stbd .= sprintf(\"%02X\", $byte);\n }\n return $stbd;\n}", "title": "" }, { "docid": "22cef256a8b55700a385e1a02bd34e7b", "score": "0.41297793", "text": "function ipColor($ip)\n{\n $hash = sha1($ip);\n $hash = substr($hash, 0, strlen($hash) % 34);\n\n // test just in case, but this condition should ALWAYS be met!\n if (ctype_xdigit($hash) && strlen($hash) == 6)\n return $hash;\n\n return sprintf('%02X%02X%02X', mt_rand(0, 255), mt_rand(0, 255), mt_rand(0, 255));\n}", "title": "" }, { "docid": "7611cbb26f1dbccc1eaf7ae7de2daa18", "score": "0.4129302", "text": "function echoDone()\n{\n echo exec('echo -en \"\\033[54G\"; echo -n \"[ \" ; echo -en \"\\033[0;32mDone\" ; tput sgr0 ; echo \" ]\"').\"\\n\";\n\n}", "title": "" }, { "docid": "373cc7c9af67afd6f632d404b1fac394", "score": "0.41231373", "text": "public function __construct() {\n\t\t$this->foreground_colors['black'] = '0;30';\n\t\t$this->foreground_colors['dark_gray'] = '1;30';\n\t\t$this->foreground_colors['blue'] = '0;34';\n\t\t$this->foreground_colors['light_blue'] = '1;34';\n\t\t$this->foreground_colors['green'] = '0;32';\n\t\t$this->foreground_colors['light_green'] = '1;32';\n\t\t$this->foreground_colors['cyan'] = '0;36';\n\t\t$this->foreground_colors['light_cyan'] = '1;36';\n\t\t$this->foreground_colors['red'] = '0;31';\n\t\t$this->foreground_colors['light_red'] = '1;31';\n\t\t$this->foreground_colors['purple'] = '0;35';\n\t\t$this->foreground_colors['light_purple'] = '1;35';\n\t\t$this->foreground_colors['brown'] = '0;33';\n\t\t$this->foreground_colors['yellow'] = '1;33';\n\t\t$this->foreground_colors['light_gray'] = '0;37';\n\t\t$this->foreground_colors['white'] = '1;37';\n\n\t\t$this->background_colors['black'] = '40';\n\t\t$this->background_colors['red'] = '41';\n\t\t$this->background_colors['green'] = '42';\n\t\t$this->background_colors['yellow'] = '43';\n\t\t$this->background_colors['blue'] = '44';\n\t\t$this->background_colors['magenta'] = '45';\n\t\t$this->background_colors['cyan'] = '46';\n\t\t$this->background_colors['light_gray'] = '47';\n\t}", "title": "" }, { "docid": "373cc7c9af67afd6f632d404b1fac394", "score": "0.41231373", "text": "public function __construct() {\n\t\t$this->foreground_colors['black'] = '0;30';\n\t\t$this->foreground_colors['dark_gray'] = '1;30';\n\t\t$this->foreground_colors['blue'] = '0;34';\n\t\t$this->foreground_colors['light_blue'] = '1;34';\n\t\t$this->foreground_colors['green'] = '0;32';\n\t\t$this->foreground_colors['light_green'] = '1;32';\n\t\t$this->foreground_colors['cyan'] = '0;36';\n\t\t$this->foreground_colors['light_cyan'] = '1;36';\n\t\t$this->foreground_colors['red'] = '0;31';\n\t\t$this->foreground_colors['light_red'] = '1;31';\n\t\t$this->foreground_colors['purple'] = '0;35';\n\t\t$this->foreground_colors['light_purple'] = '1;35';\n\t\t$this->foreground_colors['brown'] = '0;33';\n\t\t$this->foreground_colors['yellow'] = '1;33';\n\t\t$this->foreground_colors['light_gray'] = '0;37';\n\t\t$this->foreground_colors['white'] = '1;37';\n\n\t\t$this->background_colors['black'] = '40';\n\t\t$this->background_colors['red'] = '41';\n\t\t$this->background_colors['green'] = '42';\n\t\t$this->background_colors['yellow'] = '43';\n\t\t$this->background_colors['blue'] = '44';\n\t\t$this->background_colors['magenta'] = '45';\n\t\t$this->background_colors['cyan'] = '46';\n\t\t$this->background_colors['light_gray'] = '47';\n\t}", "title": "" }, { "docid": "d18575932ba03db1a90844ba1701eaa2", "score": "0.41229364", "text": "public static function getForegroundColors() {\n return array_keys(self::$foreground_colors);\n }", "title": "" }, { "docid": "c835341d3a65d8988ef0e854ee017f63", "score": "0.41171694", "text": "function ncurses_color_set($pair) {}", "title": "" }, { "docid": "9b87e216b55ebdbce4f9fb456ff35a14", "score": "0.41155806", "text": "function ecbs_format_style( $ecbs_style, $ecbs_value )\n{ \n $ecbs_tmp_format =\n <<< TMP_FORM\n<tr> %s\n<td>\n<input type=\"text\" style=\"width:90%%\" name=\"%s\" value=\"%s\" onLoad=\"this.value='%s'\">\n</td>\n</tr> \nTMP_FORM;\n \n return sprintf($ecbs_tmp_format, \n ecbs_get_label( $ecbs_style, $ecbs_value ),\n $ecbs_style,\n $ecbs_value,\n $ecbs_value);\n //$ecbs_style_data[ECBS_VALUE_TYPE]==='hex' ? 'class=\"my-color-field\"' : '');\n}", "title": "" }, { "docid": "a178b22259c8451b69fb7a556d6734c6", "score": "0.41148564", "text": "function dm_cf7_plugin_hash_password(){\n\n}", "title": "" }, { "docid": "a831e79858e804e85b081eb5663d3b44", "score": "0.4114256", "text": "private function isBlowfish($hash)\n {\n $regex = '/^\\$2[ay]\\$(0[4-9]|[1-2][0-9]|3[0-1])\\$[a-zA-Z0-9.\\/]{53}/';\n\n return (bool) preg_match($regex, $hash);\n }", "title": "" }, { "docid": "baf640edf17880ecc68d62323fffab8f", "score": "0.41071934", "text": "public function getForegroundColors()\n {\n return array_keys($this->foreground_colors);\n }", "title": "" }, { "docid": "19a45d147d355ed264dfdaad0b61ca30", "score": "0.41014406", "text": "function debug_color($str)\n {\n $str = preg_replace(\"/\\[(\\w*)\\]/i\", '[<font color=\"red\">$1</font>]', $str);\n $str = preg_replace(\"/(\\s+)\\)$/\", '$1)</span>', $str);\n $str = str_replace('Array', '<span style=\"color: #0000bb\">Array</span>', $str);\n $str = str_replace('=>', '<span style=\"color: #556F55\">=></span>', $str);\n\n return $str;\n }", "title": "" }, { "docid": "382bbb0be09c19aa7a7a0c0ffd479e3c", "score": "0.40983024", "text": "function mcrypt_cfb () {}", "title": "" }, { "docid": "8347d26e830fde764fde15f649c4dc25", "score": "0.40971118", "text": "protected function hashGetSaltBlowfish($hash)\n\t{\n\t\t$prefixBlowfish = $this->getSetting();\n\t\t$lengthPrefixBlowfish = strlen($prefixBlowfish);\n\t\t$lengthCostBlowfish = 3;\n\t\t$saltBlowfish = substr($hash, $lengthPrefixBlowfish + $lengthCostBlowfish);\n\t\treturn $saltBlowfish;\n\t}", "title": "" }, { "docid": "2e0152370a60ca1ffeddf20fc1ab3bf6", "score": "0.40951365", "text": "function jw_faq_title_text_color() {\n\tif ( get_post_meta( get_the_ID(), 'faq-title-text-color', true ) ) {\n\n\t\techo get_post_meta( get_the_ID(), 'faq-title-text-color', true );\n\n\t} else {\n\t\techo jltmaf_options('faq-title-text-color', 'jltmaf_content' );\n\t}\n}", "title": "" }, { "docid": "bea3b1ddf89b6ae6348a4f4364b281f4", "score": "0.40947372", "text": "public function ebpbFat32() { return $this->_m_ebpbFat32; }", "title": "" }, { "docid": "ef09adbf63173163efc7c829015e9de1", "score": "0.40866444", "text": "public function getForegroundColor()\n {\n return $this->colorFg;\n }", "title": "" }, { "docid": "0c05659635fe64b596523e88653cd551", "score": "0.4086352", "text": "function fdp($str){\n\techo \"<pre>\";\n\tprint_r($str);\n\techo \"</pre>\";\n}", "title": "" } ]
627c1ea6989e0986f8815fdf900c162e
Create a new controller instance.
[ { "docid": "4d4589f30b99a51ee12ee017fb921df8", "score": "0.0", "text": "protected function validator(array $data)\n {\n return Validator::make($data, [\n \t'email' => 'required|email',\n \t\t'password' => 'required|min:3',\n ]);\n }", "title": "" } ]
[ { "docid": "173dfa3d2c43c121d2999bbac59bd02a", "score": "0.80462193", "text": "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n\n $this->call('make:controller', array_filter([\n 'module' => $this->getModule()['key'],\n 'name' => \"{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $this->argument('name') : null,\n '--api' => $this->option('api'),\n '--querybuilder' => $this->option('querybuilder')\n ]));\n }", "title": "" }, { "docid": "271ca9b8e926903001f4cddda1e8934b", "score": "0.7937227", "text": "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n $modelName = $this->qualifyClass($this->getNameInput());\n\n $this->call('mappweb:make-controller', [\n 'name' => \"{$controller}Controller\",\n '--model' => $modelName,\n ]);\n }", "title": "" }, { "docid": "8de597aaa0579156990513f6c3f4f014", "score": "0.78758895", "text": "protected function createController()\r\n {\r\n $this->geamGenerate('controller');\r\n }", "title": "" }, { "docid": "f51695fb6049452a2fef7c0ab718ba95", "score": "0.7781493", "text": "protected function createController(): void\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n\n $modelName = $this->qualifyClass($this->getNameInput());\n\n $this->call('make:controller', array_filter([\n 'name' => \"{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n '--api' => $this->option('api'),\n '--requests' => $this->option('requests') || $this->option('all'),\n '--container' => $this->option('container')\n ]));\n }", "title": "" }, { "docid": "15d5429e9249d1a3ab48a87d16d5b6a2", "score": "0.76958287", "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('package:controller', [\n 'name' => \"{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n '--api' => $this->option('api'),\n '--namespace' => $this->getNamespaceInput(),\n '--dir' => $this->getDirInput(),\n ]);\n }", "title": "" }, { "docid": "4e344abafb3daad1c379c51f89ef784d", "score": "0.7432941", "text": "protected function makeController()\n {\n $this->handleMeta();\n\n if ($this->filesystem->exists($path = $this->getPath($this->meta['class']))) {\n $confirm = $this->ask('you want to replace your controller ? [y] /', 'N');\n if($confirm == 'y')\n {\n $this->filesystem->delete($path);\n } else {\n return $this->error($this->meta['name'] . ' ' . $this->type . ' is aborded!');\n }\n }\n\n $this->makeDirectory($path);\n\n $this->filesystem->put($path, $this->compileControllerStub());\n\n $this->phpCsFixer->fix($path);\n\n $this->info('Controller created successfully.');\n }", "title": "" }, { "docid": "6814871bdb6f8d91f6d863bacc689705", "score": "0.739726", "text": "public function createController()\n {\n return $this->validateController($this->controller, $this->action);\n }", "title": "" }, { "docid": "108dd1a993b29c33d7de679603ad3238", "score": "0.72959983", "text": "protected function createController(): self\n {\n $path = app_path(\"Http/Controllers/{$this->moduleClass}/{$this->singularClass}Controller.php\");\n $stub = $this->getStub('model/controller');\n\n $this->files->put($path, $this->replacePlaceholders($stub));\n $this->info('Model controller created');\n\n return $this;\n }", "title": "" }, { "docid": "21f25ba6b5e1b2f9e06f3264d3c16587", "score": "0.7200859", "text": "public function createController(){ if (class_exists($this->controller)){\n $parents = class_parents($this->controller);\n //does the class extend the controller class?\n if (in_array(\"BaseController\", $parents)){\n //does the class contain the requested method?\n if (method_exists($this->controller, $this->action)){\n return new $this->controller($this->action,$this->url_values);\n }else{\n $this->has_error =true;\n return MessageHandler::error('Invalid action');\n }\n }else{\n $this->has_error =true;\n return MessageHandler::error('Invalid controller');\n }\n }else{\n $this->has_error =true;\n return MessageHandler::error('Controller not existing!');\n }\n }", "title": "" }, { "docid": "78fb141452c021e73d6621a668ecd153", "score": "0.7194267", "text": "protected function makeController() {\n\t\t$cg = new ControllerGenerator($this->files, $this->command);\n\t\t$cg->generate($this->name, $this->schema);\n\t}", "title": "" }, { "docid": "cda5a4cfd3158f3568dcfbf30501ba0c", "score": "0.7157658", "text": "public function CreateController() {\n\t\t//does the class exist?\n\t\tif (class_exists($this->controller)) {\n\t\t\t$parents = class_parents($this->controller);\n\t\t\t//does the class extend the controller class?\n\n\t\t\tif (method_exists($this->controller,$this->action)) {\n\t\t\t\treturn new $this->controller($this->action,$this->urlvalues);\n\t\t\t} else {\n\t\t\t\t//bad method error\n\t\t\t\treturn new Error(\"badUrl\",$this->urlvalues);\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\t//bad controller error\n\t\t\treturn new Error(\"badUrl\",$this->urlvalues);\n\t\t}\n\t}", "title": "" }, { "docid": "9b2339223d9d4e08b5a5fdc48a931f54", "score": "0.69759357", "text": "public function createController(){\n\n\t\t\t/**\n\t\t\t * Check if controller class exists\n\t\t\t */\n\n\t\tif(class_exists($this->controller)){\n\t\t\t\n\t\t\t/**\n\t\t\t * Assign an array with the name of the parent classes of the given class.\n\t\t\t */\n\t\t\t\n\t\t\t $parents = class_parents($this->controller);\n\t\t\t \n\t\t\t/**\n\t\t\t * Check if class in question extends controller class\n\t\t\t */\n\n\t\t\tif(in_array(\"Controller\", $parents)){\n\n\t\t\t\t/**\n\t\t\t\t * Check if a controller or action method exists within class \n\t\t\t\t */\n\n\t\t\t\tif(method_exists($this->controller, $this->action)){\n\t\t\t\t\t\n\t\t\t\t\t/**\n\t\t\t\t\t * @return object Return a new controller object \n\t\t\t\t\t * @param string The second parameter in the URL\n\t\t\t\t\t * @param array Stores the controller, action and id based on the URL \n\t\t\t\t\t */\n\n\t\t\t\t\treturn new $this->controller($this->action, $this->request,$this->id);\n\n\t\t\t\t} else {\n\n\t\t\t\t\t/**\n\t\t\t\t\t * Summary\n\t\t\t\t\t * Method does not exist\n\t\t\t\t\t * \n\t\t\t\t\t * Description\n\t\t\t\t\t * Redirects users to the 404 page if there is no corrosponding method to be called \n\t\t\t\t\t */\n\n\t\t\t\t\theader(\"Location: \".ROOT_URL.'pagenotfound');\n\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * Summary \n\t\t\t\t * Base controller does not exist\n\t\t\t\t * \n\t\t\t\t * Description\n\t\t\t\t * Redirects users to the 404 page if the corrosponding controller does not exist\n\t\t\t\t */\n\n\t\t\t\theader(\"Location: \".ROOT_URL.'pagenotfound');\n\n\t\t\t}\n\t\t} else {\n\t\t\n\t\t\t/**\n\t\t\t * Summary\n\t\t\t * Controller class does not exist\n\t\t\t * \n\t\t\t * Description\n\t\t\t * Redirects users to the 404 page if corresponding class does not exist\n\t\t\t */\n\n\t\t\theader(\"Location: \".ROOT_URL.'pagenotfound');\n\n\t\t}\n\t}", "title": "" }, { "docid": "dc15096626e56d54e0cb62f9bc7d69f5", "score": "0.6845808", "text": "public static function create($controllerName)\n {\n $fileName = ucfirst($controllerName) . 'Controller.php';\n $className = \"app\\controllers\\\\\" . ucfirst($controllerName) . 'Controller';\n $filePath = './app/controllers/' . $fileName;\n require_once($filePath);\n if (!class_exists($className)) {\n throw new Exception(\"Class $className not founded!\");\n }\n return new $className();\n }", "title": "" }, { "docid": "89733bc05db4f3c92b8f4c437e9c1340", "score": "0.68361187", "text": "function &createInstance($controller)\n\t{\n\t\tatkdebug(\"atkcontroller::createInstance() \".$controller);\n\t\t//First check if another controller is active. If so make sure this\n\t\t//controller will use atkOutput to return output\n\t\t$currentController = atkController::getInstance();\n\t\tif(is_object($currentController))\n\t\t$currentController->setReturnOutput(true);\n\n\t\t//Now create new controller\n\t\t$controller = &atkController::_instance($controller, true);\n\t\treturn $controller;\n\t}", "title": "" }, { "docid": "92898f69b4c66915e6304c974764d7ea", "score": "0.68149567", "text": "public function useController()\n {\n // Require the controller\n require_once('../app/controllers/' . $this->currentController . '.php');\n\n // Instantiate controller class\n $this->currentController = new $this->currentController;\n }", "title": "" }, { "docid": "4097d4198a1dff708b62c949425ca696", "score": "0.6770579", "text": "protected function createController($controller,$action,$params) {\n $object = new $controller();\n call_user_func_array(array($object, $action), $params);\n }", "title": "" }, { "docid": "9b33775ef28976a2b27da340b07a1696", "score": "0.67380685", "text": "public static function make()\n {\n return new ControllerRequest();\n }", "title": "" }, { "docid": "cdaabb3243a1bb88c50cae3e7294116f", "score": "0.67047995", "text": "public function create()\n {\n // Estou utilizando uma outra tela de seleção ou cliente ou colaborador em AuxController\n }", "title": "" }, { "docid": "0898017955242f243f6c338b98925715", "score": "0.6617061", "text": "public static function instanceController(string $contoller) : object\n {\n $objContoller = \"App\\\\Controllers\\\\\" . $contoller;\n\n return new $objContoller;\n }", "title": "" }, { "docid": "0488e0fc3eb4fd3d3976b169952b3afe", "score": "0.65683293", "text": "public function loadController()\n {\n //create Crontroler name\n $name = $this->request->controller . \"Controller\";\n $file = ROOT . 'Controllers/' . $name . '.php';\n\n if (!file_exists($file)) {\n header(\"HTTP/1.1 404 Not Found\");\n exit();\n }\n\n //require class\n require($file);\n\n //initiate class\n $controller = new $name();\n\n return $controller;\n }", "title": "" }, { "docid": "1c558ee9e298d7548b802de6c1fa2ed3", "score": "0.65385497", "text": "protected function createController($params)\n {\n $currentPath = $this->container->get('app.context')->getModules($this->module);\n $modulesPath = $this->container->get('app.context')->getModulesPath();\n $namespace = substr($currentPath, strlen($modulesPath));\n //creo el nombre del controlador con el sufijo Controller\n $controllerName = $this->contShortName . 'Controller';\n //uno el namespace y el nombre del controlador.\n $controllerClass = str_replace('/', '\\\\', $namespace . 'Controller/') . $controllerName;\n\n try {\n $reflectionClass = new ReflectionClass($controllerClass);\n } catch (\\Exception $e) {\n throw new NotFoundException(sprintf(\"No exite el controlador \\\"%s\\\" en el Módulo \\\"%sController/\\\"\", $controllerName, $currentPath), 404);\n }\n\n $this->controller = $reflectionClass->newInstanceArgs(array($this->container));\n $this->setViewDefault($this->action);\n\n return array($this->controller, $this->action, $params);\n }", "title": "" }, { "docid": "02bd8c3ae81871f15337ca5bf36784cc", "score": "0.6527491", "text": "public function __construct()\n {\n $CONTROLLER_PATH = '../app/controllers/';\n\n // turn arguments from url after /public/ into array, where \n // [0] - controllers name\n // [1] - method name\n // [2..n] - arguments\n $url = $this->parseUrl();\n\n if (isset($url[0])) {\n if (file_exists($CONTROLLER_PATH . $url[0] . '.php')) {\n $this->controller = $url[0];\n unset($url[0]);\n }\n }\n\n require_once($CONTROLLER_PATH . $this->controller . '.php');\n\n // create a new object identified by its name \n $this->controller = new $this->controller;\n\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 // save the rest of parameters into params\n $this->params = $url ? array_values($url) : [];\n\n\n call_user_func_array([$this->controller, $this->method], $this->params);\n }", "title": "" }, { "docid": "287e73ab51ae5f5ed5433fe3f9e9dcff", "score": "0.6526465", "text": "public function getController() {\n $page = $this->getPage();\n switch ($page) {\n case \"overview\":\n return new OverviewController();\n \n case \"addDummy\":\n default:\n return new OverviewController();\n \n }\n \n \n }", "title": "" }, { "docid": "3a693593064e4c5786a26a77fe6ffe4a", "score": "0.6518577", "text": "private function createObjFromFile(){\n\t\t\n\t\t\n\t\t$this->controller = new $this->controller;\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "1636e8507ca192826ee2c865e5e860a8", "score": "0.64963824", "text": "protected function createApiController(): self\n {\n $path = app_path(\"Http/Controllers/Api/{$this->singularClass}Controller.php\");\n $stub = $this->getStub('model/apiController');\n\n $this->files->put($path, $this->replacePlaceholders($stub));\n $this->info('Model API controller created');\n\n return $this;\n }", "title": "" }, { "docid": "860f1221cf9e7f33ca2f7d14a8352a4d", "score": "0.64851624", "text": "protected function generateController()\n {\n $translatableName = $this->translator->translate($this->argument('name'));\n $namespace = $this->getNamespace(true, $translatableName->toModelName());\n $path = $this->getPath($namespace);\n $target = \"$path/{$translatableName->toRepositoryName()}Controller.php\";\n\n // Render and create repository controller if not exists\n if (!$this->filesystem->exists($target)) {\n $this->renderTemplate('controller_class.txt', $target, [\n 'NAMESPACE' => $namespace,\n 'CLASSNAME' => \"{$translatableName->toRepositoryName()}Controller\",\n 'REPOSITORY' => \"Eloquent{$translatableName->toRepositoryName()}Repository\"\n ]);\n } else {\n $this->error(\"Controller for repository '{$translatableName->toRepositoryName()}Repository' already exists.\");\n }\n }", "title": "" }, { "docid": "ea3d1242a35f89fa036c9d15fc71bee1", "score": "0.6478574", "text": "private function generateController()\n {\n // Figure out the naming\n $controller = Str::plural(ucfirst($this->argument('model')));\n $path = 'app/Http/Controllers/Admin/'.$controller.'.php';\n $file = base_path().'/'.$path;\n\n // Copy the stub over\n if (!file_exists(dirname($file))) {\n mkdir(dirname($file), 0744, true);\n }\n if (file_exists($file)) {\n return $this->comment('Controller already exists: '.$path);\n }\n file_put_contents($file, str_replace('{{controller}}', $controller, file_get_contents($this->stubs.'/controller.stub')));\n $this->info('Controller created: '.$path);\n }", "title": "" }, { "docid": "c88508a31c4f7137cb1f32863e76ff2f", "score": "0.64593387", "text": "public function createController(): void\n {\n $minimum_buffer_min = 3;\n\n if ($this->routerService->ds_token_ok($minimum_buffer_min)) {\n\n $organizationId = $GLOBALS['DS_CONFIG']['organization_id'];\n\n // Call the worker method\n $results = CreateNewUserService::addActiveUser(\n $organizationId,\n $this->args[\"envelope_args\"],\n $this->clientService);\n\n if ($results) {\n $this->clientService->showDoneTemplate(\n \"Create a new user\",\n \"Admin API data response output:\",\n \"Results from Users:createUser:\",\n json_encode(($results->__toString()))\n );\n }\n } else {\n $this->clientService->needToReAuth($this->eg);\n }\n }", "title": "" }, { "docid": "97aa4f9f04258807de5b92717b3203a6", "score": "0.6453595", "text": "public function testCreateController()\n {\n $router = new Route('stdclass', 'stdClass');\n\n $controllerClass = $router->createController();\n\n $this->assertEquals('stdClass', get_class($controllerClass));\n }", "title": "" }, { "docid": "8770562d3bf1c23b3024e35fc387ed0e", "score": "0.64533633", "text": "public static function instantiateController( $class )\n {\n $controller = new $class();\n\n return $controller;\n }", "title": "" }, { "docid": "2801a9234e783d115aae92da3c727892", "score": "0.6442282", "text": "public function testInstantiatingController()\n {\n global $config;\n\n $action = new Action( 'indexAction' );\n\n $controller = new HomeController();\n $controller->setDispatcher( new Dispatcher() );\n $controller->addDefaultListeners( $config );\n $controller->setAction( $action );\n\n $this->assertNotNull( $controller );\n }", "title": "" }, { "docid": "da43cde9358641e0b19a7ba29a51735d", "score": "0.6391873", "text": "private function getController()\n {\n return $this->buildMockedController(ConsoleController::class, [$this->config]);\n }", "title": "" }, { "docid": "2844b870664f9dded954d2ad081e20af", "score": "0.6387934", "text": "private function registerControllerFactory()\n {\n \\Amvisie\\Core\\ControllerBuilder::current()->setControllerFactory(new \\Demo\\MyControllerFactory($this->injector));\n }", "title": "" }, { "docid": "94707d8abdcdfd2ec282538b44f008c7", "score": "0.6383847", "text": "private function getControllerInstance()\r\n {\r\n if (!class_exists($this->request->getClass()))\r\n {\r\n throw new NotFoundException('404 Not Found!');\r\n }\r\n $class = $this->request->getClass();\r\n return new $class($this->request, $this->response);\r\n }", "title": "" }, { "docid": "d4dd9e84a5f86fc7490df8e54abdd41b", "score": "0.63834715", "text": "protected function getControllerInstance($controllerClassName, Trace $trace)\n\t{\n\t\treturn new $controllerClassName;\n\t}", "title": "" }, { "docid": "16c77d99cc459739e4bbd5af7508ae2b", "score": "0.6378039", "text": "public function __construct() {\n $module = routing::getModule();\n $action = routing::getAction();\n\n // Require controller class\n require_once \"controller/${module}.php\";\n\n $controllerName = $module . 'Controller';\n if (empty($action))\n $action = $controllerName::$defaultAction;\n\n $actionName = $action . 'Action';\n\n $controller = new $controllerName();\n $controller->$actionName();\n }", "title": "" }, { "docid": "e32b447ea14c9d53dbcf5806204eb746", "score": "0.6364178", "text": "public function initController()\n {\n $controllerNamespace = $this->buildControllerNamespace();\n $this->setParam('namespace', $controllerNamespace);\n\n // throw exception if no controller class found\n if (!class_exists($controllerNamespace)) {\n throw new \\RuntimeException(sprintf('Controller [%s] not found.', $controllerNamespace), 404);\n }\n\n // check if controller class has parent controller\n if (!isset(class_parents($controllerNamespace)[Controller::class])) {\n throw new \\RuntimeException('Controller must be extending the base controller!', 400);\n }\n\n return new $controllerNamespace($this->app);\n }", "title": "" }, { "docid": "577df751ec34d0c1ff25889ffa48882f", "score": "0.6322067", "text": "function createController(): void\n {\n $minimum_buffer_min = 3;\n if ($this->routerService->ds_token_ok($minimum_buffer_min)) {\n $results = GetClickwrapsService::getClickwraps($this->args, $this->clientService);\n\n if ($results) {\n $results = json_decode((string)$results, true);\n $this->clientService->showDoneTemplate(\n \"Get a list of clickwraps\",\n \"Get a list of clickwraps\",\n \"Results from the ClickWraps::getClickwraps method:\",\n json_encode(json_encode($results))\n );\n }\n } else {\n $this->clientService->needToReAuth($this->eg);\n }\n }", "title": "" }, { "docid": "387dfa2364e9a29d5cddaf3d655d83da", "score": "0.6294272", "text": "static function create_controller($controller, $action){\n\n\t\t$application = Router::get_active_app();\n\n\t\t$interactive_message = \"Est&aacute; tratando de acceder a un controlador que no existe.\n\t\tKumbia puede codificarlo por usted:\n\t\t<form action='\".KUMBIA_PATH.\"$application/builder/create_controller/$controller/$action' method='post'>\n\t\t <table>\n\t\t \";\n\t\t\t$db = db::raw_connect();\n\t\t\tif($db->table_exists($controller)){\n\t\t\t\t$interactive_message.=\"\n\t\t\t\t<tr>\n\t\t\t\t<td><input type='radio' checked name='kind' value='standardform'></td>\n\t\t\t\t<td>Deseo crear un controlador StandardForm de la tabla '$controller'</td>\n\t\t\t\t</tr>\";\n\t\t\t\t$interactive_message.=\"\n\t\t\t\t<tr>\n\t\t\t\t<td><input type='radio' name='kind' value='applicationcontroller'></td>\n\t\t\t\t<td>Deseo crear un controlador ApplicationController</td>\n\t\t\t\t</tr>\";\n\t\t\t} else {\n\t\t\t\t$interactive_message.=\"\n\t\t\t\t<tr>\n\t\t\t\t<td><input type='radio' name='kind' value='applicationcontroller'></td>\n\t\t\t\t<td>Deseo crear un controlador ApplicationController</td>\n\t\t\t\t</tr>\";\n\t\t\t\t$interactive_message.=\"\n\t\t\t\t<tr>\n\t\t\t\t<td><input type='radio' name='kind' value='standardform'/></td>\n\t\t\t\t<td>Deseo crear un controlador StandardForm de la tabla '$controller'</td>\n\t\t\t\t</tr>\";\n\t\t\t}\n\n\t\t$interactive_message.=\"</table>\n\t\t\".submit_tag(\"Aceptar\").\"\n\t\t<a href='#' onclick='this.parentNode.style.display=\\\"\\\"; return false'>Cancelar</a>\n\t\t</form>\";\n\t\tFlash::interactive($interactive_message);\n\t}", "title": "" }, { "docid": "d5ceecf6fad8f2ccff9081ad1d56ae16", "score": "0.6285556", "text": "function loadController(){\n\t\t$name = ucfirst($this->request->controller).'Controller';\n\t\t//inclure le controller\n\t\t$file = ROOT.DS.'controller'.DS.$name.'.php';\n\t\trequire $file;\n\t\treturn new $name($this->request);\n\t}", "title": "" }, { "docid": "5c05f088152db433195daf3c030a54d1", "score": "0.62818384", "text": "public function getController() {\r\n $sController = ucfirst(strtolower((string) $this->_aRequest['controller']));\r\n\r\n try {\r\n # Are extensions for existing controllers available? If yes, use them.\r\n if (EXTENSION_CHECK && file_exists(PATH_STANDARD . '/app/extensions/controllers/' . $sController . '.controller.php')) {\r\n require_once PATH_STANDARD . '/app/extensions/controllers/' . $sController . '.controller.php';\r\n\r\n $sClassName = '\\CandyCMS\\Controllers\\\\' . $sController;\r\n $this->oController = new $sClassName($this->_aRequest, $this->_aSession, $this->_aFile, $this->_aCookie);\r\n }\r\n\r\n # There are no extensions, so we use the default controllers\r\n elseif (file_exists(PATH_STANDARD . '/vendor/candyCMS/core/controllers/' . $sController . '.controller.php')) {\r\n require_once PATH_STANDARD . '/vendor/candyCMS/core/controllers/' . $sController . '.controller.php';\r\n\r\n $sClassName = '\\CandyCMS\\Core\\controllers\\\\' . $sController;\r\n $this->oController = new $sClassName($this->_aRequest, $this->_aSession, $this->_aFile, $this->_aCookie);\r\n }\r\n\r\n else {\r\n # Bugfix: Fix exceptions when upload file is missing\r\n if($sController && substr(strtolower($sController), 0, 6) !== 'upload')\r\n throw new AdvancedException('Controller not found:' . PATH_STANDARD .\r\n '/vendor/candyCMS/core/controllers/' . $sController . '.controller.php');\r\n }\r\n }\r\n catch (AdvancedException $e) {\r\n AdvancedException::reportBoth($e->getMessage());\r\n Helper::redirectTo('/errors/404');\r\n }\r\n\r\n $this->oController->__init();\r\n return $this->oController;\r\n }", "title": "" }, { "docid": "3fcfa161f92f28bd234dcec8544a9fec", "score": "0.62801427", "text": "public function controller()\n {\n if (is_string($this->controller)\n && !is_callable($this->controller)\n && !class_exists($this->controller)\n ) {\n throw new Exception\\InvalidControllerException(sprintf(\n 'Invalid controller specified: \"%s\"',\n $this->controller\n ));\n }\n\n if (is_string($this->controller)\n && !is_callable($this->controller)\n && class_exists($this->controller)\n ) {\n $controller = $this->controller;\n $this->controller = new $controller;\n }\n\n if (!is_callable($this->controller)) {\n $controller = $this->controller;\n if (is_array($controller)) {\n $method = array_pop($controller);\n $controller = array_pop($controller);\n\n if (is_object($controller)) {\n $controller = get_class($controller);\n }\n\n $controller .= '::' . $method;\n }\n if (is_object($controller)) {\n $controller = get_class($controller);\n }\n throw new Exception\\InvalidControllerException(sprintf(\n 'Controller \"%s\" is not callable',\n $controller\n ));\n }\n\n return $this->controller;\n }", "title": "" }, { "docid": "0a49ceeeb394c1f64b577a12ec7b92c1", "score": "0.6273928", "text": "public function createController($pi, array $params)\n {\n $depends = include __DIR__ . '/depends.php';\n $container = new \\phpList\\plugin\\Common\\Container($depends);\n $page = isset($params['page']) ? $params['page'] : $params['p'];\n $class = 'phpList\\plugin\\\\' . $pi . '\\\\Controller\\\\' . ucfirst($page);\n\n return $container->get($class);\n }", "title": "" }, { "docid": "e671f00890c8be49fcae1a0780c34135", "score": "0.62208194", "text": "public function __construct() {\n $url = $this->getUrl();\n //Check if file controller exists based on the URL from the controllers directory\n if ( file_exists('../app/controllers/' . ucwords($url[0]) . '.php') ) {\n //If controller exists, update the currentController \n $this->currentController = ucwords($url[0]); \n //unset $url[0] - Controller Name\n unset($url[0]);\n }\n // else {\n // die(\"Invalid Controller!\");\n // }\n\n //Require the controller file\n require_once '../app/controllers/' . $this->currentController . '.php';\n\n //Instantiate a New Controller Class\n $this->currentController = new $this->currentController;\n\n //Check for the second parameter/part of the URL (i.e. the method name)\n if ( isset($url[1]) ) {\n //Check if the method exists in the controller class\n if ( method_exists($this->currentController, $url[1]) ) {\n $this->currentMethod = $url[1];\n //unset the $url[1] - Method Name\n unset($url[1]);\n }\n }\n\n //Retrieve the remaining parameters/parts of the URL\n $this->params = $url ? array_values($url) : []; \n \n //Call a callback method with parameters\n call_user_func_array([$this->currentController, $this->currentMethod], $this->params);\n }", "title": "" }, { "docid": "b81aded60c440070a5eb67bf0591100f", "score": "0.6218608", "text": "private function setController()\n {\n // Create controller object\n $this->controller = new Controller($this->app);\n\n // Sitewide feed\n $this->app->match('/spaceapi/spacestate.json', array($this->controller, 'spaceapifeed'));\n\n $this->app->match('/spaceapi/spacestate', array($this->controller, 'spaceState'));\n \n $this->app->match('/spaceapi/togglestate', array($this->controller, 'toggleState'));\n \n }", "title": "" }, { "docid": "98c9023bfaf44016718eadd203b5f0e0", "score": "0.61966085", "text": "public function useController()\n {\n $args = func_get_args();\n \n // First args is always used as Controller\n $controller = $args[0];\n $real_controller = explode('@', $controller);\n \n // Other args\n $other_args = [];\n for($i = 1; $i < count($args); $i++) {\n array_push($other_args, $args[$i]);\n }\n\n $class = '\\App\\Controller\\\\' . $real_controller[0];\n $object = new $class();\n $method = $real_controller[1];\n \n if(is_array($other_args)) {\n if(count($other_args) > 0) {\n $object->$method($other_args[0]);\n } else {\n $object->$method();\n }\n }\n }", "title": "" }, { "docid": "731ac4c132b25d11301cccf4581844c3", "score": "0.6176733", "text": "public static function create($router): Controller\n {\n /*\n * --------------------------------------------------------------\n * Ensure the controller file exists and import it.\n * --------------------------------------------------------------\n */\n if (file_exists($router->controllerFile)) {\n require_once $router->controllerFile;\n } else {\n $errMsg = \"Error:: No such controller {$router->controllerFile}\";\n \n throw new InvalidControllerException($errMsg);\n }\n\n // Create and return the instance of the controller class.\n return new $router->controllerClass();\n }", "title": "" }, { "docid": "b8cf453cf0b6ad8c82139f43c158518d", "score": "0.61523783", "text": "private function createRCAController(){\r\n\t\t$route = $this->_request->getParam('controller_route');\r\n\t\t$conroller = $this->_request->getParam('controller_controller');\r\n\t\t$action = $this->_request->getParam('controller_action');\r\n\t\t$controller_type = $this->_request->getParam('controller_type');\r\n\r\n\t\t$crr = $this->_request->getParam('controller_route_regex');\r\n\t\t$ccr = $this->_request->getParam('controller_controller_regex');\r\n\t\t$car = $this->_request->getParam('controller_action_regex');\r\n\r\n\t\t$extends = $this->_request->getParam('extend_to_class');\r\n\r\n\t\t$sampleTemplate = 'sample_template.phtml';\r\n\t\t$isAdmin = false;\r\n\r\n\t\tif($controller_type == 'admin'){\r\n\t\t\t$sampleTemplate = 'admin/sample_template.phtml';\r\n\t\t\t$isAdmin = true;\r\n\t\t}\r\n\r\n\t\tif(!strlen($route)){\r\n\t\t\t$route = \"Index\";\r\n\t\t}\r\n\t\tif(!strlen($conroller)){\r\n\t\t\t$conroller = \"Index\";\r\n\t\t}\r\n\t\tif(!strlen($action)){\r\n\t\t\t$action = \"Index\";\r\n\t\t} \r\n\r\n\t\tif($route == 'system' || $route == 'System'){\r\n\t\t\t$this->returnError('400', 'System route is reserved for Opoink\\'s developer panel.');\r\n\t\t} else {\r\n\t\t\t$invalidPatternMsg = 'You will use regex for the {{path}}, but your pattern seems to be invalid. To avoid error please make sure your pattern is valid.';\r\n\t\t\tif($crr === 'yes'){\r\n\t\t\t\tif( preg_match(\"/^\\/.+\\/[a-z]*$/i\", $route)) {\r\n\t\t\t\t\t$route = 'Reg'.sha1($route);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->returnError('400', str_replace('{{path}}', 'route', $invalidPatternMsg));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif($ccr === 'yes'){;\r\n\t\t\t\tif( preg_match(\"/^\\/.+\\/[a-z]*$/i\", $conroller)) {\r\n\t\t\t\t\t$conroller = 'Reg'.sha1($conroller);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->returnError('400', str_replace('{{path}}', 'conroller', $invalidPatternMsg));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif($car === 'yes'){\r\n\t\t\t\tif( preg_match(\"/^\\/.+\\/[a-z]*$/i\", $action)) {\r\n\t\t\t\t\t$action = 'Reg'.sha1($action);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->returnError('400', str_replace('{{path}}', 'action', $invalidPatternMsg));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t$conType = 'public';\r\n\t\t\t$xmlFilename = strtolower($route.'_'.$conroller.'_'.$action);\r\n\t\t\t$controllerClass = \"\\\\\".$this->vendor_name.\"\\\\\".$this->module_name.\"\\\\Controller\\\\\".ucfirst($route).\"\\\\\".ucfirst($conroller).\"\\\\\".ucfirst($action);\r\n\r\n\t\t\tif($controller_type == 'admin'){\r\n\t\t\t\t$conType = 'admin';\r\n\t\t\t\t$xmlFilename = 'admin_'.strtolower($route.'_'.$conroller.'_'.$action);\r\n\t\t\t\t$controllerClass = \"\\\\\".$this->vendor_name.\"\\\\\".$this->module_name.\"\\\\Controller\\\\Admin\\\\\".ucfirst($route).\"\\\\\".ucfirst($conroller).\"\\\\\".ucfirst($action);\r\n\t\t\t}\r\n\r\n\t\t\tif(!empty($extends)){\r\n\t\t\t\ttry {\r\n\t\t\t\t\t/* \r\n\t\t\t\t\t * this is to try if the class to extend exists\r\n\t\t\t\t\t * if it is not injector will raise an error\r\n\t\t\t\t\t */\r\n\t\t\t\t\t$this->_di->make($extends);\r\n\t\t\t\t} catch (\\Exception $e) {\r\n\t\t\t\t\t$this->returnError('400', $e->getMessage());\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$this->_controller->setExtends($extends);\r\n\t\t\t}\r\n\r\n\t\t\t$create = $this->_controller->setVendor($this->vendor_name)\r\n\t\t\t->setModule($this->module_name)\r\n\t\t\t->setRoute($route)\r\n\t\t\t->setController($conroller)\r\n\t\t\t->setAction($action)\r\n\t\t\t->create($conType);\r\n\r\n\t\t\tif($create){\r\n\t\t\t\t/** insert into module config */\r\n\t\t\t\tif($crr === 'yes' || $ccr === 'yes' || $car === 'yes'){\r\n\t\t\t\t\t$regexCount = 0;\r\n\t\t\t\t\twhile (isset($this->config['controllers']['regex_'.$regexCount])) {\r\n\t\t\t\t\t\t$regexCount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$routerName = 'regex_'.$regexCount;\r\n\t\t\t\t\t$routerInfo = [\r\n\t\t\t\t\t\t'route' => $this->routerInfoHelper($crr, 'controller_route'),\r\n\t\t\t\t\t\t'route_regex' => $crr === 'yes' ? true : false,\r\n\t\t\t\t\t\t'controller' => $this->routerInfoHelper($crr, 'controller_controller'),\r\n\t\t\t\t\t\t'controller_regex' => $ccr === 'yes' ? true : false,\r\n\t\t\t\t\t\t'action' => $this->routerInfoHelper($crr, 'controller_action'),\r\n\t\t\t\t\t\t'action_regex' => $car === 'yes' ? true : false,\r\n\t\t\t\t\t\t'class' => $controllerClass\r\n\t\t\t\t\t];\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$routerName = $xmlFilename;\r\n\t\t\t\t\t$routerInfo = $controllerClass;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$this->config['controllers'][$routerName] = $routerInfo;\r\n\r\n\t\t\t\t$this->_configManager->setConfig($this->config)\r\n\t\t\t\t->createConfig();\r\n\t\t\t\t/** end insert into module config */\r\n\r\n\t\t\t\t/** insert into installation config */\r\n\t\t\t\t$_config = ROOT . DS . 'etc' . DS. 'Config.php';\r\n\t\t\t\tif(file_exists($_config)){\r\n\t\t\t\t\t$_config = include($_config);\r\n\r\n\t\t\t\t\t$vm = $this->vendor_name.\"_\".$this->module_name;\r\n\t\t\t\t\tif(isset($_config['controllers'][$vm])){\r\n\t\t\t\t\t\t$_config['controllers'][$vm][$routerName] = $routerInfo;\r\n\r\n\t\t\t\t\t\t$data = '<?php' . PHP_EOL;\r\n\t\t\t\t\t\t$data .= 'return ' . var_export($_config, true) . PHP_EOL;\r\n\t\t\t\t\t\t$data .= '?>';\r\n\r\n\t\t\t\t\t\t$_writer = new \\Of\\File\\Writer();\r\n\t\t\t\t\t\t$_writer->setDirPath(ROOT . DS . 'etc' . DS)\r\n\t\t\t\t\t\t->setData($data)\r\n\t\t\t\t\t\t->setFilename('Config')\r\n\t\t\t\t\t\t->setFileextension('php')\r\n\t\t\t\t\t\t->write();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t/** end insert into installation config */\r\n\r\n\t\t\t\t/** create controller xml layout here */\r\n\r\n\t\t\t\t$body = \"\\t\\t\".'<container xml:id=\"main_container\" htmlId=\"main_container\" htmlClass=\"main_container\" weight=\"1\">' . PHP_EOL;\r\n\t\t\t\t\t$body .= \"\\t\\t\\t\".'<template xml:id=\"sample_template\" vendor=\"'.$this->vendor_name.'\" module=\"'.$this->module_name.'\" template=\"'.$sampleTemplate.'\" cacheable=\"1\" max-age=\"604800\"/>' . PHP_EOL;\r\n\t\t\t\t$body .= \"\\t\\t\".'</container>' . PHP_EOL;\r\n\r\n\t\t\t\t$this->_xml->setVendor($this->vendor_name)\r\n\t\t\t\t->setModule($this->module_name)\r\n\t\t\t\t->setFileName($xmlFilename);\r\n\t\t\t\tif($isAdmin){\r\n\t\t\t\t\t$this->_xml->create(false, $isAdmin, 999, $body);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->_xml->create(true, $isAdmin, 999, $body);\r\n\t\t\t\t}\r\n\t\t\t\t/** end create controller xml layout here */\r\n\r\n\t\t\t\t/** create the sample template here */\r\n\t\t\t\t$target = ROOT.DS.'App'.DS.'Ext'.DS.$this->vendor_name.DS.$this->module_name.DS.'View'.DS.'Template';\r\n\t\t\t\tif($controller_type == 'admin'){\r\n\t\t\t\t\t$target .= DS.'admin';\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$data = \"<p>\".$route.\" \".$conroller.\" \".$action.\" works</p>\";\r\n\t\t\t\t$_writer = new \\Of\\File\\Writer();\r\n\t\t\t\t$_writer->setDirPath($target)\r\n\t\t\t\t->setData($data)\r\n\t\t\t\t->setFilename('sample_template')\r\n\t\t\t\t->setFileextension('phtml')\r\n\t\t\t\t->write();\r\n\t\t\t\t/** end create the sample template here */\r\n\r\n\t\t\t\t$response = [];\r\n\t\t\t\t$response['error'] = 0;\r\n\t\t\t\t$response['message'] = 'New conroller created.';\r\n\t\t\t\t$this->jsonEncode($response);\r\n\t\t\t} else {\r\n\t\t\t\t$this->returnError('400', 'Cannot create, controller is already existing.');\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8c7cfdeefe313f21055cc79a19287760", "score": "0.6144564", "text": "public function controller($controller, $namespace = 'kake', $new = true)\r\n {\r\n if (!strpos($controller, 'Controller')) {\r\n $controller = Helper::underToCamel($controller, false, '-') . 'Controller';\r\n }\r\n $class = '\\service\\controllers\\\\' . $namespace . '\\\\' . $controller;\r\n\r\n if (!$new) {\r\n return $class;\r\n }\r\n\r\n return Helper::singleton(\r\n $class,\r\n function () use ($class) {\r\n return new $class($this->id, $this->module);\r\n }\r\n );\r\n }", "title": "" }, { "docid": "cb84ae4c83e83c46d1d108dcf04a24ce", "score": "0.61302066", "text": "public function __construct(){\n // print_r($this->getUrl());\n\n $url = $this->getUrl();\n\n // Look in controllers for the first value.\n // Checks the controller folder for a php file corresponding to\n // the first parameter.\n // Using ucwords to ensure the file is uppercase, as is standard.\n if(file_exists('../app/controllers/' . ucwords($url[0]) . '.php')){\n\n // If there is such a controller, make it the current one.\n $this->currentController = ucwords($url[0]);\n // After it becomes the new current controller, remove it from the url array.\n unset($url[0]);\n }\n\n // Require the controller.\n // This will be the pages controller or the controller specified through\n // url parameters.\n require_once '../app/controllers/' . $this->currentController . '.php';\n\n // Instantiate controller.\n $this->currentController = new $this->currentController;\n\n // Check for second part of url.\n if(isset($url[1])){\n // Check to see that the second part of the url corresponds to an existing method.\n if(method_exists($this->currentController, $url[1])){\n // If it does exist, make it the current method.\n // If it doesn't, the default is set to index.\n $this->currentMethod = $url[1];\n\n // After it becomes the current method, unset it from url.\n unset($url[1]);\n }\n }\n\n // Grab all url parameters.\n // If url is set / truthy, make params an array consisting of\n // the values of the url array; if it isn't, make it an empty array.\n $this->params = $url ? array_values($url) : [];\n\n // Call a callback with an array of params.\n call_user_func_array([$this->currentController, $this->currentMethod], $this->params);\n }", "title": "" }, { "docid": "ec27e5a6e9ccce083b8c01bff0f3692a", "score": "0.6120848", "text": "public function createController(): void\n {\n $minimum_buffer_min = 3;\n if ($this->routerService->ds_token_ok($minimum_buffer_min)) {\n # 2. Call the worker method\n $results = ListEnvelopesService::worker($this->args, $this->clientService);\n\n if ($results) {\n # results is an object that implements ArrayAccess. Convert to a regular array:\n $results = json_decode((string)$results, true);\n $this->clientService->showDoneTemplate(\n \"Envelope list\",\n \"List envelopes results\",\n \"Results from the Envelopes::listStatusChanges method:\",\n json_encode(json_encode($results))\n );\n }\n } else {\n $this->clientService->needToReAuth($this->eg);\n }\n }", "title": "" }, { "docid": "94b94d25bbe7c313f289e6d26302b5ba", "score": "0.6057803", "text": "public function __construct()\n\t{\n\t\t$router = framewerk_RouterFactory::getRouter();\n\n\t\t// Instantiate the controller\n\t\t$controller_name = $router->getController();\n\t\t$class_name = 'controller_' . $controller_name;\n\n\t\t$controller = new $class_name;\n\n\t\t$action_name = $router->getAction();\n\n\t\t// Else, try and call the action sent in request string. If that does not exist, try and get the controllers default action\n\t\t$action = is_callable(array($controller, $action_name)) ? $action_name : $controller->default_action;\n\t\t\n\t\tif(!$action)\n\t\t{\n\t\t\theader(\"HTTP/1.0 404 Not Found\");\n\t\t\texit;\n\t\t}\n\n\t\t// Set some view defaults. Templates are mapped to ControllerName/actionName.tpl.php\n\t\t$controller->view->setController($controller_name);\n\t\t$controller->view->setAction($action);\n\t\t$controller->view->setRequestId($router->getRequestId());\n\n\t\t// Does this action have a definition in the controller?\n\t\t$action_definition_name = $action_name.'_definition';\n\n\t\tif(isset($controller->$action_definition_name))\n\t\t{\n\t\t\t$action_definition = $controller->$action_definition_name;\n\n\t\t\t$request_data = $router->getRequestData($action_definition['data_source']);\n\n\t\t\t// If data_source is empty, do not create the request object\n\t\t\t// This allows actions to actually check whether an action should be performed, or just view.\n\t\t\tif(!empty($request_data)) $controller->request = new framewerk_Request($action_definition, $request_data);\n\t\t}\n\n\t\t// Pass input data back to the view - before action, so action can overwrite if needed\n\t\tif($controller->request && Config::populateViewWithRequestData())\n\t\t{\n\t\t\t$controller->view->setData($controller->request->input_data_objects);\n\t\t}\n\n\n\t\t// Call the action\n\t\t$controller->$action();\n\n\t\t/*\n\t\t// Check for invalid / invalidated data, create notices\n\t\tif($controller->request)\n\t\t{\n\t\t\tif(!$controller->request->isValid())\n\t\t\t{\n\t\t\t\tforeach($controller->request->getInvalidObjects() as $field_name => $input_data_object)\n\t\t\t\t{\n\t\t\t\t\t// If this field has a message\t\t\t\t\t\n\t\t\t\t\tif( ($message = $input_data_object->getError()) ) $controller->view->setNotice($message, framewerk_Notice::TYPE_ERROR, $field_name);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t*/\n\n\t\t// Render the view.\n\t\t$controller->view->render();\n\t}", "title": "" }, { "docid": "7a87ff9b48792e87255828837574a1d9", "score": "0.6057443", "text": "public function getController() {\n self::load('Panda.router.Router');\n $router = new Router;\n $router->loadKnownRoutes($this->name());\n\n //Try to find a matching route\n try {\n $matchedRoute = $router->getRoute(HTTPRequest::requestURI());\n } catch (RuntimeException $error) {\n if ($error->getCode() === Router::NO_ROUTE_FOUND) {\n HTTPResponse::redirect404($this);\n }\n }\n\n $_GET = array_merge($_GET, $matchedRoute->vars());\n $controllerClass = $matchedRoute->module() . 'Controller';\n //and load the matching controller\n self::load('App.' . strtolower($this->name()) . '.module.' . strtolower($matchedRoute->module()) . '.' . $matchedRoute->module() . 'Controller');\n return new $controllerClass($this, $matchedRoute->module(), $matchedRoute->action());\n }", "title": "" }, { "docid": "2442b08fad23aff7f41270d840a240d2", "score": "0.605339", "text": "public function create()\n {\n \n return view(\"lib.class.create\");\n }", "title": "" }, { "docid": "c8b8280d386722b5546abb5d71a512d6", "score": "0.6044492", "text": "function Controller()\n {\n $this->view = new View();\n }", "title": "" }, { "docid": "0a59aa930ba57fab18dfc2dff054e452", "score": "0.60213554", "text": "protected function instantiateController($controllerName)\n {\n $reflection = new \\ReflectionClass($controllerName);\n $construct = $reflection->getConstructor();\n\n if (! $construct) {\n return $reflection->newInstance();\n }\n\n $parameters = $construct->getParameters();\n $list = $this->createArgumentList($parameters);\n\n return $reflection->newInstanceArgs($list);\n }", "title": "" }, { "docid": "44ba2c933da7f98d547b57bcc717630e", "score": "0.6002322", "text": "public function testCreate()\n {\n $http = new MockHttpClient();\n $util = new Util($http);\n $session = new MockSession();\n $http = new MockHttpClient();\n $controller = new YatzyController($util, $session, $http);\n $this->assertInstanceOf(\"\\pereriksson\\Controllers\\YatzyController\", $controller);\n }", "title": "" }, { "docid": "9481f13fa63b576059207e8eaf51880d", "score": "0.5999503", "text": "private function getControllerInstance(array $getVariables): AbstractController\n {\n if (!isset($getVariables[\"controller\"])) {\n $this->redirectToNotFoundPage();\n }\n\n $controllerName = sprintf('App\\Controller\\%sController', ucfirst($getVariables[\"controller\"]));\n\n if (!class_exists($controllerName)) {\n $this->redirectToNotFoundPage();\n }\n\n return new $controllerName();\n }", "title": "" }, { "docid": "cf16bd487e830ac279e0d83492c9ccc0", "score": "0.5985074", "text": "public function getController();", "title": "" }, { "docid": "d8c829809cbdf130ab92e281f35b25eb", "score": "0.5979808", "text": "public function __construct() {\n\t\t$url = $this->_parseUrl();\n\n\t\n\t\t// load new controller\n\t\tif (isset($url[0])) {\n\t\t\tif (file_exists('app/controllers/' . $url[0]. '.class.php')) {\n\t\t\t\t$this->_controller = $url[0];\n\t\t\t\tunset($url[0]);\n\t\t\t} else {\n\t\t\t\t$this->_loadError();\n\t\t\t}\n\t\t}\n\t\t\n\t\trequire_once('app/controllers/' . $this->_controller. '.class.php');\n\t\t// load new method\n\t\tif (isset($url[1])) {\n\t\t\tif (method_exists($this->_controller, $url[1])) {\n\t\t\t\t$this->_method = $url[1];\n\t\t\t\tunset($url[1]);\n\t\t\t} else {\n\t\t\t\t$this->_loadError();\n\t\t\t}\n\t\t}\n\n\t\t// $this->_params\n\t\tcall_user_func_array([new $this->_controller, $this->_method], $this->_params);\n\t}", "title": "" }, { "docid": "eb638069425c512d39710e5206dcf272", "score": "0.59658927", "text": "public static function Factory($requireLogin=true) {\n\t\t$router = RouteParser::Instance();\n\t\tif($router->Dispatch('controller') !== null) {\n\t\t\t$classname=ucfirst(strtolower($router->Dispatch('controller'))).'Controller';\n\t\t\tif(class_exists($classname)) {\n\t\t\t\t$controller=$classname;\n\t\t\t\treturn $controller;\n\t\t\t}\n\t\t}\n\n\t\t$controller = 'IndexController';\n\t\treturn $controller;\n\t}", "title": "" }, { "docid": "3b3aaf093f2d48490ac4d219b2f6dc6e", "score": "0.59431434", "text": "public function testMakingAControllerWithoutModulesInitialised () : void\n {\n $controller = \"NewController\";\n $this->artisan(\"make:controller\", [\"name\" => $controller]);\n\n // I should have a controller in my app dir\n $this->assertTrue(class_exists(\"App\\\\Http\\\\Controllers\\\\$controller\"));\n $this->assertTrue(is_file(app_path(\"Http/Controllers/$controller.php\")));\n unlink(app_path(\"Http/Controllers/$controller.php\"));\n }", "title": "" }, { "docid": "c58c3789f04ea2a11ec8577816069a98", "score": "0.5936409", "text": "protected function getSymfonyCmfCreate_Rest_ControllerService()\n {\n return $this->services['symfony_cmf_create.rest.controller'] = new \\Symfony\\Cmf\\Bundle\\CreateBundle\\Controller\\RestController($this->get('fos_rest.view_handler'), $this->get('symfony_cmf_create.object_mapper'), $this->get('symfony_cmf_create.rdf_type_factory'), $this->get('symfony_cmf_create.rest.handler'), 'IS_AUTHENTICATED_ANONYMOUSLY', NULL);\n }", "title": "" }, { "docid": "23422a0a7a4de2549e5b09a4170de8e5", "score": "0.5921801", "text": "public function testCreateTheControllerClass()\n {\n $controller = new HelloWorldController();\n $this->assertInstanceOf(\"App\\Http\\Controllers\\HelloWorldController\", $controller);\n }", "title": "" }, { "docid": "059426939ad1ae81474d9e1d3537741c", "score": "0.59128374", "text": "function __construct(){\n\t\t$url = $this->url();\n\n\t\t//[0] => 'Controller'\n\t\t//[1] => 'Method'\n\t\t//[2~] => 'Param'\n\t\tif (!empty($url)) {\n\t\t\tif (file_exists(ROOT_CONTROLLER_FOLDER . $url[0] . \".php\")) {\n\t\t\t\t$this->controller = ucwords($url[0]);\n\n\t\t\t\tunset($url[0]);\n\t\t\t} else {\n\t\t\t\tdie(\"Controller \" . $url[0] . \" is not found on \" . ROOT_CONTROLLER_FOLDER);\n\t\t\t}\n\t\t}\n\t\t// @Include controller file\n\t\trequire_once ROOT_CONTROLLER_FOLDER . $this->controller . \".php\";\n\n\t\t$this->controller = new $this->controller;\n\t\t\n\n\t\t/**\n\t\t * Check method availability.\n\t\t */\n\t\tif (isset($url[1]) && !empty($url[1]) ) {\n\t\t\tif (method_exists($this->controller, $url[1])) {\n\t\t\t\t$this->method = $url[1];\n\t\t\t\tunset($url[1]);\n\t\t\t}else {\n\t\t\t\tdie(\"Method is not found\");\n\t\t\t}\n\t\t}\n\n\n\t\t/**\n\t\t * Check Parameters availability.\n\t\t */\n\t\tif (isset($url)) {\n\t\t\t$this->param = $url;\n\t\t} else {\n\t\t\t$this->param = [];\n\t\t}\n\n\t\tcall_user_func_array([\n\t\t\t$this->controller,\n\t\t\t$this->method\n\t\t], $this->param);\n\n\n\t}", "title": "" }, { "docid": "d46a35c396e6b6a6b021a81aa51a8db7", "score": "0.59083337", "text": "static private function _getInstanceController()\n {\n if (!isset($_GET['controller'])) {\n $rout[0] = 'default';\n } else {\n $rout = explode('_', $_GET['controller']);\n }\n\n if (count($rout) == 1) {\n $rout[1] = 'index';\n }\n\n $controllerName = self::getConfig('controllers/' . $rout[0]);\n\n $controllerPuth = self::$_baseDir . DIRECTORY_SEPARATOR . 'modules' . DIRECTORY_SEPARATOR .\n $controllerName . DIRECTORY_SEPARATOR . 'Controller' . DIRECTORY_SEPARATOR . ucfirst($rout[1]) . 'Controller.php';\n\n if (!file_exists($controllerPuth)) {\n throw new Exception(sprintf('Controller %s not found', $controllerPuth));\n }\n\n require_once $controllerPuth;\n\n self::$autoloader->loadClassModule(self::$_baseDir . DIRECTORY_SEPARATOR . 'modules' . DIRECTORY_SEPARATOR . $controllerName);\n\n $classController = $controllerName . '_Controller_' . ucfirst($rout[1]) . 'Controller';\n\n if (!class_exists($classController)) {\n throw new Exception(sprintf('File has been loaded but class %s not found', $classController));\n }\n\n new $classController;\n\n return true;\n }", "title": "" }, { "docid": "220aa77fc5d4f6030fca8a7d6c0a452b", "score": "0.59076506", "text": "public static function factory($name, $config) {\n $instance = new AdminController();\n $instance->name = $name;\n $instance->config = new $config($name);\n return $instance;\n }", "title": "" }, { "docid": "5830efbd2e7f9bdbe6c206569736bbaa", "score": "0.5871468", "text": "function get_instance() {\n return NX_framework\\NX_core\\Controller\\Controller::$instance;\n}", "title": "" }, { "docid": "628c659bcc4935d910c129eddf186721", "score": "0.586621", "text": "public function controller() {\n\t\t// starting session\n\t\tsession_cache_limiter(false);\n\t\tsession_start();\n\n\t\t// load configs\t\t\n\t\trequire_once 'config/envconfig.php';\n\t\t$this->salt = $salt;\n\n\t\t// set timezone\n\t\tdate_default_timezone_set($timezone);\n\t\t\n\t\t// composer autoload\n\t\trequire 'vendor/autoload.php';\n\n\t\t// blade parameter\n\t\trequire 'lib/MyBlade.php';\n\t\t$this->blade = new \\Lib\\MyBlade('view', 'cache');\n\t\t$blade =& $this->blade;\n\n\t\t$this->app = new \\Slim\\Slim(\n\t\t\tarray(\n\t\t\t\t'debug'\t=> $debug\n\t\t\t)\n\t\t);\n\n\t\t$this->load('helper', 'controller');\n\t\t$app =& $this->app;\n\t\t$ctr = $this;\n\t\t\n\t\t// custom 404\n\t\t$this->app->notFound(function() {\n\t\t\tprint $this->load_view('404', array('request' => $_SERVER['REQUEST_URI']));\n\t\t});\n\t\t$this->app->error(function($e) {\n\t\t\tprint $this->load_view('500', array('message' => 'Something went WRONG!'));\n\t\t});\n \n\t\t\n\t\t// auto load library\n\t\tspl_autoload_register(function($class) {\n\t\t\t$file = 'lib/' . str_replace('Lib\\\\', '', $class) . '.php';\n\t\t\tif (is_file($file)) {\n\t\t\t\trequire_once $file;\n\t\t\t\tclearstatcache();\n\t\t\t}\n\t\t});\n\t\t\n\t\t// load semua controller file\n\t\tforeach (scandir('controller') as $file) {\n\t\t\tif (is_file('controller/' . $file)) {\n\t\t\t\trequire('controller/' . $file);\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->app->run();\n\t}", "title": "" }, { "docid": "dcb3eebd33f194cf731d832d0b9ffcde", "score": "0.5861673", "text": "public function __construct ()\n\t{\n\t\t$this->_controller = new \\Game\\Controller\\CLI();\n\n\t\treturn parent::__construct();\n\t}", "title": "" }, { "docid": "a89295eabd6a2a5d5c1031a0c3e9f486", "score": "0.5857453", "text": "public function createAction() {\n echo \"create action called in IndexController!\";\n }", "title": "" }, { "docid": "89d925edef45d461446d7de08413bdcc", "score": "0.5853714", "text": "public function create() {}", "title": "" }, { "docid": "f142db9abeddee3cfd3e6581465a3581", "score": "0.5839", "text": "public function testCreateTheControllerClass()\n {\n $controller = new Yatzy();\n $this->assertInstanceOf(\"\\sigridjonsson\\Controller\\Yatzy\", $controller);\n }", "title": "" }, { "docid": "d87d1c2be0687b35dfeabfeb797b84b3", "score": "0.58357793", "text": "public function controllerFactory($sType)\n {\n $sDriver = Controller::driver($sType);\n\n if (!isset(self::$hControllerList[$sDriver]))\n {\n self::$hControllerList[$sDriver] = Controller::factory($sType, $this);\n }\n\n return self::$hControllerList[$sDriver];\n }", "title": "" }, { "docid": "e52216e4b015f524478ae0d0925abb91", "score": "0.5827566", "text": "function controller($params) {\n\t\tinclude \"controllers/\". $params[0] .\".php\";\n\t\tif(!class_exists($params[0], false))\n\t\t\texit(\"Class $params[0] not found\");\n\t\t$controller = new $params[0];\n\t\t// Getting and checking a method\n\t\tif(!method_exists($controller, $params[1]))\n\t\t\texit(\"Method $params[1] not found\");\n\t\t$method = (string)$params[1];\n\t\t// Method call\n\t\treturn $controller->$method();\n\t}", "title": "" }, { "docid": "388654da5e3be7df86b6233839952240", "score": "0.582698", "text": "public function createController(): void\n {\n $minimum_buffer_min = 3;\n if ($this->routerService->ds_token_ok($minimum_buffer_min)) {\n # 1. Call the worker method\n # More data validation would be a good idea here\n # Strip anything other than characters listed\n $results = json_decode(PermissionSetUserGroupService::worker($this->args, $this->clientService), true);\n \n if ($results) {\n # That need an envelope_id\n $this->clientService->showDoneTemplate(\n \"Set a permission profile to a group of users\",\n \"Set a permission profile to a group of users\",\n \"The permission profile has been set!<br/>\n Permission profile id: {$results['groups'][0]['permissionProfileId']}<br/>\n Group id: {$results['groups'][0]['groupId']}\"\n );\n }\n } else {\n $this->clientService->needToReAuth($this->eg);\n }\n }", "title": "" }, { "docid": "e51f285a86ddbda521abf8565cb9dfce", "score": "0.582353", "text": "protected function run(){\n $programRoute = $this->findProgramRoute();\n $parts = explode('/', $programRoute);\n $controller = \"controllers\\\\\" . ucfirst(array_shift($parts) . \"Controller\");\n $action = lcfirst(array_shift($parts));\n $params = $parts;\n $this->createController($controller,$action,$params);\n }", "title": "" }, { "docid": "1e3942d1624faaef51ef5898f15c256f", "score": "0.5820016", "text": "protected function createControllerContext(): ControllerContext\n {\n $httpRequest = new ServerRequest('POST', 'http://localhost');\n $request = ActionRequest::fromHttpRequest($httpRequest);\n $response = new ActionResponse();\n $arguments = new Arguments([]);\n $uriBuilder = new UriBuilder();\n $uriBuilder->setRequest($request);\n\n return new ControllerContext($request, $response, $arguments, $uriBuilder);\n }", "title": "" }, { "docid": "e01af9b3b9b704e2fbe81830282d9589", "score": "0.58087105", "text": "public function __construct($controller)\n {\n $this->controller = $controller;\n }", "title": "" }, { "docid": "ed4af23c1232a43dcdd34336637d19ab", "score": "0.58060294", "text": "public static function getControllerInstance($class, $request, $response, array $invokeArgs = array())\n {\n return new $class($request, $response, $invokeArgs);\n }", "title": "" }, { "docid": "6a79d5243c6c93538391cd7ed64b2424", "score": "0.5803797", "text": "public function __loadController($_controllerName)\n\t{\n\t\t$_controllerName\t=\tstr_replace(\"/\", \"\", \"\\controllers\\/\".strtolower($_controllerName));\n\t\treturn\tnew $_controllerName();\n\t}", "title": "" }, { "docid": "519c12b1c73f4a2e417d7f14eb7d9e74", "score": "0.5801946", "text": "public function testCreateTheControllerClass()\n {\n $controller = new DiceGame();\n $this->assertInstanceOf(\"\\Mos\\Controller\\DiceGame\", $controller);\n }", "title": "" }, { "docid": "ccd44d7229847bd580813da88f4172a4", "score": "0.5789172", "text": "public function create()\n {\n // NOT USED\n }", "title": "" }, { "docid": "fcf52de01d6330d2148d874e7010d4e3", "score": "0.57817113", "text": "function __construct() {\r\n\r\n $url = rtrim($_GET['url'], '/');\r\n $url = explode('/', $url);\r\n $counter = 0;\r\n $indexer = 0;\r\n $args = null;\r\n foreach ($url as $index) {\r\n if ($counter > 1) {\r\n $args[$indexer] = $index;\r\n $indexer++;\r\n }\r\n $counter++;\r\n }\r\n\r\n /*\r\n * Checking if any controller request has been made through the url[0] or not. if not\r\n * then the default controller will be excuted.\r\n * \r\n */\r\n\r\n if (isset($url[0])) {\r\n \r\n $file = 'controllers/' . $url[0] . '.php';\r\n if (file_exists($file)) {\r\n require $file;\r\n $app = new $url[0]();\r\n if (isset($url[1])) {\r\n if (method_exists($app, $url[1])) {\r\n $app->{$url[1]}($args);\r\n } else {\r\n error::error_handler(\"No such Method found\");\r\n }\r\n } else {\r\n if (method_exists($app, 'index')) {\r\n $app->index();\r\n }\r\n }\r\n } else {\r\n error::error_handler(\"No such controller\");\r\n \r\n }\r\n \r\n } else {\r\n echo \"Default controller\";\r\n }\r\n }", "title": "" }, { "docid": "ba64e44da499c249386142425288e474", "score": "0.577916", "text": "private function &__getController() {\n\n require_once('app/app_controller.php');\n\n\n $controller = false;\n $ctrlClass = $this->__loadController($this->params);\n if (!$ctrlClass) {\n return $controller;\n }\n $ctrlClass .= 'Controller';\n if (class_exists($ctrlClass)) {\n $controller = new $ctrlClass();\n }\n return $controller;\n }", "title": "" }, { "docid": "aaf481233643e0c7b6db695f2066b7d3", "score": "0.577622", "text": "public function newInstance($file)\n {\n if (! isset($this->map[$file])) {\n throw new NoClassForController($file);\n }\n\n $class = $this->map[$file];\n return $this->forge->newInstance($class);\n }", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.57745266", "text": "public function create(){}", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.57745266", "text": "public function create(){}", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.57745266", "text": "public function create(){}", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.57745266", "text": "public function create(){}", "title": "" }, { "docid": "92172974cac87df19bb67ea3d4350f7d", "score": "0.577289", "text": "public function getController()\n\t{\n\t\t$name = $this->Module ? $this->Module : 'Controller_Frontend';\n\t\t$class = new $name();\n\t\t$class->setContentPage( $this );\n\t\treturn $class;\n\t}", "title": "" }, { "docid": "63608fb0a8185f0dba4738b591092a72", "score": "0.5768055", "text": "public function makeController($controllerName)\n {\n if (is_object($controllerName)) {\n if ($controllerName instanceof Controller) return $controllerName;\n\n throw new InvalidArgumentException($controllerName);\n }\n\n $controller = mezzo()->make($this->controllerClass($controllerName));\n\n if (!($controller instanceof Controller))\n throw new ModuleControllerException('Not a valid module controller.');\n\n return $controller;\n }", "title": "" }, { "docid": "a4cb0faec86988f6db72238544d87fb4", "score": "0.5766777", "text": "public function create()\n {\n return view('fill_in_the_blanks_controllers.create');\n }", "title": "" }, { "docid": "608fab0113e466fc64c06feb8bc94c59", "score": "0.57523835", "text": "private function define_object()\r\n\t\t{\r\n\t\t\t$class_name = ucwords(self::$controller) . self::controller_posfix;\r\n\t\t\trequire AURA_APP . DS . self::$app . DS . 'controllers' . DS . $class_name . '.php';\r\n\t\t\t\r\n\t\t\t$this->object = new $class_name;\r\n\t\t}", "title": "" }, { "docid": "9bdbfd06d3768808b2075f3429c0cc24", "score": "0.5746798", "text": "public function testCreateTheControllerClass()\n {\n $controller = new Game21();\n $this->assertInstanceOf(\"\\Kimchi\\Controller\\Game21\", $controller);\n }", "title": "" }, { "docid": "751c588a56325765a0304a2f958fbc66", "score": "0.5738778", "text": "private function useController($controller, $action)\n {\n $controller = ucfirst($controller);\n $controllerName = $controller . 'Controller';\n $controllerObj = new $controllerName($controller, $action);\n }", "title": "" }, { "docid": "b12b6200d5e060e7bd7b86f69f552b8a", "score": "0.57282233", "text": "public static function controller($name) {\n\t\t\t$class_name = Inflector::classify($name);\n\t\t\t$path_name = FileUtils::join(NIMBLE_ROOT, 'app', 'controller', $class_name . 'Controller.php');\n\t\t\t$view_path = FileUtils::join(NIMBLE_ROOT, 'app', 'view', strtolower(Inflector::underscore($class_name)));\n\t\t\tFileUtils::mkdir_p($view_path);\n\t\t\t$string = \"<?php \\n\";\n\t\t\t$string .= \"\t/**\\n\t* @package controller\\n\t*\t*/\\n\";\n\t\t\t$string .= \" class {$class_name}Controller extends Controller { \\n\";\n\t\t\t$string .= self::create_view_functions($view_path);\n\t\t\t$string .= \" }\\n\";\n\t\t\t$string .= \"?>\";\n\t\n\t\t\t$db = fopen($path_name, \"w\");\n\t\t\tfwrite($db, $string);\n\t\t\tfclose($db);\n\t\t}", "title": "" }, { "docid": "8f2c0b2ff8df98756a4bc02976fbb7bb", "score": "0.57256204", "text": "public function create()\n {\n \\Log::info(__FUNCTION__);\n return view('create');\n }", "title": "" }, { "docid": "ab075d4427a33f1e9765dd429fb21b9b", "score": "0.5721565", "text": "public function testCreateTheControllerClass()\n {\n $controller = new Game(2);\n $this->assertInstanceOf(\"\\Mos\\Dice\\Game\", $controller);\n }", "title": "" }, { "docid": "ea3ca86b2bf105c904277968058737bb", "score": "0.5718793", "text": "public function testNewFrontControllerInstance()\n {\n $this->assertInstanceOf(FrontController::class, new FrontController($this->model, $this->view, $this->controller, '', []));\n }", "title": "" }, { "docid": "73a4152afb1d1664966de39acfa0061e", "score": "0.5715404", "text": "function __construct()\n {\n tmvc::instance($this,'controller');\n \n /* instantiate load library */\n $this->load = new iMVC_Load; \n\n /* instantiate view library */\n $this->view = new iMVC_View;\n }", "title": "" } ]